@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.
- package/README.md +5 -1
- package/lib/.DS_Store +0 -0
- package/lib/domstructure/.DS_Store +0 -0
- package/lib/domstructure/devkit/devkit.js +222 -220
- package/lib/domstructure/devkit/devkit.js.map +1 -1
- package/lib/domstructure/devkit/viewmodel/component/component.js +221 -221
- package/lib/domstructure/devkit/viewmodel/component/component.js.map +1 -1
- package/lib/domstructure/devkit/viewmodel/viewmodel.js +139 -138
- package/lib/domstructure/devkit/viewmodel/viewmodel.js.map +1 -1
- 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/domstructure/ui/data/collection/hierarchy/tree_grid.js +198 -198
- package/lib/domstructure/ui/data/collection/hierarchy/tree_grid.js.map +1 -1
- package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js +3 -3
- package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js.map +1 -1
- package/lib/domstructure/ui/list-filter/farris-list-filter.js +88 -78
- package/lib/domstructure/ui/list-filter/farris-list-filter.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-list-filter.pug +17 -12
- 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/lib/template/ui/kendo/treegrid.pug +43 -40
- package/lib/template/ui/mobileapprove/statictext-for-mobileapprove.pug +6 -4
- package/lib/utility/.DS_Store +0 -0
- package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +183 -159
- package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js.map +1 -1
- package/lib/utility/devkit/form-file-executor.js +449 -444
- package/lib/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js +59 -59
- package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js.map +1 -1
- package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js +8 -2
- package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js.map +1 -1
- package/lib/utility/template-generator/.DS_Store +0 -0
- package/lib/utility/template-generator/devkit/.DS_Store +0 -0
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +194 -189
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +259 -226
- package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +185 -181
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-template-generator.js +537 -534
- package/lib/utility/template-generator/devkit/component-template-generator.js.map +1 -1
- package/package.json +1 -1
- package/lib/mobileapp/vue/static/.npmignore +0 -13
|
@@ -1,79 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FarrisListFilter = void 0;
|
|
4
|
-
const utility_1 = require("../../../utility");
|
|
5
|
-
const common_1 = require("../common");
|
|
6
|
-
class FarrisListFilter extends common_1.BaseComponent {
|
|
7
|
-
constructor(param) {
|
|
8
|
-
super(param);
|
|
9
|
-
this.type = "FarrisListFilter";
|
|
10
|
-
let obj;
|
|
11
|
-
if (typeof param === 'string') {
|
|
12
|
-
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
obj = param;
|
|
16
|
-
}
|
|
17
|
-
if (!obj) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const keys = 'filterList,liveSearch,alLeft,autoWidth,autoLabel,query,clear,disable,filterClass,searchChange,binding,defaultEmptyValueSearch';
|
|
21
|
-
Object.keys(obj).forEach(key => {
|
|
22
|
-
if (keys.includes(key)) {
|
|
23
|
-
if (key == "query" || key == "searchChange" || key == "clear") {
|
|
24
|
-
if (obj[key]) {
|
|
25
|
-
this[key] = utility_1.EventViewModelModifier.modify(obj[key], true, true, true, utility_1.JITConstant.defaultCommandParamName);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
else if (key == "filterList") {
|
|
29
|
-
this.filterList = [];
|
|
30
|
-
if (utility_1.ToolHelper.isArray(obj[key], false)) {
|
|
31
|
-
obj[key].forEach((item) => {
|
|
32
|
-
this.filterList.push(item);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
else if (key == "binding") {
|
|
37
|
-
this.binding = utility_1.ToolHelper.createBindingWithoutDefaultValue(obj[key], this.externalComponentNameSpace, this.id);
|
|
38
|
-
}
|
|
39
|
-
else if (key == "disable") {
|
|
40
|
-
let disableValue = obj[key];
|
|
41
|
-
if (utility_1.ToolHelper.isNullOrUndefined(disableValue)) {
|
|
42
|
-
disableValue = false;
|
|
43
|
-
}
|
|
44
|
-
this.disable = utility_1.ToolHelper.createBindingWithoutDefaultValue(disableValue, this.externalComponentNameSpace, this.id);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
this
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FarrisListFilter = void 0;
|
|
4
|
+
const utility_1 = require("../../../utility");
|
|
5
|
+
const common_1 = require("../common");
|
|
6
|
+
class FarrisListFilter extends common_1.BaseComponent {
|
|
7
|
+
constructor(param) {
|
|
8
|
+
super(param);
|
|
9
|
+
this.type = "FarrisListFilter";
|
|
10
|
+
let obj;
|
|
11
|
+
if (typeof param === 'string') {
|
|
12
|
+
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
obj = param;
|
|
16
|
+
}
|
|
17
|
+
if (!obj) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const keys = 'filterList,liveSearch,alLeft,autoWidth,autoLabel,query,clear,disable,filterClass,searchChange,binding,defaultEmptyValueSearch,buttonPosition,filterText,clearButtonText,expandStatus';
|
|
21
|
+
Object.keys(obj).forEach(key => {
|
|
22
|
+
if (keys.includes(key)) {
|
|
23
|
+
if (key == "query" || key == "searchChange" || key == "clear") {
|
|
24
|
+
if (obj[key]) {
|
|
25
|
+
this[key] = utility_1.EventViewModelModifier.modify(obj[key], true, true, true, utility_1.JITConstant.defaultCommandParamName);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else if (key == "filterList") {
|
|
29
|
+
this.filterList = [];
|
|
30
|
+
if (utility_1.ToolHelper.isArray(obj[key], false)) {
|
|
31
|
+
obj[key].forEach((item) => {
|
|
32
|
+
this.filterList.push(item);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else if (key == "binding") {
|
|
37
|
+
this.binding = utility_1.ToolHelper.createBindingWithoutDefaultValue(obj[key], this.externalComponentNameSpace, this.id);
|
|
38
|
+
}
|
|
39
|
+
else if (key == "disable") {
|
|
40
|
+
let disableValue = obj[key];
|
|
41
|
+
if (utility_1.ToolHelper.isNullOrUndefined(disableValue)) {
|
|
42
|
+
disableValue = false;
|
|
43
|
+
}
|
|
44
|
+
this.disable = utility_1.ToolHelper.createBindingWithoutDefaultValue(disableValue, this.externalComponentNameSpace, this.id);
|
|
45
|
+
}
|
|
46
|
+
else if (key == "filterText") {
|
|
47
|
+
this.filterText = `${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(obj.id)}_filterText`;
|
|
48
|
+
}
|
|
49
|
+
else if (key == "clearButtonText") {
|
|
50
|
+
this.clearButtonText = `${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(obj.id)}_clearButtonText`;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
this[key] = obj[key];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
if (utility_1.ToolHelper.isArray(this.filterList, false)) {
|
|
58
|
+
this.filterListLang = "filterList" + utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(utility_1.ToolHelper.replaceSpecialCharacter(this.id));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
toJSON() {
|
|
62
|
+
const result = {
|
|
63
|
+
"id": this.id,
|
|
64
|
+
"type": "FarrisListFilter",
|
|
65
|
+
"appearance": this.appearance,
|
|
66
|
+
"filterList": this.filterList,
|
|
67
|
+
"filterListJsonString": this.filterListJsonString,
|
|
68
|
+
"liveSearch": this.liveSearch,
|
|
69
|
+
"alLeft": this.alLeft,
|
|
70
|
+
"autoWidth": this.autoWidth,
|
|
71
|
+
"autoLabel": this.autoLabel,
|
|
72
|
+
"query": this.query,
|
|
73
|
+
"clear": this.clear,
|
|
74
|
+
"disable": this.disable,
|
|
75
|
+
"filterClass": this.filterClass,
|
|
76
|
+
"defaultEmptyValueSearch": this.defaultEmptyValueSearch,
|
|
77
|
+
"buttonPosition": this.buttonPosition,
|
|
78
|
+
"filterText": this.filterText,
|
|
79
|
+
"clearButtonText": this.clearButtonText,
|
|
80
|
+
"expandStatus": this.expandStatus
|
|
81
|
+
};
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
toString() {
|
|
85
|
+
return JSON.stringify(this.toJSON());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.FarrisListFilter = FarrisListFilter;
|
|
79
89
|
//# sourceMappingURL=farris-list-filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farris-list-filter.js","sourceRoot":"","sources":["../../../../src/domstructure/ui/list-filter/farris-list-filter.ts"],"names":[],"mappings":";;;AAAA,8CAAmF;AACnF,sCAAmD;AAEnD,MAAa,gBAAiB,SAAQ,sBAAa;IAiB/C,YAAY,KAAmB;QAC3B,KAAK,CAAC,KAAK,CAAC,CAAC;QAjBjB,SAAI,GAAG,kBAAkB,CAAC;QAkBtB,IAAI,GAAQ,CAAC;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,GAAG,GAAG,oBAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;SAClD;aAAM;YACH,GAAG,GAAG,KAAK,CAAC;SACf;QAED,IAAI,CAAC,GAAG,EAAE;YACN,OAAO;SACV;QAED,MAAM,IAAI,GAAG
|
|
1
|
+
{"version":3,"file":"farris-list-filter.js","sourceRoot":"","sources":["../../../../src/domstructure/ui/list-filter/farris-list-filter.ts"],"names":[],"mappings":";;;AAAA,8CAAmF;AACnF,sCAAmD;AAEnD,MAAa,gBAAiB,SAAQ,sBAAa;IAiB/C,YAAY,KAAmB;QAC3B,KAAK,CAAC,KAAK,CAAC,CAAC;QAjBjB,SAAI,GAAG,kBAAkB,CAAC;QAkBtB,IAAI,GAAQ,CAAC;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,GAAG,GAAG,oBAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;SAClD;aAAM;YACH,GAAG,GAAG,KAAK,CAAC;SACf;QAED,IAAI,CAAC,GAAG,EAAE;YACN,OAAO;SACV;QAED,MAAM,IAAI,GAAG,sLAAsL,CAAC;QACpM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|
67
|
-
'[
|
|
68
|
-
'[
|
|
69
|
-
'[
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'[
|
|
76
|
-
'
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
-areaAttrs[
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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.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
|
+
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" 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.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
|
+
if (variable.valueChange)
|
|
42
|
+
-attrs['(valueChange)'] = variable.valueChange ;
|
|
43
|
+
|
|
44
|
+
-attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
45
|
+
|
|
46
|
+
if(variable.isTextArea)
|
|
47
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
48
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
49
|
+
else
|
|
50
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
51
|
+
if(variable.hasDefaultFocus)
|
|
52
|
+
-attrs["farris-set-focus"]="";
|
|
53
|
+
if(variable.focusState)
|
|
54
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
55
|
+
farris-adminorganization-selector(
|
|
56
|
+
adminorganization-selector-data-mapping
|
|
57
|
+
input-end-edit
|
|
58
|
+
'[searchPlaceholder]'=variable.searchPlaceholder?"'"+variable.searchPlaceholder+"'":undefined
|
|
59
|
+
'[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
60
|
+
'[primaryField]'=variable.primaryField?"'"+variable.primaryField+"'":undefined
|
|
61
|
+
'[displayField]'=variable.displayField?"'"+variable.displayField+"'":undefined
|
|
62
|
+
'[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
|
|
63
|
+
'[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
64
|
+
'[layer]'= (variable.expandLevel || variable.expandLevel==0)?""+variable.expandLevel:undefined
|
|
65
|
+
'[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
|
|
66
|
+
'[onlyDisplayCompany]'!=variable.onlyDisplayCompany?""+variable.onlyDisplayCompany.value:undefined
|
|
67
|
+
'[onlyCurrentAdminOrg]'!=variable.onlyCurrentAdminOrg?""+variable.onlyCurrentAdminOrg.value:undefined
|
|
68
|
+
'[isTableTemplate]'!=variable.isTableTemplate?""+variable.isTableTemplate.value:undefined
|
|
69
|
+
'[mapFields]'=variable.mapFields?variable.mapFields:undefined
|
|
70
|
+
'(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
|
|
71
|
+
'(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
|
|
72
|
+
'[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
|
|
73
|
+
'[activeTabId]'=variable.activeTabId?"'"+variable.activeTabId+"'":undefined
|
|
74
|
+
'[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading.value:undefined
|
|
75
|
+
'[showCheckAll]'=variable.showAllCheckBox?""+variable.showAllCheckBox.value:undefined
|
|
76
|
+
'[cascadeCheck]'=variable.cascadeCheck?""+variable.cascadeCheck.value:undefined
|
|
77
|
+
'[cascadeDown]'=variable.cascadeDown?""+variable.cascadeDown.value:undefined
|
|
78
|
+
'[cascadeUp]'=variable.cascadeUp?""+variable.cascadeUp.value:undefined
|
|
79
|
+
"[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
|
|
80
|
+
'(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
|
|
81
|
+
'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
82
|
+
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
83
|
+
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
84
|
+
|
|
85
|
+
)&attributes(attrs)
|
|
86
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
87
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
88
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
89
|
+
div(class="farris-feedback")
|
|
90
|
+
if(variable.isTextArea)
|
|
91
|
+
-var areaAttrs = {};
|
|
92
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
93
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
94
|
+
else
|
|
95
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
96
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
97
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
98
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
99
|
+
else
|
|
100
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
101
|
+
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
102
|
+
if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
|
|
103
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
104
|
+
i(class="f-icon f-icon-description-tips")
|
|
105
|
+
-var tipsAttrs= {};
|
|
106
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
107
|
+
ng-template()&attributes(tipsAttrs)
|
|
108
|
+
| !{variable.titleTipsTemplate}
|