@wibetter/json-editor 5.1.3 → 5.1.5
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/lib/index.css +5 -2
- package/lib/index.js +21 -3
- package/package.json +1 -1
- package/sdk/index.css +5 -2
- package/sdk/index.js +21 -3
package/lib/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.5
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 10 2025
|
|
5
|
+
* build time: Fri Jan 10 2025 18:21:54 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
@@ -1176,6 +1176,9 @@
|
|
|
1176
1176
|
.select-box .ant-select-single {
|
|
1177
1177
|
min-width: 150px;
|
|
1178
1178
|
}
|
|
1179
|
+
.select-box .ant-select-selection-item-content {
|
|
1180
|
+
max-width: 100px;
|
|
1181
|
+
}
|
|
1179
1182
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
1180
1183
|
!*** css ../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./src/renderers/CascaderSchema/index.scss ***!
|
|
1181
1184
|
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.5
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 10 2025
|
|
5
|
+
* build time: Fri Jan 10 2025 18:21:54 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -5894,7 +5894,12 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
5894
5894
|
var valueArray = [];
|
|
5895
5895
|
value.forEach(function (valItem) {
|
|
5896
5896
|
var _this$optionValue$val;
|
|
5897
|
-
|
|
5897
|
+
var valueStr = valItem;
|
|
5898
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isObject)(valueStr)) {
|
|
5899
|
+
valueStr = JSON.stringify(valItem);
|
|
5900
|
+
valueStr.replaceAll(' ', '');
|
|
5901
|
+
}
|
|
5902
|
+
valueArray.push((_this$optionValue$val = _this.optionValue[valueStr]) != null ? _this$optionValue$val : valItem);
|
|
5898
5903
|
});
|
|
5899
5904
|
curValue = valueArray;
|
|
5900
5905
|
} else {
|
|
@@ -5941,6 +5946,17 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
5941
5946
|
var optionsFormat = (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.formatOptions)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(options));
|
|
5942
5947
|
options = optionsFormat.options;
|
|
5943
5948
|
this.optionValue = optionsFormat.optionValue;
|
|
5949
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isArray)(curJsonData)) {
|
|
5950
|
+
var valueArray = [];
|
|
5951
|
+
curJsonData.forEach(function (valItem) {
|
|
5952
|
+
var valueStr = valItem;
|
|
5953
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isObject)(valueStr)) {
|
|
5954
|
+
valueStr = JSON.stringify(valItem);
|
|
5955
|
+
}
|
|
5956
|
+
valueArray.push(valueStr);
|
|
5957
|
+
});
|
|
5958
|
+
curJsonData = valueArray;
|
|
5959
|
+
}
|
|
5944
5960
|
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.style)) : {};
|
|
5945
5961
|
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
5946
5962
|
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
@@ -8100,6 +8116,7 @@ function formatOptions1(options) {
|
|
|
8100
8116
|
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option)) {
|
|
8101
8117
|
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option.value)) {
|
|
8102
8118
|
var valueStr = JSON.stringify(option.value);
|
|
8119
|
+
valueStr.replaceAll(' ', '');
|
|
8103
8120
|
curOptions.push({
|
|
8104
8121
|
label: option.label || option.name,
|
|
8105
8122
|
value: valueStr
|
|
@@ -8114,6 +8131,7 @@ function formatOptions1(options) {
|
|
|
8114
8131
|
var curOption = JSON.parse(option);
|
|
8115
8132
|
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(curOption.value)) {
|
|
8116
8133
|
var _valueStr = JSON.stringify(curOption.value);
|
|
8134
|
+
_valueStr.replaceAll(' ', '');
|
|
8117
8135
|
curOptions.push({
|
|
8118
8136
|
label: curOption.label || curOption.name,
|
|
8119
8137
|
value: _valueStr
|
package/package.json
CHANGED
package/sdk/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.5
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 10 2025
|
|
5
|
+
* build time: Fri Jan 10 2025 18:21:39 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
@@ -1188,6 +1188,9 @@
|
|
|
1188
1188
|
.select-box .ant-select-single {
|
|
1189
1189
|
min-width: 150px;
|
|
1190
1190
|
}
|
|
1191
|
+
.select-box .ant-select-selection-item-content {
|
|
1192
|
+
max-width: 100px;
|
|
1193
|
+
}
|
|
1191
1194
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
1192
1195
|
!*** css ../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./src/renderers/CascaderSchema/index.scss ***!
|
|
1193
1196
|
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
package/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.5
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 10 2025
|
|
5
|
+
* build time: Fri Jan 10 2025 18:21:39 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -72238,7 +72238,12 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
72238
72238
|
var valueArray = [];
|
|
72239
72239
|
value.forEach(function (valItem) {
|
|
72240
72240
|
var _this$optionValue$val;
|
|
72241
|
-
|
|
72241
|
+
var valueStr = valItem;
|
|
72242
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isObject)(valueStr)) {
|
|
72243
|
+
valueStr = JSON.stringify(valItem);
|
|
72244
|
+
valueStr.replaceAll(' ', '');
|
|
72245
|
+
}
|
|
72246
|
+
valueArray.push((_this$optionValue$val = _this.optionValue[valueStr]) != null ? _this$optionValue$val : valItem);
|
|
72242
72247
|
});
|
|
72243
72248
|
curValue = valueArray;
|
|
72244
72249
|
} else {
|
|
@@ -72285,6 +72290,17 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
72285
72290
|
var optionsFormat = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.formatOptions)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(options));
|
|
72286
72291
|
options = optionsFormat.options;
|
|
72287
72292
|
this.optionValue = optionsFormat.optionValue;
|
|
72293
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isArray)(curJsonData)) {
|
|
72294
|
+
var valueArray = [];
|
|
72295
|
+
curJsonData.forEach(function (valItem) {
|
|
72296
|
+
var valueStr = valItem;
|
|
72297
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isObject)(valueStr)) {
|
|
72298
|
+
valueStr = JSON.stringify(valItem);
|
|
72299
|
+
}
|
|
72300
|
+
valueArray.push(valueStr);
|
|
72301
|
+
});
|
|
72302
|
+
curJsonData = valueArray;
|
|
72303
|
+
}
|
|
72288
72304
|
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
|
|
72289
72305
|
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
72290
72306
|
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
@@ -74396,6 +74412,7 @@ function formatOptions1(options) {
|
|
|
74396
74412
|
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option)) {
|
|
74397
74413
|
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option.value)) {
|
|
74398
74414
|
var valueStr = JSON.stringify(option.value);
|
|
74415
|
+
valueStr.replaceAll(' ', '');
|
|
74399
74416
|
curOptions.push({
|
|
74400
74417
|
label: option.label || option.name,
|
|
74401
74418
|
value: valueStr
|
|
@@ -74410,6 +74427,7 @@ function formatOptions1(options) {
|
|
|
74410
74427
|
var curOption = JSON.parse(option);
|
|
74411
74428
|
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(curOption.value)) {
|
|
74412
74429
|
var _valueStr = JSON.stringify(curOption.value);
|
|
74430
|
+
_valueStr.replaceAll(' ', '');
|
|
74413
74431
|
curOptions.push({
|
|
74414
74432
|
label: curOption.label || curOption.name,
|
|
74415
74433
|
value: _valueStr
|