@byteluck-fe/model-driven-controls 2.7.0-beta.4 → 2.8.0-alpha.11
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 +1 -0
- package/dist/esm/baseControls/Button/property.js +43 -8
- 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 +141 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/index.js +11 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +121 -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 +5 -1
- package/dist/esm/columnControls/CustomColumn/property.js +25 -1
- package/dist/esm/columnControls/CustomColumn/runtime.js +1 -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/OperationColumn/designer.js +1 -1
- package/dist/esm/columnControls/OperationColumn/runtime.js +1 -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/Address/property.js +3 -1
- package/dist/esm/formControls/Amount/property.js +3 -1
- package/dist/esm/formControls/Attachment/property.js +7 -15
- package/dist/esm/formControls/Calc/property.js +3 -1
- package/dist/esm/formControls/Checkbox/property.js +3 -1
- package/dist/esm/formControls/DatePicker/designer.js +4 -1
- package/dist/esm/formControls/DateRange/designer.js +4 -1
- package/dist/esm/formControls/DateRange/property.js +4 -2
- package/dist/esm/formControls/Department/property.js +3 -1
- package/dist/esm/formControls/Department2/property.js +3 -1
- package/dist/esm/formControls/Employee/property.js +3 -1
- package/dist/esm/formControls/Employee2/property.js +3 -1
- package/dist/esm/formControls/Image/designer.js +2 -9
- package/dist/esm/formControls/Image/property.js +1 -7
- package/dist/esm/formControls/Number/property.js +3 -1
- package/dist/esm/formControls/OrganizationSelection/property.js +3 -1
- package/dist/esm/formControls/Score/property.js +3 -1
- package/dist/esm/formControls/SearchDateRange/designer.js +4 -1
- package/dist/esm/formControls/SearchDateRange/property.js +19 -15
- package/dist/esm/formControls/SearchNumberRange/property.js +3 -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 +41 -3
- package/dist/esm/formControls/SelectRelation/designer.js +5 -3
- package/dist/esm/formControls/SelectRelation/property.js +19 -1
- package/dist/esm/formControls/Tree/property.js +3 -1
- package/dist/esm/formControls/VueFormItem/property.js +3 -1
- package/dist/esm/formControls/WPS/property.js +3 -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 +8 -0
- package/dist/esm/layoutControls/ListView/property.js +112 -3
- package/dist/esm/layoutControls/index.js +2 -0
- package/dist/esm/listControls/GridTable/designer.js +5 -1
- 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 +10 -1
- 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 +42 -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 +28 -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 -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 +29 -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
|
@@ -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);
|
|
@@ -91,15 +91,48 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
91
91
|
_class_call_check(this, ButtonProperty);
|
|
92
92
|
var _this;
|
|
93
93
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
94
|
+
/**
|
|
95
|
+
* 按钮标题
|
|
96
|
+
* @public
|
|
97
|
+
* @defaultValue ''
|
|
98
|
+
*/ _define_property(_assert_this_initialized(_this), "content", void 0);
|
|
95
99
|
// public buttonType: 'primary' | 'secondary' | 'default' | 'danger'
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
/**
|
|
101
|
+
* 按钮类型
|
|
102
|
+
* @public
|
|
103
|
+
* @defaultValue 'primary'
|
|
104
|
+
*/ _define_property(_assert_this_initialized(_this), "buttonType", void 0);
|
|
105
|
+
/**
|
|
106
|
+
* 显示形式
|
|
107
|
+
* @public
|
|
108
|
+
* @defaultValue 'text'
|
|
109
|
+
*/ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
110
|
+
/**
|
|
111
|
+
* 颜色
|
|
112
|
+
* @public
|
|
113
|
+
* @defaultValue 'primary'
|
|
114
|
+
*/ _define_property(_assert_this_initialized(_this), "color", void 0);
|
|
115
|
+
/**
|
|
116
|
+
* 图标
|
|
117
|
+
* @public
|
|
118
|
+
* @defaultValue ''
|
|
119
|
+
*/ _define_property(_assert_this_initialized(_this), "icon", void 0);
|
|
100
120
|
_define_property(_assert_this_initialized(_this), "defaultState", void 0);
|
|
101
|
-
|
|
102
|
-
|
|
121
|
+
/**
|
|
122
|
+
* 按钮命令
|
|
123
|
+
* @public
|
|
124
|
+
* @defaultValue ''
|
|
125
|
+
*/ _define_property(_assert_this_initialized(_this), "command", void 0);
|
|
126
|
+
/**
|
|
127
|
+
* 加载中
|
|
128
|
+
* @public
|
|
129
|
+
* @defaultValue ''
|
|
130
|
+
*/ _define_property(_assert_this_initialized(_this), "isLoading", void 0);
|
|
131
|
+
/**
|
|
132
|
+
* 操作项
|
|
133
|
+
* @public
|
|
134
|
+
* @defaultValue ''
|
|
135
|
+
*/ _define_property(_assert_this_initialized(_this), "optObj", void 0);
|
|
103
136
|
var _props_content;
|
|
104
137
|
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "按钮";
|
|
105
138
|
var _props_buttonType;
|
|
@@ -117,6 +150,8 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
117
150
|
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "custom";
|
|
118
151
|
var _props_isLoading;
|
|
119
152
|
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
153
|
+
var _props_optObj;
|
|
154
|
+
_this.optObj = new OptObject((_props_optObj = props === null || props === void 0 ? void 0 : props.optObj) !== null && _props_optObj !== void 0 ? _props_optObj : {});
|
|
120
155
|
return _this;
|
|
121
156
|
}
|
|
122
157
|
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,141 @@
|
|
|
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
|
+
// { key: 'column-process-enum-type', visible: true },
|
|
123
|
+
{
|
|
124
|
+
key: "column-align-content",
|
|
125
|
+
visible: true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: "column-fixed",
|
|
129
|
+
visible: true
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
key: "column-link-operation",
|
|
133
|
+
visible: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: "column-line-ellipsis",
|
|
137
|
+
visible: true
|
|
138
|
+
}
|
|
139
|
+
]);
|
|
140
|
+
export default ApprovalStatusColumnControl;
|
|
141
|
+
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,121 @@
|
|
|
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
|
+
var _props_caption;
|
|
110
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerApprovalStatusColumnControl.controlName;
|
|
111
|
+
var _props_showLinkOperation;
|
|
112
|
+
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
113
|
+
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
114
|
+
var _props_lineEllipsis;
|
|
115
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
116
|
+
return _this;
|
|
117
|
+
}
|
|
118
|
+
return ApprovalStatusColumnControlProperty;
|
|
119
|
+
}(ColumnControlProperty);
|
|
120
|
+
export default ApprovalStatusColumnControlProperty;
|
|
121
|
+
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
|
|
@@ -183,7 +183,7 @@ var CustomColumnControl = /*#__PURE__*/ function _target(DesignerColumnControl)
|
|
|
183
183
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
184
184
|
var _ref = _instanceof(this, CustomColumnControl) ? this.constructor : void 0, excludes = _ref.excludes, childrenMaxLength = _ref.childrenMaxLength;
|
|
185
185
|
_this.props = new CustomColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
186
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
186
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Designer");
|
|
187
187
|
_this.excludes = JSONCopy(excludes);
|
|
188
188
|
_this.childrenMaxLength = childrenMaxLength;
|
|
189
189
|
return _this;
|
|
@@ -252,6 +252,10 @@ _define_property(CustomColumnControl, "setting", [
|
|
|
252
252
|
{
|
|
253
253
|
key: "column-sort",
|
|
254
254
|
visible: true
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
key: "column-sort-field",
|
|
258
|
+
visible: true
|
|
255
259
|
}
|
|
256
260
|
]);
|
|
257
261
|
export default CustomColumnControl;
|