@byteluck-fe/model-driven-controls 2.22.4-beta.4 → 2.22.4-beta.6

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.
@@ -86,6 +86,7 @@ function _is_native_reflect_construct() {
86
86
  }
87
87
  import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
88
88
  import StepControlProperty from './property';
89
+ import { DesignerStepPaneControl } from '../StepPane';
89
90
  import { getLocaleText } from '@byteluck-fe/locale-message';
90
91
  var StepControl = /*#__PURE__*/ function(DesignerLayoutControl) {
91
92
  "use strict";
@@ -97,6 +98,12 @@ var StepControl = /*#__PURE__*/ function(DesignerLayoutControl) {
97
98
  props
98
99
  ]), _define_property(_this, "props", void 0);
99
100
  _this.props = new StepControlProperty(props === null || props === void 0 ? void 0 : props.props);
101
+ var _props_children;
102
+ _this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [
103
+ new DesignerStepPaneControl(),
104
+ new DesignerStepPaneControl(),
105
+ new DesignerStepPaneControl()
106
+ ];
100
107
  return _this;
101
108
  }
102
109
  _create_class(StepControl, null, [
@@ -0,0 +1,130 @@
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 _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
88
+ import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
89
+ import StepPaneControlProperty from './property';
90
+ import { getLocaleText } from '@byteluck-fe/locale-message';
91
+ var StepPaneControl = /*#__PURE__*/ function(DesignerLayoutControl) {
92
+ "use strict";
93
+ _inherits(StepPaneControl, DesignerLayoutControl);
94
+ function StepPaneControl(props) {
95
+ _class_call_check(this, StepPaneControl);
96
+ var _this;
97
+ _this = _call_super(this, StepPaneControl, [
98
+ props
99
+ ]), _define_property(_this, "props", void 0);
100
+ _this.props = new StepPaneControlProperty(props === null || props === void 0 ? void 0 : props.props);
101
+ return _this;
102
+ }
103
+ _create_class(StepPaneControl, null, [
104
+ {
105
+ key: "controlName",
106
+ get: function get() {
107
+ return getLocaleText('CMD.stepPane', null, '步骤单元');
108
+ }
109
+ },
110
+ {
111
+ key: "controlType",
112
+ get: function get() {
113
+ return 'step-pane';
114
+ }
115
+ },
116
+ {
117
+ key: "controlIcon",
118
+ get: function get() {
119
+ return 'step-pane';
120
+ }
121
+ }
122
+ ]);
123
+ return StepPaneControl;
124
+ }(DesignerLayoutControl);
125
+ _define_property(StepPaneControl, "excludes", [
126
+ CONTROL_TYPE.TAB
127
+ ]);
128
+ _define_property(StepPaneControl, "setting", []);
129
+ export default StepPaneControl;
130
+ export { StepPaneControl as DesignerStepPaneControl };
@@ -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,117 @@
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 { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
74
+ // class StepPaneControlPropertyRules extends PropertyRules {
75
+ // public caption: RuleItem = {
76
+ // type: 'string',
77
+ // required: true,
78
+ // message: getLocaleText('CMD.pleaseEnterCaption',null,'请输入标题'),
79
+ // }
80
+ // constructor(props: StepPaneControlProperty) {
81
+ // super(props)
82
+ // }
83
+ // }
84
+ var StepPaneControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
85
+ "use strict";
86
+ _inherits(StepPaneControlProperty, LayoutControlProperty);
87
+ function StepPaneControlProperty(props) {
88
+ _class_call_check(this, StepPaneControlProperty);
89
+ var _this;
90
+ _this = _call_super(this, StepPaneControlProperty, [
91
+ props
92
+ ]), // static readonly Rules = StepPaneControlPropertyRules
93
+ _define_property(_this, "title", void 0 //主标题
94
+ ), _define_property(_this, "subTitle", void 0 //副标题
95
+ ), _define_property(_this, "disabled", void 0 //是否禁用点击
96
+ ), _define_property(_this, "icon", void 0 //步骤图标
97
+ ), _define_property(_this, "color", void 0 //步骤激活颜色
98
+ ), _define_property(_this, "status", void 0 //步骤状态
99
+ );
100
+ var _props_title;
101
+ _this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : '';
102
+ var _props_subTitle;
103
+ _this.subTitle = (_props_subTitle = props === null || props === void 0 ? void 0 : props.subTitle) !== null && _props_subTitle !== void 0 ? _props_subTitle : '';
104
+ var _props_disabled;
105
+ _this.disabled = (_props_disabled = props === null || props === void 0 ? void 0 : props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : false;
106
+ var _props_icon;
107
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : '';
108
+ var _props_color;
109
+ _this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : '';
110
+ var _props_status;
111
+ _this.status = (_props_status = props === null || props === void 0 ? void 0 : props.status) !== null && _props_status !== void 0 ? _props_status : 'wait';
112
+ return _this;
113
+ }
114
+ return StepPaneControlProperty;
115
+ }(LayoutControlProperty);
116
+ export default StepPaneControlProperty;
117
+ export { StepPaneControlProperty };
@@ -0,0 +1,112 @@
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 _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
88
+ import StepPaneControlProperty from './property';
89
+ var StepPaneControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
90
+ "use strict";
91
+ _inherits(StepPaneControl, RuntimeLayoutControl);
92
+ function StepPaneControl(props) {
93
+ _class_call_check(this, StepPaneControl);
94
+ var _this;
95
+ _this = _call_super(this, StepPaneControl, [
96
+ props
97
+ ]), _define_property(_this, "props", void 0);
98
+ _this.props = new StepPaneControlProperty(props === null || props === void 0 ? void 0 : props.props);
99
+ return _this;
100
+ }
101
+ _create_class(StepPaneControl, null, [
102
+ {
103
+ key: "controlType",
104
+ get: function get() {
105
+ return 'step-pane';
106
+ }
107
+ }
108
+ ]);
109
+ return StepPaneControl;
110
+ }(RuntimeLayoutControl);
111
+ export default StepPaneControl;
112
+ export { StepPaneControl as RuntimeStepPaneControl };
File without changes
@@ -17,3 +17,5 @@ export { default as AdvancedContainer } from './AdvancedContainer';
17
17
  export { default as PositioningContainer } from './PositioningContainer';
18
18
  export { default as Position } from './Position';
19
19
  export { default as ActionBar } from './ActionBar';
20
+ export { default as Step } from './Step';
21
+ export { default as StepPane } from './StepPane';