@farris/jit-engine 1.4.41 → 1.4.42

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
@@ -1,3 +1,7 @@
1
+ 1.4.42
2
+
3
+ 外部集成服务组件更新
4
+
1
5
  1.4.41
2
6
 
3
7
  移动端支持关联审批控件
package/bin/index.js CHANGED
File without changes
@@ -1,48 +1,55 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalServiceLookup = void 0;
4
- const utility_1 = require("../../../../../../../../utility");
5
- const reference_field_1 = require("./reference_field");
6
- class ExternalServiceLookup extends reference_field_1.ReferenceField {
7
- constructor(param) {
8
- super(param);
9
- let obj;
10
- if (typeof param === 'string') {
11
- obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
12
- }
13
- else {
14
- obj = param;
15
- }
16
- if (!obj) {
17
- return;
18
- }
19
- const inputPropKeys = [
20
- 'columns',
21
- 'mapFields',
22
- 'searchFields',
23
- 'searchAnyField',
24
- 'striped',
25
- 'uri',
26
- 'separator',
27
- 'multiSelect',
28
- 'pageList',
29
- 'pageSize',
30
- 'pageIndex',
31
- 'pagination',
32
- 'idField',
33
- 'dialogTitle',
34
- 'enableClear',
35
- 'showFilterBar',
36
- ];
37
- const keys = '' + inputPropKeys.join(',');
38
- Object.keys(obj).forEach(key => {
39
- if (keys.includes(key)) {
40
- this[key] = obj[key];
41
- }
42
- });
43
- this.dialogTitleLang = `ExternalServiceLookup${utility_1.ToolHelper.replaceSpecialCharacter(this.id)}DialogTitle`;
44
- this.placeHolderResourceId = utility_1.I18nResourceManager.generatePlaceHolderResourceId("LookupEdit", this.id, this.resourcePrefix);
45
- }
46
- }
47
- exports.ExternalServiceLookup = ExternalServiceLookup;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalServiceLookup = void 0;
4
+ const utility_1 = require("../../../../../../../../utility");
5
+ const reference_field_1 = require("./reference_field");
6
+ class ExternalServiceLookup extends reference_field_1.ReferenceField {
7
+ constructor(param) {
8
+ super(param);
9
+ let obj;
10
+ if (typeof param === 'string') {
11
+ obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
12
+ }
13
+ else {
14
+ obj = param;
15
+ }
16
+ if (!obj) {
17
+ return;
18
+ }
19
+ const inputPropKeys = [
20
+ 'columns',
21
+ 'mapFields',
22
+ 'searchFields',
23
+ 'searchAnyField',
24
+ 'striped',
25
+ 'uri',
26
+ 'separator',
27
+ 'multiSelect',
28
+ 'pageList',
29
+ 'pageSize',
30
+ 'pageIndex',
31
+ 'pagination',
32
+ 'idField',
33
+ 'dialogTitle',
34
+ 'enableClear',
35
+ 'showFilterBar',
36
+ 'lookupPicked',
37
+ "customRequestParams",
38
+ ];
39
+ const keys = '' + inputPropKeys.join(',');
40
+ Object.keys(obj).forEach(key => {
41
+ if (keys.includes(key)) {
42
+ if (['lookupPicked'].includes(key)) {
43
+ this['lookupPicked'] = `${utility_1.ToolHelper.toCamelCase(utility_1.ToolHelper.tf(this.id))}LookupPicked`;
44
+ }
45
+ else {
46
+ this[key] = obj[key];
47
+ }
48
+ }
49
+ });
50
+ this.dialogTitleLang = `ExternalServiceLookup${utility_1.ToolHelper.replaceSpecialCharacter(this.id)}DialogTitle`;
51
+ this.placeHolderResourceId = utility_1.I18nResourceManager.generatePlaceHolderResourceId("LookupEdit", this.id, this.resourcePrefix);
52
+ }
53
+ }
54
+ exports.ExternalServiceLookup = ExternalServiceLookup;
48
55
  //# sourceMappingURL=external-service-lookup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"external-service-lookup.js","sourceRoot":"","sources":["../../../../../../../../../src/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.ts"],"names":[],"mappings":";;;AAAA,6DAAkF;AAClF,uDAAmD;AAEnD,MAAa,qBAAsB,SAAQ,gCAAc;IAuBvD,YAAY,KAAmB;QAC7B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,GAAQ,CAAC;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,GAAG,oBAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;SAChD;aAAM;YACL,GAAG,GAAG,KAAK,CAAC;SACb;QAED,IAAI,CAAC,GAAG,EAAE;YACR,OAAO;SACR;QACD,MAAM,aAAa,GAAG;YACpB,SAAS;YACT,WAAW;YACX,cAAc;YACd,gBAAgB;YAChB,SAAS;YACT,KAAK;YACL,WAAW;YACX,aAAa;YACb,UAAU;YACV,UAAU;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YAET,aAAa;YAEb,aAAa;YACb,eAAe;SAehB,CAAC;QAEF,MAAM,IAAI,GAAG,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC7B,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACtB,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;aACtB;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,GAAG,wBAAwB,oBAAU,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;QAExG,IAAI,CAAC,qBAAqB,GAAG,6BAAmB,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAC7H,CAAC;CAEF;AAnFD,sDAmFC"}
