@wibetter/json-editor 5.1.23 → 5.1.25
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 -5
- package/lib/index.js +196 -171
- package/package.json +1 -1
- package/sdk/index.css +5 -5
- package/sdk/index.js +193 -168
package/lib/index.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.25
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 24 2025
|
|
5
|
+
* build time: Fri Jan 24 2025 18:27:16 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
!*** 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/
|
|
10
|
-
|
|
8
|
+
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
9
|
+
!*** 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/components/JsonView/index.scss ***!
|
|
10
|
+
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
11
11
|
@charset "UTF-8";
|
|
12
12
|
/* 公共的自定义函数 */
|
|
13
13
|
/* 头部细线 */
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.25
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 24 2025
|
|
5
|
+
* build time: Fri Jan 24 2025 18:27:16 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -119,7 +119,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
119
119
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ "antd");
|
|
120
120
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(antd__WEBPACK_IMPORTED_MODULE_4__);
|
|
121
121
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
122
|
-
/* harmony import */ var $
|
|
122
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
123
123
|
/* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
|
|
124
124
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wibetter/json-utils */ "@wibetter/json-utils");
|
|
125
125
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__);
|
|
@@ -262,12 +262,15 @@ var JSONDataEditor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
262
262
|
var _this2 = this;
|
|
263
263
|
var _this$props = this.props,
|
|
264
264
|
schemaStore = _this$props.schemaStore,
|
|
265
|
-
jsonStore = _this$props.jsonStore
|
|
265
|
+
jsonStore = _this$props.jsonStore,
|
|
266
|
+
jsonViewReadOnly = _this$props.jsonViewReadOnly;
|
|
266
267
|
var _ref5 = schemaStore || {},
|
|
267
268
|
jsonSchema = _ref5.jsonSchema,
|
|
268
269
|
lastUpdateTime = _ref5.lastUpdateTime;
|
|
269
270
|
var _ref6 = jsonStore || {},
|
|
270
|
-
|
|
271
|
+
JSONEditorObj = _ref6.JSONEditorObj,
|
|
272
|
+
jsonLastUpdateTime = _ref6.lastUpdateTime,
|
|
273
|
+
jsonChange = _ref6.jsonChange;
|
|
271
274
|
var _this$state = this.state,
|
|
272
275
|
jsonView = _this$state.jsonView,
|
|
273
276
|
viewStyle = _this$state.viewStyle;
|
|
@@ -358,10 +361,10 @@ var JSONDataEditor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
358
361
|
targetJsonSchema: jsonSchema,
|
|
359
362
|
schemaStore: schemaStore,
|
|
360
363
|
jsonStore: jsonStore
|
|
361
|
-
}))), !isEmpty && jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
}))), !isEmpty && jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
365
|
+
jsonData: JSONEditorObj,
|
|
366
|
+
readOnly: jsonViewReadOnly != null ? jsonViewReadOnly : true,
|
|
367
|
+
onChange: jsonChange
|
|
365
368
|
}));
|
|
366
369
|
};
|
|
367
370
|
return JSONDataEditor;
|
|
@@ -370,7 +373,8 @@ JSONDataEditor.propTypes = {
|
|
|
370
373
|
viewStyle: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().any),
|
|
371
374
|
wideScreen: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().any),
|
|
372
375
|
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),
|
|
373
|
-
jsonView: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().
|
|
376
|
+
jsonView: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),
|
|
377
|
+
jsonViewReadOnly: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),
|
|
374
378
|
schemaData: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object),
|
|
375
379
|
jsonData: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object),
|
|
376
380
|
dynamicDataList: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().any),
|
|
@@ -385,6 +389,139 @@ JSONDataEditor.propTypes = {
|
|
|
385
389
|
|
|
386
390
|
/***/ }),
|
|
387
391
|
|
|
392
|
+
/***/ "./src/components/JsonView/index.js":
|
|
393
|
+
/*!******************************************!*\
|
|
394
|
+
!*** ./src/components/JsonView/index.js ***!
|
|
395
|
+
\******************************************/
|
|
396
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
397
|
+
|
|
398
|
+
"use strict";
|
|
399
|
+
__webpack_require__.r(__webpack_exports__);
|
|
400
|
+
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "@babel/runtime/helpers/inheritsLoose");
|
|
401
|
+
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);
|
|
402
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
403
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
404
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "prop-types");
|
|
405
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
406
|
+
/* harmony import */ var react_ace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-ace */ "react-ace");
|
|
407
|
+
/* harmony import */ var react_ace__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_ace__WEBPACK_IMPORTED_MODULE_3__);
|
|
408
|
+
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ace-builds/src-noconflict/mode-json */ "ace-builds/src-noconflict/mode-json");
|
|
409
|
+
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_4__);
|
|
410
|
+
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ace-builds/src-noconflict/theme-solarized_light */ "ace-builds/src-noconflict/theme-solarized_light");
|
|
411
|
+
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_5__);
|
|
412
|
+
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wibetter/json-utils */ "@wibetter/json-utils");
|
|
413
|
+
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__);
|
|
414
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./index.scss */ "./src/components/JsonView/index.scss");
|
|
415
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_index_scss__WEBPACK_IMPORTED_MODULE_7__);
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
// ace-builds
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
var JsonView = /*#__PURE__*/function (_React$PureComponent) {
|
|
425
|
+
function JsonView(props) {
|
|
426
|
+
var _this;
|
|
427
|
+
_this = _React$PureComponent.call(this, props) || this;
|
|
428
|
+
_this.handleValueChange = function (newJsonData) {
|
|
429
|
+
if (_this.props.onChange && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.isFunction)(_this.props.onChange)) {
|
|
430
|
+
_this.props.onChange(newJsonData);
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
_this.state = {
|
|
434
|
+
isShowWarn: false,
|
|
435
|
+
// 用于判断是否显示错误信息
|
|
436
|
+
warnText: '',
|
|
437
|
+
// 错误内容
|
|
438
|
+
curJSONDataTemp: undefined // 用于记录当前不合规范的json数据
|
|
439
|
+
};
|
|
440
|
+
_this.handleValueChange = _this.handleValueChange.bind(_this);
|
|
441
|
+
return _this;
|
|
442
|
+
}
|
|
443
|
+
_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(JsonView, _React$PureComponent);
|
|
444
|
+
var _proto = JsonView.prototype;
|
|
445
|
+
_proto.render = function render() {
|
|
446
|
+
var _this2 = this;
|
|
447
|
+
var _this$props = this.props,
|
|
448
|
+
jsonData = _this$props.jsonData,
|
|
449
|
+
_readOnly = _this$props.readOnly;
|
|
450
|
+
var curJsonData = jsonData || {};
|
|
451
|
+
var _this$state = this.state,
|
|
452
|
+
isShowWarn = _this$state.isShowWarn,
|
|
453
|
+
warnText = _this$state.warnText,
|
|
454
|
+
curJSONDataTemp = _this$state.curJSONDataTemp;
|
|
455
|
+
var readOnly = _readOnly || false;
|
|
456
|
+
|
|
457
|
+
// 格式化JSON数据
|
|
458
|
+
curJsonData = curJsonData !== undefined ? curJsonData : curJsonData || '{}';
|
|
459
|
+
// 判断当前jsonData是否是对象类型
|
|
460
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.isObject)(curJsonData) || (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.isArray)(curJsonData)) {
|
|
461
|
+
curJsonData = JSON.stringify(curJsonData, null, 2);
|
|
462
|
+
}
|
|
463
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
464
|
+
className: "json-view-box"
|
|
465
|
+
}, readOnly && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
466
|
+
className: "readOnly-btn"
|
|
467
|
+
}, "[\u53EA\u8BFB]"), isShowWarn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
468
|
+
className: "warning-box code-area-item"
|
|
469
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
470
|
+
className: "warning-img"
|
|
471
|
+
}, "X"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
472
|
+
className: "warning-text"
|
|
473
|
+
}, warnText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement((react_ace__WEBPACK_IMPORTED_MODULE_3___default()), {
|
|
474
|
+
id: "json_area_ace",
|
|
475
|
+
defaultValue: curJsonData
|
|
476
|
+
// value={hasProperties(curJSONDataTemp) ? curJSONDataTemp : curJsonData}
|
|
477
|
+
,
|
|
478
|
+
className: "json-view-ace",
|
|
479
|
+
mode: "json",
|
|
480
|
+
theme: "solarized_light",
|
|
481
|
+
name: "JSON_CODE_EDIT",
|
|
482
|
+
fontSize: 14,
|
|
483
|
+
showPrintMargin: true,
|
|
484
|
+
showGutter: true,
|
|
485
|
+
highlightActiveLine: true,
|
|
486
|
+
readOnly: readOnly,
|
|
487
|
+
minLines: 5,
|
|
488
|
+
maxLines: 33,
|
|
489
|
+
width: '100%',
|
|
490
|
+
setOptions: {
|
|
491
|
+
useWorker: false,
|
|
492
|
+
showLineNumbers: true,
|
|
493
|
+
tabSize: 2
|
|
494
|
+
},
|
|
495
|
+
onChange: function onChange(newJsonData) {
|
|
496
|
+
try {
|
|
497
|
+
var newJsonDataTemp = JSON.parse(newJsonData); // 进行格式化(主要用于检查是否是合格的json数据)
|
|
498
|
+
// 更新jsonData
|
|
499
|
+
_this2.handleValueChange(newJsonDataTemp);
|
|
500
|
+
_this2.setState({
|
|
501
|
+
isShowWarn: false,
|
|
502
|
+
curJSONDataTemp: undefined // 重置
|
|
503
|
+
});
|
|
504
|
+
} catch (err) {
|
|
505
|
+
// 更新jsonData
|
|
506
|
+
_this2.setState({
|
|
507
|
+
curJSONDataTemp: newJsonData,
|
|
508
|
+
// 记录当前格式不正确的json数据
|
|
509
|
+
warnText: err.message,
|
|
510
|
+
isShowWarn: true
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}));
|
|
515
|
+
};
|
|
516
|
+
return JsonView;
|
|
517
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
518
|
+
JsonView.propTypes = {
|
|
519
|
+
jsonData: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().any)
|
|
520
|
+
};
|
|
521
|
+
/* harmony default export */ __webpack_exports__["default"] = (JsonView);
|
|
522
|
+
|
|
523
|
+
/***/ }),
|
|
524
|
+
|
|
388
525
|
/***/ "./src/components/MappingRender.js":
|
|
389
526
|
/*!*****************************************!*\
|
|
390
527
|
!*** ./src/components/MappingRender.js ***!
|
|
@@ -695,7 +832,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
695
832
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__);
|
|
696
833
|
/* harmony import */ var $utils_webCache__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $utils/webCache */ "./src/utils/webCache.js");
|
|
697
834
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
698
|
-
/* harmony import */ var $
|
|
835
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
699
836
|
/* harmony import */ var $utils_typeof__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! $utils/typeof */ "./src/utils/typeof.js");
|
|
700
837
|
/* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
|
|
701
838
|
/* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
|
|
@@ -1059,7 +1196,7 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
1059
1196
|
schemaStore: schemaStore,
|
|
1060
1197
|
jsonStore: jsonStore
|
|
1061
1198
|
})));
|
|
1062
|
-
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
1199
|
+
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_10__["default"], this.props))));
|
|
1063
1200
|
};
|
|
1064
1201
|
return ArraySchema;
|
|
1065
1202
|
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
@@ -2292,7 +2429,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2292
2429
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_ant_design_icons__WEBPACK_IMPORTED_MODULE_6__);
|
|
2293
2430
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wibetter/json-utils */ "@wibetter/json-utils");
|
|
2294
2431
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__);
|
|
2295
|
-
/* harmony import */ var $
|
|
2432
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
2296
2433
|
/* harmony import */ var $renderers_JsonFormSchema_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $renderers/JsonFormSchema/index */ "./src/renderers/JsonFormSchema/index.js");
|
|
2297
2434
|
/* harmony import */ var $renderers_CodeAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! $renderers/CodeAreaFormSchema/index */ "./src/renderers/CodeAreaFormSchema/index.js");
|
|
2298
2435
|
/* harmony import */ var $renderers_URLFormSchema_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! $renderers/URLFormSchema/index */ "./src/renderers/URLFormSchema/index.js");
|
|
@@ -2486,7 +2623,7 @@ var DataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
2486
2623
|
nodeKey: nodeKey + "-filter",
|
|
2487
2624
|
targetJsonSchema: filterDataObj,
|
|
2488
2625
|
key: nodeKey + "-filter"
|
|
2489
|
-
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
2626
|
+
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_8__["default"], this.props))));
|
|
2490
2627
|
};
|
|
2491
2628
|
return DataSourceSchema;
|
|
2492
2629
|
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
@@ -2690,7 +2827,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2690
2827
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__);
|
|
2691
2828
|
/* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
|
|
2692
2829
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
2693
|
-
/* harmony import */ var $
|
|
2830
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
2694
2831
|
/* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
|
|
2695
2832
|
/* harmony import */ var $utils_webCache__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! $utils/webCache */ "./src/utils/webCache.js");
|
|
2696
2833
|
/* harmony import */ var $assets_img_code_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! $assets/img/code.svg */ "./src/assets/img/code.svg");
|
|
@@ -2891,7 +3028,7 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
2891
3028
|
schemaStore: schemaStore,
|
|
2892
3029
|
jsonStore: jsonStore
|
|
2893
3030
|
});
|
|
2894
|
-
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
3031
|
+
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_10__["default"], this.props))));
|
|
2895
3032
|
};
|
|
2896
3033
|
return ObjectSchema;
|
|
2897
3034
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().PureComponent));
|
|
@@ -3334,7 +3471,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3334
3471
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_ant_design_icons__WEBPACK_IMPORTED_MODULE_6__);
|
|
3335
3472
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wibetter/json-utils */ "@wibetter/json-utils");
|
|
3336
3473
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__);
|
|
3337
|
-
/* harmony import */ var $
|
|
3474
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
3338
3475
|
/* harmony import */ var $renderers_JsonFormSchema_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $renderers/JsonFormSchema/index */ "./src/renderers/JsonFormSchema/index.js");
|
|
3339
3476
|
/* harmony import */ var $renderers_CodeAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! $renderers/CodeAreaFormSchema/index */ "./src/renderers/CodeAreaFormSchema/index.js");
|
|
3340
3477
|
/* harmony import */ var $renderers_InputFormSchema_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! $renderers/InputFormSchema/index */ "./src/renderers/InputFormSchema/index.js");
|
|
@@ -3498,7 +3635,7 @@ var EventSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
3498
3635
|
nodeKey: nodeKey + "-eventData",
|
|
3499
3636
|
targetJsonSchema: eventDataJsonObj,
|
|
3500
3637
|
key: nodeKey + "-eventData"
|
|
3501
|
-
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
3638
|
+
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_8__["default"], this.props))));
|
|
3502
3639
|
};
|
|
3503
3640
|
return EventSchema;
|
|
3504
3641
|
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
@@ -4291,123 +4428,6 @@ JsonFormSchema.propTypes = {
|
|
|
4291
4428
|
|
|
4292
4429
|
/***/ }),
|
|
4293
4430
|
|
|
4294
|
-
/***/ "./src/renderers/JsonView/index.js":
|
|
4295
|
-
/*!*****************************************!*\
|
|
4296
|
-
!*** ./src/renderers/JsonView/index.js ***!
|
|
4297
|
-
\*****************************************/
|
|
4298
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4299
|
-
|
|
4300
|
-
"use strict";
|
|
4301
|
-
__webpack_require__.r(__webpack_exports__);
|
|
4302
|
-
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "@babel/runtime/helpers/inheritsLoose");
|
|
4303
|
-
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);
|
|
4304
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
4305
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
4306
|
-
/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx-react */ "mobx-react");
|
|
4307
|
-
/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(mobx_react__WEBPACK_IMPORTED_MODULE_2__);
|
|
4308
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "prop-types");
|
|
4309
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
4310
|
-
/* harmony import */ var react_ace__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-ace */ "react-ace");
|
|
4311
|
-
/* harmony import */ var react_ace__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_ace__WEBPACK_IMPORTED_MODULE_4__);
|
|
4312
|
-
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ace-builds/src-noconflict/mode-json */ "ace-builds/src-noconflict/mode-json");
|
|
4313
|
-
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_5__);
|
|
4314
|
-
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ace-builds/src-noconflict/theme-solarized_light */ "ace-builds/src-noconflict/theme-solarized_light");
|
|
4315
|
-
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_6__);
|
|
4316
|
-
/* harmony import */ var $utils_typeof__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $utils/typeof */ "./src/utils/typeof.js");
|
|
4317
|
-
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./index.scss */ "./src/renderers/JsonView/index.scss");
|
|
4318
|
-
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_index_scss__WEBPACK_IMPORTED_MODULE_8__);
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
// ace-builds
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
var JsonView = /*#__PURE__*/function (_React$PureComponent) {
|
|
4329
|
-
function JsonView(props) {
|
|
4330
|
-
var _this;
|
|
4331
|
-
_this = _React$PureComponent.call(this, props) || this;
|
|
4332
|
-
// 这边绑定是必要的,这样 `this` 才能在回调函数中使用
|
|
4333
|
-
/** 数值变动事件处理器 */
|
|
4334
|
-
_this.handleValueChange = function (newJsonData) {
|
|
4335
|
-
var _this$props = _this.props,
|
|
4336
|
-
keyRoute = _this$props.keyRoute,
|
|
4337
|
-
jsonStore = _this$props.jsonStore;
|
|
4338
|
-
var _ref = jsonStore || {},
|
|
4339
|
-
updateFormValueData = _ref.updateFormValueData;
|
|
4340
|
-
if (newJsonData) {
|
|
4341
|
-
updateFormValueData(keyRoute, newJsonData); // 更新数值
|
|
4342
|
-
}
|
|
4343
|
-
};
|
|
4344
|
-
_this.handleValueChange = _this.handleValueChange.bind(_this);
|
|
4345
|
-
return _this;
|
|
4346
|
-
}
|
|
4347
|
-
_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(JsonView, _React$PureComponent);
|
|
4348
|
-
var _proto = JsonView.prototype;
|
|
4349
|
-
_proto.render = function render() {
|
|
4350
|
-
var _ref2 = this.props.jsonStore || {},
|
|
4351
|
-
getJSONDataByKeyRoute = _ref2.getJSONDataByKeyRoute;
|
|
4352
|
-
var _this$props2 = this.props,
|
|
4353
|
-
nodeKey = _this$props2.nodeKey,
|
|
4354
|
-
keyRoute = _this$props2.keyRoute,
|
|
4355
|
-
targetJsonSchema = _this$props2.targetJsonSchema;
|
|
4356
|
-
// 从jsonData中获取对应的数值
|
|
4357
|
-
var curJsonData = getJSONDataByKeyRoute(keyRoute);
|
|
4358
|
-
|
|
4359
|
-
// 格式化JSON数据
|
|
4360
|
-
curJsonData = curJsonData !== undefined ? curJsonData : targetJsonSchema.default || '{}';
|
|
4361
|
-
// 判断当前jsonData是否是对象类型
|
|
4362
|
-
if ((0,$utils_typeof__WEBPACK_IMPORTED_MODULE_7__.isObject)(curJsonData) || (0,$utils_typeof__WEBPACK_IMPORTED_MODULE_7__.isArray)(curJsonData)) {
|
|
4363
|
-
curJsonData = JSON.stringify(curJsonData, null, 2);
|
|
4364
|
-
}
|
|
4365
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
4366
|
-
className: "json-view-box",
|
|
4367
|
-
id: nodeKey
|
|
4368
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
4369
|
-
className: "readOnly-btn"
|
|
4370
|
-
}, "[\u53EA\u8BFB]"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement((react_ace__WEBPACK_IMPORTED_MODULE_4___default()), {
|
|
4371
|
-
id: "json_area_ace",
|
|
4372
|
-
value: curJsonData,
|
|
4373
|
-
className: "json-view-ace",
|
|
4374
|
-
mode: "json",
|
|
4375
|
-
theme: "solarized_light",
|
|
4376
|
-
name: "JSON_CODE_EDIT",
|
|
4377
|
-
fontSize: 14,
|
|
4378
|
-
showPrintMargin: true,
|
|
4379
|
-
showGutter: true,
|
|
4380
|
-
highlightActiveLine: true,
|
|
4381
|
-
readOnly: true,
|
|
4382
|
-
minLines: 5,
|
|
4383
|
-
maxLines: 33,
|
|
4384
|
-
width: '100%',
|
|
4385
|
-
setOptions: {
|
|
4386
|
-
useWorker: false,
|
|
4387
|
-
showLineNumbers: true,
|
|
4388
|
-
tabSize: 2
|
|
4389
|
-
}
|
|
4390
|
-
}));
|
|
4391
|
-
};
|
|
4392
|
-
return JsonView;
|
|
4393
|
-
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
4394
|
-
JsonView.propTypes = {
|
|
4395
|
-
parentType: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),
|
|
4396
|
-
jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),
|
|
4397
|
-
indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),
|
|
4398
|
-
keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),
|
|
4399
|
-
nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),
|
|
4400
|
-
targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().any)
|
|
4401
|
-
};
|
|
4402
|
-
/* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_2__.inject)(function (stores) {
|
|
4403
|
-
return {
|
|
4404
|
-
schemaStore: stores.JSONSchemaStore,
|
|
4405
|
-
jsonStore: stores.JSONEditorStore
|
|
4406
|
-
};
|
|
4407
|
-
})((0,mobx_react__WEBPACK_IMPORTED_MODULE_2__.observer)(JsonView)));
|
|
4408
|
-
|
|
4409
|
-
/***/ }),
|
|
4410
|
-
|
|
4411
4431
|
/***/ "./src/renderers/NumberFormSchema/index.js":
|
|
4412
4432
|
/*!*************************************************!*\
|
|
4413
4433
|
!*** ./src/renderers/NumberFormSchema/index.js ***!
|
|
@@ -4625,7 +4645,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4625
4645
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wibetter/json-utils */ "@wibetter/json-utils");
|
|
4626
4646
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__);
|
|
4627
4647
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
4628
|
-
/* harmony import */ var $
|
|
4648
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
4629
4649
|
/* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
|
|
4630
4650
|
/* harmony import */ var $utils_webCache__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! $utils/webCache */ "./src/utils/webCache.js");
|
|
4631
4651
|
/* harmony import */ var $assets_img_code_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! $assets/img/code.svg */ "./src/assets/img/code.svg");
|
|
@@ -4790,7 +4810,7 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
4790
4810
|
schemaStore: schemaStore,
|
|
4791
4811
|
jsonStore: jsonStore
|
|
4792
4812
|
});
|
|
4793
|
-
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
4813
|
+
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_9__["default"], this.props))));
|
|
4794
4814
|
};
|
|
4795
4815
|
return ObjectSchema;
|
|
4796
4816
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().PureComponent));
|
|
@@ -7332,7 +7352,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7332
7352
|
|
|
7333
7353
|
|
|
7334
7354
|
|
|
7335
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
7355
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
7336
7356
|
|
|
7337
7357
|
|
|
7338
7358
|
|
|
@@ -7342,7 +7362,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
|
|
|
7342
7362
|
/**
|
|
7343
7363
|
* 用于管控JSON数据内容的全局store
|
|
7344
7364
|
* */
|
|
7345
|
-
var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec2 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec3 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec4 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec5 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec6 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec7 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec8 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec9 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec10 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec11 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec12 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec13 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _class = /*#__PURE__*/function () {
|
|
7365
|
+
var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec2 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec3 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec4 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec5 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec6 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec7 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec8 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec9 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec10 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec11 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec12 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec13 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec14 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _class = /*#__PURE__*/function () {
|
|
7346
7366
|
// 构造函数
|
|
7347
7367
|
function JSONEditorStore(rootJSONStore) {
|
|
7348
7368
|
/**
|
|
@@ -7459,6 +7479,11 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
|
|
|
7459
7479
|
/** 触发onChange */
|
|
7460
7480
|
_proto.jsonDataChange = function jsonDataChange() {
|
|
7461
7481
|
this.onChange(this.JSONEditorObj);
|
|
7482
|
+
};
|
|
7483
|
+
_proto.jsonChange = function jsonChange(newJsonData) {
|
|
7484
|
+
console.log('newJsonData:', newJsonData);
|
|
7485
|
+
this.jsonData = newJsonData;
|
|
7486
|
+
this.jsonDataChange();
|
|
7462
7487
|
}
|
|
7463
7488
|
|
|
7464
7489
|
/** 根据key索引路径获取对应的json数据[非联动式数据获取] */;
|
|
@@ -7697,7 +7722,7 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
|
|
|
7697
7722
|
initializer: function initializer() {
|
|
7698
7723
|
return function () {};
|
|
7699
7724
|
}
|
|
7700
|
-
}), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "updateLastTime", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "updateLastTime"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "triggerChangeAction", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "triggerChangeAction"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "initJSONData", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, "initJSONData"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "initOnChange", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, "initOnChange"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "setDynamicDataList", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, "setDynamicDataList"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "setOptions", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, "setOptions"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "JSONEditorObj", [mobx__WEBPACK_IMPORTED_MODULE_4__.computed], Object.getOwnPropertyDescriptor(_class.prototype, "JSONEditorObj"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "jsonDataChange", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, "jsonDataChange"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "
|
|
7725
|
+
}), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "updateLastTime", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "updateLastTime"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "triggerChangeAction", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "triggerChangeAction"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "initJSONData", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, "initJSONData"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "initOnChange", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, "initOnChange"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "setDynamicDataList", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, "setDynamicDataList"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "setOptions", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, "setOptions"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "JSONEditorObj", [mobx__WEBPACK_IMPORTED_MODULE_4__.computed], Object.getOwnPropertyDescriptor(_class.prototype, "JSONEditorObj"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "jsonDataChange", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, "jsonDataChange"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "jsonChange", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, "jsonChange"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "getJSONDataByKeyRoute", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, "getJSONDataByKeyRoute"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "getInitJsonDataByKeyRoute", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, "getInitJsonDataByKeyRoute"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "updateFormValueData", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, "updateFormValueData"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "deleteArrayIndex", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, "deleteArrayIndex"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "addArrayItem", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, "addArrayItem"), _class.prototype), _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2___default()(_class.prototype, "sortArrayItem", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, "sortArrayItem"), _class.prototype), _class);
|
|
7701
7726
|
|
|
7702
7727
|
|
|
7703
7728
|
/***/ }),
|
|
@@ -8449,6 +8474,16 @@ function deleteJSONEditorCache(valueKey, cacheMark) {
|
|
|
8449
8474
|
|
|
8450
8475
|
/***/ }),
|
|
8451
8476
|
|
|
8477
|
+
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/components/JsonView/index.scss":
|
|
8478
|
+
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
8479
|
+
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/components/JsonView/index.scss ***!
|
|
8480
|
+
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
8481
|
+
/***/ (function() {
|
|
8482
|
+
|
|
8483
|
+
// extracted by mini-css-extract-plugin
|
|
8484
|
+
|
|
8485
|
+
/***/ }),
|
|
8486
|
+
|
|
8452
8487
|
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/main.scss":
|
|
8453
8488
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
8454
8489
|
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/main.scss ***!
|
|
@@ -8519,16 +8554,6 @@ function deleteJSONEditorCache(valueKey, cacheMark) {
|
|
|
8519
8554
|
|
|
8520
8555
|
/***/ }),
|
|
8521
8556
|
|
|
8522
|
-
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/JsonView/index.scss":
|
|
8523
|
-
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
8524
|
-
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/JsonView/index.scss ***!
|
|
8525
|
-
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
8526
|
-
/***/ (function() {
|
|
8527
|
-
|
|
8528
|
-
// extracted by mini-css-extract-plugin
|
|
8529
|
-
|
|
8530
|
-
/***/ }),
|
|
8531
|
-
|
|
8532
8557
|
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/NumberFormSchema/index.scss":
|
|
8533
8558
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
8534
8559
|
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/NumberFormSchema/index.scss ***!
|
|
@@ -8620,6 +8645,27 @@ if(false) {}
|
|
|
8620
8645
|
|
|
8621
8646
|
/***/ }),
|
|
8622
8647
|
|
|
8648
|
+
/***/ "./src/components/JsonView/index.scss":
|
|
8649
|
+
/*!********************************************!*\
|
|
8650
|
+
!*** ./src/components/JsonView/index.scss ***!
|
|
8651
|
+
\********************************************/
|
|
8652
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8653
|
+
|
|
8654
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
8655
|
+
|
|
8656
|
+
// load the styles
|
|
8657
|
+
var content = __webpack_require__(/*! !!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../../../../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]!./index.scss */ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/components/JsonView/index.scss");
|
|
8658
|
+
if(content.__esModule) content = content.default;
|
|
8659
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
8660
|
+
if(content.locals) module.exports = content.locals;
|
|
8661
|
+
// add the styles to the DOM
|
|
8662
|
+
var add = (__webpack_require__(/*! !../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "../../node_modules/vue-style-loader/lib/addStylesClient.js")["default"])
|
|
8663
|
+
var update = add("5c4a563c", content, false, {"sourceMap":false});
|
|
8664
|
+
// Hot Module Replacement
|
|
8665
|
+
if(false) {}
|
|
8666
|
+
|
|
8667
|
+
/***/ }),
|
|
8668
|
+
|
|
8623
8669
|
/***/ "./src/main.scss":
|
|
8624
8670
|
/*!***********************!*\
|
|
8625
8671
|
!*** ./src/main.scss ***!
|
|
@@ -8767,27 +8813,6 @@ if(false) {}
|
|
|
8767
8813
|
|
|
8768
8814
|
/***/ }),
|
|
8769
8815
|
|
|
8770
|
-
/***/ "./src/renderers/JsonView/index.scss":
|
|
8771
|
-
/*!*******************************************!*\
|
|
8772
|
-
!*** ./src/renderers/JsonView/index.scss ***!
|
|
8773
|
-
\*******************************************/
|
|
8774
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8775
|
-
|
|
8776
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
8777
|
-
|
|
8778
|
-
// load the styles
|
|
8779
|
-
var content = __webpack_require__(/*! !!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../../../../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]!./index.scss */ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/JsonView/index.scss");
|
|
8780
|
-
if(content.__esModule) content = content.default;
|
|
8781
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
8782
|
-
if(content.locals) module.exports = content.locals;
|
|
8783
|
-
// add the styles to the DOM
|
|
8784
|
-
var add = (__webpack_require__(/*! !../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "../../node_modules/vue-style-loader/lib/addStylesClient.js")["default"])
|
|
8785
|
-
var update = add("4ad618f0", content, false, {"sourceMap":false});
|
|
8786
|
-
// Hot Module Replacement
|
|
8787
|
-
if(false) {}
|
|
8788
|
-
|
|
8789
|
-
/***/ }),
|
|
8790
|
-
|
|
8791
8816
|
/***/ "./src/renderers/NumberFormSchema/index.scss":
|
|
8792
8817
|
/*!***************************************************!*\
|
|
8793
8818
|
!*** ./src/renderers/NumberFormSchema/index.scss ***!
|
package/package.json
CHANGED
package/sdk/index.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.25
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 24 2025
|
|
5
|
+
* build time: Fri Jan 24 2025 18:27:30 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
!*** 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/
|
|
10
|
-
|
|
8
|
+
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
9
|
+
!*** 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/components/JsonView/index.scss ***!
|
|
10
|
+
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
11
11
|
@charset "UTF-8";
|
|
12
12
|
/* 公共的自定义函数 */
|
|
13
13
|
/* 头部细线 */
|
package/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.25
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time: Fri Jan 24 2025
|
|
5
|
+
* build time: Fri Jan 24 2025 18:27:30 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -66202,7 +66202,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66202
66202
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/collapse/index.js");
|
|
66203
66203
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tabs/index.js");
|
|
66204
66204
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
66205
|
-
/* harmony import */ var $
|
|
66205
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
66206
66206
|
/* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
|
|
66207
66207
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
66208
66208
|
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./index.scss */ "./src/components/JSONDataEditor/index.scss");
|
|
@@ -66344,12 +66344,15 @@ var JSONDataEditor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
66344
66344
|
var _this2 = this;
|
|
66345
66345
|
var _this$props = this.props,
|
|
66346
66346
|
schemaStore = _this$props.schemaStore,
|
|
66347
|
-
jsonStore = _this$props.jsonStore
|
|
66347
|
+
jsonStore = _this$props.jsonStore,
|
|
66348
|
+
jsonViewReadOnly = _this$props.jsonViewReadOnly;
|
|
66348
66349
|
var _ref5 = schemaStore || {},
|
|
66349
66350
|
jsonSchema = _ref5.jsonSchema,
|
|
66350
66351
|
lastUpdateTime = _ref5.lastUpdateTime;
|
|
66351
66352
|
var _ref6 = jsonStore || {},
|
|
66352
|
-
|
|
66353
|
+
JSONEditorObj = _ref6.JSONEditorObj,
|
|
66354
|
+
jsonLastUpdateTime = _ref6.lastUpdateTime,
|
|
66355
|
+
jsonChange = _ref6.jsonChange;
|
|
66353
66356
|
var _this$state = this.state,
|
|
66354
66357
|
jsonView = _this$state.jsonView,
|
|
66355
66358
|
viewStyle = _this$state.viewStyle;
|
|
@@ -66440,10 +66443,10 @@ var JSONDataEditor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
66440
66443
|
targetJsonSchema: jsonSchema,
|
|
66441
66444
|
schemaStore: schemaStore,
|
|
66442
66445
|
jsonStore: jsonStore
|
|
66443
|
-
}))), !isEmpty && jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
66444
|
-
|
|
66445
|
-
|
|
66446
|
-
|
|
66446
|
+
}))), !isEmpty && jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
66447
|
+
jsonData: JSONEditorObj,
|
|
66448
|
+
readOnly: jsonViewReadOnly != null ? jsonViewReadOnly : true,
|
|
66449
|
+
onChange: jsonChange
|
|
66447
66450
|
}));
|
|
66448
66451
|
};
|
|
66449
66452
|
return JSONDataEditor;
|
|
@@ -66452,7 +66455,8 @@ JSONDataEditor.propTypes = {
|
|
|
66452
66455
|
viewStyle: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any),
|
|
66453
66456
|
wideScreen: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any),
|
|
66454
66457
|
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
66455
|
-
jsonView: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().
|
|
66458
|
+
jsonView: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
66459
|
+
jsonViewReadOnly: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
66456
66460
|
schemaData: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
66457
66461
|
jsonData: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
66458
66462
|
dynamicDataList: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any),
|
|
@@ -66467,6 +66471,136 @@ JSONDataEditor.propTypes = {
|
|
|
66467
66471
|
|
|
66468
66472
|
/***/ }),
|
|
66469
66473
|
|
|
66474
|
+
/***/ "./src/components/JsonView/index.js":
|
|
66475
|
+
/*!******************************************!*\
|
|
66476
|
+
!*** ./src/components/JsonView/index.js ***!
|
|
66477
|
+
\******************************************/
|
|
66478
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
66479
|
+
|
|
66480
|
+
"use strict";
|
|
66481
|
+
__webpack_require__.r(__webpack_exports__);
|
|
66482
|
+
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
|
|
66483
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
66484
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
66485
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
|
|
66486
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
66487
|
+
/* harmony import */ var react_ace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-ace */ "../../node_modules/react-ace/lib/index.js");
|
|
66488
|
+
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ace-builds/src-noconflict/mode-json */ "../../node_modules/ace-builds/src-noconflict/mode-json.js");
|
|
66489
|
+
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_3__);
|
|
66490
|
+
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ace-builds/src-noconflict/theme-solarized_light */ "../../node_modules/ace-builds/src-noconflict/theme-solarized_light.js");
|
|
66491
|
+
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_4__);
|
|
66492
|
+
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
66493
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./index.scss */ "./src/components/JsonView/index.scss");
|
|
66494
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_index_scss__WEBPACK_IMPORTED_MODULE_6__);
|
|
66495
|
+
|
|
66496
|
+
|
|
66497
|
+
|
|
66498
|
+
|
|
66499
|
+
|
|
66500
|
+
// ace-builds
|
|
66501
|
+
|
|
66502
|
+
|
|
66503
|
+
var JsonView = /*#__PURE__*/function (_React$PureComponent) {
|
|
66504
|
+
function JsonView(props) {
|
|
66505
|
+
var _this;
|
|
66506
|
+
_this = _React$PureComponent.call(this, props) || this;
|
|
66507
|
+
_this.handleValueChange = function (newJsonData) {
|
|
66508
|
+
if (_this.props.onChange && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isFunction)(_this.props.onChange)) {
|
|
66509
|
+
_this.props.onChange(newJsonData);
|
|
66510
|
+
}
|
|
66511
|
+
};
|
|
66512
|
+
_this.state = {
|
|
66513
|
+
isShowWarn: false,
|
|
66514
|
+
// 用于判断是否显示错误信息
|
|
66515
|
+
warnText: '',
|
|
66516
|
+
// 错误内容
|
|
66517
|
+
curJSONDataTemp: undefined // 用于记录当前不合规范的json数据
|
|
66518
|
+
};
|
|
66519
|
+
_this.handleValueChange = _this.handleValueChange.bind(_this);
|
|
66520
|
+
return _this;
|
|
66521
|
+
}
|
|
66522
|
+
(0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(JsonView, _React$PureComponent);
|
|
66523
|
+
var _proto = JsonView.prototype;
|
|
66524
|
+
_proto.render = function render() {
|
|
66525
|
+
var _this2 = this;
|
|
66526
|
+
var _this$props = this.props,
|
|
66527
|
+
jsonData = _this$props.jsonData,
|
|
66528
|
+
_readOnly = _this$props.readOnly;
|
|
66529
|
+
var curJsonData = jsonData || {};
|
|
66530
|
+
var _this$state = this.state,
|
|
66531
|
+
isShowWarn = _this$state.isShowWarn,
|
|
66532
|
+
warnText = _this$state.warnText,
|
|
66533
|
+
curJSONDataTemp = _this$state.curJSONDataTemp;
|
|
66534
|
+
var readOnly = _readOnly || false;
|
|
66535
|
+
|
|
66536
|
+
// 格式化JSON数据
|
|
66537
|
+
curJsonData = curJsonData !== undefined ? curJsonData : curJsonData || '{}';
|
|
66538
|
+
// 判断当前jsonData是否是对象类型
|
|
66539
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isObject)(curJsonData) || (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isArray)(curJsonData)) {
|
|
66540
|
+
curJsonData = JSON.stringify(curJsonData, null, 2);
|
|
66541
|
+
}
|
|
66542
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
66543
|
+
className: "json-view-box"
|
|
66544
|
+
}, readOnly && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
66545
|
+
className: "readOnly-btn"
|
|
66546
|
+
}, "[\u53EA\u8BFB]"), isShowWarn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
66547
|
+
className: "warning-box code-area-item"
|
|
66548
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
66549
|
+
className: "warning-img"
|
|
66550
|
+
}, "X"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
66551
|
+
className: "warning-text"
|
|
66552
|
+
}, warnText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_ace__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
66553
|
+
id: "json_area_ace",
|
|
66554
|
+
defaultValue: curJsonData
|
|
66555
|
+
// value={hasProperties(curJSONDataTemp) ? curJSONDataTemp : curJsonData}
|
|
66556
|
+
,
|
|
66557
|
+
className: "json-view-ace",
|
|
66558
|
+
mode: "json",
|
|
66559
|
+
theme: "solarized_light",
|
|
66560
|
+
name: "JSON_CODE_EDIT",
|
|
66561
|
+
fontSize: 14,
|
|
66562
|
+
showPrintMargin: true,
|
|
66563
|
+
showGutter: true,
|
|
66564
|
+
highlightActiveLine: true,
|
|
66565
|
+
readOnly: readOnly,
|
|
66566
|
+
minLines: 5,
|
|
66567
|
+
maxLines: 33,
|
|
66568
|
+
width: '100%',
|
|
66569
|
+
setOptions: {
|
|
66570
|
+
useWorker: false,
|
|
66571
|
+
showLineNumbers: true,
|
|
66572
|
+
tabSize: 2
|
|
66573
|
+
},
|
|
66574
|
+
onChange: function onChange(newJsonData) {
|
|
66575
|
+
try {
|
|
66576
|
+
var newJsonDataTemp = JSON.parse(newJsonData); // 进行格式化(主要用于检查是否是合格的json数据)
|
|
66577
|
+
// 更新jsonData
|
|
66578
|
+
_this2.handleValueChange(newJsonDataTemp);
|
|
66579
|
+
_this2.setState({
|
|
66580
|
+
isShowWarn: false,
|
|
66581
|
+
curJSONDataTemp: undefined // 重置
|
|
66582
|
+
});
|
|
66583
|
+
} catch (err) {
|
|
66584
|
+
// 更新jsonData
|
|
66585
|
+
_this2.setState({
|
|
66586
|
+
curJSONDataTemp: newJsonData,
|
|
66587
|
+
// 记录当前格式不正确的json数据
|
|
66588
|
+
warnText: err.message,
|
|
66589
|
+
isShowWarn: true
|
|
66590
|
+
});
|
|
66591
|
+
}
|
|
66592
|
+
}
|
|
66593
|
+
}));
|
|
66594
|
+
};
|
|
66595
|
+
return JsonView;
|
|
66596
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
66597
|
+
JsonView.propTypes = {
|
|
66598
|
+
jsonData: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().any)
|
|
66599
|
+
};
|
|
66600
|
+
/* harmony default export */ __webpack_exports__["default"] = (JsonView);
|
|
66601
|
+
|
|
66602
|
+
/***/ }),
|
|
66603
|
+
|
|
66470
66604
|
/***/ "./src/components/MappingRender.js":
|
|
66471
66605
|
/*!*****************************************!*\
|
|
66472
66606
|
!*** ./src/components/MappingRender.js ***!
|
|
@@ -66776,7 +66910,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66776
66910
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
66777
66911
|
/* harmony import */ var $utils_webCache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $utils/webCache */ "./src/utils/webCache.js");
|
|
66778
66912
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
66779
|
-
/* harmony import */ var $
|
|
66913
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
66780
66914
|
/* harmony import */ var $utils_typeof__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $utils/typeof */ "./src/utils/typeof.js");
|
|
66781
66915
|
/* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
|
|
66782
66916
|
/* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
|
|
@@ -67140,7 +67274,7 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
67140
67274
|
schemaStore: schemaStore,
|
|
67141
67275
|
jsonStore: jsonStore
|
|
67142
67276
|
})));
|
|
67143
|
-
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
67277
|
+
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_6__["default"], this.props))));
|
|
67144
67278
|
};
|
|
67145
67279
|
return ArraySchema;
|
|
67146
67280
|
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
@@ -68339,7 +68473,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68339
68473
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
|
|
68340
68474
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/FilterOutlined.js");
|
|
68341
68475
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
68342
|
-
/* harmony import */ var $
|
|
68476
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
68343
68477
|
/* harmony import */ var $renderers_JsonFormSchema_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $renderers/JsonFormSchema/index */ "./src/renderers/JsonFormSchema/index.js");
|
|
68344
68478
|
/* harmony import */ var $renderers_CodeAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $renderers/CodeAreaFormSchema/index */ "./src/renderers/CodeAreaFormSchema/index.js");
|
|
68345
68479
|
/* harmony import */ var $renderers_URLFormSchema_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $renderers/URLFormSchema/index */ "./src/renderers/URLFormSchema/index.js");
|
|
@@ -68533,7 +68667,7 @@ var DataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
68533
68667
|
nodeKey: nodeKey + "-filter",
|
|
68534
68668
|
targetJsonSchema: filterDataObj,
|
|
68535
68669
|
key: nodeKey + "-filter"
|
|
68536
|
-
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
68670
|
+
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_4__["default"], this.props))));
|
|
68537
68671
|
};
|
|
68538
68672
|
return DataSourceSchema;
|
|
68539
68673
|
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
@@ -68728,7 +68862,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68728
68862
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
68729
68863
|
/* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
|
|
68730
68864
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
68731
|
-
/* harmony import */ var $
|
|
68865
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
68732
68866
|
/* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
|
|
68733
68867
|
/* harmony import */ var $utils_webCache__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $utils/webCache */ "./src/utils/webCache.js");
|
|
68734
68868
|
/* harmony import */ var $assets_img_code_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $assets/img/code.svg */ "./src/assets/img/code.svg");
|
|
@@ -68929,7 +69063,7 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
68929
69063
|
schemaStore: schemaStore,
|
|
68930
69064
|
jsonStore: jsonStore
|
|
68931
69065
|
});
|
|
68932
|
-
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
69066
|
+
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_6__["default"], this.props))));
|
|
68933
69067
|
};
|
|
68934
69068
|
return ObjectSchema;
|
|
68935
69069
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().PureComponent));
|
|
@@ -69364,7 +69498,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
69364
69498
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/RightOutlined.js");
|
|
69365
69499
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
|
|
69366
69500
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
69367
|
-
/* harmony import */ var $
|
|
69501
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
69368
69502
|
/* harmony import */ var $renderers_JsonFormSchema_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $renderers/JsonFormSchema/index */ "./src/renderers/JsonFormSchema/index.js");
|
|
69369
69503
|
/* harmony import */ var $renderers_CodeAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $renderers/CodeAreaFormSchema/index */ "./src/renderers/CodeAreaFormSchema/index.js");
|
|
69370
69504
|
/* harmony import */ var $renderers_InputFormSchema_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $renderers/InputFormSchema/index */ "./src/renderers/InputFormSchema/index.js");
|
|
@@ -69528,7 +69662,7 @@ var EventSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
69528
69662
|
nodeKey: nodeKey + "-eventData",
|
|
69529
69663
|
targetJsonSchema: eventDataJsonObj,
|
|
69530
69664
|
key: nodeKey + "-eventData"
|
|
69531
|
-
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($
|
|
69665
|
+
})), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_4__["default"], this.props))));
|
|
69532
69666
|
};
|
|
69533
69667
|
return EventSchema;
|
|
69534
69668
|
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
@@ -70299,120 +70433,6 @@ JsonFormSchema.propTypes = {
|
|
|
70299
70433
|
|
|
70300
70434
|
/***/ }),
|
|
70301
70435
|
|
|
70302
|
-
/***/ "./src/renderers/JsonView/index.js":
|
|
70303
|
-
/*!*****************************************!*\
|
|
70304
|
-
!*** ./src/renderers/JsonView/index.js ***!
|
|
70305
|
-
\*****************************************/
|
|
70306
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
70307
|
-
|
|
70308
|
-
"use strict";
|
|
70309
|
-
__webpack_require__.r(__webpack_exports__);
|
|
70310
|
-
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
|
|
70311
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
70312
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
70313
|
-
/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
|
|
70314
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
|
|
70315
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
70316
|
-
/* harmony import */ var react_ace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-ace */ "../../node_modules/react-ace/lib/index.js");
|
|
70317
|
-
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ace-builds/src-noconflict/mode-json */ "../../node_modules/ace-builds/src-noconflict/mode-json.js");
|
|
70318
|
-
/* harmony import */ var ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_mode_json__WEBPACK_IMPORTED_MODULE_3__);
|
|
70319
|
-
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ace-builds/src-noconflict/theme-solarized_light */ "../../node_modules/ace-builds/src-noconflict/theme-solarized_light.js");
|
|
70320
|
-
/* harmony import */ var ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ace_builds_src_noconflict_theme_solarized_light__WEBPACK_IMPORTED_MODULE_4__);
|
|
70321
|
-
/* harmony import */ var $utils_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $utils/typeof */ "./src/utils/typeof.js");
|
|
70322
|
-
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./index.scss */ "./src/renderers/JsonView/index.scss");
|
|
70323
|
-
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_index_scss__WEBPACK_IMPORTED_MODULE_6__);
|
|
70324
|
-
|
|
70325
|
-
|
|
70326
|
-
|
|
70327
|
-
|
|
70328
|
-
|
|
70329
|
-
|
|
70330
|
-
// ace-builds
|
|
70331
|
-
|
|
70332
|
-
|
|
70333
|
-
var JsonView = /*#__PURE__*/function (_React$PureComponent) {
|
|
70334
|
-
function JsonView(props) {
|
|
70335
|
-
var _this;
|
|
70336
|
-
_this = _React$PureComponent.call(this, props) || this;
|
|
70337
|
-
// 这边绑定是必要的,这样 `this` 才能在回调函数中使用
|
|
70338
|
-
/** 数值变动事件处理器 */
|
|
70339
|
-
_this.handleValueChange = function (newJsonData) {
|
|
70340
|
-
var _this$props = _this.props,
|
|
70341
|
-
keyRoute = _this$props.keyRoute,
|
|
70342
|
-
jsonStore = _this$props.jsonStore;
|
|
70343
|
-
var _ref = jsonStore || {},
|
|
70344
|
-
updateFormValueData = _ref.updateFormValueData;
|
|
70345
|
-
if (newJsonData) {
|
|
70346
|
-
updateFormValueData(keyRoute, newJsonData); // 更新数值
|
|
70347
|
-
}
|
|
70348
|
-
};
|
|
70349
|
-
_this.handleValueChange = _this.handleValueChange.bind(_this);
|
|
70350
|
-
return _this;
|
|
70351
|
-
}
|
|
70352
|
-
(0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(JsonView, _React$PureComponent);
|
|
70353
|
-
var _proto = JsonView.prototype;
|
|
70354
|
-
_proto.render = function render() {
|
|
70355
|
-
var _ref2 = this.props.jsonStore || {},
|
|
70356
|
-
getJSONDataByKeyRoute = _ref2.getJSONDataByKeyRoute;
|
|
70357
|
-
var _this$props2 = this.props,
|
|
70358
|
-
nodeKey = _this$props2.nodeKey,
|
|
70359
|
-
keyRoute = _this$props2.keyRoute,
|
|
70360
|
-
targetJsonSchema = _this$props2.targetJsonSchema;
|
|
70361
|
-
// 从jsonData中获取对应的数值
|
|
70362
|
-
var curJsonData = getJSONDataByKeyRoute(keyRoute);
|
|
70363
|
-
|
|
70364
|
-
// 格式化JSON数据
|
|
70365
|
-
curJsonData = curJsonData !== undefined ? curJsonData : targetJsonSchema.default || '{}';
|
|
70366
|
-
// 判断当前jsonData是否是对象类型
|
|
70367
|
-
if ((0,$utils_typeof__WEBPACK_IMPORTED_MODULE_5__.isObject)(curJsonData) || (0,$utils_typeof__WEBPACK_IMPORTED_MODULE_5__.isArray)(curJsonData)) {
|
|
70368
|
-
curJsonData = JSON.stringify(curJsonData, null, 2);
|
|
70369
|
-
}
|
|
70370
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
70371
|
-
className: "json-view-box",
|
|
70372
|
-
id: nodeKey
|
|
70373
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
70374
|
-
className: "readOnly-btn"
|
|
70375
|
-
}, "[\u53EA\u8BFB]"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_ace__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
70376
|
-
id: "json_area_ace",
|
|
70377
|
-
value: curJsonData,
|
|
70378
|
-
className: "json-view-ace",
|
|
70379
|
-
mode: "json",
|
|
70380
|
-
theme: "solarized_light",
|
|
70381
|
-
name: "JSON_CODE_EDIT",
|
|
70382
|
-
fontSize: 14,
|
|
70383
|
-
showPrintMargin: true,
|
|
70384
|
-
showGutter: true,
|
|
70385
|
-
highlightActiveLine: true,
|
|
70386
|
-
readOnly: true,
|
|
70387
|
-
minLines: 5,
|
|
70388
|
-
maxLines: 33,
|
|
70389
|
-
width: '100%',
|
|
70390
|
-
setOptions: {
|
|
70391
|
-
useWorker: false,
|
|
70392
|
-
showLineNumbers: true,
|
|
70393
|
-
tabSize: 2
|
|
70394
|
-
}
|
|
70395
|
-
}));
|
|
70396
|
-
};
|
|
70397
|
-
return JsonView;
|
|
70398
|
-
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
70399
|
-
JsonView.propTypes = {
|
|
70400
|
-
parentType: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),
|
|
70401
|
-
jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),
|
|
70402
|
-
indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),
|
|
70403
|
-
keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),
|
|
70404
|
-
nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string),
|
|
70405
|
-
targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().any)
|
|
70406
|
-
};
|
|
70407
|
-
/* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_8__.inject)(function (stores) {
|
|
70408
|
-
return {
|
|
70409
|
-
schemaStore: stores.JSONSchemaStore,
|
|
70410
|
-
jsonStore: stores.JSONEditorStore
|
|
70411
|
-
};
|
|
70412
|
-
})((0,mobx_react__WEBPACK_IMPORTED_MODULE_8__.observer)(JsonView)));
|
|
70413
|
-
|
|
70414
|
-
/***/ }),
|
|
70415
|
-
|
|
70416
70436
|
/***/ "./src/renderers/NumberFormSchema/index.js":
|
|
70417
70437
|
/*!*************************************************!*\
|
|
70418
70438
|
!*** ./src/renderers/NumberFormSchema/index.js ***!
|
|
@@ -70622,7 +70642,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
70622
70642
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
|
|
70623
70643
|
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
70624
70644
|
/* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
|
|
70625
|
-
/* harmony import */ var $
|
|
70645
|
+
/* harmony import */ var $components_JsonView_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $components/JsonView/index */ "./src/components/JsonView/index.js");
|
|
70626
70646
|
/* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
|
|
70627
70647
|
/* harmony import */ var $utils_webCache__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $utils/webCache */ "./src/utils/webCache.js");
|
|
70628
70648
|
/* harmony import */ var $assets_img_code_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $assets/img/code.svg */ "./src/assets/img/code.svg");
|
|
@@ -70787,7 +70807,7 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
70787
70807
|
schemaStore: schemaStore,
|
|
70788
70808
|
jsonStore: jsonStore
|
|
70789
70809
|
});
|
|
70790
|
-
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
70810
|
+
}), jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_5__["default"], this.props))));
|
|
70791
70811
|
};
|
|
70792
70812
|
return ObjectSchema;
|
|
70793
70813
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().PureComponent));
|
|
@@ -73265,7 +73285,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73265
73285
|
|
|
73266
73286
|
|
|
73267
73287
|
|
|
73268
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
73288
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
73269
73289
|
|
|
73270
73290
|
|
|
73271
73291
|
|
|
@@ -73275,7 +73295,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
|
|
|
73275
73295
|
/**
|
|
73276
73296
|
* 用于管控JSON数据内容的全局store
|
|
73277
73297
|
* */
|
|
73278
|
-
var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec2 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec3 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec4 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec5 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec6 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec7 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec8 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec9 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec10 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec11 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec12 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec13 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _class = /*#__PURE__*/function () {
|
|
73298
|
+
var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec2 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec3 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec4 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec5 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec6 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec7 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec8 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec9 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec10 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec11 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec12 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec13 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _dec14 = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _class = /*#__PURE__*/function () {
|
|
73279
73299
|
// 构造函数
|
|
73280
73300
|
function JSONEditorStore(rootJSONStore) {
|
|
73281
73301
|
/**
|
|
@@ -73392,6 +73412,11 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
|
|
|
73392
73412
|
/** 触发onChange */
|
|
73393
73413
|
_proto.jsonDataChange = function jsonDataChange() {
|
|
73394
73414
|
this.onChange(this.JSONEditorObj);
|
|
73415
|
+
};
|
|
73416
|
+
_proto.jsonChange = function jsonChange(newJsonData) {
|
|
73417
|
+
console.log('newJsonData:', newJsonData);
|
|
73418
|
+
this.jsonData = newJsonData;
|
|
73419
|
+
this.jsonDataChange();
|
|
73395
73420
|
}
|
|
73396
73421
|
|
|
73397
73422
|
/** 根据key索引路径获取对应的json数据[非联动式数据获取] */;
|
|
@@ -73630,7 +73655,7 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
|
|
|
73630
73655
|
initializer: function initializer() {
|
|
73631
73656
|
return function () {};
|
|
73632
73657
|
}
|
|
73633
|
-
}), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "updateLastTime", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "updateLastTime"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "triggerChangeAction", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "triggerChangeAction"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "initJSONData", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, "initJSONData"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "initOnChange", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, "initOnChange"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "setDynamicDataList", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, "setDynamicDataList"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "setOptions", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, "setOptions"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "JSONEditorObj", [mobx__WEBPACK_IMPORTED_MODULE_4__.computed], Object.getOwnPropertyDescriptor(_class.prototype, "JSONEditorObj"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "jsonDataChange", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, "jsonDataChange"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "
|
|
73658
|
+
}), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "updateLastTime", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "updateLastTime"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "triggerChangeAction", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "triggerChangeAction"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "initJSONData", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, "initJSONData"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "initOnChange", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, "initOnChange"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "setDynamicDataList", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, "setDynamicDataList"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "setOptions", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, "setOptions"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "JSONEditorObj", [mobx__WEBPACK_IMPORTED_MODULE_4__.computed], Object.getOwnPropertyDescriptor(_class.prototype, "JSONEditorObj"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "jsonDataChange", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, "jsonDataChange"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "jsonChange", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, "jsonChange"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "getJSONDataByKeyRoute", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, "getJSONDataByKeyRoute"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "getInitJsonDataByKeyRoute", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, "getInitJsonDataByKeyRoute"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "updateFormValueData", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, "updateFormValueData"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "deleteArrayIndex", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, "deleteArrayIndex"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "addArrayItem", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, "addArrayItem"), _class.prototype), (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__["default"])(_class.prototype, "sortArrayItem", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, "sortArrayItem"), _class.prototype), _class);
|
|
73634
73659
|
|
|
73635
73660
|
|
|
73636
73661
|
/***/ }),
|
|
@@ -156627,6 +156652,16 @@ module.exports = function sign(number) {
|
|
|
156627
156652
|
|
|
156628
156653
|
/***/ }),
|
|
156629
156654
|
|
|
156655
|
+
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/components/JsonView/index.scss":
|
|
156656
|
+
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
156657
|
+
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/components/JsonView/index.scss ***!
|
|
156658
|
+
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
156659
|
+
/***/ (function() {
|
|
156660
|
+
|
|
156661
|
+
// extracted by mini-css-extract-plugin
|
|
156662
|
+
|
|
156663
|
+
/***/ }),
|
|
156664
|
+
|
|
156630
156665
|
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/main.scss":
|
|
156631
156666
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
156632
156667
|
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/main.scss ***!
|
|
@@ -156697,16 +156732,6 @@ module.exports = function sign(number) {
|
|
|
156697
156732
|
|
|
156698
156733
|
/***/ }),
|
|
156699
156734
|
|
|
156700
|
-
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/JsonView/index.scss":
|
|
156701
|
-
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
156702
|
-
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/JsonView/index.scss ***!
|
|
156703
|
-
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
156704
|
-
/***/ (function() {
|
|
156705
|
-
|
|
156706
|
-
// extracted by mini-css-extract-plugin
|
|
156707
|
-
|
|
156708
|
-
/***/ }),
|
|
156709
|
-
|
|
156710
156735
|
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/NumberFormSchema/index.scss":
|
|
156711
156736
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
156712
156737
|
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/NumberFormSchema/index.scss ***!
|
|
@@ -267393,6 +267418,27 @@ if(false) {}
|
|
|
267393
267418
|
|
|
267394
267419
|
/***/ }),
|
|
267395
267420
|
|
|
267421
|
+
/***/ "./src/components/JsonView/index.scss":
|
|
267422
|
+
/*!********************************************!*\
|
|
267423
|
+
!*** ./src/components/JsonView/index.scss ***!
|
|
267424
|
+
\********************************************/
|
|
267425
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
267426
|
+
|
|
267427
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
267428
|
+
|
|
267429
|
+
// load the styles
|
|
267430
|
+
var content = __webpack_require__(/*! !!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../../../../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]!./index.scss */ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/components/JsonView/index.scss");
|
|
267431
|
+
if(content.__esModule) content = content.default;
|
|
267432
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
267433
|
+
if(content.locals) module.exports = content.locals;
|
|
267434
|
+
// add the styles to the DOM
|
|
267435
|
+
var add = (__webpack_require__(/*! !../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "../../node_modules/vue-style-loader/lib/addStylesClient.js")["default"])
|
|
267436
|
+
var update = add("5c4a563c", content, false, {"sourceMap":false});
|
|
267437
|
+
// Hot Module Replacement
|
|
267438
|
+
if(false) {}
|
|
267439
|
+
|
|
267440
|
+
/***/ }),
|
|
267441
|
+
|
|
267396
267442
|
/***/ "./src/main.scss":
|
|
267397
267443
|
/*!***********************!*\
|
|
267398
267444
|
!*** ./src/main.scss ***!
|
|
@@ -267540,27 +267586,6 @@ if(false) {}
|
|
|
267540
267586
|
|
|
267541
267587
|
/***/ }),
|
|
267542
267588
|
|
|
267543
|
-
/***/ "./src/renderers/JsonView/index.scss":
|
|
267544
|
-
/*!*******************************************!*\
|
|
267545
|
-
!*** ./src/renderers/JsonView/index.scss ***!
|
|
267546
|
-
\*******************************************/
|
|
267547
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
267548
|
-
|
|
267549
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
267550
|
-
|
|
267551
|
-
// load the styles
|
|
267552
|
-
var content = __webpack_require__(/*! !!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../../../../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]!./index.scss */ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../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/JsonView/index.scss");
|
|
267553
|
-
if(content.__esModule) content = content.default;
|
|
267554
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
267555
|
-
if(content.locals) module.exports = content.locals;
|
|
267556
|
-
// add the styles to the DOM
|
|
267557
|
-
var add = (__webpack_require__(/*! !../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "../../node_modules/vue-style-loader/lib/addStylesClient.js")["default"])
|
|
267558
|
-
var update = add("4ad618f0", content, false, {"sourceMap":false});
|
|
267559
|
-
// Hot Module Replacement
|
|
267560
|
-
if(false) {}
|
|
267561
|
-
|
|
267562
|
-
/***/ }),
|
|
267563
|
-
|
|
267564
267589
|
/***/ "./src/renderers/NumberFormSchema/index.scss":
|
|
267565
267590
|
/*!***************************************************!*\
|
|
267566
267591
|
!*** ./src/renderers/NumberFormSchema/index.scss ***!
|