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