@byteluck-fe/model-driven-controls 2.7.0-beta.2 → 2.8.0-alpha.1
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/dist/esm/baseControls/Button/designer.js +2 -1
- package/dist/esm/baseControls/Button/property.js +4 -1
- package/dist/esm/baseControls/ExportListButton/property.js +3 -0
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -1
- package/dist/esm/baseControls/ImportRecordListButton/property.js +3 -0
- package/dist/esm/baseControls/Text/property.js +3 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +140 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/index.js +11 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +127 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +104 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/types.js +0 -0
- package/dist/esm/columnControls/ArrayColumn/designer.js +8 -1
- package/dist/esm/columnControls/ArrayColumn/property.js +10 -8
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +5 -1
- package/dist/esm/columnControls/CustomColumn/designer.js +4 -0
- package/dist/esm/columnControls/CustomColumn/property.js +25 -1
- package/dist/esm/columnControls/DecimalColumn/designer.js +8 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +4 -0
- package/dist/esm/columnControls/EmployeeColumn/designer.js +4 -0
- package/dist/esm/columnControls/FileColumn/designer.js +4 -0
- package/dist/esm/columnControls/ImageColumn/designer.js +4 -0
- package/dist/esm/columnControls/LocationColumn/designer.js +5 -1
- package/dist/esm/columnControls/OrderColumn/designer.js +4 -0
- package/dist/esm/columnControls/PeopleColumn/designer.js +4 -0
- package/dist/esm/columnControls/TextColumn/designer.js +8 -0
- package/dist/esm/columnControls/TimescopeColumn/designer.js +4 -0
- package/dist/esm/columnControls/TimestampColumn/designer.js +4 -0
- package/dist/esm/columnControls/VarcharColumn/designer.js +9 -1
- package/dist/esm/columnControls/index.js +1 -0
- package/dist/esm/formControls/Attachment/property.js +4 -7
- package/dist/esm/formControls/DatePicker/designer.js +4 -1
- package/dist/esm/formControls/DateRange/designer.js +4 -1
- package/dist/esm/formControls/Image/designer.js +2 -9
- package/dist/esm/formControls/Image/property.js +2 -30
- package/dist/esm/formControls/SearchDateRange/designer.js +4 -1
- package/dist/esm/formControls/Select/designer.js +5 -1
- package/dist/esm/formControls/Select/property.js +38 -2
- package/dist/esm/formControls/SelectMultiple/designer.js +5 -1
- package/dist/esm/formControls/SelectMultiple/property.js +38 -2
- package/dist/esm/formControls/SelectRelation/designer.js +5 -3
- package/dist/esm/formControls/SelectRelation/property.js +19 -1
- package/dist/esm/framework.js +2 -2
- package/dist/esm/index.js +10 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +156 -0
- package/dist/esm/layoutControls/ActionBar/index.js +11 -0
- package/dist/esm/layoutControls/ActionBar/property.js +111 -0
- package/dist/esm/layoutControls/ActionBar/runtime.js +125 -0
- package/dist/esm/layoutControls/ActionBar/types.js +0 -0
- package/dist/esm/layoutControls/Col/designer.js +1 -0
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +152 -0
- package/dist/esm/layoutControls/GridLayoutContainer/index.js +11 -0
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +107 -0
- package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +124 -0
- package/dist/esm/layoutControls/GridLayoutContainer/types.js +0 -0
- package/dist/esm/layoutControls/ListView/designer.js +4 -0
- package/dist/esm/layoutControls/ListView/property.js +89 -3
- package/dist/esm/layoutControls/index.js +2 -0
- package/dist/esm/listControls/GridTable/designer.js +4 -0
- package/dist/esm/listControls/GridTable/property.js +8 -0
- package/dist/esm/listControls/SubTable/designer.js +6 -2
- package/dist/esm/listControls/SubTable/property.js +9 -0
- package/dist/esm/searchControls/SimpleSearch/designer.js +8 -0
- package/dist/esm/searchControls/SimpleSearch/property.js +14 -0
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +27 -0
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +144 -0
- package/dist/esm/wrapControls/GridLayoutWrap/index.js +20 -0
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +101 -0
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +130 -0
- package/dist/esm/wrapControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Button/property.d.ts +2 -1
- package/dist/types/baseControls/ExportListButton/property.d.ts +1 -0
- package/dist/types/baseControls/ImportRecordListButton/property.d.ts +1 -0
- package/dist/types/baseControls/Text/property.d.ts +1 -0
- package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +14 -0
- package/dist/types/columnControls/ApprovalStatusColumn/index.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/property.d.ts +29 -0
- package/dist/types/columnControls/ApprovalStatusColumn/runtime.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/types.d.ts +0 -0
- package/dist/types/columnControls/ArrayColumn/property.d.ts +3 -1
- package/dist/types/columnControls/CustomColumn/property.d.ts +8 -1
- package/dist/types/columnControls/index.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/dist/types/formControls/Image/property.d.ts +0 -2
- package/dist/types/formControls/Select/property.d.ts +20 -1
- package/dist/types/formControls/SelectMultiple/property.d.ts +20 -1
- package/dist/types/formControls/SelectRelation/property.d.ts +8 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/layoutControls/ActionBar/designer.d.ts +13 -0
- package/dist/types/layoutControls/ActionBar/index.d.ts +12 -0
- package/dist/types/layoutControls/ActionBar/property.d.ts +9 -0
- package/dist/types/layoutControls/ActionBar/runtime.d.ts +10 -0
- package/dist/types/layoutControls/ActionBar/types.d.ts +0 -0
- package/dist/types/layoutControls/GridLayoutContainer/designer.d.ts +14 -0
- package/dist/types/layoutControls/GridLayoutContainer/index.d.ts +12 -0
- package/dist/types/layoutControls/GridLayoutContainer/property.d.ts +8 -0
- package/dist/types/layoutControls/GridLayoutContainer/runtime.d.ts +10 -0
- package/dist/types/layoutControls/GridLayoutContainer/types.d.ts +0 -0
- package/dist/types/layoutControls/ListView/property.d.ts +17 -1
- package/dist/types/layoutControls/index.d.ts +2 -0
- package/dist/types/listControls/GridTable/property.d.ts +1 -0
- package/dist/types/listControls/SubTable/property.d.ts +1 -0
- package/dist/types/searchControls/SimpleSearch/property.d.ts +12 -0
- package/dist/types/type.d.ts +9 -2
- package/dist/types/wrapControls/GridLayoutWrap/Setting.d.ts +2 -0
- package/dist/types/wrapControls/GridLayoutWrap/designer.d.ts +11 -0
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +14 -0
- package/dist/types/wrapControls/GridLayoutWrap/property.d.ts +6 -0
- package/dist/types/wrapControls/GridLayoutWrap/runtime.d.ts +9 -0
- package/dist/types/wrapControls/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -133,7 +133,8 @@ var ButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
133
133
|
return ButtonControl;
|
|
134
134
|
}(DesignerControl);
|
|
135
135
|
_define_property(ButtonControl, "controlEventKeys", [
|
|
136
|
-
"on_click"
|
|
136
|
+
"on_click",
|
|
137
|
+
"on_click_finish"
|
|
137
138
|
]);
|
|
138
139
|
_define_property(ButtonControl, "setting", [
|
|
139
140
|
{
|
|
@@ -82,7 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { Property } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { Property, OptObject } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
87
87
|
"use strict";
|
|
88
88
|
_inherits(ButtonProperty, Property);
|
|
@@ -100,6 +100,7 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
100
100
|
_define_property(_assert_this_initialized(_this), "defaultState", void 0);
|
|
101
101
|
_define_property(_assert_this_initialized(_this), "command", void 0);
|
|
102
102
|
_define_property(_assert_this_initialized(_this), "isLoading", void 0);
|
|
103
|
+
_define_property(_assert_this_initialized(_this), "optObj", void 0);
|
|
103
104
|
var _props_content;
|
|
104
105
|
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "按钮";
|
|
105
106
|
var _props_buttonType;
|
|
@@ -117,6 +118,8 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
117
118
|
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "custom";
|
|
118
119
|
var _props_isLoading;
|
|
119
120
|
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
121
|
+
var _props_optObj;
|
|
122
|
+
_this.optObj = new OptObject((_props_optObj = props === null || props === void 0 ? void 0 : props.optObj) !== null && _props_optObj !== void 0 ? _props_optObj : {});
|
|
120
123
|
return _this;
|
|
121
124
|
}
|
|
122
125
|
return ButtonProperty;
|
|
@@ -95,10 +95,13 @@ var ExportListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
95
95
|
var _props_templateList;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
97
|
_define_property(_assert_this_initialized(_this), "templateList", void 0);
|
|
98
|
+
_define_property(_assert_this_initialized(_this), "templateType", void 0);
|
|
98
99
|
var _props_icon;
|
|
99
100
|
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ExportListButtonControl.controlIcon;
|
|
100
101
|
var _props_content;
|
|
101
102
|
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ExportListButtonControl.controlName;
|
|
103
|
+
var _props_templateType;
|
|
104
|
+
_this.templateType = (_props_templateType = props === null || props === void 0 ? void 0 : props.templateType) !== null && _props_templateType !== void 0 ? _props_templateType : "system";
|
|
102
105
|
var _props_templateList_map;
|
|
103
106
|
_this.templateList = (_props_templateList_map = props === null || props === void 0 ? void 0 : (_props_templateList = props.templateList) === null || _props_templateList === void 0 ? void 0 : _props_templateList.map(function(item) {
|
|
104
107
|
return new ExportTemplate(item);
|
|
@@ -154,9 +154,10 @@ _define_property(ImportRecordListButtonControl, "setting", [
|
|
|
154
154
|
visible: true
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
key: "
|
|
157
|
+
key: "import-list-template",
|
|
158
158
|
visible: true
|
|
159
159
|
},
|
|
160
|
+
// { key: 'can-import-subtable', visible: true }, 内容已经被合并至import-list-template
|
|
160
161
|
{
|
|
161
162
|
key: "super-setting",
|
|
162
163
|
visible: true
|
|
@@ -102,6 +102,7 @@ var ImportRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
102
102
|
/*
|
|
103
103
|
* 可以导入的数据
|
|
104
104
|
* */ _define_property(_assert_this_initialized(_this), "canImportList", void 0);
|
|
105
|
+
_define_property(_assert_this_initialized(_this), "templateType", void 0);
|
|
105
106
|
var _props_content;
|
|
106
107
|
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ImportRecordListButtonControl.controlName;
|
|
107
108
|
var _props_icon;
|
|
@@ -110,6 +111,8 @@ var ImportRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
110
111
|
_this.canImportList = (_props_canImportList_map = props === null || props === void 0 ? void 0 : (_props_canImportList = props.canImportList) === null || _props_canImportList === void 0 ? void 0 : _props_canImportList.map(function(item) {
|
|
111
112
|
return new ImportListBind(item);
|
|
112
113
|
})) !== null && _props_canImportList_map !== void 0 ? _props_canImportList_map : [];
|
|
114
|
+
var _props_templateType;
|
|
115
|
+
_this.templateType = (_props_templateType = props === null || props === void 0 ? void 0 : props.templateType) !== null && _props_templateType !== void 0 ? _props_templateType : "system";
|
|
113
116
|
return _this;
|
|
114
117
|
}
|
|
115
118
|
return ImportRecordListButtonProperty;
|
|
@@ -96,6 +96,7 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
96
96
|
_define_property(_assert_this_initialized(_this), "fontSize", void 0);
|
|
97
97
|
_define_property(_assert_this_initialized(_this), "color", void 0);
|
|
98
98
|
_define_property(_assert_this_initialized(_this), "icon", void 0);
|
|
99
|
+
_define_property(_assert_this_initialized(_this), "align", void 0);
|
|
99
100
|
_define_property(_assert_this_initialized(_this), "showState", void 0);
|
|
100
101
|
var _props_fontSize;
|
|
101
102
|
// this.dataBind = new DataBind(props?.dataBind)
|
|
@@ -108,6 +109,8 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
108
109
|
_this.showState = (_props_showState = props === null || props === void 0 ? void 0 : props.showState) !== null && _props_showState !== void 0 ? _props_showState : "text";
|
|
109
110
|
var _props_content;
|
|
110
111
|
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "说明文字";
|
|
112
|
+
var _props_align;
|
|
113
|
+
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : "";
|
|
111
114
|
return _this;
|
|
112
115
|
}
|
|
113
116
|
return TextProperty;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
|
+
};
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
|
+
}
|
|
31
|
+
function _inherits(subClass, superClass) {
|
|
32
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
33
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34
|
+
}
|
|
35
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
36
|
+
constructor: {
|
|
37
|
+
value: subClass,
|
|
38
|
+
writable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
|
+
}
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
|
+
return call;
|
|
47
|
+
}
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
|
+
}
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
|
+
o.__proto__ = p;
|
|
53
|
+
return o;
|
|
54
|
+
};
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
|
+
}
|
|
57
|
+
function _type_of(obj) {
|
|
58
|
+
"@swc/helpers - typeof";
|
|
59
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
65
|
+
try {
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
import { DesignerColumnControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
86
|
+
import ApprovalStatusColumnControlProperty from "./property";
|
|
87
|
+
var ApprovalStatusColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
88
|
+
"use strict";
|
|
89
|
+
_inherits(ApprovalStatusColumnControl, DesignerColumnControl);
|
|
90
|
+
var _super = _create_super(ApprovalStatusColumnControl);
|
|
91
|
+
function ApprovalStatusColumnControl(props) {
|
|
92
|
+
_class_call_check(this, ApprovalStatusColumnControl);
|
|
93
|
+
var _this;
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
97
|
+
_this.props = new ApprovalStatusColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
|
+
return _this;
|
|
99
|
+
}
|
|
100
|
+
return ApprovalStatusColumnControl;
|
|
101
|
+
}(DesignerColumnControl);
|
|
102
|
+
_define_property(ApprovalStatusColumnControl, "controlType", "approval-status-column");
|
|
103
|
+
_define_property(ApprovalStatusColumnControl, "controlName", "当前审批状态");
|
|
104
|
+
_define_property(ApprovalStatusColumnControl, "controlIcon", "approval-status-column");
|
|
105
|
+
_define_property(ApprovalStatusColumnControl, "excludes", []);
|
|
106
|
+
_define_property(ApprovalStatusColumnControl, "setting", [
|
|
107
|
+
{
|
|
108
|
+
key: "caption",
|
|
109
|
+
showItems: [
|
|
110
|
+
COMMON_SETTING_TYPE.CAPTION
|
|
111
|
+
],
|
|
112
|
+
visible: true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "column-autowidth",
|
|
116
|
+
visible: true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
key: "column-autoHeight",
|
|
120
|
+
visible: true
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
key: "column-align-content",
|
|
124
|
+
visible: true
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
key: "column-fixed",
|
|
128
|
+
visible: true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: "column-link-operation",
|
|
132
|
+
visible: true
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: "column-line-ellipsis",
|
|
136
|
+
visible: true
|
|
137
|
+
}
|
|
138
|
+
]);
|
|
139
|
+
export default ApprovalStatusColumnControl;
|
|
140
|
+
export { ApprovalStatusColumnControl as DesignerApprovalStatusColumnControl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Designer from "./designer";
|
|
2
|
+
import Runtime from "./runtime";
|
|
3
|
+
import Property from "./property";
|
|
4
|
+
export default {
|
|
5
|
+
Designer: Designer,
|
|
6
|
+
Runtime: Runtime,
|
|
7
|
+
Property: Property
|
|
8
|
+
};
|
|
9
|
+
export * from "./designer";
|
|
10
|
+
export * from "./runtime";
|
|
11
|
+
export * from "./property";
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
|
+
};
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
|
+
}
|
|
31
|
+
function _inherits(subClass, superClass) {
|
|
32
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
33
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34
|
+
}
|
|
35
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
36
|
+
constructor: {
|
|
37
|
+
value: subClass,
|
|
38
|
+
writable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
|
+
}
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
|
+
return call;
|
|
47
|
+
}
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
|
+
}
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
|
+
o.__proto__ = p;
|
|
53
|
+
return o;
|
|
54
|
+
};
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
|
+
}
|
|
57
|
+
function _type_of(obj) {
|
|
58
|
+
"@swc/helpers - typeof";
|
|
59
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
65
|
+
try {
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
import { ColumnControlProperty, LinkOperationOption } from "@byteluck-fe/model-driven-core";
|
|
86
|
+
import { DesignerApprovalStatusColumnControl } from "./designer";
|
|
87
|
+
/**
|
|
88
|
+
* ApprovalStatusColumn 审批状态列
|
|
89
|
+
* @public
|
|
90
|
+
*/ var ApprovalStatusColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(ApprovalStatusColumnControlProperty, ColumnControlProperty);
|
|
93
|
+
var _super = _create_super(ApprovalStatusColumnControlProperty);
|
|
94
|
+
function ApprovalStatusColumnControlProperty(props) {
|
|
95
|
+
_class_call_check(this, ApprovalStatusColumnControlProperty);
|
|
96
|
+
var _this;
|
|
97
|
+
_this = _super.call(this, props);
|
|
98
|
+
/**
|
|
99
|
+
* 行数设置
|
|
100
|
+
* */ _define_property(_assert_this_initialized(_this), "lineEllipsis", void 0);
|
|
101
|
+
/**
|
|
102
|
+
* 是否显示链接操作
|
|
103
|
+
* @public
|
|
104
|
+
*/ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
|
|
105
|
+
/**
|
|
106
|
+
* 链接操作配置
|
|
107
|
+
* @public
|
|
108
|
+
*/ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
|
|
109
|
+
/**
|
|
110
|
+
* 流程状态位
|
|
111
|
+
* @public
|
|
112
|
+
*/ _define_property(_assert_this_initialized(_this), "enumType", void 0);
|
|
113
|
+
var _props_caption;
|
|
114
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerApprovalStatusColumnControl.controlName;
|
|
115
|
+
var _props_showLinkOperation;
|
|
116
|
+
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
117
|
+
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
118
|
+
var _props_lineEllipsis;
|
|
119
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
120
|
+
var _props_enumType;
|
|
121
|
+
_this.enumType = (_props_enumType = props === null || props === void 0 ? void 0 : props.enumType) !== null && _props_enumType !== void 0 ? _props_enumType : "process";
|
|
122
|
+
return _this;
|
|
123
|
+
}
|
|
124
|
+
return ApprovalStatusColumnControlProperty;
|
|
125
|
+
}(ColumnControlProperty);
|
|
126
|
+
export default ApprovalStatusColumnControlProperty;
|
|
127
|
+
export { ApprovalStatusColumnControlProperty };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
|
+
};
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
|
+
}
|
|
31
|
+
function _inherits(subClass, superClass) {
|
|
32
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
33
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34
|
+
}
|
|
35
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
36
|
+
constructor: {
|
|
37
|
+
value: subClass,
|
|
38
|
+
writable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
|
+
}
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
|
+
return call;
|
|
47
|
+
}
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
|
+
}
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
|
+
o.__proto__ = p;
|
|
53
|
+
return o;
|
|
54
|
+
};
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
|
+
}
|
|
57
|
+
function _type_of(obj) {
|
|
58
|
+
"@swc/helpers - typeof";
|
|
59
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
65
|
+
try {
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
import { RuntimeColumnControl } from "@byteluck-fe/model-driven-core";
|
|
86
|
+
import ApprovalStatusColumnControlProperty from "./property";
|
|
87
|
+
var ApprovalStatusColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
|
|
88
|
+
"use strict";
|
|
89
|
+
_inherits(ApprovalStatusColumnControl, RuntimeColumnControl);
|
|
90
|
+
var _super = _create_super(ApprovalStatusColumnControl);
|
|
91
|
+
function ApprovalStatusColumnControl(props) {
|
|
92
|
+
_class_call_check(this, ApprovalStatusColumnControl);
|
|
93
|
+
var _this;
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
97
|
+
_this.props = new ApprovalStatusColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
|
+
return _this;
|
|
99
|
+
}
|
|
100
|
+
return ApprovalStatusColumnControl;
|
|
101
|
+
}(RuntimeColumnControl);
|
|
102
|
+
_define_property(ApprovalStatusColumnControl, "controlType", "approval-status-column");
|
|
103
|
+
export default ApprovalStatusColumnControl;
|
|
104
|
+
export { ApprovalStatusColumnControl as RuntimeApprovalStatusColumnControl };
|
|
File without changes
|
|
@@ -119,7 +119,10 @@ _define_property(ArrayColumnControl, "setting", [
|
|
|
119
119
|
key: "column-autowidth",
|
|
120
120
|
visible: true
|
|
121
121
|
},
|
|
122
|
-
|
|
122
|
+
{
|
|
123
|
+
key: "column-align-content",
|
|
124
|
+
visible: true
|
|
125
|
+
},
|
|
123
126
|
{
|
|
124
127
|
key: "column-fixed",
|
|
125
128
|
visible: true
|
|
@@ -128,6 +131,10 @@ _define_property(ArrayColumnControl, "setting", [
|
|
|
128
131
|
key: "column-options-setting",
|
|
129
132
|
visible: true
|
|
130
133
|
},
|
|
134
|
+
{
|
|
135
|
+
key: "column-link-operation",
|
|
136
|
+
visible: true
|
|
137
|
+
},
|
|
131
138
|
{
|
|
132
139
|
key: "column-sort",
|
|
133
140
|
visible: true
|
|
@@ -82,7 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, initOptions } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, initOptions, LinkOperationOption, initLinkOperationRules } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import { DesignerArrayColumnControl } from "./designer";
|
|
87
87
|
/**
|
|
88
88
|
* ArrayColumn 数组列
|
|
@@ -93,7 +93,10 @@ import { DesignerArrayColumnControl } from "./designer";
|
|
|
93
93
|
var _super = _create_super(ArrayColumnControlPropertyRules);
|
|
94
94
|
function ArrayColumnControlPropertyRules(props) {
|
|
95
95
|
_class_call_check(this, ArrayColumnControlPropertyRules);
|
|
96
|
-
|
|
96
|
+
var _this;
|
|
97
|
+
_this = _super.call(this, props);
|
|
98
|
+
initLinkOperationRules.call(_assert_this_initialized(_this), props);
|
|
99
|
+
return _this;
|
|
97
100
|
}
|
|
98
101
|
return ArrayColumnControlPropertyRules;
|
|
99
102
|
}(ColumnOptionAndDataSourcePropertyRules);
|
|
@@ -120,11 +123,11 @@ import { DesignerArrayColumnControl } from "./designer";
|
|
|
120
123
|
/**
|
|
121
124
|
* 是否显示链接操作
|
|
122
125
|
* @public
|
|
123
|
-
*/
|
|
126
|
+
*/ _define_property(_assert_this_initialized(_this), "showLinkOperation", void 0);
|
|
124
127
|
/**
|
|
125
128
|
* 链接操作配置
|
|
126
129
|
* @public
|
|
127
|
-
*/
|
|
130
|
+
*/ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
|
|
128
131
|
/**
|
|
129
132
|
* 自定义选项
|
|
130
133
|
* @defaultValue []
|
|
@@ -135,11 +138,10 @@ import { DesignerArrayColumnControl } from "./designer";
|
|
|
135
138
|
var _props_optionConfig;
|
|
136
139
|
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "none";
|
|
137
140
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
141
|
+
var _props_showLinkOperation;
|
|
142
|
+
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
143
|
+
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
138
144
|
var _props_options;
|
|
139
|
-
// this.showLinkOperation = props?.showLinkOperation ?? false
|
|
140
|
-
// this.linkOperationOption = new LinkOperationOption(
|
|
141
|
-
// props?.linkOperationOption
|
|
142
|
-
// )
|
|
143
145
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
144
146
|
{}
|
|
145
147
|
]);
|
|
@@ -120,13 +120,17 @@ _define_property(AutoNumberColumnControl, "setting", [
|
|
|
120
120
|
visible: true
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
key: "column-
|
|
123
|
+
key: "column-align-content",
|
|
124
124
|
visible: true
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
key: "column-fixed",
|
|
128
128
|
visible: true
|
|
129
129
|
},
|
|
130
|
+
{
|
|
131
|
+
key: "column-link-operation",
|
|
132
|
+
visible: true
|
|
133
|
+
},
|
|
130
134
|
{
|
|
131
135
|
key: "column-sort",
|
|
132
136
|
visible: true
|
|
@@ -82,8 +82,28 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { ColumnControlProperty, ColumnControlPropertyRules } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import { DesignerCustomColumnControl } from "./designer";
|
|
87
|
+
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
88
|
+
var CustomColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
|
|
89
|
+
"use strict";
|
|
90
|
+
_inherits(CustomColumnControlPropertyRules, ColumnControlPropertyRules);
|
|
91
|
+
var _super = _create_super(CustomColumnControlPropertyRules);
|
|
92
|
+
function CustomColumnControlPropertyRules(props) {
|
|
93
|
+
_class_call_check(this, CustomColumnControlPropertyRules);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _super.call(this, props);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "sortFieldCode", {
|
|
97
|
+
type: "string",
|
|
98
|
+
message: RulesMessage.getMessage("pleaseSelectSortFieldCode")
|
|
99
|
+
});
|
|
100
|
+
if (props.sort === true) {
|
|
101
|
+
_this.sortFieldCode.required = true;
|
|
102
|
+
}
|
|
103
|
+
return _this;
|
|
104
|
+
}
|
|
105
|
+
return CustomColumnControlPropertyRules;
|
|
106
|
+
}(ColumnControlPropertyRules);
|
|
87
107
|
/**
|
|
88
108
|
* CustomColumn 自定义列
|
|
89
109
|
* @public
|
|
@@ -96,13 +116,17 @@ import { DesignerCustomColumnControl } from "./designer";
|
|
|
96
116
|
var _this;
|
|
97
117
|
_this = _super.call(this, props);
|
|
98
118
|
_define_property(_assert_this_initialized(_this), "fieldCodeList", void 0);
|
|
119
|
+
_define_property(_assert_this_initialized(_this), "sortFieldCode", void 0);
|
|
99
120
|
var _props_caption;
|
|
100
121
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerCustomColumnControl.controlName;
|
|
101
122
|
var _props_fieldCodeList;
|
|
102
123
|
_this.fieldCodeList = (_props_fieldCodeList = props === null || props === void 0 ? void 0 : props.fieldCodeList) !== null && _props_fieldCodeList !== void 0 ? _props_fieldCodeList : [];
|
|
124
|
+
var _props_sortFieldCode;
|
|
125
|
+
_this.sortFieldCode = (_props_sortFieldCode = props === null || props === void 0 ? void 0 : props.sortFieldCode) !== null && _props_sortFieldCode !== void 0 ? _props_sortFieldCode : "";
|
|
103
126
|
return _this;
|
|
104
127
|
}
|
|
105
128
|
return CustomColumnControlProperty;
|
|
106
129
|
}(ColumnControlProperty);
|
|
130
|
+
_define_property(CustomColumnControlProperty, "Rules", CustomColumnControlPropertyRules);
|
|
107
131
|
export default CustomColumnControlProperty;
|
|
108
132
|
export { CustomColumnControlProperty };
|