@sheinx/hooks 3.8.0-beta.32 → 3.8.0-beta.33
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/cjs/components/use-form/use-form-schema/form-schema-builder.d.ts +2 -1
- package/cjs/components/use-form/use-form-schema/form-schema-builder.d.ts.map +1 -1
- package/cjs/components/use-form/use-form-schema/form-schema-builder.js +87 -33
- package/esm/components/use-form/use-form-schema/form-schema-builder.d.ts +2 -1
- package/esm/components/use-form/use-form-schema/form-schema-builder.d.ts.map +1 -1
- package/esm/components/use-form/use-form-schema/form-schema-builder.js +87 -33
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form-schema-builder.d.ts","sourceRoot":"","sources":["form-schema-builder.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG;QAAE,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;
|
1
|
+
{"version":3,"file":"form-schema-builder.d.ts","sourceRoot":"","sources":["form-schema-builder.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG;QAAE,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;IAChD,WAAW,CAAC,EAAE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,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IA0B9H,cAAc,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAwB7F,aAAa,IAAI,cAAc;CAGhC"}
|
@@ -74,6 +74,7 @@ var SchemaBuilder = exports.SchemaBuilder = /*#__PURE__*/function () {
|
|
74
74
|
var itemType;
|
75
75
|
if (typeof componentElement.type === 'function') {
|
76
76
|
var componentName = componentElement.type.displayName || componentElement.type.name;
|
77
|
+
var format = componentElement.props.format || componentElement.props.keygen;
|
77
78
|
switch (componentName) {
|
78
79
|
case 'ShineoutInput':
|
79
80
|
case 'ShineoutEditableArea':
|
@@ -88,10 +89,10 @@ var SchemaBuilder = exports.SchemaBuilder = /*#__PURE__*/function () {
|
|
88
89
|
case 'ShineoutTextarea':
|
89
90
|
fieldSchemaInfo.type = 'string';
|
90
91
|
break;
|
92
|
+
case 'ShineoutCascader':
|
91
93
|
case 'ShineoutSelect':
|
92
94
|
case 'ShineoutTreeSelect':
|
93
95
|
{
|
94
|
-
var format = componentElement.props.format || componentElement.props.keygen;
|
95
96
|
if (typeof componentElement.props.keygen !== 'boolean') {
|
96
97
|
if (typeof format === 'string') {
|
97
98
|
var _data$;
|
@@ -112,31 +113,28 @@ var SchemaBuilder = exports.SchemaBuilder = /*#__PURE__*/function () {
|
|
112
113
|
} else {
|
113
114
|
fieldSchemaInfo.type = itemType;
|
114
115
|
}
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
return
|
135
|
-
|
136
|
-
|
137
|
-
};
|
138
|
-
})
|
139
|
-
};
|
116
|
+
if (itemType === 'object') {
|
117
|
+
// 对于对象类型,使用 oneOf 而不是 enum
|
118
|
+
if (componentElement.props.multiple) {
|
119
|
+
fieldSchemaInfo.items.oneOf = componentElement.props.data.map(function (item) {
|
120
|
+
return {
|
121
|
+
const: item,
|
122
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
123
|
+
};
|
124
|
+
});
|
125
|
+
} else {
|
126
|
+
fieldSchemaInfo.oneOf = componentElement.props.data.map(function (item) {
|
127
|
+
return {
|
128
|
+
const: item,
|
129
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
130
|
+
};
|
131
|
+
});
|
132
|
+
}
|
133
|
+
} else {
|
134
|
+
fieldSchemaInfo.enum = componentElement.props.data.map(function (item) {
|
135
|
+
return (item === null || item === void 0 ? void 0 : item[format]) || item;
|
136
|
+
});
|
137
|
+
}
|
140
138
|
break;
|
141
139
|
}
|
142
140
|
case 'ShineoutDatePicker':
|
@@ -159,15 +157,71 @@ var SchemaBuilder = exports.SchemaBuilder = /*#__PURE__*/function () {
|
|
159
157
|
break;
|
160
158
|
case 'ShineoutCheckbox':
|
161
159
|
case 'ShineoutCheckboxGroup':
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
160
|
+
{
|
161
|
+
if (typeof componentElement.props.keygen !== 'boolean') {
|
162
|
+
if (typeof format === 'string') {
|
163
|
+
var _data$2;
|
164
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]) === 'object' ? _typeof(data === null || data === void 0 || (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2[format]) : _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
165
|
+
} else if (typeof format === 'function') {
|
166
|
+
itemType = _typeof(format(data === null || data === void 0 ? void 0 : data[0]));
|
167
|
+
} else {
|
168
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
169
|
+
}
|
170
|
+
} else {
|
171
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
172
|
+
}
|
173
|
+
fieldSchemaInfo.type = 'array';
|
174
|
+
fieldSchemaInfo.items = {
|
175
|
+
type: itemType
|
176
|
+
};
|
177
|
+
|
178
|
+
// ShineoutCheckboxGroup 有 data 时(多选的)
|
179
|
+
if (itemType === 'object') {
|
180
|
+
fieldSchemaInfo.items.oneOf = componentElement.props.data.map(function (item) {
|
181
|
+
return {
|
182
|
+
const: item,
|
183
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
184
|
+
};
|
185
|
+
});
|
186
|
+
} else {
|
187
|
+
fieldSchemaInfo.items.enum = componentElement.props.data.map(function (item) {
|
188
|
+
return (item === null || item === void 0 ? void 0 : item[format]) || item;
|
189
|
+
});
|
190
|
+
}
|
191
|
+
break;
|
192
|
+
}
|
167
193
|
case 'ShineoutRadio':
|
168
194
|
case 'ShineoutRadioGroup':
|
169
|
-
|
170
|
-
|
195
|
+
{
|
196
|
+
if (typeof componentElement.props.keygen !== 'boolean') {
|
197
|
+
if (typeof format === 'string') {
|
198
|
+
var _data$3;
|
199
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]) === 'object' ? _typeof(data === null || data === void 0 || (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : _data$3[format]) : _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
200
|
+
} else if (typeof format === 'function') {
|
201
|
+
itemType = _typeof(format(data === null || data === void 0 ? void 0 : data[0]));
|
202
|
+
} else {
|
203
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
204
|
+
}
|
205
|
+
} else {
|
206
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
207
|
+
}
|
208
|
+
fieldSchemaInfo.type = itemType;
|
209
|
+
|
210
|
+
// ShineoutRadioGroup 有 data 时(单选的)
|
211
|
+
if (itemType === 'object') {
|
212
|
+
fieldSchemaInfo.oneOf = componentElement.props.data.map(function (item) {
|
213
|
+
return {
|
214
|
+
const: item,
|
215
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
216
|
+
};
|
217
|
+
});
|
218
|
+
} else {
|
219
|
+
fieldSchemaInfo.enum = componentElement.props.data.map(function (item) {
|
220
|
+
return (item === null || item === void 0 ? void 0 : item[format]) || item;
|
221
|
+
});
|
222
|
+
}
|
223
|
+
break;
|
224
|
+
}
|
171
225
|
case 'ShineoutSwitch':
|
172
226
|
fieldSchemaInfo.type = 'boolean';
|
173
227
|
break;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form-schema-builder.d.ts","sourceRoot":"","sources":["form-schema-builder.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG;QAAE,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;
|
1
|
+
{"version":3,"file":"form-schema-builder.d.ts","sourceRoot":"","sources":["form-schema-builder.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG;QAAE,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB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AM,EAAE,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IA0B9H,cAAc,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAwB7F,aAAa,IAAI,cAAc;CAGhC"}
|
@@ -68,6 +68,7 @@ export var SchemaBuilder = /*#__PURE__*/function () {
|
|
68
68
|
var itemType;
|
69
69
|
if (typeof componentElement.type === 'function') {
|
70
70
|
var componentName = componentElement.type.displayName || componentElement.type.name;
|
71
|
+
var format = componentElement.props.format || componentElement.props.keygen;
|
71
72
|
switch (componentName) {
|
72
73
|
case 'ShineoutInput':
|
73
74
|
case 'ShineoutEditableArea':
|
@@ -82,10 +83,10 @@ export var SchemaBuilder = /*#__PURE__*/function () {
|
|
82
83
|
case 'ShineoutTextarea':
|
83
84
|
fieldSchemaInfo.type = 'string';
|
84
85
|
break;
|
86
|
+
case 'ShineoutCascader':
|
85
87
|
case 'ShineoutSelect':
|
86
88
|
case 'ShineoutTreeSelect':
|
87
89
|
{
|
88
|
-
var format = componentElement.props.format || componentElement.props.keygen;
|
89
90
|
if (typeof componentElement.props.keygen !== 'boolean') {
|
90
91
|
if (typeof format === 'string') {
|
91
92
|
var _data$;
|
@@ -106,31 +107,28 @@ export var SchemaBuilder = /*#__PURE__*/function () {
|
|
106
107
|
} else {
|
107
108
|
fieldSchemaInfo.type = itemType;
|
108
109
|
}
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
return
|
129
|
-
|
130
|
-
|
131
|
-
};
|
132
|
-
})
|
133
|
-
};
|
110
|
+
if (itemType === 'object') {
|
111
|
+
// 对于对象类型,使用 oneOf 而不是 enum
|
112
|
+
if (componentElement.props.multiple) {
|
113
|
+
fieldSchemaInfo.items.oneOf = componentElement.props.data.map(function (item) {
|
114
|
+
return {
|
115
|
+
const: item,
|
116
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
117
|
+
};
|
118
|
+
});
|
119
|
+
} else {
|
120
|
+
fieldSchemaInfo.oneOf = componentElement.props.data.map(function (item) {
|
121
|
+
return {
|
122
|
+
const: item,
|
123
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
124
|
+
};
|
125
|
+
});
|
126
|
+
}
|
127
|
+
} else {
|
128
|
+
fieldSchemaInfo.enum = componentElement.props.data.map(function (item) {
|
129
|
+
return (item === null || item === void 0 ? void 0 : item[format]) || item;
|
130
|
+
});
|
131
|
+
}
|
134
132
|
break;
|
135
133
|
}
|
136
134
|
case 'ShineoutDatePicker':
|
@@ -153,15 +151,71 @@ export var SchemaBuilder = /*#__PURE__*/function () {
|
|
153
151
|
break;
|
154
152
|
case 'ShineoutCheckbox':
|
155
153
|
case 'ShineoutCheckboxGroup':
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
154
|
+
{
|
155
|
+
if (typeof componentElement.props.keygen !== 'boolean') {
|
156
|
+
if (typeof format === 'string') {
|
157
|
+
var _data$2;
|
158
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]) === 'object' ? _typeof(data === null || data === void 0 || (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2[format]) : _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
159
|
+
} else if (typeof format === 'function') {
|
160
|
+
itemType = _typeof(format(data === null || data === void 0 ? void 0 : data[0]));
|
161
|
+
} else {
|
162
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
163
|
+
}
|
164
|
+
} else {
|
165
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
166
|
+
}
|
167
|
+
fieldSchemaInfo.type = 'array';
|
168
|
+
fieldSchemaInfo.items = {
|
169
|
+
type: itemType
|
170
|
+
};
|
171
|
+
|
172
|
+
// ShineoutCheckboxGroup 有 data 时(多选的)
|
173
|
+
if (itemType === 'object') {
|
174
|
+
fieldSchemaInfo.items.oneOf = componentElement.props.data.map(function (item) {
|
175
|
+
return {
|
176
|
+
const: item,
|
177
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
178
|
+
};
|
179
|
+
});
|
180
|
+
} else {
|
181
|
+
fieldSchemaInfo.items.enum = componentElement.props.data.map(function (item) {
|
182
|
+
return (item === null || item === void 0 ? void 0 : item[format]) || item;
|
183
|
+
});
|
184
|
+
}
|
185
|
+
break;
|
186
|
+
}
|
161
187
|
case 'ShineoutRadio':
|
162
188
|
case 'ShineoutRadioGroup':
|
163
|
-
|
164
|
-
|
189
|
+
{
|
190
|
+
if (typeof componentElement.props.keygen !== 'boolean') {
|
191
|
+
if (typeof format === 'string') {
|
192
|
+
var _data$3;
|
193
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]) === 'object' ? _typeof(data === null || data === void 0 || (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : _data$3[format]) : _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
194
|
+
} else if (typeof format === 'function') {
|
195
|
+
itemType = _typeof(format(data === null || data === void 0 ? void 0 : data[0]));
|
196
|
+
} else {
|
197
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
198
|
+
}
|
199
|
+
} else {
|
200
|
+
itemType = _typeof(data === null || data === void 0 ? void 0 : data[0]);
|
201
|
+
}
|
202
|
+
fieldSchemaInfo.type = itemType;
|
203
|
+
|
204
|
+
// ShineoutRadioGroup 有 data 时(单选的)
|
205
|
+
if (itemType === 'object') {
|
206
|
+
fieldSchemaInfo.oneOf = componentElement.props.data.map(function (item) {
|
207
|
+
return {
|
208
|
+
const: item,
|
209
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || JSON.stringify(item)
|
210
|
+
};
|
211
|
+
});
|
212
|
+
} else {
|
213
|
+
fieldSchemaInfo.enum = componentElement.props.data.map(function (item) {
|
214
|
+
return (item === null || item === void 0 ? void 0 : item[format]) || item;
|
215
|
+
});
|
216
|
+
}
|
217
|
+
break;
|
218
|
+
}
|
165
219
|
case 'ShineoutSwitch':
|
166
220
|
fieldSchemaInfo.type = 'boolean';
|
167
221
|
break;
|