@farris/jit-engine 1.3.229 → 1.3.230-dev
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/lib/context/index.js +14 -14
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js +44 -44
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js.map +1 -1
- package/lib/mobileapp/vue/static/.gitignore +13 -13
- package/lib/template/ui/kendo/adminorganization-selector.pug +102 -101
- package/lib/utility/component-employeeorg-selector-parameter-helper.js +11 -0
- package/lib/utility/component-employeeorg-selector-parameter-helper.js.map +1 -0
- package/lib/utility/devkit/component-employeeorg-selector-parameter.js +7 -0
- package/lib/utility/devkit/component-employeeorg-selector-parameter.js.map +1 -0
- package/lib/utility/devkit/component-parameter-collector/component-employeeorg-selector-parameter-collector.js +46 -0
- package/lib/utility/devkit/component-parameter-collector/component-employeeorg-selector-parameter-collector.js.map +1 -0
- package/lib/utility/employeeorg-selector-checker.js +58 -0
- package/lib/utility/employeeorg-selector-checker.js.map +1 -0
- package/lib/utility/template-generator/devkit/component-generator/component-employeeorg-selector-parameter-generator.js +21 -0
- package/lib/utility/template-generator/devkit/component-generator/component-employeeorg-selector-parameter-generator.js.map +1 -0
- package/package.json +56 -85
package/lib/context/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./interface"), exports);
|
|
14
|
-
__exportStar(require("./context"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./interface"), exports);
|
|
14
|
+
__exportStar(require("./context"), exports);
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdminOrganizationSelector = void 0;
|
|
4
|
-
const value_fields_1 = require("./value_fields");
|
|
5
|
-
const utility_1 = require("../../../../../../../../utility");
|
|
6
|
-
const component_adminorganization_selector_parameter_helper_1 = require("../../../../../../../../utility/component-adminorganization-selector-parameter-helper");
|
|
7
|
-
class AdminOrganizationSelector extends value_fields_1.ValueField {
|
|
8
|
-
constructor(param) {
|
|
9
|
-
super(param);
|
|
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 = `multiSelect,editable,searchPlaceholder,primaryField,displayField,layer,cascadeCheck,cascadeDown,cascadeUp,showAllCheckBox,busNum,orgIds,enableHierarchicalLoading,showTabIds,activeTabId,mapFields,selectionsChange,tagRemoved,inputClear,expandLevel,formatter,onlyDisplayCompany,onlyCurrentAdminOrg,isTableTemplate`;
|
|
21
|
-
Object.keys(obj).forEach(key => {
|
|
22
|
-
if (keys.includes(key)) {
|
|
23
|
-
if (key == "selectionsChange" || key == "tagRemoved" || key == "inputClear") {
|
|
24
|
-
this[key] = utility_1.EventViewModelModifier.modify(obj[key], true, true, true, utility_1.JITConstant.defaultCommandParamName);
|
|
25
|
-
}
|
|
26
|
-
else if (key == "multiSelect" || key == 'editable' || key == 'cascadeCheck' || key == 'cascadeDown' || key == 'cascadeUp' || key == 'showAllCheckBox' || key == 'enableHierarchicalLoading' || key == 'onlyDisplayCompany' || key == 'onlyCurrentAdminOrg' || key == 'isTableTemplate') {
|
|
27
|
-
this[key] = utility_1.ToolHelper.createBinding(obj[key], false, this.externalComponentNameSpace, this.id);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
this[key] = obj[key];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
if (!this.multiSelect) {
|
|
35
|
-
this.multiSelect = utility_1.ToolHelper.createBinding(null, false, this.externalComponentNameSpace, this.id);
|
|
36
|
-
}
|
|
37
|
-
this.type = "AdminOrganizationSelector";
|
|
38
|
-
if (this.formatter) {
|
|
39
|
-
this.formatterName = component_adminorganization_selector_parameter_helper_1.ComponentAdminOrganizationSelectorParameterHelper.generateFormatterName(this.id);
|
|
40
|
-
}
|
|
41
|
-
this.placeHolderResourceId = utility_1.I18nResourceManager.generatePlaceHolderResourceId(this.type, this.id, this.resourcePrefix);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.AdminOrganizationSelector = AdminOrganizationSelector;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminOrganizationSelector = void 0;
|
|
4
|
+
const value_fields_1 = require("./value_fields");
|
|
5
|
+
const utility_1 = require("../../../../../../../../utility");
|
|
6
|
+
const component_adminorganization_selector_parameter_helper_1 = require("../../../../../../../../utility/component-adminorganization-selector-parameter-helper");
|
|
7
|
+
class AdminOrganizationSelector extends value_fields_1.ValueField {
|
|
8
|
+
constructor(param) {
|
|
9
|
+
super(param);
|
|
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 = `multiSelect,editable,searchPlaceholder,primaryField,displayField,layer,cascadeCheck,cascadeDown,cascadeUp,showAllCheckBox,busNum,orgIds,enableHierarchicalLoading,showTabIds,activeTabId,mapFields,selectionsChange,tagRemoved,inputClear,expandLevel,formatter,onlyDisplayCompany,onlyCurrentAdminOrg,isTableTemplate,displayType`;
|
|
21
|
+
Object.keys(obj).forEach(key => {
|
|
22
|
+
if (keys.includes(key)) {
|
|
23
|
+
if (key == "selectionsChange" || key == "tagRemoved" || key == "inputClear") {
|
|
24
|
+
this[key] = utility_1.EventViewModelModifier.modify(obj[key], true, true, true, utility_1.JITConstant.defaultCommandParamName);
|
|
25
|
+
}
|
|
26
|
+
else if (key == "multiSelect" || key == 'editable' || key == 'cascadeCheck' || key == 'cascadeDown' || key == 'cascadeUp' || key == 'showAllCheckBox' || key == 'enableHierarchicalLoading' || key == 'onlyDisplayCompany' || key == 'onlyCurrentAdminOrg' || key == 'isTableTemplate' || key == 'displayType') {
|
|
27
|
+
this[key] = utility_1.ToolHelper.createBinding(obj[key], false, this.externalComponentNameSpace, this.id);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this[key] = obj[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
if (!this.multiSelect) {
|
|
35
|
+
this.multiSelect = utility_1.ToolHelper.createBinding(null, false, this.externalComponentNameSpace, this.id);
|
|
36
|
+
}
|
|
37
|
+
this.type = "AdminOrganizationSelector";
|
|
38
|
+
if (this.formatter) {
|
|
39
|
+
this.formatterName = component_adminorganization_selector_parameter_helper_1.ComponentAdminOrganizationSelectorParameterHelper.generateFormatterName(this.id);
|
|
40
|
+
}
|
|
41
|
+
this.placeHolderResourceId = utility_1.I18nResourceManager.generatePlaceHolderResourceId(this.type, this.id, this.resourcePrefix);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.AdminOrganizationSelector = AdminOrganizationSelector;
|
|
45
45
|
//# sourceMappingURL=adminorganization-selector.js.map
|
package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adminorganization-selector.js","sourceRoot":"","sources":["../../../../../../../../../src/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAC5C,6DAAuH;AACvH,iKAA0J;AAK1J,MAAa,yBAA0B,SAAQ,yBAAU;
|
|
1
|
+
{"version":3,"file":"adminorganization-selector.js","sourceRoot":"","sources":["../../../../../../../../../src/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAC5C,6DAAuH;AACvH,iKAA0J;AAK1J,MAAa,yBAA0B,SAAQ,yBAAU;IA2BrD,YAAY,KAAmB;QAC3B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,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,oUAAoU,CAAC;QAClV,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC3B,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACpB,IAAI,GAAG,IAAI,kBAAkB,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,YAAY,EAAE;oBACzE,IAAI,CAAC,GAAG,CAAC,GAAG,gCAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,qBAAW,CAAC,uBAAuB,CAAC,CAAC;iBAC9G;qBAAM,IAAI,GAAG,IAAI,aAAa,IAAI,GAAG,IAAI,UAAU,IAAI,GAAG,IAAI,cAAc,IAAI,GAAG,IAAI,aAAa,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,iBAAiB,IAAI,GAAG,IAAI,2BAA2B,IAAI,GAAG,IAAI,oBAAoB,IAAG,GAAG,IAAI,qBAAqB,IAAG,GAAG,IAAI,iBAAiB,IAAI,GAAG,IAAI,aAAa,EAAE;oBAC5S,IAAI,CAAC,GAAG,CAAC,GAAG,oBAAU,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,0BAA0B,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;iBACnG;qBAAM;oBACH,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;iBACxB;aACJ;QACL,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnB,IAAI,CAAC,WAAW,GAAG,oBAAU,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,0BAA0B,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;SACtG;QACD,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;QAGxC,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,IAAI,CAAC,aAAa,GAAG,yGAAiD,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACzG;QAED,IAAI,CAAC,qBAAqB,GAAG,6BAAmB,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5H,CAAC;CACJ;AAjED,8DAiEC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.DS_Store
|
|
2
|
-
node_modules/
|
|
3
|
-
dist/
|
|
4
|
-
dist-rollup/
|
|
5
|
-
npm-debug.log
|
|
6
|
-
yarn-error.log
|
|
7
|
-
|
|
8
|
-
# Editor directories and files
|
|
9
|
-
.idea
|
|
10
|
-
*.suo
|
|
11
|
-
*.ntvs*
|
|
12
|
-
*.njsproj
|
|
13
|
-
*.sln
|
|
1
|
+
.DS_Store
|
|
2
|
+
node_modules/
|
|
3
|
+
dist/
|
|
4
|
+
dist-rollup/
|
|
5
|
+
npm-debug.log
|
|
6
|
+
yarn-error.log
|
|
7
|
+
|
|
8
|
+
# Editor directories and files
|
|
9
|
+
.idea
|
|
10
|
+
*.suo
|
|
11
|
+
*.ntvs*
|
|
12
|
+
*.njsproj
|
|
13
|
+
*.sln
|
|
@@ -1,101 +1,102 @@
|
|
|
1
|
-
-var holdPlaceOuterAttrs = {};
|
|
2
|
-
-var holdPlaceInnerAttrs = {};
|
|
3
|
-
-var holdPlaceEmptyAttrs = {};
|
|
4
|
-
if(variable.holdPlace)
|
|
5
|
-
-holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
6
|
-
-holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
|
|
7
|
-
else
|
|
8
|
-
-holdPlaceOuterAttrs["*ngIf"]=variable.visible ?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.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.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
|
-
|
|
39
|
-
if(variable.isTextArea)
|
|
40
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
41
|
-
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
42
|
-
else
|
|
43
|
-
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
44
|
-
if(variable.hasDefaultFocus)
|
|
45
|
-
-attrs["farris-set-focus"]="";
|
|
46
|
-
if(variable.focusState)
|
|
47
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
48
|
-
farris-adminorganization-selector(
|
|
49
|
-
adminorganization-selector-data-mapping
|
|
50
|
-
input-end-edit
|
|
51
|
-
'[searchPlaceholder]'=variable.searchPlaceholder?"'"+variable.searchPlaceholder+"'":undefined
|
|
52
|
-
'[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
53
|
-
'[primaryField]'=variable.primaryField?"'"+variable.primaryField+"'":undefined
|
|
54
|
-
'[displayField]'=variable.displayField?"'"+variable.displayField+"'":undefined
|
|
55
|
-
'[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
|
|
56
|
-
'[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
57
|
-
'[layer]'= (variable.expandLevel || variable.expandLevel==0)?""+variable.expandLevel:undefined
|
|
58
|
-
'[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
|
|
59
|
-
'[onlyDisplayCompany]'!=variable.onlyDisplayCompany?""+variable.onlyDisplayCompany.value:undefined
|
|
60
|
-
'[onlyCurrentAdminOrg]'!=variable.onlyCurrentAdminOrg?""+variable.onlyCurrentAdminOrg.value:undefined
|
|
61
|
-
'[isTableTemplate]'!=variable.isTableTemplate?""+variable.isTableTemplate.value:undefined
|
|
62
|
-
'[mapFields]'=variable.mapFields?variable.mapFields:undefined
|
|
63
|
-
'(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
|
|
64
|
-
'(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
|
|
65
|
-
'[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
|
|
66
|
-
'[activeTabId]'=variable.activeTabId?"'"+variable.activeTabId+"'":undefined
|
|
67
|
-
'[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading.value:undefined
|
|
68
|
-
'[showCheckAll]'=variable.showAllCheckBox?""+variable.showAllCheckBox.value:undefined
|
|
69
|
-
'[cascadeCheck]'=variable.cascadeCheck?""+variable.cascadeCheck.value:undefined
|
|
70
|
-
'[cascadeDown]'=variable.cascadeDown?""+variable.cascadeDown.value:undefined
|
|
71
|
-
'[cascadeUp]'=variable.cascadeUp?""+variable.cascadeUp.value:undefined
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-areaAttrs['[
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-tipsAttrs
|
|
100
|
-
|
|
101
|
-
|
|
1
|
+
-var holdPlaceOuterAttrs = {};
|
|
2
|
+
-var holdPlaceInnerAttrs = {};
|
|
3
|
+
-var holdPlaceEmptyAttrs = {};
|
|
4
|
+
if(variable.holdPlace)
|
|
5
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
6
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
|
|
7
|
+
else
|
|
8
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible ?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.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.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
|
+
|
|
39
|
+
if(variable.isTextArea)
|
|
40
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
41
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
42
|
+
else
|
|
43
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
44
|
+
if(variable.hasDefaultFocus)
|
|
45
|
+
-attrs["farris-set-focus"]="";
|
|
46
|
+
if(variable.focusState)
|
|
47
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
48
|
+
farris-adminorganization-selector(
|
|
49
|
+
adminorganization-selector-data-mapping
|
|
50
|
+
input-end-edit
|
|
51
|
+
'[searchPlaceholder]'=variable.searchPlaceholder?"'"+variable.searchPlaceholder+"'":undefined
|
|
52
|
+
'[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
53
|
+
'[primaryField]'=variable.primaryField?"'"+variable.primaryField+"'":undefined
|
|
54
|
+
'[displayField]'=variable.displayField?"'"+variable.displayField+"'":undefined
|
|
55
|
+
'[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
|
|
56
|
+
'[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
57
|
+
'[layer]'= (variable.expandLevel || variable.expandLevel==0)?""+variable.expandLevel:undefined
|
|
58
|
+
'[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
|
|
59
|
+
'[onlyDisplayCompany]'!=variable.onlyDisplayCompany?""+variable.onlyDisplayCompany.value:undefined
|
|
60
|
+
'[onlyCurrentAdminOrg]'!=variable.onlyCurrentAdminOrg?""+variable.onlyCurrentAdminOrg.value:undefined
|
|
61
|
+
'[isTableTemplate]'!=variable.isTableTemplate?""+variable.isTableTemplate.value:undefined
|
|
62
|
+
'[mapFields]'=variable.mapFields?variable.mapFields:undefined
|
|
63
|
+
'(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
|
|
64
|
+
'(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
|
|
65
|
+
'[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
|
|
66
|
+
'[activeTabId]'=variable.activeTabId?"'"+variable.activeTabId+"'":undefined
|
|
67
|
+
'[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading.value:undefined
|
|
68
|
+
'[showCheckAll]'=variable.showAllCheckBox?""+variable.showAllCheckBox.value:undefined
|
|
69
|
+
'[cascadeCheck]'=variable.cascadeCheck?""+variable.cascadeCheck.value:undefined
|
|
70
|
+
'[cascadeDown]'=variable.cascadeDown?""+variable.cascadeDown.value:undefined
|
|
71
|
+
'[cascadeUp]'=variable.cascadeUp?""+variable.cascadeUp.value:undefined
|
|
72
|
+
'[orgNameType]'=variable.displayType?"'"+variable.displayType.value+"'":undefined
|
|
73
|
+
"[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
|
|
74
|
+
'(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
|
|
75
|
+
'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
76
|
+
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
77
|
+
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
78
|
+
|
|
79
|
+
)&attributes(attrs)
|
|
80
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
81
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
82
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
83
|
+
div(class="farris-feedback")
|
|
84
|
+
if(variable.isTextArea)
|
|
85
|
+
-var areaAttrs = {};
|
|
86
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
87
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
88
|
+
else
|
|
89
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
90
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
91
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
92
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
93
|
+
else
|
|
94
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
95
|
+
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
96
|
+
if(variable.titleTipsTemplate)
|
|
97
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
98
|
+
i(class="f-icon f-icon-description-tips")
|
|
99
|
+
-var tipsAttrs= {};
|
|
100
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
101
|
+
ng-template()&attributes(tipsAttrs)
|
|
102
|
+
| !{variable.titleTipsTemplate}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComponentEmployeeOrgSelectorParameterHelper = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
class ComponentEmployeeOrgSelectorParameterHelper {
|
|
6
|
+
static generateFormatterName(componentId) {
|
|
7
|
+
return _1.ToolHelper.tf(_1.ToolHelper.replaceDotToXiaHuaXian("employeeorgSelector_" + componentId + "_Format"), _1.TfTypeEnum.Camel);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ComponentEmployeeOrgSelectorParameterHelper = ComponentEmployeeOrgSelectorParameterHelper;
|
|
11
|
+
//# sourceMappingURL=component-employeeorg-selector-parameter-helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-employeeorg-selector-parameter-helper.js","sourceRoot":"","sources":["../../src/utility/component-employeeorg-selector-parameter-helper.ts"],"names":[],"mappings":";;;AAAA,wBAA2C;AAE3C,MAAa,2CAA2C;IACpD,MAAM,CAAC,qBAAqB,CAAC,WAAmB;QAC5C,OAAO,aAAU,CAAC,EAAE,CAAC,aAAU,CAAC,sBAAsB,CAAC,sBAAsB,GAAG,WAAW,GAAG,SAAS,CAAC,EAAE,aAAU,CAAC,KAAK,CAAC,CAAC;IAChI,CAAC;CACJ;AAJD,kGAIC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComponentEmployeeOrgSelectorParameter = void 0;
|
|
4
|
+
class ComponentEmployeeOrgSelectorParameter {
|
|
5
|
+
}
|
|
6
|
+
exports.ComponentEmployeeOrgSelectorParameter = ComponentEmployeeOrgSelectorParameter;
|
|
7
|
+
//# sourceMappingURL=component-employeeorg-selector-parameter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-employeeorg-selector-parameter.js","sourceRoot":"","sources":["../../../src/utility/devkit/component-employeeorg-selector-parameter.ts"],"names":[],"mappings":";;;AAAA,MAAa,qCAAqC;CAIjD;AAJD,sFAIC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComponentEmployeeOrgSelectorParameterCollector = void 0;
|
|
4
|
+
const component_employeeOrg_selector_parameter_helper_1 = require("../../component-employeeOrg-selector-parameter-helper");
|
|
5
|
+
const __1 = require("../..");
|
|
6
|
+
const abstract_component_parameter_collector_1 = require("./abstract-component-parameter-collector");
|
|
7
|
+
class ComponentEmployeeOrgSelectorParameterCollector extends abstract_component_parameter_collector_1.AbstractComponentParameterCollector {
|
|
8
|
+
collect(value, options) {
|
|
9
|
+
const employeeOrgSelectorParameters = [];
|
|
10
|
+
this.collectionComponentEmployeeOrgSelector(value, employeeOrgSelectorParameters, options ? options.i18nResourcePrefix : "");
|
|
11
|
+
return employeeOrgSelectorParameters;
|
|
12
|
+
}
|
|
13
|
+
collectionComponentEmployeeOrgSelector(component, componentEmployeeOrgSelectors, i18nResourcePrefix) {
|
|
14
|
+
const contents = component.contents;
|
|
15
|
+
if (contents && contents.length) {
|
|
16
|
+
contents.forEach((element) => {
|
|
17
|
+
this.collectionComponentEmployeeOrgSelector(element, componentEmployeeOrgSelectors, i18nResourcePrefix);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
if (__1.ToolHelper.isArray(component.rows, false)) {
|
|
21
|
+
component.rows.forEach((element) => {
|
|
22
|
+
if (__1.ToolHelper.isArray(element.columns, false)) {
|
|
23
|
+
element.columns.forEach((elementColumn) => {
|
|
24
|
+
if (elementColumn.editor) {
|
|
25
|
+
this.collectionComponentEmployeeOrgSelector(elementColumn.editor, componentEmployeeOrgSelectors, i18nResourcePrefix);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
if (component && component.type == 'EmployeeOrgSelector') {
|
|
32
|
+
let formatterName;
|
|
33
|
+
if (component.formatter) {
|
|
34
|
+
formatterName = component_employeeOrg_selector_parameter_helper_1.ComponentEmployeeOrgSelectorParameterHelper.generateFormatterName(component.id);
|
|
35
|
+
}
|
|
36
|
+
const employeeOrgSelectorParameter = {
|
|
37
|
+
id: component.id,
|
|
38
|
+
formatter: component.formatter,
|
|
39
|
+
formatterName: formatterName
|
|
40
|
+
};
|
|
41
|
+
componentEmployeeOrgSelectors.push(employeeOrgSelectorParameter);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ComponentEmployeeOrgSelectorParameterCollector = ComponentEmployeeOrgSelectorParameterCollector;
|
|
46
|
+
//# sourceMappingURL=component-employeeorg-selector-parameter-collector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-employeeorg-selector-parameter-collector.js","sourceRoot":"","sources":["../../../../src/utility/devkit/component-parameter-collector/component-employeeorg-selector-parameter-collector.ts"],"names":[],"mappings":";;;AAAA,2HAAoH;AACpH,6BAAmC;AAEnC,qGAA+F;AAU/F,MAAa,8CAA+C,SAAQ,4EAAmC;IACnG,OAAO,CAAC,KAAU,EAAE,OAA4C;QAC5D,MAAM,6BAA6B,GAA4C,EAAE,CAAC;QAClF,IAAI,CAAC,sCAAsC,CAAC,KAAK,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC7H,OAAO,6BAA6B,CAAC;IACzC,CAAC;IAWO,sCAAsC,CAAC,SAAc,EAAE,6BAAsE,EAAE,kBAA0B;QAC7J,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACpC,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,EAAE;YAC7B,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAY,EAAE,EAAE;gBAC9B,IAAI,CAAC,sCAAsC,CAAC,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,CAAC,CAAC;YAC5G,CAAC,CAAC,CAAC;SACN;QAGD,IAAI,cAAU,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;YAC3C,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAY,EAAE,EAAE;gBAEpC,IAAI,cAAU,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;oBAC5C,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,aAAkB,EAAE,EAAE;wBAC3C,IAAI,aAAa,CAAC,MAAM,EAAE;4BACtB,IAAI,CAAC,sCAAsC,CAAC,aAAa,CAAC,MAAM,EAAE,6BAA6B,EAAE,kBAAkB,CAAC,CAAC;yBACxH;oBACL,CAAC,CAAC,CAAC;iBACN;YACL,CAAC,CAAC,CAAC;SACN;QACD,IAAI,SAAS,IAAI,SAAS,CAAC,IAAI,IAAI,qBAAqB,EAAE;YACtD,IAAI,aAAqB,CAAC;YAC1B,IAAI,SAAS,CAAC,SAAS,EAAE;gBACrB,aAAa,GAAG,6FAA2C,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;aACnG;YACD,MAAM,4BAA4B,GAA0C;gBACxE,EAAE,EAAE,SAAS,CAAC,EAAE;gBAChB,SAAS,EAAE,SAAS,CAAC,SAAS;gBAC9B,aAAa,EAAE,aAAa;aAC/B,CAAC;YACF,6BAA6B,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;SACpE;IACL,CAAC;CAEJ;AAnDD,wGAmDC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmployeeOrgSelectorChecker = void 0;
|
|
4
|
+
const toolhepler_1 = require("./toolhepler");
|
|
5
|
+
class EmployeeOrgSelectorChecker {
|
|
6
|
+
constructor() { }
|
|
7
|
+
static checkIsEmployeeOrgSelector(ui, employeeorgSelector) {
|
|
8
|
+
if ((employeeorgSelector.isEmployeeOrgSelector == false || employeeorgSelector.isGridEmployeeOrgSelector == false) &&
|
|
9
|
+
ui.module && toolhepler_1.ToolHelper.isArray(ui.module.components, false)) {
|
|
10
|
+
employeeorgSelector.isEmployeeOrgSelector = !!employeeorgSelector.isEmployeeOrgSelector;
|
|
11
|
+
employeeorgSelector.isGridEmployeeOrgSelector = !!employeeorgSelector.isGridEmployeeOrgSelector;
|
|
12
|
+
ui.module.components.forEach((item) => {
|
|
13
|
+
if (employeeorgSelector.isEmployeeOrgSelector == false || employeeorgSelector.isGridEmployeeOrgSelector == false) {
|
|
14
|
+
this.checkHasEmployeeOrgSelector(employeeorgSelector, item, null);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
static checkHasEmployeeOrgSelector(obj, component, contents) {
|
|
20
|
+
if (component) {
|
|
21
|
+
this.checkHasEmployeeOrgSelectorType(component, obj);
|
|
22
|
+
}
|
|
23
|
+
else if (toolhepler_1.ToolHelper.isArray(contents, false)) {
|
|
24
|
+
for (let i = 0; i < contents.length; i++) {
|
|
25
|
+
this.checkHasEmployeeOrgSelectorType(contents[i], obj);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
static checkHasEmployeeOrgSelectorType(component, obj) {
|
|
30
|
+
var _a;
|
|
31
|
+
if (component.type == this.employeeorgSelectorType) {
|
|
32
|
+
obj.isEmployeeOrgSelector = true;
|
|
33
|
+
}
|
|
34
|
+
else if (((_a = component.editor) === null || _a === void 0 ? void 0 : _a.type) == this.employeeorgSelectorType) {
|
|
35
|
+
obj.isGridEmployeeOrgSelector = true;
|
|
36
|
+
}
|
|
37
|
+
if (component.contents && component.contents.length) {
|
|
38
|
+
this.checkHasEmployeeOrgSelector(obj, null, component.contents);
|
|
39
|
+
}
|
|
40
|
+
else if (obj.isGridEmployeeOrgSelector == false && toolhepler_1.ToolHelper.isArray(component.fields, false)) {
|
|
41
|
+
this.checkHasEmployeeOrgSelector(obj, null, component.fields);
|
|
42
|
+
}
|
|
43
|
+
else if (component && toolhepler_1.ToolHelper.isArray(component.rows, false)) {
|
|
44
|
+
component.rows.forEach((element) => {
|
|
45
|
+
if (toolhepler_1.ToolHelper.isArray(element.columns, false)) {
|
|
46
|
+
element.columns.forEach((elementColumn) => {
|
|
47
|
+
if (elementColumn.editor) {
|
|
48
|
+
this.checkHasEmployeeOrgSelectorType(elementColumn.editor, obj);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.EmployeeOrgSelectorChecker = EmployeeOrgSelectorChecker;
|
|
57
|
+
EmployeeOrgSelectorChecker.employeeorgSelectorType = "EmployeeOrgSelector";
|
|
58
|
+
//# sourceMappingURL=employeeorg-selector-checker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employeeorg-selector-checker.js","sourceRoot":"","sources":["../../src/utility/employeeorg-selector-checker.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComponentEmployeeOrgSelectorParameterGenerator = void 0;
|
|
4
|
+
const __1 = require("../../..");
|
|
5
|
+
class ComponentEmployeeOrgSelectorParameterGenerator {
|
|
6
|
+
static generateFormatter(variable) {
|
|
7
|
+
let generateString = "";
|
|
8
|
+
if (__1.ToolHelper.isArray(variable.employeeorgSelectorParameters, false)) {
|
|
9
|
+
variable.employeeorgSelectorParameters.forEach((employeeorgSelectorItem, index) => {
|
|
10
|
+
if (employeeorgSelectorItem.formatterName) {
|
|
11
|
+
generateString += `
|
|
12
|
+
${employeeorgSelectorItem.formatterName} = ${employeeorgSelectorItem.formatter}
|
|
13
|
+
`;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return generateString;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ComponentEmployeeOrgSelectorParameterGenerator = ComponentEmployeeOrgSelectorParameterGenerator;
|
|
21
|
+
//# sourceMappingURL=component-employeeorg-selector-parameter-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-employeeorg-selector-parameter-generator.js","sourceRoot":"","sources":["../../../../../src/utility/template-generator/devkit/component-generator/component-employeeorg-selector-parameter-generator.ts"],"names":[],"mappings":";;;AAAA,gCAAsC;AAMtC,MAAa,8CAA8C;IAEvD,MAAM,CAAC,iBAAiB,CAAC,QAAa;QAClC,IAAI,cAAc,GAAG,EAAE,CAAC;QACxB,IAAI,cAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,6BAA6B,EAAE,KAAK,CAAC,EAAE;YACnE,QAAQ,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,uBAA8D,EAAE,KAAa,EAAE,EAAE;gBAC7H,IAAI,uBAAuB,CAAC,aAAa,EAAE;oBACvC,cAAc,IAAI;MAChC,uBAAuB,CAAC,aAAa,MAAM,uBAAuB,CAAC,SAAS;CACjF,CAAC;iBACe;YACL,CAAC,CAAC,CAAC;SACN;QACD,OAAO,cAAc,CAAC;IAC1B,CAAC;CAEJ;AAhBD,wGAgBC"}
|
package/package.json
CHANGED
|
@@ -1,85 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"fs-extra": "^8.1.0",
|
|
36
|
-
"lodash": "^4.17.10",
|
|
37
|
-
"prettier": "^1.18.2",
|
|
38
|
-
"pug": "^2.0.0-rc.4",
|
|
39
|
-
"typescript-ioc": "^1.2.4",
|
|
40
|
-
"yargs": "^12.0.1"
|
|
41
|
-
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
"engines": {
|
|
59
|
-
"node": ">= 6.9.0",
|
|
60
|
-
"npm": ">= 3.0.0"
|
|
61
|
-
},
|
|
62
|
-
"files": [
|
|
63
|
-
"lib/",
|
|
64
|
-
"bin/",
|
|
65
|
-
"ioc.config"
|
|
66
|
-
],
|
|
67
|
-
"keywords": [
|
|
68
|
-
"jit",
|
|
69
|
-
"engine",
|
|
70
|
-
"jit-engine"
|
|
71
|
-
],
|
|
72
|
-
"license": "ISC",
|
|
73
|
-
"main": "./lib/index.js",
|
|
74
|
-
"name": "@farris/jit-engine",
|
|
75
|
-
"scripts": {
|
|
76
|
-
"build": "npm run build-ts && npm run copy-static-assets",
|
|
77
|
-
"build-q": "npm run build-ts",
|
|
78
|
-
"build-ts": "tsc",
|
|
79
|
-
"copy-static-assets": "ts-node copyStaticAssets.ts",
|
|
80
|
-
"test": "jest --coverage ",
|
|
81
|
-
"tslint": "tslint -c tslint.json -p tsconfig.json",
|
|
82
|
-
"watch-test": "npm run test --watchAll"
|
|
83
|
-
},
|
|
84
|
-
"version": "1.3.229"
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@farris/jit-engine",
|
|
3
|
+
"version": "1.3.230-dev",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"jit": "./bin/index.js"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">= 6.9.0",
|
|
11
|
+
"npm": ">= 3.0.0"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"lib/",
|
|
15
|
+
"bin/",
|
|
16
|
+
"ioc.config"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build-ts && npm run copy-static-assets",
|
|
20
|
+
"build-q": "npm run build-ts",
|
|
21
|
+
"test": "jest --coverage ",
|
|
22
|
+
"watch-test": "npm run test --watchAll",
|
|
23
|
+
"build-ts": "tsc",
|
|
24
|
+
"tslint": "tslint -c tslint.json -p tsconfig.json",
|
|
25
|
+
"copy-static-assets": "ts-node copyStaticAssets.ts"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"jit",
|
|
29
|
+
"engine",
|
|
30
|
+
"jit-engine"
|
|
31
|
+
],
|
|
32
|
+
"author": "Noah",
|
|
33
|
+
"license": "ISC",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"fs-extra": "^8.1.0",
|
|
36
|
+
"lodash": "^4.17.10",
|
|
37
|
+
"prettier": "^1.18.2",
|
|
38
|
+
"pug": "^2.0.0-rc.4",
|
|
39
|
+
"typescript-ioc": "^1.2.4",
|
|
40
|
+
"yargs": "^12.0.1"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/fs-extra": "^8.1.1",
|
|
44
|
+
"@types/jest": "24.0.15",
|
|
45
|
+
"@types/lodash": "^4.14.91",
|
|
46
|
+
"@types/node": "^12.6.1",
|
|
47
|
+
"@types/prettier": "^1.18.0",
|
|
48
|
+
"@types/pug": "^2.0.4",
|
|
49
|
+
"@types/yargs": "^11.1.1",
|
|
50
|
+
"jest": "^24.8.0",
|
|
51
|
+
"ts-jest": "^24.0.2",
|
|
52
|
+
"ts-node": "^8.3.0",
|
|
53
|
+
"tslint": "^5.18.0",
|
|
54
|
+
"typescript": "^3.5.3"
|
|
55
|
+
}
|
|
56
|
+
}
|