@byteluck-fe/model-driven-controls 2.7.0-beta.2 → 2.8.0-alpha.1

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.
Files changed (111) hide show
  1. package/dist/esm/baseControls/Button/designer.js +2 -1
  2. package/dist/esm/baseControls/Button/property.js +4 -1
  3. package/dist/esm/baseControls/ExportListButton/property.js +3 -0
  4. package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -1
  5. package/dist/esm/baseControls/ImportRecordListButton/property.js +3 -0
  6. package/dist/esm/baseControls/Text/property.js +3 -0
  7. package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +140 -0
  8. package/dist/esm/columnControls/ApprovalStatusColumn/index.js +11 -0
  9. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +127 -0
  10. package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +104 -0
  11. package/dist/esm/columnControls/ApprovalStatusColumn/types.js +0 -0
  12. package/dist/esm/columnControls/ArrayColumn/designer.js +8 -1
  13. package/dist/esm/columnControls/ArrayColumn/property.js +10 -8
  14. package/dist/esm/columnControls/AutoNumberColumn/designer.js +5 -1
  15. package/dist/esm/columnControls/CustomColumn/designer.js +4 -0
  16. package/dist/esm/columnControls/CustomColumn/property.js +25 -1
  17. package/dist/esm/columnControls/DecimalColumn/designer.js +8 -4
  18. package/dist/esm/columnControls/DepartmentColumn/designer.js +4 -0
  19. package/dist/esm/columnControls/EmployeeColumn/designer.js +4 -0
  20. package/dist/esm/columnControls/FileColumn/designer.js +4 -0
  21. package/dist/esm/columnControls/ImageColumn/designer.js +4 -0
  22. package/dist/esm/columnControls/LocationColumn/designer.js +5 -1
  23. package/dist/esm/columnControls/OrderColumn/designer.js +4 -0
  24. package/dist/esm/columnControls/PeopleColumn/designer.js +4 -0
  25. package/dist/esm/columnControls/TextColumn/designer.js +8 -0
  26. package/dist/esm/columnControls/TimescopeColumn/designer.js +4 -0
  27. package/dist/esm/columnControls/TimestampColumn/designer.js +4 -0
  28. package/dist/esm/columnControls/VarcharColumn/designer.js +9 -1
  29. package/dist/esm/columnControls/index.js +1 -0
  30. package/dist/esm/formControls/Attachment/property.js +4 -7
  31. package/dist/esm/formControls/DatePicker/designer.js +4 -1
  32. package/dist/esm/formControls/DateRange/designer.js +4 -1
  33. package/dist/esm/formControls/Image/designer.js +2 -9
  34. package/dist/esm/formControls/Image/property.js +2 -30
  35. package/dist/esm/formControls/SearchDateRange/designer.js +4 -1
  36. package/dist/esm/formControls/Select/designer.js +5 -1
  37. package/dist/esm/formControls/Select/property.js +38 -2
  38. package/dist/esm/formControls/SelectMultiple/designer.js +5 -1
  39. package/dist/esm/formControls/SelectMultiple/property.js +38 -2
  40. package/dist/esm/formControls/SelectRelation/designer.js +5 -3
  41. package/dist/esm/formControls/SelectRelation/property.js +19 -1
  42. package/dist/esm/framework.js +2 -2
  43. package/dist/esm/index.js +10 -2
  44. package/dist/esm/layoutControls/ActionBar/designer.js +156 -0
  45. package/dist/esm/layoutControls/ActionBar/index.js +11 -0
  46. package/dist/esm/layoutControls/ActionBar/property.js +111 -0
  47. package/dist/esm/layoutControls/ActionBar/runtime.js +125 -0
  48. package/dist/esm/layoutControls/ActionBar/types.js +0 -0
  49. package/dist/esm/layoutControls/Col/designer.js +1 -0
  50. package/dist/esm/layoutControls/GridLayoutContainer/designer.js +152 -0
  51. package/dist/esm/layoutControls/GridLayoutContainer/index.js +11 -0
  52. package/dist/esm/layoutControls/GridLayoutContainer/property.js +107 -0
  53. package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +124 -0
  54. package/dist/esm/layoutControls/GridLayoutContainer/types.js +0 -0
  55. package/dist/esm/layoutControls/ListView/designer.js +4 -0
  56. package/dist/esm/layoutControls/ListView/property.js +89 -3
  57. package/dist/esm/layoutControls/index.js +2 -0
  58. package/dist/esm/listControls/GridTable/designer.js +4 -0
  59. package/dist/esm/listControls/GridTable/property.js +8 -0
  60. package/dist/esm/listControls/SubTable/designer.js +6 -2
  61. package/dist/esm/listControls/SubTable/property.js +9 -0
  62. package/dist/esm/searchControls/SimpleSearch/designer.js +8 -0
  63. package/dist/esm/searchControls/SimpleSearch/property.js +14 -0
  64. package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +27 -0
  65. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +144 -0
  66. package/dist/esm/wrapControls/GridLayoutWrap/index.js +20 -0
  67. package/dist/esm/wrapControls/GridLayoutWrap/property.js +101 -0
  68. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +130 -0
  69. package/dist/esm/wrapControls/index.js +1 -0
  70. package/dist/index.umd.js +1 -1
  71. package/dist/types/baseControls/Button/property.d.ts +2 -1
  72. package/dist/types/baseControls/ExportListButton/property.d.ts +1 -0
  73. package/dist/types/baseControls/ImportRecordListButton/property.d.ts +1 -0
  74. package/dist/types/baseControls/Text/property.d.ts +1 -0
  75. package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +14 -0
  76. package/dist/types/columnControls/ApprovalStatusColumn/index.d.ts +12 -0
  77. package/dist/types/columnControls/ApprovalStatusColumn/property.d.ts +29 -0
  78. package/dist/types/columnControls/ApprovalStatusColumn/runtime.d.ts +12 -0
  79. package/dist/types/columnControls/ApprovalStatusColumn/types.d.ts +0 -0
  80. package/dist/types/columnControls/ArrayColumn/property.d.ts +3 -1
  81. package/dist/types/columnControls/CustomColumn/property.d.ts +8 -1
  82. package/dist/types/columnControls/index.d.ts +1 -0
  83. package/dist/types/formControls/Attachment/property.d.ts +1 -0
  84. package/dist/types/formControls/Image/property.d.ts +0 -2
  85. package/dist/types/formControls/Select/property.d.ts +20 -1
  86. package/dist/types/formControls/SelectMultiple/property.d.ts +20 -1
  87. package/dist/types/formControls/SelectRelation/property.d.ts +8 -1
  88. package/dist/types/index.d.ts +3 -1
  89. package/dist/types/layoutControls/ActionBar/designer.d.ts +13 -0
  90. package/dist/types/layoutControls/ActionBar/index.d.ts +12 -0
  91. package/dist/types/layoutControls/ActionBar/property.d.ts +9 -0
  92. package/dist/types/layoutControls/ActionBar/runtime.d.ts +10 -0
  93. package/dist/types/layoutControls/ActionBar/types.d.ts +0 -0
  94. package/dist/types/layoutControls/GridLayoutContainer/designer.d.ts +14 -0
  95. package/dist/types/layoutControls/GridLayoutContainer/index.d.ts +12 -0
  96. package/dist/types/layoutControls/GridLayoutContainer/property.d.ts +8 -0
  97. package/dist/types/layoutControls/GridLayoutContainer/runtime.d.ts +10 -0
  98. package/dist/types/layoutControls/GridLayoutContainer/types.d.ts +0 -0
  99. package/dist/types/layoutControls/ListView/property.d.ts +17 -1
  100. package/dist/types/layoutControls/index.d.ts +2 -0
  101. package/dist/types/listControls/GridTable/property.d.ts +1 -0
  102. package/dist/types/listControls/SubTable/property.d.ts +1 -0
  103. package/dist/types/searchControls/SimpleSearch/property.d.ts +12 -0
  104. package/dist/types/type.d.ts +9 -2
  105. package/dist/types/wrapControls/GridLayoutWrap/Setting.d.ts +2 -0
  106. package/dist/types/wrapControls/GridLayoutWrap/designer.d.ts +11 -0
  107. package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +14 -0
  108. package/dist/types/wrapControls/GridLayoutWrap/property.d.ts +6 -0
  109. package/dist/types/wrapControls/GridLayoutWrap/runtime.d.ts +9 -0
  110. package/dist/types/wrapControls/index.d.ts +1 -0
  111. package/package.json +5 -5
