@byteluck-fe/model-driven-core 2.7.0-alpha.13 → 2.7.0-alpha.15a
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/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +99 -243
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +14 -42
- package/dist/esm/common/BaseControl/runtime.js +21 -41
- package/dist/esm/common/ColumnControl/designer.js +5 -19
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +47 -95
- package/dist/esm/common/ColumnControl/runtime.js +5 -19
- package/dist/esm/common/ControlArray.js +21 -19
- package/dist/esm/common/FormControl/designer.js +10 -25
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +95 -157
- package/dist/esm/common/FormControl/runtime.js +5 -20
- package/dist/esm/common/LayoutControl/designer.js +30 -158
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +3 -3
- package/dist/esm/common/LayoutControl/runtime.js +7 -22
- package/dist/esm/common/ListControl/designer.js +29 -154
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +6 -21
- package/dist/esm/common/ListControl/runtime.js +8 -23
- package/dist/esm/common/SearchViewControl/designer.js +5 -19
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +4 -18
- package/dist/esm/common/SearchViewControl/runtime.js +5 -19
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +5 -19
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +3 -3
- package/dist/esm/common/WrapControl/runtime.js +5 -19
- package/dist/esm/common/controlHooksEmitter.js +1 -1
- package/dist/esm/common/index.js +12 -12
- package/dist/esm/common/initLinkOperationRules.js +6 -6
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +84 -33
- package/dist/esm/framework/index.js +332 -769
- package/dist/esm/index.js +4 -4
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/designer.d.ts +2 -5
- package/dist/types/common/BaseControl/property.d.ts +2 -0
- package/dist/types/common/BaseControl/runtime.d.ts +2 -1
- package/dist/types/common/ControlArray.d.ts +4 -3
- package/dist/types/common/ListControl/property.d.ts +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/framework/RegisterControls.d.ts +4 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -69,10 +69,10 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { Property } from
|
|
73
|
-
var LayoutControlProperty = /*#__PURE__*/ function(
|
|
72
|
+
import { Property } from '../BaseControl';
|
|
73
|
+
var LayoutControlProperty = /*#__PURE__*/ function(Property1) {
|
|
74
74
|
"use strict";
|
|
75
|
-
_inherits(LayoutControlProperty,
|
|
75
|
+
_inherits(LayoutControlProperty, Property1);
|
|
76
76
|
var _super = _createSuper(LayoutControlProperty);
|
|
77
77
|
function LayoutControlProperty(props) {
|
|
78
78
|
_classCallCheck(this, LayoutControlProperty);
|
|
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function _defineProperty(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
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -82,22 +69,20 @@ function _createSuper(Derived) {
|
|
|
82
69
|
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { RuntimeControl } from
|
|
86
|
-
import LayoutControlProperty from
|
|
87
|
-
import { defineControlArrayToProperty } from
|
|
88
|
-
var LayoutControl = /*#__PURE__*/ function(
|
|
72
|
+
import { RuntimeControl } from '../BaseControl';
|
|
73
|
+
import LayoutControlProperty from './property';
|
|
74
|
+
import { defineControlArrayToProperty } from '../ControlArray';
|
|
75
|
+
var LayoutControl = /*#__PURE__*/ function(RuntimeControl1) {
|
|
89
76
|
"use strict";
|
|
90
|
-
_inherits(LayoutControl,
|
|
77
|
+
_inherits(LayoutControl, RuntimeControl1);
|
|
91
78
|
var _super = _createSuper(LayoutControl);
|
|
92
79
|
function LayoutControl(props) {
|
|
93
80
|
_classCallCheck(this, LayoutControl);
|
|
94
81
|
var _this;
|
|
95
82
|
_this = _super.call(this, props);
|
|
96
|
-
|
|
97
|
-
_defineProperty(_assertThisInitialized(_this), "children", void 0);
|
|
98
|
-
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
83
|
+
_this.controlType = 'layout';
|
|
99
84
|
_this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
-
defineControlArrayToProperty(_assertThisInitialized(_this),
|
|
85
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
101
86
|
return _this;
|
|
102
87
|
}
|
|
103
88
|
return LayoutControl;
|
|
@@ -129,30 +129,6 @@ function _objectSpread(target) {
|
|
|
129
129
|
}
|
|
130
130
|
return target;
|
|
131
131
|
}
|
|
132
|
-
function ownKeys(object, enumerableOnly) {
|
|
133
|
-
var keys = Object.keys(object);
|
|
134
|
-
if (Object.getOwnPropertySymbols) {
|
|
135
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
136
|
-
if (enumerableOnly) {
|
|
137
|
-
symbols = symbols.filter(function(sym) {
|
|
138
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
keys.push.apply(keys, symbols);
|
|
142
|
-
}
|
|
143
|
-
return keys;
|
|
144
|
-
}
|
|
145
|
-
function _objectSpreadProps(target, source) {
|
|
146
|
-
source = source != null ? source : {};
|
|
147
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
148
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
149
|
-
} else {
|
|
150
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
151
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
return target;
|
|
155
|
-
}
|
|
156
132
|
function _possibleConstructorReturn(self, call) {
|
|
157
133
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
158
134
|
return call;
|
|
@@ -212,115 +188,20 @@ function _createSuper(Derived) {
|
|
|
212
188
|
return _possibleConstructorReturn(this, result);
|
|
213
189
|
};
|
|
214
190
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
return t[1];
|
|
221
|
-
},
|
|
222
|
-
trys: [],
|
|
223
|
-
ops: []
|
|
224
|
-
};
|
|
225
|
-
return g = {
|
|
226
|
-
next: verb(0),
|
|
227
|
-
"throw": verb(1),
|
|
228
|
-
"return": verb(2)
|
|
229
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
230
|
-
return this;
|
|
231
|
-
}), g;
|
|
232
|
-
function verb(n) {
|
|
233
|
-
return function(v) {
|
|
234
|
-
return step([
|
|
235
|
-
n,
|
|
236
|
-
v
|
|
237
|
-
]);
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
function step(op) {
|
|
241
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
242
|
-
while(_)try {
|
|
243
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
244
|
-
if (y = 0, t) op = [
|
|
245
|
-
op[0] & 2,
|
|
246
|
-
t.value
|
|
247
|
-
];
|
|
248
|
-
switch(op[0]){
|
|
249
|
-
case 0:
|
|
250
|
-
case 1:
|
|
251
|
-
t = op;
|
|
252
|
-
break;
|
|
253
|
-
case 4:
|
|
254
|
-
_.label++;
|
|
255
|
-
return {
|
|
256
|
-
value: op[1],
|
|
257
|
-
done: false
|
|
258
|
-
};
|
|
259
|
-
case 5:
|
|
260
|
-
_.label++;
|
|
261
|
-
y = op[1];
|
|
262
|
-
op = [
|
|
263
|
-
0
|
|
264
|
-
];
|
|
265
|
-
continue;
|
|
266
|
-
case 7:
|
|
267
|
-
op = _.ops.pop();
|
|
268
|
-
_.trys.pop();
|
|
269
|
-
continue;
|
|
270
|
-
default:
|
|
271
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
272
|
-
_ = 0;
|
|
273
|
-
continue;
|
|
274
|
-
}
|
|
275
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
276
|
-
_.label = op[1];
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
280
|
-
_.label = t[1];
|
|
281
|
-
t = op;
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
if (t && _.label < t[2]) {
|
|
285
|
-
_.label = t[2];
|
|
286
|
-
_.ops.push(op);
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
if (t[2]) _.ops.pop();
|
|
290
|
-
_.trys.pop();
|
|
291
|
-
continue;
|
|
292
|
-
}
|
|
293
|
-
op = body.call(thisArg, _);
|
|
294
|
-
} catch (e) {
|
|
295
|
-
op = [
|
|
296
|
-
6,
|
|
297
|
-
e
|
|
298
|
-
];
|
|
299
|
-
y = 0;
|
|
300
|
-
} finally{
|
|
301
|
-
f = t = 0;
|
|
302
|
-
}
|
|
303
|
-
if (op[0] & 5) throw op[1];
|
|
304
|
-
return {
|
|
305
|
-
value: op[0] ? op[1] : void 0,
|
|
306
|
-
done: true
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
import { DesignerControl } from "../BaseControl";
|
|
311
|
-
import ListControlProperty from "./property";
|
|
312
|
-
import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
313
|
-
var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
191
|
+
import regeneratorRuntime from "regenerator-runtime";
|
|
192
|
+
import { DesignerControl } from '../BaseControl';
|
|
193
|
+
import ListControlProperty from './property';
|
|
194
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
195
|
+
var ListControl = /*#__PURE__*/ function(DesignerControl1) {
|
|
314
196
|
"use strict";
|
|
315
|
-
_inherits(ListControl,
|
|
197
|
+
_inherits(ListControl, DesignerControl1);
|
|
316
198
|
var _super = _createSuper(ListControl);
|
|
317
199
|
function ListControl(props) {
|
|
318
200
|
_classCallCheck(this, ListControl);
|
|
319
201
|
var _this;
|
|
320
202
|
_this = _super.call(this, props);
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
203
|
+
_this.controlType = 'list';
|
|
204
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props, 'Designer');
|
|
324
205
|
return _this;
|
|
325
206
|
}
|
|
326
207
|
_createClass(ListControl, [
|
|
@@ -331,31 +212,25 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
331
212
|
var _this1 = this, _superprop_get_validate = function() {
|
|
332
213
|
return _get(_getPrototypeOf(ListControl.prototype), "validate", _this);
|
|
333
214
|
};
|
|
334
|
-
return _asyncToGenerator(function() {
|
|
335
|
-
return
|
|
336
|
-
switch(
|
|
215
|
+
return _asyncToGenerator(regeneratorRuntime.mark(function _callee() {
|
|
216
|
+
return regeneratorRuntime.wrap(function _callee$(_ctx) {
|
|
217
|
+
while(1)switch(_ctx.prev = _ctx.next){
|
|
337
218
|
case 0:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
_superprop_get_validate().call(_this1, messages)
|
|
341
|
-
];
|
|
342
|
-
case 1:
|
|
343
|
-
_state.sent();
|
|
344
|
-
return [
|
|
345
|
-
4,
|
|
346
|
-
Promise.all(_this1.props.headers.map(function(child) {
|
|
347
|
-
return child.validate(messages, ignore);
|
|
348
|
-
}))
|
|
349
|
-
];
|
|
219
|
+
_ctx.next = 2;
|
|
220
|
+
return _superprop_get_validate().call(_this1, messages);
|
|
350
221
|
case 2:
|
|
351
|
-
|
|
352
|
-
return
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
222
|
+
_ctx.next = 4;
|
|
223
|
+
return Promise.all(_this1.props.headers.map(function(child) {
|
|
224
|
+
return child.validate(messages, ignore);
|
|
225
|
+
}));
|
|
226
|
+
case 4:
|
|
227
|
+
return _ctx.abrupt("return", true);
|
|
228
|
+
case 5:
|
|
229
|
+
case "end":
|
|
230
|
+
return _ctx.stop();
|
|
356
231
|
}
|
|
357
|
-
});
|
|
358
|
-
})();
|
|
232
|
+
}, _callee);
|
|
233
|
+
}))();
|
|
359
234
|
}
|
|
360
235
|
},
|
|
361
236
|
{
|
|
@@ -382,20 +257,20 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
382
257
|
{
|
|
383
258
|
key: "toSchema",
|
|
384
259
|
value: function toSchema() {
|
|
385
|
-
var
|
|
260
|
+
var ref, ref1;
|
|
386
261
|
var superSchema = _get(_getPrototypeOf(ListControl.prototype), "toSchema", this).call(this);
|
|
387
262
|
var headers = this.props.headers.map(function(item) {
|
|
388
263
|
return item.toSchema();
|
|
389
264
|
});
|
|
390
|
-
var footers = (
|
|
265
|
+
var footers = (ref = this.props) === null || ref === void 0 ? void 0 : (ref1 = ref.footers) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
|
|
391
266
|
if (item) {
|
|
392
267
|
return item.toSchema();
|
|
393
268
|
} else {
|
|
394
269
|
return undefined;
|
|
395
270
|
}
|
|
396
271
|
});
|
|
397
|
-
return
|
|
398
|
-
props:
|
|
272
|
+
return _objectSpread({}, superSchema, {
|
|
273
|
+
props: _objectSpread({}, this.props, {
|
|
399
274
|
headers: headers,
|
|
400
275
|
footers: footers
|
|
401
276
|
})
|
|
@@ -405,6 +280,6 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
405
280
|
]);
|
|
406
281
|
return ListControl;
|
|
407
282
|
}(DesignerControl);
|
|
408
|
-
|
|
283
|
+
ListControl.controlFieldType = FieldTypes.LIST;
|
|
409
284
|
export default ListControl;
|
|
410
285
|
export { ListControl as DesignerListControl };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Designer from
|
|
2
|
-
import Runtime from
|
|
3
|
-
import Property from
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
4
|
export default {
|
|
5
5
|
Designer: Designer,
|
|
6
6
|
Runtime: Runtime,
|
|
7
7
|
Property: Property
|
|
8
8
|
};
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|
|
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function _defineProperty(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
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -82,19 +69,17 @@ function _createSuper(Derived) {
|
|
|
82
69
|
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { Property } from
|
|
86
|
-
import { defineControlArrayToProperty } from
|
|
87
|
-
var ListControlProperty = /*#__PURE__*/ function(
|
|
72
|
+
import { Property } from '../BaseControl';
|
|
73
|
+
import { defineControlArrayToProperty } from '../ControlArray';
|
|
74
|
+
var ListControlProperty = /*#__PURE__*/ function(Property1) {
|
|
88
75
|
"use strict";
|
|
89
|
-
_inherits(ListControlProperty,
|
|
76
|
+
_inherits(ListControlProperty, Property1);
|
|
90
77
|
var _super = _createSuper(ListControlProperty);
|
|
91
|
-
function ListControlProperty(parent, props) {
|
|
78
|
+
function ListControlProperty(parent, props, mode) {
|
|
92
79
|
_classCallCheck(this, ListControlProperty);
|
|
93
80
|
var _this;
|
|
94
81
|
_this = _super.call(this, props);
|
|
95
|
-
|
|
96
|
-
_defineProperty(_assertThisInitialized(_this), "footers", void 0);
|
|
97
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), "headers", props === null || props === void 0 ? void 0 : props.headers, parent);
|
|
82
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
|
|
98
83
|
return _this;
|
|
99
84
|
}
|
|
100
85
|
return ListControlProperty;
|
|
@@ -23,19 +23,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
23
23
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
24
|
return Constructor;
|
|
25
25
|
}
|
|
26
|
-
function _defineProperty(obj, key, value) {
|
|
27
|
-
if (key in obj) {
|
|
28
|
-
Object.defineProperty(obj, key, {
|
|
29
|
-
value: value,
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true
|
|
33
|
-
});
|
|
34
|
-
} else {
|
|
35
|
-
obj[key] = value;
|
|
36
|
-
}
|
|
37
|
-
return obj;
|
|
38
|
-
}
|
|
39
26
|
function _getPrototypeOf(o) {
|
|
40
27
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
41
28
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -96,22 +83,20 @@ function _createSuper(Derived) {
|
|
|
96
83
|
return _possibleConstructorReturn(this, result);
|
|
97
84
|
};
|
|
98
85
|
}
|
|
99
|
-
import { RuntimeControl } from
|
|
100
|
-
import ListControlProperty from
|
|
101
|
-
import { defineControlArrayToProperty } from
|
|
102
|
-
var ListControl = /*#__PURE__*/ function(
|
|
86
|
+
import { RuntimeControl } from '../BaseControl';
|
|
87
|
+
import ListControlProperty from './property';
|
|
88
|
+
import { defineControlArrayToProperty } from '../ControlArray';
|
|
89
|
+
var ListControl = /*#__PURE__*/ function(RuntimeControl1) {
|
|
103
90
|
"use strict";
|
|
104
|
-
_inherits(ListControl,
|
|
91
|
+
_inherits(ListControl, RuntimeControl1);
|
|
105
92
|
var _super = _createSuper(ListControl);
|
|
106
93
|
function ListControl(props) {
|
|
107
94
|
_classCallCheck(this, ListControl);
|
|
108
95
|
var _this;
|
|
109
96
|
_this = _super.call(this, props);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
114
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
97
|
+
_this.controlType = 'list';
|
|
98
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props, 'Runtime');
|
|
99
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
115
100
|
return _this;
|
|
116
101
|
}
|
|
117
102
|
_createClass(ListControl, [
|
|
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function _defineProperty(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
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
|
|
|
82
69
|
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import SearchControlProperty from
|
|
86
|
-
import { DesignerLayoutControl } from
|
|
87
|
-
var SearchControl = /*#__PURE__*/ function(
|
|
72
|
+
import SearchControlProperty from './property';
|
|
73
|
+
import { DesignerLayoutControl } from '../LayoutControl';
|
|
74
|
+
var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl1) {
|
|
88
75
|
"use strict";
|
|
89
|
-
_inherits(SearchControl,
|
|
76
|
+
_inherits(SearchControl, DesignerLayoutControl1);
|
|
90
77
|
var _super = _createSuper(SearchControl);
|
|
91
78
|
function SearchControl(props) {
|
|
92
79
|
_classCallCheck(this, SearchControl);
|
|
93
80
|
var _this;
|
|
94
81
|
_this = _super.call(this, props);
|
|
95
|
-
|
|
96
|
-
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
82
|
+
_this.controlType = 'search';
|
|
97
83
|
_this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
84
|
return _this;
|
|
99
85
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Designer from
|
|
2
|
-
import Runtime from
|
|
3
|
-
import Property from
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
4
|
export default {
|
|
5
5
|
Designer: Designer,
|
|
6
6
|
Runtime: Runtime,
|
|
7
7
|
Property: Property
|
|
8
8
|
};
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|
|
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function _defineProperty(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
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -82,17 +69,16 @@ function _createSuper(Derived) {
|
|
|
82
69
|
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { LayoutControlProperty } from
|
|
86
|
-
import { DataBind } from
|
|
87
|
-
var SearchControlProperty = /*#__PURE__*/ function(
|
|
72
|
+
import { LayoutControlProperty } from '../LayoutControl';
|
|
73
|
+
import { DataBind } from '../../framework';
|
|
74
|
+
var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
|
|
88
75
|
"use strict";
|
|
89
|
-
_inherits(SearchControlProperty,
|
|
76
|
+
_inherits(SearchControlProperty, LayoutControlProperty1);
|
|
90
77
|
var _super = _createSuper(SearchControlProperty);
|
|
91
78
|
function SearchControlProperty(props) {
|
|
92
79
|
_classCallCheck(this, SearchControlProperty);
|
|
93
80
|
var _this;
|
|
94
81
|
_this = _super.call(this, props);
|
|
95
|
-
_defineProperty(_assertThisInitialized(_this), "dataBind", void 0);
|
|
96
82
|
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
97
83
|
return _this;
|
|
98
84
|
}
|
|
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function _defineProperty(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
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
|
|
|
82
69
|
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import SearchControlProperty from
|
|
86
|
-
import { RuntimeLayoutControl } from
|
|
87
|
-
var SearchControl = /*#__PURE__*/ function(
|
|
72
|
+
import SearchControlProperty from './property';
|
|
73
|
+
import { RuntimeLayoutControl } from '../LayoutControl';
|
|
74
|
+
var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl1) {
|
|
88
75
|
"use strict";
|
|
89
|
-
_inherits(SearchControl,
|
|
76
|
+
_inherits(SearchControl, RuntimeLayoutControl1);
|
|
90
77
|
var _super = _createSuper(SearchControl);
|
|
91
78
|
function SearchControl(props) {
|
|
92
79
|
_classCallCheck(this, SearchControl);
|
|
93
80
|
var _this;
|
|
94
81
|
_this = _super.call(this, props);
|
|
95
|
-
|
|
96
|
-
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
82
|
+
_this.controlType = 'search';
|
|
97
83
|
_this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
84
|
return _this;
|
|
99
85
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Schema from
|
|
1
|
+
import Schema from 'async-validator';
|
|
2
2
|
var messages = {
|
|
3
|
-
required:
|
|
4
|
-
maxLength:
|
|
5
|
-
minLength:
|
|
3
|
+
required: '%s 必填',
|
|
4
|
+
maxLength: '%s 超出最大长度限制',
|
|
5
|
+
minLength: '%s 小于最小长度限制',
|
|
6
6
|
string: {
|
|
7
|
-
range:
|
|
7
|
+
range: '%s 不在指定长度内'
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
function createValidator(rules) {
|
|
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function _defineProperty(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
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
|
|
|
82
69
|
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import WrapControlProperty from
|
|
86
|
-
import { DesignerLayoutControl } from
|
|
87
|
-
var WrapControl = /*#__PURE__*/ function(
|
|
72
|
+
import WrapControlProperty from './property';
|
|
73
|
+
import { DesignerLayoutControl } from '../LayoutControl';
|
|
74
|
+
var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl1) {
|
|
88
75
|
"use strict";
|
|
89
|
-
_inherits(WrapControl,
|
|
76
|
+
_inherits(WrapControl, DesignerLayoutControl1);
|
|
90
77
|
var _super = _createSuper(WrapControl);
|
|
91
78
|
function WrapControl(props) {
|
|
92
79
|
_classCallCheck(this, WrapControl);
|
|
93
80
|
var _this;
|
|
94
81
|
_this = _super.call(this, props);
|
|
95
|
-
|
|
96
|
-
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
82
|
+
_this.controlType = 'wrap';
|
|
97
83
|
_this.props = new WrapControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
84
|
return _this;
|
|
99
85
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Designer from
|
|
2
|
-
import Runtime from
|
|
3
|
-
import Property from
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
4
|
export default {
|
|
5
5
|
Designer: Designer,
|
|
6
6
|
Runtime: Runtime,
|
|
7
7
|
Property: Property
|
|
8
8
|
};
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|
|
@@ -69,10 +69,10 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { LayoutControlProperty } from
|
|
73
|
-
var WrapControlProperty = /*#__PURE__*/ function(
|
|
72
|
+
import { LayoutControlProperty } from '../LayoutControl';
|
|
73
|
+
var WrapControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
|
|
74
74
|
"use strict";
|
|
75
|
-
_inherits(WrapControlProperty,
|
|
75
|
+
_inherits(WrapControlProperty, LayoutControlProperty1);
|
|
76
76
|
var _super = _createSuper(WrapControlProperty);
|
|
77
77
|
function WrapControlProperty(props) {
|
|
78
78
|
_classCallCheck(this, WrapControlProperty);
|