@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.
- package/README.md +4 -0
- package/lib/.DS_Store +0 -0
- package/lib/domstructure/.DS_Store +0 -0
- package/lib/domstructure/ui/.DS_Store +0 -0
- package/lib/domstructure/ui/common/basecomponent.js +163 -163
- package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
- package/lib/template/.DS_Store +0 -0
- package/lib/template/ui/.DS_Store +0 -0
- package/lib/template/ui/kendo/adminorganization-selector.pug +108 -101
- package/lib/template/ui/kendo/checkbox.pug +133 -123
- package/lib/template/ui/kendo/checkboxgroup.pug +70 -63
- package/lib/template/ui/kendo/city-selector.pug +76 -69
- package/lib/template/ui/kendo/combobox.pug +77 -70
- package/lib/template/ui/kendo/datepicker.pug +77 -70
- package/lib/template/ui/kendo/employee-selector.pug +103 -96
- package/lib/template/ui/kendo/farris-checkbox-group.pug +103 -96
- package/lib/template/ui/kendo/farris-combo-list.pug +118 -111
- package/lib/template/ui/kendo/farris-combo-lookup.pug +105 -98
- package/lib/template/ui/kendo/farris-datepicker.pug +125 -118
- package/lib/template/ui/kendo/farris-ext-intergration.pug +86 -79
- package/lib/template/ui/kendo/farris-number-range.pug +105 -98
- package/lib/template/ui/kendo/farris-number-spinner.pug +110 -103
- package/lib/template/ui/kendo/farris-switch.pug +95 -88
- package/lib/template/ui/kendo/farris-tags.pug +77 -70
- package/lib/template/ui/kendo/farris-time-picker.pug +109 -102
- package/lib/template/ui/kendo/farris-time-spinner.pug +78 -71
- package/lib/template/ui/kendo/image-upload.pug +89 -82
- package/lib/template/ui/kendo/input-group.pug +103 -96
- package/lib/template/ui/kendo/language-textbox.pug +99 -92
- package/lib/template/ui/kendo/light-lookup.pug +192 -185
- package/lib/template/ui/kendo/lookup-employee.pug +120 -113
- package/lib/template/ui/kendo/lookup.pug +120 -113
- package/lib/template/ui/kendo/multitextbox.pug +108 -101
- package/lib/template/ui/kendo/numericbox.pug +77 -70
- package/lib/template/ui/kendo/oa-relation.pug +24 -20
- package/lib/template/ui/kendo/organization-selector.pug +128 -121
- package/lib/template/ui/kendo/radiobox.pug +67 -60
- package/lib/template/ui/kendo/radioboxgroup.pug +101 -94
- package/lib/template/ui/kendo/richtextbox.pug +60 -53
- package/lib/template/ui/kendo/select.pug +53 -46
- package/lib/template/ui/kendo/switch.pug +74 -67
- package/lib/template/ui/kendo/textbox.pug +105 -98
- package/lib/template/ui/kendo/timebox.pug +54 -47
- package/lib/template/ui/kendo/tinymcerichtextbox.pug +66 -59
- package/package.json +1 -1
|
@@ -1,94 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-var
|
|
5
|
-
-var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-attrs[
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'
|
|
54
|
-
'[
|
|
55
|
-
'[
|
|
56
|
-
'
|
|
57
|
-
'[
|
|
58
|
-
'[
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-areaAttrs[
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
'[
|
|
80
|
-
'[
|
|
81
|
-
|
|
82
|
-
'
|
|
83
|
-
|
|
84
|
-
'[
|
|
85
|
-
'[
|
|
86
|
-
'
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
1
|
+
-var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
|
|
2
|
+
//- -var variable={title:"title",contents:[{id:"id",title:"c"},{id:"id",title:"c"}]};
|
|
3
|
+
|
|
4
|
+
-var holdPlaceOuterAttrs = {};
|
|
5
|
+
-var holdPlaceInnerAttrs = {};
|
|
6
|
+
-var holdPlaceEmptyAttrs = {};
|
|
7
|
+
if(variable.holdPlace)
|
|
8
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
9
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
|
|
10
|
+
else
|
|
11
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
12
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
13
|
+
if(variable.holdPlace)
|
|
14
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
15
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
16
|
+
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
17
|
+
if (variable.title)
|
|
18
|
+
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
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
|
+
if (variable.require)
|
|
22
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
23
|
+
span('class'="farris-label-text") {{#{titleValue}}}
|
|
24
|
+
if(isTitleTipsAfterLabel)
|
|
25
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
26
|
+
i(class="f-icon f-icon-description-tips")
|
|
27
|
+
else
|
|
28
|
+
label('class'='col-form-label' title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
29
|
+
if (variable.require)
|
|
30
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
31
|
+
span('class'="farris-label-text") {{#{titleValue}}}
|
|
32
|
+
if(isTitleTipsAfterLabel)
|
|
33
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
34
|
+
i(class="f-icon f-icon-description-tips")
|
|
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
|
+
div('class'='farris-input-wrap')
|
|
52
|
+
farris-radiogroup(id=variable.replacedId?""+variable.replacedId:undefined "input-end-edit"
|
|
53
|
+
'[disabled]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '[horizontal]'= ""+variable.isHorizontal+""
|
|
54
|
+
'[data]'=variable.enumDataLang?""+variable.enumDataLang:undefined
|
|
55
|
+
'[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
56
|
+
'(setRadioData)'=variable.setRadioData?""+variable.setRadioData:undefined
|
|
57
|
+
'[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
|
|
58
|
+
'[textField]'=variable.textField?"'"+variable.textField+"'":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
|
+
'[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]'="'enum'" '[data]'!=variable.enumDataLang?""+variable.enumDataLang:undefined
|
|
84
|
+
'[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
|
|
85
|
+
'[textField]'=variable.textField?"'"+variable.textField+"'":undefined
|
|
86
|
+
'[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
|
|
87
|
+
'[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
|
|
88
|
+
'[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
|
|
89
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
90
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
91
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
92
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
93
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
|
|
94
|
+
if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
|
|
95
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
96
|
+
i(class="f-icon f-icon-description-tips")
|
|
97
|
+
-var tipsAttrs= {};
|
|
98
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
99
|
+
ng-template()&attributes(tipsAttrs)
|
|
100
|
+
| !{variable.titleTipsTemplate}
|
|
101
|
+
|
|
@@ -1,54 +1,61 @@
|
|
|
1
|
-
-var
|
|
2
|
-
-var
|
|
3
|
-
-var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-attrs[
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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 col-form-label-multi f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
19
|
+
if (variable.require)
|
|
20
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
21
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
22
|
+
if(isTitleTipsAfterLabel)
|
|
23
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
24
|
+
i(class="f-icon f-icon-description-tips")
|
|
25
|
+
else
|
|
26
|
+
label(class="col-form-label col-form-label-multi" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
27
|
+
if (variable.require)
|
|
28
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
29
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
30
|
+
if(isTitleTipsAfterLabel)
|
|
31
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
32
|
+
i(class="f-icon f-icon-description-tips")
|
|
33
|
+
div(class="farris-input-wrap")
|
|
34
|
+
-var attrs = {};
|
|
35
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
36
|
+
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
37
|
+
-attrs['name'] = variable.replacedId;
|
|
38
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
39
|
+
else
|
|
40
|
+
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
41
|
+
|
|
42
|
+
-attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
43
|
+
|
|
44
|
+
if(variable.hasDefaultFocus)
|
|
45
|
+
-attrs["farris-set-focus"]="";
|
|
46
|
+
if(variable.focusState)
|
|
47
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
48
|
+
farris-html-editor(id=variable.replacedId "html-editor-end-edit" class="form-control" "htmlEditorRef" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined '[value]'=variable.value?variable.value:undefined '[format]'=variable.format?"'"+variable.format+"'":undefined '[theme]'=variable.theme?"'"+variable.theme+"'":undefined '[maxLength]'=variable.maxLength?"'"+variable.maxLength+"'":undefined '[minLength]'=variable.minLength?"'"+variable.minLength+"'":undefined '[required]'=variable.require?""+variable.require.value:undefined '[customToolbarPosition]'=variable.customToolbarPosition?"'"+variable.customToolbarPosition+"'":undefined '(onEditorCreated)'=variable.onEditorCreated?variable.onEditorCreated+"(param)":undefined '(onContentChanged)'=variable.onContentChanged?variable.onContentChanged+"(param)":undefined '(onSelectionChanged)'=variable.onSelectionChanged?variable.onSelectionChanged+"":undefined '(onFocus)'=variable.onFocus?variable.onFocus+"(param)":undefined '(onBlur)'=variable.onBlur?variable.onBlur+"(param)":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[styles]'=variable.customEditorStyle?""+variable.customEditorStyle:undefined '[showBorder]'=(variable.isTextArea ||variable.isTextArea==false)?""+variable.isTextArea: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 '[customToolbar]'=variable.customToolbar?""+variable.customToolbar.value:undefined '[toolbar]'=variable.toolbar?variable.toolbar:undefined '[maxHeight]'=(variable.maxHeight||variable.maxHeight==0)?""+variable.maxHeight:undefined
|
|
49
|
+
'[limitImageSize]'=variable.limitImageSize?""+variable.limitImageSize.value:undefined '[maxImgSize]'=variable.maxImgSize?""+variable.maxImgSize:undefined
|
|
50
|
+
)&attributes(attrs)
|
|
51
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
52
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
53
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
54
|
+
div(class="farris-feedback")
|
|
55
|
+
if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
|
|
56
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
57
|
+
i(class="f-icon f-icon-description-tips")
|
|
58
|
+
-var tipsAttrs= {};
|
|
59
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
60
|
+
ng-template()&attributes(tipsAttrs)
|
|
54
61
|
| !{variable.titleTipsTemplate}
|
|
@@ -1,47 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
-var
|
|
4
|
-
-var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
+
-var attrs = {};
|
|
12
|
+
if(variable.hasDefaultFocus)
|
|
13
|
+
-attrs["farris-set-focus"]="";
|
|
14
|
+
if(variable.focusState)
|
|
15
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
16
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style))&attributes(holdPlaceOuterAttrs)
|
|
17
|
+
if(variable.holdPlace)
|
|
18
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
19
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
20
|
+
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
21
|
+
if (variable.title)
|
|
22
|
+
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
23
|
+
if(variable.linkedLabelEnabled)
|
|
24
|
+
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)
|
|
25
|
+
if (variable.require)
|
|
26
|
+
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
27
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
28
|
+
if(isTitleTipsAfterLabel)
|
|
29
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
30
|
+
i(class="f-icon f-icon-description-tips")
|
|
31
|
+
else
|
|
32
|
+
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
33
|
+
if (variable.require)
|
|
34
|
+
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
35
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
36
|
+
if(isTitleTipsAfterLabel)
|
|
37
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
38
|
+
i(class="f-icon f-icon-description-tips")
|
|
39
|
+
div(class="farris-input-wrap")
|
|
40
|
+
if (variable.mulitSelect)
|
|
41
|
+
kendo-multiselect(id=variable.replacedId "input-end-edit" class="form-control k-widget k-multiselect k-header" '[data]'=variable.dataSource?variable.dataSource:undefined '[disabled]'!=variable.disable?variable.disable:undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[class.f-state-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)
|
|
42
|
+
else
|
|
43
|
+
kendo-dropdownlist(id=variable.replacedId "input-end-edit" class="form-control k-widget k-dropdown k-header" '[data]'=variable.dataSource?variable.dataSource:undefined '[disabled]'!=variable.disable?variable.disable:undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[class.f-state-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)
|
|
44
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
45
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
46
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
47
|
+
div(class="farris-feedback")
|
|
48
|
+
if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
|
|
49
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
50
|
+
i(class="f-icon f-icon-description-tips")
|
|
51
|
+
-var tipsAttrs= {};
|
|
52
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
53
|
+
ng-template()&attributes(tipsAttrs)
|
|
47
54
|
| !{variable.titleTipsTemplate}
|