@byteluck-fe/model-driven-controls 6.2.0-1-beta-list.2 → 6.2.0-1-beta-list.4
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/columnControls/GroupColumn/designer.js +118 -0
- package/dist/esm/columnControls/GroupColumn/index.js +11 -0
- package/dist/esm/columnControls/GroupColumn/property.js +80 -0
- package/dist/esm/columnControls/GroupColumn/runtime.js +93 -0
- package/dist/esm/columnControls/GroupColumn/types.js +0 -0
- package/dist/esm/columnControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/GroupColumn/designer.d.ts +12 -0
- package/dist/types/columnControls/GroupColumn/index.d.ts +12 -0
- package/dist/types/columnControls/GroupColumn/property.d.ts +10 -0
- package/dist/types/columnControls/GroupColumn/runtime.d.ts +12 -0
- package/dist/types/columnControls/GroupColumn/types.d.ts +0 -0
- package/dist/types/columnControls/index.d.ts +1 -0
- package/dist/types/type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -0,0 +1,118 @@
|
|
|
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 _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _define_property(obj, key, value) {
|
|
17
|
+
if (key in obj) {
|
|
18
|
+
Object.defineProperty(obj, key, {
|
|
19
|
+
value: value,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
obj[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function _get_prototype_of(o) {
|
|
30
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
31
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32
|
+
};
|
|
33
|
+
return _get_prototype_of(o);
|
|
34
|
+
}
|
|
35
|
+
function _inherits(subClass, superClass) {
|
|
36
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
37
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
38
|
+
}
|
|
39
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
40
|
+
constructor: {
|
|
41
|
+
value: subClass,
|
|
42
|
+
writable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
|
+
}
|
|
48
|
+
function _possible_constructor_return(self, call) {
|
|
49
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
50
|
+
return call;
|
|
51
|
+
}
|
|
52
|
+
return _assert_this_initialized(self);
|
|
53
|
+
}
|
|
54
|
+
function _set_prototype_of(o, p) {
|
|
55
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
56
|
+
o.__proto__ = p;
|
|
57
|
+
return o;
|
|
58
|
+
};
|
|
59
|
+
return _set_prototype_of(o, p);
|
|
60
|
+
}
|
|
61
|
+
function _type_of(obj) {
|
|
62
|
+
"@swc/helpers - typeof";
|
|
63
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
|
+
}
|
|
65
|
+
function _is_native_reflect_construct() {
|
|
66
|
+
try {
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
72
|
+
}
|
|
73
|
+
import { DesignerColumnControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
import GroupColumnControlProperty from './property';
|
|
75
|
+
var GroupColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
76
|
+
"use strict";
|
|
77
|
+
_inherits(GroupColumnControl, DesignerColumnControl);
|
|
78
|
+
function GroupColumnControl(props) {
|
|
79
|
+
_class_call_check(this, GroupColumnControl);
|
|
80
|
+
var _this;
|
|
81
|
+
_this = _call_super(this, GroupColumnControl, [
|
|
82
|
+
props
|
|
83
|
+
]), _define_property(_this, "props", void 0);
|
|
84
|
+
_this.props = new GroupColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
87
|
+
return GroupColumnControl;
|
|
88
|
+
}(DesignerColumnControl);
|
|
89
|
+
_define_property(GroupColumnControl, "controlType", 'group-column');
|
|
90
|
+
_define_property(GroupColumnControl, "controlName", '合并列');
|
|
91
|
+
_define_property(GroupColumnControl, "controlIcon", 'group-column');
|
|
92
|
+
_define_property(GroupColumnControl, "setting", [
|
|
93
|
+
{
|
|
94
|
+
key: 'caption',
|
|
95
|
+
showItems: [
|
|
96
|
+
COMMON_SETTING_TYPE.CAPTION
|
|
97
|
+
],
|
|
98
|
+
visible: true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key: 'column-align-content',
|
|
102
|
+
visible: true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: 'column-fixed',
|
|
106
|
+
visible: true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
key: 'column-sort',
|
|
110
|
+
visible: true
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: 'super-setting',
|
|
114
|
+
visible: true
|
|
115
|
+
}
|
|
116
|
+
]);
|
|
117
|
+
export default GroupColumnControl;
|
|
118
|
+
export { GroupColumnControl as DesignerGroupColumnControl };
|
|
@@ -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,80 @@
|
|
|
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 _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _get_prototype_of(o) {
|
|
17
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
18
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
19
|
+
};
|
|
20
|
+
return _get_prototype_of(o);
|
|
21
|
+
}
|
|
22
|
+
function _inherits(subClass, superClass) {
|
|
23
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
24
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
25
|
+
}
|
|
26
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
27
|
+
constructor: {
|
|
28
|
+
value: subClass,
|
|
29
|
+
writable: true,
|
|
30
|
+
configurable: true
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
34
|
+
}
|
|
35
|
+
function _possible_constructor_return(self, call) {
|
|
36
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
37
|
+
return call;
|
|
38
|
+
}
|
|
39
|
+
return _assert_this_initialized(self);
|
|
40
|
+
}
|
|
41
|
+
function _set_prototype_of(o, p) {
|
|
42
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
43
|
+
o.__proto__ = p;
|
|
44
|
+
return o;
|
|
45
|
+
};
|
|
46
|
+
return _set_prototype_of(o, p);
|
|
47
|
+
}
|
|
48
|
+
function _type_of(obj) {
|
|
49
|
+
"@swc/helpers - typeof";
|
|
50
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
51
|
+
}
|
|
52
|
+
function _is_native_reflect_construct() {
|
|
53
|
+
try {
|
|
54
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
55
|
+
} catch (_) {}
|
|
56
|
+
return (_is_native_reflect_construct = function() {
|
|
57
|
+
return !!result;
|
|
58
|
+
})();
|
|
59
|
+
}
|
|
60
|
+
import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
|
|
61
|
+
/**
|
|
62
|
+
* CustomColumn 合并列
|
|
63
|
+
* @public
|
|
64
|
+
*/ var GroupColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
65
|
+
"use strict";
|
|
66
|
+
_inherits(GroupColumnControlProperty, ColumnControlProperty);
|
|
67
|
+
function GroupColumnControlProperty(props) {
|
|
68
|
+
_class_call_check(this, GroupColumnControlProperty);
|
|
69
|
+
var _this;
|
|
70
|
+
_this = _call_super(this, GroupColumnControlProperty, [
|
|
71
|
+
props
|
|
72
|
+
]);
|
|
73
|
+
var _props_caption;
|
|
74
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
75
|
+
return _this;
|
|
76
|
+
}
|
|
77
|
+
return GroupColumnControlProperty;
|
|
78
|
+
}(ColumnControlProperty);
|
|
79
|
+
export default GroupColumnControlProperty;
|
|
80
|
+
export { GroupColumnControlProperty };
|
|
@@ -0,0 +1,93 @@
|
|
|
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 _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _define_property(obj, key, value) {
|
|
17
|
+
if (key in obj) {
|
|
18
|
+
Object.defineProperty(obj, key, {
|
|
19
|
+
value: value,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
obj[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function _get_prototype_of(o) {
|
|
30
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
31
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32
|
+
};
|
|
33
|
+
return _get_prototype_of(o);
|
|
34
|
+
}
|
|
35
|
+
function _inherits(subClass, superClass) {
|
|
36
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
37
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
38
|
+
}
|
|
39
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
40
|
+
constructor: {
|
|
41
|
+
value: subClass,
|
|
42
|
+
writable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
|
+
}
|
|
48
|
+
function _possible_constructor_return(self, call) {
|
|
49
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
50
|
+
return call;
|
|
51
|
+
}
|
|
52
|
+
return _assert_this_initialized(self);
|
|
53
|
+
}
|
|
54
|
+
function _set_prototype_of(o, p) {
|
|
55
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
56
|
+
o.__proto__ = p;
|
|
57
|
+
return o;
|
|
58
|
+
};
|
|
59
|
+
return _set_prototype_of(o, p);
|
|
60
|
+
}
|
|
61
|
+
function _type_of(obj) {
|
|
62
|
+
"@swc/helpers - typeof";
|
|
63
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
|
+
}
|
|
65
|
+
function _is_native_reflect_construct() {
|
|
66
|
+
try {
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
72
|
+
}
|
|
73
|
+
import { RuntimeColumnControl } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
import GroupColumnControlProperty from './property';
|
|
75
|
+
import { defineControlArrayToProperty } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
var GroupColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
|
|
77
|
+
"use strict";
|
|
78
|
+
_inherits(GroupColumnControl, RuntimeColumnControl);
|
|
79
|
+
function GroupColumnControl(props) {
|
|
80
|
+
_class_call_check(this, GroupColumnControl);
|
|
81
|
+
var _this;
|
|
82
|
+
_this = _call_super(this, GroupColumnControl, [
|
|
83
|
+
props
|
|
84
|
+
]), _define_property(_this, "props", void 0), _define_property(_this, "children", void 0);
|
|
85
|
+
_this.props = new GroupColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
86
|
+
defineControlArrayToProperty(_this, 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
87
|
+
return _this;
|
|
88
|
+
}
|
|
89
|
+
return GroupColumnControl;
|
|
90
|
+
}(RuntimeColumnControl);
|
|
91
|
+
_define_property(GroupColumnControl, "controlType", 'group-column');
|
|
92
|
+
export default GroupColumnControl;
|
|
93
|
+
export { GroupColumnControl as RuntimeGroupColumnControl };
|
|
File without changes
|
|
@@ -15,3 +15,4 @@ export { default as OrderColumn } from './OrderColumn';
|
|
|
15
15
|
export { default as OperationColumn } from './OperationColumn';
|
|
16
16
|
export { default as EmployeeColumn } from './EmployeeColumn';
|
|
17
17
|
export { default as ApprovalStatusColumn } from './ApprovalStatusColumn';
|
|
18
|
+
export { default as GroupColumn } from './GroupColumn';
|