@farris/jit-engine 1.3.126 → 1.3.127
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
CHANGED
|
@@ -15,4 +15,4 @@ div(class="farris-input-wrap f-utils-hcenter-vcenter "+((variable.appearance &&
|
|
|
15
15
|
-attrs["farris-set-focus"]="";
|
|
16
16
|
if(variable.focusState)
|
|
17
17
|
-attrs["[focusState]"]=variable.focusState+"";
|
|
18
|
-
farris-avatar(id=variable.replacedId "input-end-edit" '[imgShape]'=variable.imgShape?"'"+variable.imgShape+"'":undefined '[avatarWidth]'=(variable.size && variable.size.width)?"'"+variable.size.width+"'":undefined '[avatarHeight]'=(variable.size && variable.size.height)?"'"+variable.size.height+"'":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[type]'=variable.imgType?"'"+variable.imgType+"'":undefined '[imgTitle]'=variable.imgTitle?"'"+variable.imgTitle+"'":undefined '[size]'=(variable.maxSize || variable.maxSize==0)?variable.maxSize.toString():undefined '(imgChange)'=variable.imgChange?variable.imgChange+"":undefined '[cover]'=variable.cover?"'"+variable.cover+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
18
|
+
farris-avatar(id=variable.replacedId "input-end-edit" '[imgShape]'=variable.imgShape?"'"+variable.imgShape+"'":undefined '[avatarWidth]'=(variable.size && variable.size.width)?"'"+variable.size.width+"'":undefined '[avatarHeight]'=(variable.size && variable.size.height)?"'"+variable.size.height+"'":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[type]'=variable.imgType?"'"+variable.imgType+"'":undefined '[imgTitle]'=variable.imgTitle?"'"+variable.imgTitle+"'":undefined '[size]'=(variable.maxSize || variable.maxSize==0)?variable.maxSize.toString():undefined '(imgChange)'=variable.imgChange?variable.imgChange+"":undefined '[cover]'=variable.cover?"'"+variable.cover+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined )&attributes(attrs)
|
|
@@ -0,0 +1,30 @@
|
|
|
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.binding && variable.binding.path;
|
|
12
|
+
-attrs['name'] = variable.replacedId;
|
|
13
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
14
|
+
|
|
15
|
+
if(variable.hasDefaultFocus)
|
|
16
|
+
-attrs["farris-set-focus"]="";
|
|
17
|
+
if(variable.focusState)
|
|
18
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
19
|
+
farris-editor(id=variable.replacedId 'farris-editor-bind' '[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 '[height]'=(variable.size && variable.size.height) '[showBorder]'=(variable.isTextArea ||variable.isTextArea==false)?""+variable.isTextArea:undefined '[fontFamilyList]'!=variable.fontFamilyList?variable.fontFamilyList:undefined '[defaultFontFamily]'!=variable.defaultFontFamily?"'"+variable.defaultFontFamily+"'":undefined )&attributes(attrs)
|
|
20
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
21
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
22
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
23
|
+
div(class="farris-feedback")
|
|
24
|
+
if(variable.titleTipsTemplate)
|
|
25
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
26
|
+
i(class="f-icon f-icon-description-tips")
|
|
27
|
+
-var tipsAttrs= {};
|
|
28
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
29
|
+
ng-template()&attributes(tipsAttrs)
|
|
30
|
+
| !{variable.titleTipsTemplate}
|