1
+ {"version":3,"file":"external-service-lookup.js","sourceRoot":"","sources":["../../../../../../../../../src/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.ts"],"names":[],"mappings":";;;AAAA,6DAAkF;AAClF,uDAAmD;AAEnD,MAAa,qBAAsB,SAAQ,gCAAc;IAuBvD,YAAY,KAAmB;QAC7B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,GAAQ,CAAC;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,GAAG,oBAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;SAChD;aAAM;YACL,GAAG,GAAG,KAAK,CAAC;SACb;QAED,IAAI,CAAC,GAAG,EAAE;YACR,OAAO;SACR;QACD,MAAM,aAAa,GAAG;YACpB,SAAS;YACT,WAAW;YACX,cAAc;YACd,gBAAgB;YAChB,SAAS;YACT,KAAK;YACL,WAAW;YACX,aAAa;YACb,UAAU;YACV,UAAU;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YAET,aAAa;YAEb,aAAa;YACb,eAAe;YAEf,cAAc;YACd,qBAAqB;SActB,CAAC;QAEF,MAAM,IAAI,GAAG,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC7B,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACtB,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAClC,IAAI,CAAC,cAAc,CAAC,GAAG,GAAG,oBAAU,CAAC,WAAW,CAAC,oBAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC;iBACxF;qBAAM;oBACL,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;iBACtB;aACF;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,GAAG,wBAAwB,oBAAU,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;QAExG,IAAI,CAAC,qBAAqB,GAAG,6BAAmB,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAC7H,CAAC;CAEF;AAzFD,sDAyFC"}
@@ -1,183 +1,183 @@
1
- //- -var variable={};
2
-
3
- -var holdPlaceOuterAttrs={};
4
- -var holdPlaceInnerAttrs={};
5
- -var holdPlaceEmptyAttrs={};
6
- if(variable.holdPlace)
7
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
8
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
9
- else
10
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
11
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
- if(variable.holdPlace)
13
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
16
- if (variable.title)
17
- -var titleValue=variable.isStaticTitle?("'"+variable.resourceId+"'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
18
- if(variable.linkedLabelEnabled)
19
- 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)
20
- if (variable.require)
21
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
22
- span(class="farris-label-text") {{#{titleValue}}}
23
- else
24
- label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
25
- if (variable.require)
26
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
27
- span(class="farris-label-text") {{#{titleValue}}}
28
- div(class="farris-input-wrap")
29
- -var attrs={};
30
- if (variable.binding && variable.binding.type=='Variable')
31
- -attrs['[(UIStateBinding)]']=variable.binding.value;
32
- -attrs['name']=variable.replacedId;
33
- else
34
- -attrs['formControlName']=(variable.binding && variable.binding.path);
35
- if (variable.lookupPicking)
36
- -attrs['[dictPicking]']=variable.lookupPicking;
37
- if (variable.lookupPicked)
38
- -attrs['[dictPicked]']=variable.lookupPicked;
39
- if (variable.beforeSelectData)
40
- -attrs['[beforeSelectData]']=variable.beforeSelectData;
41
- if (variable.readonly)
42
- -attrs['[readonly]']=variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"";
43
- if (variable.placeHolder&&variable.placeHolderResourceId)
44
- -attrs['placeholder']="{{'"+variable.placeHolderResourceId+"'|lang:lang:'"+variable.placeHolder+"'}}";
45
- if(variable.isTextArea)
46
- if(variable.readonly && variable.readonly.isComposite)
47
- -attrs["*ngIf"]="!"+variable.readonly.value;
48
- else
49
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
50
- if(variable.hasDefaultFocus)
51
- -attrs["farris-set-focus"]="";
52
- if(variable.focusState)
53
- -attrs["[focusState]"]=variable.focusState+"";
54
- -attrs['#'+variable.replacedId]="";
55
- farris-lookup-light(
56
- id=variable.replacedId
57
- '[columns]'=variable.columns?variable.columns:[]
58
- '[light-mapping]'=variable.mapFields?variable.mapFields:undefined
59
- '[striped]'=!(variable.striped===null||variable.striped===undefined)?variable.striped+"":undefined
60
-
61
- '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
62
- '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
63
- '[displayType]'=(variable.displayType!=null)?"'"+variable.displayType+"'":undefined
64
- '[multiSelect]'=(variable.multiSelect!=null)?variable.multiSelect+"":undefined
65
- '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
66
- '[pageSize]'=variable.pageSize?(variable.pageSize||20):undefined
67
- '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
68
- '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
69
- '[textField]'=(variable.textField!=null)?"'"+variable.textField+"'":undefined
70
- '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
71
- '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
72
- '[disabled]'!=variable.disable?variable.disable.toString():undefined
73
- '[pageIndex]'=(variable.pageIndex||1)
74
- '[showFilterBar]'=(variable.showFilterBar||variable.showFilterBar===false)?""+variable.showFilterBar:undefined
75
- '[valueField]'=(variable.valueField!=null)?"'"+variable.valueField+"'":undefined
76
- )&attributes(attrs)
77
-
78
- //- farris-lookup-light(
79
- //- id=variable.replacedId
80
- //- '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
81
- //- '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
82
- //- '[displayType]'="'"+variable.displayType+"'"
83
- //- '[multiSelect]'=(variable.multiSelect)+""
84
- //- '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
85
- //- '[pageSize]'=(variable.pageSize||20)
86
- //- '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
87
- //- '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
88
- //- '[textField]'="'"+variable.textField+"'"
89
- //- '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
90
- //- '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
91
- //- '[disabled]'!=variable.disable?variable.disable.toString():undefined
92
- //- ============================================================================================================
93
- //- "input-end-edit"
94
- //- 'lookupGridRef'
95
- //- 'data-mapping'
96
- //- ============================================================================================================
97
- //- '[pageIndex]'=(variable.pageIndex||1)
98
- //- '[valueField]'="'"+variable.valueField+"'"
99
- //- '[mapFields]'=variable.mapFields?variable.mapFields:undefined
100
- //- ============================================================================================================
101
- //- ============================================================================================================
102
- //- '[useTip]'=(variable.useTip||variable.useTip===false)?variable.useTip+"":undefined
103
- //- '[useFavorite]'=(variable.useFavorite||variable.useFavorite===false)?variable.useFavorite+"":undefined
104
- //- '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
105
- //- '[editable]'=(variable.editable||variable.editable===false)?""+variable.editable:undefined
106
- //- '[showMaxButton]'=(variable.showMaxButton==null||variable.showMaxButton===undefined)?"true":variable.showMaxButton+""
107
- //- '[showCloseButton]'=(variable.showCloseButton==null||variable.showCloseButton===undefined)?"true":variable.showCloseButton+""
108
- //- '[resizable]'=(variable.resizable===null||variable.resizable===undefined)?"true":variable.resizable+""
109
- //- '(clear)'=variable.clear?variable.clear:undefined
110
- //- '[context]'=variable.context?variable.context:undefined
111
- //- '[enableToSelect]'=(variable.enableToSelect||variable.enableToSelect===false)?""+variable.enableToSelect:undefined
112
- //- '[expandLevel]'=""+variable.expandLevel
113
- //- '[isRecordSize]'=(variable.isRecordSize||variable.isRecordSize===false)?""+variable.isRecordSize:undefined
114
- //- '[enableFullTree]'=(variable.enableFullTree||variable.enableFullTree===false)?""+variable.enableFullTree:undefined
115
- //- '[loadTreeDataType]'=variable.loadTreeDataType?"'"+variable.loadTreeDataType+"'":undefined
116
- //- '[tab-index]'=(variable.tabindex||variable.tabindex===0)?""+variable.tabindex:undefined
117
- //- '[dialogWidth]'=variable.panelWidth?""+variable.panelWidth:undefined
118
- //- '[dialogHeight]'=variable.panelHeight?""+variable.panelHeight:undefined
119
- //- '[enableCascade]'=variable.enableCascade?""+variable.enableCascade:undefined
120
- //- '[cascadeStatus]'=variable.cascadeStatus?"'"+variable.cascadeStatus+"'":undefined
121
- //- '[useExtendInfo]'=(variable.useExtendInfo||variable.useExtendInfo===false)?""+variable.useExtendInfo:undefined
122
- //- '[extInfoFields]'=variable.extInfoFields?"'"+variable.extInfoFields+"'":undefined
123
- //- '[extInfoFormatter]'=variable.extInfoFormatterName?""+variable.extInfoFormatterName:undefined
124
- //- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
125
- //- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
126
- //- '[customFormatter]'=variable.customFormatterName?""+variable.customFormatterName:undefined
127
- //- '[selectFirstInNav]'=variable.selectFirstInNav?""+variable.selectFirstInNav.value:undefined
128
- //- '[loadDataWhenOpen]'=variable.loadDataWhenOpen?""+variable.loadDataWhenOpen.value:undefined
129
- //- '[customNavFormatter]'=variable.customNavFormatterName?""+variable.customNavFormatterName:undefined
130
- //- '[treeInfo]'=variable.treeInfo?variable.treeInfo:undefined
131
- //- '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
132
- //- '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
133
- //- '[treeTableOptions]'=variable.treeTableOptions?variable.treeTableOptions:undefined
134
- //- '[showCheckAll]'=variable.showCheckAll?""+variable.showCheckAll.value:undefined
135
- //- '[quickSelect]'=variable.quickSelectName?""+variable.quickSelectName:undefined
136
- //- '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined
137
- //- '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined
138
- //- '[showNavigation]'=variable.showNavigation?""+variable.showNavigation.value:undefined
139
- //- '[showCascadeControl]'=variable.showCascadeControl?""+variable.showCascadeControl.value:undefined
140
- //- '[showSelected]'=variable.showSelected?""+variable.showSelected.value:undefined
141
- //- '[useNewLayout]'=variable.useNewLayout?""+variable.useNewLayout.value:undefined
142
- //- '[enableMultiFieldSearch]'=variable.enableMultiFieldSearch?""+variable.enableMultiFieldSearch.value:undefined
143
- //- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
144
- //- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
145
- //- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
146
- //- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
147
- //- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
148
- //- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
149
- //- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
150
- //- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined
151
- //- )&attributes(attrs)
152
-
153
- if (variable.needValid && variable.binding && variable.binding.path)
154
- -var path=`viewModel.form.getCardControlErrors('${variable.binding.path}')`
155
- validationMessage('[errors]'!=`${path}`
156
- '[hidden]'="!viewModel.form.isShowValidationMsg" )
157
- div(class="farris-feedback")
158
- if(variable.isTextArea)
159
- -var areaAttrs={};
160
- if(variable.readonly && variable.readonly.isComposite)
161
- -areaAttrs["*ngIf"]=variable.readonly.value;
162
- else
163
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
164
- if (variable.binding && variable.binding.type=='Variable')
165
- -areaAttrs['[(ngModel)]']=variable.binding.value;
166
- -areaAttrs['[ngModelOptions]']="{standalone:true}";
167
- else
168
- -areaAttrs['formControlName']=(variable.binding && variable.binding.path);
169
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
170
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
171
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
172
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
173
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
174
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
175
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
176
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
177
- if(variable.titleTipsTemplate)
178
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
179
- i(class="f-icon f-icon-description-tips")
180
- -var tipsAttrs={};
181
- -tipsAttrs['#'+variable.titleTipsTemplateName]="";
182
- ng-template()&attributes(tipsAttrs)
183
- |!{variable.titleTipsTemplate}
1
+ //- -var variable={};
2
+
3
+ -var holdPlaceOuterAttrs={};
4
+ -var holdPlaceInnerAttrs={};
5
+ -var holdPlaceEmptyAttrs={};
6
+ if(variable.holdPlace)
7
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
8
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
9
+ else
10
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
11
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
+ if(variable.holdPlace)
13
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
16
+ if (variable.title)
17
+ -var titleValue=variable.isStaticTitle?("'"+variable.resourceId+"'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
18
+ if(variable.linkedLabelEnabled)
19
+ 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)
20
+ if (variable.require)
21
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
22
+ span(class="farris-label-text") {{#{titleValue}}}
23
+ else
24
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
25
+ if (variable.require)
26
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
27
+ span(class="farris-label-text") {{#{titleValue}}}
28
+ div(class="farris-input-wrap")
29
+ -var attrs={};
30
+ if (variable.binding && variable.binding.type=='Variable')
31
+ -attrs['[(UIStateBinding)]']=variable.binding.value;
32
+ -attrs['name']=variable.replacedId;
33
+ else
34
+ -attrs['formControlName']=(variable.binding && variable.binding.path);
35
+ if (variable.lookupPicking)
36
+ -attrs['[dictPicking]']=variable.lookupPicking;
37
+ if (variable.lookupPicked)
38
+ -attrs['[dictPicked]']=variable.lookupPicked;
39
+ if (variable.beforeSelectData)
40
+ -attrs['[beforeSelectData]']=variable.beforeSelectData;
41
+ if (variable.readonly)
42
+ -attrs['[readonly]']=variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"";
43
+ if (variable.placeHolder&&variable.placeHolderResourceId)
44
+ -attrs['placeholder']="{{'"+variable.placeHolderResourceId+"'|lang:lang:'"+variable.placeHolder+"'}}";
45
+ if(variable.isTextArea)
46
+ if(variable.readonly && variable.readonly.isComposite)
47
+ -attrs["*ngIf"]="!"+variable.readonly.value;
48
+ else
49
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
50
+ if(variable.hasDefaultFocus)
51
+ -attrs["farris-set-focus"]="";
52
+ if(variable.focusState)
53
+ -attrs["[focusState]"]=variable.focusState+"";
54
+ -attrs['#'+variable.replacedId]="";
55
+ farris-lookup-light(
56
+ id=variable.replacedId
57
+ '[custom-params]'= variable.customRequestParams?variable.customRequestParams:undefined
58
+ '[columns]'=variable.columns?variable.columns:[]
59
+ '[light-mapping]'=variable.mapFields?variable.mapFields:undefined
60
+ '[striped]'=!(variable.striped===null||variable.striped===undefined)?variable.striped+"":undefined
61
+ '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
62
+ '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
63
+ '[displayType]'=(variable.displayType!=null)?"'"+variable.displayType+"'":undefined
64
+ '[multiSelect]'=(variable.multiSelect!=null)?variable.multiSelect+"":undefined
65
+ '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
66
+ '[pageSize]'=variable.pageSize?(variable.pageSize||20):undefined
67
+ '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
68
+ '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
69
+ '[textField]'=(variable.textField!=null)?"'"+variable.textField+"'":undefined
70
+ '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
71
+ '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
72
+ '[disabled]'!=variable.disable?variable.disable.toString():undefined
73
+ '[pageIndex]'=(variable.pageIndex||1)
74
+ '[showFilterBar]'=(variable.showFilterBar||variable.showFilterBar===false)?""+variable.showFilterBar:undefined
75
+ '[valueField]'=(variable.valueField!=null)?"'"+variable.valueField+"'":undefined
76
+ )&attributes(attrs)
77
+
78
+ //- farris-lookup-light(
79
+ //- id=variable.replacedId
80
+ //- '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
81
+ //- '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
82
+ //- '[displayType]'="'"+variable.displayType+"'"
83
+ //- '[multiSelect]'=(variable.multiSelect)+""
84
+ //- '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
85
+ //- '[pageSize]'=(variable.pageSize||20)
86
+ //- '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
87
+ //- '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
88
+ //- '[textField]'="'"+variable.textField+"'"
89
+ //- '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
90
+ //- '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
91
+ //- '[disabled]'!=variable.disable?variable.disable.toString():undefined
92
+ //- ============================================================================================================
93
+ //- "input-end-edit"
94
+ //- 'lookupGridRef'
95
+ //- 'data-mapping'
96
+ //- ============================================================================================================
97
+ //- '[pageIndex]'=(variable.pageIndex||1)
98
+ //- '[valueField]'="'"+variable.valueField+"'"
99
+ //- '[mapFields]'=variable.mapFields?variable.mapFields:undefined
100
+ //- ============================================================================================================
101
+ //- ============================================================================================================
102
+ //- '[useTip]'=(variable.useTip||variable.useTip===false)?variable.useTip+"":undefined
103
+ //- '[useFavorite]'=(variable.useFavorite||variable.useFavorite===false)?variable.useFavorite+"":undefined
104
+ //- '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
105
+ //- '[editable]'=(variable.editable||variable.editable===false)?""+variable.editable:undefined
106
+ //- '[showMaxButton]'=(variable.showMaxButton==null||variable.showMaxButton===undefined)?"true":variable.showMaxButton+""
107
+ //- '[showCloseButton]'=(variable.showCloseButton==null||variable.showCloseButton===undefined)?"true":variable.showCloseButton+""
108
+ //- '[resizable]'=(variable.resizable===null||variable.resizable===undefined)?"true":variable.resizable+""
109
+ //- '(clear)'=variable.clear?variable.clear:undefined
110
+ //- '[context]'=variable.context?variable.context:undefined
111
+ //- '[enableToSelect]'=(variable.enableToSelect||variable.enableToSelect===false)?""+variable.enableToSelect:undefined
112
+ //- '[expandLevel]'=""+variable.expandLevel
113
+ //- '[isRecordSize]'=(variable.isRecordSize||variable.isRecordSize===false)?""+variable.isRecordSize:undefined
114
+ //- '[enableFullTree]'=(variable.enableFullTree||variable.enableFullTree===false)?""+variable.enableFullTree:undefined
115
+ //- '[loadTreeDataType]'=variable.loadTreeDataType?"'"+variable.loadTreeDataType+"'":undefined
116
+ //- '[tab-index]'=(variable.tabindex||variable.tabindex===0)?""+variable.tabindex:undefined
117
+ //- '[dialogWidth]'=variable.panelWidth?""+variable.panelWidth:undefined
118
+ //- '[dialogHeight]'=variable.panelHeight?""+variable.panelHeight:undefined
119
+ //- '[enableCascade]'=variable.enableCascade?""+variable.enableCascade:undefined
120
+ //- '[cascadeStatus]'=variable.cascadeStatus?"'"+variable.cascadeStatus+"'":undefined
121
+ //- '[useExtendInfo]'=(variable.useExtendInfo||variable.useExtendInfo===false)?""+variable.useExtendInfo:undefined
122
+ //- '[extInfoFields]'=variable.extInfoFields?"'"+variable.extInfoFields+"'":undefined
123
+ //- '[extInfoFormatter]'=variable.extInfoFormatterName?""+variable.extInfoFormatterName:undefined
124
+ //- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
125
+ //- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
126
+ //- '[customFormatter]'=variable.customFormatterName?""+variable.customFormatterName:undefined
127
+ //- '[selectFirstInNav]'=variable.selectFirstInNav?""+variable.selectFirstInNav.value:undefined
128
+ //- '[loadDataWhenOpen]'=variable.loadDataWhenOpen?""+variable.loadDataWhenOpen.value:undefined
129
+ //- '[customNavFormatter]'=variable.customNavFormatterName?""+variable.customNavFormatterName:undefined
130
+ //- '[treeInfo]'=variable.treeInfo?variable.treeInfo:undefined
131
+ //- '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
132
+ //- '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
133
+ //- '[treeTableOptions]'=variable.treeTableOptions?variable.treeTableOptions:undefined
134
+ //- '[showCheckAll]'=variable.showCheckAll?""+variable.showCheckAll.value:undefined
135
+ //- '[quickSelect]'=variable.quickSelectName?""+variable.quickSelectName:undefined
136
+ //- '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined
137
+ //- '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined
138
+ //- '[showNavigation]'=variable.showNavigation?""+variable.showNavigation.value:undefined
139
+ //- '[showCascadeControl]'=variable.showCascadeControl?""+variable.showCascadeControl.value:undefined
140
+ //- '[showSelected]'=variable.showSelected?""+variable.showSelected.value:undefined
141
+ //- '[useNewLayout]'=variable.useNewLayout?""+variable.useNewLayout.value:undefined
142
+ //- '[enableMultiFieldSearch]'=variable.enableMultiFieldSearch?""+variable.enableMultiFieldSearch.value:undefined
143
+ //- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
144
+ //- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
145
+ //- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
146
+ //- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
147
+ //- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
148
+ //- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
149
+ //- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
150
+ //- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined
151
+ //- )&attributes(attrs)
152
+
153
+ if (variable.needValid && variable.binding && variable.binding.path)
154
+ -var path=`viewModel.form.getCardControlErrors('${variable.binding.path}')`
155
+ validationMessage('[errors]'!=`${path}`
156
+ '[hidden]'="!viewModel.form.isShowValidationMsg" )
157
+ div(class="farris-feedback")
158
+ if(variable.isTextArea)
159
+ -var areaAttrs={};
160
+ if(variable.readonly && variable.readonly.isComposite)
161
+ -areaAttrs["*ngIf"]=variable.readonly.value;
162
+ else
163
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
164
+ if (variable.binding && variable.binding.type=='Variable')
165
+ -areaAttrs['[(ngModel)]']=variable.binding.value;
166
+ -areaAttrs['[ngModelOptions]']="{standalone:true}";
167
+ else
168
+ -areaAttrs['formControlName']=(variable.binding && variable.binding.path);
169
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
170
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
171
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
172
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
173
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
174
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
175
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
176
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
177
+ if(variable.titleTipsTemplate)
178
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
179
+ i(class="f-icon f-icon-description-tips")
180
+ -var tipsAttrs={};
181
+ -tipsAttrs['#'+variable.titleTipsTemplateName]="";
182
+ ng-template()&attributes(tipsAttrs)
183
+ |!{variable.titleTipsTemplate}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/jit-engine",
3
- "version": "1.4.41",
3
+ "version": "1.4.42",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {