@byteluck-fe/model-driven-controls 2.9.0-alpha.8 → 2.9.3

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,4 +86,5 @@ export { default as Position } from "./layoutControls/Position/property";
86
86
  export { default as SubTable } from "./listControls/SubTable/property";
87
87
  export { default as GridTable } from "./listControls/GridTable/property";
88
88
  export { default as SimpleSearch } from "./searchControls/SimpleSearch/property";
89
+ export { default as VuePage } from "./formControls/VuePage/property";
89
90
  export * from "./framework";
@@ -0,0 +1,140 @@
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 _defineProperties(target, props) {
13
+ for(var i = 0; i < props.length; i++){
14
+ var descriptor = props[i];
15
+ descriptor.enumerable = descriptor.enumerable || false;
16
+ descriptor.configurable = true;
17
+ if ("value" in descriptor) descriptor.writable = true;
18
+ Object.defineProperty(target, descriptor.key, descriptor);
19
+ }
20
+ }
21
+ function _create_class(Constructor, protoProps, staticProps) {
22
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23
+ if (staticProps) _defineProperties(Constructor, staticProps);
24
+ return Constructor;
25
+ }
26
+ function _define_property(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
+ function _get_prototype_of(o) {
40
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
41
+ return o.__proto__ || Object.getPrototypeOf(o);
42
+ };
43
+ return _get_prototype_of(o);
44
+ }
45
+ function _inherits(subClass, superClass) {
46
+ if (typeof superClass !== "function" && superClass !== null) {
47
+ throw new TypeError("Super expression must either be null or a function");
48
+ }
49
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
50
+ constructor: {
51
+ value: subClass,
52
+ writable: true,
53
+ configurable: true
54
+ }
55
+ });
56
+ if (superClass) _set_prototype_of(subClass, superClass);
57
+ }
58
+ function _possible_constructor_return(self, call) {
59
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
60
+ return call;
61
+ }
62
+ return _assert_this_initialized(self);
63
+ }
64
+ function _set_prototype_of(o, p) {
65
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
66
+ o.__proto__ = p;
67
+ return o;
68
+ };
69
+ return _set_prototype_of(o, p);
70
+ }
71
+ function _type_of(obj) {
72
+ "@swc/helpers - typeof";
73
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
74
+ }
75
+ function _is_native_reflect_construct() {
76
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77
+ if (Reflect.construct.sham) return false;
78
+ if (typeof Proxy === "function") return true;
79
+ try {
80
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
81
+ return true;
82
+ } catch (e) {
83
+ return false;
84
+ }
85
+ }
86
+ function _create_super(Derived) {
87
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
88
+ return function _createSuperInternal() {
89
+ var Super = _get_prototype_of(Derived), result;
90
+ if (hasNativeReflectConstruct) {
91
+ var NewTarget = _get_prototype_of(this).constructor;
92
+ result = Reflect.construct(Super, arguments, NewTarget);
93
+ } else {
94
+ result = Super.apply(this, arguments);
95
+ }
96
+ return _possible_constructor_return(this, result);
97
+ };
98
+ }
99
+ import { DesignerFormControl } from "@byteluck-fe/model-driven-core";
100
+ import VuePageProperty from "./property";
101
+ import { FieldTypes } from "@byteluck-fe/model-driven-shared";
102
+ var VuePageControl = /*#__PURE__*/ function(DesignerFormControl) {
103
+ "use strict";
104
+ _inherits(VuePageControl, DesignerFormControl);
105
+ var _super = _create_super(VuePageControl);
106
+ function VuePageControl(props) {
107
+ _class_call_check(this, VuePageControl);
108
+ var _this;
109
+ _this = _super.call(this, props);
110
+ _define_property(_assert_this_initialized(_this), "props", void 0);
111
+ _this.props = new VuePageProperty(props === null || props === void 0 ? void 0 : props.props);
112
+ return _this;
113
+ }
114
+ _create_class(VuePageControl, null, [
115
+ {
116
+ key: "controlName",
117
+ get: function get() {
118
+ return "Vue页面";
119
+ }
120
+ },
121
+ {
122
+ key: "controlIcon",
123
+ get: function get() {
124
+ return "iconvuerongqi";
125
+ }
126
+ },
127
+ {
128
+ key: "controlType",
129
+ get: function get() {
130
+ return FieldTypes.ANY;
131
+ }
132
+ }
133
+ ]);
134
+ return VuePageControl;
135
+ }(DesignerFormControl);
136
+ _define_property(VuePageControl, "controlFieldType", FieldTypes.ANY);
137
+ _define_property(VuePageControl, "controlEventKeys", []);
138
+ _define_property(VuePageControl, "setting", []);
139
+ export default VuePageControl;
140
+ export { VuePageControl as DesignerVuePageControl };
@@ -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,146 @@
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 { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from "@byteluck-fe/model-driven-core";
86
+ import VuePageControl from "./designer";
87
+ var VuePagePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
88
+ "use strict";
89
+ _inherits(VuePagePropertyRules, BaseControlPropertyRules);
90
+ var _super = _create_super(VuePagePropertyRules);
91
+ function VuePagePropertyRules(props) {
92
+ _class_call_check(this, VuePagePropertyRules);
93
+ var _this;
94
+ _this = _super.call(this, props);
95
+ _this.dataBind = {
96
+ type: "any"
97
+ };
98
+ return _this;
99
+ }
100
+ return VuePagePropertyRules;
101
+ }(BaseControlPropertyRules);
102
+ var VuePagePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
103
+ "use strict";
104
+ _inherits(VuePagePropertyRuntimeRules, BaseControlPropertyRuntimeRules);
105
+ var _super = _create_super(VuePagePropertyRuntimeRules);
106
+ function VuePagePropertyRuntimeRules(props) {
107
+ _class_call_check(this, VuePagePropertyRuntimeRules);
108
+ var _this;
109
+ _this = _super.call(this, props);
110
+ if (_this[0] !== undefined) {
111
+ _this[0].type = "any";
112
+ }
113
+ return _this;
114
+ }
115
+ return VuePagePropertyRuntimeRules;
116
+ }(BaseControlPropertyRuntimeRules);
117
+ var VuePageProperty = /*#__PURE__*/ function(BaseControlProperty) {
118
+ "use strict";
119
+ _inherits(VuePageProperty, BaseControlProperty);
120
+ var _super = _create_super(VuePageProperty);
121
+ function VuePageProperty(props) {
122
+ _class_call_check(this, VuePageProperty);
123
+ var _this;
124
+ _this = _super.call(this, props);
125
+ _define_property(_assert_this_initialized(_this), "controlExportName", void 0);
126
+ _define_property(_assert_this_initialized(_this), "permissions", void 0);
127
+ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
128
+ _define_property(_assert_this_initialized(_this), "isInlineEdit", void 0);
129
+ var _props_caption;
130
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : VuePageControl.controlName;
131
+ var _props_defaultValue;
132
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : undefined;
133
+ var _props_controlExportName;
134
+ _this.controlExportName = (_props_controlExportName = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _props_controlExportName !== void 0 ? _props_controlExportName : "";
135
+ var _props_permissions;
136
+ _this.permissions = (_props_permissions = props === null || props === void 0 ? void 0 : props.permissions) !== null && _props_permissions !== void 0 ? _props_permissions : [];
137
+ var _props_isInlineEdit;
138
+ _this.isInlineEdit = (_props_isInlineEdit = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _props_isInlineEdit !== void 0 ? _props_isInlineEdit : false;
139
+ return _this;
140
+ }
141
+ return VuePageProperty;
142
+ }(BaseControlProperty);
143
+ _define_property(VuePageProperty, "Rules", VuePagePropertyRules);
144
+ _define_property(VuePageProperty, "RuntimeRules", VuePagePropertyRuntimeRules);
145
+ export default VuePageProperty;
146
+ export { VuePageProperty, VuePagePropertyRules, VuePagePropertyRuntimeRules };
@@ -0,0 +1,126 @@
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 _defineProperties(target, props) {
13
+ for(var i = 0; i < props.length; i++){
14
+ var descriptor = props[i];
15
+ descriptor.enumerable = descriptor.enumerable || false;
16
+ descriptor.configurable = true;
17
+ if ("value" in descriptor) descriptor.writable = true;
18
+ Object.defineProperty(target, descriptor.key, descriptor);
19
+ }
20
+ }
21
+ function _create_class(Constructor, protoProps, staticProps) {
22
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23
+ if (staticProps) _defineProperties(Constructor, staticProps);
24
+ return Constructor;
25
+ }
26
+ function _define_property(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
+ function _get_prototype_of(o) {
40
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
41
+ return o.__proto__ || Object.getPrototypeOf(o);
42
+ };
43
+ return _get_prototype_of(o);
44
+ }
45
+ function _inherits(subClass, superClass) {
46
+ if (typeof superClass !== "function" && superClass !== null) {
47
+ throw new TypeError("Super expression must either be null or a function");
48
+ }
49
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
50
+ constructor: {
51
+ value: subClass,
52
+ writable: true,
53
+ configurable: true
54
+ }
55
+ });
56
+ if (superClass) _set_prototype_of(subClass, superClass);
57
+ }
58
+ function _possible_constructor_return(self, call) {
59
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
60
+ return call;
61
+ }
62
+ return _assert_this_initialized(self);
63
+ }
64
+ function _set_prototype_of(o, p) {
65
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
66
+ o.__proto__ = p;
67
+ return o;
68
+ };
69
+ return _set_prototype_of(o, p);
70
+ }
71
+ function _type_of(obj) {
72
+ "@swc/helpers - typeof";
73
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
74
+ }
75
+ function _is_native_reflect_construct() {
76
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77
+ if (Reflect.construct.sham) return false;
78
+ if (typeof Proxy === "function") return true;
79
+ try {
80
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
81
+ return true;
82
+ } catch (e) {
83
+ return false;
84
+ }
85
+ }
86
+ function _create_super(Derived) {
87
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
88
+ return function _createSuperInternal() {
89
+ var Super = _get_prototype_of(Derived), result;
90
+ if (hasNativeReflectConstruct) {
91
+ var NewTarget = _get_prototype_of(this).constructor;
92
+ result = Reflect.construct(Super, arguments, NewTarget);
93
+ } else {
94
+ result = Super.apply(this, arguments);
95
+ }
96
+ return _possible_constructor_return(this, result);
97
+ };
98
+ }
99
+ import { RuntimeFormControl } from "@byteluck-fe/model-driven-core";
100
+ import { FieldTypes } from "@byteluck-fe/model-driven-shared";
101
+ import VuePageProperty from "./property";
102
+ var VuePageControl = /*#__PURE__*/ function(RuntimeFormControl) {
103
+ "use strict";
104
+ _inherits(VuePageControl, RuntimeFormControl);
105
+ var _super = _create_super(VuePageControl);
106
+ function VuePageControl(props) {
107
+ _class_call_check(this, VuePageControl);
108
+ var _this;
109
+ _this = _super.call(this, props);
110
+ _define_property(_assert_this_initialized(_this), "props", void 0);
111
+ _this.props = new VuePageProperty(props === null || props === void 0 ? void 0 : props.props);
112
+ return _this;
113
+ }
114
+ _create_class(VuePageControl, null, [
115
+ {
116
+ key: "controlType",
117
+ get: function get() {
118
+ return FieldTypes.ANY;
119
+ }
120
+ }
121
+ ]);
122
+ return VuePageControl;
123
+ }(RuntimeFormControl);
124
+ _define_property(VuePageControl, "controlFieldType", FieldTypes.ANY);
125
+ export default VuePageControl;
126
+ export { VuePageControl as RuntimeVuePageControl };
File without changes
@@ -28,3 +28,4 @@ export { default as ElectronicSignature } from "./ElectronicSignature";
28
28
  export { default as WPS } from "./WPS";
