@byteluck-fe/model-driven-controls 6.2.0-1-beta.7 → 6.2.0-1-beta.10

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 (83) hide show
  1. package/dist/esm/baseControls/Text/designer.js +4 -0
  2. package/dist/esm/formControls/Address/designer.js +9 -0
  3. package/dist/esm/formControls/Amount/designer.js +9 -0
  4. package/dist/esm/formControls/Attachment/designer.js +9 -0
  5. package/dist/esm/formControls/AutoNumber/designer.js +9 -0
  6. package/dist/esm/formControls/Calc/designer.js +9 -0
  7. package/dist/esm/formControls/Checkbox/designer.js +9 -0
  8. package/dist/esm/formControls/DatePicker/designer.js +9 -0
  9. package/dist/esm/formControls/DateRange/designer.js +9 -0
  10. package/dist/esm/formControls/Department/designer.js +9 -0
  11. package/dist/esm/formControls/Department2/designer.js +9 -0
  12. package/dist/esm/formControls/DisplayText/designer.js +179 -0
  13. package/dist/esm/formControls/DisplayText/index.js +11 -0
  14. package/dist/esm/formControls/DisplayText/property.js +109 -0
  15. package/dist/esm/formControls/DisplayText/runtime.js +112 -0
  16. package/dist/esm/formControls/DisplayText/types.js +0 -0
  17. package/dist/esm/formControls/ElectronicSignature/designer.js +9 -0
  18. package/dist/esm/formControls/Employee/designer.js +9 -0
  19. package/dist/esm/formControls/Employee2/designer.js +9 -0
  20. package/dist/esm/formControls/Employee2/property.js +2 -1
  21. package/dist/esm/formControls/Image/designer.js +9 -0
  22. package/dist/esm/formControls/Image/property.js +6 -3
  23. package/dist/esm/formControls/Input/designer.js +9 -0
  24. package/dist/esm/formControls/Number/designer.js +9 -0
  25. package/dist/esm/formControls/OrganizationSelection/designer.js +9 -0
  26. package/dist/esm/formControls/Radio/designer.js +9 -0
  27. package/dist/esm/formControls/RichText/designer.js +9 -0
  28. package/dist/esm/formControls/Score/designer.js +9 -0
  29. package/dist/esm/formControls/SearchDateRange/designer.js +9 -0
  30. package/dist/esm/formControls/SearchInput/designer.js +9 -0
  31. package/dist/esm/formControls/SearchNumberRange/designer.js +9 -0
  32. package/dist/esm/formControls/Select/designer.js +9 -0
  33. package/dist/esm/formControls/SelectMultiple/designer.js +9 -0
  34. package/dist/esm/formControls/SelectRelation/designer.js +9 -0
  35. package/dist/esm/formControls/Textarea/designer.js +9 -0
  36. package/dist/esm/formControls/Tree/designer.js +9 -0
  37. package/dist/esm/formControls/VueFormItem/designer.js +9 -0
  38. package/dist/esm/formControls/WPS/designer.js +9 -0
  39. package/dist/esm/formControls/index.js +1 -0
  40. package/dist/esm/framework.js +10 -5
  41. package/dist/esm/layoutControls/TableLayoutCol/designer.js +146 -0
  42. package/dist/esm/layoutControls/TableLayoutCol/index.js +11 -0
  43. package/dist/esm/layoutControls/TableLayoutCol/property.js +111 -0
  44. package/dist/esm/layoutControls/TableLayoutCol/runtime.js +112 -0
  45. package/dist/esm/layoutControls/TableLayoutCol/types.js +0 -0
  46. package/dist/esm/layoutControls/TableLayoutRow/designer.js +136 -0
  47. package/dist/esm/layoutControls/TableLayoutRow/index.js +11 -0
  48. package/dist/esm/layoutControls/TableLayoutRow/property.js +92 -0
  49. package/dist/esm/layoutControls/TableLayoutRow/runtime.js +112 -0
  50. package/dist/esm/layoutControls/TableLayoutRow/types.js +0 -0
  51. package/dist/esm/layoutControls/TableLayoutWrapper/designer.js +132 -0
  52. package/dist/esm/layoutControls/TableLayoutWrapper/index.js +11 -0
  53. package/dist/esm/layoutControls/TableLayoutWrapper/property.js +93 -0
  54. package/dist/esm/layoutControls/TableLayoutWrapper/runtime.js +112 -0
  55. package/dist/esm/layoutControls/TableLayoutWrapper/types.js +0 -0
  56. package/dist/esm/layoutControls/index.js +3 -0
  57. package/dist/index.umd.js +1 -1
  58. package/dist/types/formControls/DisplayText/designer.d.ts +12 -0
  59. package/dist/types/formControls/DisplayText/index.d.ts +12 -0
  60. package/dist/types/formControls/DisplayText/property.d.ts +18 -0
  61. package/dist/types/formControls/DisplayText/runtime.d.ts +10 -0
  62. package/dist/types/formControls/DisplayText/types.d.ts +0 -0
  63. package/dist/types/formControls/index.d.ts +1 -0
  64. package/dist/types/framework.d.ts +19 -19
  65. package/dist/types/layoutControls/TableLayoutCol/designer.d.ts +15 -0
  66. package/dist/types/layoutControls/TableLayoutCol/index.d.ts +12 -0
  67. package/dist/types/layoutControls/TableLayoutCol/property.d.ts +14 -0
  68. package/dist/types/layoutControls/TableLayoutCol/runtime.d.ts +10 -0
  69. package/dist/types/layoutControls/TableLayoutCol/types.d.ts +0 -0
  70. package/dist/types/layoutControls/TableLayoutRow/designer.d.ts +15 -0
  71. package/dist/types/layoutControls/TableLayoutRow/index.d.ts +12 -0
  72. package/dist/types/layoutControls/TableLayoutRow/property.d.ts +8 -0
  73. package/dist/types/layoutControls/TableLayoutRow/runtime.d.ts +11 -0
  74. package/dist/types/layoutControls/TableLayoutRow/types.d.ts +0 -0
  75. package/dist/types/layoutControls/TableLayoutWrapper/designer.d.ts +13 -0
  76. package/dist/types/layoutControls/TableLayoutWrapper/index.d.ts +12 -0
  77. package/dist/types/layoutControls/TableLayoutWrapper/property.d.ts +8 -0
  78. package/dist/types/layoutControls/TableLayoutWrapper/runtime.d.ts +10 -0
  79. package/dist/types/layoutControls/TableLayoutWrapper/types.d.ts +0 -0
  80. package/dist/types/layoutControls/index.d.ts +3 -0
  81. package/dist/types/type.d.ts +6 -2
  82. package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
  83. package/package.json +5 -5
