@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
@@ -97,11 +97,14 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
97
97
  var _props_placeholder;
98
98
  _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadImg', null, '上传图片');
99
99
  var _props_compressTypeCode;
100
- _this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS; // 默认不压缩
100
+ _this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS // 默认不压缩
101
+ ;
101
102
  var _props_compressRatio;
102
- _this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1; // 默认压缩比例1
103
+ _this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1 // 默认压缩比例1
104
+ ;
103
105
  var _props_maxPixel;
104
- _this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080; // 默认最大像素1080
106
+ _this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080 // 默认最大像素1080
107
+ ;
105
108
  return _this;
106
109
  }
107
110
  return ImageProperty;
@@ -169,6 +169,15 @@ _define_property(InputControl, "setting", [
169
169
  COMMON_SETTING_TYPE.ENCRYPTED
170
170
  ]
171
171
  },
172
+ {
173
+ key: 'caption-style',
174
+ showItems: [
175
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
176
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
177
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
178
+ ],
179
+ visible: true
180
+ },
172
181
  {
173
182
  key: 'ai-content-search',
174
183
  visible: true
@@ -209,6 +209,15 @@ _define_property(NumberControl, "setting", [
209
209
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
210
210
  ]
211
211
  },
212
+ {
213
+ key: 'caption-style',
214
+ showItems: [
215
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
216
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
217
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
218
+ ],
219
+ visible: true
220
+ },
212
221
  {
213
222
  key: 'unit-position',
214
223
  visible: true
@@ -188,6 +188,15 @@ _define_property(OrganizationSelectionControl, "setting", [
188
188
  ],
189
189
  visible: true
190
190
  },
191
+ {
192
+ key: 'caption-style',
193
+ showItems: [
194
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
195
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
196
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
197
+ ],
198
+ visible: true
199
+ },
191
200
  {
192
201
  key: 'label-position',
193
202
  visible: true
@@ -144,6 +144,15 @@ _define_property(RadioControl, "setting", [
144
144
  ],
145
145
  visible: true
146
146
  },
147
+ {
148
+ key: 'caption-style',
149
+ showItems: [
150
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
151
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
152
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
153
+ ],
154
+ visible: true
155
+ },
147
156
  {
148
157
  key: 'label-position',
149
158
  visible: true
@@ -168,6 +168,15 @@ _define_property(RichTextControl, "setting", [
168
168
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
169
169
  ]
170
170
  },
171
+ {
172
+ key: 'caption-style',
173
+ showItems: [
174
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
175
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
176
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
177
+ ],
178
+ visible: true
179
+ },
171
180
  {
172
181
  key: 'ai-content-search',
173
182
  visible: false
@@ -209,6 +209,15 @@ _define_property(ScoreControl, "setting", [
209
209
  ],
210
210
  visible: true
211
211
  },
212
+ {
213
+ key: 'caption-style',
214
+ showItems: [
215
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
216
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
217
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
218
+ ],
219
+ visible: true
220
+ },
212
221
  {
213
222
  key: 'label-position',
214
223
  visible: true
@@ -140,6 +140,15 @@ _define_property(SearchDateRangeControl, "setting", [
140
140
  ],
141
141
  visible: true
142
142
  },
143
+ {
144
+ key: 'caption-style',
145
+ showItems: [
146
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
147
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
148
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
149
+ ],
150
+ visible: true
151
+ },
143
152
  {
144
153
  key: 'label-position',
145
154
  visible: true
@@ -133,6 +133,15 @@ _define_property(SearchInputControl, "setting", [
133
133
  ],
134
134
  visible: true
135
135
  },
136
+ {
137
+ key: 'caption-style',
138
+ showItems: [
139
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
140
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
141
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
142
+ ],
143
+ visible: true
144
+ },
136
145
  // {
137
146
  // key: 'common-setting',
138
147
  // visible: true,
@@ -140,6 +140,15 @@ _define_property(SearchNumberRangeControl, "setting", [
140
140
  ],
141
141
  visible: true
142
142
  },
143
+ {
144
+ key: 'caption-style',
145
+ showItems: [
146
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
147
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
148
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
149
+ ],
150
+ visible: true
151
+ },
143
152
  {
144
153
  key: 'label-position',
145
154
  visible: true
@@ -140,6 +140,15 @@ _define_property(SelectControl, "setting", [
140
140
  ],
141
141
  visible: true
142
142
  },
143
+ {
144
+ key: 'caption-style',
145
+ showItems: [
146
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
147
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
148
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
149
+ ],
150
+ visible: true
151
+ },
143
152
  {
144
153
  key: 'label-position',
145
154
  visible: true
@@ -140,6 +140,15 @@ _define_property(SelectMultipleControl, "setting", [
140
140
  ],
141
141
  visible: true
142
142
  },
143
+ {
144
+ key: 'caption-style',
145
+ showItems: [
146
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
147
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
148
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
149
+ ],
150
+ visible: true
151
+ },
143
152
  {
144
153
  key: 'label-position',
145
154
  visible: true
@@ -175,6 +175,15 @@ _define_property(SelectRelationControl, "setting", [
175
175
  ],
176
176
  visible: true
177
177
  },
178
+ {
179
+ key: 'caption-style',
180
+ showItems: [
181
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
182
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
183
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
184
+ ],
185
+ visible: true
186
+ },
178
187
  {
179
188
  key: 'label-position',
180
189
  visible: true
@@ -146,6 +146,15 @@ _define_property(TextareaControl, "setting", [
146
146
  ],
147
147
  visible: true
148
148
  },
149
+ {
150
+ key: 'caption-style',
151
+ showItems: [
152
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
153
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
154
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
155
+ ],
156
+ visible: true
157
+ },
149
158
  {
150
159
  key: 'label-position',
151
160
  visible: true
@@ -157,6 +157,15 @@ _define_property(TreeControl, "setting", [
157
157
  ],
158
158
  visible: true
159
159
  },
160
+ {
161
+ key: 'caption-style',
162
+ showItems: [
163
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
164
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
165
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
166
+ ],
167
+ visible: true
168
+ },
160
169
  {
161
170
  key: 'label-position',
162
171
  visible: true
@@ -141,6 +141,15 @@ _define_property(VueFormItemControl, "setting", [
141
141
  ],
142
142
  visible: true
143
143
  },
144
+ {
145
+ key: 'caption-style',
146
+ showItems: [
147
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
148
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
149
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
150
+ ],
151
+ visible: true
152
+ },
144
153
  {
145
154
  key: 'label-position',
146
155
  visible: true
@@ -147,6 +147,15 @@ _define_property(WPSControl, "setting", [
147
147
  ],
148
148
  visible: true
149
149
  },
150
+ {
151
+ key: 'caption-style',
152
+ showItems: [
153
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
154
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
155
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
156
+ ],
157
+ visible: true
158
+ },
150
159
  {
151
160
  key: 'label-position',
152
161
  visible: true
@@ -6,6 +6,7 @@ export { default as DatePicker } from './DatePicker';
6
6
  export { default as DateRange } from './DateRange';
7
7
  export { default as Textarea } from './Textarea';
8
8
  export { default as RichText } from './RichText';
9
+ export { default as DisplayText } from './DisplayText';
9
10
  export { default as Select } from './Select';
10
11
  export { default as SelectMultiple } from './SelectMultiple';
11
12
  export { default as Employee } from './Employee';
@@ -59,10 +59,13 @@ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
59
59
  ]
60
60
  };
61
61
  _class_call_check(this, LimitDate);
62
- _define_property(this, "dateConfigType", void 0); // 范围类型
63
- _define_property(this, "dateLimitType", void 0); // 限制类型
62
+ _define_property(this, "dateConfigType", void 0 // 范围类型
63
+ );
64
+ _define_property(this, "dateLimitType", void 0 // 限制类型
65
+ );
64
66
  _define_property(this, "id", void 0);
65
- _define_property(this, "value", void 0); // 存储值
67
+ _define_property(this, "value", void 0 // 存储值
68
+ );
66
69
  this.id = props.id;
67
70
  this.dateConfigType = props.dateConfigType;
68
71
  this.dateLimitType = props.dateLimitType;
@@ -375,8 +378,10 @@ export var PrintTemplate = function PrintTemplate(props) {
375
378
  _class_call_check(this, PrintTemplate);
376
379
  _define_property(this, "fileId", void 0);
377
380
  _define_property(this, "fileName", void 0);
378
- _define_property(this, "ruleName", void 0); //规则名称
379
- _define_property(this, "isDefault", void 0); //是否是默认模板
381
+ _define_property(this, "ruleName", void 0 //规则名称
382
+ );
383
+ _define_property(this, "isDefault", void 0 //是否是默认模板
384
+ );
380
385
  _define_property(this, "rules", void 0);
381
386
  var _props_fileId;
382
387
  this.fileId = (_props_fileId = props === null || props === void 0 ? void 0 : props.fileId) !== null && _props_fileId !== void 0 ? _props_fileId : '';
@@ -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 _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 TableLayoutColControlProperty from './property';
90
+ import { getLocaleText } from '@byteluck-fe/locale-message';
91
+ var TableLayoutColControl = /*#__PURE__*/ function(DesignerLayoutControl) {
92
+ "use strict";
93
+ _inherits(TableLayoutColControl, DesignerLayoutControl);
94
+ function TableLayoutColControl(props) {
95
+ _class_call_check(this, TableLayoutColControl);
96
+ var _this;
97
+ _this = _call_super(this, TableLayoutColControl, [
98
+ props
99
+ ]), _define_property(_this, "props", void 0);
100
+ _this.props = new TableLayoutColControlProperty(props === null || props === void 0 ? void 0 : props.props);
101
+ return _this;
102
+ }
103
+ _create_class(TableLayoutColControl, null, [
104
+ {
105
+ key: "controlName",
106
+ get: function get() {
107
+ return getLocaleText('CMD.table-layout-col', null, '表格布局栅格列');
108
+ }
109
+ },
110
+ {
111
+ key: "controlType",
112
+ get: function get() {
113
+ return 'table-layout-col';
114
+ }
115
+ },
116
+ {
117
+ key: "controlIcon",
118
+ get: function get() {
119
+ return 'table-layout-col';
120
+ }
121
+ }
122
+ ]);
123
+ return TableLayoutColControl;
124
+ }(DesignerLayoutControl);
125
+ _define_property(TableLayoutColControl, "excludes", [
126
+ CONTROL_TYPE.COL,
127
+ // CONTROL_TYPE.CARD_GROUP,
128
+ CONTROL_TYPE.SUBTABLE,
129
+ CONTROL_TYPE.SUBTABLE_COLUMN,
130
+ CONTROL_TYPE.GRID_LAYOUT_CONTAINER,
131
+ CONTROL_TYPE.DIVIDER,
132
+ CONTROL_TYPE.TABLE_LAYOUT_COL
133
+ ]);
134
+ _define_property(TableLayoutColControl, "childrenMaxLength", 1);
135
+ _define_property(TableLayoutColControl, "setting", [
136
+ {
137
+ key: 'layout-config',
138
+ visible: true
139
+ },
140
+ {
141
+ key: 'flex-config',
142
+ visible: true
143
+ }
144
+ ]);
145
+ export default TableLayoutColControl;
146
+ export { TableLayoutColControl as DesignerTableLayoutColControl };
@@ -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 _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 BASE_SPAN = 24;
75
+ var TableLayoutColControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
76
+ "use strict";
77
+ _inherits(TableLayoutColControlProperty, LayoutControlProperty);
78
+ function TableLayoutColControlProperty(props) {
79
+ _class_call_check(this, TableLayoutColControlProperty);
80
+ var _this;
81
+ _this = _call_super(this, TableLayoutColControlProperty, [
82
+ props
83
+ ]), _define_property(_this, "span", void 0), _define_property(_this, "offset", void 0), // 在表格布局中的合并单元格数量
84
+ _define_property(_this, "tableLayoutColSpan", void 0), // full 占满整行,'' 没有合并单元格,custom 自定义合并格数
85
+ _define_property(_this, "tableLayoutColSpanType", void 0), //布局方式
86
+ _define_property(_this, "layout", void 0), //主轴方向
87
+ _define_property(_this, "flexDirection", void 0), // 侧轴对齐方式
88
+ _define_property(_this, "alignItems", void 0), // 主轴对齐方式
89
+ _define_property(_this, "justifyContent", void 0);
90
+ var _props_span;
91
+ _this.span = (_props_span = props === null || props === void 0 ? void 0 : props.span) !== null && _props_span !== void 0 ? _props_span : BASE_SPAN;
92
+ var _props_offset;
93
+ _this.offset = (_props_offset = props === null || props === void 0 ? void 0 : props.offset) !== null && _props_offset !== void 0 ? _props_offset : 0;
94
+ var _props_tableLayoutColSpan;
95
+ _this.tableLayoutColSpan = (_props_tableLayoutColSpan = props === null || props === void 0 ? void 0 : props.tableLayoutColSpan) !== null && _props_tableLayoutColSpan !== void 0 ? _props_tableLayoutColSpan : 0;
96
+ var _props_tableLayoutColSpanType;
97
+ _this.tableLayoutColSpanType = (_props_tableLayoutColSpanType = props === null || props === void 0 ? void 0 : props.tableLayoutColSpanType) !== null && _props_tableLayoutColSpanType !== void 0 ? _props_tableLayoutColSpanType : '';
98
+ var _props_layout;
99
+ _this.layout = (_props_layout = props === null || props === void 0 ? void 0 : props.layout) !== null && _props_layout !== void 0 ? _props_layout : 'block';
100
+ var _props_flexDirection;
101
+ _this.flexDirection = (_props_flexDirection = props === null || props === void 0 ? void 0 : props.flexDirection) !== null && _props_flexDirection !== void 0 ? _props_flexDirection : 'row';
102
+ var _props_alignItems;
103
+ _this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : 'flex-start';
104
+ var _props_justifyContent;
105
+ _this.justifyContent = (_props_justifyContent = props === null || props === void 0 ? void 0 : props.justifyContent) !== null && _props_justifyContent !== void 0 ? _props_justifyContent : 'flex-start';
106
+ return _this;
107
+ }
108
+ return TableLayoutColControlProperty;
109
+ }(LayoutControlProperty);
110
+ export default TableLayoutColControlProperty;
111
+ export { TableLayoutColControlProperty };