@@ -0,0 +1,156 @@
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 { DesignerLayoutControl } from "@byteluck-fe/model-driven-core";
100
+ import ActionBarControlProperty from "./property";
101
+ var ActionBarControl = /*#__PURE__*/ function(DesignerLayoutControl) {
102
+ "use strict";
103
+ _inherits(ActionBarControl, DesignerLayoutControl);
104
+ var _super = _create_super(ActionBarControl);
105
+ function ActionBarControl(props) {
106
+ _class_call_check(this, ActionBarControl);
107
+ var _this;
108
+ _this = _super.call(this, props);
109
+ _define_property(_assert_this_initialized(_this), "props", void 0);
110
+ var _props_props;
111
+ _this.props = new ActionBarControlProperty((_props_props = props === null || props === void 0 ? void 0 : props.props) !== null && _props_props !== void 0 ? _props_props : {});
112
+ return _this;
113
+ }
114
+ _create_class(ActionBarControl, null, [
115
+ {
116
+ key: "controlName",
117
+ get: function get() {
118
+ return "按钮操作栏";
119
+ }
120
+ },
121
+ {
122
+ key: "controlType",
123
+ get: function get() {
124
+ return "action-bar";
125
+ }
126
+ },
127
+ {
128
+ key: "controlIcon",
129
+ get: function get() {
130
+ return "action-bar";
131
+ }
132
+ }
133
+ ]);
134
+ return ActionBarControl;
135
+ }(DesignerLayoutControl);
136
+ _define_property(ActionBarControl, "excludes", []);
137
+ _define_property(ActionBarControl, "setting", [
138
+ {
139
+ key: "action-buttons",
140
+ visible: true
141
+ },
142
+ {
143
+ key: "action-position",
144
+ visible: true
145
+ },
146
+ {
147
+ key: "background-opacity",
148
+ visible: true
149
+ },
150
+ {
151
+ key: "buttons-align",
152
+ visible: true
153
+ }
154
+ ]);
155
+ export default ActionBarControl;
156
+ export { ActionBarControl as DesignerActionBarControl };
@@ -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,111 @@
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 { LayoutControlProperty } from "@byteluck-fe/model-driven-core";
86
+ var ActionBarControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
87
+ "use strict";
88
+ _inherits(ActionBarControlProperty, LayoutControlProperty);
89
+ var _super = _create_super(ActionBarControlProperty);
90
+ function ActionBarControlProperty(props) {
91
+ _class_call_check(this, ActionBarControlProperty);
92
+ var _this;
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "position", void 0 //位置
95
+ );
96
+ _define_property(_assert_this_initialized(_this), "opacity", void 0 // 背景透明
97
+ );
98
+ _define_property(_assert_this_initialized(_this), "align", void 0 // 对齐方式
99
+ );
100
+ var _props_position;
101
+ _this.position = (_props_position = props === null || props === void 0 ? void 0 : props.position) !== null && _props_position !== void 0 ? _props_position : "bottom";
102
+ var _props_opacity;
103
+ _this.opacity = (_props_opacity = props === null || props === void 0 ? void 0 : props.opacity) !== null && _props_opacity !== void 0 ? _props_opacity : true;
104
+ var _props_align;
105
+ _this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : "right";
106
+ return _this;
107
+ }
108
+ return ActionBarControlProperty;
109
+ }(LayoutControlProperty);
110
+ export default ActionBarControlProperty;
111
+ export { ActionBarControlProperty };
@@ -0,0 +1,125 @@
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 { RuntimeLayoutControl } from "@byteluck-fe/model-driven-core";
100
+ import ActionBarControlProperty from "./property";
101
+ var ActionBarControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
102
+ "use strict";
103
+ _inherits(ActionBarControl, RuntimeLayoutControl);
104
+ var _super = _create_super(ActionBarControl);
105
+ function ActionBarControl(props) {
106
+ _class_call_check(this, ActionBarControl);
107
+ var _this;
108
+ _this = _super.call(this, props);
109
+ _define_property(_assert_this_initialized(_this), "props", void 0);
110
+ var _props_props;
111
+ _this.props = new ActionBarControlProperty((_props_props = props === null || props === void 0 ? void 0 : props.props) !== null && _props_props !== void 0 ? _props_props : {});
112
+ return _this;
113
+ }
114
+ _create_class(ActionBarControl, null, [
115
+ {
116
+ key: "controlType",
117
+ get: function get() {
118
+ return "action-bar";
119
+ }
120
+ }
121
+ ]);
122
+ return ActionBarControl;
123
+ }(RuntimeLayoutControl);
124
+ export default ActionBarControl;
125
+ export { ActionBarControl as RuntimeActionBarControl };
File without changes
@@ -138,6 +138,7 @@ _define_property(ColControl, "excludes", [
138
138
  CONTROL_TYPE.CARD_GROUP,
139
139
  CONTROL_TYPE.SUBTABLE,
140
140
  CONTROL_TYPE.SUBTABLE_COLUMN,
141
+ CONTROL_TYPE.GRID_LAYOUT_CONTAINER,
141
142
  CONTROL_TYPE.DIVIDER
142
143
  ]);
