@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.
- package/dist/esm/baseControls/Button/designer.js +2 -1
- package/dist/esm/baseControls/Button/property.js +4 -1
- package/dist/esm/baseControls/ExportListButton/property.js +3 -0
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -1
- package/dist/esm/baseControls/ImportRecordListButton/property.js +3 -0
- package/dist/esm/baseControls/Text/property.js +3 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +140 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/index.js +11 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +127 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +104 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/types.js +0 -0
- package/dist/esm/columnControls/ArrayColumn/designer.js +8 -1
- package/dist/esm/columnControls/ArrayColumn/property.js +10 -8
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +5 -1
- package/dist/esm/columnControls/CustomColumn/designer.js +4 -0
- package/dist/esm/columnControls/CustomColumn/property.js +25 -1
- package/dist/esm/columnControls/DecimalColumn/designer.js +8 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +4 -0
- package/dist/esm/columnControls/EmployeeColumn/designer.js +4 -0
- package/dist/esm/columnControls/FileColumn/designer.js +4 -0
- package/dist/esm/columnControls/ImageColumn/designer.js +4 -0
- package/dist/esm/columnControls/LocationColumn/designer.js +5 -1
- package/dist/esm/columnControls/OrderColumn/designer.js +4 -0
- package/dist/esm/columnControls/PeopleColumn/designer.js +4 -0
- package/dist/esm/columnControls/TextColumn/designer.js +8 -0
- package/dist/esm/columnControls/TimescopeColumn/designer.js +4 -0
- package/dist/esm/columnControls/TimestampColumn/designer.js +4 -0
- package/dist/esm/columnControls/VarcharColumn/designer.js +9 -1
- package/dist/esm/columnControls/index.js +1 -0
- package/dist/esm/formControls/Attachment/property.js +4 -7
- package/dist/esm/formControls/DatePicker/designer.js +4 -1
- package/dist/esm/formControls/DateRange/designer.js +4 -1
- package/dist/esm/formControls/Image/designer.js +2 -9
- package/dist/esm/formControls/Image/property.js +2 -30
- package/dist/esm/formControls/SearchDateRange/designer.js +4 -1
- package/dist/esm/formControls/Select/designer.js +5 -1
- package/dist/esm/formControls/Select/property.js +38 -2
- package/dist/esm/formControls/SelectMultiple/designer.js +5 -1
- package/dist/esm/formControls/SelectMultiple/property.js +38 -2
- package/dist/esm/formControls/SelectRelation/designer.js +5 -3
- package/dist/esm/formControls/SelectRelation/property.js +19 -1
- package/dist/esm/framework.js +2 -2
- package/dist/esm/index.js +10 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +156 -0
- package/dist/esm/layoutControls/ActionBar/index.js +11 -0
- package/dist/esm/layoutControls/ActionBar/property.js +111 -0
- package/dist/esm/layoutControls/ActionBar/runtime.js +125 -0
- package/dist/esm/layoutControls/ActionBar/types.js +0 -0
- package/dist/esm/layoutControls/Col/designer.js +1 -0
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +152 -0
- package/dist/esm/layoutControls/GridLayoutContainer/index.js +11 -0
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +107 -0
- package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +124 -0
- package/dist/esm/layoutControls/GridLayoutContainer/types.js +0 -0
- package/dist/esm/layoutControls/ListView/designer.js +4 -0
- package/dist/esm/layoutControls/ListView/property.js +89 -3
- package/dist/esm/layoutControls/index.js +2 -0
- package/dist/esm/listControls/GridTable/designer.js +4 -0
- package/dist/esm/listControls/GridTable/property.js +8 -0
- package/dist/esm/listControls/SubTable/designer.js +6 -2
- package/dist/esm/listControls/SubTable/property.js +9 -0
- package/dist/esm/searchControls/SimpleSearch/designer.js +8 -0
- package/dist/esm/searchControls/SimpleSearch/property.js +14 -0
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +27 -0
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +144 -0
- package/dist/esm/wrapControls/GridLayoutWrap/index.js +20 -0
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +101 -0
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +130 -0
- package/dist/esm/wrapControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Button/property.d.ts +2 -1
- package/dist/types/baseControls/ExportListButton/property.d.ts +1 -0
- package/dist/types/baseControls/ImportRecordListButton/property.d.ts +1 -0
- package/dist/types/baseControls/Text/property.d.ts +1 -0
- package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +14 -0
- package/dist/types/columnControls/ApprovalStatusColumn/index.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/property.d.ts +29 -0
- package/dist/types/columnControls/ApprovalStatusColumn/runtime.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/types.d.ts +0 -0
- package/dist/types/columnControls/ArrayColumn/property.d.ts +3 -1
- package/dist/types/columnControls/CustomColumn/property.d.ts +8 -1
- package/dist/types/columnControls/index.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/dist/types/formControls/Image/property.d.ts +0 -2
- package/dist/types/formControls/Select/property.d.ts +20 -1
- package/dist/types/formControls/SelectMultiple/property.d.ts +20 -1
- package/dist/types/formControls/SelectRelation/property.d.ts +8 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/layoutControls/ActionBar/designer.d.ts +13 -0
- package/dist/types/layoutControls/ActionBar/index.d.ts +12 -0
- package/dist/types/layoutControls/ActionBar/property.d.ts +9 -0
- package/dist/types/layoutControls/ActionBar/runtime.d.ts +10 -0
- package/dist/types/layoutControls/ActionBar/types.d.ts +0 -0
- package/dist/types/layoutControls/GridLayoutContainer/designer.d.ts +14 -0
- package/dist/types/layoutControls/GridLayoutContainer/index.d.ts +12 -0
- package/dist/types/layoutControls/GridLayoutContainer/property.d.ts +8 -0
- package/dist/types/layoutControls/GridLayoutContainer/runtime.d.ts +10 -0
- package/dist/types/layoutControls/GridLayoutContainer/types.d.ts +0 -0
- package/dist/types/layoutControls/ListView/property.d.ts +17 -1
- package/dist/types/layoutControls/index.d.ts +2 -0
- package/dist/types/listControls/GridTable/property.d.ts +1 -0
- package/dist/types/listControls/SubTable/property.d.ts +1 -0
- package/dist/types/searchControls/SimpleSearch/property.d.ts +12 -0
- package/dist/types/type.d.ts +9 -2
- package/dist/types/wrapControls/GridLayoutWrap/Setting.d.ts +2 -0
- package/dist/types/wrapControls/GridLayoutWrap/designer.d.ts +11 -0
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +14 -0
- package/dist/types/wrapControls/GridLayoutWrap/property.d.ts +6 -0
- package/dist/types/wrapControls/GridLayoutWrap/runtime.d.ts +9 -0
- package/dist/types/wrapControls/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -171,15 +171,15 @@ _define_property(DecimalColumnControl, "setting", [
|
|
|
171
171
|
visible: true
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
key: "column-
|
|
174
|
+
key: "column-fixed",
|
|
175
175
|
visible: true
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
key: "column-
|
|
178
|
+
key: "column-options-setting",
|
|
179
179
|
visible: true
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
key: "column-
|
|
182
|
+
key: "column-link-operation",
|
|
183
183
|
visible: true
|
|
184
184
|
},
|
|
185
185
|
{
|
|
@@ -192,12 +192,16 @@ _define_property(DecimalColumnControl, "setting", [
|
|
|
192
192
|
visible: true
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
key: "column-align",
|
|
195
|
+
key: "column-align-content",
|
|
196
196
|
visible: true
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
key: "column-sort",
|
|
200
200
|
visible: true
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
key: "column-statistics",
|
|
204
|
+
visible: true
|
|
201
205
|
}
|
|
202
206
|
]);
|
|
203
207
|
export default DecimalColumnControl;
|
|
@@ -120,13 +120,17 @@ _define_property(LocationColumnControl, "setting", [
|
|
|
120
120
|
visible: true
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
key: "column-
|
|
123
|
+
key: "column-align-content",
|
|
124
124
|
visible: true
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
key: "column-fixed",
|
|
128
128
|
visible: true
|
|
129
129
|
},
|
|
130
|
+
{
|
|
131
|
+
key: "column-link-operation",
|
|
132
|
+
visible: true
|
|
133
|
+
},
|
|
130
134
|
{
|
|
131
135
|
key: "column-sort",
|
|
132
136
|
visible: true
|
|
@@ -173,6 +173,10 @@ _define_property(TextColumnControl, "setting", [
|
|
|
173
173
|
key: "column-autoHeight",
|
|
174
174
|
visible: true
|
|
175
175
|
},
|
|
176
|
+
{
|
|
177
|
+
key: "column-align-content",
|
|
178
|
+
visible: true
|
|
179
|
+
},
|
|
176
180
|
{
|
|
177
181
|
key: "column-link-operation",
|
|
178
182
|
visible: true
|
|
@@ -192,6 +196,10 @@ _define_property(TextColumnControl, "setting", [
|
|
|
192
196
|
{
|
|
193
197
|
key: "column-sort",
|
|
194
198
|
visible: true
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
key: "column-statistics",
|
|
202
|
+
visible: true
|
|
195
203
|
}
|
|
196
204
|
]);
|
|
197
205
|
export default TextColumnControl;
|
|
@@ -124,7 +124,7 @@ _define_property(VarcharColumnControl, "setting", [
|
|
|
124
124
|
visible: true
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
key: "column-
|
|
127
|
+
key: "column-align-content",
|
|
128
128
|
visible: true
|
|
129
129
|
},
|
|
130
130
|
{
|
|
@@ -135,6 +135,10 @@ _define_property(VarcharColumnControl, "setting", [
|
|
|
135
135
|
key: "column-options-setting",
|
|
136
136
|
visible: true
|
|
137
137
|
},
|
|
138
|
+
{
|
|
139
|
+
key: "column-link-operation",
|
|
140
|
+
visible: true
|
|
141
|
+
},
|
|
138
142
|
{
|
|
139
143
|
key: "column-line-ellipsis",
|
|
140
144
|
visible: true
|
|
@@ -142,6 +146,10 @@ _define_property(VarcharColumnControl, "setting", [
|
|
|
142
146
|
{
|
|
143
147
|
key: "column-sort",
|
|
144
148
|
visible: true
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
key: "column-statistics",
|
|
152
|
+
visible: true
|
|
145
153
|
}
|
|
146
154
|
]);
|
|
147
155
|
export default VarcharColumnControl;
|
|
@@ -14,3 +14,4 @@ export { default as CustomColumn } from "./CustomColumn";
|
|
|
14
14
|
export { default as OrderColumn } from "./OrderColumn";
|
|
15
15
|
export { default as OperationColumn } from "./OperationColumn";
|
|
16
16
|
export { default as EmployeeColumn } from "./EmployeeColumn";
|
|
17
|
+
export { default as ApprovalStatusColumn } from "./ApprovalStatusColumn";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2023-09-14 18:31:51
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-15 11:54:00
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
8
2
|
if (self === void 0) {
|
|
9
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
4
|
}
|
|
@@ -145,6 +139,7 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
145
139
|
_define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
146
140
|
// 默认格式和列表格式,原应用内是title和table
|
|
147
141
|
_define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
142
|
+
_define_property(_assert_this_initialized(_this), "resultShowType", void 0);
|
|
148
143
|
_define_property(_assert_this_initialized(_this), "attachmentAccept", void 0);
|
|
149
144
|
_define_property(_assert_this_initialized(_this), "maxLimit", void 0);
|
|
150
145
|
_define_property(_assert_this_initialized(_this), "minLimit", void 0);
|
|
@@ -155,6 +150,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
155
150
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
156
151
|
var _props_showType;
|
|
157
152
|
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "default";
|
|
153
|
+
var _props_resultShowType;
|
|
154
|
+
_this.resultShowType = (_props_resultShowType = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _props_resultShowType !== void 0 ? _props_resultShowType : "simple";
|
|
158
155
|
var _props_attachmentAccept;
|
|
159
156
|
_this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
|
|
160
157
|
var _props_maxLimit;
|
|
@@ -202,7 +202,10 @@ _define_property(DatePickerControl, "setting", [
|
|
|
202
202
|
key: "date-type",
|
|
203
203
|
visible: true
|
|
204
204
|
},
|
|
205
|
-
|
|
205
|
+
{
|
|
206
|
+
key: "date-common-time-setting",
|
|
207
|
+
visible: true
|
|
208
|
+
},
|
|
206
209
|
{
|
|
207
210
|
key: "common-setting",
|
|
208
211
|
visible: true,
|
|
@@ -202,7 +202,10 @@ _define_property(DateRangeControl, "setting", [
|
|
|
202
202
|
key: "date-type",
|
|
203
203
|
visible: true
|
|
204
204
|
},
|
|
205
|
-
|
|
205
|
+
{
|
|
206
|
+
key: "date-common-time-setting",
|
|
207
|
+
visible: true
|
|
208
|
+
},
|
|
206
209
|
{
|
|
207
210
|
key: "common-setting",
|
|
208
211
|
visible: true,
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2022-12-01 14:40:30
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 14:55:15
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
8
2
|
if (self === void 0) {
|
|
9
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
4
|
}
|
|
@@ -176,8 +170,7 @@ _define_property(ImageControl, "setting", [
|
|
|
176
170
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
177
171
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
178
172
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
179
|
-
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
180
|
-
COMMON_SETTING_TYPE.IS_SHOW_WATERMARK
|
|
173
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
181
174
|
]
|
|
182
175
|
},
|
|
183
176
|
{
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2022-12-01 14:40:30
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 14:56:27
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/property.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
8
2
|
if (self === void 0) {
|
|
9
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
4
|
}
|
|
@@ -15,19 +9,6 @@ function _class_call_check(instance, Constructor) {
|
|
|
15
9
|
throw new TypeError("Cannot call a class as a function");
|
|
16
10
|
}
|
|
17
11
|
}
|
|
18
|
-
function _define_property(obj, key, value) {
|
|
19
|
-
if (key in obj) {
|
|
20
|
-
Object.defineProperty(obj, key, {
|
|
21
|
-
value: value,
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true
|
|
25
|
-
});
|
|
26
|
-
} else {
|
|
27
|
-
obj[key] = value;
|
|
28
|
-
}
|
|
29
|
-
return obj;
|
|
30
|
-
}
|
|
31
12
|
function _get_prototype_of(o) {
|
|
32
13
|
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
33
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -95,16 +76,7 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
|
|
|
95
76
|
var _super = _create_super(ImageProperty);
|
|
96
77
|
function ImageProperty(props) {
|
|
97
78
|
_class_call_check(this, ImageProperty);
|
|
98
|
-
|
|
99
|
-
_this = _super.call(this, props);
|
|
100
|
-
_define_property(_assert_this_initialized(_this), "isShowWatermark", void 0 // 是否开启水印
|
|
101
|
-
);
|
|
102
|
-
_define_property(_assert_this_initialized(_this), "watermarkFx", void 0);
|
|
103
|
-
var _props_isShowWatermark;
|
|
104
|
-
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
105
|
-
var _props_watermarkFx;
|
|
106
|
-
_this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
|
|
107
|
-
return _this;
|
|
79
|
+
return _super.call(this, props);
|
|
108
80
|
}
|
|
109
81
|
return ImageProperty;
|
|
110
82
|
}(AttachmentProperty);
|
|
@@ -171,7 +171,10 @@ _define_property(SearchDateRangeControl, "setting", [
|
|
|
171
171
|
key: "date-type",
|
|
172
172
|
visible: true
|
|
173
173
|
},
|
|
174
|
-
|
|
174
|
+
{
|
|
175
|
+
key: "date-common-time-setting",
|
|
176
|
+
visible: true
|
|
177
|
+
},
|
|
175
178
|
{
|
|
176
179
|
key: "common-setting",
|
|
177
180
|
visible: true,
|
|
@@ -177,7 +177,11 @@ _define_property(SelectControl, "setting", [
|
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
key: "options-setting",
|
|
180
|
-
visible: true
|
|
180
|
+
visible: true,
|
|
181
|
+
showItems: [
|
|
182
|
+
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
183
|
+
COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE
|
|
184
|
+
]
|
|
181
185
|
},
|
|
182
186
|
{
|
|
183
187
|
key: "super-setting",
|
|
@@ -82,15 +82,30 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import SelectControl from "./designer";
|
|
87
|
+
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
87
88
|
var SelectControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
88
89
|
"use strict";
|
|
89
90
|
_inherits(SelectControlPropertyRules, OptionAndDataSourcePropertyRules);
|
|
90
91
|
var _super = _create_super(SelectControlPropertyRules);
|
|
91
92
|
function SelectControlPropertyRules(props) {
|
|
92
93
|
_class_call_check(this, SelectControlPropertyRules);
|
|
93
|
-
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _super.call(this, props);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "formBind", {
|
|
97
|
+
type: "object",
|
|
98
|
+
fields: {
|
|
99
|
+
formKey: {
|
|
100
|
+
type: "string",
|
|
101
|
+
message: RulesMessage.getMessage("pleaseEnterForm")
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
if (props.canViewForm === true) {
|
|
106
|
+
_this.formBind.fields.formKey.required = true;
|
|
107
|
+
}
|
|
108
|
+
return _this;
|
|
94
109
|
}
|
|
95
110
|
return SelectControlPropertyRules;
|
|
96
111
|
}(OptionAndDataSourcePropertyRules);
|
|
@@ -113,6 +128,22 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
113
128
|
);
|
|
114
129
|
_define_property(_assert_this_initialized(_this), "openMultistageFilling", void 0 //是否开启填充
|
|
115
130
|
);
|
|
131
|
+
/**
|
|
132
|
+
* 表单打开方式
|
|
133
|
+
* @defaultValue []
|
|
134
|
+
* @public
|
|
135
|
+
*/ _define_property(_assert_this_initialized(_this), "viewFormModelType", void 0);
|
|
136
|
+
/**
|
|
137
|
+
* 查看详情
|
|
138
|
+
* @defaultValue false
|
|
139
|
+
* @public
|
|
140
|
+
*/ _define_property(_assert_this_initialized(_this), "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
141
|
+
);
|
|
142
|
+
/**
|
|
143
|
+
* 选择表单
|
|
144
|
+
* @defaultValue 空
|
|
145
|
+
* @public
|
|
146
|
+
*/ _define_property(_assert_this_initialized(_this), "formBind", void 0);
|
|
116
147
|
var _props_options;
|
|
117
148
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
118
149
|
{
|
|
@@ -150,6 +181,11 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
150
181
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
151
182
|
});
|
|
152
183
|
}
|
|
184
|
+
var _props_canViewForm;
|
|
185
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
186
|
+
var _props_viewFormModelType;
|
|
187
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : "window";
|
|
188
|
+
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
153
189
|
return _this;
|
|
154
190
|
}
|
|
155
191
|
return SelectProperty;
|
|
@@ -176,7 +176,11 @@ _define_property(SelectMultipleControl, "setting", [
|
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
key: "options-setting",
|
|
179
|
-
visible: true
|
|
179
|
+
visible: true,
|
|
180
|
+
showItems: [
|
|
181
|
+
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
182
|
+
COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE
|
|
183
|
+
]
|
|
180
184
|
},
|
|
181
185
|
{
|
|
182
186
|
key: "super-setting",
|
|
@@ -82,15 +82,30 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import SelectMultipleControl from "./designer";
|
|
87
|
+
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
87
88
|
var SelectMultipleControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
88
89
|
"use strict";
|
|
89
90
|
_inherits(SelectMultipleControlPropertyRules, OptionAndDataSourcePropertyRules);
|
|
90
91
|
var _super = _create_super(SelectMultipleControlPropertyRules);
|
|
91
92
|
function SelectMultipleControlPropertyRules(props) {
|
|
92
93
|
_class_call_check(this, SelectMultipleControlPropertyRules);
|
|
93
|
-
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _super.call(this, props);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "formBind", {
|
|
97
|
+
type: "object",
|
|
98
|
+
fields: {
|
|
99
|
+
formKey: {
|
|
100
|
+
type: "string",
|
|
101
|
+
message: RulesMessage.getMessage("pleaseEnterForm")
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
if (props.canViewForm === true) {
|
|
106
|
+
_this.formBind.fields.formKey.required = true;
|
|
107
|
+
}
|
|
108
|
+
return _this;
|
|
94
109
|
}
|
|
95
110
|
return SelectMultipleControlPropertyRules;
|
|
96
111
|
}(OptionAndDataSourcePropertyRules);
|
|
@@ -124,6 +139,22 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
124
139
|
_define_property(_assert_this_initialized(_this), "multistageFilling", void 0);
|
|
125
140
|
_define_property(_assert_this_initialized(_this), "openMultistageFilling", void 0 //是否开启填充
|
|
126
141
|
);
|
|
142
|
+
/**
|
|
143
|
+
* 表单打开方式
|
|
144
|
+
* @defaultValue []
|
|
145
|
+
* @public
|
|
146
|
+
*/ _define_property(_assert_this_initialized(_this), "viewFormModelType", void 0);
|
|
147
|
+
/**
|
|
148
|
+
* 查看详情
|
|
149
|
+
* @defaultValue false
|
|
150
|
+
* @public
|
|
151
|
+
*/ _define_property(_assert_this_initialized(_this), "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
152
|
+
);
|
|
153
|
+
/**
|
|
154
|
+
* 选择表单
|
|
155
|
+
* @defaultValue 空
|
|
156
|
+
* @public
|
|
157
|
+
*/ _define_property(_assert_this_initialized(_this), "formBind", void 0);
|
|
127
158
|
var _props_options;
|
|
128
159
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
129
160
|
{
|
|
@@ -159,6 +190,11 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
159
190
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
160
191
|
});
|
|
161
192
|
}
|
|
193
|
+
var _props_canViewForm;
|
|
194
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
195
|
+
var _props_viewFormModelType;
|
|
196
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : "window";
|
|
197
|
+
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
162
198
|
return _this;
|
|
163
199
|
}
|
|
164
200
|
return SelectMultipleProperty;
|
|
@@ -169,14 +169,16 @@ _define_property(SelectRelationControl, "setting", [
|
|
|
169
169
|
showItems: [
|
|
170
170
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
171
171
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
172
|
-
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
173
|
-
COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
|
|
174
172
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
175
173
|
]
|
|
176
174
|
},
|
|
177
175
|
{
|
|
178
176
|
key: "relation-setting",
|
|
179
|
-
visible: true
|
|
177
|
+
visible: true,
|
|
178
|
+
showItems: [
|
|
179
|
+
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
180
|
+
COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE
|
|
181
|
+
]
|
|
180
182
|
},
|
|
181
183
|
{
|
|
182
184
|
key: "super-setting",
|
|
@@ -82,7 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind, FormBind } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import SelectRelationControl from "./designer";
|
|
87
87
|
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
88
88
|
var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
@@ -116,6 +116,18 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
]);
|
|
119
|
+
_define_property(_assert_this_initialized(_this), "formBind", {
|
|
120
|
+
type: "object",
|
|
121
|
+
fields: {
|
|
122
|
+
formKey: {
|
|
123
|
+
type: "string",
|
|
124
|
+
message: RulesMessage.getMessage("pleaseEnterForm")
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
if (props.canViewForm === true) {
|
|
129
|
+
_this.formBind.fields.formKey.required = true;
|
|
130
|
+
}
|
|
119
131
|
return _this;
|
|
120
132
|
}
|
|
121
133
|
return SelectRelationControlPropertyRules;
|
|
@@ -172,6 +184,11 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
172
184
|
*/ _define_property(_assert_this_initialized(_this), "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
173
185
|
);
|
|
174
186
|
/**
|
|
187
|
+
* 选择表单
|
|
188
|
+
* @defaultValue 空
|
|
189
|
+
* @public
|
|
190
|
+
*/ _define_property(_assert_this_initialized(_this), "formBind", void 0);
|
|
191
|
+
/**
|
|
175
192
|
* 数据填充-查看/编辑页面生效
|
|
176
193
|
* @defaultValue false
|
|
177
194
|
* @public
|
|
@@ -209,6 +226,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
209
226
|
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
210
227
|
var _props_viewFormModelType;
|
|
211
228
|
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : "window";
|
|
229
|
+
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
212
230
|
return _this;
|
|
213
231
|
}
|
|
214
232
|
return SelectRelationProperty;
|
package/dist/esm/framework.js
CHANGED
|
@@ -45,8 +45,8 @@ export var DATE_LIMIT_TYPE;
|
|
|
45
45
|
*/ export var LimitDate = function LimitDate() {
|
|
46
46
|
"use strict";
|
|
47
47
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
48
|
-
dateConfigType:
|
|
49
|
-
dateLimitType:
|
|
48
|
+
dateConfigType: "unSelectAbleInterval",
|
|
49
|
+
dateLimitType: "filledInTime",
|
|
50
50
|
id: genNonDuplicateId(8),
|
|
51
51
|
value: [
|
|
52
52
|
"",
|
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2022-12-01 14:40:30
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-08 21:46:12
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/index.ts
|
|
7
|
+
*/ import * as baseControls from "./baseControls";
|
|
2
8
|
import * as formControls from "./formControls";
|
|
3
9
|
import * as layoutControls from "./layoutControls";
|
|
4
10
|
import * as listControls from "./listControls";
|
|
5
11
|
import * as columnControls from "./columnControls";
|
|
6
12
|
import * as searchControls from "./searchControls";
|
|
7
|
-
|
|
13
|
+
import * as wrapControls from "./wrapControls";
|
|
14
|
+
export { baseControls, formControls, layoutControls, listControls, columnControls, searchControls, wrapControls, };
|
|
8
15
|
export * from "./baseControls";
|
|
9
16
|
export * from "./formControls";
|
|
10
17
|
export * from "./layoutControls";
|
|
@@ -13,3 +20,4 @@ export * from "./columnControls";
|
|
|
13
20
|
export * from "./searchControls";
|
|
14
21
|
export * from "./type";
|
|
15
22
|
export * from "./framework";
|
|
23
|
+
export * from "./wrapControls";
|