@farris/jit-engine 1.4.126 → 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 (80) hide show
  1. package/README.md +5 -1
  2. package/lib/.DS_Store +0 -0
  3. package/lib/domstructure/.DS_Store +0 -0
  4. package/lib/domstructure/devkit/devkit.js +222 -220
  5. package/lib/domstructure/devkit/devkit.js.map +1 -1
  6. package/lib/domstructure/devkit/viewmodel/component/component.js +221 -221
  7. package/lib/domstructure/devkit/viewmodel/component/component.js.map +1 -1
  8. package/lib/domstructure/devkit/viewmodel/viewmodel.js +139 -138
  9. package/lib/domstructure/devkit/viewmodel/viewmodel.js.map +1 -1
  10. package/lib/domstructure/ui/.DS_Store +0 -0
  11. package/lib/domstructure/ui/common/basecomponent.js +163 -163
  12. package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
  13. package/lib/domstructure/ui/data/collection/hierarchy/tree_grid.js +198 -198
  14. package/lib/domstructure/ui/data/collection/hierarchy/tree_grid.js.map +1 -1
  15. package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js +3 -3
  16. package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js.map +1 -1
  17. package/lib/domstructure/ui/list-filter/farris-list-filter.js +88 -78
  18. package/lib/domstructure/ui/list-filter/farris-list-filter.js.map +1 -1
  19. package/lib/template/.DS_Store +0 -0
  20. package/lib/template/ui/.DS_Store +0 -0
  21. package/lib/template/ui/kendo/adminorganization-selector.pug +108 -101
  22. package/lib/template/ui/kendo/checkbox.pug +133 -123
  23. package/lib/template/ui/kendo/checkboxgroup.pug +70 -63
  24. package/lib/template/ui/kendo/city-selector.pug +76 -69
  25. package/lib/template/ui/kendo/combobox.pug +77 -70
  26. package/lib/template/ui/kendo/datepicker.pug +77 -70
  27. package/lib/template/ui/kendo/employee-selector.pug +103 -96
  28. package/lib/template/ui/kendo/farris-checkbox-group.pug +103 -96
  29. package/lib/template/ui/kendo/farris-combo-list.pug +118 -111
  30. package/lib/template/ui/kendo/farris-combo-lookup.pug +105 -98
  31. package/lib/template/ui/kendo/farris-datepicker.pug +125 -118
  32. package/lib/template/ui/kendo/farris-ext-intergration.pug +86 -79
  33. package/lib/template/ui/kendo/farris-list-filter.pug +17 -12
  34. package/lib/template/ui/kendo/farris-number-range.pug +105 -98
  35. package/lib/template/ui/kendo/farris-number-spinner.pug +110 -103
  36. package/lib/template/ui/kendo/farris-switch.pug +95 -88
  37. package/lib/template/ui/kendo/farris-tags.pug +77 -70
  38. package/lib/template/ui/kendo/farris-time-picker.pug +109 -102
  39. package/lib/template/ui/kendo/farris-time-spinner.pug +78 -71
  40. package/lib/template/ui/kendo/image-upload.pug +89 -82
  41. package/lib/template/ui/kendo/input-group.pug +103 -96
  42. package/lib/template/ui/kendo/language-textbox.pug +99 -92
  43. package/lib/template/ui/kendo/light-lookup.pug +192 -185
  44. package/lib/template/ui/kendo/lookup-employee.pug +120 -113
  45. package/lib/template/ui/kendo/lookup.pug +120 -113
  46. package/lib/template/ui/kendo/multitextbox.pug +108 -101
  47. package/lib/template/ui/kendo/numericbox.pug +77 -70
  48. package/lib/template/ui/kendo/oa-relation.pug +24 -20
  49. package/lib/template/ui/kendo/organization-selector.pug +128 -121
  50. package/lib/template/ui/kendo/radiobox.pug +67 -60
  51. package/lib/template/ui/kendo/radioboxgroup.pug +101 -94
  52. package/lib/template/ui/kendo/richtextbox.pug +60 -53
  53. package/lib/template/ui/kendo/select.pug +53 -46
  54. package/lib/template/ui/kendo/switch.pug +74 -67
  55. package/lib/template/ui/kendo/textbox.pug +105 -98
  56. package/lib/template/ui/kendo/timebox.pug +54 -47
  57. package/lib/template/ui/kendo/tinymcerichtextbox.pug +66 -59
  58. package/lib/template/ui/kendo/treegrid.pug +43 -40
  59. package/lib/template/ui/mobileapprove/statictext-for-mobileapprove.pug +6 -4
  60. package/lib/utility/.DS_Store +0 -0
  61. package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +183 -159
  62. package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js.map +1 -1
  63. package/lib/utility/devkit/form-file-executor.js +449 -444
  64. package/lib/utility/devkit/form-file-executor.js.map +1 -1
  65. package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js +59 -59
  66. package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js.map +1 -1
  67. package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js +8 -2
  68. package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js.map +1 -1
  69. package/lib/utility/template-generator/.DS_Store +0 -0
  70. package/lib/utility/template-generator/devkit/.DS_Store +0 -0
  71. package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +194 -189
  72. package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js.map +1 -1
  73. package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +259 -226
  74. package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js.map +1 -1
  75. package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +185 -181
  76. package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js.map +1 -1
  77. package/lib/utility/template-generator/devkit/component-template-generator.js +537 -534
  78. package/lib/utility/template-generator/devkit/component-template-generator.js.map +1 -1
  79. package/package.json +1 -1
  80. package/lib/mobileapp/vue/static/.npmignore +0 -13