29
29
  export { default as Department2 } from "./Department2";
30
30
  export { default as OrganizationSelection } from "./OrganizationSelection";
31
+ export { default as VuePage } from "./VuePage";
@@ -137,7 +137,8 @@ _define_property(CardGroupControl, "setting", [
137
137
  {
138
138
  key: "caption",
139
139
  showItems: [
140
- COMMON_SETTING_TYPE.CAPTION
140
+ COMMON_SETTING_TYPE.CAPTION,
141
+ COMMON_SETTING_TYPE.IS_HIDE_CAPTION
141
142
  ],
142
143
  visible: true
143
144
  },
@@ -112,12 +112,15 @@ var CardGroupControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
112
112
  /*
113
113
  * 标题信息
114
114
  * */ _define_property(_assert_this_initialized(_this), "caption", void 0);
115
+ _define_property(_assert_this_initialized(_this), "isHideCaption", void 0);
115
116
  /*
116
117
  * 卡片分组是否支持展开收起
117
118
  * 可选项: none 不允许 | open 默认展开 | close 默认关闭
118
119
  * */ _define_property(_assert_this_initialized(_this), "collapse", void 0);
119
120
  var _props_caption;
120
121
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "分组";
122
+ var _props_isHideCaption;
123
+ _this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
121
124
  var _props_collapse;
122
125
  _this.collapse = (_props_collapse = props === null || props === void 0 ? void 0 : props.collapse) !== null && _props_collapse !== void 0 ? _props_collapse : "none";
123
126
  return _this;
@@ -135,7 +135,7 @@ var ColControl = /*#__PURE__*/ function(DesignerLayoutControl) {
135
135
  }(DesignerLayoutControl);
136
136
  _define_property(ColControl, "excludes", [
137
137
  CONTROL_TYPE.COL,
138
- CONTROL_TYPE.CARD_GROUP,
138
+ // CONTROL_TYPE.CARD_GROUP,
139
139
  CONTROL_TYPE.SUBTABLE,
140
140
  CONTROL_TYPE.SUBTABLE_COLUMN,
141
141
  CONTROL_TYPE.GRID_LAYOUT_CONTAINER,
@@ -95,8 +95,8 @@ var SimpleSearchControl = /*#__PURE__*/ function(RuntimeSearchControl) {
95
95
  _define_property(_assert_this_initialized(_this), "props", void 0);
96
96
  _define_property(_assert_this_initialized(_this), "children", void 0);
97
97
  _this.props = new SimpleSearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
98
- var _props_children;
99
- _this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [];
98
+ var _ref;
99
+ _this.children = (_ref = props === null || props === void 0 ? void 0 : props.children) !== null && _ref !== void 0 ? _ref : [];
100
100
  return _this;
101
101
  }
102
102
  return SimpleSearchControl;