@wibetter/json-schema-editor 5.0.8 → 5.0.16

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.js CHANGED
@@ -12,67 +12,59 @@
12
12
  var e = {
13
13
  264: function () {},
14
14
  286: function () {},
15
- 804: function () {},
16
15
  382: function () {},
17
16
  80: function () {},
18
17
  707: function () {},
19
18
  975: function (e, t, n) {
20
- var o = n(264);
21
- o.__esModule && (o = o.default),
22
- 'string' == typeof o && (o = [[e.id, o, '']]),
23
- o.locals && (e.exports = o.locals),
24
- (0, n(611).A)('b8de86ae', o, !1, { sourceMap: !1 });
19
+ var a = n(264);
20
+ a.__esModule && (a = a.default),
21
+ 'string' == typeof a && (a = [[e.id, a, '']]),
22
+ a.locals && (e.exports = a.locals),
23
+ (0, n(611).A)('b8de86ae', a, !1, { sourceMap: !1 });
25
24
  },
26
25
  915: function (e, t, n) {
27
- var o = n(286);
28
- o.__esModule && (o = o.default),
29
- 'string' == typeof o && (o = [[e.id, o, '']]),
30
- o.locals && (e.exports = o.locals),
31
- (0, n(611).A)('5e9c0933', o, !1, { sourceMap: !1 });
32
- },
33
- 797: function (e, t, n) {
34
- var o = n(804);
35
- o.__esModule && (o = o.default),
36
- 'string' == typeof o && (o = [[e.id, o, '']]),
37
- o.locals && (e.exports = o.locals),
38
- (0, n(611).A)('c1e4665a', o, !1, { sourceMap: !1 });
26
+ var a = n(286);
27
+ a.__esModule && (a = a.default),
28
+ 'string' == typeof a && (a = [[e.id, a, '']]),
29
+ a.locals && (e.exports = a.locals),
30
+ (0, n(611).A)('5e9c0933', a, !1, { sourceMap: !1 });
39
31
  },
40
32
  23: function (e, t, n) {
41
- var o = n(382);
42
- o.__esModule && (o = o.default),
43
- 'string' == typeof o && (o = [[e.id, o, '']]),
44
- o.locals && (e.exports = o.locals),
45
- (0, n(611).A)('adbe60da', o, !1, { sourceMap: !1 });
33
+ var a = n(382);
34
+ a.__esModule && (a = a.default),
35
+ 'string' == typeof a && (a = [[e.id, a, '']]),
36
+ a.locals && (e.exports = a.locals),
37
+ (0, n(611).A)('adbe60da', a, !1, { sourceMap: !1 });
46
38
  },
47
39
  617: function (e, t, n) {
48
- var o = n(80);
49
- o.__esModule && (o = o.default),
50
- 'string' == typeof o && (o = [[e.id, o, '']]),
51
- o.locals && (e.exports = o.locals),
52
- (0, n(611).A)('9c82b91a', o, !1, { sourceMap: !1 });
40
+ var a = n(80);
41
+ a.__esModule && (a = a.default),
42
+ 'string' == typeof a && (a = [[e.id, a, '']]),
43
+ a.locals && (e.exports = a.locals),
44
+ (0, n(611).A)('9c82b91a', a, !1, { sourceMap: !1 });
53
45
  },
54
46
  790: function (e, t, n) {
55
- var o = n(707);
56
- o.__esModule && (o = o.default),
57
- 'string' == typeof o && (o = [[e.id, o, '']]),
58
- o.locals && (e.exports = o.locals),
59
- (0, n(611).A)('2b121068', o, !1, { sourceMap: !1 });
47
+ var a = n(707);
48
+ a.__esModule && (a = a.default),
49
+ 'string' == typeof a && (a = [[e.id, a, '']]),
50
+ a.locals && (e.exports = a.locals),
51
+ (0, n(611).A)('2b121068', a, !1, { sourceMap: !1 });
60
52
  },
61
53
  611: function (e, t, n) {
62
54
  'use strict';
63
- function o(e, t) {
64
- for (var n = [], o = {}, a = 0; a < t.length; a++) {
65
- var r = t[a],
55
+ function a(e, t) {
56
+ for (var n = [], a = {}, o = 0; o < t.length; o++) {
57
+ var r = t[o],
66
58
  i = r[0],
67
59
  s = {
68
- id: e + ':' + a,
60
+ id: e + ':' + o,
69
61
  css: r[1],
70
62
  media: r[2],
71
63
  sourceMap: r[3],
72
64
  };
73
- o[i]
74
- ? o[i].parts.push(s)
75
- : n.push((o[i] = { id: i, parts: [s] }));
65
+ a[i]
66
+ ? a[i].parts.push(s)
67
+ : n.push((a[i] = { id: i, parts: [s] }));
76
68
  }
77
69
  return n;
78
70
  }
@@ -81,40 +73,40 @@
81
73
  return h;
82
74
  },
83
75
  });
84
- var a = 'undefined' != typeof document;
85
- if ('undefined' != typeof DEBUG && DEBUG && !a)
76
+ var o = 'undefined' != typeof document;
77
+ if ('undefined' != typeof DEBUG && DEBUG && !o)
86
78
  throw new Error(
87
79
  "vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.",
88
80
  );
89
81
  var r = {},
90
82
  i =
91
- a && (document.head || document.getElementsByTagName('head')[0]),
83
+ o && (document.head || document.getElementsByTagName('head')[0]),
92
84
  s = null,
93
85
  c = 0,
94
86
  l = !1,
95
- d = function () {},
96
- p = null,
87
+ p = function () {},
88
+ d = null,
97
89
  u = 'data-vue-ssr-id',
98
90
  m =
99
91
  'undefined' != typeof navigator &&
100
92
  /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
101
- function h(e, t, n, a) {
102
- (l = n), (p = a || {});
103
- var i = o(e, t);
93
+ function h(e, t, n, o) {
94
+ (l = n), (d = o || {});
95
+ var i = a(e, t);
104
96
  return (
105
97
  y(i),
106
98
  function (t) {
107
- for (var n = [], a = 0; a < i.length; a++) {
108
- var s = i[a];
99
+ for (var n = [], o = 0; o < i.length; o++) {
100
+ var s = i[o];
109
101
  (c = r[s.id]).refs--, n.push(c);
110
102
  }
111
103
  for (
112
- t ? y((i = o(e, t))) : (i = []), a = 0;
113
- a < n.length;
114
- a++
104
+ t ? y((i = a(e, t))) : (i = []), o = 0;
105
+ o < n.length;
106
+ o++
115
107
  ) {
116
108
  var c;
117
- if (0 === (c = n[a]).refs) {
109
+ if (0 === (c = n[o]).refs) {
118
110
  for (var l = 0; l < c.parts.length; l++) c.parts[l]();
119
111
  delete r[c.id];
120
112
  }
@@ -125,16 +117,16 @@
125
117
  function y(e) {
126
118
  for (var t = 0; t < e.length; t++) {
127
119
  var n = e[t],
128
- o = r[n.id];
129
- if (o) {
130
- o.refs++;
131
- for (var a = 0; a < o.parts.length; a++) o.parts[a](n.parts[a]);
132
- for (; a < n.parts.length; a++) o.parts.push(f(n.parts[a]));
133
- o.parts.length > n.parts.length &&
134
- (o.parts.length = n.parts.length);
120
+ a = r[n.id];
121
+ if (a) {
122
+ a.refs++;
123
+ for (var o = 0; o < a.parts.length; o++) a.parts[o](n.parts[o]);
124
+ for (; o < n.parts.length; o++) a.parts.push(f(n.parts[o]));
125
+ a.parts.length > n.parts.length &&
126
+ (a.parts.length = n.parts.length);
135
127
  } else {
136
128
  var i = [];
137
- for (a = 0; a < n.parts.length; a++) i.push(f(n.parts[a]));
129
+ for (o = 0; o < n.parts.length; o++) i.push(f(n.parts[o]));
138
130
  r[n.id] = { id: n.id, refs: 1, parts: i };
139
131
  }
140
132
  }
@@ -146,65 +138,65 @@
146
138
  function f(e) {
147
139
  var t,
148
140
  n,
149
- o = document.querySelector('style[' + u + '~="' + e.id + '"]');
150
- if (o) {
151
- if (l) return d;
152
- o.parentNode.removeChild(o);
141
+ a = document.querySelector('style[' + u + '~="' + e.id + '"]');
142
+ if (a) {
143
+ if (l) return p;
144
+ a.parentNode.removeChild(a);
153
145
  }
154
146
  if (m) {
155
- var a = c++;
156
- (o = s || (s = g())),
157
- (t = x.bind(null, o, a, !1)),
158
- (n = x.bind(null, o, a, !0));
147
+ var o = c++;
148
+ (a = s || (s = g())),
149
+ (t = b.bind(null, a, o, !1)),
150
+ (n = b.bind(null, a, o, !0));
159
151
  } else
160
- (o = g()),
161
- (t = b.bind(null, o)),
152
+ (a = g()),
153
+ (t = S.bind(null, a)),
162
154
  (n = function () {
163
- o.parentNode.removeChild(o);
155
+ a.parentNode.removeChild(a);
164
156
  });
165
157
  return (
166
158
  t(e),
167
- function (o) {
168
- if (o) {
159
+ function (a) {
160
+ if (a) {
169
161
  if (
170
- o.css === e.css &&
171
- o.media === e.media &&
172
- o.sourceMap === e.sourceMap
162
+ a.css === e.css &&
163
+ a.media === e.media &&
164
+ a.sourceMap === e.sourceMap
173
165
  )
174
166
  return;
175
- t((e = o));
167
+ t((e = a));
176
168
  } else n();
177
169
  }
178
170
  );
179
171
  }
180
- var S,
181
- v =
182
- ((S = []),
172
+ var v,
173
+ x =
174
+ ((v = []),
183
175
  function (e, t) {
184
- return (S[e] = t), S.filter(Boolean).join('\n');
176
+ return (v[e] = t), v.filter(Boolean).join('\n');
185
177
  });
186
- function x(e, t, n, o) {
187
- var a = n ? '' : o.css;
188
- if (e.styleSheet) e.styleSheet.cssText = v(t, a);
178
+ function b(e, t, n, a) {
179
+ var o = n ? '' : a.css;
180
+ if (e.styleSheet) e.styleSheet.cssText = x(t, o);
189
181
  else {
190
- var r = document.createTextNode(a),
182
+ var r = document.createTextNode(o),
191
183
  i = e.childNodes;
192
184
  i[t] && e.removeChild(i[t]),
193
185
  i.length ? e.insertBefore(r, i[t]) : e.appendChild(r);
194
186
  }
195
187
  }
196
- function b(e, t) {
188
+ function S(e, t) {
197
189
  var n = t.css,
198
- o = t.media,
199
- a = t.sourceMap;
190
+ a = t.media,
191
+ o = t.sourceMap;
200
192
  if (
201
- (o && e.setAttribute('media', o),
202
- p.ssrId && e.setAttribute(u, t.id),
203
- a &&
204
- ((n += '\n/*# sourceURL=' + a.sources[0] + ' */'),
193
+ (a && e.setAttribute('media', a),
194
+ d.ssrId && e.setAttribute(u, t.id),
195
+ o &&
196
+ ((n += '\n/*# sourceURL=' + o.sources[0] + ' */'),
205
197
  (n +=
206
198
  '\n/*# sourceMappingURL=data:application/json;base64,' +
207
- btoa(unescape(encodeURIComponent(JSON.stringify(a)))) +
199
+ btoa(unescape(encodeURIComponent(JSON.stringify(o)))) +
208
200
  ' */')),
209
201
  e.styleSheet)
210
202
  )
@@ -217,11 +209,11 @@
217
209
  },
218
210
  },
219
211
  t = {};
220
- function n(o) {
221
- var a = t[o];
222
- if (void 0 !== a) return a.exports;
223
- var r = (t[o] = { id: o, exports: {} });
224
- return e[o](r, r.exports, n), r.exports;
212
+ function n(a) {
213
+ var o = t[a];
214
+ if (void 0 !== o) return o.exports;
215
+ var r = (t[a] = { id: a, exports: {} });
216
+ return e[a](r, r.exports, n), r.exports;
225
217
  }
226
218
  (n.n = function (e) {
227
219
  var t =
@@ -235,10 +227,10 @@
235
227
  return n.d(t, { a: t }), t;
236
228
  }),
237
229
  (n.d = function (e, t) {
238
- for (var o in t)
239
- n.o(t, o) &&
240
- !n.o(e, o) &&
241
- Object.defineProperty(e, o, { enumerable: !0, get: t[o] });
230
+ for (var a in t)
231
+ n.o(t, a) &&
232
+ !n.o(e, a) &&
233
+ Object.defineProperty(e, a, { enumerable: !0, get: t[a] });
242
234
  }),
243
235
  (n.o = function (e, t) {
244
236
  return Object.prototype.hasOwnProperty.call(e, t);
@@ -249,60 +241,60 @@
249
241
  Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
250
242
  Object.defineProperty(e, '__esModule', { value: !0 });
251
243
  });
252
- var o = {};
244
+ var a = {};
253
245
  return (
254
246
  (function () {
255
247
  'use strict';
256
- n.r(o),
257
- n.d(o, {
248
+ n.r(a),
249
+ n.d(a, {
258
250
  default: function () {
259
- return ft;
251
+ return ct;
260
252
  },
261
253
  });
262
254
  var e,
263
255
  t = require('@babel/runtime/helpers/inheritsLoose'),
264
- a = n.n(t),
256
+ o = n.n(t),
265
257
  r = require('react'),
266
258
  i = n.n(r),
267
259
  s = require('react-dom'),
268
260
  c = n.n(s),
269
261
  l = require('mobx-react'),
270
- d = require('prop-types'),
271
- p = n.n(d),
262
+ p = require('prop-types'),
263
+ d = n.n(p),
272
264
  u = require('@babel/runtime/helpers/extends'),
273
265
  m = n.n(u),
274
266
  h = require('@babel/runtime/helpers/initializerDefineProperty'),
275
267
  y = n.n(h),
276
268
  g = require('@babel/runtime/helpers/createClass'),
277
269
  f = n.n(g),
278
- S = require('@babel/runtime/helpers/applyDecoratedDescriptor'),
279
- v = n.n(S),
280
- x =
270
+ v = require('@babel/runtime/helpers/applyDecoratedDescriptor'),
271
+ x = n.n(v),
272
+ b =
281
273
  (require('@babel/runtime/helpers/initializerWarningHelper'),
282
274
  require('mobx')),
283
- b = require('antd');
275
+ S = require('antd');
284
276
  function E(e) {
285
277
  var t = JSON.stringify(e);
286
278
  return JSON.parse(t);
287
279
  }
288
- function C(e, t) {
280
+ function O(e, t) {
289
281
  return JSON.stringify(e) === JSON.stringify(t);
290
282
  }
291
- function j(e, t) {
283
+ function C(e, t) {
292
284
  window.sessionStorage && window.sessionStorage.setItem(e, t);
293
285
  }
294
- var O,
295
- R,
286
+ var j,
296
287
  N,
297
288
  I,
298
- k,
299
289
  w,
290
+ R,
300
291
  K,
301
- P,
292
+ k,
293
+ T,
302
294
  J,
303
295
  D,
304
- T,
305
296
  B,
297
+ P,
306
298
  V,
307
299
  L,
308
300
  F,
@@ -310,11 +302,11 @@
310
302
  A,
311
303
  _,
312
304
  M,
313
- H,
314
- z,
315
- G,
316
305
  W,
306
+ G,
307
+ z,
317
308
  U,
309
+ H,
318
310
  Q,
319
311
  X,
320
312
  Y,
@@ -323,26 +315,21 @@
323
315
  ee,
324
316
  te,
325
317
  ne,
326
- oe,
327
318
  ae,
319
+ oe,
328
320
  re,
329
321
  ie,
330
322
  se,
331
323
  ce,
332
324
  le,
333
- de,
334
325
  pe,
326
+ de,
335
327
  ue,
336
328
  me,
337
329
  he,
338
330
  ye,
339
331
  ge,
340
- fe,
341
- Se,
342
- ve,
343
- xe,
344
- be,
345
- Ee = [
332
+ fe = [
346
333
  'input',
347
334
  'boolean',
348
335
  'number',
@@ -357,7 +344,7 @@
357
344
  'time',
358
345
  'input-image',
359
346
  ],
360
- Ce = ['object'].concat([
347
+ ve = ['object'].concat([
361
348
  'datasource',
362
349
  'event',
363
350
  'dynamic-data',
@@ -365,7 +352,7 @@
365
352
  'sohu-source',
366
353
  'sohu-event',
367
354
  ]),
368
- je = [
355
+ xe = [
369
356
  'quantity',
370
357
  'box-style',
371
358
  'text-editor',
@@ -373,16 +360,17 @@
373
360
  'codearea',
374
361
  'htmlarea',
375
362
  'array',
376
- ].concat(Ce),
377
- Oe = [].concat(Ee, je),
378
- Re = ['string'],
379
- Ne =
363
+ ].concat(ve),
364
+ be = [].concat(fe, xe),
365
+ Se = ['string'],
366
+ Ee =
380
367
  (((e = {
381
- object: Oe,
368
+ object: be,
382
369
  array: [
383
370
  'object',
384
371
  'input',
385
372
  'number',
373
+ 'select',
386
374
  'color',
387
375
  'url',
388
376
  'date',
@@ -390,69 +378,64 @@
390
378
  'time',
391
379
  'input-image',
392
380
  ],
393
- radio: Re,
394
- select: Re,
381
+ radio: Se,
382
+ select: Se,
395
383
  }).select = ['string']),
396
- (e.all = Oe),
384
+ (e.all = be),
397
385
  e),
398
- Ie = require('@wibetter/json-utils'),
399
- ke = Ie.TypeDataList.jsonschema,
400
- we = Ie.TypeDataList.input,
401
- Ke = {
402
- jsonSchemaStore:
403
- ((O = x.action.bound),
404
- (R = x.action.bound),
405
- (N = x.action.bound),
406
- (I = x.action.bound),
407
- (k = x.action.bound),
408
- (w = x.action.bound),
409
- (K = x.action.bound),
410
- (P = x.action.bound),
411
- (J = x.action.bound),
412
- (D = x.action.bound),
413
- (T = x.action.bound),
414
- (B = x.action.bound),
415
- (V = x.action.bound),
416
- (L = x.action.bound),
417
- (F = x.action.bound),
418
- (q = x.action.bound),
419
- (A = x.action.bound),
420
- (_ = x.action.bound),
421
- (M = x.action.bound),
422
- (H = x.action.bound),
423
- (z = x.action.bound),
424
- (G = x.action.bound),
425
- (W = x.action.bound),
426
- (U = x.action.bound),
427
- (Q = x.action.bound),
428
- (X = x.action.bound),
429
- (Y = x.action.bound),
430
- (Z = x.action.bound),
431
- ($ = x.action.bound),
432
- (ee = x.action.bound),
433
- (te = x.action.bound),
434
- (ne = x.action.bound),
435
- (oe = x.action.bound),
436
- (ae = x.action.bound),
437
- (re = x.action.bound),
438
- (ie = x.action.bound),
439
- (se = x.action.bound),
440
- (ce = x.action.bound),
441
- (le = x.action.bound),
442
- (de = x.action.bound),
443
- (pe = x.action.bound),
444
- (ue = x.action.bound),
445
- (me = x.action.bound),
446
- (he = x.action.bound),
447
- (ye = x.action.bound),
448
- (ge = (function () {
386
+ Oe = require('@wibetter/json-utils'),
387
+ Ce = Oe.TypeDataList.jsonschema,
388
+ je = Oe.TypeDataList.input,
389
+ Ne = {
390
+ schemaStore:
391
+ ((j = b.action.bound),
392
+ (N = b.action.bound),
393
+ (I = b.action.bound),
394
+ (w = b.action.bound),
395
+ (R = b.action.bound),
396
+ (K = b.action.bound),
397
+ (k = b.action.bound),
398
+ (T = b.action.bound),
399
+ (J = b.action.bound),
400
+ (D = b.action.bound),
401
+ (B = b.action.bound),
402
+ (P = b.action.bound),
403
+ (V = b.action.bound),
404
+ (L = b.action.bound),
405
+ (F = b.action.bound),
406
+ (q = b.action.bound),
407
+ (A = b.action.bound),
408
+ (_ = b.action.bound),
409
+ (M = b.action.bound),
410
+ (W = b.action.bound),
411
+ (G = b.action.bound),
412
+ (z = b.action.bound),
413
+ (U = b.action.bound),
414
+ (H = b.action.bound),
415
+ (Q = b.action.bound),
416
+ (X = b.action.bound),
417
+ (Y = b.action.bound),
418
+ (Z = b.action.bound),
419
+ ($ = b.action.bound),
420
+ (ee = b.action.bound),
421
+ (te = b.action.bound),
422
+ (ne = b.action.bound),
423
+ (ae = b.action.bound),
424
+ (oe = b.action.bound),
425
+ (re = b.action.bound),
426
+ (ie = b.action.bound),
427
+ (se = b.action.bound),
428
+ (ce = b.action.bound),
429
+ (le = b.action.bound),
430
+ (pe = b.action.bound),
431
+ (de = (function () {
449
432
  function e() {
450
433
  (this.curJsonKeyIndex = 1),
451
- y()(this, 'triggerChange', fe, this),
452
- y()(this, 'jsonSchema', Se, this),
453
- y()(this, 'SchemaTypeList', ve, this),
454
- y()(this, 'onChange', xe, this),
455
- y()(this, 'childElemSort', be, this);
434
+ y()(this, 'triggerChange', ue, this),
435
+ y()(this, 'jsonSchema', me, this),
436
+ y()(this, 'SchemaTypeList', he, this),
437
+ y()(this, 'onChange', ye, this),
438
+ y()(this, 'childElemSort', ge, this);
456
439
  }
457
440
  var t = e.prototype;
458
441
  return (
@@ -463,7 +446,7 @@
463
446
  var t = this;
464
447
  e &&
465
448
  '{}' !== JSON.stringify(e) &&
466
- (C(e, this.SchemaTypeList) ||
449
+ (O(e, this.SchemaTypeList) ||
467
450
  (e &&
468
451
  Object.keys(e).map(function (n) {
469
452
  t.SchemaTypeList[n] = e[n];
@@ -471,14 +454,14 @@
471
454
  }),
472
455
  (t.initJSONSchemaData = function (e) {
473
456
  if (e && '{}' !== JSON.stringify(e)) {
474
- if (!C(e, this.JSONSchemaObj))
475
- if (e && (0, Ie.isNewSchemaData)(e))
457
+ if (!O(e, this.JSONSchemaObj))
458
+ if (e && (0, Oe.isNewSchemaData)(e))
476
459
  this.jsonSchema = e;
477
460
  else {
478
- var t = (0, Ie.oldSchemaToNewSchema)(e);
461
+ var t = (0, Oe.oldSchemaToNewSchema)(e);
479
462
  this.jsonSchema = t;
480
463
  }
481
- } else this.jsonSchema = E(ke);
464
+ } else this.jsonSchema = E(Ce);
482
465
  }),
483
466
  (t.initOnChange = function (e) {
484
467
  var t, n;
@@ -496,20 +479,20 @@
496
479
  e || this.onChange(this.JSONSchemaObj);
497
480
  }),
498
481
  (t.indexRoute2keyRoute = function (e) {
499
- return (0, Ie.indexRoute2keyRoute)(e, this.jsonSchema);
482
+ return (0, Oe.indexRoute2keyRoute)(e, this.jsonSchema);
500
483
  }),
501
484
  (t.keyRoute2indexRoute = function (e) {
502
- return (0, Ie.keyRoute2indexRoute)(e, this.jsonSchema);
485
+ return (0, Oe.keyRoute2indexRoute)(e, this.jsonSchema);
503
486
  }),
504
487
  (t.getSchemaByIndexRoute = function (e) {
505
- return (0, Ie.getSchemaByIndexRoute)(
488
+ return (0, Oe.getSchemaByIndexRoute)(
506
489
  e,
507
490
  this.jsonSchema,
508
491
  !0,
509
492
  );
510
493
  }),
511
494
  (t.getSchemaByKeyRoute = function (e) {
512
- return (0, Ie.getSchemaByKeyRoute)(e, this.jsonSchema, !0);
495
+ return (0, Oe.getSchemaByKeyRoute)(e, this.jsonSchema, !0);
513
496
  }),
514
497
  (t.getNewJsonKeyIndex = function (e, t) {
515
498
  var n = (t || 'field') + '_' + this.curJsonKeyIndex;
@@ -522,19 +505,19 @@
522
505
  );
523
506
  }),
524
507
  (t.isExitJsonKey = function (e, t) {
525
- var n = (0, Ie.getParentIndexRoute)(e),
526
- o = this.getSchemaByIndexRoute(n);
508
+ var n = (0, Oe.getParentIndexRoute)(e),
509
+ a = this.getSchemaByIndexRoute(n);
527
510
  return (
528
- !!(o.propertyOrder && o.propertyOrder.indexOf(t) >= 0) ||
529
- (Ie.KeyWordList &&
530
- Ie.KeyWordList.indexOf(t) >= 0 &&
531
- b.message.warning(
511
+ !!(a.propertyOrder && a.propertyOrder.indexOf(t) >= 0) ||
512
+ (Oe.KeyWordList &&
513
+ Oe.KeyWordList.indexOf(t) >= 0 &&
514
+ S.message.warning(
532
515
  t +
533
516
  '是JSONSchema的关键字,建议您换一个,避免后续出现数据异常。',
534
517
  ),
535
518
  t &&
536
519
  t.indexOf('-') > -1 &&
537
- b.message.warning(
520
+ S.message.warning(
538
521
  t +
539
522
  '含特殊字符(‘-’),会影响后续数据获取和更新,建议您换一个数值。',
540
523
  ),
@@ -542,134 +525,134 @@
542
525
  );
543
526
  }),
544
527
  (t.isSupportCurType = function (e, t) {
545
- var n = (0, Ie.getParentIndexRoute)(e),
546
- o = this.getSchemaByIndexRoute(n),
547
- a = this.SchemaTypeList[o.type];
548
- return !!(a && a.indexOf(t) >= 0);
528
+ var n = (0, Oe.getParentIndexRoute)(e),
529
+ a = this.getSchemaByIndexRoute(n),
530
+ o = this.SchemaTypeList[a.type];
531
+ return !!(o && o.indexOf(t) >= 0);
549
532
  }),
550
533
  (t.addChildJson = function (e, t) {
551
- var n = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
552
- if ((0, Ie.isContainerSchema)(n)) {
553
- var o = this.getNewJsonKeyIndex(n);
554
- n.propertyOrder.push(o),
555
- (n.properties[o] = we),
534
+ var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
535
+ if ((0, Oe.isContainerSchema)(n)) {
536
+ var a = this.getNewJsonKeyIndex(n);
537
+ n.propertyOrder.push(a),
538
+ (n.properties[a] = je),
556
539
  this.jsonSchemaChange(t);
557
- } else b.message.warning('非对象类型字段不允许插入子元素');
540
+ } else S.message.warning('非对象类型字段不允许插入子元素');
558
541
  }),
559
- (t.changeType = function (e, t, n, o) {
560
- var a = (0, Ie.getParentIndexRoute)(e),
561
- r = (0, Ie.getSchemaByIndexRoute)(a, this.jsonSchema);
542
+ (t.changeType = function (e, t, n, a) {
543
+ var o = (0, Oe.getParentIndexRoute)(e),
544
+ r = (0, Oe.getSchemaByIndexRoute)(o, this.jsonSchema);
562
545
  r.properties && r.properties[t]
563
546
  ? (r.properties[t] = E(n))
564
547
  : r[t] && (r[t] = E(n)),
565
- this.jsonSchemaChange(o);
548
+ this.jsonSchemaChange(a);
566
549
  }),
567
550
  (t.updateSchemaData = function (e, t, n) {
568
- var o = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
569
- Object.assign(o, E(t)), this.jsonSchemaChange(n);
551
+ var a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
552
+ Object.assign(a, E(t)), this.jsonSchemaChange(n);
570
553
  }),
571
- (t.editSchemaData = function (e, t, n, o) {
572
- var a = (0, Ie.getParentIndexRoute)(e),
573
- r = (0, Ie.getSchemaByIndexRoute)(a, this.jsonSchema);
554
+ (t.editSchemaData = function (e, t, n, a) {
555
+ var o = (0, Oe.getParentIndexRoute)(e),
556
+ r = (0, Oe.getSchemaByIndexRoute)(o, this.jsonSchema);
574
557
  (r.properties[t] = m()({}, E(r.properties[t]), n)),
575
- this.jsonSchemaChange(o);
558
+ this.jsonSchemaChange(a);
576
559
  }),
577
560
  (t.editJsonKey = function (e, t, n) {
578
- var o = (0, Ie.getSchemaByIndexRoute)(
561
+ var a = (0, Oe.getSchemaByIndexRoute)(
579
562
  e,
580
563
  this.jsonSchema,
581
564
  !0,
582
565
  );
583
- this.insertJsonData(e, t, o, '', !0),
566
+ this.insertJsonData(e, t, a, '', !0),
584
567
  this.deleteJsonByIndex(e, !0),
585
568
  this.jsonSchemaChange(n);
586
569
  }),
587
570
  (t.addNextJsonData = function (e) {
588
- var t = (0, Ie.getParentIndexRoute)(e),
589
- n = (0, Ie.getSchemaByIndexRoute)(t, this.jsonSchema),
590
- o = this.getNewJsonKeyIndex(n);
591
- this.insertJsonData(e, o, we);
571
+ var t = (0, Oe.getParentIndexRoute)(e),
572
+ n = (0, Oe.getSchemaByIndexRoute)(t, this.jsonSchema),
573
+ a = this.getNewJsonKeyIndex(n);
574
+ this.insertJsonData(e, a, je);
592
575
  }),
593
- (t.insertJsonData = function (e, t, n, o, a) {
594
- var r = (0, Ie.getParentIndexRoute_CurIndex)(e),
576
+ (t.insertJsonData = function (e, t, n, a, o) {
577
+ var r = (0, Oe.getParentIndexRoute_CurIndex)(e),
595
578
  i = r[0],
596
579
  s = r[1],
597
- c = (0, Ie.getSchemaByIndexRoute)(i, this.jsonSchema);
580
+ c = (0, Oe.getSchemaByIndexRoute)(i, this.jsonSchema);
598
581
  c.properties[t] = n;
599
582
  var l = c.propertyOrder,
600
- d = 'before' === o ? Number(s) : Number(s) + 1,
601
- p = l.slice(0, d),
602
- u = l.slice(d);
603
- (c.propertyOrder = [].concat(p, [t], u)),
604
- this.jsonSchemaChange(a);
583
+ p = 'before' === a ? Number(s) : Number(s) + 1,
584
+ d = l.slice(0, p),
585
+ u = l.slice(p);
586
+ (c.propertyOrder = [].concat(d, [t], u)),
587
+ this.jsonSchemaChange(o);
605
588
  }),
606
589
  (t.deleteJsonByIndex_CurKey = function (e, t, n) {
607
- var o = (0, Ie.getParentIndexRoute)(e),
608
- a = (0, Ie.getSchemaByIndexRoute)(o, this.jsonSchema);
609
- delete a.properties[t];
610
- var r = a.propertyOrder.indexOf(t);
611
- a.propertyOrder.splice(r, 1), this.jsonSchemaChange(n);
590
+ var a = (0, Oe.getParentIndexRoute)(e),
591
+ o = (0, Oe.getSchemaByIndexRoute)(a, this.jsonSchema);
592
+ delete o.properties[t];
593
+ var r = o.propertyOrder.indexOf(t);
594
+ o.propertyOrder.splice(r, 1), this.jsonSchemaChange(n);
612
595
  }),
613
596
  (t.deleteJsonByIndex = function (e, t) {
614
- var n = (0, Ie.getParentIndexRoute_CurIndex)(e),
615
- o = n[0],
616
- a = n[1],
617
- r = (0, Ie.getSchemaByIndexRoute)(o, this.jsonSchema),
618
- i = r.propertyOrder[a];
597
+ var n = (0, Oe.getParentIndexRoute_CurIndex)(e),
598
+ a = n[0],
599
+ o = n[1],
600
+ r = (0, Oe.getSchemaByIndexRoute)(a, this.jsonSchema),
601
+ i = r.propertyOrder[o];
619
602
  delete r.properties[i];
620
603
  var s = r.propertyOrder.indexOf(i);
621
604
  r.propertyOrder.splice(s, 1), this.jsonSchemaChange(t);
622
605
  }),
623
- (t.updateEnumItem = function (e, t, n, o, a) {
624
- var r = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
606
+ (t.updateEnumItem = function (e, t, n, a, o) {
607
+ var r = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
625
608
  r.enum &&
626
609
  r.enumextra &&
627
- ((r.enum[t] = n), (r.enumextra[t] = o)),
628
- this.jsonSchemaChange(a);
610
+ ((r.enum[t] = n), (r.enumextra[t] = a)),
611
+ this.jsonSchemaChange(o);
629
612
  }),
630
613
  (t.isExitEnumKey = function (e, t, n) {
631
- var o = !1,
632
- a = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
633
- if (a.enum) {
634
- var r = E(a.enum);
635
- t >= 0 && r.splice(t, 1), r.indexOf(n) >= 0 && (o = !0);
614
+ var a = !1,
615
+ o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
616
+ if (o.enum) {
617
+ var r = E(o.enum);
618
+ t >= 0 && r.splice(t, 1), r.indexOf(n) >= 0 && (a = !0);
636
619
  }
637
620
  return (
638
- Ie.KeyWordList &&
639
- Ie.KeyWordList.indexOf(n) >= 0 &&
640
- b.message.warning(
621
+ Oe.KeyWordList &&
622
+ Oe.KeyWordList.indexOf(n) >= 0 &&
623
+ S.message.warning(
641
624
  n +
642
625
  '是JSONSchema的关键字,建议您换一个,避免后续出现数据异常。',
643
626
  ),
644
- o
627
+ a
645
628
  );
646
629
  }),
647
- (t.updateEnumKey = function (e, t, n, o) {
648
- var a = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
649
- a.enum && (a.enum[t] = n), this.jsonSchemaChange(o);
630
+ (t.updateEnumKey = function (e, t, n, a) {
631
+ var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
632
+ o.enum && (o.enum[t] = n), this.jsonSchemaChange(a);
650
633
  }),
651
- (t.updateEnumText = function (e, t, n, o) {
652
- var a = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
653
- a.enumextra && (a.enumextra[t] = n),
654
- this.jsonSchemaChange(o);
634
+ (t.updateEnumText = function (e, t, n, a) {
635
+ var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
636
+ o.enumextra && (o.enumextra[t] = n),
637
+ this.jsonSchemaChange(a);
655
638
  }),
656
639
  (t.deleteEnumItem = function (e, t, n) {
657
- var o = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
658
- o.enum &&
659
- o.enumextra &&
660
- (o.enum.splice(t, 1), o.enumextra.splice(t, 1)),
640
+ var a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
641
+ a.enum &&
642
+ a.enumextra &&
643
+ (a.enum.splice(t, 1), a.enumextra.splice(t, 1)),
661
644
  this.jsonSchemaChange(n);
662
645
  }),
663
- (t.insertEnumItem = function (e, t, n, o, a, r) {
664
- var i = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
646
+ (t.insertEnumItem = function (e, t, n, a, o, r) {
647
+ var i = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
665
648
  if (i.enum && i.enumextra) {
666
- var s = 'before' === a ? Number(t) : Number(t) + 1,
649
+ var s = 'before' === o ? Number(t) : Number(t) + 1,
667
650
  c = i.enum.slice(0, s),
668
651
  l = i.enum.slice(s);
669
652
  i.enum = [].concat(c, [n], l);
670
- var d = i.enumextra.slice(0, s),
671
- p = i.enumextra.slice(s);
672
- i.enumextra = [].concat(d, [o], p);
653
+ var p = i.enumextra.slice(0, s),
654
+ d = i.enumextra.slice(s);
655
+ i.enumextra = [].concat(p, [a], d);
673
656
  }
674
657
  this.jsonSchemaChange(r);
675
658
  }),
@@ -684,70 +667,70 @@
684
667
  );
685
668
  }),
686
669
  (t.addEnumItem = function (e, t) {
687
- var n = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
670
+ var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
688
671
  if (n.enum) {
689
- var o = this.getNewEnumIndex(n.enum),
690
- a = '选项' + (this.curJsonKeyIndex - 1);
691
- this.insertEnumItem(e, t, o, a);
672
+ var a = this.getNewEnumIndex(n.enum),
673
+ o = '选项' + (this.curJsonKeyIndex - 1);
674
+ this.insertEnumItem(e, t, a, o);
692
675
  }
693
676
  }),
694
677
  (t.copyEnumItem = function (e, t) {
695
- var n = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
678
+ var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
696
679
  if (n.enum) {
697
- var o = n.enum[t],
698
- a = n.enumextra[t],
699
- r = this.getNewEnumIndex(n.enum, o),
700
- i = a + '_' + (this.curJsonKeyIndex - 1);
680
+ var a = n.enum[t],
681
+ o = n.enumextra[t],
682
+ r = this.getNewEnumIndex(n.enum, a),
683
+ i = o + '_' + (this.curJsonKeyIndex - 1);
701
684
  this.insertEnumItem(e, t, r, i);
702
685
  }
703
686
  }),
704
- (t.updateOptionItem = function (e, t, n, o, a) {
705
- var r = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
687
+ (t.updateOptionItem = function (e, t, n, a, o) {
688
+ var r = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
706
689
  r.options &&
707
690
  r.options[t] &&
708
- ((r.options[t].label = n), (r.options[t].value = o)),
709
- this.jsonSchemaChange(a);
691
+ ((r.options[t].label = n), (r.options[t].value = a)),
692
+ this.jsonSchemaChange(o);
710
693
  }),
711
694
  (t.isExitOptionLabel = function (e, t) {
712
695
  var n = !1,
713
- o = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
696
+ a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
714
697
  return (
715
- o.options &&
716
- o.options.find(function (e) {
698
+ a.options &&
699
+ a.options.find(function (e) {
717
700
  return e.label === t || e.name === t;
718
701
  }) &&
719
702
  (n = !0),
720
- Ie.KeyWordList &&
721
- Ie.KeyWordList.indexOf(t) >= 0 &&
722
- b.message.warning(
703
+ Oe.KeyWordList &&
704
+ Oe.KeyWordList.indexOf(t) >= 0 &&
705
+ S.message.warning(
723
706
  t + '是JSONSchema的保留关键字,建议您换一个名称。',
724
707
  ),
725
708
  n
726
709
  );
727
710
  }),
728
- (t.updateOptionLabel = function (e, t, n, o) {
729
- var a = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
730
- a.options && a.options[t] && (a.options[t].label = n),
731
- this.jsonSchemaChange(o);
711
+ (t.updateOptionLabel = function (e, t, n, a) {
712
+ var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
713
+ o.options && o.options[t] && (o.options[t].label = n),
714
+ this.jsonSchemaChange(a);
732
715
  }),
733
- (t.updateOptionValue = function (e, t, n, o) {
734
- var a = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
735
- a.options && a.options[t] && (a.options[t].value = n),
736
- this.jsonSchemaChange(o);
716
+ (t.updateOptionValue = function (e, t, n, a) {
717
+ var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
718
+ o.options && o.options[t] && (o.options[t].value = n),
719
+ this.jsonSchemaChange(a);
737
720
  }),
738
721
  (t.deleteOptionItem = function (e, t, n) {
739
- var o = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
740
- o.options && o.options[t] && o.options.splice(t, 1),
722
+ var a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
723
+ a.options && a.options[t] && a.options.splice(t, 1),
741
724
  this.jsonSchemaChange(n);
742
725
  }),
743
- (t.insertOption = function (e, t, n, o, a, r) {
744
- var i = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
726
+ (t.insertOption = function (e, t, n, a, o, r) {
727
+ var i = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
745
728
  if (i.options) {
746
- var s = 'before' === a ? Number(t) : Number(t) + 1,
729
+ var s = 'before' === o ? Number(t) : Number(t) + 1,
747
730
  c = i.options.slice(0, s),
748
731
  l = i.options.slice(s),
749
- d = { label: n, value: o };
750
- i.options = [].concat(c, [d], l);
732
+ p = { label: n, value: a };
733
+ i.options = [].concat(c, [p], l);
751
734
  }
752
735
  this.jsonSchemaChange(r);
753
736
  }),
@@ -757,72 +740,33 @@
757
740
  : 'value1';
758
741
  }),
759
742
  (t.addOptionItem = function (e, t) {
760
- var n = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
743
+ var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
761
744
  if (n.options) {
762
- var o = this.getNewOptionValue(n.options),
763
- a = '选项' + (n.options.length + 1);
764
- this.insertOption(e, t, a, o);
745
+ var a = this.getNewOptionValue(n.options),
746
+ o = '选项' + (n.options.length + 1);
747
+ this.insertOption(e, t, o, a);
765
748
  }
766
749
  }),
767
750
  (t.copyOptionItem = function (e, t) {
768
- var n = (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema);
751
+ var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
769
752
  if (n.options) {
770
753
  n.options[t];
771
- var o = this.getNewOptionValue(n.options),
772
- a = (label, name + '_copy');
773
- this.insertOption(e, t, a, o);
754
+ var a = this.getNewOptionValue(n.options),
755
+ o = (label, name + '_copy');
756
+ this.insertOption(e, t, o, a);
774
757
  }
775
758
  }),
776
- (t.checkConditionProp = function (e) {
777
- var t = !1;
778
- return (
779
- (this.jsonSchema && this.jsonSchema.conditionProps
780
- ? this.jsonSchema.conditionProps
781
- : {})[e] && (t = !0),
782
- t
783
- );
784
- }),
785
- (t.addConditionProp = function (e) {
786
- if (this.jsonSchema) {
787
- this.jsonSchema.conditionProps ||
788
- (this.jsonSchema.conditionProps = {});
789
- var t = this.jsonSchema.conditionProps;
790
- e &&
791
- e.keyRoute &&
792
- ((t[e.keyRoute] = e), this.jsonSchemaChange());
793
- } else b.message.error('当前schema为空');
794
- }),
795
- (t.removeConditionProp = function (e) {
796
- if (this.jsonSchema) {
797
- this.jsonSchema.conditionProps ||
798
- (this.jsonSchema.conditionProps = {});
799
- var t = this.jsonSchema.conditionProps;
800
- e && t[e] && (delete t[e], this.jsonSchemaChange());
801
- } else b.message.error('当前schema为空');
802
- }),
803
- (t.cancelConditionProp = function (e, t) {
804
- if (this.jsonSchema) {
805
- var n = this.getSchemaByKeyRoute(e);
806
- n.isConditionProp = !1;
807
- var o = this.keyRoute2indexRoute(e);
808
- this.editSchemaData(o, t, n);
809
- } else b.message.error('当前schema为空');
810
- }),
811
- (t.deleteSchemaProp = function (e, t, n) {
812
- delete (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema)[t],
813
- this.jsonSchemaChange(n);
814
- }),
815
759
  f()(e, [
816
760
  {
817
761
  key: 'JSONSchemaObj',
818
762
  get: function () {
819
- return (0, x.toJS)(this.jsonSchema);
763
+ return (0, b.toJS)(this.jsonSchema);
820
764
  },
821
765
  },
822
766
  ])
823
767
  );
824
768
  })()),
825
- (fe = v()(ge.prototype, 'triggerChange', [x.observable], {
769
+ (ue = x()(de.prototype, 'triggerChange', [b.observable], {
826
770
  configurable: !0,
827
771
  enumerable: !0,
828
772
  writable: !0,
@@ -830,7 +774,7 @@
830
774
  return !1;
831
775
  },
832
776
  })),
833
- (Se = v()(ge.prototype, 'jsonSchema', [x.observable], {
777
+ (me = x()(de.prototype, 'jsonSchema', [b.observable], {
834
778
  configurable: !0,
835
779
  enumerable: !0,
836
780
  writable: !0,
@@ -838,15 +782,15 @@
838
782
  return {};
839
783
  },
840
784
  })),
841
- (ve = v()(ge.prototype, 'SchemaTypeList', [x.observable], {
785
+ (he = x()(de.prototype, 'SchemaTypeList', [b.observable], {
842
786
  configurable: !0,
843
787
  enumerable: !0,
844
788
  writable: !0,
845
789
  initializer: function () {
846
- return Ne;
790
+ return Ee;
847
791
  },
848
792
  })),
849
- (xe = v()(ge.prototype, 'onChange', [x.observable], {
793
+ (ye = x()(de.prototype, 'onChange', [b.observable], {
850
794
  configurable: !0,
851
795
  enumerable: !0,
852
796
  writable: !0,
@@ -854,350 +798,350 @@
854
798
  return function () {};
855
799
  },
856
800
  })),
857
- v()(
858
- ge.prototype,
801
+ x()(
802
+ de.prototype,
859
803
  'triggerChangeAction',
860
- [O],
804
+ [j],
861
805
  Object.getOwnPropertyDescriptor(
862
- ge.prototype,
806
+ de.prototype,
863
807
  'triggerChangeAction',
864
808
  ),
865
- ge.prototype,
809
+ de.prototype,
866
810
  ),
867
- v()(
868
- ge.prototype,
811
+ x()(
812
+ de.prototype,
869
813
  'initSchemaTypeList',
870
- [R],
814
+ [N],
871
815
  Object.getOwnPropertyDescriptor(
872
- ge.prototype,
816
+ de.prototype,
873
817
  'initSchemaTypeList',
874
818
  ),
875
- ge.prototype,
819
+ de.prototype,
876
820
  ),
877
- v()(
878
- ge.prototype,
821
+ x()(
822
+ de.prototype,
879
823
  'initJSONSchemaData',
880
- [N],
824
+ [I],
881
825
  Object.getOwnPropertyDescriptor(
882
- ge.prototype,
826
+ de.prototype,
883
827
  'initJSONSchemaData',
884
828
  ),
885
- ge.prototype,
829
+ de.prototype,
886
830
  ),
887
- v()(
888
- ge.prototype,
831
+ x()(
832
+ de.prototype,
889
833
  'JSONSchemaObj',
890
- [x.computed],
891
- Object.getOwnPropertyDescriptor(ge.prototype, 'JSONSchemaObj'),
892
- ge.prototype,
834
+ [b.computed],
835
+ Object.getOwnPropertyDescriptor(de.prototype, 'JSONSchemaObj'),
836
+ de.prototype,
893
837
  ),
894
- v()(
895
- ge.prototype,
838
+ x()(
839
+ de.prototype,
896
840
  'initOnChange',
897
- [I],
898
- Object.getOwnPropertyDescriptor(ge.prototype, 'initOnChange'),
899
- ge.prototype,
841
+ [w],
842
+ Object.getOwnPropertyDescriptor(de.prototype, 'initOnChange'),
843
+ de.prototype,
900
844
  ),
901
- v()(
902
- ge.prototype,
845
+ x()(
846
+ de.prototype,
903
847
  'jsonSchemaChange',
904
- [k],
848
+ [R],
905
849
  Object.getOwnPropertyDescriptor(
906
- ge.prototype,
850
+ de.prototype,
907
851
  'jsonSchemaChange',
908
852
  ),
909
- ge.prototype,
853
+ de.prototype,
910
854
  ),
911
- v()(
912
- ge.prototype,
855
+ x()(
856
+ de.prototype,
913
857
  'indexRoute2keyRoute',
914
- [w],
858
+ [K],
915
859
  Object.getOwnPropertyDescriptor(
916
- ge.prototype,
860
+ de.prototype,
917
861
  'indexRoute2keyRoute',
918
862
  ),
919
- ge.prototype,
863
+ de.prototype,
920
864
  ),
921
- v()(
922
- ge.prototype,
865
+ x()(
866
+ de.prototype,
923
867
  'keyRoute2indexRoute',
924
- [K],
868
+ [k],
925
869
  Object.getOwnPropertyDescriptor(
926
- ge.prototype,
870
+ de.prototype,
927
871
  'keyRoute2indexRoute',
928
872
  ),
929
- ge.prototype,
873
+ de.prototype,
930
874
  ),
931
- v()(
932
- ge.prototype,
875
+ x()(
876
+ de.prototype,
933
877
  'getSchemaByIndexRoute',
934
- [P],
878
+ [T],
935
879
  Object.getOwnPropertyDescriptor(
936
- ge.prototype,
880
+ de.prototype,
937
881
  'getSchemaByIndexRoute',
938
882
  ),
939
- ge.prototype,
883
+ de.prototype,
940
884
  ),
941
- v()(
942
- ge.prototype,
885
+ x()(
886
+ de.prototype,
943
887
  'getSchemaByKeyRoute',
944
888
  [J],
945
889
  Object.getOwnPropertyDescriptor(
946
- ge.prototype,
890
+ de.prototype,
947
891
  'getSchemaByKeyRoute',
948
892
  ),
949
- ge.prototype,
893
+ de.prototype,
950
894
  ),
951
- v()(
952
- ge.prototype,
895
+ x()(
896
+ de.prototype,
953
897
  'getNewJsonKeyIndex',
954
898
  [D],
955
899
  Object.getOwnPropertyDescriptor(
956
- ge.prototype,
900
+ de.prototype,
957
901
  'getNewJsonKeyIndex',
958
902
  ),
959
- ge.prototype,
903
+ de.prototype,
960
904
  ),
961
- v()(
962
- ge.prototype,
905
+ x()(
906
+ de.prototype,
963
907
  'isExitJsonKey',
964
- [T],
965
- Object.getOwnPropertyDescriptor(ge.prototype, 'isExitJsonKey'),
966
- ge.prototype,
908
+ [B],
909
+ Object.getOwnPropertyDescriptor(de.prototype, 'isExitJsonKey'),
910
+ de.prototype,
967
911
  ),
968
- v()(
969
- ge.prototype,
912
+ x()(
913
+ de.prototype,
970
914
  'isSupportCurType',
971
- [B],
915
+ [P],
972
916
  Object.getOwnPropertyDescriptor(
973
- ge.prototype,
917
+ de.prototype,
974
918
  'isSupportCurType',
975
919
  ),
976
- ge.prototype,
920
+ de.prototype,
977
921
  ),
978
- v()(
979
- ge.prototype,
922
+ x()(
923
+ de.prototype,
980
924
  'addChildJson',
981
925
  [V],
982
- Object.getOwnPropertyDescriptor(ge.prototype, 'addChildJson'),
983
- ge.prototype,
926
+ Object.getOwnPropertyDescriptor(de.prototype, 'addChildJson'),
927
+ de.prototype,
984
928
  ),
985
- v()(
986
- ge.prototype,
929
+ x()(
930
+ de.prototype,
987
931
  'changeType',
988
932
  [L],
989
- Object.getOwnPropertyDescriptor(ge.prototype, 'changeType'),
990
- ge.prototype,
933
+ Object.getOwnPropertyDescriptor(de.prototype, 'changeType'),
934
+ de.prototype,
991
935
  ),
992
- v()(
993
- ge.prototype,
936
+ x()(
937
+ de.prototype,
994
938
  'updateSchemaData',
995
939
  [F],
996
940
  Object.getOwnPropertyDescriptor(
997
- ge.prototype,
941
+ de.prototype,
998
942
  'updateSchemaData',
999
943
  ),
1000
- ge.prototype,
944
+ de.prototype,
1001
945
  ),
1002
- v()(
1003
- ge.prototype,
946
+ x()(
947
+ de.prototype,
1004
948
  'editSchemaData',
1005
949
  [q],
1006
- Object.getOwnPropertyDescriptor(ge.prototype, 'editSchemaData'),
1007
- ge.prototype,
950
+ Object.getOwnPropertyDescriptor(de.prototype, 'editSchemaData'),
951
+ de.prototype,
1008
952
  ),
1009
- v()(
1010
- ge.prototype,
953
+ x()(
954
+ de.prototype,
1011
955
  'editJsonKey',
1012
956
  [A],
1013
- Object.getOwnPropertyDescriptor(ge.prototype, 'editJsonKey'),
1014
- ge.prototype,
957
+ Object.getOwnPropertyDescriptor(de.prototype, 'editJsonKey'),
958
+ de.prototype,
1015
959
  ),
1016
- v()(
1017
- ge.prototype,
960
+ x()(
961
+ de.prototype,
1018
962
  'addNextJsonData',
1019
963
  [_],
1020
964
  Object.getOwnPropertyDescriptor(
1021
- ge.prototype,
965
+ de.prototype,
1022
966
  'addNextJsonData',
1023
967
  ),
1024
- ge.prototype,
968
+ de.prototype,
1025
969
  ),
1026
- v()(
1027
- ge.prototype,
970
+ x()(
971
+ de.prototype,
1028
972
  'insertJsonData',
1029
973
  [M],
1030
- Object.getOwnPropertyDescriptor(ge.prototype, 'insertJsonData'),
1031
- ge.prototype,
974
+ Object.getOwnPropertyDescriptor(de.prototype, 'insertJsonData'),
975
+ de.prototype,
1032
976
  ),
1033
- v()(
1034
- ge.prototype,
977
+ x()(
978
+ de.prototype,
1035
979
  'deleteJsonByIndex_CurKey',
1036
- [H],
980
+ [W],
1037
981
  Object.getOwnPropertyDescriptor(
1038
- ge.prototype,
982
+ de.prototype,
1039
983
  'deleteJsonByIndex_CurKey',
1040
984
  ),
1041
- ge.prototype,
985
+ de.prototype,
1042
986
  ),
1043
- v()(
1044
- ge.prototype,
987
+ x()(
988
+ de.prototype,
1045
989
  'deleteJsonByIndex',
1046
- [z],
990
+ [G],
1047
991
  Object.getOwnPropertyDescriptor(
1048
- ge.prototype,
992
+ de.prototype,
1049
993
  'deleteJsonByIndex',
1050
994
  ),
1051
- ge.prototype,
995
+ de.prototype,
1052
996
  ),
1053
- v()(
1054
- ge.prototype,
997
+ x()(
998
+ de.prototype,
1055
999
  'updateEnumItem',
1056
- [G],
1057
- Object.getOwnPropertyDescriptor(ge.prototype, 'updateEnumItem'),
1058
- ge.prototype,
1000
+ [z],
1001
+ Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumItem'),
1002
+ de.prototype,
1059
1003
  ),
1060
- v()(
1061
- ge.prototype,
1004
+ x()(
1005
+ de.prototype,
1062
1006
  'isExitEnumKey',
1063
- [W],
1064
- Object.getOwnPropertyDescriptor(ge.prototype, 'isExitEnumKey'),
1065
- ge.prototype,
1007
+ [U],
1008
+ Object.getOwnPropertyDescriptor(de.prototype, 'isExitEnumKey'),
1009
+ de.prototype,
1066
1010
  ),
1067
- v()(
1068
- ge.prototype,
1011
+ x()(
1012
+ de.prototype,
1069
1013
  'updateEnumKey',
1070
- [U],
1071
- Object.getOwnPropertyDescriptor(ge.prototype, 'updateEnumKey'),
1072
- ge.prototype,
1014
+ [H],
1015
+ Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumKey'),
1016
+ de.prototype,
1073
1017
  ),
1074
- v()(
1075
- ge.prototype,
1018
+ x()(
1019
+ de.prototype,
1076
1020
  'updateEnumText',
1077
1021
  [Q],
1078
- Object.getOwnPropertyDescriptor(ge.prototype, 'updateEnumText'),
1079
- ge.prototype,
1022
+ Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumText'),
1023
+ de.prototype,
1080
1024
  ),
1081
- v()(
1082
- ge.prototype,
1025
+ x()(
1026
+ de.prototype,
1083
1027
  'deleteEnumItem',
1084
1028
  [X],
1085
- Object.getOwnPropertyDescriptor(ge.prototype, 'deleteEnumItem'),
1086
- ge.prototype,
1029
+ Object.getOwnPropertyDescriptor(de.prototype, 'deleteEnumItem'),
1030
+ de.prototype,
1087
1031
  ),
1088
- v()(
1089
- ge.prototype,
1032
+ x()(
1033
+ de.prototype,
1090
1034
  'insertEnumItem',
1091
1035
  [Y],
1092
- Object.getOwnPropertyDescriptor(ge.prototype, 'insertEnumItem'),
1093
- ge.prototype,
1036
+ Object.getOwnPropertyDescriptor(de.prototype, 'insertEnumItem'),
1037
+ de.prototype,
1094
1038
  ),
1095
- v()(
1096
- ge.prototype,
1039
+ x()(
1040
+ de.prototype,
1097
1041
  'getNewEnumIndex',
1098
1042
  [Z],
1099
1043
  Object.getOwnPropertyDescriptor(
1100
- ge.prototype,
1044
+ de.prototype,
1101
1045
  'getNewEnumIndex',
1102
1046
  ),
1103
- ge.prototype,
1047
+ de.prototype,
1104
1048
  ),
1105
- v()(
1106
- ge.prototype,
1049
+ x()(
1050
+ de.prototype,
1107
1051
  'addEnumItem',
1108
1052
  [$],
1109
- Object.getOwnPropertyDescriptor(ge.prototype, 'addEnumItem'),
1110
- ge.prototype,
1053
+ Object.getOwnPropertyDescriptor(de.prototype, 'addEnumItem'),
1054
+ de.prototype,
1111
1055
  ),
1112
- v()(
1113
- ge.prototype,
1056
+ x()(
1057
+ de.prototype,
1114
1058
  'copyEnumItem',
1115
1059
  [ee],
1116
- Object.getOwnPropertyDescriptor(ge.prototype, 'copyEnumItem'),
1117
- ge.prototype,
1060
+ Object.getOwnPropertyDescriptor(de.prototype, 'copyEnumItem'),
1061
+ de.prototype,
1118
1062
  ),
1119
- v()(
1120
- ge.prototype,
1063
+ x()(
1064
+ de.prototype,
1121
1065
  'updateOptionItem',
1122
1066
  [te],
1123
1067
  Object.getOwnPropertyDescriptor(
1124
- ge.prototype,
1068
+ de.prototype,
1125
1069
  'updateOptionItem',
1126
1070
  ),
1127
- ge.prototype,
1071
+ de.prototype,
1128
1072
  ),
1129
- v()(
1130
- ge.prototype,
1073
+ x()(
1074
+ de.prototype,
1131
1075
  'isExitOptionLabel',
1132
1076
  [ne],
1133
1077
  Object.getOwnPropertyDescriptor(
1134
- ge.prototype,
1078
+ de.prototype,
1135
1079
  'isExitOptionLabel',
1136
1080
  ),
1137
- ge.prototype,
1081
+ de.prototype,
1138
1082
  ),
1139
- v()(
1140
- ge.prototype,
1083
+ x()(
1084
+ de.prototype,
1141
1085
  'updateOptionLabel',
1142
- [oe],
1086
+ [ae],
1143
1087
  Object.getOwnPropertyDescriptor(
1144
- ge.prototype,
1088
+ de.prototype,
1145
1089
  'updateOptionLabel',
1146
1090
  ),
1147
- ge.prototype,
1091
+ de.prototype,
1148
1092
  ),
1149
- v()(
1150
- ge.prototype,
1093
+ x()(
1094
+ de.prototype,
1151
1095
  'updateOptionValue',
1152
- [ae],
1096
+ [oe],
1153
1097
  Object.getOwnPropertyDescriptor(
1154
- ge.prototype,
1098
+ de.prototype,
1155
1099
  'updateOptionValue',
1156
1100
  ),
1157
- ge.prototype,
1101
+ de.prototype,
1158
1102
  ),
1159
- v()(
1160
- ge.prototype,
1103
+ x()(
1104
+ de.prototype,
1161
1105
  'deleteOptionItem',
1162
1106
  [re],
1163
1107
  Object.getOwnPropertyDescriptor(
1164
- ge.prototype,
1108
+ de.prototype,
1165
1109
  'deleteOptionItem',
1166
1110
  ),
1167
- ge.prototype,
1111
+ de.prototype,
1168
1112
  ),
1169
- v()(
1170
- ge.prototype,
1113
+ x()(
1114
+ de.prototype,
1171
1115
  'insertOption',
1172
1116
  [ie],
1173
- Object.getOwnPropertyDescriptor(ge.prototype, 'insertOption'),
1174
- ge.prototype,
1117
+ Object.getOwnPropertyDescriptor(de.prototype, 'insertOption'),
1118
+ de.prototype,
1175
1119
  ),
1176
- v()(
1177
- ge.prototype,
1120
+ x()(
1121
+ de.prototype,
1178
1122
  'getNewOptionValue',
1179
1123
  [se],
1180
1124
  Object.getOwnPropertyDescriptor(
1181
- ge.prototype,
1125
+ de.prototype,
1182
1126
  'getNewOptionValue',
1183
1127
  ),
1184
- ge.prototype,
1128
+ de.prototype,
1185
1129
  ),
1186
- v()(
1187
- ge.prototype,
1130
+ x()(
1131
+ de.prototype,
1188
1132
  'addOptionItem',
1189
1133
  [ce],
1190
- Object.getOwnPropertyDescriptor(ge.prototype, 'addOptionItem'),
1191
- ge.prototype,
1134
+ Object.getOwnPropertyDescriptor(de.prototype, 'addOptionItem'),
1135
+ de.prototype,
1192
1136
  ),
1193
- v()(
1194
- ge.prototype,
1137
+ x()(
1138
+ de.prototype,
1195
1139
  'copyOptionItem',
1196
1140
  [le],
1197
- Object.getOwnPropertyDescriptor(ge.prototype, 'copyOptionItem'),
1198
- ge.prototype,
1141
+ Object.getOwnPropertyDescriptor(de.prototype, 'copyOptionItem'),
1142
+ de.prototype,
1199
1143
  ),
1200
- (be = v()(ge.prototype, 'childElemSort', [de], {
1144
+ (ge = x()(de.prototype, 'childElemSort', [pe], {
1201
1145
  configurable: !0,
1202
1146
  enumerable: !0,
1203
1147
  writable: !0,
@@ -1205,26 +1149,26 @@
1205
1149
  var e = this;
1206
1150
  return function (t) {
1207
1151
  for (
1208
- var n = (0, Ie.getSchemaByIndexRoute)(t, e.jsonSchema),
1209
- o = n.propertyOrder,
1210
- a = [],
1152
+ var n = (0, Oe.getSchemaByIndexRoute)(t, e.jsonSchema),
1153
+ a = n.propertyOrder,
1154
+ o = [],
1211
1155
  r = [],
1212
1156
  i = [],
1213
1157
  s = [],
1214
1158
  c = [],
1215
1159
  l = [],
1216
- d = [],
1217
1160
  p = [],
1161
+ d = [],
1218
1162
  u = 0,
1219
- m = o.length;
1163
+ m = a.length;
1220
1164
  u < m;
1221
1165
  u++
1222
1166
  ) {
1223
- var h = o[u];
1167
+ var h = a[u];
1224
1168
  switch (n.properties[h].type) {
1225
1169
  case 'input':
1226
1170
  case 'url':
1227
- a.push(h);
1171
+ o.push(h);
1228
1172
  break;
1229
1173
  case 'number':
1230
1174
  case 'quantity':
@@ -1252,259 +1196,117 @@
1252
1196
  break;
1253
1197
  case 'object':
1254
1198
  case 'array':
1255
- d.push(h);
1199
+ p.push(h);
1256
1200
  break;
1257
1201
  default:
1258
- p.push(h);
1202
+ d.push(h);
1259
1203
  }
1260
1204
  }
1261
- (n.propertyOrder = [].concat(a, r, i, s, l, c, d, p)),
1205
+ (n.propertyOrder = [].concat(o, r, i, s, l, c, p, d)),
1262
1206
  e.jsonSchemaChange();
1263
1207
  };
1264
1208
  },
1265
1209
  })),
1266
- v()(
1267
- ge.prototype,
1268
- 'checkConditionProp',
1269
- [pe],
1270
- Object.getOwnPropertyDescriptor(
1271
- ge.prototype,
1272
- 'checkConditionProp',
1273
- ),
1274
- ge.prototype,
1275
- ),
1276
- v()(
1277
- ge.prototype,
1278
- 'addConditionProp',
1279
- [ue],
1280
- Object.getOwnPropertyDescriptor(
1281
- ge.prototype,
1282
- 'addConditionProp',
1283
- ),
1284
- ge.prototype,
1285
- ),
1286
- v()(
1287
- ge.prototype,
1288
- 'removeConditionProp',
1289
- [me],
1290
- Object.getOwnPropertyDescriptor(
1291
- ge.prototype,
1292
- 'removeConditionProp',
1293
- ),
1294
- ge.prototype,
1295
- ),
1296
- v()(
1297
- ge.prototype,
1298
- 'cancelConditionProp',
1299
- [he],
1300
- Object.getOwnPropertyDescriptor(
1301
- ge.prototype,
1302
- 'cancelConditionProp',
1303
- ),
1304
- ge.prototype,
1305
- ),
1306
- v()(
1307
- ge.prototype,
1308
- 'deleteSchemaProp',
1309
- [ye],
1310
- Object.getOwnPropertyDescriptor(
1311
- ge.prototype,
1312
- 'deleteSchemaProp',
1313
- ),
1314
- ge.prototype,
1315
- ),
1316
- ge),
1210
+ de),
1317
1211
  },
1318
- Pe = require('@ant-design/icons'),
1319
- Je = b.Select.Option,
1320
- De = (0, l.inject)(function (e) {
1321
- return {
1322
- getSchemaByKeyRoute: e.jsonSchemaStore.getSchemaByKeyRoute,
1323
- };
1324
- })(
1325
- (0, l.observer)(function (e) {
1326
- var t = e.conditionRule,
1327
- n = e.hiddenRuleConditionValueChange,
1328
- o = e.getSchemaByKeyRoute,
1329
- a = {};
1330
- if (t.conditionProp && t.conditionProp.keyRoute) {
1331
- var r = o(t.conditionProp.keyRoute);
1332
- r.items && (a = r.items);
1333
- }
1334
- return !t.conditionProp ||
1335
- ('radio' !== t.conditionProp.type &&
1336
- 'select' !== t.conditionProp.type)
1337
- ? t.conditionProp && 'boolean' === t.conditionProp.type
1338
- ? i().createElement(
1339
- b.Radio.Group,
1340
- {
1341
- style: { display: 'inline-block' },
1342
- onChange: function (e) {
1343
- n(e.target.value);
1344
- },
1345
- defaultValue: t.conditionValue,
1346
- },
1347
- i().createElement(
1348
- b.Radio,
1349
- { value: !0, key: !0 },
1350
- 'true',
1351
- ),
1352
- i().createElement(
1353
- b.Radio,
1354
- { value: !1, key: !1 },
1355
- 'false',
1356
- ),
1357
- )
1358
- : i().createElement(b.Input, {
1359
- defaultValue: t.conditionValue,
1360
- onPressEnter: function (e) {
1361
- return n(e.target.value);
1362
- },
1363
- onBlur: function (e) {
1364
- return n(e.target.value);
1365
- },
1366
- })
1367
- : i().createElement(
1368
- b.Select,
1369
- {
1370
- showSearch: !0,
1371
- defaultValue: t.conditionValue,
1372
- style: { width: 150 },
1373
- onChange: function (e) {
1374
- n(e);
1375
- },
1376
- },
1377
- a &&
1378
- a.enum &&
1379
- a.enum.map(function (e, n) {
1380
- return i().createElement(
1381
- Je,
1382
- { key: e, value: e, select: e === t.conditionValue },
1383
- a.enumextra[n],
1384
- );
1385
- }),
1386
- );
1387
- }),
1388
- );
1212
+ Ie = require('@ant-design/icons');
1389
1213
  n(975);
1390
- var Te = b.Input.TextArea,
1391
- Be = b.Select.Option,
1392
- Ve = (function (e) {
1393
- function t(t) {
1394
- var n;
1395
- return (
1396
- ((n = e.call(this, t) || this).handleValueChange = function (
1397
- e,
1398
- t,
1399
- ) {
1400
- var o = n.props,
1401
- a = o.indexRoute,
1402
- r = o.jsonKey,
1403
- i = o.targetJsonSchema,
1404
- s = o.editSchemaData;
1405
- if (i[e] !== t) {
1406
- var c = {};
1407
- (c[e] = t), s(a, r, c);
1408
- }
1409
- }),
1410
- (n.renderDefaultContent = function (e, t, o) {
1411
- if ('boolean' === e)
1412
- return r.createElement(b.Switch, {
1413
- style: { display: 'inline-block' },
1414
- defaultChecked: t.default,
1415
- checkedChildren: 'true',
1416
- unCheckedChildren: 'false',
1417
- onChange: function (e) {
1418
- n.handleValueChange('default', e);
1419
- },
1420
- });
1421
- if ('checkboxes' === e || ('select' === e && t.multiple)) {
1422
- var a = t.options;
1423
- return r.createElement(
1424
- b.Checkbox.Group,
1425
- {
1214
+ var we = S.Input.TextArea,
1215
+ Re =
1216
+ (S.Select.Option,
1217
+ (function (e) {
1218
+ function t(t) {
1219
+ var n;
1220
+ return (
1221
+ ((n = e.call(this, t) || this).handleValueChange = function (
1222
+ e,
1223
+ t,
1224
+ ) {
1225
+ var a = (n.props.schemaStore || {}).editSchemaData,
1226
+ o = n.props,
1227
+ r = o.indexRoute,
1228
+ i = o.jsonKey;
1229
+ if (o.targetJsonSchema[e] !== t) {
1230
+ var s = {};
1231
+ (s[e] = t), a(r, i, s);
1232
+ }
1233
+ }),
1234
+ (n.renderDefaultContent = function (e, t, a) {
1235
+ if ('boolean' === e)
1236
+ return r.createElement(S.Switch, {
1426
1237
  style: { display: 'inline-block' },
1238
+ defaultChecked: t.default,
1239
+ checkedChildren: 'true',
1240
+ unCheckedChildren: 'false',
1427
1241
  onChange: function (e) {
1428
1242
  n.handleValueChange('default', e);
1429
1243
  },
1430
- defaultValue: t.default,
1431
- },
1432
- a &&
1433
- a.length > 0 &&
1434
- a.map(function (e, t) {
1435
- var n = o + '-options-' + t;
1436
- return r.createElement(
1437
- b.Checkbox,
1438
- { value: e.value, key: n },
1439
- e.label || e.name,
1440
- );
1441
- }),
1442
- );
1443
- }
1444
- if ('radio' === e || 'select' === e) {
1445
- var i = t.options;
1446
- return r.createElement(
1447
- b.Radio.Group,
1448
- {
1449
- style: { display: 'inline-block' },
1450
- defaultValue: t.default,
1451
- onChange: function (e) {
1452
- var t = e.target.value;
1453
- n.handleValueChange('default', t);
1454
- },
1455
- },
1456
- i &&
1457
- i.length > 0 &&
1458
- i.map(function (e, t) {
1459
- var n = o + '-options-' + t;
1460
- return r.createElement(
1461
- b.Radio,
1462
- { value: e.value, key: n },
1463
- e.label || e.name,
1464
- );
1465
- }),
1466
- );
1467
- }
1468
- return 'color' === e
1469
- ? r.createElement(b.Input, {
1470
- style: { display: 'inline-block' },
1471
- className: 'color-item-form',
1472
- type: 'color',
1473
- defaultValue: t.default,
1474
- onChange: function (e) {
1475
- var t = e.target.value;
1476
- n.handleValueChange('default', t);
1244
+ });
1245
+ if ('checkboxes' === e || ('select' === e && t.multiple)) {
1246
+ var o = t.options;
1247
+ return r.createElement(
1248
+ S.Checkbox.Group,
1249
+ {
1250
+ style: { display: 'inline-block' },
1251
+ onChange: function (e) {
1252
+ n.handleValueChange('default', e);
1253
+ },
1254
+ defaultValue: t.default,
1477
1255
  },
1478
- })
1479
- : 'textarea' === e ||
1480
- 'codearea' === e ||
1481
- 'htmlarea' === e ||
1482
- 'json' === e
1483
- ? r.createElement(Te, {
1256
+ o &&
1257
+ o.length > 0 &&
1258
+ o.map(function (e, t) {
1259
+ var n = a + '-options-' + t;
1260
+ return r.createElement(
1261
+ S.Checkbox,
1262
+ { value: e.value, key: n },
1263
+ e.label || e.name,
1264
+ );
1265
+ }),
1266
+ );
1267
+ }
1268
+ if ('radio' === e || 'select' === e) {
1269
+ var i = t.options;
1270
+ return r.createElement(
1271
+ S.Radio.Group,
1272
+ {
1484
1273
  style: { display: 'inline-block' },
1485
- rows: 4,
1486
- placeholder: '请输入' + t.title + '的默认值',
1487
1274
  defaultValue: t.default,
1488
- onPressEnter: function (e) {
1275
+ onChange: function (e) {
1489
1276
  var t = e.target.value;
1490
1277
  n.handleValueChange('default', t);
1491
1278
  },
1492
- onBlur: function (e) {
1279
+ },
1280
+ i &&
1281
+ i.length > 0 &&
1282
+ i.map(function (e, t) {
1283
+ var n = a + '-options-' + t;
1284
+ return r.createElement(
1285
+ S.Radio,
1286
+ { value: e.value, key: n },
1287
+ e.label || e.name,
1288
+ );
1289
+ }),
1290
+ );
1291
+ }
1292
+ return 'color' === e
1293
+ ? r.createElement(S.Input, {
1294
+ style: { display: 'inline-block' },
1295
+ className: 'color-item-form',
1296
+ type: 'color',
1297
+ defaultValue: t.default,
1298
+ onChange: function (e) {
1493
1299
  var t = e.target.value;
1494
1300
  n.handleValueChange('default', t);
1495
1301
  },
1496
1302
  })
1497
- : 'number' === e
1498
- ? r.createElement(b.InputNumber, {
1499
- style: { display: 'inline-block' },
1500
- placeholder: '请输入' + t.title + '的默认值',
1501
- defaultValue: t.default,
1502
- onChange: function (e) {
1503
- n.handleValueChange('default', e);
1504
- },
1505
- })
1506
- : r.createElement(b.Input, {
1303
+ : 'textarea' === e ||
1304
+ 'codearea' === e ||
1305
+ 'htmlarea' === e ||
1306
+ 'json' === e
1307
+ ? r.createElement(we, {
1507
1308
  style: { display: 'inline-block' },
1309
+ rows: 4,
1508
1310
  placeholder: '请输入' + t.title + '的默认值',
1509
1311
  defaultValue: t.default,
1510
1312
  onPressEnter: function (e) {
@@ -1515,79 +1317,47 @@
1515
1317
  var t = e.target.value;
1516
1318
  n.handleValueChange('default', t);
1517
1319
  },
1518
- });
1519
- }),
1520
- (n.curConditionPropChange = function (e, t) {
1521
- var o = n.props,
1522
- a = o.indexRoute,
1523
- r = o.jsonKey,
1524
- i = o.targetJsonSchema,
1525
- s = o.addConditionProp,
1526
- c = o.removeConditionProp,
1527
- l = o.indexRoute2keyRoute,
1528
- d = t || l(a);
1529
- e
1530
- ? (s({
1531
- key: r,
1532
- keyRoute: d,
1533
- title: i.title,
1534
- format: i.type,
1535
- type: i.type,
1536
- }),
1537
- n.handleValueChange('isConditionProp', !0))
1538
- : (c(d), n.handleValueChange('isConditionProp', !1));
1539
- }),
1540
- (n.deleteHiddenRule = function () {
1541
- var e = n.props,
1542
- t = e.indexRoute;
1543
- (0, e.deleteSchemaProp)(t, 'hiddenRule');
1544
- }),
1545
- (n.addHiddenRule = function () {
1546
- n.handleValueChange('hiddenRule', {});
1547
- }),
1548
- (n.hiddenRuleConditionChange = function (e) {
1549
- var t = n.props.targetJsonSchema,
1550
- o = {};
1551
- t.hiddenRule && (o = (0, x.toJS)(t.hiddenRule)),
1552
- (o.conditionProp = e),
1553
- n.handleValueChange('hiddenRule', o);
1554
- }),
1555
- (n.hiddenRuleConditionValueChange = function (e) {
1556
- var t = n.props.targetJsonSchema,
1557
- o = {};
1558
- t.hiddenRule && (o = (0, x.toJS)(t.hiddenRule)),
1559
- (o.conditionValue = e),
1560
- n.handleValueChange('hiddenRule', o);
1561
- }),
1562
- (n.handleValueChange = n.handleValueChange.bind(n)),
1563
- n
1564
- );
1565
- }
1566
- return (
1567
- a()(t, e),
1568
- (t.prototype.render = function () {
1569
- var e,
1570
- t,
1571
- n = this,
1572
- o = this.props,
1573
- a = o.nodeKey,
1574
- i = o.indexRoute,
1575
- s = o.targetJsonSchema,
1576
- c = o.checkConditionProp,
1577
- l = o.jsonSchema,
1578
- d = o.indexRoute2keyRoute,
1579
- p = s.type,
1580
- u = d(i);
1581
- t = (0, Ie.hasProperties)(s.isConditionProp)
1582
- ? s.isConditionProp
1583
- : c(u);
1584
- var m = {};
1585
- l.conditionProps && (m = l.conditionProps);
1586
- var h = Object.keys(m),
1587
- y = {};
1588
- return (
1589
- s.hiddenRule && (y = s.hiddenRule),
1590
- r.createElement(
1320
+ })
1321
+ : 'number' === e
1322
+ ? r.createElement(S.InputNumber, {
1323
+ style: { display: 'inline-block' },
1324
+ placeholder: '请输入' + t.title + '的默认值',
1325
+ defaultValue: t.default,
1326
+ onChange: function (e) {
1327
+ n.handleValueChange('default', e);
1328
+ },
1329
+ })
1330
+ : r.createElement(S.Input, {
1331
+ style: { display: 'inline-block' },
1332
+ placeholder: '请输入' + t.title + '的默认值',
1333
+ defaultValue: t.default,
1334
+ onPressEnter: function (e) {
1335
+ var t = e.target.value;
1336
+ n.handleValueChange('default', t);
1337
+ },
1338
+ onBlur: function (e) {
1339
+ var t = e.target.value;
1340
+ n.handleValueChange('default', t);
1341
+ },
1342
+ });
1343
+ }),
1344
+ (n.handleValueChange = n.handleValueChange.bind(n)),
1345
+ n
1346
+ );
1347
+ }
1348
+ return (
1349
+ o()(t, e),
1350
+ (t.prototype.render = function () {
1351
+ var e,
1352
+ t = this,
1353
+ n = (this.props.schemaStore || {}).indexRoute2keyRoute,
1354
+ a = this.props,
1355
+ o = a.nodeKey,
1356
+ i = a.indexRoute,
1357
+ s = a.targetJsonSchema,
1358
+ c = s.type,
1359
+ l = (n(i), s.isConditionProp);
1360
+ return r.createElement(
1591
1361
  'div',
1592
1362
  { className: 'advance-config-model' },
1593
1363
  (function (e) {
@@ -1603,23 +1373,24 @@
1603
1373
  'date',
1604
1374
  'date-time',
1605
1375
  'time',
1376
+ 'input-image',
1606
1377
  ].indexOf(e) > -1
1607
1378
  );
1608
- })(p) &&
1379
+ })(c) &&
1609
1380
  r.createElement(
1610
1381
  'div',
1611
1382
  {
1612
1383
  className: 'wide-screen-element-warp',
1613
- key: a + '-isConditionProp-' + t,
1384
+ key: o + '-isConditionProp',
1614
1385
  },
1615
1386
  r.createElement(
1616
1387
  'div',
1617
1388
  { className: 'element-title' },
1618
1389
  r.createElement(
1619
- b.Tooltip,
1390
+ S.Tooltip,
1620
1391
  {
1621
1392
  title:
1622
- '当前属性设置为条件字段后,其他字段可以根据其数值做对应的联动',
1393
+ '设置为条件字段后,其他字段可根据其数值变化进行实时联动',
1623
1394
  placement: 'top',
1624
1395
  },
1625
1396
  r.createElement(
@@ -1636,32 +1407,32 @@
1636
1407
  'div',
1637
1408
  {
1638
1409
  className: 'form-item-box',
1639
- key: a + '-isConditionProp-switch-' + t,
1410
+ key: o + '-isConditionProp-switch',
1640
1411
  },
1641
- r.createElement(b.Switch, {
1412
+ r.createElement(S.Switch, {
1642
1413
  style: { display: 'inline-block' },
1643
- defaultChecked: t,
1414
+ defaultChecked: l,
1644
1415
  checkedChildren: '是',
1645
1416
  unCheckedChildren: '否',
1646
1417
  onChange: function (e) {
1647
- n.curConditionPropChange(e, u);
1418
+ t.handleValueChange('isConditionProp', e);
1648
1419
  },
1649
1420
  }),
1650
1421
  ),
1651
1422
  ),
1652
1423
  ),
1653
- 'select' === p &&
1424
+ 'select' === c &&
1654
1425
  r.createElement(
1655
1426
  'div',
1656
1427
  {
1657
1428
  className: 'wide-screen-element-warp',
1658
- key: a + '-selectConfig',
1429
+ key: o + '-selectConfig',
1659
1430
  },
1660
1431
  r.createElement(
1661
1432
  'div',
1662
1433
  { className: 'element-title' },
1663
1434
  r.createElement(
1664
- b.Tooltip,
1435
+ S.Tooltip,
1665
1436
  {
1666
1437
  title:
1667
1438
  '开启多选后,select下拉列表支持选择多个选项。',
@@ -1681,15 +1452,15 @@
1681
1452
  'div',
1682
1453
  {
1683
1454
  className: 'form-item-box',
1684
- key: a + '-selectConfig-multiple',
1455
+ key: o + '-selectConfig-multiple',
1685
1456
  },
1686
- r.createElement(b.Switch, {
1457
+ r.createElement(S.Switch, {
1687
1458
  style: { display: 'inline-block' },
1688
1459
  defaultChecked: s.multiple,
1689
1460
  checkedChildren: '多选',
1690
1461
  unCheckedChildren: '单选',
1691
1462
  onChange: function (e) {
1692
- n.handleValueChange('multiple', e);
1463
+ t.handleValueChange('multiple', e);
1693
1464
  },
1694
1465
  }),
1695
1466
  ),
@@ -1698,7 +1469,7 @@
1698
1469
  (function (e) {
1699
1470
  return (
1700
1471
  []
1701
- .concat(Ee, [
1472
+ .concat(fe, [
1702
1473
  'quantity',
1703
1474
  'text-editor',
1704
1475
  'json',
@@ -1707,18 +1478,18 @@
1707
1478
  ])
1708
1479
  .indexOf(e) > -1
1709
1480
  );
1710
- })(p) &&
1481
+ })(c) &&
1711
1482
  r.createElement(
1712
1483
  'div',
1713
1484
  {
1714
1485
  className: 'wide-screen-element-warp',
1715
- key: a + '-readOnly-' + s.readOnly,
1486
+ key: o + '-readOnly-' + s.readOnly,
1716
1487
  },
1717
1488
  r.createElement(
1718
1489
  'div',
1719
1490
  { className: 'element-title' },
1720
1491
  r.createElement(
1721
- b.Tooltip,
1492
+ S.Tooltip,
1722
1493
  {
1723
1494
  title:
1724
1495
  '当前属性设置为只读后,用户不能对其进行任何编辑操作',
@@ -1737,13 +1508,13 @@
1737
1508
  r.createElement(
1738
1509
  'div',
1739
1510
  { className: 'form-item-box' },
1740
- r.createElement(b.Switch, {
1511
+ r.createElement(S.Switch, {
1741
1512
  style: { display: 'inline-block' },
1742
1513
  defaultChecked: s.readOnly,
1743
1514
  checkedChildren: 'true',
1744
1515
  unCheckedChildren: 'false',
1745
1516
  onChange: function (e) {
1746
- n.handleValueChange('readOnly', e);
1517
+ t.handleValueChange('readOnly', e);
1747
1518
  },
1748
1519
  }),
1749
1520
  ),
@@ -1752,7 +1523,7 @@
1752
1523
  (function (e) {
1753
1524
  return (
1754
1525
  []
1755
- .concat(Ee, [
1526
+ .concat(fe, [
1756
1527
  'quantity',
1757
1528
  'text-editor',
1758
1529
  'json',
@@ -1761,18 +1532,18 @@
1761
1532
  ])
1762
1533
  .indexOf(e) > -1
1763
1534
  );
1764
- })(p) &&
1535
+ })(c) &&
1765
1536
  r.createElement(
1766
1537
  'div',
1767
1538
  {
1768
1539
  className: 'wide-screen-element-warp',
1769
- key: a + '-isRequired-' + s.isRequired,
1540
+ key: o + '-isRequired-' + s.isRequired,
1770
1541
  },
1771
1542
  r.createElement(
1772
1543
  'div',
1773
1544
  { className: 'element-title' },
1774
1545
  r.createElement(
1775
- b.Tooltip,
1546
+ S.Tooltip,
1776
1547
  {
1777
1548
  title:
1778
1549
  '当前属性设置为必填项后,如果用户没有给其设置数值,则会进行标红提示。',
@@ -1791,13 +1562,13 @@
1791
1562
  r.createElement(
1792
1563
  'div',
1793
1564
  { className: 'form-item-box' },
1794
- r.createElement(b.Switch, {
1565
+ r.createElement(S.Switch, {
1795
1566
  style: { display: 'inline-block' },
1796
1567
  defaultChecked: s.isRequired,
1797
1568
  checkedChildren: 'true',
1798
1569
  unCheckedChildren: 'false',
1799
1570
  onChange: function (e) {
1800
- n.handleValueChange('isRequired', e);
1571
+ t.handleValueChange('isRequired', e);
1801
1572
  },
1802
1573
  }),
1803
1574
  ),
@@ -1806,21 +1577,21 @@
1806
1577
  (function (e) {
1807
1578
  return (
1808
1579
  []
1809
- .concat(Ee, ['json', 'codearea', 'htmlarea'])
1580
+ .concat(fe, ['json', 'codearea', 'htmlarea'])
1810
1581
  .indexOf(e) > -1
1811
1582
  );
1812
- })(p) &&
1583
+ })(c) &&
1813
1584
  r.createElement(
1814
1585
  'div',
1815
1586
  {
1816
1587
  className: 'wide-screen-element-warp',
1817
- key: a + '-default',
1588
+ key: o + '-default',
1818
1589
  },
1819
1590
  r.createElement(
1820
1591
  'div',
1821
1592
  { className: 'element-title' },
1822
1593
  r.createElement(
1823
- b.Tooltip,
1594
+ S.Tooltip,
1824
1595
  { placement: 'top' },
1825
1596
  r.createElement(
1826
1597
  'span',
@@ -1835,7 +1606,7 @@
1835
1606
  r.createElement(
1836
1607
  'div',
1837
1608
  { className: 'form-item-box' },
1838
- this.renderDefaultContent(p, s, a),
1609
+ this.renderDefaultContent(c, s, o),
1839
1610
  ),
1840
1611
  ),
1841
1612
  ),
@@ -1843,13 +1614,13 @@
1843
1614
  'div',
1844
1615
  {
1845
1616
  className: 'wide-screen-element-warp',
1846
- key: a + '-description',
1617
+ key: o + '-description',
1847
1618
  },
1848
1619
  r.createElement(
1849
1620
  'div',
1850
1621
  { className: 'element-title' },
1851
1622
  r.createElement(
1852
- b.Tooltip,
1623
+ S.Tooltip,
1853
1624
  {
1854
1625
  title:
1855
1626
  '字段描述内容将作为Title的补充信息提供给用户',
@@ -1868,17 +1639,17 @@
1868
1639
  r.createElement(
1869
1640
  'div',
1870
1641
  { className: 'form-item-box' },
1871
- r.createElement(b.Input, {
1642
+ r.createElement(S.Input, {
1872
1643
  style: { display: 'inline-block' },
1873
1644
  placeholder: '请输入' + s.title + '的字段描述',
1874
1645
  defaultValue: s.description,
1875
1646
  onPressEnter: function (e) {
1876
- var t = e.target.value;
1877
- n.handleValueChange('description', t);
1647
+ var n = e.target.value;
1648
+ t.handleValueChange('description', n);
1878
1649
  },
1879
1650
  onBlur: function (e) {
1880
- var t = e.target.value;
1881
- n.handleValueChange('description', t);
1651
+ var n = e.target.value;
1652
+ t.handleValueChange('description', n);
1882
1653
  },
1883
1654
  }),
1884
1655
  ),
@@ -1888,13 +1659,13 @@
1888
1659
  'div',
1889
1660
  {
1890
1661
  className: 'wide-screen-element-warp',
1891
- key: a + '-showKey',
1662
+ key: o + '-showKey',
1892
1663
  },
1893
1664
  r.createElement(
1894
1665
  'div',
1895
1666
  { className: 'element-title' },
1896
1667
  r.createElement(
1897
- b.Tooltip,
1668
+ S.Tooltip,
1898
1669
  {
1899
1670
  title:
1900
1671
  '开启后,在JSONEditor端会展示当前Key值,以便增加辨识度。',
@@ -1913,13 +1684,13 @@
1913
1684
  r.createElement(
1914
1685
  'div',
1915
1686
  { className: 'form-item-box' },
1916
- r.createElement(b.Switch, {
1687
+ r.createElement(S.Switch, {
1917
1688
  style: { display: 'inline-block' },
1918
1689
  defaultChecked: s.showKey,
1919
1690
  checkedChildren: 'true',
1920
1691
  unCheckedChildren: 'false',
1921
1692
  onChange: function (e) {
1922
- n.handleValueChange('showKey', e);
1693
+ t.handleValueChange('showKey', e);
1923
1694
  },
1924
1695
  }),
1925
1696
  ),
@@ -1940,18 +1711,18 @@
1940
1711
  'htmlarea',
1941
1712
  ].indexOf(e) > -1
1942
1713
  );
1943
- })(p) &&
1714
+ })(c) &&
1944
1715
  r.createElement(
1945
1716
  'div',
1946
1717
  {
1947
1718
  className: 'wide-screen-element-warp',
1948
- key: a + '-placeholder',
1719
+ key: o + '-placeholder',
1949
1720
  },
1950
1721
  r.createElement(
1951
1722
  'div',
1952
1723
  { className: 'element-title' },
1953
1724
  r.createElement(
1954
- b.Tooltip,
1725
+ S.Tooltip,
1955
1726
  {
1956
1727
  title:
1957
1728
  '输入提示内容将作为输入区域的提示信息展示给用户',
@@ -1970,36 +1741,36 @@
1970
1741
  r.createElement(
1971
1742
  'div',
1972
1743
  { className: 'form-item-box' },
1973
- r.createElement(b.Input, {
1744
+ r.createElement(S.Input, {
1974
1745
  style: { display: 'inline-block' },
1975
1746
  placeholder: '请输入' + s.title + '的输入提示',
1976
1747
  defaultValue: s.placeholder,
1977
1748
  onPressEnter: function (e) {
1978
- var t = e.target.value;
1979
- n.handleValueChange('placeholder', t);
1749
+ var n = e.target.value;
1750
+ t.handleValueChange('placeholder', n);
1980
1751
  },
1981
1752
  onBlur: function (e) {
1982
- var t = e.target.value;
1983
- n.handleValueChange('placeholder', t);
1753
+ var n = e.target.value;
1754
+ t.handleValueChange('placeholder', n);
1984
1755
  },
1985
1756
  }),
1986
1757
  ),
1987
1758
  ),
1988
1759
  ),
1989
1760
  (function (e) {
1990
- return [].concat(Ce, ['array']).indexOf(e) > -1;
1991
- })(p) &&
1761
+ return [].concat(ve, ['array']).indexOf(e) > -1;
1762
+ })(c) &&
1992
1763
  r.createElement(
1993
1764
  'div',
1994
1765
  {
1995
1766
  className: 'wide-screen-element-warp',
1996
- key: a + '-showCodeViewBtn-' + s.showCodeViewBtn,
1767
+ key: o + '-showCodeViewBtn-' + s.showCodeViewBtn,
1997
1768
  },
1998
1769
  r.createElement(
1999
1770
  'div',
2000
1771
  { className: 'element-title' },
2001
1772
  r.createElement(
2002
- b.Tooltip,
1773
+ S.Tooltip,
2003
1774
  {
2004
1775
  title:
2005
1776
  '用于控制是否显示源码模式切换按钮,默认显示',
@@ -2018,20 +1789,20 @@
2018
1789
  r.createElement(
2019
1790
  'div',
2020
1791
  { className: 'form-item-box' },
2021
- r.createElement(b.Switch, {
1792
+ r.createElement(S.Switch, {
2022
1793
  style: { display: 'inline-block' },
2023
1794
  defaultChecked:
2024
1795
  null == (e = s.showCodeViewBtn) || e,
2025
1796
  checkedChildren: 'true',
2026
1797
  unCheckedChildren: 'false',
2027
1798
  onChange: function (e) {
2028
- n.handleValueChange('showCodeViewBtn', e);
1799
+ t.handleValueChange('showCodeViewBtn', e);
2029
1800
  },
2030
1801
  }),
2031
1802
  ),
2032
1803
  ),
2033
1804
  ),
2034
- 'number' === (0, Ie.getExpectType)(p) &&
1805
+ 'number' === (0, Oe.getExpectType)(c) &&
2035
1806
  r.createElement(
2036
1807
  r.Fragment,
2037
1808
  null,
@@ -2039,13 +1810,13 @@
2039
1810
  'div',
2040
1811
  {
2041
1812
  className: 'wide-screen-element-warp',
2042
- key: a + '-minimum-' + s.minimum,
1813
+ key: o + '-minimum-' + s.minimum,
2043
1814
  },
2044
1815
  r.createElement(
2045
1816
  'div',
2046
1817
  { className: 'element-title' },
2047
1818
  r.createElement(
2048
- b.Tooltip,
1819
+ S.Tooltip,
2049
1820
  {
2050
1821
  title:
2051
1822
  '设置最小值后,用户输入的数值必须大于当前最小值',
@@ -2064,16 +1835,16 @@
2064
1835
  r.createElement(
2065
1836
  'div',
2066
1837
  { className: 'form-item-box' },
2067
- r.createElement(b.InputNumber, {
1838
+ r.createElement(S.InputNumber, {
2068
1839
  style: { display: 'inline-block' },
2069
1840
  defaultValue: s.minimum,
2070
1841
  onPressEnter: function (e) {
2071
- var t = e.target.value;
2072
- n.handleValueChange('minimum', t);
1842
+ var n = e.target.value;
1843
+ t.handleValueChange('minimum', n);
2073
1844
  },
2074
1845
  onBlur: function (e) {
2075
- var t = e.target.value;
2076
- n.handleValueChange('minimum', t);
1846
+ var n = e.target.value;
1847
+ t.handleValueChange('minimum', n);
2077
1848
  },
2078
1849
  }),
2079
1850
  ),
@@ -2083,13 +1854,13 @@
2083
1854
  'div',
2084
1855
  {
2085
1856
  className: 'wide-screen-element-warp',
2086
- key: a + '-maximum-' + s.maximum,
1857
+ key: o + '-maximum-' + s.maximum,
2087
1858
  },
2088
1859
  r.createElement(
2089
1860
  'div',
2090
1861
  { className: 'element-title' },
2091
1862
  r.createElement(
2092
- b.Tooltip,
1863
+ S.Tooltip,
2093
1864
  {
2094
1865
  title:
2095
1866
  '设置最大值后,用户输入的数值必须大于当前最大值',
@@ -2108,23 +1879,23 @@
2108
1879
  r.createElement(
2109
1880
  'div',
2110
1881
  { className: 'form-item-box' },
2111
- r.createElement(b.InputNumber, {
1882
+ r.createElement(S.InputNumber, {
2112
1883
  style: { display: 'inline-block' },
2113
1884
  defaultValue: s.maximum,
2114
1885
  onPressEnter: function (e) {
2115
- var t = e.target.value;
2116
- n.handleValueChange('maximum', t);
1886
+ var n = e.target.value;
1887
+ t.handleValueChange('maximum', n);
2117
1888
  },
2118
1889
  onBlur: function (e) {
2119
- var t = e.target.value;
2120
- n.handleValueChange('maximum', t);
1890
+ var n = e.target.value;
1891
+ t.handleValueChange('maximum', n);
2121
1892
  },
2122
1893
  }),
2123
1894
  ),
2124
1895
  ),
2125
1896
  ),
2126
1897
  ),
2127
- 'array' === (0, Ie.getExpectType)(p) &&
1898
+ 'array' === (0, Oe.getExpectType)(c) &&
2128
1899
  r.createElement(
2129
1900
  r.Fragment,
2130
1901
  null,
@@ -2132,13 +1903,13 @@
2132
1903
  'div',
2133
1904
  {
2134
1905
  className: 'wide-screen-element-warp',
2135
- key: a + '-minimum-child',
1906
+ key: o + '-minimum-child',
2136
1907
  },
2137
1908
  r.createElement(
2138
1909
  'div',
2139
1910
  { className: 'element-title' },
2140
1911
  r.createElement(
2141
- b.Tooltip,
1912
+ S.Tooltip,
2142
1913
  {
2143
1914
  title: '用于限制数据项最小个数',
2144
1915
  placement: 'top',
@@ -2156,11 +1927,11 @@
2156
1927
  r.createElement(
2157
1928
  'div',
2158
1929
  { className: 'form-item-box' },
2159
- r.createElement(b.InputNumber, {
1930
+ r.createElement(S.InputNumber, {
2160
1931
  style: { display: 'inline-block' },
2161
1932
  defaultValue: s['minimum-child'],
2162
1933
  onChange: function (e) {
2163
- n.handleValueChange('minimum-child', e);
1934
+ t.handleValueChange('minimum-child', e);
2164
1935
  },
2165
1936
  }),
2166
1937
  ),
@@ -2170,13 +1941,13 @@
2170
1941
  'div',
2171
1942
  {
2172
1943
  className: 'wide-screen-element-warp',
2173
- key: a + '-maximum-child',
1944
+ key: o + '-maximum-child',
2174
1945
  },
2175
1946
  r.createElement(
2176
1947
  'div',
2177
1948
  { className: 'element-title' },
2178
1949
  r.createElement(
2179
- b.Tooltip,
1950
+ S.Tooltip,
2180
1951
  {
2181
1952
  title: '用于限制数据项最多个数',
2182
1953
  placement: 'top',
@@ -2194,269 +1965,155 @@
2194
1965
  r.createElement(
2195
1966
  'div',
2196
1967
  { className: 'form-item-box' },
2197
- r.createElement(b.InputNumber, {
1968
+ r.createElement(S.InputNumber, {
2198
1969
  style: { display: 'inline-block' },
2199
1970
  defaultValue: s['maximum-child'],
2200
1971
  onChange: function (e) {
2201
- n.handleValueChange('maximum-child', e);
1972
+ t.handleValueChange('maximum-child', e);
2202
1973
  },
2203
1974
  }),
2204
1975
  ),
2205
1976
  ),
2206
1977
  ),
2207
1978
  ),
2208
- !s.hiddenRule &&
1979
+ r.createElement(
1980
+ 'div',
1981
+ {
1982
+ className: 'wide-screen-element-warp',
1983
+ key: o + '-onShow',
1984
+ },
2209
1985
  r.createElement(
2210
1986
  'div',
2211
- { className: 'wide-screen-element-warp' },
1987
+ { className: 'element-title' },
2212
1988
  r.createElement(
2213
- 'div',
2214
- { className: 'element-title' },
1989
+ S.Tooltip,
1990
+ {
1991
+ title:
1992
+ '用于设置显隐表达式(onShow),比如设置 "dataType === 1",则表示当数据域中 dataType 为 1 时显示当前配置项。',
1993
+ placement: 'top',
1994
+ },
2215
1995
  r.createElement(
2216
1996
  'span',
2217
1997
  { className: 'title-text' },
2218
- '隐藏规则',
2219
- ),
2220
- ),
2221
- r.createElement(
2222
- 'div',
2223
- { className: 'content-item' },
2224
- r.createElement(
2225
- b.Button,
2226
- {
2227
- size: 'small',
2228
- className: 'add-rule-condition-btn',
2229
- onClick: this.addHiddenRule,
2230
- },
2231
- '添加隐藏规则',
1998
+ '显隐表达式',
2232
1999
  ),
2233
2000
  ),
2234
2001
  ),
2235
- s.hiddenRule &&
2236
2002
  r.createElement(
2237
2003
  'div',
2238
- {
2239
- className: 'wide-screen-element-warp',
2240
- key:
2241
- a + '-clearValueOnHidden-' + s.clearValueOnHidden,
2242
- },
2004
+ { className: 'content-item' },
2243
2005
  r.createElement(
2244
2006
  'div',
2245
- { className: 'element-title' },
2246
- r.createElement(
2247
- b.Tooltip,
2248
- {
2249
- title:
2250
- '默认隐藏表单项时,会保留其对应的表单项数值。如需隐藏时删除表单项数值,请开启以下配置项。',
2251
- placement: 'top',
2007
+ { className: 'form-item-box' },
2008
+ r.createElement(S.Input, {
2009
+ style: { display: 'inline-block' },
2010
+ placeholder: '请输入显隐表达式',
2011
+ defaultValue: s.onShow,
2012
+ onPressEnter: function (e) {
2013
+ var n = e.target.value;
2014
+ t.handleValueChange('onShow', n);
2252
2015
  },
2253
- r.createElement(
2254
- 'span',
2255
- { className: 'title-text' },
2256
- '隐藏时删除',
2257
- ),
2258
- ),
2259
- ),
2260
- r.createElement(
2261
- 'div',
2262
- { className: 'content-item' },
2263
- r.createElement(
2264
- 'div',
2265
- { className: 'form-item-box' },
2266
- r.createElement(b.Switch, {
2267
- style: { display: 'inline-block' },
2268
- defaultChecked: s.clearValueOnHidden,
2269
- checkedChildren: 'true',
2270
- unCheckedChildren: 'false',
2271
- onChange: function (e) {
2272
- n.handleValueChange('clearValueOnHidden', e);
2273
- },
2274
- }),
2275
- ),
2276
- ),
2277
- ),
2278
- s.hiddenRule &&
2279
- r.createElement(
2280
- 'div',
2281
- { className: 'hidden-rule-box' },
2282
- r.createElement(
2283
- 'div',
2284
- { className: 'rule-title' },
2285
- r.createElement(
2286
- 'div',
2287
- { className: 'title' },
2288
- '隐藏规则:',
2289
- ),
2290
- r.createElement(
2291
- 'div',
2292
- { className: 'btn-box' },
2293
- r.createElement(
2294
- b.Button,
2295
- { size: 'small', onClick: this.deleteHiddenRule },
2296
- '删除规则',
2297
- ),
2298
- ),
2299
- ),
2300
- r.createElement(
2301
- 'div',
2302
- { className: 'rule-condition-box' },
2303
- r.createElement(
2304
- 'div',
2305
- { className: 'condition-title' },
2306
- '隐藏条件:',
2307
- ),
2308
- r.createElement(
2309
- 'div',
2310
- { className: 'condition-prop' },
2311
- r.createElement(
2312
- b.Select,
2313
- {
2314
- showSearch: !0,
2315
- defaultValue: y.conditionProp
2316
- ? y.conditionProp.keyRoute
2317
- : null,
2318
- style: { width: 150 },
2319
- onChange: function (e) {
2320
- var t = m[e];
2321
- n.hiddenRuleConditionChange(t);
2322
- },
2323
- },
2324
- h.map(function (e) {
2325
- var t = m[e];
2326
- return r.createElement(
2327
- Be,
2328
- {
2329
- key: t.keyRoute,
2330
- value: t.keyRoute,
2331
- disabled: u === t.keyRoute,
2332
- },
2333
- t.title,
2334
- '(',
2335
- t.key,
2336
- ')',
2337
- );
2338
- }),
2339
- ),
2340
- ),
2341
- r.createElement(
2342
- 'div',
2343
- { className: 'condition-equal' },
2344
- '等于',
2345
- ),
2346
- r.createElement(
2347
- 'div',
2348
- { className: 'condition-value' },
2349
- r.createElement(De, {
2350
- conditionRule: y,
2351
- hiddenRuleConditionValueChange:
2352
- this.hiddenRuleConditionValueChange,
2353
- }),
2354
- ),
2016
+ onBlur: function (e) {
2017
+ var n = e.target.value;
2018
+ t.handleValueChange('onShow', n);
2019
+ },
2020
+ }),
2355
2021
  ),
2356
2022
  ),
2357
- )
2358
- );
2359
- }),
2360
- t
2361
- );
2362
- })(r.PureComponent);
2363
- Ve.propTypes = {
2364
- jsonKey: p().string,
2365
- indexRoute: p().string,
2366
- nodeKey: p().string,
2367
- targetJsonSchema: p().any,
2368
- checkConditionProp: p().any,
2369
- addConditionProp: p().any,
2370
- removeConditionProp: p().any,
2371
- jsonSchema: p().any,
2023
+ ),
2024
+ );
2025
+ }),
2026
+ t
2027
+ );
2028
+ })(r.PureComponent));
2029
+ Re.propTypes = {
2030
+ jsonKey: d().string,
2031
+ indexRoute: d().string,
2032
+ nodeKey: d().string,
2033
+ targetJsonSchema: d().any,
2372
2034
  };
2373
- var Le = (0, l.inject)(function (e) {
2374
- return {
2375
- getSchemaByIndexRoute: e.jsonSchemaStore.getSchemaByIndexRoute,
2376
- editSchemaData: e.jsonSchemaStore.editSchemaData,
2377
- checkConditionProp: e.jsonSchemaStore.checkConditionProp,
2378
- addConditionProp: e.jsonSchemaStore.addConditionProp,
2379
- indexRoute2keyRoute: e.jsonSchemaStore.indexRoute2keyRoute,
2380
- removeConditionProp: e.jsonSchemaStore.removeConditionProp,
2381
- deleteSchemaProp: e.jsonSchemaStore.deleteSchemaProp,
2382
- jsonSchema: e.jsonSchemaStore.jsonSchema,
2383
- };
2384
- })((0, l.observer)(Ve)),
2385
- Fe = (n(915), b.Select.Option),
2386
- qe = (function (e) {
2035
+ var Ke = (0, l.inject)(function (e) {
2036
+ return { schemaStore: e.schemaStore };
2037
+ })((0, l.observer)(Re)),
2038
+ ke = (n(915), S.Select.Option),
2039
+ Te = (function (e) {
2387
2040
  function t(t) {
2388
2041
  var n;
2389
2042
  return (
2390
2043
  ((n = e.call(this, t) || this).selectHandleChange = function (
2391
2044
  e,
2392
2045
  ) {
2393
- var t = n.props,
2394
- o = t.indexRoute,
2395
- a = t.jsonKey,
2396
- r = t.changeType;
2397
- t.targetJsonSchema.type !== e && r(o, a, Ie.TypeDataList[e]);
2046
+ var t = (n.props.schemaStore || {}).changeType,
2047
+ a = n.props,
2048
+ o = a.indexRoute,
2049
+ r = a.jsonKey;
2050
+ a.targetJsonSchema.type !== e && t(o, r, Oe.TypeDataList[e]);
2398
2051
  }),
2399
2052
  (n.handleJsonKeyChange = function (e) {
2400
- var t = e.target.value,
2401
- o = n.props,
2402
- a = o.indexRoute,
2403
- r = o.jsonKey,
2404
- i = o.editJsonKey,
2405
- s = o.isExitJsonKey;
2406
- r !== t &&
2407
- (s(a, t)
2408
- ? b.message.warning('当前key已存在,请换一个吧。')
2409
- : i(a, t));
2053
+ var t = n.props.schemaStore || {},
2054
+ a = t.editJsonKey,
2055
+ o = t.isExitJsonKey,
2056
+ r = e.target.value,
2057
+ i = n.props,
2058
+ s = i.indexRoute;
2059
+ i.jsonKey !== r &&
2060
+ (o(s, r)
2061
+ ? S.message.warning('当前key已存在,请换一个吧。')
2062
+ : a(s, r));
2410
2063
  }),
2411
2064
  (n.handleTitleChange = function (e) {
2412
- var t = e.target.value,
2065
+ var t = (n.props.schemaStore || {}).editSchemaData,
2066
+ a = e.target.value,
2413
2067
  o = n.props,
2414
- a = o.indexRoute,
2415
- r = o.jsonKey,
2416
- i = o.editSchemaData;
2417
- o.targetJsonSchema.title !== t && i(a, r, { title: t });
2068
+ r = o.indexRoute,
2069
+ i = o.jsonKey;
2070
+ o.targetJsonSchema.title !== a && t(r, i, { title: a });
2418
2071
  }),
2419
2072
  (n.getCurrentTypeList = function (e) {
2420
- var t = n.props.SchemaTypeList,
2421
- o = t[e || 'all'];
2422
- return (o && 0 !== o.length) || (o = t.all), o;
2073
+ var t = (n.props.schemaStore || {}).SchemaTypeList,
2074
+ a = t[e || 'all'];
2075
+ return (a && 0 !== a.length) || (a = t.all), a;
2423
2076
  }),
2424
2077
  (n.onAddBtnEvent = function () {
2425
- var e = n.props,
2426
- t = e.indexRoute,
2427
- o = e.targetJsonSchema,
2428
- a = e.addChildJson,
2429
- r = e.addNextJsonData;
2430
- (0, Ie.isContainerSchema)(o) ? a(t) : r(t);
2078
+ var e = n.props.schemaStore || {},
2079
+ t = e.addChildJson,
2080
+ a = e.addNextJsonData,
2081
+ o = n.props,
2082
+ r = o.indexRoute,
2083
+ i = o.targetJsonSchema;
2084
+ (0, Oe.isContainerSchema)(i) ? t(r) : a(r);
2431
2085
  }),
2432
2086
  (n.onCopyBtnEvent = function () {
2433
2087
  var e = n.props,
2434
2088
  t = e.indexRoute,
2435
- o = e.targetJsonSchema,
2436
- a = e.getSchemaByIndexRoute,
2437
- r = e.indexRoute2keyRoute,
2438
- i = e.jsonKey,
2439
- s = e.insertJsonData,
2440
- c = e.getNewJsonKeyIndex,
2441
- l = E(o),
2442
- d = (0, Ie.getParentIndexRoute)(t),
2443
- p = c(a(d), i),
2444
- u = o.type;
2445
- j(r(d) + '-' + p + '-' + u, r(t)), s(t, p, l);
2089
+ a = e.targetJsonSchema,
2090
+ o = e.jsonKey,
2091
+ r = n.props.schemaStore || {},
2092
+ i = r.getSchemaByIndexRoute,
2093
+ s = r.indexRoute2keyRoute,
2094
+ c = r.insertJsonData,
2095
+ l = r.getNewJsonKeyIndex,
2096
+ p = E(a),
2097
+ d = (0, Oe.getParentIndexRoute)(t),
2098
+ u = l(i(d), o),
2099
+ m = a.type;
2100
+ C(s(d) + '-' + u + '-' + m, s(t)), c(t, u, p);
2446
2101
  }),
2447
2102
  (n.onDeleteBtnEvent = function () {
2448
2103
  var e = n.props,
2449
2104
  t = e.jsonKey,
2450
- o = e.indexRoute;
2451
- (0, e.deleteJsonByIndex_CurKey)(o, t);
2105
+ a = e.indexRoute;
2106
+ (0, (n.props.schemaStore || {}).deleteJsonByIndex_CurKey)(
2107
+ a,
2108
+ t,
2109
+ );
2452
2110
  }),
2453
2111
  (n.ignoreDragEvent = function (e) {
2454
2112
  e.preventDefault(), e.stopPropagation();
2455
2113
  }),
2456
2114
  (n.childElemSort = function () {
2457
- var e = n.props,
2458
- t = e.indexRoute;
2459
- (0, e.childElemSort)(t);
2115
+ var e = n.props.indexRoute;
2116
+ (0, (n.props.schemaStore || {}).childElemSort)(e);
2460
2117
  }),
2461
2118
  (n.state = { showAdvanceConfig: !1 }),
2462
2119
  (n.onAddBtnEvent = n.onAddBtnEvent.bind(n)),
@@ -2470,24 +2127,24 @@
2470
2127
  );
2471
2128
  }
2472
2129
  return (
2473
- a()(t, e),
2130
+ o()(t, e),
2474
2131
  (t.prototype.render = function () {
2475
2132
  var e,
2476
2133
  t = this,
2477
- n = this.props,
2478
- o = n.parentType,
2479
- a = n.indexRoute,
2480
- i = n.jsonKey,
2481
- s = n.nodeKey,
2482
- c = n.targetJsonSchema,
2483
- l = n.getSchemaByIndexRoute,
2484
- d = this.state.showAdvanceConfig,
2485
- p = a ? (0, Ie.getParentIndexRoute)(a) : '',
2486
- u = p ? l(p) : {},
2134
+ n = (this.props.schemaStore || {}).getSchemaByIndexRoute,
2135
+ a = this.props,
2136
+ o = a.parentType,
2137
+ i = a.indexRoute,
2138
+ s = a.jsonKey,
2139
+ c = a.nodeKey,
2140
+ l = a.targetJsonSchema,
2141
+ p = this.state.showAdvanceConfig,
2142
+ d = i ? (0, Oe.getParentIndexRoute)(i) : '',
2143
+ u = d ? n(d) : {},
2487
2144
  m = null == (e = u && u.isContainer) || e,
2488
- h = c.isFixed || this.props.isFixed || !1,
2145
+ h = l.isFixed || this.props.isFixed || !1,
2489
2146
  y =
2490
- (this.props.readOnly || c.readOnly,
2147
+ (this.props.readOnly || l.readOnly,
2491
2148
  void 0 !== this.props.keyIsFixed
2492
2149
  ? this.props.keyIsFixed
2493
2150
  : !m || h),
@@ -2499,18 +2156,18 @@
2499
2156
  void 0 !== this.props.titleIsFixed
2500
2157
  ? this.props.titleIsFixed
2501
2158
  : h,
2502
- S = this.props.hideOperaBtn || !m,
2503
- v = !!S && this.props.showAdvanceBtn,
2504
- x = this.getCurrentTypeList(o),
2505
- E = c.type,
2506
- C = (0, Ie.isContainerSchema)(c);
2159
+ v = this.props.hideOperaBtn || !m,
2160
+ x = !!v && this.props.showAdvanceBtn,
2161
+ b = this.getCurrentTypeList(o),
2162
+ E = l.type,
2163
+ O = (0, Oe.isContainerSchema)(l);
2507
2164
  return r.createElement(
2508
2165
  r.Fragment,
2509
2166
  null,
2510
- c &&
2167
+ l &&
2511
2168
  r.createElement(
2512
2169
  'div',
2513
- { className: 'base-schema-box', id: s },
2170
+ { className: 'base-schema-box', id: c },
2514
2171
  r.createElement(
2515
2172
  'div',
2516
2173
  {
@@ -2518,8 +2175,8 @@
2518
2175
  draggable: 'true',
2519
2176
  onDragStart: this.ignoreDragEvent,
2520
2177
  },
2521
- r.createElement(b.Input, {
2522
- defaultValue: i || 'key值不存在',
2178
+ r.createElement(S.Input, {
2179
+ defaultValue: s || 'key值不存在',
2523
2180
  disabled: y,
2524
2181
  onPressEnter: this.handleJsonKeyChange,
2525
2182
  onBlur: this.handleJsonKeyChange,
@@ -2533,7 +2190,7 @@
2533
2190
  onDragStart: this.ignoreDragEvent,
2534
2191
  },
2535
2192
  r.createElement(
2536
- b.Select,
2193
+ S.Select,
2537
2194
  {
2538
2195
  showSearch: !0,
2539
2196
  defaultValue: E,
@@ -2541,8 +2198,8 @@
2541
2198
  onChange: this.selectHandleChange,
2542
2199
  disabled: g,
2543
2200
  },
2544
- x.map(function (e) {
2545
- return r.createElement(Fe, { key: e, value: e }, e);
2201
+ b.map(function (e) {
2202
+ return r.createElement(ke, { key: e, value: e }, e);
2546
2203
  }),
2547
2204
  ),
2548
2205
  ),
@@ -2553,39 +2210,39 @@
2553
2210
  draggable: 'true',
2554
2211
  onDragStart: this.ignoreDragEvent,
2555
2212
  },
2556
- r.createElement(b.Input, {
2557
- defaultValue: c.title,
2213
+ r.createElement(S.Input, {
2214
+ defaultValue: l.title,
2558
2215
  disabled: f,
2559
2216
  onPressEnter: this.handleTitleChange,
2560
2217
  onBlur: this.handleTitleChange,
2561
2218
  }),
2562
2219
  ),
2563
- !S &&
2220
+ !v &&
2564
2221
  r.createElement(
2565
2222
  'div',
2566
2223
  { className: 'operate-item' },
2567
2224
  !h &&
2568
2225
  r.createElement(
2569
- b.Tooltip,
2226
+ S.Tooltip,
2570
2227
  { title: '删除' },
2571
- r.createElement(Pe.CloseOutlined, {
2228
+ r.createElement(Ie.CloseOutlined, {
2572
2229
  className: 'operate-btn delete-operate',
2573
2230
  onClick: this.onDeleteBtnEvent,
2574
2231
  }),
2575
2232
  ),
2576
2233
  r.createElement(
2577
- b.Tooltip,
2578
- { title: C ? '新增子元素' : '新增同级元素' },
2579
- r.createElement(Pe.PlusOutlined, {
2234
+ S.Tooltip,
2235
+ { title: O ? '新增子元素' : '新增同级元素' },
2236
+ r.createElement(Ie.PlusOutlined, {
2580
2237
  className: 'operate-btn',
2581
2238
  onClick: this.onAddBtnEvent,
2582
2239
  }),
2583
2240
  ),
2584
- C &&
2241
+ O &&
2585
2242
  r.createElement(
2586
- b.Tooltip,
2243
+ S.Tooltip,
2587
2244
  { title: '数据项排序' },
2588
- r.createElement(Pe.SortAscendingOutlined, {
2245
+ r.createElement(Ie.SortAscendingOutlined, {
2589
2246
  className: 'operate-btn',
2590
2247
  onClick: this.childElemSort,
2591
2248
  }),
@@ -2595,17 +2252,17 @@
2595
2252
  r.Fragment,
2596
2253
  null,
2597
2254
  r.createElement(
2598
- b.Tooltip,
2255
+ S.Tooltip,
2599
2256
  { title: '复制' },
2600
- r.createElement(Pe.CopyOutlined, {
2257
+ r.createElement(Ie.CopyOutlined, {
2601
2258
  className: 'operate-btn',
2602
2259
  onClick: this.onCopyBtnEvent,
2603
2260
  }),
2604
2261
  ),
2605
2262
  r.createElement(
2606
- b.Tooltip,
2263
+ S.Tooltip,
2607
2264
  { title: '高级设置' },
2608
- r.createElement(Pe.SettingOutlined, {
2265
+ r.createElement(Ie.SettingOutlined, {
2609
2266
  className: 'operate-btn',
2610
2267
  onClick: function () {
2611
2268
  t.setState({ showAdvanceConfig: !0 });
@@ -2613,22 +2270,22 @@
2613
2270
  }),
2614
2271
  ),
2615
2272
  r.createElement(
2616
- b.Tooltip,
2273
+ S.Tooltip,
2617
2274
  { title: '按住进行拖拽' },
2618
- r.createElement(Pe.DragOutlined, {
2275
+ r.createElement(Ie.DragOutlined, {
2619
2276
  className: 'operate-btn drag-btn',
2620
2277
  }),
2621
2278
  ),
2622
2279
  ),
2623
2280
  ),
2624
- v &&
2281
+ x &&
2625
2282
  r.createElement(
2626
2283
  'div',
2627
2284
  { className: 'operate-item' },
2628
2285
  r.createElement(
2629
- b.Tooltip,
2286
+ S.Tooltip,
2630
2287
  { title: '高级设置' },
2631
- r.createElement(Pe.SettingOutlined, {
2288
+ r.createElement(Ie.SettingOutlined, {
2632
2289
  className: 'operate-btn',
2633
2290
  onClick: function () {
2634
2291
  t.setState({ showAdvanceConfig: !0 });
@@ -2636,19 +2293,19 @@
2636
2293
  }),
2637
2294
  ),
2638
2295
  ),
2639
- d &&
2296
+ p &&
2640
2297
  r.createElement(
2641
- b.Modal,
2298
+ S.Modal,
2642
2299
  {
2643
2300
  visible: !0,
2644
2301
  title:
2645
- '高级设置 / 当前字段:' + c.title + '(' + i + ')',
2302
+ '高级设置 / 当前字段:' + l.title + '(' + s + ')',
2646
2303
  onCancel: function () {
2647
2304
  t.setState({ showAdvanceConfig: !1 });
2648
2305
  },
2649
2306
  footer: [
2650
2307
  r.createElement(
2651
- b.Button,
2308
+ S.Button,
2652
2309
  {
2653
2310
  key: 'submit',
2654
2311
  type: 'primary',
@@ -2660,21 +2317,21 @@
2660
2317
  ),
2661
2318
  ],
2662
2319
  },
2663
- r.createElement(Le, {
2664
- indexRoute: a,
2665
- jsonKey: i,
2666
- targetJsonSchema: c,
2320
+ r.createElement(Ke, {
2321
+ indexRoute: i,
2322
+ jsonKey: s,
2323
+ targetJsonSchema: l,
2667
2324
  }),
2668
2325
  ),
2669
2326
  ),
2670
- !c &&
2327
+ !l &&
2671
2328
  r.createElement(
2672
2329
  'div',
2673
2330
  { className: 'base-schema-box' },
2674
2331
  r.createElement(
2675
2332
  'div',
2676
2333
  { className: 'warn-text' },
2677
- i,
2334
+ s,
2678
2335
  ':数据元素为空',
2679
2336
  ),
2680
2337
  ),
@@ -2683,82 +2340,67 @@
2683
2340
  t
2684
2341
  );
2685
2342
  })(r.PureComponent);
2686
- qe.propTypes = {
2687
- parentType: p().string,
2688
- jsonKey: p().string,
2689
- indexRoute: p().string,
2690
- nodeKey: p().string,
2691
- targetJsonSchema: p().any,
2692
- isFixed: p().bool,
2693
- hideOperaBtn: p().bool,
2694
- showAdvanceBtn: p().bool,
2695
- keyIsFixed: p().bool,
2696
- typeIsFixed: p().bool,
2697
- titleIsFixed: p().bool,
2343
+ Te.propTypes = {
2344
+ parentType: d().string,
2345
+ jsonKey: d().string,
2346
+ indexRoute: d().string,
2347
+ nodeKey: d().string,
2348
+ targetJsonSchema: d().any,
2349
+ isFixed: d().bool,
2350
+ hideOperaBtn: d().bool,
2351
+ showAdvanceBtn: d().bool,
2352
+ keyIsFixed: d().bool,
2353
+ typeIsFixed: d().bool,
2354
+ titleIsFixed: d().bool,
2698
2355
  };
2699
- var Ae = (0, l.inject)(function (e) {
2700
- return {
2701
- SchemaTypeList: e.jsonSchemaStore.SchemaTypeList,
2702
- getNewJsonKeyIndex: e.jsonSchemaStore.getNewJsonKeyIndex,
2703
- deleteJsonByIndex_CurKey:
2704
- e.jsonSchemaStore.deleteJsonByIndex_CurKey,
2705
- getSchemaByIndexRoute: e.jsonSchemaStore.getSchemaByIndexRoute,
2706
- indexRoute2keyRoute: e.jsonSchemaStore.indexRoute2keyRoute,
2707
- addChildJson: e.jsonSchemaStore.addChildJson,
2708
- addNextJsonData: e.jsonSchemaStore.addNextJsonData,
2709
- insertJsonData: e.jsonSchemaStore.insertJsonData,
2710
- childElemSort: e.jsonSchemaStore.childElemSort,
2711
- editSchemaData: e.jsonSchemaStore.editSchemaData,
2712
- editJsonKey: e.jsonSchemaStore.editJsonKey,
2713
- changeType: e.jsonSchemaStore.changeType,
2714
- isExitJsonKey: e.jsonSchemaStore.isExitJsonKey,
2715
- };
2716
- })((0, l.observer)(qe)),
2717
- _e = b.Tree.TreeNode,
2718
- Me = function (e) {
2719
- return i().createElement(Ae, e);
2356
+ var Je = (0, l.inject)(function (e) {
2357
+ return { schemaStore: e.schemaStore };
2358
+ })((0, l.observer)(Te)),
2359
+ De = S.Tree.TreeNode,
2360
+ Be = function (e) {
2361
+ return i().createElement(Je, e);
2720
2362
  },
2721
- He = function (e) {
2363
+ Pe = function (e) {
2722
2364
  var t = e.jsonKey,
2723
2365
  n = e.indexRoute,
2724
- o = e.nodeKey,
2725
- a = e.targetJsonSchema,
2726
- r = a.type,
2366
+ a = e.nodeKey,
2367
+ o = e.targetJsonSchema,
2368
+ r = o.type,
2727
2369
  s = n ? n + '-0' : '0',
2728
2370
  c = 'items',
2729
- l = o ? o + '-' + c : c,
2730
- d = a[c] || {};
2371
+ l = a ? a + '-' + c : c,
2372
+ p = o[c] || {};
2731
2373
  return i().createElement(
2732
- _e,
2374
+ De,
2733
2375
  {
2734
2376
  className: r + '-schema schema-item-form',
2735
- id: o,
2736
- key: o,
2377
+ id: a,
2378
+ key: a,
2737
2379
  indexRoute: n,
2738
2380
  jsonKey: t,
2739
- title: Me(m()({}, e)),
2381
+ title: Be(m()({}, e)),
2740
2382
  },
2741
2383
  (function (e) {
2742
2384
  var t = e.parentType,
2743
2385
  n = e.jsonKey,
2744
- o = e.indexRoute,
2745
- a = e.nodeKey,
2386
+ a = e.indexRoute,
2387
+ o = e.nodeKey,
2746
2388
  r = e.targetJsonSchema;
2747
2389
  return i().createElement(
2748
- _e,
2390
+ De,
2749
2391
  {
2750
2392
  className: 'array-item-schema schema-item-form',
2751
- id: a,
2752
- key: a,
2753
- indexRoute: o,
2393
+ id: o,
2394
+ key: o,
2395
+ indexRoute: a,
2754
2396
  jsonKey: n,
2755
2397
  disabled: !0,
2756
- title: Me({
2757
- indexRoute: o,
2398
+ title: Be({
2399
+ indexRoute: a,
2758
2400
  jsonKey: n,
2759
2401
  targetJsonSchema: r,
2760
2402
  parentType: t,
2761
- nodeKey: a,
2403
+ nodeKey: o,
2762
2404
  isFixed: !0,
2763
2405
  typeIsFixed: !1,
2764
2406
  }),
@@ -2767,28 +2409,28 @@
2767
2409
  (function (e) {
2768
2410
  var t = e.properties,
2769
2411
  n = e.parentIndexRoute,
2770
- o = e.parentNodeKey,
2771
- a = e.parentType;
2412
+ a = e.parentNodeKey,
2413
+ o = e.parentType;
2772
2414
  return e.propertyOrder.map(function (e, r) {
2773
2415
  var i = n ? n + '-' + r : '' + r,
2774
2416
  s = e,
2775
2417
  c = t[s],
2776
2418
  l = c.type,
2777
- d = (o ? o + '-' : '') + l + '-' + s;
2778
- return dt({
2779
- parentType: a,
2419
+ p = (a ? a + '-' : '') + l + '-' + s;
2420
+ return nt({
2421
+ parentType: o,
2780
2422
  jsonKey: s,
2781
2423
  indexRoute: i,
2782
- key: d,
2783
- nodeKey: d,
2424
+ key: p,
2425
+ nodeKey: p,
2784
2426
  targetJsonSchema: c,
2785
2427
  });
2786
2428
  });
2787
2429
  })({
2788
2430
  propertyOrder: r.propertyOrder,
2789
2431
  properties: r.properties,
2790
- parentIndexRoute: o,
2791
- parentNodeKey: a,
2432
+ parentIndexRoute: a,
2433
+ parentNodeKey: o,
2792
2434
  parentType: t,
2793
2435
  }),
2794
2436
  );
@@ -2797,35 +2439,36 @@
2797
2439
  jsonKey: c,
2798
2440
  indexRoute: s,
2799
2441
  nodeKey: l,
2800
- targetJsonSchema: d,
2442
+ targetJsonSchema: p,
2801
2443
  }),
2802
2444
  );
2803
2445
  },
2804
- ze = (n(790), b.Select.Option),
2805
- Ge = (function (e) {
2446
+ Ve = (n(790), S.Select.Option),
2447
+ Le = (function (e) {
2806
2448
  function t(t) {
2807
2449
  var n;
2808
2450
  return (
2809
2451
  ((n = e.call(this, t) || this).typeChange = function (e) {
2810
- var t = n.props,
2811
- o = t.indexRoute,
2812
- a = t.jsonKey,
2813
- r = t.targetJsonSchema,
2814
- i = t.typeSelectData,
2815
- s = t.editSchemaData,
2816
- c = t.updateSchemaData;
2817
- if (r.default !== e) {
2818
- if ((s(o, a, { default: e }), i)) {
2819
- var l = i[e];
2820
- l &&
2821
- '数据源类型' === r.title &&
2822
- s((0, Ie.getNextIndexRoute)(o), 'data', l);
2452
+ var t = n.props.schemaStore || {},
2453
+ a = t.editSchemaData,
2454
+ o = t.updateSchemaData,
2455
+ r = n.props,
2456
+ i = r.indexRoute,
2457
+ s = r.jsonKey,
2458
+ c = r.targetJsonSchema,
2459
+ l = r.typeSelectData;
2460
+ if (c.default !== e) {
2461
+ if ((a(i, s, { default: e }), l)) {
2462
+ var p = l[e];
2463
+ p &&
2464
+ '数据源类型' === c.title &&
2465
+ a((0, Oe.getNextIndexRoute)(i), 'data', p);
2823
2466
  }
2824
- if (Ie.EventTypeDataList) {
2825
- var d = Ie.EventTypeDataList[e];
2826
- '事件类型' === r.title &&
2467
+ if (Oe.EventTypeDataList) {
2468
+ var d = Oe.EventTypeDataList[e];
2469
+ '事件类型' === c.title &&
2827
2470
  d &&
2828
- c((0, Ie.getParentIndexRoute)(o), d);
2471
+ o((0, Oe.getParentIndexRoute)(i), d);
2829
2472
  }
2830
2473
  }
2831
2474
  }),
@@ -2834,13 +2477,13 @@
2834
2477
  );
2835
2478
  }
2836
2479
  return (
2837
- a()(t, e),
2480
+ o()(t, e),
2838
2481
  (t.prototype.render = function () {
2839
2482
  var e = this.props,
2840
2483
  t = e.nodeKey,
2841
2484
  n = e.targetJsonSchema,
2842
- o = n.type,
2843
- a = n.options || [];
2485
+ a = n.type,
2486
+ o = n.options || [];
2844
2487
  return r.createElement(
2845
2488
  'div',
2846
2489
  { className: 'typeSelect-schema-box', id: t },
@@ -2848,14 +2491,14 @@
2848
2491
  'div',
2849
2492
  { className: 'key-input-item' },
2850
2493
  r.createElement(
2851
- b.Select,
2494
+ S.Select,
2852
2495
  {
2853
2496
  defaultValue: n.default || 'local',
2854
2497
  onChange: this.typeChange,
2855
2498
  },
2856
- a.map(function (e, t) {
2499
+ o.map(function (e, t) {
2857
2500
  return r.createElement(
2858
- ze,
2501
+ Ve,
2859
2502
  { key: t, value: e.value },
2860
2503
  e.label || e.name,
2861
2504
  );
@@ -2866,15 +2509,15 @@
2866
2509
  'div',
2867
2510
  { className: 'type-select-item' },
2868
2511
  r.createElement(
2869
- b.Select,
2870
- { defaultValue: o, style: { width: 120 }, disabled: !0 },
2871
- r.createElement(ze, { key: o, value: o }, o),
2512
+ S.Select,
2513
+ { defaultValue: a, style: { width: 120 }, disabled: !0 },
2514
+ r.createElement(Ve, { key: a, value: a }, a),
2872
2515
  ),
2873
2516
  ),
2874
2517
  r.createElement(
2875
2518
  'div',
2876
2519
  { className: 'title-input-item' },
2877
- r.createElement(b.Input, {
2520
+ r.createElement(S.Input, {
2878
2521
  defaultValue: n.title,
2879
2522
  disabled: !0,
2880
2523
  }),
@@ -2885,26 +2528,23 @@
2885
2528
  t
2886
2529
  );
2887
2530
  })(r.PureComponent);
2888
- Ge.propTypes = {
2889
- parentType: p().string,
2890
- jsonKey: p().string,
2891
- indexRoute: p().string,
2892
- nodeKey: p().string,
2893
- targetJsonSchema: p().any,
2894
- typeSelectData: p().any,
2895
- isFixed: p().any,
2531
+ Le.propTypes = {
2532
+ parentType: d().string,
2533
+ jsonKey: d().string,
2534
+ indexRoute: d().string,
2535
+ nodeKey: d().string,
2536
+ targetJsonSchema: d().any,
2537
+ typeSelectData: d().any,
2538
+ isFixed: d().any,
2896
2539
  };
2897
- var We = (0, l.inject)(function (e) {
2898
- return {
2899
- editSchemaData: e.jsonSchemaStore.editSchemaData,
2900
- updateSchemaData: e.jsonSchemaStore.updateSchemaData,
2901
- };
2902
- })((0, l.observer)(Ge)),
2903
- Ue = b.Tree.TreeNode,
2904
- Qe = function (e) {
2905
- return i().createElement(Ae, e);
2540
+ var Fe = (0, l.inject)(function (e) {
2541
+ return { schemaStore: e.schemaStore };
2542
+ })((0, l.observer)(Le)),
2543
+ qe = S.Tree.TreeNode,
2544
+ Ae = function (e) {
2545
+ return i().createElement(Je, e);
2906
2546
  },
2907
- Xe = {
2547
+ _e = {
2908
2548
  local: {
2909
2549
  type: 'json',
2910
2550
  title: '本地json数据',
@@ -2922,71 +2562,69 @@
2922
2562
  description: '用于设置获取元素数据的请求地址',
2923
2563
  },
2924
2564
  },
2925
- Ye = b.Tree.TreeNode,
2926
- Ze = function (e) {
2927
- return i().createElement(Ae, e);
2565
+ Me = S.Tree.TreeNode,
2566
+ We = function (e) {
2567
+ return i().createElement(Je, e);
2928
2568
  },
2929
- $e = b.Tree.TreeNode,
2930
- et = function (e) {
2931
- return i().createElement(Ae, e);
2569
+ Ge = S.Tree.TreeNode,
2570
+ ze = function (e) {
2571
+ return i().createElement(Je, e);
2932
2572
  },
2933
- tt = b.Tree.TreeNode,
2934
- nt = function (e) {
2935
- return i().createElement(Ae, e);
2573
+ Ue = S.Tree.TreeNode,
2574
+ He = function (e) {
2575
+ return i().createElement(Je, e);
2936
2576
  },
2937
- ot = (n(617), b.Select.Option),
2938
- at = (function (e) {
2577
+ Qe = (n(617), S.Select.Option),
2578
+ Xe = (function (e) {
2939
2579
  function t(t) {
2940
2580
  var n;
2941
2581
  return (
2942
2582
  ((n = e.call(this, t) || this).handleLabelChange = function (
2943
2583
  e,
2944
2584
  ) {
2945
- var t = e.target.value,
2946
- o = n.props,
2947
- a = o.indexRoute,
2948
- r = o.optionIndex,
2949
- i = o.optionLabel,
2950
- s = o.isExitOptionLabel,
2951
- c = o.updateOptionLabel;
2952
- t !== i &&
2953
- (s(a, t)
2954
- ? b.message.warning(
2585
+ var t = n.props.schemaStore || {},
2586
+ a = t.isExitOptionLabel,
2587
+ o = t.updateOptionLabel,
2588
+ r = e.target.value,
2589
+ i = n.props,
2590
+ s = i.indexRoute,
2591
+ c = i.optionIndex;
2592
+ r !== i.optionLabel &&
2593
+ (a(s, r)
2594
+ ? S.message.warning(
2955
2595
  '对不起,存在相同的Label值,请重新设置。',
2956
2596
  )
2957
- : c(a, r, t));
2597
+ : o(s, c, r));
2958
2598
  }),
2959
2599
  (n.handleValueChange = function (e) {
2960
- var t = e.target.value,
2600
+ var t = (n.props.schemaStore || {}).updateOptionValue,
2601
+ a = e.target.value,
2961
2602
  o = n.props,
2962
- a = o.indexRoute,
2963
- r = o.optionIndex,
2964
- i = o.optionValue,
2965
- s = o.updateOptionValue;
2966
- t !== i && s(a, r, t);
2603
+ r = o.indexRoute,
2604
+ i = o.optionIndex;
2605
+ a !== o.optionValue && t(r, i, a);
2967
2606
  }),
2968
2607
  (n.onAddBtnEvent = function () {
2969
- var e = n.props,
2970
- t = e.indexRoute,
2971
- o = e.optionIndex;
2972
- (0, e.addOptionItem)(t, o);
2608
+ var e = (n.props.schemaStore || {}).addOptionItem,
2609
+ t = n.props;
2610
+ e(t.indexRoute, t.optionIndex);
2973
2611
  }),
2974
2612
  (n.onCopyBtnEvent = function () {
2975
- var e = n.props,
2976
- t = e.indexRoute,
2977
- o = e.optionIndex;
2978
- (0, e.copyOptionItem)(t, o);
2613
+ var e = (n.props.schemaStore || {}).copyOptionItem,
2614
+ t = n.props;
2615
+ e(t.indexRoute, t.optionIndex);
2979
2616
  }),
2980
2617
  (n.onDeleteBtnEvent = function () {
2981
- var e = n.props,
2982
- t = e.indexRoute,
2983
- o = e.optionIndex,
2984
- a = e.getSchemaByIndexRoute,
2985
- r = e.deleteOptionItem,
2986
- i = a(t);
2987
- i.options && i.options.length > 1
2988
- ? r(t, o)
2989
- : b.message.warning('删除失败,至少保留一个可选项。');
2618
+ var e = n.props.schemaStore || {},
2619
+ t = e.getSchemaByIndexRoute,
2620
+ a = e.deleteOptionItem,
2621
+ o = n.props,
2622
+ r = o.indexRoute,
2623
+ i = o.optionIndex,
2624
+ s = t(r);
2625
+ s.options && s.options.length > 1
2626
+ ? a(r, i)
2627
+ : S.message.warning('删除失败,至少保留一个可选项。');
2990
2628
  }),
2991
2629
  (n.onAddBtnEvent = n.onAddBtnEvent.bind(n)),
2992
2630
  (n.onCopyBtnEvent = n.onCopyBtnEvent.bind(n)),
@@ -2997,7 +2635,7 @@
2997
2635
  );
2998
2636
  }
2999
2637
  return (
3000
- a()(t, e),
2638
+ o()(t, e),
3001
2639
  (t.prototype.render = function () {
3002
2640
  var e = this.props,
3003
2641
  t = e.optionLabel,
@@ -3010,7 +2648,7 @@
3010
2648
  r.createElement(
3011
2649
  'div',
3012
2650
  { className: 'key-input-item' },
3013
- r.createElement(b.Input, {
2651
+ r.createElement(S.Input, {
3014
2652
  defaultValue: n,
3015
2653
  onPressEnter: this.handleValueChange,
3016
2654
  onBlur: this.handleValueChange,
@@ -3020,10 +2658,10 @@
3020
2658
  'div',
3021
2659
  { className: 'type-select-item' },
3022
2660
  r.createElement(
3023
- b.Select,
2661
+ S.Select,
3024
2662
  { defaultValue: 'string', style: { width: 120 } },
3025
2663
  r.createElement(
3026
- ot,
2664
+ Qe,
3027
2665
  { key: 'string', value: 'string' },
3028
2666
  'string',
3029
2667
  ),
@@ -3032,7 +2670,7 @@
3032
2670
  r.createElement(
3033
2671
  'div',
3034
2672
  { className: 'title-input-item' },
3035
- r.createElement(b.Input, {
2673
+ r.createElement(S.Input, {
3036
2674
  defaultValue: t,
3037
2675
  onPressEnter: this.handleLabelChange,
3038
2676
  onBlur: this.handleLabelChange,
@@ -3042,25 +2680,25 @@
3042
2680
  'div',
3043
2681
  { className: 'operate-item' },
3044
2682
  r.createElement(
3045
- b.Tooltip,
2683
+ S.Tooltip,
3046
2684
  { title: '删除' },
3047
- r.createElement(Pe.CloseOutlined, {
2685
+ r.createElement(Ie.CloseOutlined, {
3048
2686
  className: 'operate-btn delete-operate',
3049
2687
  onClick: this.onDeleteBtnEvent,
3050
2688
  }),
3051
2689
  ),
3052
2690
  r.createElement(
3053
- b.Tooltip,
2691
+ S.Tooltip,
3054
2692
  { title: '新增可选项' },
3055
- r.createElement(Pe.PlusOutlined, {
2693
+ r.createElement(Ie.PlusOutlined, {
3056
2694
  className: 'operate-btn',
3057
2695
  onClick: this.onAddBtnEvent,
3058
2696
  }),
3059
2697
  ),
3060
2698
  r.createElement(
3061
- b.Tooltip,
2699
+ S.Tooltip,
3062
2700
  { title: '复制' },
3063
- r.createElement(Pe.CopyOutlined, {
2701
+ r.createElement(Ie.CopyOutlined, {
3064
2702
  className: 'operate-btn',
3065
2703
  onClick: this.onCopyBtnEvent,
3066
2704
  }),
@@ -3072,33 +2710,25 @@
3072
2710
  t
3073
2711
  );
3074
2712
  })(r.PureComponent);
3075
- at.propTypes = {
3076
- indexRoute: p().string,
3077
- optionIndex: p().any,
3078
- optionLabel: p().string,
3079
- optionValue: p().string,
3080
- optionNodeKey: p().string,
2713
+ Xe.propTypes = {
2714
+ indexRoute: d().string,
2715
+ optionIndex: d().any,
2716
+ optionLabel: d().string,
2717
+ optionValue: d().string,
2718
+ optionNodeKey: d().string,
3081
2719
  };
3082
- var rt = (0, l.inject)(function (e) {
3083
- return {
3084
- getSchemaByIndexRoute: e.jsonSchemaStore.getSchemaByIndexRoute,
3085
- updateOptionLabel: e.jsonSchemaStore.updateOptionLabel,
3086
- updateOptionValue: e.jsonSchemaStore.updateOptionValue,
3087
- isExitOptionLabel: e.jsonSchemaStore.isExitOptionLabel,
3088
- deleteOptionItem: e.jsonSchemaStore.deleteOptionItem,
3089
- addOptionItem: e.jsonSchemaStore.addOptionItem,
3090
- copyOptionItem: e.jsonSchemaStore.copyOptionItem,
3091
- };
3092
- })((0, l.observer)(at)),
3093
- it = b.Tree.TreeNode,
3094
- st = function (e) {
3095
- return i().createElement(rt, e);
2720
+ var Ye = (0, l.inject)(function (e) {
2721
+ return { schemaStore: e.schemaStore };
2722
+ })((0, l.observer)(Xe)),
2723
+ Ze = S.Tree.TreeNode,
2724
+ $e = function (e) {
2725
+ return i().createElement(Ye, e);
3096
2726
  },
3097
- ct = b.Tree.TreeNode,
3098
- lt = function (e) {
3099
- return i().createElement(Ae, e);
2727
+ et = S.Tree.TreeNode,
2728
+ tt = function (e) {
2729
+ return i().createElement(Je, e);
3100
2730
  },
3101
- dt = function (e) {
2731
+ nt = function (e) {
3102
2732
  switch (e.targetJsonSchema.type) {
3103
2733
  case 'object':
3104
2734
  case 'func':
@@ -3107,78 +2737,78 @@
3107
2737
  case 'dynamic-config':
3108
2738
  case 'sohu-source':
3109
2739
  case 'sohu-event':
3110
- return mt(e);
2740
+ return rt(e);
3111
2741
  case 'array':
3112
- return He(e);
2742
+ return Pe(e);
3113
2743
  case 'datasource':
3114
2744
  return (function (e) {
3115
2745
  var t,
3116
2746
  n = e.jsonKey,
3117
- o = e.indexRoute,
3118
- a = e.nodeKey,
2747
+ a = e.indexRoute,
2748
+ o = e.nodeKey,
3119
2749
  r = e.targetJsonSchema,
3120
2750
  s = r.type,
3121
2751
  c = r.properties.data || {};
3122
2752
  return i().createElement(
3123
- Ue,
2753
+ qe,
3124
2754
  {
3125
2755
  className: s + '-schema schema-item-form',
3126
- id: a,
3127
- key: a,
3128
- indexRoute: o,
2756
+ id: o,
2757
+ key: o,
2758
+ indexRoute: a,
3129
2759
  jsonKey: n,
3130
- title: Qe(m()({}, e)),
2760
+ title: Ae(m()({}, e)),
3131
2761
  },
3132
- i().createElement(Ue, {
2762
+ i().createElement(qe, {
3133
2763
  className: 'dataSource-type-item-schema schema-item-form',
3134
- id: a + '-type',
3135
- key: a + '-type',
3136
- indexRoute: o ? o + '-0' : '0',
2764
+ id: o + '-type',
2765
+ key: o + '-type',
2766
+ indexRoute: a ? a + '-0' : '0',
3137
2767
  jsonKey: 'type',
3138
2768
  disabled: !0,
3139
2769
  title:
3140
2770
  ((t = {
3141
- indexRoute: o ? o + '-0' : '0',
2771
+ indexRoute: a ? a + '-0' : '0',
3142
2772
  jsonKey: 'type',
3143
2773
  targetJsonSchema: r.properties.type,
3144
2774
  parentType: s,
3145
- nodeKey: a + '-type',
3146
- typeSelectData: Xe,
2775
+ nodeKey: o + '-type',
2776
+ typeSelectData: _e,
3147
2777
  }),
3148
- i().createElement(We, t)),
2778
+ i().createElement(Fe, t)),
3149
2779
  }),
3150
- i().createElement(Ue, {
2780
+ i().createElement(qe, {
3151
2781
  className: 'dataSource-data-item-schema schema-item-form',
3152
- id: a + '-data-' + c.type,
3153
- key: a + '-data-' + c.type,
3154
- indexRoute: o ? o + '-1' : '1',
2782
+ id: o + '-data-' + c.type,
2783
+ key: o + '-data-' + c.type,
2784
+ indexRoute: a ? a + '-1' : '1',
3155
2785
  jsonKey: 'data',
3156
2786
  disabled: !0,
3157
- title: Qe({
3158
- indexRoute: o ? o + '-1' : '1',
2787
+ title: Ae({
2788
+ indexRoute: a ? a + '-1' : '1',
3159
2789
  jsonKey: 'data',
3160
2790
  targetJsonSchema: c,
3161
2791
  parentType: s,
3162
- nodeKey: a + '-data-' + c.type,
2792
+ nodeKey: o + '-data-' + c.type,
3163
2793
  hideOperaBtn: !0,
3164
2794
  keyIsFixed: !0,
3165
2795
  typeIsFixed: !0,
3166
2796
  }),
3167
2797
  }),
3168
- i().createElement(Ue, {
2798
+ i().createElement(qe, {
3169
2799
  className:
3170
2800
  'dataSource-filter-item-schema schema-item-form',
3171
- id: a + '-filter',
3172
- key: a + '-filter',
3173
- indexRoute: o ? o + '-2' : '2',
2801
+ id: o + '-filter',
2802
+ key: o + '-filter',
2803
+ indexRoute: a ? a + '-2' : '2',
3174
2804
  jsonKey: 'filter',
3175
2805
  disabled: !0,
3176
- title: Qe({
3177
- indexRoute: o ? o + '-2' : '2',
2806
+ title: Ae({
2807
+ indexRoute: a ? a + '-2' : '2',
3178
2808
  jsonKey: 'filter',
3179
2809
  targetJsonSchema: r.properties.filter,
3180
2810
  parentType: s,
3181
- nodeKey: a + '-filter',
2811
+ nodeKey: o + '-filter',
3182
2812
  hideOperaBtn: !0,
3183
2813
  keyIsFixed: !0,
3184
2814
  typeIsFixed: !0,
@@ -3190,71 +2820,71 @@
3190
2820
  return (function (e) {
3191
2821
  var t,
3192
2822
  n = e.jsonKey,
3193
- o = e.indexRoute,
3194
- a = e.nodeKey,
2823
+ a = e.indexRoute,
2824
+ o = e.nodeKey,
3195
2825
  r = e.targetJsonSchema,
3196
2826
  s = r.type,
3197
2827
  c = r.properties.config || {},
3198
2828
  l = r.properties.data || {};
3199
2829
  return i().createElement(
3200
- Ye,
2830
+ Me,
3201
2831
  {
3202
2832
  className: s + '-schema schema-item-form',
3203
- id: a,
3204
- key: a,
3205
- indexRoute: o,
2833
+ id: o,
2834
+ key: o,
2835
+ indexRoute: a,
3206
2836
  jsonKey: n,
3207
- title: Ze(m()({}, e)),
2837
+ title: We(m()({}, e)),
3208
2838
  },
3209
- i().createElement(Ye, {
2839
+ i().createElement(Me, {
3210
2840
  className: 'dataSource-type-item-schema schema-item-form',
3211
- id: a + '-type',
3212
- key: a + '-type',
3213
- indexRoute: o ? o + '-0' : '0',
2841
+ id: o + '-type',
2842
+ key: o + '-type',
2843
+ indexRoute: a ? a + '-0' : '0',
3214
2844
  jsonKey: 'type',
3215
2845
  disabled: !0,
3216
2846
  title:
3217
2847
  ((t = {
3218
- indexRoute: o ? o + '-0' : '0',
2848
+ indexRoute: a ? a + '-0' : '0',
3219
2849
  jsonKey: 'type',
3220
2850
  targetJsonSchema: r.properties.type,
3221
2851
  parentType: s,
3222
- nodeKey: a + '-type',
2852
+ nodeKey: o + '-type',
3223
2853
  }),
3224
- i().createElement(We, t)),
2854
+ i().createElement(Fe, t)),
3225
2855
  }),
3226
- i().createElement(Ye, {
2856
+ i().createElement(Me, {
3227
2857
  className:
3228
2858
  'dataSource-config-item-schema schema-item-form',
3229
- id: a + '-config-' + l.type,
3230
- key: a + '-config-' + l.type,
3231
- indexRoute: o ? o + '-1' : '1',
2859
+ id: o + '-config-' + l.type,
2860
+ key: o + '-config-' + l.type,
2861
+ indexRoute: a ? a + '-1' : '1',
3232
2862
  jsonKey: 'config',
3233
2863
  disabled: !0,
3234
- title: Ze({
3235
- indexRoute: o ? o + '-1' : '1',
2864
+ title: We({
2865
+ indexRoute: a ? a + '-1' : '1',
3236
2866
  jsonKey: 'config',
3237
2867
  targetJsonSchema: c,
3238
2868
  parentType: s,
3239
- nodeKey: a + '-config-' + c.type,
2869
+ nodeKey: o + '-config-' + c.type,
3240
2870
  hideOperaBtn: !0,
3241
2871
  keyIsFixed: !0,
3242
2872
  typeIsFixed: !0,
3243
2873
  }),
3244
2874
  }),
3245
- i().createElement(Ye, {
2875
+ i().createElement(Me, {
3246
2876
  className: 'dataSource-data-item-schema schema-item-form',
3247
- id: a + '-data-' + l.type,
3248
- key: a + '-data-' + l.type,
3249
- indexRoute: o ? o + '-2' : '2',
2877
+ id: o + '-data-' + l.type,
2878
+ key: o + '-data-' + l.type,
2879
+ indexRoute: a ? a + '-2' : '2',
3250
2880
  jsonKey: 'data',
3251
2881
  disabled: !0,
3252
- title: Ze({
3253
- indexRoute: o ? o + '-2' : '2',
2882
+ title: We({
2883
+ indexRoute: a ? a + '-2' : '2',
3254
2884
  jsonKey: 'data',
3255
2885
  targetJsonSchema: l,
3256
2886
  parentType: s,
3257
- nodeKey: a + '-data-' + l.type,
2887
+ nodeKey: o + '-data-' + l.type,
3258
2888
  hideOperaBtn: !0,
3259
2889
  keyIsFixed: !0,
3260
2890
  typeIsFixed: !0,
@@ -3266,99 +2896,99 @@
3266
2896
  return (function (e) {
3267
2897
  var t,
3268
2898
  n = e.jsonKey,
3269
- o = e.indexRoute,
3270
- a = e.nodeKey,
2899
+ a = e.indexRoute,
2900
+ o = e.nodeKey,
3271
2901
  r = e.targetJsonSchema,
3272
2902
  s = r.type,
3273
2903
  c = r.properties.type || {},
3274
2904
  l = r.properties.register || {},
3275
- d = r.properties.actionFunc || {},
3276
- p = r.properties.trigger || {},
2905
+ p = r.properties.actionFunc || {},
2906
+ d = r.properties.trigger || {},
3277
2907
  u = r.properties.eventData || {};
3278
2908
  return i().createElement(
3279
- $e,
2909
+ Ge,
3280
2910
  {
3281
2911
  className: s + '-schema schema-item-form',
3282
- id: a,
3283
- key: a,
3284
- indexRoute: o,
2912
+ id: o,
2913
+ key: o,
2914
+ indexRoute: a,
3285
2915
  jsonKey: n,
3286
- title: et(m()({}, e)),
2916
+ title: ze(m()({}, e)),
3287
2917
  },
3288
- i().createElement($e, {
2918
+ i().createElement(Ge, {
3289
2919
  className: 'event-type-item-schema schema-item-form',
3290
- id: a + '-type',
3291
- key: a + '-type',
3292
- indexRoute: o ? o + '-0' : '0',
2920
+ id: o + '-type',
2921
+ key: o + '-type',
2922
+ indexRoute: a ? a + '-0' : '0',
3293
2923
  jsonKey: 'type',
3294
2924
  disabled: !0,
3295
2925
  title:
3296
2926
  ((t = {
3297
- indexRoute: o ? o + '-0' : '0',
2927
+ indexRoute: a ? a + '-0' : '0',
3298
2928
  jsonKey: 'type',
3299
2929
  targetJsonSchema: c,
3300
2930
  parentType: s,
3301
- nodeKey: a + '-type',
2931
+ nodeKey: o + '-type',
3302
2932
  }),
3303
- i().createElement(We, t)),
2933
+ i().createElement(Fe, t)),
3304
2934
  }),
3305
2935
  'on' === c.default &&
3306
2936
  l &&
3307
- i().createElement($e, {
2937
+ i().createElement(Ge, {
3308
2938
  className:
3309
2939
  'event-register-item-schema schema-item-form',
3310
- id: a + '-register-' + c.default,
3311
- key: a + '-register-' + c.default,
3312
- indexRoute: o ? o + '-1' : '1',
2940
+ id: o + '-register-' + c.default,
2941
+ key: o + '-register-' + c.default,
2942
+ indexRoute: a ? a + '-1' : '1',
3313
2943
  jsonKey: 'register',
3314
2944
  disabled: !0,
3315
- title: et({
3316
- indexRoute: o ? o + '-1' : '1',
2945
+ title: ze({
2946
+ indexRoute: a ? a + '-1' : '1',
3317
2947
  jsonKey: 'register',
3318
2948
  targetJsonSchema: l,
3319
2949
  parentType: s,
3320
- nodeKey: a + '-register-' + c.default,
2950
+ nodeKey: o + '-register-' + c.default,
3321
2951
  hideOperaBtn: !0,
3322
2952
  keyIsFixed: !0,
3323
2953
  typeIsFixed: !0,
3324
2954
  }),
3325
2955
  }),
3326
2956
  'on' === c.default &&
3327
- d &&
3328
- i().createElement($e, {
2957
+ p &&
2958
+ i().createElement(Ge, {
3329
2959
  className:
3330
2960
  'event-actionFunc-item-schema schema-item-form',
3331
- id: a + '-actionFunc-' + c.default,
3332
- key: a + '-actionFunc-' + c.default,
3333
- indexRoute: o ? o + '-2' : '2',
2961
+ id: o + '-actionFunc-' + c.default,
2962
+ key: o + '-actionFunc-' + c.default,
2963
+ indexRoute: a ? a + '-2' : '2',
3334
2964
  jsonKey: 'actionFunc',
3335
2965
  disabled: !0,
3336
- title: et({
3337
- indexRoute: o ? o + '-2' : '2',
2966
+ title: ze({
2967
+ indexRoute: a ? a + '-2' : '2',
3338
2968
  jsonKey: 'actionFunc',
3339
- targetJsonSchema: d,
2969
+ targetJsonSchema: p,
3340
2970
  parentType: s,
3341
- nodeKey: a + '-actionFunc-' + c.default,
2971
+ nodeKey: o + '-actionFunc-' + c.default,
3342
2972
  hideOperaBtn: !0,
3343
2973
  keyIsFixed: !0,
3344
2974
  typeIsFixed: !0,
3345
2975
  }),
3346
2976
  }),
3347
2977
  'emit' === c.default &&
3348
- p &&
3349
- i().createElement($e, {
2978
+ d &&
2979
+ i().createElement(Ge, {
3350
2980
  className: 'event-trigger-item-schema schema-item-form',
3351
- id: a + '-trigger-' + c.default,
3352
- key: a + '-trigger-' + c.default,
3353
- indexRoute: o ? o + '-1' : '1',
2981
+ id: o + '-trigger-' + c.default,
2982
+ key: o + '-trigger-' + c.default,
2983
+ indexRoute: a ? a + '-1' : '1',
3354
2984
  jsonKey: 'trigger',
3355
2985
  disabled: !0,
3356
- title: et({
3357
- indexRoute: o ? o + '-1' : '1',
2986
+ title: ze({
2987
+ indexRoute: a ? a + '-1' : '1',
3358
2988
  jsonKey: 'trigger',
3359
- targetJsonSchema: p,
2989
+ targetJsonSchema: d,
3360
2990
  parentType: s,
3361
- nodeKey: a + '-trigger-' + c.default,
2991
+ nodeKey: o + '-trigger-' + c.default,
3362
2992
  hideOperaBtn: !0,
3363
2993
  keyIsFixed: !0,
3364
2994
  typeIsFixed: !0,
@@ -3366,20 +2996,20 @@
3366
2996
  }),
3367
2997
  'emit' === c.default &&
3368
2998
  u &&
3369
- i().createElement($e, {
2999
+ i().createElement(Ge, {
3370
3000
  className:
3371
3001
  'event-eventData-item-schema schema-item-form',
3372
- id: a + '-eventData-' + c.default,
3373
- key: a + '-eventData-' + c.default,
3374
- indexRoute: o ? o + '-2' : '2',
3002
+ id: o + '-eventData-' + c.default,
3003
+ key: o + '-eventData-' + c.default,
3004
+ indexRoute: a ? a + '-2' : '2',
3375
3005
  jsonKey: 'eventData',
3376
3006
  disabled: !0,
3377
- title: et({
3378
- indexRoute: o ? o + '-2' : '2',
3007
+ title: ze({
3008
+ indexRoute: a ? a + '-2' : '2',
3379
3009
  jsonKey: 'eventData',
3380
3010
  targetJsonSchema: u,
3381
3011
  parentType: s,
3382
- nodeKey: a + '-eventData-' + c.default,
3012
+ nodeKey: o + '-eventData-' + c.default,
3383
3013
  hideOperaBtn: !0,
3384
3014
  keyIsFixed: !0,
3385
3015
  typeIsFixed: !0,
@@ -3392,57 +3022,57 @@
3392
3022
  return (function (e) {
3393
3023
  var t,
3394
3024
  n = e.jsonKey,
3395
- o = e.indexRoute,
3396
- a = e.nodeKey,
3025
+ a = e.indexRoute,
3026
+ o = e.nodeKey,
3397
3027
  r = e.targetJsonSchema,
3398
3028
  s = r.type,
3399
3029
  c = r.propertyOrder[0],
3400
3030
  l = r.properties[c];
3401
3031
  return i().createElement(
3402
- tt,
3032
+ Ue,
3403
3033
  {
3404
3034
  className: s + '-schema schema-item-form',
3405
- id: a,
3406
- key: a,
3407
- indexRoute: o,
3035
+ id: o,
3036
+ key: o,
3037
+ indexRoute: a,
3408
3038
  jsonKey: n,
3409
- title: nt(m()({}, e)),
3039
+ title: He(m()({}, e)),
3410
3040
  },
3411
- i().createElement(tt, {
3041
+ i().createElement(Ue, {
3412
3042
  className: 'quantity-unit-item-schema schema-item-form',
3413
- id: a + '-' + c,
3414
- key: a + '-' + c,
3415
- indexRoute: o ? o + '-0' : '0',
3043
+ id: o + '-' + c,
3044
+ key: o + '-' + c,
3045
+ indexRoute: a ? a + '-0' : '0',
3416
3046
  jsonKey: c,
3417
3047
  disabled: !0,
3418
- title: nt({
3419
- indexRoute: o ? o + '-0' : '0',
3048
+ title: He({
3049
+ indexRoute: a ? a + '-0' : '0',
3420
3050
  jsonKey: c,
3421
3051
  targetJsonSchema: l,
3422
3052
  parentType: s,
3423
- nodeKey: a + '-' + c,
3053
+ nodeKey: o + '-' + c,
3424
3054
  hideOperaBtn: !0,
3425
3055
  showAdvanceBtn: !0,
3426
3056
  typeIsFixed: !0,
3427
3057
  }),
3428
3058
  }),
3429
- i().createElement(tt, {
3059
+ i().createElement(Ue, {
3430
3060
  className:
3431
3061
  'quantity-typeSelect-item-schema schema-item-form',
3432
- id: a + '-quantity',
3433
- key: a + '-quantity',
3434
- indexRoute: o ? o + '-1' : '1',
3062
+ id: o + '-quantity',
3063
+ key: o + '-quantity',
3064
+ indexRoute: a ? a + '-1' : '1',
3435
3065
  jsonKey: 'quantity',
3436
3066
  disabled: !0,
3437
3067
  title:
3438
3068
  ((t = {
3439
- indexRoute: o ? o + '-1' : '1',
3069
+ indexRoute: a ? a + '-1' : '1',
3440
3070
  jsonKey: 'quantity',
3441
3071
  targetJsonSchema: r.properties.quantity,
3442
3072
  parentType: s,
3443
- nodeKey: a + '-quantity',
3073
+ nodeKey: o + '-quantity',
3444
3074
  }),
3445
- i().createElement(We, t)),
3075
+ i().createElement(Fe, t)),
3446
3076
  }),
3447
3077
  );
3448
3078
  })(e);
@@ -3452,39 +3082,39 @@
3452
3082
  return (function (e) {
3453
3083
  var t,
3454
3084
  n = e.jsonKey,
3455
- o = e.indexRoute,
3456
- a = e.nodeKey,
3085
+ a = e.indexRoute,
3086
+ o = e.nodeKey,
3457
3087
  r = e.targetJsonSchema,
3458
3088
  s = r.type,
3459
3089
  c = r.options,
3460
- l = o || '0';
3090
+ l = a || '0';
3461
3091
  return i().createElement(
3462
- it,
3092
+ Ze,
3463
3093
  {
3464
3094
  className: s + '-schema schema-item-form',
3465
- id: a,
3466
- key: a,
3467
- indexRoute: o,
3095
+ id: o,
3096
+ key: o,
3097
+ indexRoute: a,
3468
3098
  jsonKey: n,
3469
- title: ((t = m()({}, e)), i().createElement(Ae, t)),
3099
+ title: ((t = m()({}, e)), i().createElement(Je, t)),
3470
3100
  },
3471
3101
  c &&
3472
3102
  c.length > 0 &&
3473
3103
  c.map(function (e, t) {
3474
3104
  var n = e.label || e.name,
3475
- o = e.value,
3476
- r = '' + a + s + '-' + n;
3477
- return i().createElement(it, {
3105
+ a = e.value,
3106
+ r = '' + o + s + '-' + n;
3107
+ return i().createElement(Ze, {
3478
3108
  className: 'enum-item-schema schema-item-form',
3479
3109
  id: r,
3480
3110
  key: r,
3481
3111
  indexRoute: l,
3482
3112
  disabled: !0,
3483
- title: st({
3113
+ title: $e({
3484
3114
  indexRoute: l,
3485
3115
  optionIndex: t,
3486
3116
  optionLabel: n,
3487
- optionValue: o,
3117
+ optionValue: a,
3488
3118
  optionNodeKey: r,
3489
3119
  }),
3490
3120
  });
@@ -3495,66 +3125,66 @@
3495
3125
  return (function (e) {
3496
3126
  var t = e.jsonKey,
3497
3127
  n = e.indexRoute,
3498
- o = e.nodeKey,
3499
- a = e.targetJsonSchema.type;
3500
- return i().createElement(ct, {
3501
- className: a + '-schema schema-item-form',
3502
- id: o,
3503
- key: o,
3128
+ a = e.nodeKey,
3129
+ o = e.targetJsonSchema.type;
3130
+ return i().createElement(et, {
3131
+ className: o + '-schema schema-item-form',
3132
+ id: a,
3133
+ key: a,
3504
3134
  indexRoute: n,
3505
3135
  jsonKey: t,
3506
- title: lt(e),
3136
+ title: tt(e),
3507
3137
  });
3508
3138
  })(e);
3509
3139
  }
3510
3140
  },
3511
- pt = b.Tree.TreeNode,
3512
- ut = function (e) {
3513
- return i().createElement(Ae, e);
3141
+ at = S.Tree.TreeNode,
3142
+ ot = function (e) {
3143
+ return i().createElement(Je, e);
3514
3144
  },
3515
- mt = function (e) {
3145
+ rt = function (e) {
3516
3146
  var t,
3517
3147
  n,
3518
- o,
3519
3148
  a,
3149
+ o,
3520
3150
  r,
3521
3151
  s = e.jsonKey,
3522
3152
  c = e.indexRoute,
3523
3153
  l = e.nodeKey,
3524
- d = e.targetJsonSchema,
3525
- p = e.isOnlyShowChild,
3526
- u = d.type,
3527
- h = d.isFixed,
3154
+ p = e.targetJsonSchema,
3155
+ d = e.isOnlyShowChild,
3156
+ u = p.type,
3157
+ h = p.isFixed,
3528
3158
  y =
3529
3159
  ((t = {
3530
- propertyOrder: d.propertyOrder,
3531
- properties: d.properties,
3160
+ propertyOrder: p.propertyOrder,
3161
+ properties: p.properties,
3532
3162
  parentIndexRoute: c,
3533
3163
  parentNodeKey: l,
3534
3164
  parentType: u,
3535
- isOnlyShowChild: p,
3165
+ isOnlyShowChild: d,
3536
3166
  }),
3537
3167
  (n = t.properties),
3538
- (o = t.parentIndexRoute),
3539
- (a = t.parentNodeKey),
3168
+ (a = t.parentIndexRoute),
3169
+ (o = t.parentNodeKey),
3540
3170
  (r = t.parentType),
3541
3171
  t.propertyOrder.map(function (e, t) {
3542
- var i = o ? o + '-' + t : '' + t,
3172
+ var i = a ? a + '-' + t : '' + t,
3543
3173
  s = e,
3544
3174
  c = n[s],
3545
3175
  l = c.type,
3546
- d = (a ? a + '-' : '') + l + '-' + s;
3547
- return dt({
3176
+ p = (o ? o + '-' : '') + l + '-' + s;
3177
+ return nt({
3548
3178
  parentType: r,
3549
3179
  jsonKey: s,
3550
3180
  indexRoute: i,
3551
- key: d,
3552
- nodeKey: d,
3181
+ key: p,
3182
+ nodeKey: p,
3553
3183
  targetJsonSchema: c,
3554
3184
  });
3555
3185
  })),
3556
3186
  g = i().createElement(
3557
- pt,
3187
+ at,
3558
3188
  {
3559
3189
  className: u + '-schema schema-item-form',
3560
3190
  id: l,
@@ -3562,128 +3192,70 @@
3562
3192
  indexRoute: c,
3563
3193
  jsonKey: s,
3564
3194
  disabled: h,
3565
- title: ut(m()({}, e)),
3195
+ title: ot(m()({}, e)),
3566
3196
  },
3567
3197
  y,
3568
3198
  );
3569
- return p ? y : g;
3199
+ return d ? y : g;
3570
3200
  },
3571
- ht =
3572
- (n(797),
3573
- (0, l.inject)(function (e) {
3574
- return {
3575
- jsonSchema: e.jsonSchemaStore.jsonSchema,
3576
- removeConditionProp: e.jsonSchemaStore.removeConditionProp,
3577
- cancelConditionProp: e.jsonSchemaStore.cancelConditionProp,
3578
- };
3579
- })(
3580
- (0, l.observer)(function (e) {
3581
- var t = e.jsonSchema,
3582
- n = e.removeConditionProp,
3583
- o = e.cancelConditionProp,
3584
- a = {};
3585
- t.conditionProps && (a = t.conditionProps);
3586
- var r = Object.keys(a);
3587
- return 0 === r.length
3588
- ? ''
3589
- : i().createElement(
3590
- 'div',
3591
- { className: 'condition-props-box' },
3592
- i().createElement(
3593
- 'div',
3594
- { className: 'title' },
3595
- i().createElement(
3596
- b.Tooltip,
3597
- {
3598
- title: '其他字段可根据条件字段的数值设置规则联动',
3599
- placement: 'top',
3600
- },
3601
- '条件字段:',
3602
- ),
3603
- ),
3604
- i().createElement(
3605
- 'div',
3606
- { className: 'tags-box' },
3607
- r.map(function (e) {
3608
- var t = a[e];
3609
- return i().createElement(
3610
- b.Tag,
3611
- {
3612
- key: t.keyRoute,
3613
- color: 'geekblue',
3614
- closable: !0,
3615
- onClose: function () {
3616
- n(t.keyRoute), o(t.keyRoute, t.key);
3617
- },
3618
- },
3619
- t.key,
3620
- '(',
3621
- t.title,
3622
- ')',
3623
- );
3624
- }),
3625
- ),
3626
- );
3627
- }),
3628
- )),
3629
- yt =
3201
+ it =
3630
3202
  (n(23),
3631
3203
  (function (e) {
3632
3204
  function t(t) {
3633
3205
  var n;
3634
- return (
3635
- ((n = e.call(this, t) || this).onDragStart = function (e) {
3636
- (0, n.props.getSchemaByIndexRoute)(e.node.indexRoute)
3637
- .isFixed && b.message.warning('当前元素不支持拖拽哦。');
3638
- }),
3206
+ ((n = e.call(this, t) || this).onDragStart = function (e) {
3207
+ (0, (n.props.schemaStore || {}).getSchemaByIndexRoute)(
3208
+ e.node.indexRoute,
3209
+ ).isFixed && S.message.warning('当前元素不支持拖拽哦。');
3210
+ }),
3639
3211
  (n.onDrop = function (e) {
3640
3212
  var t = e.dragNode,
3641
- o = e.node,
3642
- a = n.props,
3643
- r = a.getSchemaByIndexRoute,
3644
- i = a.indexRoute2keyRoute,
3645
- s = a.insertJsonData,
3646
- c = a.deleteJsonByIndex,
3647
- l = a.isExitJsonKey,
3648
- d = a.isSupportCurType,
3649
- p = t.indexRoute,
3213
+ a = e.node,
3214
+ o = n.props.schemaStore || {},
3215
+ r = o.getSchemaByIndexRoute,
3216
+ i = o.indexRoute2keyRoute,
3217
+ s = o.insertJsonData,
3218
+ c = o.deleteJsonByIndex,
3219
+ l = o.isExitJsonKey,
3220
+ p = o.isSupportCurType,
3221
+ d = t.indexRoute,
3650
3222
  u = t.jsonKey,
3651
- m = r(p);
3223
+ m = r(d);
3652
3224
  if (!m.isFixed) {
3653
- var h = o.indexRoute,
3654
- y = (0, Ie.isSameParent)(p, h),
3655
- g = (0, Ie.getCurPosition)(p, h);
3225
+ var h = a.indexRoute,
3226
+ y = (0, Oe.isSameParent)(d, h),
3227
+ g = (0, Oe.getCurPosition)(d, h);
3656
3228
  if (y)
3657
- c(p, !0),
3658
- 'before' === g && (h = (0, Ie.moveForward)(h)),
3659
- o.dragOverGapTop
3229
+ c(d, !0),
3230
+ 'before' === g && (h = (0, Oe.moveForward)(h)),
3231
+ a.dragOverGapTop
3660
3232
  ? s(h, u, m, 'before')
3661
- : (o.dragOver || o.dragOverGapBottom) && s(h, u, m);
3233
+ : (a.dragOver || a.dragOverGapBottom) && s(h, u, m);
3662
3234
  else {
3663
3235
  if (l(h, u))
3664
- return void b.message.warning(
3236
+ return void S.message.warning(
3665
3237
  '目标位置中有重名的元素',
3666
3238
  );
3667
3239
  var f = m.type;
3668
- if (!d(h, f))
3669
- return void b.message.warning(
3240
+ if (!p(h, f))
3241
+ return void S.message.warning(
3670
3242
  '目标位置不支持' + f + '类型元素',
3671
3243
  );
3672
- var S = i(p),
3673
- v = (0, Ie.getParentIndexRoute)(h),
3674
- x = (function (e) {
3244
+ var v = i(d),
3245
+ x = (0, Oe.getParentIndexRoute)(h),
3246
+ b = (function (e) {
3675
3247
  if (window.sessionStorage)
3676
3248
  return window.sessionStorage.getItem(e);
3677
- })(S + '-' + f);
3678
- j(i(v) + '-' + u + '-' + f, x || S),
3679
- o.dragOverGapTop
3249
+ })(v + '-' + f);
3250
+ C(i(x) + '-' + u + '-' + f, b || v),
3251
+ a.dragOverGapTop
3680
3252
  ? 'after' === g
3681
- ? (c(p, !0), s(h, u, m, 'before'))
3682
- : (s(h, u, m, 'before', !0), c(p))
3683
- : (o.dragOver || o.dragOverGapBottom) &&
3253
+ ? (c(d, !0), s(h, u, m, 'before'))
3254
+ : (s(h, u, m, 'before', !0), c(d))
3255
+ : (a.dragOver || a.dragOverGapBottom) &&
3684
3256
  ('after' === g
3685
- ? (c(p, !0), s(h, u, m))
3686
- : (s(h, u, m, '', !0), c(p)));
3257
+ ? (c(d, !0), s(h, u, m))
3258
+ : (s(h, u, m, '', !0), c(d)));
3687
3259
  }
3688
3260
  }
3689
3261
  }),
@@ -3693,34 +3265,40 @@
3693
3265
  e &&
3694
3266
  e.propertyOrder &&
3695
3267
  e.properties &&
3696
- e.propertyOrder.map(function (n, o) {
3697
- var a = n,
3698
- r = e.properties[a].type + '-' + a;
3268
+ e.propertyOrder.map(function (n, a) {
3269
+ var o = n,
3270
+ r = e.properties[o].type + '-' + o;
3699
3271
  t.push(r);
3700
3272
  }),
3701
3273
  t
3702
3274
  );
3703
- }),
3704
- t.data && n.props.initJSONSchemaData(t.data),
3705
- t.onChange && n.props.initOnChange(t.onChange),
3706
- t.typeList && n.props.initSchemaTypeList(t.typeList),
3275
+ });
3276
+ var a = n.props.schemaStore || {},
3277
+ o = a.initJSONSchemaData,
3278
+ r = a.initOnChange,
3279
+ i = a.initSchemaTypeList;
3280
+ return (
3281
+ t.data && o(t.data),
3282
+ t.onChange && r(t.onChange),
3283
+ t.typeList && i(t.typeList),
3707
3284
  n
3708
3285
  );
3709
3286
  }
3710
- a()(t, e);
3287
+ o()(t, e);
3711
3288
  var n = t.prototype;
3712
3289
  return (
3713
3290
  (n.componentWillReceiveProps = function (e) {
3714
- C(e.data, this.props.data) ||
3715
- this.props.initJSONSchemaData(e.data),
3716
- C(e.onChange, this.props.onChange) ||
3717
- this.props.initOnChange(e.onChange),
3718
- C(e.typeList, this.props.typeList) ||
3719
- this.props.initSchemaTypeList(e.typeList);
3291
+ var t = this.props.schemaStore || {},
3292
+ n = t.initJSONSchemaData,
3293
+ a = t.initOnChange,
3294
+ o = t.initSchemaTypeList;
3295
+ O(e.data, this.props.data) || n(e.data),
3296
+ O(e.onChange, this.props.onChange) || a(e.onChange),
3297
+ O(e.typeList, this.props.typeList) || o(e.typeList);
3720
3298
  }),
3721
3299
  (n.render = function () {
3722
- var e = this.props.jsonSchema,
3723
- t = (0, Ie.isEmptySchema)(e),
3300
+ var e = (this.props.schemaStore || {}).jsonSchema,
3301
+ t = (0, Oe.isEmptySchema)(e),
3724
3302
  n = e.type;
3725
3303
  return r.createElement(
3726
3304
  'div',
@@ -3729,9 +3307,8 @@
3729
3307
  r.createElement(
3730
3308
  r.Fragment,
3731
3309
  null,
3732
- r.createElement(ht, null),
3733
3310
  r.createElement(
3734
- b.Tree,
3311
+ S.Tree,
3735
3312
  {
3736
3313
  draggable: !0,
3737
3314
  selectable: !1,
@@ -3743,7 +3320,7 @@
3743
3320
  : this.catchExpandedKeys(e),
3744
3321
  },
3745
3322
  'object' === n &&
3746
- mt({
3323
+ rt({
3747
3324
  parentType: '',
3748
3325
  jsonKey: '',
3749
3326
  indexRoute: '',
@@ -3752,7 +3329,7 @@
3752
3329
  isOnlyShowChild: !0,
3753
3330
  }),
3754
3331
  'object' !== n &&
3755
- dt({
3332
+ nt({
3756
3333
  parentType: '',
3757
3334
  jsonKey: '',
3758
3335
  indexRoute: '',
@@ -3774,70 +3351,58 @@
3774
3351
  t
3775
3352
  );
3776
3353
  })(r.PureComponent));
3777
- yt.propTypes = {
3778
- onChange: p().func,
3779
- data: p().object,
3780
- typeList: p().object,
3354
+ it.propTypes = {
3355
+ onChange: d().func,
3356
+ data: d().object,
3357
+ typeList: d().object,
3781
3358
  };
3782
- var gt = (0, l.inject)(function (e) {
3783
- return {
3784
- jsonSchema: e.jsonSchemaStore.jsonSchema,
3785
- initJSONSchemaData: e.jsonSchemaStore.initJSONSchemaData,
3786
- initOnChange: e.jsonSchemaStore.initOnChange,
3787
- initSchemaTypeList: e.jsonSchemaStore.initSchemaTypeList,
3788
- setPageScreen: e.jsonSchemaStore.setPageScreen,
3789
- getSchemaByIndexRoute: e.jsonSchemaStore.getSchemaByIndexRoute,
3790
- indexRoute2keyRoute: e.jsonSchemaStore.indexRoute2keyRoute,
3791
- insertJsonData: e.jsonSchemaStore.insertJsonData,
3792
- deleteJsonByIndex: e.jsonSchemaStore.deleteJsonByIndex,
3793
- isExitJsonKey: e.jsonSchemaStore.isExitJsonKey,
3794
- isSupportCurType: e.jsonSchemaStore.isSupportCurType,
3795
- };
3796
- })((0, l.observer)(yt)),
3797
- ft = (function (e) {
3359
+ var st = (0, l.inject)(function (e) {
3360
+ return { schemaStore: e.schemaStore };
3361
+ })((0, l.observer)(it)),
3362
+ ct = (function (e) {
3798
3363
  function t(t) {
3799
3364
  var n;
3800
3365
  return (
3801
3366
  ((n = e.call(this, t) || this).state = {
3802
- jsonSchemaStore: new Ke.jsonSchemaStore(),
3367
+ schemaStore: new Ne.schemaStore(),
3803
3368
  }),
3804
3369
  n
3805
3370
  );
3806
3371
  }
3807
3372
  return (
3808
- a()(t, e),
3373
+ o()(t, e),
3809
3374
  (t.prototype.render = function () {
3810
3375
  var e = this.props,
3811
3376
  t = e.data,
3812
3377
  n = e.typeList,
3813
- o = e.onChange,
3814
- a = e.element,
3378
+ a = e.onChange,
3379
+ o = e.element,
3815
3380
  i = e.wideScreen,
3816
- s = this.state.jsonSchemaStore,
3817
- d = r.createElement(
3381
+ s = this.state.schemaStore,
3382
+ p = r.createElement(
3818
3383
  l.Provider,
3819
- { jsonSchemaStore: s },
3820
- r.createElement(gt, {
3384
+ { schemaStore: s },
3385
+ r.createElement(st, {
3821
3386
  data: t,
3822
3387
  typeList: n,
3823
- onChange: o,
3388
+ onChange: a,
3824
3389
  wideScreen: i,
3825
3390
  }),
3826
3391
  );
3827
- return a ? (c().render(d, a), '') : d;
3392
+ return o ? (c().render(p, o), '') : p;
3828
3393
  }),
3829
3394
  t
3830
3395
  );
3831
3396
  })(r.PureComponent);
3832
- ft.propTypes = {
3833
- wideScreen: p().any,
3834
- onChange: p().func,
3835
- data: p().any,
3836
- typeList: p().any,
3837
- element: p().any,
3397
+ ct.propTypes = {
3398
+ wideScreen: d().any,
3399
+ onChange: d().func,
3400
+ data: d().any,
3401
+ typeList: d().any,
3402
+ element: d().any,
3838
3403
  };
3839
3404
  })(),
3840
- o
3405
+ a
3841
3406
  );
3842
3407
  })();
3843
3408
  });