@farris/jit-engine 1.3.326 → 1.3.327
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/bin/index.js +0 -0
- package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js +176 -176
- package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js.map +1 -1
- package/lib/domstructure/ui/farris-fileupload-preview/index.js +13 -13
- package/lib/template/ui/kendo/farris-file-upload-preview.pug +48 -48
- package/lib/template/ui/kendo/language-textbox.pug +92 -92
- package/lib/template/ui/kendo/table/language-textbox.pug +50 -50
- package/lib/utility/devkit/component-parameter-collector/query-schema-collector.js +247 -247
- package/lib/utility/devkit/component-parameter-collector/query-schema-collector.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/toolbar-collector.js +114 -114
- package/lib/utility/devkit/component-parameter-collector/toolbar-collector.js.map +1 -1
- package/package.json +56 -56
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
-var holdPlaceOuterAttrs = {};
|
|
2
|
-
-var holdPlaceInnerAttrs = {};
|
|
3
|
-
-var holdPlaceEmptyAttrs = {};
|
|
4
|
-
if(variable.holdPlace)
|
|
5
|
-
-holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
6
|
-
-holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
|
|
7
|
-
else
|
|
8
|
-
-holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
9
|
-
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
10
|
-
if(variable.holdPlace)
|
|
11
|
-
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
12
|
-
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
13
|
-
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
14
|
-
if (variable.title)
|
|
15
|
-
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
16
|
-
if(variable.linkedLabelEnabled)
|
|
17
|
-
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
18
|
-
if (variable.require)
|
|
19
|
-
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
20
|
-
span(class="farris-label-text") {{#{titleValue}}}
|
|
21
|
-
else
|
|
22
|
-
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
23
|
-
if (variable.require)
|
|
24
|
-
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
25
|
-
span(class="farris-label-text") {{#{titleValue}}}
|
|
26
|
-
div(class="farris-input-wrap")
|
|
27
|
-
-var attrs = {};
|
|
28
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
29
|
-
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
30
|
-
-attrs['name'] = variable.replacedId;
|
|
31
|
-
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
32
|
-
else
|
|
33
|
-
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
34
|
-
if (variable.valueChange)
|
|
35
|
-
-attrs['(valueChange)'] = variable.valueChange ;
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
language-textbox(id=variable.replacedId "input-end-edit" '[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
48
|
-
'[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
|
|
49
|
-
'[languages]'=variable.useFrameworkLanguage?""+variable.currentLanguageListName:variable.currentLanguageListName
|
|
50
|
-
'[enableClear]'=(variable.enableClear || variable.enableClear == false)?""+variable.enableClear:undefined
|
|
51
|
-
'[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
52
|
-
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
53
|
-
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
54
|
-
'[editable]'=variable.editable?""+variable.editable.value:undefined
|
|
55
|
-
'[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
|
|
56
|
-
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
57
|
-
'[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
|
|
58
|
-
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
59
|
-
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
60
|
-
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
61
|
-
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
|
|
62
|
-
'[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
|
|
63
|
-
if (variable.needValid && variable.binding && variable.binding.path)
|
|
64
|
-
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
65
|
-
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
66
|
-
div(class="farris-feedback")
|
|
67
|
-
if(variable.isTextArea)
|
|
68
|
-
-var areaAttrs = {};
|
|
69
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
70
|
-
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
71
|
-
else
|
|
72
|
-
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
73
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
74
|
-
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
75
|
-
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
76
|
-
else
|
|
77
|
-
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
78
|
-
farris-text('[type]'="'string'" '[currentLanguage]'="this.lang" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
|
|
79
|
-
'[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
|
|
80
|
-
'[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
|
|
81
|
-
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
82
|
-
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
83
|
-
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
84
|
-
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
85
|
-
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
|
|
86
|
-
if(variable.titleTipsTemplate)
|
|
87
|
-
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
88
|
-
i(class="f-icon f-icon-description-tips")
|
|
89
|
-
-var tipsAttrs= {};
|
|
90
|
-
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
91
|
-
ng-template()&attributes(tipsAttrs)
|
|
92
|
-
| !{variable.titleTipsTemplate}
|
|
1
|
+
-var holdPlaceOuterAttrs = {};
|
|
2
|
+
-var holdPlaceInnerAttrs = {};
|
|
3
|
+
-var holdPlaceEmptyAttrs = {};
|
|
4
|
+
if(variable.holdPlace)
|
|
5
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
6
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
|
|
7
|
+
else
|
|
8
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
9
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
10
|
+
if(variable.holdPlace)
|
|
11
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
12
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
13
|
+
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
14
|
+
if (variable.title)
|
|
15
|
+
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
16
|
+
if(variable.linkedLabelEnabled)
|
|
17
|
+
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
18
|
+
if (variable.require)
|
|
19
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
20
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
21
|
+
else
|
|
22
|
+
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
23
|
+
if (variable.require)
|
|
24
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
25
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
26
|
+
div(class="farris-input-wrap")
|
|
27
|
+
-var attrs = {};
|
|
28
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
29
|
+
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
30
|
+
-attrs['name'] = variable.replacedId;
|
|
31
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
32
|
+
else
|
|
33
|
+
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
34
|
+
if (variable.valueChange)
|
|
35
|
+
-attrs['(valueChange)'] = variable.valueChange ;
|
|
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
|
+
language-textbox(id=variable.replacedId "input-end-edit" '[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
48
|
+
'[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
|
|
49
|
+
'[languages]'=variable.useFrameworkLanguage?""+variable.currentLanguageListName:variable.currentLanguageListName
|
|
50
|
+
'[enableClear]'=(variable.enableClear || variable.enableClear == false)?""+variable.enableClear:undefined
|
|
51
|
+
'[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
52
|
+
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
53
|
+
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
54
|
+
'[editable]'=variable.editable?""+variable.editable.value:undefined
|
|
55
|
+
'[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
|
|
56
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
57
|
+
'[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
|
|
58
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
59
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
60
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
61
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
|
|
62
|
+
'[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
|
|
63
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
64
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
65
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
66
|
+
div(class="farris-feedback")
|
|
67
|
+
if(variable.isTextArea)
|
|
68
|
+
-var areaAttrs = {};
|
|
69
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
70
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
71
|
+
else
|
|
72
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
73
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
74
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
75
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
76
|
+
else
|
|
77
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
78
|
+
farris-text('[type]'="'string'" '[currentLanguage]'="this.lang" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
|
|
79
|
+
'[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
|
|
80
|
+
'[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
|
|
81
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
82
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
83
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
84
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
85
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
|
|
86
|
+
if(variable.titleTipsTemplate)
|
|
87
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
88
|
+
i(class="f-icon f-icon-description-tips")
|
|
89
|
+
-var tipsAttrs= {};
|
|
90
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
91
|
+
ng-template()&attributes(tipsAttrs)
|
|
92
|
+
| !{variable.titleTipsTemplate}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
div(class="farris-input-wrap")
|
|
3
|
-
-var attrs = {};
|
|
4
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
5
|
-
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
6
|
-
-attrs['name'] = variable.replacedId;
|
|
7
|
-
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
8
|
-
else if (variable.includeInLoopContainer==false)
|
|
9
|
-
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
10
|
-
else
|
|
11
|
-
-attrs['[(ngModel)]'] = variable.rowPrefix+(variable.ngModelPath);
|
|
12
|
-
-attrs['name'] = variable.replacedId;
|
|
13
|
-
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
14
|
-
if (variable.valueChange)
|
|
15
|
-
-attrs['(valueChange)'] = variable.valueChange ;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if(variable.isTextArea)
|
|
19
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
20
|
-
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
21
|
-
else
|
|
22
|
-
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
23
|
-
if(variable.hasDefaultFocus)
|
|
24
|
-
-attrs["farris-set-focus"]="";
|
|
25
|
-
if(variable.focusState)
|
|
26
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
27
|
-
language-textbox(id=variable.replacedId "input-end-edit" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined '[languages]'=variable.useFrameworkLanguage?""+variable.currentLanguageListName:variable.currentLanguageListName '[enableClear]'=(variable.enableClear || variable.enableClear == false)?""+variable.enableClear: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 '[editable]'=variable.editable?""+variable.editable.value:undefined '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined ' [inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
|
|
28
|
-
div(class="farris-feedback")
|
|
29
|
-
if(variable.isTextArea)
|
|
30
|
-
-var areaAttrs = {};
|
|
31
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
32
|
-
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
33
|
-
else
|
|
34
|
-
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
35
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
36
|
-
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
37
|
-
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
38
|
-
else if (variable.includeInLoopContainer==false)
|
|
39
|
-
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
40
|
-
else
|
|
41
|
-
-areaAttrs['[(ngModel)]'] = variable.rowPrefix+(variable.ngModelPath);
|
|
42
|
-
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
43
|
-
farris-text('[type]'="'string'" '[currentLanguage]'="this.lang" '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined ' [inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
44
|
-
if(variable.titleTipsTemplate)
|
|
45
|
-
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
46
|
-
i(class="f-icon f-icon-description-tips")
|
|
47
|
-
-var tipsAttrs= {};
|
|
48
|
-
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
49
|
-
ng-template()&attributes(tipsAttrs)
|
|
50
|
-
| !{variable.titleTipsTemplate}
|
|
1
|
+
|
|
2
|
+
div(class="farris-input-wrap")
|
|
3
|
+
-var attrs = {};
|
|
4
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
5
|
+
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
6
|
+
-attrs['name'] = variable.replacedId;
|
|
7
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
8
|
+
else if (variable.includeInLoopContainer==false)
|
|
9
|
+
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
10
|
+
else
|
|
11
|
+
-attrs['[(ngModel)]'] = variable.rowPrefix+(variable.ngModelPath);
|
|
12
|
+
-attrs['name'] = variable.replacedId;
|
|
13
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
14
|
+
if (variable.valueChange)
|
|
15
|
+
-attrs['(valueChange)'] = variable.valueChange ;
|
|
16
|
+
|
|
17
|
+
-attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
18
|
+
if(variable.isTextArea)
|
|
19
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
20
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
21
|
+
else
|
|
22
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
23
|
+
if(variable.hasDefaultFocus)
|
|
24
|
+
-attrs["farris-set-focus"]="";
|
|
25
|
+
if(variable.focusState)
|
|
26
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
27
|
+
language-textbox(id=variable.replacedId "input-end-edit" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined '[languages]'=variable.useFrameworkLanguage?""+variable.currentLanguageListName:variable.currentLanguageListName '[enableClear]'=(variable.enableClear || variable.enableClear == false)?""+variable.enableClear: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 '[editable]'=variable.editable?""+variable.editable.value:undefined '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined ' [inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
|
|
28
|
+
div(class="farris-feedback")
|
|
29
|
+
if(variable.isTextArea)
|
|
30
|
+
-var areaAttrs = {};
|
|
31
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
32
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
33
|
+
else
|
|
34
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
35
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
36
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
37
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
38
|
+
else if (variable.includeInLoopContainer==false)
|
|
39
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
40
|
+
else
|
|
41
|
+
-areaAttrs['[(ngModel)]'] = variable.rowPrefix+(variable.ngModelPath);
|
|
42
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
43
|
+
farris-text('[type]'="'string'" '[currentLanguage]'="this.lang" '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined ' [inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
44
|
+
if(variable.titleTipsTemplate)
|
|
45
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
46
|
+
i(class="f-icon f-icon-description-tips")
|
|
47
|
+
-var tipsAttrs= {};
|
|
48
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
49
|
+
ng-template()&attributes(tipsAttrs)
|
|
50
|
+
| !{variable.titleTipsTemplate}
|