@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,79 +1,86 @@
1
- -var holdPlaceOuterAttrs = {};
2
- -var holdPlaceInnerAttrs = {};
3
- -var holdPlaceEmptyAttrs = {};
4
- if(variable.holdPlace)
5
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
6
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
7
- else
8
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?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.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.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.valueChange)
35
- -attrs['(valueChange)'] = variable.valueChange ;
36
-
37
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
38
-
39
- if(variable.isTextArea)
40
- if(variable.readonly && variable.readonly.isComposite)
41
- -attrs["*ngIf"]="!"+variable.readonly.value;
42
- else
43
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
44
- if(variable.hasDefaultFocus)
45
- -attrs["farris-set-focus"]="";
46
- if(variable.focusState)
47
- -attrs["[focusState]"]=variable.focusState+"";
48
- web-external-integration(
49
- id=variable.replacedId
50
- extIntegration-dataMapping
51
- '[serviceCode]'=variable.serviceCode?"'"+variable.serviceCode+"'":undefined
52
- '[mapFields]'!=variable.mapFields?""+variable.mapFields:undefined
53
- '[externalParams]'=variable.externalParams?""+variable.externalParams:undefined
54
- 'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
55
- '[extTableSchemas]'!=variable.extTableSchemas?""+variable.extTableSchemas:undefined
56
- )&attributes(attrs)
57
- if (variable.needValid && variable.binding && variable.binding.path)
58
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
59
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
60
- div(class="farris-feedback")
61
- if(variable.isTextArea)
62
- -var areaAttrs = {};
63
- if(variable.readonly && variable.readonly.isComposite)
64
- -areaAttrs["*ngIf"]=variable.readonly.value;
65
- else
66
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
67
- if (variable.binding && variable.binding.type == 'Variable')
68
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
69
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
70
- else
71
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
72
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
73
- if(variable.titleTipsTemplate)
74
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
75
- i(class="f-icon f-icon-description-tips")
76
- -var tipsAttrs= {};
77
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
78
- ng-template()&attributes(tipsAttrs)
79
- | !{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.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
+ 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.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.valueChange)
42
+ -attrs['(valueChange)'] = variable.valueChange ;
43
+
44
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
45
+
46
+ if(variable.isTextArea)
47
+ if(variable.readonly && variable.readonly.isComposite)
48
+ -attrs["*ngIf"]="!"+variable.readonly.value;
49
+ else
50
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
51
+ if(variable.hasDefaultFocus)
52
+ -attrs["farris-set-focus"]="";
53
+ if(variable.focusState)
54
+ -attrs["[focusState]"]=variable.focusState+"";
55
+ web-external-integration(
56
+ id=variable.replacedId
57
+ extIntegration-dataMapping
58
+ '[serviceCode]'=variable.serviceCode?"'"+variable.serviceCode+"'":undefined
59
+ '[mapFields]'!=variable.mapFields?""+variable.mapFields:undefined
60
+ '[externalParams]'=variable.externalParams?""+variable.externalParams:undefined
61
+ 'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
62
+ '[extTableSchemas]'!=variable.extTableSchemas?""+variable.extTableSchemas:undefined
63
+ )&attributes(attrs)
64
+ if (variable.needValid && variable.binding && variable.binding.path)
65
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
66
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
67
+ div(class="farris-feedback")
68
+ if(variable.isTextArea)
69
+ -var areaAttrs = {};
70
+ if(variable.readonly && variable.readonly.isComposite)
71
+ -areaAttrs["*ngIf"]=variable.readonly.value;
72
+ else
73
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
74
+ if (variable.binding && variable.binding.type == 'Variable')
75
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
76
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
77
+ else
78
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
79
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
80
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
81
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
82
+ i(class="f-icon f-icon-description-tips")
83
+ -var tipsAttrs= {};
84
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
85
+ ng-template()&attributes(tipsAttrs)
86
+ | !{variable.titleTipsTemplate}
@@ -1,12 +1,17 @@
1
- -var attrs = {};
2
- if(variable.hasDefaultFocus)
3
- -attrs["farris-set-focus"]="";
4
- if(variable.focusState)
5
- -attrs["[focusState]"]=variable.focusState+"";
6
- farris-list-filter('farris-list-filter-binding' id=variable.replacedId class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[disabled]'!=variable.disable?variable.disable.value+"":undefined
7
- '[filterList]'!=variable.filterListLang?""+variable.filterListLang:undefined '[liveSearch]'=(variable.liveSearch || variable.liveSearch == false)?variable.liveSearch+"":undefined
8
- '[alLeft]'=(variable.alLeft || variable.alLeft == false)?variable.alLeft+"":undefined '[autoWidth]'=(variable.autoWidth || variable.autoWidth ==false )?variable.autoWidth+"":undefined
9
- '[autoLabel]'=(variable.autoLabel || variable.autoLabel == false)?variable.autoLabel+"":undefined '(query)'=variable.query?variable.query+"":undefined '*ngIf'!=variable.visible?""+variable.visible.value:undefined
10
- '[filterClass]'=variable.filterClass?"'"+variable.filterClass+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[defaultValue]'!=variable.binding?""+variable.binding.value:undefined
11
- 'listFilterRef' '(searchChange)'=variable.searchChange?""+variable.searchChange:undefined '(clear)'=variable.clear?variable.clear+"":undefined
12
- '[defaultEmptyValueSearch]'=(variable.defaultEmptyValueSearch || variable.defaultEmptyValueSearch == false)?variable.defaultEmptyValueSearch+"":undefined )&attributes(attrs)
1
+ -var attrs = {};
2
+ if(variable.hasDefaultFocus)
3
+ -attrs["farris-set-focus"]="";
4
+ if(variable.focusState)
5
+ -attrs["[focusState]"]=variable.focusState+"";
6
+ farris-list-filter('farris-list-filter-binding' id=variable.replacedId class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[disabled]'!=variable.disable?variable.disable.value+"":undefined
7
+ '[filterList]'!=variable.filterListLang?""+variable.filterListLang:undefined '[liveSearch]'=(variable.liveSearch || variable.liveSearch == false)?variable.liveSearch+"":undefined
8
+ '[alLeft]'=(variable.alLeft || variable.alLeft == false)?variable.alLeft+"":undefined '[autoWidth]'=(variable.autoWidth || variable.autoWidth ==false )?variable.autoWidth+"":undefined
9
+ '[autoLabel]'=(variable.autoLabel || variable.autoLabel == false)?variable.autoLabel+"":undefined '(query)'=variable.query?variable.query+"":undefined '*ngIf'!=variable.visible?""+variable.visible.value:undefined
10
+ '[filterClass]'=variable.filterClass?"'"+variable.filterClass+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[defaultValue]'!=variable.binding?""+variable.binding.value:undefined
11
+ 'listFilterRef' '(searchChange)'=variable.searchChange?""+variable.searchChange:undefined '(clear)'=variable.clear?variable.clear+"":undefined
12
+ '[defaultEmptyValueSearch]'=(variable.defaultEmptyValueSearch || variable.defaultEmptyValueSearch == false)?variable.defaultEmptyValueSearch+"":undefined
13
+ '[filterText]'=variable.filterText?""+variable.filterText:undefined
14
+ '[clearButtonText]'=variable.clearButtonText?""+variable.clearButtonText:undefined
15
+ '[buttonPosition]'=variable.buttonPosition?"'"+variable.buttonPosition+"'":undefined
16
+ '[expandStatus]'=(variable.expandStatus || variable.expandStatus == false)?variable.expandStatus+"":undefined
17
+ )&attributes(attrs)
@@ -1,98 +1,105 @@
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)
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 )
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
- farris-number-range(id=variable.replacedId "input-end-edit" '[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
- '[precision]'=(variable.precision || variable.precision == 0)?variable.precision+"":undefined
49
- '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
50
- '[useThousands]'=(variable.useThousands || variable.useThousands==false)?variable.useThousands+"":undefined
51
- '[step]'=(variable.step || variable.step == 0)?variable.step+"":undefined
52
- '[min]'=(variable.minValue||variable.minValue==0)?variable.minValue+"":undefined
53
- '[max]'=(variable.maxValue||variable.maxValue==0)?variable.maxValue+"":undefined
54
- '[formatter]'=variable.formatterName?variable.formatterName:undefined
55
- '[parser]'=variable.parserName?variable.parserName:undefined '(valueChange)'=variable.onChange?variable.onChange:undefined
56
- '(blur)'=variable.onBlur?variable.onBlur:undefined
57
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
58
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
59
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
60
- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
61
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
62
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
63
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
64
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
65
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
66
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
67
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
68
- if (variable.needValid && variable.binding && variable.binding.path)
69
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
70
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
71
- div(class="farris-feedback")
72
- if(variable.isTextArea)
73
- -var areaAttrs = {};
74
- if(variable.readonly && variable.readonly.isComposite)
75
- -areaAttrs["*ngIf"]=variable.readonly.value;
76
- else
77
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
78
- if (variable.binding && variable.binding.type == 'Variable')
79
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
80
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
81
- else
82
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
83
- farris-text('[type]'="'number'" '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
84
- '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
85
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
86
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
87
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
88
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
89
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
90
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
91
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
92
- if(variable.titleTipsTemplate)
93
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
94
- i(class="f-icon f-icon-description-tips")
95
- -var tipsAttrs= {};
96
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
97
- ng-template()&attributes(tipsAttrs)
98
- | !{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)
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 )
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
+ farris-number-range(id=variable.replacedId "input-end-edit" '[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
+ '[precision]'=(variable.precision || variable.precision == 0)?variable.precision+"":undefined
56
+ '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
57
+ '[useThousands]'=(variable.useThousands || variable.useThousands==false)?variable.useThousands+"":undefined
58
+ '[step]'=(variable.step || variable.step == 0)?variable.step+"":undefined
59
+ '[min]'=(variable.minValue||variable.minValue==0)?variable.minValue+"":undefined
60
+ '[max]'=(variable.maxValue||variable.maxValue==0)?variable.maxValue+"":undefined
61
+ '[formatter]'=variable.formatterName?variable.formatterName:undefined
62
+ '[parser]'=variable.parserName?variable.parserName:undefined '(valueChange)'=variable.onChange?variable.onChange:undefined
63
+ '(blur)'=variable.onBlur?variable.onBlur:undefined
64
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
65
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
66
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
67
+ '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
68
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
69
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
70
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
71
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
72
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
73
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
74
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
75
+ if (variable.needValid && variable.binding && variable.binding.path)
76
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
77
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
78
+ div(class="farris-feedback")
79
+ if(variable.isTextArea)
80
+ -var areaAttrs = {};
81
+ if(variable.readonly && variable.readonly.isComposite)
82
+ -areaAttrs["*ngIf"]=variable.readonly.value;
83
+ else
84
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
85
+ if (variable.binding && variable.binding.type == 'Variable')
86
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
87
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
88
+ else
89
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
90
+ farris-text('[type]'="'number'" '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
91
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
92
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
93
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
94
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
95
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
96
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
97
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
98
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
99
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
100
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
101
+ i(class="f-icon f-icon-description-tips")
102
+ -var tipsAttrs= {};
103
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
104
+ ng-template()&attributes(tipsAttrs)
105
+ | !{variable.titleTipsTemplate}