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