@farris/jit-engine 1.4.127 → 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 (45) hide show
  1. package/README.md +4 -0
  2. package/lib/.DS_Store +0 -0
  3. package/lib/domstructure/.DS_Store +0 -0
  4. package/lib/domstructure/ui/.DS_Store +0 -0
  5. package/lib/domstructure/ui/common/basecomponent.js +163 -163
  6. package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
  7. package/lib/template/.DS_Store +0 -0
  8. package/lib/template/ui/.DS_Store +0 -0
  9. package/lib/template/ui/kendo/adminorganization-selector.pug +108 -101
  10. package/lib/template/ui/kendo/checkbox.pug +133 -123
  11. package/lib/template/ui/kendo/checkboxgroup.pug +70 -63
  12. package/lib/template/ui/kendo/city-selector.pug +76 -69
  13. package/lib/template/ui/kendo/combobox.pug +77 -70
  14. package/lib/template/ui/kendo/datepicker.pug +77 -70
  15. package/lib/template/ui/kendo/employee-selector.pug +103 -96
  16. package/lib/template/ui/kendo/farris-checkbox-group.pug +103 -96
  17. package/lib/template/ui/kendo/farris-combo-list.pug +118 -111
  18. package/lib/template/ui/kendo/farris-combo-lookup.pug +105 -98
  19. package/lib/template/ui/kendo/farris-datepicker.pug +125 -118
  20. package/lib/template/ui/kendo/farris-ext-intergration.pug +86 -79
  21. package/lib/template/ui/kendo/farris-number-range.pug +105 -98
  22. package/lib/template/ui/kendo/farris-number-spinner.pug +110 -103
  23. package/lib/template/ui/kendo/farris-switch.pug +95 -88
  24. package/lib/template/ui/kendo/farris-tags.pug +77 -70
  25. package/lib/template/ui/kendo/farris-time-picker.pug +109 -102
  26. package/lib/template/ui/kendo/farris-time-spinner.pug +78 -71
  27. package/lib/template/ui/kendo/image-upload.pug +89 -82
  28. package/lib/template/ui/kendo/input-group.pug +103 -96
  29. package/lib/template/ui/kendo/language-textbox.pug +99 -92
  30. package/lib/template/ui/kendo/light-lookup.pug +192 -185
  31. package/lib/template/ui/kendo/lookup-employee.pug +120 -113
  32. package/lib/template/ui/kendo/lookup.pug +120 -113
  33. package/lib/template/ui/kendo/multitextbox.pug +108 -101
  34. package/lib/template/ui/kendo/numericbox.pug +77 -70
  35. package/lib/template/ui/kendo/oa-relation.pug +24 -20
  36. package/lib/template/ui/kendo/organization-selector.pug +128 -121
  37. package/lib/template/ui/kendo/radiobox.pug +67 -60
  38. package/lib/template/ui/kendo/radioboxgroup.pug +101 -94
  39. package/lib/template/ui/kendo/richtextbox.pug +60 -53
  40. package/lib/template/ui/kendo/select.pug +53 -46
  41. package/lib/template/ui/kendo/switch.pug +74 -67
  42. package/lib/template/ui/kendo/textbox.pug +105 -98
  43. package/lib/template/ui/kendo/timebox.pug +54 -47
  44. package/lib/template/ui/kendo/tinymcerichtextbox.pug +66 -59
  45. package/package.json +1 -1
@@ -1,60 +1,67 @@
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 col-form-label-multi f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
- if (variable.require)
20
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
21
- span(class="farris-label-text") {{#{titleValue}}}
22
- else
23
- label(class="col-form-label col-form-label-multi" 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 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.hasDefaultFocus)
36
- -attrs["farris-set-focus"]="";
37
- if(variable.focusState)
38
- -attrs["[focusState]"]=variable.focusState+"";
39
- farris-editor(id=variable.replacedId 'farris-editor-bind'
40
- '[readOnly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:variable.readonly.value+"":undefined
41
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
42
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
43
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
44
- '[maxHeight]'=(variable.maxHeight||variable.maxHeight==0)?""+variable.maxHeight:undefined
45
- '[height]'=(variable.size && variable.size.height) '[showBorder]'=(variable.isTextArea ||variable.isTextArea==false)?""+variable.isTextArea:undefined
46
- '[fontFamilyList]'!=variable.fontFamilyList?variable.fontFamilyList:undefined
47
- '[defaultFontFamily]'!=variable.defaultFontFamily?"'"+variable.defaultFontFamily+"'":undefined
48
- '[customToolbar]'=variable.customToolbar?""+variable.customToolbar.value:undefined '[toolbar]'=variable.toolbar?variable.toolbar:undefined
49
- '[limitImageSize]'=variable.limitImageSize?""+variable.limitImageSize.value:undefined '[maxImgSize]'=variable.maxImgSize?""+variable.maxImgSize:undefined )&attributes(attrs)
50
- if (variable.needValid && variable.binding && variable.binding.path)
51
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
52
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
53
- div(class="farris-feedback")
54
- if(variable.titleTipsTemplate)
55
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
56
- i(class="f-icon f-icon-description-tips")
57
- -var tipsAttrs= {};
58
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
59
- 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 col-form-label-multi f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
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 col-form-label-multi" 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 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.hasDefaultFocus)
43
+ -attrs["farris-set-focus"]="";
44
+ if(variable.focusState)
45
+ -attrs["[focusState]"]=variable.focusState+"";
46
+ farris-editor(id=variable.replacedId 'farris-editor-bind'
47
+ '[readOnly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:variable.readonly.value+"":undefined
48
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
49
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
50
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
51
+ '[maxHeight]'=(variable.maxHeight||variable.maxHeight==0)?""+variable.maxHeight:undefined
52
+ '[height]'=(variable.size && variable.size.height) '[showBorder]'=(variable.isTextArea ||variable.isTextArea==false)?""+variable.isTextArea:undefined
53
+ '[fontFamilyList]'!=variable.fontFamilyList?variable.fontFamilyList:undefined
54
+ '[defaultFontFamily]'!=variable.defaultFontFamily?"'"+variable.defaultFontFamily+"'":undefined
55
+ '[customToolbar]'=variable.customToolbar?""+variable.customToolbar.value:undefined '[toolbar]'=variable.toolbar?variable.toolbar:undefined
56
+ '[limitImageSize]'=variable.limitImageSize?""+variable.limitImageSize.value:undefined '[maxImgSize]'=variable.maxImgSize?""+variable.maxImgSize:undefined )&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.titleTipsTemplate && !isTitleTipsAfterLabel)
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)
60
67
  | !{variable.titleTipsTemplate}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/jit-engine",
3
- "version": "1.4.127",
3
+ "version": "1.4.128",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {