@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
package/README.md
CHANGED
package/lib/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseComponent = void 0;
|
|
4
|
-
const appearance_1 = require("./appearance");
|
|
5
|
-
const border_1 = require("./border");
|
|
6
|
-
const font_1 = require("./font");
|
|
7
|
-
const margin_1 = require("./margin");
|
|
8
|
-
const padding_1 = require("./padding");
|
|
9
|
-
const size_1 = require("./size");
|
|
10
|
-
const static_control_1 = require("../static-control");
|
|
11
|
-
const utility_1 = require("../../../utility");
|
|
12
|
-
const running_position_enum_1 = require("../../running-position-enum");
|
|
13
|
-
const component_readonly_parameter_creator_1 = require("../../../utility/devkit/component-readonly-parameter-creator");
|
|
14
|
-
const editor_type_enum_1 = require("../../editor-type-enum");
|
|
15
|
-
class BaseComponent extends static_control_1.StaticControlAttribute {
|
|
16
|
-
constructor(param) {
|
|
17
|
-
super(param);
|
|
18
|
-
this.editorType = editor_type_enum_1.EditorTypeEnum.Default;
|
|
19
|
-
this.includeInLoopContainer = false;
|
|
20
|
-
let obj;
|
|
21
|
-
if (typeof param === 'string') {
|
|
22
|
-
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
obj = param;
|
|
26
|
-
}
|
|
27
|
-
if (!obj) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
this.externalComponentNameSpace = obj["externalComponentNameSpace"];
|
|
31
|
-
this.id = obj["id"];
|
|
32
|
-
const keys = 'visible,type,readonly,require,binding,appearance,border,font,margin,padding,size,tabindex,hasDefaultFocus,focusState,controlIndex,enableTitleTips,titleTipsTemplate,viewModel,useDisplayStyle,includeInLoopContainer';
|
|
33
|
-
Object.keys(obj).forEach(key => {
|
|
34
|
-
if (keys.includes(key)) {
|
|
35
|
-
switch (key) {
|
|
36
|
-
case 'appearance':
|
|
37
|
-
this[key] = new appearance_1.Appearance(obj[key]);
|
|
38
|
-
break;
|
|
39
|
-
case "type":
|
|
40
|
-
this.originalType = obj[key];
|
|
41
|
-
break;
|
|
42
|
-
case 'border':
|
|
43
|
-
this[key] = new border_1.Border(obj[key]);
|
|
44
|
-
break;
|
|
45
|
-
case 'font':
|
|
46
|
-
this[key] = new font_1.Font(obj[key]);
|
|
47
|
-
break;
|
|
48
|
-
case 'margin':
|
|
49
|
-
this[key] = new margin_1.Margin(obj[key]);
|
|
50
|
-
break;
|
|
51
|
-
case 'padding':
|
|
52
|
-
this[key] = new padding_1.Padding(obj[key]);
|
|
53
|
-
break;
|
|
54
|
-
case 'size':
|
|
55
|
-
this[key] = new size_1.Size(obj[key]);
|
|
56
|
-
break;
|
|
57
|
-
case "visible":
|
|
58
|
-
const visible = utility_1.ToolHelper.isEmptyValue(obj[key]) ? "''" : obj[key];
|
|
59
|
-
this[key] = utility_1.ToolHelper.createBindingWithPosition(visible, true, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
60
|
-
break;
|
|
61
|
-
case "readonly":
|
|
62
|
-
const readonly = utility_1.ToolHelper.isEmptyValue(obj[key]) ? "''" : obj[key];
|
|
63
|
-
this[key] = utility_1.ToolHelper.createBindingWithPosition(readonly, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
64
|
-
break;
|
|
65
|
-
case "require":
|
|
66
|
-
const require = utility_1.ToolHelper.isEmptyValue(obj[key]) ? "''" : obj[key];
|
|
67
|
-
this[key] = utility_1.ToolHelper.createBindingWithPosition(require, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
68
|
-
break;
|
|
69
|
-
case "enableTitleTips":
|
|
70
|
-
this[key] = utility_1.ToolHelper.createBinding(obj[key], false, this.externalComponentNameSpace, this.id);
|
|
71
|
-
break;
|
|
72
|
-
default:
|
|
73
|
-
this[key] = obj[key];
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
if (!this.visible) {
|
|
79
|
-
this.visible = utility_1.ToolHelper.createBindingWithPosition(true, true, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
80
|
-
}
|
|
81
|
-
if (!this.readonly) {
|
|
82
|
-
this.readonly = utility_1.ToolHelper.createBindingWithPosition(false, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
83
|
-
}
|
|
84
|
-
if (!this.require) {
|
|
85
|
-
this.require = utility_1.ToolHelper.createBindingWithPosition(false, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
86
|
-
}
|
|
87
|
-
if (this.readonly.isComposite) {
|
|
88
|
-
this.readonly.value = "this.viewModel.calculateReadonlyByRules(" + component_readonly_parameter_creator_1.ComponentReadonlyParameterCreator.createTitleId(this.id) + ")";
|
|
89
|
-
}
|
|
90
|
-
if (this.id) {
|
|
91
|
-
this.replacedId = utility_1.ToolHelper.replaceDotToXiaHuaXian(this.id);
|
|
92
|
-
this.referenceId = utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id);
|
|
93
|
-
}
|
|
94
|
-
if (!this.enableTitleTips || !this.enableTitleTips.value) {
|
|
95
|
-
this.titleTipsTemplate = null;
|
|
96
|
-
}
|
|
97
|
-
this.resourceId = utility_1.I18nResourceManager.generateI18nResourceId(this.id, this.resourcePrefix);
|
|
98
|
-
this.titleTipsTemplateName = utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.resourceId + "_TipsTemplate");
|
|
99
|
-
if (obj.binding) {
|
|
100
|
-
if (obj.visibleControlledByRules) {
|
|
101
|
-
this.visiblePipeSuffix = `|elementVisibility:'${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id)}':tracker['${this.id}']`;
|
|
102
|
-
}
|
|
103
|
-
if (obj.requireControlledByRules) {
|
|
104
|
-
this.requirePipeSuffix = `|elementRequired:'${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id)}':tracker['${this.id}']`;
|
|
105
|
-
}
|
|
106
|
-
if (obj.readonlyControlledByRules) {
|
|
107
|
-
this.readonlyPipeSuffix = `|elementReadonly:'${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id)}':tracker['${this.id}']`;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
toJSON() {
|
|
112
|
-
const result = {
|
|
113
|
-
"id": this.id,
|
|
114
|
-
"type": "BaseComponent",
|
|
115
|
-
"visible": this.visible,
|
|
116
|
-
"readonly": this.readonly,
|
|
117
|
-
"require": this.require,
|
|
118
|
-
"appearance": null,
|
|
119
|
-
"border": null,
|
|
120
|
-
"font": null,
|
|
121
|
-
"margin": null,
|
|
122
|
-
"padding": null,
|
|
123
|
-
"size": null,
|
|
124
|
-
"tabindex": this.tabindex,
|
|
125
|
-
"hasDefaultFocus": this.hasDefaultFocus,
|
|
126
|
-
"focusState": this.focusState
|
|
127
|
-
};
|
|
128
|
-
const keys = 'appearance,border,font,margin,padding,size,visible,readonly,require';
|
|
129
|
-
keys.split(',').forEach(key => {
|
|
130
|
-
if (this[key]) {
|
|
131
|
-
try {
|
|
132
|
-
result[key] = this[key].toJSON();
|
|
133
|
-
}
|
|
134
|
-
catch (e) {
|
|
135
|
-
console.log(key);
|
|
136
|
-
throw e;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
return Object.assign({}, super.toJSON(), result);
|
|
141
|
-
}
|
|
142
|
-
toString() {
|
|
143
|
-
return JSON.stringify(this.toJSON());
|
|
144
|
-
}
|
|
145
|
-
toAbstractDom() {
|
|
146
|
-
const abstractDOM = {
|
|
147
|
-
"type": "BaseComponent",
|
|
148
|
-
"visible": (this.visible !== undefined && this.visible !== null) ? this.visible : true
|
|
149
|
-
};
|
|
150
|
-
const keys = 'id,type,visible,size,readonly';
|
|
151
|
-
keys.split(',').forEach(key => {
|
|
152
|
-
if (this[key] !== null && this[key] !== undefined && this[key] !== '') {
|
|
153
|
-
switch (key) {
|
|
154
|
-
default:
|
|
155
|
-
abstractDOM[key] = this[key];
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
return Object.assign({}, super.toAbstractDom(), abstractDOM);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
exports.BaseComponent = BaseComponent;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseComponent = void 0;
|
|
4
|
+
const appearance_1 = require("./appearance");
|
|
5
|
+
const border_1 = require("./border");
|
|
6
|
+
const font_1 = require("./font");
|
|
7
|
+
const margin_1 = require("./margin");
|
|
8
|
+
const padding_1 = require("./padding");
|
|
9
|
+
const size_1 = require("./size");
|
|
10
|
+
const static_control_1 = require("../static-control");
|
|
11
|
+
const utility_1 = require("../../../utility");
|
|
12
|
+
const running_position_enum_1 = require("../../running-position-enum");
|
|
13
|
+
const component_readonly_parameter_creator_1 = require("../../../utility/devkit/component-readonly-parameter-creator");
|
|
14
|
+
const editor_type_enum_1 = require("../../editor-type-enum");
|
|
15
|
+
class BaseComponent extends static_control_1.StaticControlAttribute {
|
|
16
|
+
constructor(param) {
|
|
17
|
+
super(param);
|
|
18
|
+
this.editorType = editor_type_enum_1.EditorTypeEnum.Default;
|
|
19
|
+
this.includeInLoopContainer = false;
|
|
20
|
+
let obj;
|
|
21
|
+
if (typeof param === 'string') {
|
|
22
|
+
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
obj = param;
|
|
26
|
+
}
|
|
27
|
+
if (!obj) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.externalComponentNameSpace = obj["externalComponentNameSpace"];
|
|
31
|
+
this.id = obj["id"];
|
|
32
|
+
const keys = 'visible,type,readonly,require,binding,appearance,border,font,margin,padding,size,tabindex,hasDefaultFocus,focusState,controlIndex,enableTitleTips,titleTipsTemplate,titleTipsPosition,viewModel,useDisplayStyle,includeInLoopContainer';
|
|
33
|
+
Object.keys(obj).forEach(key => {
|
|
34
|
+
if (keys.includes(key)) {
|
|
35
|
+
switch (key) {
|
|
36
|
+
case 'appearance':
|
|
37
|
+
this[key] = new appearance_1.Appearance(obj[key]);
|
|
38
|
+
break;
|
|
39
|
+
case "type":
|
|
40
|
+
this.originalType = obj[key];
|
|
41
|
+
break;
|
|
42
|
+
case 'border':
|
|
43
|
+
this[key] = new border_1.Border(obj[key]);
|
|
44
|
+
break;
|
|
45
|
+
case 'font':
|
|
46
|
+
this[key] = new font_1.Font(obj[key]);
|
|
47
|
+
break;
|
|
48
|
+
case 'margin':
|
|
49
|
+
this[key] = new margin_1.Margin(obj[key]);
|
|
50
|
+
break;
|
|
51
|
+
case 'padding':
|
|
52
|
+
this[key] = new padding_1.Padding(obj[key]);
|
|
53
|
+
break;
|
|
54
|
+
case 'size':
|
|
55
|
+
this[key] = new size_1.Size(obj[key]);
|
|
56
|
+
break;
|
|
57
|
+
case "visible":
|
|
58
|
+
const visible = utility_1.ToolHelper.isEmptyValue(obj[key]) ? "''" : obj[key];
|
|
59
|
+
this[key] = utility_1.ToolHelper.createBindingWithPosition(visible, true, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
60
|
+
break;
|
|
61
|
+
case "readonly":
|
|
62
|
+
const readonly = utility_1.ToolHelper.isEmptyValue(obj[key]) ? "''" : obj[key];
|
|
63
|
+
this[key] = utility_1.ToolHelper.createBindingWithPosition(readonly, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
64
|
+
break;
|
|
65
|
+
case "require":
|
|
66
|
+
const require = utility_1.ToolHelper.isEmptyValue(obj[key]) ? "''" : obj[key];
|
|
67
|
+
this[key] = utility_1.ToolHelper.createBindingWithPosition(require, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
68
|
+
break;
|
|
69
|
+
case "enableTitleTips":
|
|
70
|
+
this[key] = utility_1.ToolHelper.createBinding(obj[key], false, this.externalComponentNameSpace, this.id);
|
|
71
|
+
break;
|
|
72
|
+
default:
|
|
73
|
+
this[key] = obj[key];
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
if (!this.visible) {
|
|
79
|
+
this.visible = utility_1.ToolHelper.createBindingWithPosition(true, true, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
80
|
+
}
|
|
81
|
+
if (!this.readonly) {
|
|
82
|
+
this.readonly = utility_1.ToolHelper.createBindingWithPosition(false, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
83
|
+
}
|
|
84
|
+
if (!this.require) {
|
|
85
|
+
this.require = utility_1.ToolHelper.createBindingWithPosition(false, false, this.externalComponentNameSpace, running_position_enum_1.RunningPositionEnum.card, this.id);
|
|
86
|
+
}
|
|
87
|
+
if (this.readonly.isComposite) {
|
|
88
|
+
this.readonly.value = "this.viewModel.calculateReadonlyByRules(" + component_readonly_parameter_creator_1.ComponentReadonlyParameterCreator.createTitleId(this.id) + ")";
|
|
89
|
+
}
|
|
90
|
+
if (this.id) {
|
|
91
|
+
this.replacedId = utility_1.ToolHelper.replaceDotToXiaHuaXian(this.id);
|
|
92
|
+
this.referenceId = utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id);
|
|
93
|
+
}
|
|
94
|
+
if (!this.enableTitleTips || !this.enableTitleTips.value) {
|
|
95
|
+
this.titleTipsTemplate = null;
|
|
96
|
+
}
|
|
97
|
+
this.resourceId = utility_1.I18nResourceManager.generateI18nResourceId(this.id, this.resourcePrefix);
|
|
98
|
+
this.titleTipsTemplateName = utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.resourceId + "_TipsTemplate");
|
|
99
|
+
if (obj.binding) {
|
|
100
|
+
if (obj.visibleControlledByRules) {
|
|
101
|
+
this.visiblePipeSuffix = `|elementVisibility:'${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id)}':tracker['${this.id}']`;
|
|
102
|
+
}
|
|
103
|
+
if (obj.requireControlledByRules) {
|
|
104
|
+
this.requirePipeSuffix = `|elementRequired:'${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id)}':tracker['${this.id}']`;
|
|
105
|
+
}
|
|
106
|
+
if (obj.readonlyControlledByRules) {
|
|
107
|
+
this.readonlyPipeSuffix = `|elementReadonly:'${utility_1.ToolHelper.replaceHengXianAndDotToXiaHuaXian(this.id)}':tracker['${this.id}']`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
toJSON() {
|
|
112
|
+
const result = {
|
|
113
|
+
"id": this.id,
|
|
114
|
+
"type": "BaseComponent",
|
|
115
|
+
"visible": this.visible,
|
|
116
|
+
"readonly": this.readonly,
|
|
117
|
+
"require": this.require,
|
|
118
|
+
"appearance": null,
|
|
119
|
+
"border": null,
|
|
120
|
+
"font": null,
|
|
121
|
+
"margin": null,
|
|
122
|
+
"padding": null,
|
|
123
|
+
"size": null,
|
|
124
|
+
"tabindex": this.tabindex,
|
|
125
|
+
"hasDefaultFocus": this.hasDefaultFocus,
|
|
126
|
+
"focusState": this.focusState
|
|
127
|
+
};
|
|
128
|
+
const keys = 'appearance,border,font,margin,padding,size,visible,readonly,require';
|
|
129
|
+
keys.split(',').forEach(key => {
|
|
130
|
+
if (this[key]) {
|
|
131
|
+
try {
|
|
132
|
+
result[key] = this[key].toJSON();
|
|
133
|
+
}
|
|
134
|
+
catch (e) {
|
|
135
|
+
console.log(key);
|
|
136
|
+
throw e;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
return Object.assign({}, super.toJSON(), result);
|
|
141
|
+
}
|
|
142
|
+
toString() {
|
|
143
|
+
return JSON.stringify(this.toJSON());
|
|
144
|
+
}
|
|
145
|
+
toAbstractDom() {
|
|
146
|
+
const abstractDOM = {
|
|
147
|
+
"type": "BaseComponent",
|
|
148
|
+
"visible": (this.visible !== undefined && this.visible !== null) ? this.visible : true
|
|
149
|
+
};
|
|
150
|
+
const keys = 'id,type,visible,size,readonly';
|
|
151
|
+
keys.split(',').forEach(key => {
|
|
152
|
+
if (this[key] !== null && this[key] !== undefined && this[key] !== '') {
|
|
153
|
+
switch (key) {
|
|
154
|
+
default:
|
|
155
|
+
abstractDOM[key] = this[key];
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
return Object.assign({}, super.toAbstractDom(), abstractDOM);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
exports.BaseComponent = BaseComponent;
|
|
164
164
|
//# sourceMappingURL=basecomponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basecomponent.js","sourceRoot":"","sources":["../../../../src/domstructure/ui/common/basecomponent.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,qCAAkC;AAClC,iCAA8B;AAC9B,qCAAkC;AAClC,uCAAoC;AACpC,iCAA8B;AAE9B,sDAA2D;AAC3D,8CAAmE;AAGnE,uEAAkE;AAClE,uHAAiH;AACjH,6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|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
'[
|
|
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}
|