@wibetter/json-schema-editor 5.0.8 → 5.0.9

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