@byteluck-fe/model-driven-controls 2.8.2-beta.6 → 2.8.2-beta.8
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/CustomColumn/designer.js +0 -50
- package/dist/esm/columnControls/OperationColumn/designer.js +10 -54
- package/dist/esm/columnControls/OperationColumn/runtime.js +1 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/CustomColumn/designer.d.ts +0 -9
- package/dist/types/columnControls/OperationColumn/designer.d.ts +1 -11
- package/dist/types/columnControls/OperationColumn/runtime.d.ts +1 -2
- package/package.json +5 -5
|
@@ -78,45 +78,6 @@ function _instanceof(left, right) {
|
|
|
78
78
|
return left instanceof right;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function _object_spread(target) {
|
|
82
|
-
for(var i = 1; i < arguments.length; i++){
|
|
83
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
84
|
-
var ownKeys = Object.keys(source);
|
|
85
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
86
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
87
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
88
|
-
}));
|
|
89
|
-
}
|
|
90
|
-
ownKeys.forEach(function(key) {
|
|
91
|
-
_define_property(target, key, source[key]);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
return target;
|
|
95
|
-
}
|
|
96
|
-
function ownKeys(object, enumerableOnly) {
|
|
97
|
-
var keys = Object.keys(object);
|
|
98
|
-
if (Object.getOwnPropertySymbols) {
|
|
99
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
100
|
-
if (enumerableOnly) {
|
|
101
|
-
symbols = symbols.filter(function(sym) {
|
|
102
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
keys.push.apply(keys, symbols);
|
|
106
|
-
}
|
|
107
|
-
return keys;
|
|
108
|
-
}
|
|
109
|
-
function _object_spread_props(target, source) {
|
|
110
|
-
source = source != null ? source : {};
|
|
111
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
112
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
113
|
-
} else {
|
|
114
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
115
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
return target;
|
|
119
|
-
}
|
|
120
81
|
function _possible_constructor_return(self, call) {
|
|
121
82
|
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
122
83
|
return call;
|
|
@@ -209,17 +170,6 @@ var CustomColumnControl = /*#__PURE__*/ function _target(DesignerColumnControl)
|
|
|
209
170
|
}
|
|
210
171
|
return dataBindModel;
|
|
211
172
|
}
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
key: "toSchema",
|
|
215
|
-
value: function toSchema() {
|
|
216
|
-
var superSchema = _get(_get_prototype_of(CustomColumnControl.prototype), "toSchema", this).call(this);
|
|
217
|
-
return _object_spread_props(_object_spread({}, superSchema), {
|
|
218
|
-
children: this.children.map(function(item) {
|
|
219
|
-
return item.toSchema();
|
|
220
|
-
})
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
173
|
}
|
|
224
174
|
]);
|
|
225
175
|
return CustomColumnControl;
|
|
@@ -100,45 +100,6 @@ function _inherits(subClass, superClass) {
|
|
|
100
100
|
});
|
|
101
101
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
102
102
|
}
|
|
103
|
-
function _object_spread(target) {
|
|
104
|
-
for(var i = 1; i < arguments.length; i++){
|
|
105
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
106
|
-
var ownKeys = Object.keys(source);
|
|
107
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
108
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
109
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
110
|
-
}));
|
|
111
|
-
}
|
|
112
|
-
ownKeys.forEach(function(key) {
|
|
113
|
-
_define_property(target, key, source[key]);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return target;
|
|
117
|
-
}
|
|
118
|
-
function ownKeys(object, enumerableOnly) {
|
|
119
|
-
var keys = Object.keys(object);
|
|
120
|
-
if (Object.getOwnPropertySymbols) {
|
|
121
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
122
|
-
if (enumerableOnly) {
|
|
123
|
-
symbols = symbols.filter(function(sym) {
|
|
124
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
keys.push.apply(keys, symbols);
|
|
128
|
-
}
|
|
129
|
-
return keys;
|
|
130
|
-
}
|
|
131
|
-
function _object_spread_props(target, source) {
|
|
132
|
-
source = source != null ? source : {};
|
|
133
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
134
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
135
|
-
} else {
|
|
136
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
137
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
return target;
|
|
141
|
-
}
|
|
142
103
|
function _possible_constructor_return(self, call) {
|
|
143
104
|
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
144
105
|
return call;
|
|
@@ -282,7 +243,7 @@ function _ts_generator(thisArg, body) {
|
|
|
282
243
|
};
|
|
283
244
|
}
|
|
284
245
|
}
|
|
285
|
-
import { DesignerColumnControl, COMMON_SETTING_TYPE
|
|
246
|
+
import { DesignerColumnControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
286
247
|
import { DesignerOperationButtonControl } from "../../baseControls/OperationButton";
|
|
287
248
|
import OperationColumnControlProperty from "./property";
|
|
288
249
|
var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
@@ -294,9 +255,7 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
294
255
|
var _this;
|
|
295
256
|
_this = _super.call(this, props);
|
|
296
257
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
297
|
-
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
298
258
|
_this.props = new OperationColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
299
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Designer");
|
|
300
259
|
return _this;
|
|
301
260
|
}
|
|
302
261
|
_create_class(OperationColumnControl, [
|
|
@@ -317,20 +276,17 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
317
276
|
return dataBindModel;
|
|
318
277
|
}
|
|
319
278
|
},
|
|
320
|
-
{
|
|
321
|
-
key: "toSchema",
|
|
322
|
-
value: function toSchema() {
|
|
323
|
-
var superSchema = _get(_get_prototype_of(OperationColumnControl.prototype), "toSchema", this).call(this);
|
|
324
|
-
return _object_spread_props(_object_spread({}, superSchema), {
|
|
325
|
-
children: this.children.map(function(item) {
|
|
326
|
-
return item.toSchema();
|
|
327
|
-
})
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
279
|
{
|
|
332
280
|
key: "validate",
|
|
333
|
-
value:
|
|
281
|
+
value: // 在列的基类中处理了
|
|
282
|
+
// public toSchema() {
|
|
283
|
+
// const superSchema = super.toSchema() as ColumnControlSchema<'custom-column'>
|
|
284
|
+
// return {
|
|
285
|
+
// ...superSchema,
|
|
286
|
+
// children: this.children.map((item) => item.toSchema()),
|
|
287
|
+
// }
|
|
288
|
+
// }
|
|
289
|
+
function validate(messages, ignore) {
|
|
334
290
|
var _this = this;
|
|
335
291
|
var _this1 = this, _superprop_get_validate = function() {
|
|
336
292
|
return _get(_get_prototype_of(OperationColumnControl.prototype), "validate", _this);
|
|
@@ -82,7 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import {
|
|
85
|
+
import { RuntimeColumnControl } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import OperationColumnControlProperty from "./property";
|
|
87
87
|
import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
88
88
|
var OperationColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
|
|
@@ -94,9 +94,7 @@ var OperationColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
|
|
|
94
94
|
var _this;
|
|
95
95
|
_this = _super.call(this, props);
|
|
96
96
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
97
|
-
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
98
97
|
_this.props = new OperationColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Runtime");
|
|
100
98
|
return _this;
|
|
101
99
|
}
|
|
102
100
|
return OperationColumnControl;
|