@@ -1,102 +1,109 @@
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
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
15
- if (variable.title)
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
- if(variable.isTextArea)
35
- if(variable.readonly && variable.readonly.isComposite)
36
- -attrs["*ngIf"]="!"+variable.readonly.value;
37
- else
38
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
39
-
40
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
41
- if(variable.hasDefaultFocus)
42
- -attrs["farris-set-focus"]="";
43
- if(variable.focusState)
44
- -attrs["[focusState]"]=variable.focusState+"";
45
- textarea(id=variable.replacedId '[style.height]'=(variable.size&&variable.size.height)?"'"+variable.size.height+"px"+"'":undefined
46
- '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined
47
- '[style.width]'=(variable.size&&variable.size.width)?"'"+variable.size.width+"px"+"'":undefined
48
- class="form-control"
49
- "input-end-edit" 'kendoTextArea' '[disabled]'!=variable.disable?variable.disable.toString():undefined
50
- '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
51
- '[value]'=variable.value?variable.value:undefined
52
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
53
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
54
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
55
- '[auto-size]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[textarea-zoom]'=variable.enableDialog+""
56
- '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
57
- '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
58
- 'maxlength'=(variable.maxLength && variable.maxLength!=0)?""+variable.maxLength:undefined
59
- '[word-count]'=(variable.enableWordCount || variable.enableWordCount==false)?""+variable.enableWordCount:undefined
60
- '[countType]'=variable.countType?"'"+variable.countType+"'":undefined
61
- '[onlyShowInDialog]'=(variable.onlyShowInDialog||variable.onlyShowInDialog==false)?""+variable.onlyShowInDialog:undefined
62
- '[common-comments]'=variable.useComments?""+variable.useComments.value:undefined
63
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
64
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
65
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
66
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
67
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
68
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
69
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
70
- if (variable.needValid && variable.binding && variable.binding.path)
71
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
72
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
73
- div(class="farris-feedback")
74
- if(variable.isTextArea)
75
- -var areaAttrs = {};
76
- if(variable.readonly && variable.readonly.isComposite)
77
- -areaAttrs["*ngIf"]=variable.readonly.value;
78
- else
79
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
80
- if (variable.binding && variable.binding.type == 'Variable')
81
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
82
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
83
- else
84
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
85
- farris-text('[type]'="'string'" '[isTextArea]'="true" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
86
- '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined '[textarea-zoom]'=variable.enableDialog+""
87
- '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
88
- '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
89
- '[attr.maxLength]'=variable.maxLength?""+variable.maxLength:undefined
90
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
91
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
92
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
93
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
94
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
95
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
96
- if(variable.titleTipsTemplate)
97
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
98
- i(class="f-icon f-icon-description-tips")
99
- -var tipsAttrs= {};
100
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
101
- 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
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
16
+ if (variable.title)
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
+ if(variable.isTextArea)
42
+ if(variable.readonly && variable.readonly.isComposite)
43
+ -attrs["*ngIf"]="!"+variable.readonly.value;
44
+ else
45
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
46
+
47
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
48
+ if(variable.hasDefaultFocus)
49
+ -attrs["farris-set-focus"]="";
50
+ if(variable.focusState)
51
+ -attrs["[focusState]"]=variable.focusState+"";
52
+ textarea(id=variable.replacedId '[style.height]'=(variable.size&&variable.size.height)?"'"+variable.size.height+"px"+"'":undefined
53
+ '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined
54
+ '[style.width]'=(variable.size&&variable.size.width)?"'"+variable.size.width+"px"+"'":undefined
55
+ class="form-control"
56
+ "input-end-edit" 'kendoTextArea' '[disabled]'!=variable.disable?variable.disable.toString():undefined
57
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
58
+ '[value]'=variable.value?variable.value:undefined
59
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
60
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
61
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
62
+ '[auto-size]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[textarea-zoom]'=variable.enableDialog+""
63
+ '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
64
+ '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
65
+ 'maxlength'=(variable.maxLength && variable.maxLength!=0)?""+variable.maxLength:undefined
66
+ '[word-count]'=(variable.enableWordCount || variable.enableWordCount==false)?""+variable.enableWordCount:undefined
67
+ '[countType]'=variable.countType?"'"+variable.countType+"'":undefined
68
+ '[onlyShowInDialog]'=(variable.onlyShowInDialog||variable.onlyShowInDialog==false)?""+variable.onlyShowInDialog:undefined
69
+ '[common-comments]'=variable.useComments?""+variable.useComments.value:undefined
70
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
71
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
72
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
73
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
74
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
75
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
76
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
77
+ if (variable.needValid && variable.binding && variable.binding.path)
78
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
79
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
80
+ div(class="farris-feedback")
81
+ if(variable.isTextArea)
82
+ -var areaAttrs = {};
83
+ if(variable.readonly && variable.readonly.isComposite)
84
+ -areaAttrs["*ngIf"]=variable.readonly.value;
85
+ else
86
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
87
+ if (variable.binding && variable.binding.type == 'Variable')
88
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
89
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
90
+ else
91
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
92
+ farris-text('[type]'="'string'" '[isTextArea]'="true" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
93
+ '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined '[textarea-zoom]'=variable.enableDialog+""
94
+ '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
95
+ '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
96
+ '[attr.maxLength]'=variable.maxLength?""+variable.maxLength: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
+ -var tipsAttrs= {};
107
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
108
+ ng-template()&attributes(tipsAttrs)
102
109
  | !{variable.titleTipsTemplate}
@@ -1,70 +1,77 @@
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
-
36
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
37
- if(variable.isTextArea)
38
- if(variable.readonly && variable.readonly.isComposite)
39
- -attrs["*ngIf"]="!"+variable.readonly.value;
40
- else
41
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
42
- if(variable.hasDefaultFocus)
43
- -attrs["farris-set-focus"]="";
44
- if(variable.focusState)
45
- -attrs["[focusState]"]=variable.focusState+"";
46
- kendo-numerictextbox(id=variable.replacedId "input-end-edit" class="form-control k-widget k-numerictextbox" '[format]'=variable.format?"'"+variable.format+"'":undefined '[decimals]'=(variable.precision || variable.precision==0)? variable.precision+'':undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value:undefined '[step]'=variable.step?variable.step:undefined '[min]'=variable.minValue!=null?variable.minValue:undefined '[max]'=variable.maxValue!=null?variable.maxValue:undefined '[autoCorrect]'="true" '[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
- kendo-numerictextbox-messages('[decrement]'="'减少'" '[increment]'="'增加'")
48
- if (variable.needValid)
49
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
50
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
51
- div(class="farris-feedback")
52
- if(variable.isTextArea)
53
- -var areaAttrs = {};
54
- if(variable.readonly && variable.readonly.isComposite)
55
- -areaAttrs["*ngIf"]=variable.readonly.value;
56
- else
57
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
58
- if (variable.binding && variable.binding.type == 'Variable')
59
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
60
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
61
- else
62
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
63
- farris-text('[type]'="'number'" '[format]'=variable.format?"'"+variable.format+"'":undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
64
- if(variable.titleTipsTemplate)
65
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
66
- i(class="f-icon f-icon-description-tips")
67
- -var tipsAttrs= {};
68
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
69
- ng-template()&attributes(tipsAttrs)
70
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+
3
+ -var holdPlaceOuterAttrs = {};
4
+ -var holdPlaceInnerAttrs = {};
5
+ -var holdPlaceEmptyAttrs = {};
6
+ if(variable.holdPlace)
7
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
8
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
9
+ else
10
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
11
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
+ if(variable.holdPlace)
13
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
16
+ if (variable.title)
17
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
18
+ if(variable.linkedLabelEnabled)
19
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
20
+ if (variable.require)
21
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
22
+ span(class="farris-label-text") {{#{titleValue}}}
23
+ if(isTitleTipsAfterLabel)
24
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
25
+ i(class="f-icon f-icon-description-tips")
26
+ else
27
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
28
+ if (variable.require)
29
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
30
+ span(class="farris-label-text") {{#{titleValue}}}
31
+ if(isTitleTipsAfterLabel)
32
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
33
+ i(class="f-icon f-icon-description-tips")
34
+ div(class="farris-input-wrap")
35
+ -var attrs = {};
36
+ if (variable.binding && variable.binding.type == 'Variable')
37
+ -attrs['[(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
+
43
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
44
+ if(variable.isTextArea)
45
+ if(variable.readonly && variable.readonly.isComposite)
46
+ -attrs["*ngIf"]="!"+variable.readonly.value;
47
+ else
48
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
49
+ if(variable.hasDefaultFocus)
50
+ -attrs["farris-set-focus"]="";
51
+ if(variable.focusState)
52
+ -attrs["[focusState]"]=variable.focusState+"";
53
+ kendo-numerictextbox(id=variable.replacedId "input-end-edit" class="form-control k-widget k-numerictextbox" '[format]'=variable.format?"'"+variable.format+"'":undefined '[decimals]'=(variable.precision || variable.precision==0)? variable.precision+'':undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value:undefined '[step]'=variable.step?variable.step:undefined '[min]'=variable.minValue!=null?variable.minValue:undefined '[max]'=variable.maxValue!=null?variable.maxValue:undefined '[autoCorrect]'="true" '[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)
54
+ kendo-numerictextbox-messages('[decrement]'="'减少'" '[increment]'="'增加'")
55
+ if (variable.needValid)
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]'="'number'" '[format]'=variable.format?"'"+variable.format+"'":undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
71
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
72
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
73
+ i(class="f-icon f-icon-description-tips")
74
+ -var tipsAttrs= {};
75
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
76
+ ng-template()&attributes(tipsAttrs)
77
+ | !{variable.titleTipsTemplate}
@@ -1,21 +1,25 @@
1
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style))
2
- div(class="farris-group-wrap")
3
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
4
- label(class="col-form-label" title="{{'"+variable.title+"'}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
5
- span(class="farris-label-text") {{'#{variable.title}'}}
6
- div(class="farris-input-wrap")
7
- farris-oa-relation(
8
- 'farrisOaRelationDataMapping'
9
- input-end-edit
10
- id=variable.replacedId
11
- '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
12
- '[taskCategoryIds]'!=variable.taskCategoryIds?variable.taskCategoryIds+"":undefined
13
- 'formControlName'=variable.formControlName?""+variable.formControlName:undefined
14
- )
15
- if(variable.titleTipsTemplate)
16
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
17
- i(class="f-icon f-icon-description-tips")
18
- -var tipsAttrs= {};
19
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
20
- ng-template()&attributes(tipsAttrs)
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style))
3
+ div(class="farris-group-wrap")
4
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
5
+ label(class="col-form-label" title="{{'"+variable.title+"'}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
6
+ span(class="farris-label-text") {{'#{variable.title}'}}
7
+ if(isTitleTipsAfterLabel)
8
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
9
+ i(class="f-icon f-icon-description-tips")
10
+ div(class="farris-input-wrap")
11
+ farris-oa-relation(
12
+ 'farrisOaRelationDataMapping'
13
+ input-end-edit
14
+ id=variable.replacedId
15
+ '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
16
+ '[taskCategoryIds]'!=variable.taskCategoryIds?variable.taskCategoryIds+"":undefined
17
+ 'formControlName'=variable.formControlName?""+variable.formControlName:undefined
18
+ )
19
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
20
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
21
+ i(class="f-icon f-icon-description-tips")
22
+ -var tipsAttrs= {};
23
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
24
+ ng-template()&attributes(tipsAttrs)
21
25
  | !{variable.titleTipsTemplate}