143
144
  _define_property(ColControl, "childrenMaxLength", 1);
@@ -0,0 +1,152 @@
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 { CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
100
+ import { DesignerLayoutControl } from "@byteluck-fe/model-driven-core";
101
+ import GridLayoutContainerControlProperty from "./property";
102
+ var GridLayoutContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
103
+ "use strict";
104
+ _inherits(GridLayoutContainerControl, DesignerLayoutControl);
105
+ var _super = _create_super(GridLayoutContainerControl);
106
+ function GridLayoutContainerControl(props) {
107
+ _class_call_check(this, GridLayoutContainerControl);
108
+ var _this;
109
+ _this = _super.call(this, props);
110
+ _define_property(_assert_this_initialized(_this), "props", void 0);
111
+ _this.props = new GridLayoutContainerControlProperty(props === null || props === void 0 ? void 0 : props.props);
112
+ return _this;
113
+ }
114
+ _create_class(GridLayoutContainerControl, null, [
115
+ {
116
+ key: "controlName",
117
+ get: function get() {
118
+ return "换行容器";
119
+ }
120
+ },
121
+ {
122
+ key: "controlType",
123
+ get: function get() {
124
+ return "grid-layout-container";
125
+ }
126
+ },
127
+ {
128
+ key: "controlIcon",
129
+ get: function get() {
130
+ return "icona-huanhangrongqi1";
131
+ }
132
+ }
133
+ ]);
134
+ return GridLayoutContainerControl;
135
+ }(DesignerLayoutControl);
136
+ _define_property(GridLayoutContainerControl, "excludes", [
137
+ CONTROL_TYPE.GRID_LAYOUT_CONTAINER,
138
+ CONTROL_TYPE.CARD_GROUP,
139
+ CONTROL_TYPE.TAB
140
+ ]);
141
+ _define_property(GridLayoutContainerControl, "setting", [
142
+ {
143
+ key: "grid-child-min-width",
144
+ visible: true
145
+ },
146
+ {
147
+ key: "grid-col-gap",
148
+ visible: true
149
+ }
150
+ ]);
151
+ export default GridLayoutContainerControl;
152
+ export { GridLayoutContainerControl as DesignerColControl };
@@ -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,107 @@
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 { LayoutControlProperty } from "@byteluck-fe/model-driven-core";
86
+ var GridLayoutContainerControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
87
+ "use strict";
88
+ _inherits(GridLayoutContainerControlProperty, LayoutControlProperty);
89
+ var _super = _create_super(GridLayoutContainerControlProperty);
90
+ function GridLayoutContainerControlProperty(props) {
91
+ _class_call_check(this, GridLayoutContainerControlProperty);
92
+ var _this;
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "childMinWidth", void 0 // 控件宽度最小值
95
+ );
96
+ _define_property(_assert_this_initialized(_this), "colGap", void 0 // 控件间距
97
+ );
98
+ var _props_childMinWidth;
99
+ _this.childMinWidth = (_props_childMinWidth = props === null || props === void 0 ? void 0 : props.childMinWidth) !== null && _props_childMinWidth !== void 0 ? _props_childMinWidth : 230;
100
+ var _props_colGap;
101
+ _this.colGap = (_props_colGap = props === null || props === void 0 ? void 0 : props.colGap) !== null && _props_colGap !== void 0 ? _props_colGap : 24;
102
+ return _this;
103
+ }
104
+ return GridLayoutContainerControlProperty;
105
+ }(LayoutControlProperty);
106
+ export default GridLayoutContainerControlProperty;
107
+ export { GridLayoutContainerControlProperty };