@@ -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 TableLayoutColControlProperty from './property';
89
+ var TableLayoutColControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
90
+ "use strict";
91
+ _inherits(TableLayoutColControl, RuntimeLayoutControl);
92
+ function TableLayoutColControl(props) {
93
+ _class_call_check(this, TableLayoutColControl);
94
+ var _this;
95
+ _this = _call_super(this, TableLayoutColControl, [
96
+ props
97
+ ]), _define_property(_this, "props", void 0);
98
+ _this.props = new TableLayoutColControlProperty(props === null || props === void 0 ? void 0 : props.props);
99
+ return _this;
100
+ }
101
+ _create_class(TableLayoutColControl, null, [
102
+ {
103
+ key: "controlType",
104
+ get: function get() {
105
+ return 'table-layout-col';
106
+ }
107
+ }
108
+ ]);
109
+ return TableLayoutColControl;
110
+ }(RuntimeLayoutControl);
111
+ export default TableLayoutColControl;
112
+ export { TableLayoutColControl as RuntimeTableLayoutColControl };
@@ -0,0 +1,136 @@
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 TableLayoutRowControlProperty from './property';
90
+ import { getLocaleText } from '@byteluck-fe/locale-message';
91
+ var TableLayoutRowControl = /*#__PURE__*/ function(DesignerLayoutControl) {
92
+ "use strict";
93
+ _inherits(TableLayoutRowControl, DesignerLayoutControl);
94
+ function TableLayoutRowControl(props) {
95
+ _class_call_check(this, TableLayoutRowControl);
96
+ var _this;
97
+ _this = _call_super(this, TableLayoutRowControl, [
98
+ props
99
+ ]), _define_property(_this, "props", void 0);
100
+ _this.props = new TableLayoutRowControlProperty(props === null || props === void 0 ? void 0 : props.props);
101
+ return _this;
102
+ }
103
+ _create_class(TableLayoutRowControl, null, [
104
+ {
105
+ key: "controlName",
106
+ get: function get() {
107
+ return getLocaleText('CMD.table-layout-row', null, '栅格布局');
108
+ }
109
+ },
110
+ {
111
+ key: "controlType",
112
+ get: function get() {
113
+ return 'table-layout-row';
114
+ }
115
+ },
116
+ {
117
+ key: "controlIcon",
118
+ get: function get() {
119
+ return 'iconyihangduolie';
120
+ }
121
+ }
122
+ ]);
123
+ return TableLayoutRowControl;
124
+ }(DesignerLayoutControl);
125
+ _define_property(TableLayoutRowControl, "excludes", [
126
+ CONTROL_TYPE.ROW,
127
+ CONTROL_TYPE.TABLE_LAYOUT_ROW
128
+ ]);
129
+ _define_property(TableLayoutRowControl, "setting", [
130
+ {
131
+ key: 'col-setting',
132
+ visible: true
133
+ }
134
+ ]);
135
+ export default TableLayoutRowControl;
136
+ export { TableLayoutRowControl as DesignerTableLayoutRowControl };
@@ -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,92 @@
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
+ var TableLayoutRowControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
75
+ "use strict";
76
+ _inherits(TableLayoutRowControlProperty, LayoutControlProperty);
77
+ function TableLayoutRowControlProperty(props) {
78
+ _class_call_check(this, TableLayoutRowControlProperty);
79
+ var _this;
80
+ _this = _call_super(this, TableLayoutRowControlProperty, [
81
+ props
82
+ ]), _define_property(_this, "layoutMode", void 0), _define_property(_this, "gutter", void 0);
83
+ var _props_layoutMode;
84
+ _this.layoutMode = (_props_layoutMode = props === null || props === void 0 ? void 0 : props.layoutMode) !== null && _props_layoutMode !== void 0 ? _props_layoutMode : 'select';
85
+ var _props_gutter;
86
+ _this.gutter = (_props_gutter = props === null || props === void 0 ? void 0 : props.gutter) !== null && _props_gutter !== void 0 ? _props_gutter : 0;
87
+ return _this;
88
+ }
89
+ return TableLayoutRowControlProperty;
90
+ }(LayoutControlProperty);
91
+ export default TableLayoutRowControlProperty;
92
+ export { TableLayoutRowControlProperty };
@@ -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 TableLayoutRowControlProperty from './property';
89
+ var TableLayoutRowControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
90
+ "use strict";
91
+ _inherits(TableLayoutRowControl, RuntimeLayoutControl);
92
+ function TableLayoutRowControl(props) {
93
+ _class_call_check(this, TableLayoutRowControl);
94
+ var _this;
95
+ _this = _call_super(this, TableLayoutRowControl, [
96
+ props
97
+ ]), _define_property(_this, "props", void 0);
98
+ _this.props = new TableLayoutRowControlProperty(props === null || props === void 0 ? void 0 : props.props);
99
+ return _this;
100
+ }
101
+ _create_class(TableLayoutRowControl, null, [
102
+ {
103
+ key: "controlType",
104
+ get: function get() {
105
+ return 'table-layout-row';
106
+ }
107
+ }
108
+ ]);
109
+ return TableLayoutRowControl;
110
+ }(RuntimeLayoutControl);
111
+ export default TableLayoutRowControl;
112
+ export { TableLayoutRowControl as RuntimeTableLayoutRowControl };
@@ -0,0 +1,132 @@
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 { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
88
+ import TableLayoutWrapperControlProperty from './property';
89
+ import { getLocaleText } from '@byteluck-fe/locale-message';
90
+ var TableLayoutWrapperControl = /*#__PURE__*/ function(DesignerLayoutControl) {
91
+ "use strict";
92
+ _inherits(TableLayoutWrapperControl, DesignerLayoutControl);
93
+ function TableLayoutWrapperControl(props) {
94
+ _class_call_check(this, TableLayoutWrapperControl);
95
+ var _this;
96
+ _this = _call_super(this, TableLayoutWrapperControl, [
97
+ props
98
+ ]), _define_property(_this, "props", void 0);
99
+ _this.props = new TableLayoutWrapperControlProperty(props === null || props === void 0 ? void 0 : props.props);
100
+ return _this;
101
+ }
102
+ _create_class(TableLayoutWrapperControl, null, [
103
+ {
104
+ key: "controlName",
105
+ get: function get() {
106
+ return getLocaleText('CMD.table-layout-wrapper', null, '表格布局栅格列');
107
+ }
108
+ },
109
+ {
110
+ key: "controlType",
111
+ get: function get() {
112
+ return 'table-layout-wrapper';
113
+ }
114
+ },
115
+ {
116
+ key: "controlIcon",
117
+ get: function get() {
118
+ return 'table-layout-wrapper';
119
+ }
120
+ }
121
+ ]);
122
+ return TableLayoutWrapperControl;
123
+ }(DesignerLayoutControl);
124
+ _define_property(TableLayoutWrapperControl, "excludes", []);
125
+ _define_property(TableLayoutWrapperControl, "setting", [
126
+ {
127
+ key: 'dynamic-size',
128
+ visible: true
129
+ }
130
+ ]);
131
+ export default TableLayoutWrapperControl;
132
+ export { TableLayoutWrapperControl as DesignerTableLayoutWrapperControl };
@@ -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';