@wibetter/json-utils 5.0.7 → 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/dist/index.esm.js +696 -5
- package/dist/index.esm.min.js +1268 -950
- package/dist/index.js +661 -335
- package/dist/index.js.LICENSE.txt +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
'use strict';
|
|
13
13
|
var e = {
|
|
14
14
|
d: function (t, r) {
|
|
15
|
-
for (var
|
|
16
|
-
e.o(r,
|
|
17
|
-
!e.o(t,
|
|
18
|
-
Object.defineProperty(t,
|
|
15
|
+
for (var a in r)
|
|
16
|
+
e.o(r, a) &&
|
|
17
|
+
!e.o(t, a) &&
|
|
18
|
+
Object.defineProperty(t, a, { enumerable: !0, get: r[a] });
|
|
19
19
|
},
|
|
20
20
|
o: function (e, t) {
|
|
21
21
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
e.r(t),
|
|
32
32
|
e.d(t, {
|
|
33
33
|
DataSourceTypeList: function () {
|
|
34
|
-
return
|
|
34
|
+
return O;
|
|
35
35
|
},
|
|
36
36
|
EventTypeDataList: function () {
|
|
37
|
-
return
|
|
37
|
+
return h;
|
|
38
38
|
},
|
|
39
39
|
KeyWordList: function () {
|
|
40
|
-
return
|
|
40
|
+
return de;
|
|
41
41
|
},
|
|
42
42
|
TypeDataList: function () {
|
|
43
|
-
return
|
|
43
|
+
return g;
|
|
44
44
|
},
|
|
45
45
|
dataRoute2dataPath: function () {
|
|
46
46
|
return oe;
|
|
@@ -48,243 +48,252 @@
|
|
|
48
48
|
dynamicDataAnalyzer: function () {
|
|
49
49
|
return ne;
|
|
50
50
|
},
|
|
51
|
+
expressionOn: function () {
|
|
52
|
+
return o;
|
|
53
|
+
},
|
|
51
54
|
getCurPosition: function () {
|
|
52
|
-
return
|
|
55
|
+
return W;
|
|
53
56
|
},
|
|
54
57
|
getDefaultOptionVal: function () {
|
|
55
|
-
return
|
|
58
|
+
return ee;
|
|
56
59
|
},
|
|
57
60
|
getExpectType: function () {
|
|
58
61
|
return L;
|
|
59
62
|
},
|
|
60
63
|
getJsonDataByKeyRoute: function () {
|
|
61
|
-
return
|
|
64
|
+
return p;
|
|
62
65
|
},
|
|
63
66
|
getNextIndexRoute: function () {
|
|
64
|
-
return
|
|
67
|
+
return z;
|
|
65
68
|
},
|
|
66
69
|
getParentIndexRoute: function () {
|
|
67
|
-
return
|
|
70
|
+
return Z;
|
|
68
71
|
},
|
|
69
72
|
getParentIndexRoute_CurIndex: function () {
|
|
70
|
-
return
|
|
73
|
+
return H;
|
|
71
74
|
},
|
|
72
75
|
getParentKeyRoute: function () {
|
|
73
|
-
return
|
|
76
|
+
return ce;
|
|
74
77
|
},
|
|
75
78
|
getParentKeyRoute_CurKey: function () {
|
|
76
|
-
return
|
|
79
|
+
return se;
|
|
77
80
|
},
|
|
78
81
|
getSchemaByIndexRoute: function () {
|
|
79
|
-
return
|
|
82
|
+
return u;
|
|
80
83
|
},
|
|
81
84
|
getSchemaByKeyRoute: function () {
|
|
82
|
-
return
|
|
85
|
+
return c;
|
|
83
86
|
},
|
|
84
87
|
hasProperties: function () {
|
|
85
|
-
return
|
|
88
|
+
return l;
|
|
86
89
|
},
|
|
87
90
|
indexRoute2keyRoute: function () {
|
|
88
|
-
return
|
|
91
|
+
return s;
|
|
89
92
|
},
|
|
90
93
|
isArray: function () {
|
|
91
|
-
return
|
|
94
|
+
return R;
|
|
92
95
|
},
|
|
93
96
|
isBoolean: function () {
|
|
94
|
-
return
|
|
97
|
+
return S;
|
|
95
98
|
},
|
|
96
99
|
isColor: function () {
|
|
97
100
|
return q;
|
|
98
101
|
},
|
|
99
102
|
isContainerSchema: function () {
|
|
100
|
-
return
|
|
103
|
+
return U;
|
|
101
104
|
},
|
|
102
105
|
isDateStr: function () {
|
|
103
106
|
return T;
|
|
104
107
|
},
|
|
105
108
|
isDateTimeStr: function () {
|
|
106
|
-
return
|
|
109
|
+
return D;
|
|
107
110
|
},
|
|
108
111
|
isEmptySchema: function () {
|
|
109
|
-
return
|
|
112
|
+
return J;
|
|
110
113
|
},
|
|
111
114
|
isEqual: function () {
|
|
112
|
-
return
|
|
115
|
+
return i;
|
|
113
116
|
},
|
|
114
117
|
isFunction: function () {
|
|
115
118
|
return F;
|
|
116
119
|
},
|
|
117
120
|
isNewSchemaData: function () {
|
|
118
|
-
return
|
|
121
|
+
return K;
|
|
119
122
|
},
|
|
120
123
|
isNumber: function () {
|
|
121
|
-
return
|
|
124
|
+
return x;
|
|
122
125
|
},
|
|
123
126
|
isObject: function () {
|
|
124
|
-
return
|
|
127
|
+
return E;
|
|
125
128
|
},
|
|
126
129
|
isQuantity: function () {
|
|
127
130
|
return k;
|
|
128
131
|
},
|
|
129
132
|
isSameParent: function () {
|
|
130
|
-
return
|
|
133
|
+
return Y;
|
|
131
134
|
},
|
|
132
135
|
isSelect: function () {
|
|
133
|
-
return
|
|
136
|
+
return w;
|
|
134
137
|
},
|
|
135
138
|
isString: function () {
|
|
136
|
-
return
|
|
139
|
+
return C;
|
|
137
140
|
},
|
|
138
141
|
isStructuredSchema: function () {
|
|
139
|
-
return
|
|
142
|
+
return X;
|
|
140
143
|
},
|
|
141
144
|
isTimeStr: function () {
|
|
142
|
-
return
|
|
145
|
+
return N;
|
|
143
146
|
},
|
|
144
147
|
isURL: function () {
|
|
145
|
-
return
|
|
148
|
+
return j;
|
|
146
149
|
},
|
|
147
150
|
json2schema: function () {
|
|
148
|
-
return
|
|
151
|
+
return I;
|
|
149
152
|
},
|
|
150
153
|
json2treeData: function () {
|
|
151
|
-
return
|
|
154
|
+
return pe;
|
|
152
155
|
},
|
|
153
156
|
keyRoute2indexRoute: function () {
|
|
154
|
-
return
|
|
157
|
+
return d;
|
|
155
158
|
},
|
|
156
159
|
metaElemAnalyzer: function () {
|
|
157
160
|
return M;
|
|
158
161
|
},
|
|
159
162
|
moveBackward: function () {
|
|
160
|
-
return
|
|
163
|
+
return G;
|
|
161
164
|
},
|
|
162
165
|
moveForward: function () {
|
|
163
|
-
return
|
|
166
|
+
return Q;
|
|
164
167
|
},
|
|
165
168
|
objClone: function () {
|
|
166
|
-
return
|
|
169
|
+
return a;
|
|
167
170
|
},
|
|
168
171
|
oldSchemaToNewSchema: function () {
|
|
169
|
-
return
|
|
172
|
+
return A;
|
|
170
173
|
},
|
|
171
174
|
oldSchemaToNewSchemaV1: function () {
|
|
172
|
-
return
|
|
175
|
+
return _;
|
|
173
176
|
},
|
|
174
177
|
registerExpectType: function () {
|
|
175
|
-
return
|
|
178
|
+
return V;
|
|
179
|
+
},
|
|
180
|
+
schema2conditionValue: function () {
|
|
181
|
+
return ue;
|
|
176
182
|
},
|
|
177
183
|
schema2json: function () {
|
|
178
184
|
return ie;
|
|
179
185
|
},
|
|
180
186
|
schemaMetaList: function () {
|
|
181
|
-
return
|
|
187
|
+
return le;
|
|
182
188
|
},
|
|
183
189
|
truncate: function () {
|
|
184
|
-
return
|
|
190
|
+
return n;
|
|
185
191
|
},
|
|
186
192
|
});
|
|
187
193
|
var r = require('lodash');
|
|
188
|
-
function
|
|
194
|
+
function a(e) {
|
|
189
195
|
return (0, r.cloneDeep)(e);
|
|
190
196
|
}
|
|
191
|
-
function
|
|
197
|
+
function i(e, t) {
|
|
192
198
|
return (0, r.isEqual)(e, t);
|
|
193
199
|
}
|
|
194
|
-
function
|
|
200
|
+
function l(e) {
|
|
195
201
|
var t = !1;
|
|
196
202
|
return null != e && (t = !0), t;
|
|
197
203
|
}
|
|
198
|
-
function
|
|
204
|
+
function n(e, t) {
|
|
199
205
|
return (0, r.truncate)(e, t);
|
|
200
206
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
if ((r && (a = i(t)), e))
|
|
204
|
-
for (var n = e.split('-'), o = 0, l = n.length; o < l; o++) {
|
|
205
|
-
var p = n[o];
|
|
206
|
-
p && (a = a && a[p]);
|
|
207
|
-
}
|
|
208
|
-
return a;
|
|
207
|
+
function o(e, t) {
|
|
208
|
+
return new Function('data', 'with(data) { return (' + e + ');}')(t);
|
|
209
209
|
}
|
|
210
210
|
function p(e, t, r) {
|
|
211
|
-
var
|
|
212
|
-
if ((r && (
|
|
213
|
-
for (var
|
|
214
|
-
var p = n
|
|
211
|
+
var i = t;
|
|
212
|
+
if ((r && (i = a(t)), e))
|
|
213
|
+
for (var l = e.split('-'), n = 0, o = l.length; n < o; n++) {
|
|
214
|
+
var p = l[n];
|
|
215
|
+
p && (i = i && i[p]);
|
|
216
|
+
}
|
|
217
|
+
return i;
|
|
218
|
+
}
|
|
219
|
+
function u(e, t, r) {
|
|
220
|
+
var i = t;
|
|
221
|
+
if ((r && (i = a(t)), e))
|
|
222
|
+
for (var l = e.split('-'), n = 0, o = l.length; n < o; n++) {
|
|
223
|
+
var p = l[n];
|
|
215
224
|
if (
|
|
216
225
|
'0' !== p ||
|
|
217
|
-
('array' !==
|
|
218
|
-
'radio' !==
|
|
219
|
-
'select' !==
|
|
220
|
-
'checkboxes' !==
|
|
221
|
-
(!
|
|
226
|
+
('array' !== i.type &&
|
|
227
|
+
'radio' !== i.type &&
|
|
228
|
+
'select' !== i.type &&
|
|
229
|
+
'checkboxes' !== i.type) ||
|
|
230
|
+
(!i.options && !i.items)
|
|
222
231
|
) {
|
|
223
232
|
if (p) {
|
|
224
233
|
var u = '0';
|
|
225
|
-
|
|
226
|
-
? (u =
|
|
227
|
-
:
|
|
228
|
-
(
|
|
234
|
+
i.propertyOrder
|
|
235
|
+
? (u = i.propertyOrder[p])
|
|
236
|
+
: i.properties && (u = Object.keys(i.properties)[p]),
|
|
237
|
+
(i = i.properties[u]);
|
|
229
238
|
}
|
|
230
|
-
} else
|
|
239
|
+
} else i = i.options || i.items;
|
|
231
240
|
}
|
|
232
|
-
return
|
|
241
|
+
return i;
|
|
233
242
|
}
|
|
234
|
-
function
|
|
235
|
-
var
|
|
236
|
-
if ((r && (
|
|
237
|
-
for (var
|
|
238
|
-
var p = n
|
|
239
|
-
p &&
|
|
243
|
+
function c(e, t, r) {
|
|
244
|
+
var i = t;
|
|
245
|
+
if ((r && (i = a(t)), e && i))
|
|
246
|
+
for (var l = e.split('-'), n = 0, o = l.length; n < o; n++) {
|
|
247
|
+
var p = l[n];
|
|
248
|
+
p && i.properties && (i = i.properties[p]);
|
|
240
249
|
}
|
|
241
|
-
return
|
|
250
|
+
return i;
|
|
242
251
|
}
|
|
243
|
-
function
|
|
252
|
+
function s(e, t) {
|
|
244
253
|
for (
|
|
245
|
-
var r = t,
|
|
246
|
-
|
|
247
|
-
|
|
254
|
+
var r = t, a = '', i = e.split('-'), l = 0, n = i.length;
|
|
255
|
+
l < n;
|
|
256
|
+
l++
|
|
248
257
|
) {
|
|
249
|
-
var
|
|
250
|
-
if ('0' ===
|
|
251
|
-
(r = r.items), (
|
|
252
|
-
else if ('0' ===
|
|
253
|
-
(r = r.options), (
|
|
254
|
-
else if (
|
|
258
|
+
var o = i[l];
|
|
259
|
+
if ('0' === o && r.items)
|
|
260
|
+
(r = r.items), (a = a ? a + '-items' : 'items');
|
|
261
|
+
else if ('0' === o && r.options)
|
|
262
|
+
(r = r.options), (a = a ? a + '-options' : 'options');
|
|
263
|
+
else if (o) {
|
|
255
264
|
var p = '0';
|
|
256
265
|
r.propertyOrder
|
|
257
|
-
? (p = r.propertyOrder[
|
|
258
|
-
: r.properties && (p = Object.keys(r.properties)[
|
|
266
|
+
? (p = r.propertyOrder[o])
|
|
267
|
+
: r.properties && (p = Object.keys(r.properties)[o]),
|
|
259
268
|
(r = r.properties[p]),
|
|
260
|
-
(
|
|
269
|
+
(a = a ? a + '-' + p : p);
|
|
261
270
|
}
|
|
262
271
|
}
|
|
263
|
-
return
|
|
272
|
+
return a;
|
|
264
273
|
}
|
|
265
|
-
function
|
|
274
|
+
function d(e, t) {
|
|
266
275
|
for (
|
|
267
|
-
var r = t,
|
|
268
|
-
|
|
269
|
-
|
|
276
|
+
var r = t, a = '', i = e.split('-'), l = 0, n = i.length;
|
|
277
|
+
l < n;
|
|
278
|
+
l++
|
|
270
279
|
) {
|
|
271
|
-
var
|
|
272
|
-
if (
|
|
280
|
+
var o = i[l];
|
|
281
|
+
if (o) {
|
|
273
282
|
var p = -1;
|
|
274
283
|
r.propertyOrder
|
|
275
|
-
? ((p = r.propertyOrder.indexOf(
|
|
284
|
+
? ((p = r.propertyOrder.indexOf(o)), (r = r.properties[o]))
|
|
276
285
|
: r.properties
|
|
277
|
-
? ((p = Object.keys(r.properties).indexOf(
|
|
278
|
-
(r = r.properties[
|
|
286
|
+
? ((p = Object.keys(r.properties).indexOf(o)),
|
|
287
|
+
(r = r.properties[o]))
|
|
279
288
|
: r.items
|
|
280
289
|
? ((p = 0), (r = r.items))
|
|
281
290
|
: r.options && ((p = 0), (r = r.options)),
|
|
282
|
-
(
|
|
291
|
+
(a = a ? a + '-' + p : p.toString());
|
|
283
292
|
}
|
|
284
293
|
}
|
|
285
|
-
return
|
|
294
|
+
return a;
|
|
286
295
|
}
|
|
287
|
-
var
|
|
296
|
+
var y,
|
|
288
297
|
f = {
|
|
289
298
|
type: 'event',
|
|
290
299
|
title: '事件',
|
|
@@ -315,7 +324,7 @@
|
|
|
315
324
|
},
|
|
316
325
|
propertyOrder: ['type', 'trigger', 'eventData'],
|
|
317
326
|
},
|
|
318
|
-
|
|
327
|
+
b = {
|
|
319
328
|
type: 'datasource',
|
|
320
329
|
title: '数据源',
|
|
321
330
|
isContainer: !1,
|
|
@@ -347,11 +356,11 @@
|
|
|
347
356
|
},
|
|
348
357
|
propertyOrder: ['type', 'data', 'filter'],
|
|
349
358
|
},
|
|
350
|
-
|
|
351
|
-
(((
|
|
352
|
-
(
|
|
353
|
-
(
|
|
354
|
-
(
|
|
359
|
+
v =
|
|
360
|
+
(((y = { type: 'object' }).type = 'datasource'),
|
|
361
|
+
(y.title = '数据源'),
|
|
362
|
+
(y.isContainer = !1),
|
|
363
|
+
(y.properties = {
|
|
355
364
|
type: {
|
|
356
365
|
type: 'select',
|
|
357
366
|
default: 'remote',
|
|
@@ -377,15 +386,15 @@
|
|
|
377
386
|
isRequired: !0,
|
|
378
387
|
},
|
|
379
388
|
}),
|
|
380
|
-
(
|
|
381
|
-
|
|
382
|
-
|
|
389
|
+
(y.propertyOrder = ['type', 'data', 'filter']),
|
|
390
|
+
y),
|
|
391
|
+
m = {
|
|
383
392
|
type: 'local',
|
|
384
393
|
config: { dataName: '', body: {}, filter: 'return data;' },
|
|
385
394
|
data: '{}',
|
|
386
395
|
localFilter: 'return data;',
|
|
387
396
|
},
|
|
388
|
-
|
|
397
|
+
g = {
|
|
389
398
|
jsonschema: {
|
|
390
399
|
type: 'object',
|
|
391
400
|
title: 'jsonSchemaObject',
|
|
@@ -472,7 +481,6 @@
|
|
|
472
481
|
type: 'array',
|
|
473
482
|
title: '数组Array',
|
|
474
483
|
description: '',
|
|
475
|
-
default: [],
|
|
476
484
|
items: {
|
|
477
485
|
type: 'object',
|
|
478
486
|
title: '数组项',
|
|
@@ -544,6 +552,13 @@
|
|
|
544
552
|
maximum: 1e3,
|
|
545
553
|
description: '',
|
|
546
554
|
},
|
|
555
|
+
'input-image': {
|
|
556
|
+
title: '图片地址',
|
|
557
|
+
type: 'input-image',
|
|
558
|
+
description: '',
|
|
559
|
+
accept: '.jpeg,.jpg,.png',
|
|
560
|
+
multiple: !0,
|
|
561
|
+
},
|
|
547
562
|
json: {
|
|
548
563
|
title: 'json数据',
|
|
549
564
|
type: 'json',
|
|
@@ -739,7 +754,7 @@
|
|
|
739
754
|
},
|
|
740
755
|
propertyOrder: ['type', 'config', 'data', 'localFilter'],
|
|
741
756
|
},
|
|
742
|
-
datasource:
|
|
757
|
+
datasource: b,
|
|
743
758
|
event: f,
|
|
744
759
|
'dynamic-config': {
|
|
745
760
|
type: 'dynamic-config',
|
|
@@ -768,6 +783,8 @@
|
|
|
768
783
|
default: '',
|
|
769
784
|
description: '',
|
|
770
785
|
placeholder: '',
|
|
786
|
+
onShow:
|
|
787
|
+
'type === "DevDefaults" || type === "Content" || type === "RuntimeConst"',
|
|
771
788
|
},
|
|
772
789
|
description: {
|
|
773
790
|
title: '属性名称',
|
|
@@ -775,6 +792,8 @@
|
|
|
775
792
|
default: '',
|
|
776
793
|
description: '',
|
|
777
794
|
placeholder: '',
|
|
795
|
+
onShow:
|
|
796
|
+
'type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
778
797
|
},
|
|
779
798
|
valueType: {
|
|
780
799
|
type: 'radio',
|
|
@@ -786,12 +805,16 @@
|
|
|
786
805
|
default: 'string',
|
|
787
806
|
isConditionProp: !0,
|
|
788
807
|
description: '',
|
|
808
|
+
onShow:
|
|
809
|
+
'type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
789
810
|
},
|
|
790
811
|
range: {
|
|
791
812
|
type: 'select',
|
|
792
813
|
title: '可选项',
|
|
793
814
|
multiple: !0,
|
|
794
815
|
options: [],
|
|
816
|
+
onShow:
|
|
817
|
+
'(type === "ContentStaticConfig" || type === "ResourceCenter") && valueType === "select"',
|
|
795
818
|
description: '这里会使用value中的配置选项作为options',
|
|
796
819
|
},
|
|
797
820
|
},
|
|
@@ -832,6 +855,7 @@
|
|
|
832
855
|
default: '',
|
|
833
856
|
description: '',
|
|
834
857
|
placeholder: '',
|
|
858
|
+
onShow: 'type === "ContentStaticConfig"',
|
|
835
859
|
},
|
|
836
860
|
dataType: {
|
|
837
861
|
type: 'radio',
|
|
@@ -849,6 +873,7 @@
|
|
|
849
873
|
default: '',
|
|
850
874
|
description: '',
|
|
851
875
|
placeholder: '',
|
|
876
|
+
onShow: 'type === "RuntimeDataSelfDefine"',
|
|
852
877
|
},
|
|
853
878
|
CONTENTTYPE: {
|
|
854
879
|
type: 'select',
|
|
@@ -859,6 +884,7 @@
|
|
|
859
884
|
{ label: 'block', value: 'block' },
|
|
860
885
|
],
|
|
861
886
|
description: '',
|
|
887
|
+
onShow: 'type === "RuntimeDataSelfDefine"',
|
|
862
888
|
},
|
|
863
889
|
},
|
|
864
890
|
propertyOrder: [
|
|
@@ -1081,8 +1107,285 @@
|
|
|
1081
1107
|
},
|
|
1082
1108
|
propertyOrder: ['globalEventMap', 'event'],
|
|
1083
1109
|
},
|
|
1110
|
+
'sohu-ad': {
|
|
1111
|
+
type: 'object',
|
|
1112
|
+
title: '广告配置',
|
|
1113
|
+
description: '',
|
|
1114
|
+
properties: {
|
|
1115
|
+
type: {
|
|
1116
|
+
type: 'select',
|
|
1117
|
+
title: '数据源类型',
|
|
1118
|
+
isConditionProp: !0,
|
|
1119
|
+
options: [
|
|
1120
|
+
{ label: '模板直接设置', value: 'DevDefaults' },
|
|
1121
|
+
{ label: '资源中心配置', value: 'ResourceCenter' },
|
|
1122
|
+
],
|
|
1123
|
+
description: '',
|
|
1124
|
+
},
|
|
1125
|
+
value: {
|
|
1126
|
+
type: 'object',
|
|
1127
|
+
title: '广告规则',
|
|
1128
|
+
description: '',
|
|
1129
|
+
onShow: 'type === "DevDefaults"',
|
|
1130
|
+
properties: {
|
|
1131
|
+
id: {
|
|
1132
|
+
title: '广告ID',
|
|
1133
|
+
type: 'input',
|
|
1134
|
+
default: '',
|
|
1135
|
+
description: '',
|
|
1136
|
+
placeholder: '',
|
|
1137
|
+
},
|
|
1138
|
+
rule: {
|
|
1139
|
+
type: 'radio',
|
|
1140
|
+
title: '规则类型',
|
|
1141
|
+
options: [
|
|
1142
|
+
{ label: '固定位置', value: 1 },
|
|
1143
|
+
{ label: '隔几出几', value: 2 },
|
|
1144
|
+
{ label: '固定位置隔几出几', value: 3 },
|
|
1145
|
+
],
|
|
1146
|
+
default: 1,
|
|
1147
|
+
description: '',
|
|
1148
|
+
},
|
|
1149
|
+
fixArray: {
|
|
1150
|
+
type: 'select',
|
|
1151
|
+
title: '固定位置',
|
|
1152
|
+
default: 1,
|
|
1153
|
+
description: '',
|
|
1154
|
+
options: [
|
|
1155
|
+
{ label: '1', value: 1 },
|
|
1156
|
+
{ label: '2', value: 2 },
|
|
1157
|
+
{ label: '3', value: 3 },
|
|
1158
|
+
{ label: '4', value: 4 },
|
|
1159
|
+
{ label: '5', value: 5 },
|
|
1160
|
+
{ label: '6', value: 6 },
|
|
1161
|
+
{ label: '7', value: 7 },
|
|
1162
|
+
{ label: '8', value: 8 },
|
|
1163
|
+
{ label: '9', value: 9 },
|
|
1164
|
+
{ label: '10', value: 10 },
|
|
1165
|
+
{ label: '11', value: 11 },
|
|
1166
|
+
{ label: '12', value: 12 },
|
|
1167
|
+
{ label: '13', value: 13 },
|
|
1168
|
+
{ label: '14', value: 14 },
|
|
1169
|
+
{ label: '15', value: 15 },
|
|
1170
|
+
{ label: '16', value: 16 },
|
|
1171
|
+
{ label: '17', value: 17 },
|
|
1172
|
+
{ label: '18', value: 18 },
|
|
1173
|
+
{ label: '19', value: 19 },
|
|
1174
|
+
{ label: '20', value: 20 },
|
|
1175
|
+
{ label: '21', value: 21 },
|
|
1176
|
+
{ label: '22', value: 22 },
|
|
1177
|
+
{ label: '23', value: 23 },
|
|
1178
|
+
{ label: '24', value: 24 },
|
|
1179
|
+
{ label: '25', value: 25 },
|
|
1180
|
+
{ label: '26', value: 26 },
|
|
1181
|
+
{ label: '27', value: 27 },
|
|
1182
|
+
{ label: '28', value: 28 },
|
|
1183
|
+
{ label: '29', value: 29 },
|
|
1184
|
+
{ label: '30', value: 30 },
|
|
1185
|
+
{ label: '31', value: 31 },
|
|
1186
|
+
{ label: '32', value: 32 },
|
|
1187
|
+
{ label: '33', value: 33 },
|
|
1188
|
+
{ label: '34', value: 34 },
|
|
1189
|
+
{ label: '35', value: 35 },
|
|
1190
|
+
{ label: '36', value: 36 },
|
|
1191
|
+
{ label: '37', value: 37 },
|
|
1192
|
+
{ label: '38', value: 38 },
|
|
1193
|
+
{ label: '39', value: 39 },
|
|
1194
|
+
{ label: '40', value: 40 },
|
|
1195
|
+
{ label: '41', value: 41 },
|
|
1196
|
+
{ label: '42', value: 42 },
|
|
1197
|
+
{ label: '43', value: 43 },
|
|
1198
|
+
{ label: '44', value: 44 },
|
|
1199
|
+
{ label: '45', value: 45 },
|
|
1200
|
+
{ label: '46', value: 46 },
|
|
1201
|
+
{ label: '47', value: 47 },
|
|
1202
|
+
{ label: '48', value: 48 },
|
|
1203
|
+
{ label: '49', value: 49 },
|
|
1204
|
+
{ label: '50', value: 50 },
|
|
1205
|
+
],
|
|
1206
|
+
},
|
|
1207
|
+
begin: {
|
|
1208
|
+
type: 'number',
|
|
1209
|
+
title: '开始位置',
|
|
1210
|
+
default: 1,
|
|
1211
|
+
minimum: '1',
|
|
1212
|
+
maximum: '50',
|
|
1213
|
+
description: '',
|
|
1214
|
+
},
|
|
1215
|
+
turn: {
|
|
1216
|
+
type: 'number',
|
|
1217
|
+
title: '间隔/隔',
|
|
1218
|
+
default: 1,
|
|
1219
|
+
minimum: '1',
|
|
1220
|
+
maximum: '50',
|
|
1221
|
+
description: '',
|
|
1222
|
+
},
|
|
1223
|
+
number: {
|
|
1224
|
+
type: 'number',
|
|
1225
|
+
title: '间隔/出',
|
|
1226
|
+
default: 1,
|
|
1227
|
+
minimum: '1',
|
|
1228
|
+
maximum: '50',
|
|
1229
|
+
description: '',
|
|
1230
|
+
},
|
|
1231
|
+
mergeType: {
|
|
1232
|
+
type: 'radio',
|
|
1233
|
+
title: '插入规则',
|
|
1234
|
+
options: [
|
|
1235
|
+
{ label: '覆盖', value: 0 },
|
|
1236
|
+
{ label: '插入', value: 1 },
|
|
1237
|
+
],
|
|
1238
|
+
default: 0,
|
|
1239
|
+
description: '',
|
|
1240
|
+
},
|
|
1241
|
+
},
|
|
1242
|
+
propertyOrder: [
|
|
1243
|
+
'id',
|
|
1244
|
+
'rule',
|
|
1245
|
+
'fixArray',
|
|
1246
|
+
'begin',
|
|
1247
|
+
'turn',
|
|
1248
|
+
'number',
|
|
1249
|
+
'mergeType',
|
|
1250
|
+
],
|
|
1251
|
+
},
|
|
1252
|
+
range: {
|
|
1253
|
+
type: 'array',
|
|
1254
|
+
title: '广告规则列表',
|
|
1255
|
+
description: '',
|
|
1256
|
+
onShow: 'type === "ResourceCenter"',
|
|
1257
|
+
items: {
|
|
1258
|
+
type: 'object',
|
|
1259
|
+
title: '数组项',
|
|
1260
|
+
description: '',
|
|
1261
|
+
properties: {
|
|
1262
|
+
id: {
|
|
1263
|
+
title: '广告ID',
|
|
1264
|
+
type: 'input',
|
|
1265
|
+
default: '',
|
|
1266
|
+
description: '',
|
|
1267
|
+
placeholder: '',
|
|
1268
|
+
},
|
|
1269
|
+
rule: {
|
|
1270
|
+
type: 'radio',
|
|
1271
|
+
title: '规则类型',
|
|
1272
|
+
options: [
|
|
1273
|
+
{ label: '固定位置', value: 1 },
|
|
1274
|
+
{ label: '隔几出几', value: 2 },
|
|
1275
|
+
{ label: '固定位置隔几出几', value: 3 },
|
|
1276
|
+
],
|
|
1277
|
+
default: 1,
|
|
1278
|
+
description: '',
|
|
1279
|
+
},
|
|
1280
|
+
fixArray: {
|
|
1281
|
+
type: 'select',
|
|
1282
|
+
title: '固定位置',
|
|
1283
|
+
default: 1,
|
|
1284
|
+
description: '',
|
|
1285
|
+
options: [
|
|
1286
|
+
{ label: '1', value: 1 },
|
|
1287
|
+
{ label: '2', value: 2 },
|
|
1288
|
+
{ label: '3', value: 3 },
|
|
1289
|
+
{ label: '4', value: 4 },
|
|
1290
|
+
{ label: '5', value: 5 },
|
|
1291
|
+
{ label: '6', value: 6 },
|
|
1292
|
+
{ label: '7', value: 7 },
|
|
1293
|
+
{ label: '8', value: 8 },
|
|
1294
|
+
{ label: '9', value: 9 },
|
|
1295
|
+
{ label: '10', value: 10 },
|
|
1296
|
+
{ label: '11', value: 11 },
|
|
1297
|
+
{ label: '12', value: 12 },
|
|
1298
|
+
{ label: '13', value: 13 },
|
|
1299
|
+
{ label: '14', value: 14 },
|
|
1300
|
+
{ label: '15', value: 15 },
|
|
1301
|
+
{ label: '16', value: 16 },
|
|
1302
|
+
{ label: '17', value: 17 },
|
|
1303
|
+
{ label: '18', value: 18 },
|
|
1304
|
+
{ label: '19', value: 19 },
|
|
1305
|
+
{ label: '20', value: 20 },
|
|
1306
|
+
{ label: '21', value: 21 },
|
|
1307
|
+
{ label: '22', value: 22 },
|
|
1308
|
+
{ label: '23', value: 23 },
|
|
1309
|
+
{ label: '24', value: 24 },
|
|
1310
|
+
{ label: '25', value: 25 },
|
|
1311
|
+
{ label: '26', value: 26 },
|
|
1312
|
+
{ label: '27', value: 27 },
|
|
1313
|
+
{ label: '28', value: 28 },
|
|
1314
|
+
{ label: '29', value: 29 },
|
|
1315
|
+
{ label: '30', value: 30 },
|
|
1316
|
+
{ label: '31', value: 31 },
|
|
1317
|
+
{ label: '32', value: 32 },
|
|
1318
|
+
{ label: '33', value: 33 },
|
|
1319
|
+
{ label: '34', value: 34 },
|
|
1320
|
+
{ label: '35', value: 35 },
|
|
1321
|
+
{ label: '36', value: 36 },
|
|
1322
|
+
{ label: '37', value: 37 },
|
|
1323
|
+
{ label: '38', value: 38 },
|
|
1324
|
+
{ label: '39', value: 39 },
|
|
1325
|
+
{ label: '40', value: 40 },
|
|
1326
|
+
{ label: '41', value: 41 },
|
|
1327
|
+
{ label: '42', value: 42 },
|
|
1328
|
+
{ label: '43', value: 43 },
|
|
1329
|
+
{ label: '44', value: 44 },
|
|
1330
|
+
{ label: '45', value: 45 },
|
|
1331
|
+
{ label: '46', value: 46 },
|
|
1332
|
+
{ label: '47', value: 47 },
|
|
1333
|
+
{ label: '48', value: 48 },
|
|
1334
|
+
{ label: '49', value: 49 },
|
|
1335
|
+
{ label: '50', value: 50 },
|
|
1336
|
+
],
|
|
1337
|
+
},
|
|
1338
|
+
begin: {
|
|
1339
|
+
type: 'number',
|
|
1340
|
+
title: '开始位置',
|
|
1341
|
+
default: 1,
|
|
1342
|
+
minimum: '1',
|
|
1343
|
+
maximum: '50',
|
|
1344
|
+
description: '',
|
|
1345
|
+
},
|
|
1346
|
+
turn: {
|
|
1347
|
+
type: 'number',
|
|
1348
|
+
title: '间隔/隔',
|
|
1349
|
+
default: 1,
|
|
1350
|
+
minimum: '1',
|
|
1351
|
+
maximum: '50',
|
|
1352
|
+
description: '',
|
|
1353
|
+
},
|
|
1354
|
+
number: {
|
|
1355
|
+
type: 'number',
|
|
1356
|
+
title: '间隔/出',
|
|
1357
|
+
default: 1,
|
|
1358
|
+
minimum: '1',
|
|
1359
|
+
maximum: '50',
|
|
1360
|
+
description: '',
|
|
1361
|
+
},
|
|
1362
|
+
mergeType: {
|
|
1363
|
+
type: 'radio',
|
|
1364
|
+
title: '插入规则',
|
|
1365
|
+
options: [
|
|
1366
|
+
{ label: '覆盖', value: 0 },
|
|
1367
|
+
{ label: '插入', value: 1 },
|
|
1368
|
+
],
|
|
1369
|
+
default: 0,
|
|
1370
|
+
description: '',
|
|
1371
|
+
},
|
|
1372
|
+
},
|
|
1373
|
+
propertyOrder: [
|
|
1374
|
+
'id',
|
|
1375
|
+
'rule',
|
|
1376
|
+
'fixArray',
|
|
1377
|
+
'begin',
|
|
1378
|
+
'turn',
|
|
1379
|
+
'number',
|
|
1380
|
+
'mergeType',
|
|
1381
|
+
],
|
|
1382
|
+
},
|
|
1383
|
+
},
|
|
1384
|
+
},
|
|
1385
|
+
propertyOrder: ['type', 'value', 'range'],
|
|
1386
|
+
},
|
|
1084
1387
|
},
|
|
1085
|
-
|
|
1388
|
+
h = {
|
|
1086
1389
|
on: {
|
|
1087
1390
|
type: 'event',
|
|
1088
1391
|
title: '事件',
|
|
@@ -1115,47 +1418,47 @@
|
|
|
1115
1418
|
},
|
|
1116
1419
|
emit: f,
|
|
1117
1420
|
},
|
|
1118
|
-
|
|
1119
|
-
function
|
|
1421
|
+
O = { local: b, remote: v };
|
|
1422
|
+
function j(e) {
|
|
1120
1423
|
return /^http[s]?:\/\/.*/.test(e);
|
|
1121
1424
|
}
|
|
1122
|
-
function
|
|
1425
|
+
function C(e) {
|
|
1123
1426
|
return 'String' === Object.prototype.toString.call(e).slice(8, -1);
|
|
1124
1427
|
}
|
|
1125
|
-
function
|
|
1428
|
+
function x(e) {
|
|
1126
1429
|
return (
|
|
1127
1430
|
'number' == typeof e ||
|
|
1128
1431
|
'[object Number]' === Object.prototype.toString.call(e)
|
|
1129
1432
|
);
|
|
1130
1433
|
}
|
|
1131
|
-
function
|
|
1434
|
+
function S(e) {
|
|
1132
1435
|
return 'Boolean' === Object.prototype.toString.call(e).slice(8, -1);
|
|
1133
1436
|
}
|
|
1134
1437
|
function T(e) {
|
|
1135
1438
|
return /^\d{4}-\d{2}-\d{2}$/.test(e);
|
|
1136
1439
|
}
|
|
1137
|
-
function
|
|
1440
|
+
function D(e) {
|
|
1138
1441
|
return (
|
|
1139
1442
|
/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}$/.test(e) ||
|
|
1140
1443
|
/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(e)
|
|
1141
1444
|
);
|
|
1142
1445
|
}
|
|
1143
|
-
function
|
|
1446
|
+
function N(e) {
|
|
1144
1447
|
return /^\d{2}:\d{2}:\d{2}$/.test(e) || /^\d{2}:\d{2}$/.test(e);
|
|
1145
1448
|
}
|
|
1146
|
-
function
|
|
1449
|
+
function R(e) {
|
|
1147
1450
|
var t = !1;
|
|
1148
1451
|
return (
|
|
1149
1452
|
'Array' === Object.prototype.toString.call(e).slice(8, -1) && (t = !0),
|
|
1150
1453
|
t
|
|
1151
1454
|
);
|
|
1152
1455
|
}
|
|
1153
|
-
function
|
|
1154
|
-
if (!
|
|
1155
|
-
for (var t = 0, r = e.length; t < r; t++) if (!
|
|
1456
|
+
function w(e) {
|
|
1457
|
+
if (!R(e)) return !1;
|
|
1458
|
+
for (var t = 0, r = e.length; t < r; t++) if (!C(e[t])) return !1;
|
|
1156
1459
|
return !0;
|
|
1157
1460
|
}
|
|
1158
|
-
function
|
|
1461
|
+
function E(e) {
|
|
1159
1462
|
var t = !1;
|
|
1160
1463
|
return (
|
|
1161
1464
|
'Object' === Object.prototype.toString.call(e).slice(8, -1) && (t = !0),
|
|
@@ -1164,7 +1467,7 @@
|
|
|
1164
1467
|
}
|
|
1165
1468
|
function k(e) {
|
|
1166
1469
|
var t = !1;
|
|
1167
|
-
return
|
|
1470
|
+
return g.quantity.properties.quantity.enum.indexOf(e) >= 0 && (t = !0), t;
|
|
1168
1471
|
}
|
|
1169
1472
|
function q(e) {
|
|
1170
1473
|
return /^#[0-9a-f]{6}$/.test(e) || /^#[0-9a-f]{3}$/.test(e);
|
|
@@ -1177,79 +1480,79 @@
|
|
|
1177
1480
|
t
|
|
1178
1481
|
);
|
|
1179
1482
|
}
|
|
1180
|
-
function
|
|
1483
|
+
function I(e) {
|
|
1181
1484
|
var t;
|
|
1182
1485
|
return (
|
|
1183
1486
|
(t =
|
|
1184
|
-
e &&
|
|
1487
|
+
e && E(e)
|
|
1185
1488
|
? (function (e) {
|
|
1186
1489
|
var t;
|
|
1187
|
-
if (
|
|
1490
|
+
if (E(e)) {
|
|
1188
1491
|
var r = Object.keys(e);
|
|
1189
1492
|
e.data && e.filter && 2 === r.length
|
|
1190
|
-
? (t =
|
|
1493
|
+
? (t = R(e.data) || E(e.data) ? a(O.local) : a(O.remote))
|
|
1191
1494
|
: e.trigger && e.eventData && 2 === r.length
|
|
1192
|
-
? (t =
|
|
1495
|
+
? (t = a(h.emit))
|
|
1193
1496
|
: e.register && e.actionFunc && 2 === r.length
|
|
1194
|
-
? (t =
|
|
1497
|
+
? (t = a(h.on))
|
|
1195
1498
|
: e.quantity && k(e.quantity) && 2 === r.length
|
|
1196
|
-
? (t =
|
|
1197
|
-
: ((t =
|
|
1499
|
+
? (t = a(g.quantity))
|
|
1500
|
+
: ((t = a(g['empty-object'])),
|
|
1198
1501
|
Object.keys(e).map(function (r) {
|
|
1199
|
-
var
|
|
1200
|
-
t.properties[r] =
|
|
1502
|
+
var a = e[r];
|
|
1503
|
+
t.properties[r] = I(a);
|
|
1201
1504
|
}));
|
|
1202
1505
|
}
|
|
1203
1506
|
return t;
|
|
1204
1507
|
})(e)
|
|
1205
|
-
: e &&
|
|
1508
|
+
: e && R(e)
|
|
1206
1509
|
? (function (e) {
|
|
1207
1510
|
var t;
|
|
1208
|
-
if (e &&
|
|
1209
|
-
if (
|
|
1210
|
-
(t =
|
|
1511
|
+
if (e && R(e))
|
|
1512
|
+
if (w(e)) {
|
|
1513
|
+
(t = a(g.select)).items.enum = e;
|
|
1211
1514
|
var r = t.items.enumextra.length,
|
|
1212
|
-
|
|
1213
|
-
if (
|
|
1214
|
-
for (var
|
|
1215
|
-
t.items.enumextra.push('选项' + e(
|
|
1515
|
+
i = e.length;
|
|
1516
|
+
if (i > r)
|
|
1517
|
+
for (var l = r, n = i; l < n; l++)
|
|
1518
|
+
t.items.enumextra.push('选项' + e(l));
|
|
1216
1519
|
} else {
|
|
1217
|
-
t =
|
|
1218
|
-
var
|
|
1219
|
-
t.items.properties =
|
|
1520
|
+
t = a(g['empty-array']);
|
|
1521
|
+
var o = I(e[0]);
|
|
1522
|
+
t.items.properties = o.properties;
|
|
1220
1523
|
}
|
|
1221
1524
|
return t;
|
|
1222
1525
|
})(e)
|
|
1223
1526
|
: (function (e) {
|
|
1224
1527
|
var t = '';
|
|
1225
|
-
if (
|
|
1226
|
-
else if (
|
|
1227
|
-
else if (
|
|
1228
|
-
else if (T(e)) t =
|
|
1229
|
-
else if (
|
|
1230
|
-
else if (
|
|
1231
|
-
else if (q(e)) t =
|
|
1528
|
+
if (S(e)) t = a(g.boolean);
|
|
1529
|
+
else if (x(e)) t = a(g.number);
|
|
1530
|
+
else if (j(e)) t = a(g.url);
|
|
1531
|
+
else if (T(e)) t = a(g.date);
|
|
1532
|
+
else if (D(e)) t = a(g['date-time']);
|
|
1533
|
+
else if (N(e)) t = a(g.time);
|
|
1534
|
+
else if (q(e)) t = a(g.color);
|
|
1232
1535
|
else
|
|
1233
1536
|
try {
|
|
1234
|
-
t =
|
|
1537
|
+
t = x(JSON.parse(e)) ? a(g.input) : a(g.json);
|
|
1235
1538
|
} catch (r) {
|
|
1236
|
-
t = e && e.length > 30 ?
|
|
1539
|
+
t = e && e.length > 30 ? a(g.textarea) : a(g.input);
|
|
1237
1540
|
}
|
|
1238
1541
|
return t;
|
|
1239
1542
|
})(e)),
|
|
1240
1543
|
t
|
|
1241
1544
|
);
|
|
1242
1545
|
}
|
|
1243
|
-
function
|
|
1546
|
+
function P(e, t) {
|
|
1244
1547
|
var r = t || {};
|
|
1245
1548
|
return (
|
|
1246
|
-
|
|
1549
|
+
E(e) &&
|
|
1247
1550
|
'object' === getExpectType(e.type) &&
|
|
1248
1551
|
e.properties &&
|
|
1249
1552
|
(e.propertyOrder ? e.propertyOrder : Object.keys(e.properties)).map(
|
|
1250
1553
|
function (t) {
|
|
1251
|
-
var
|
|
1252
|
-
r = M(
|
|
1554
|
+
var a = e.properties[t];
|
|
1555
|
+
r = M(a, r);
|
|
1253
1556
|
},
|
|
1254
1557
|
),
|
|
1255
1558
|
r
|
|
@@ -1257,23 +1560,23 @@
|
|
|
1257
1560
|
}
|
|
1258
1561
|
function M(e, t) {
|
|
1259
1562
|
var r = !t,
|
|
1260
|
-
|
|
1563
|
+
a = t || {};
|
|
1261
1564
|
if (e && '{}' !== JSON.stringify(e)) {
|
|
1262
|
-
var
|
|
1263
|
-
'object' ===
|
|
1264
|
-
? (!r &&
|
|
1265
|
-
(
|
|
1266
|
-
: 'array' ===
|
|
1267
|
-
? (!r &&
|
|
1268
|
-
(
|
|
1269
|
-
: !r && i
|
|
1270
|
-
? (i
|
|
1271
|
-
: r || (i
|
|
1565
|
+
var i = e.type;
|
|
1566
|
+
'object' === i || 'func' === i || 'style' === i || 'data' === i
|
|
1567
|
+
? (!r && a.object ? (a.object += 1) : r || (a.object = 1),
|
|
1568
|
+
(a = P(e, a)))
|
|
1569
|
+
: 'array' === i
|
|
1570
|
+
? (!r && a.array ? (a.array += 1) : r || (a.array = 1),
|
|
1571
|
+
(a = P((e = e.items), a)))
|
|
1572
|
+
: !r && a[i]
|
|
1573
|
+
? (a[i] += 1)
|
|
1574
|
+
: r || (a[i] = 1);
|
|
1272
1575
|
}
|
|
1273
|
-
return
|
|
1576
|
+
return a;
|
|
1274
1577
|
}
|
|
1275
|
-
function
|
|
1276
|
-
var t =
|
|
1578
|
+
function _(e) {
|
|
1579
|
+
var t = a(e);
|
|
1277
1580
|
if (
|
|
1278
1581
|
(!t.title && t.description && (t.title = t.description),
|
|
1279
1582
|
t.type || (t.type = t.format),
|
|
@@ -1282,7 +1585,7 @@
|
|
|
1282
1585
|
'datasource' !== t.type &&
|
|
1283
1586
|
'event' !== t.type &&
|
|
1284
1587
|
'object' !== t.type) ||
|
|
1285
|
-
!
|
|
1588
|
+
!l(t.default) ||
|
|
1286
1589
|
delete t.default,
|
|
1287
1590
|
'radio' === t.type &&
|
|
1288
1591
|
((t.type = 'string'),
|
|
@@ -1290,62 +1593,62 @@
|
|
|
1290
1593
|
t.enumextra &&
|
|
1291
1594
|
((t.items = {
|
|
1292
1595
|
type: 'string',
|
|
1293
|
-
enum:
|
|
1294
|
-
enumextra:
|
|
1596
|
+
enum: a(t.enum),
|
|
1597
|
+
enumextra: a(t.enumextra),
|
|
1295
1598
|
}),
|
|
1296
1599
|
delete t.enum,
|
|
1297
1600
|
delete t.enumextra)),
|
|
1298
1601
|
'quantity' === t.type)
|
|
1299
1602
|
) {
|
|
1300
1603
|
var r = t.properties,
|
|
1301
|
-
|
|
1302
|
-
if (r.quantity &&
|
|
1303
|
-
var
|
|
1304
|
-
|
|
1604
|
+
i = a(g.quantity);
|
|
1605
|
+
if (r.quantity && E(r.quantity) && r.quantity.default) {
|
|
1606
|
+
var n = r.quantity.default;
|
|
1607
|
+
i.properties.quantity.default = 'percent' === n ? '%' : n;
|
|
1305
1608
|
}
|
|
1306
|
-
t =
|
|
1609
|
+
t = i;
|
|
1307
1610
|
}
|
|
1308
1611
|
if ('datasource' === t.type) {
|
|
1309
|
-
var
|
|
1310
|
-
p =
|
|
1311
|
-
u =
|
|
1312
|
-
c =
|
|
1612
|
+
var o = t.properties,
|
|
1613
|
+
p = o.type && o.type.default,
|
|
1614
|
+
u = o.data && o.data.default,
|
|
1615
|
+
c = o.filter && o.filter.default;
|
|
1313
1616
|
'local' === p
|
|
1314
|
-
? ((t =
|
|
1315
|
-
: ((t =
|
|
1316
|
-
?
|
|
1617
|
+
? ((t = a(O.local)).properties.data.default = u ? a(u) : '{}')
|
|
1618
|
+
: ((t = a(O.remote)).properties.data.default = u
|
|
1619
|
+
? a(u)
|
|
1317
1620
|
: 'http://xxx'),
|
|
1318
|
-
(t.properties.filter.default = c ?
|
|
1621
|
+
(t.properties.filter.default = c ? a(c) : '() => {}');
|
|
1319
1622
|
}
|
|
1320
1623
|
if ('event' === t.type) {
|
|
1321
1624
|
var s = t.properties,
|
|
1322
1625
|
d = s.type && s.type.default;
|
|
1323
1626
|
if ('in' === d || 'on' === d) {
|
|
1324
|
-
var
|
|
1325
|
-
(t =
|
|
1627
|
+
var y = (s.filter && s.filter.default) || '() => {}';
|
|
1628
|
+
(t = a(h.on)),
|
|
1326
1629
|
s.actionFunc &&
|
|
1327
|
-
|
|
1328
|
-
(t.properties.actionFunc.default = s.actionFunc.default ||
|
|
1630
|
+
E(s.actionFunc) &&
|
|
1631
|
+
(t.properties.actionFunc.default = s.actionFunc.default || a(y));
|
|
1329
1632
|
} else {
|
|
1330
|
-
var
|
|
1331
|
-
(t =
|
|
1633
|
+
var f = (s.filter && s.filter.default) || '{}';
|
|
1634
|
+
(t = a(h.emit)),
|
|
1332
1635
|
s.eventData &&
|
|
1333
|
-
|
|
1334
|
-
(t.properties.eventData.default = s.eventData.default ||
|
|
1636
|
+
E(s.eventData) &&
|
|
1637
|
+
(t.properties.eventData.default = s.eventData.default || a(f));
|
|
1335
1638
|
}
|
|
1336
1639
|
}
|
|
1337
1640
|
return (
|
|
1338
1641
|
t.properties &&
|
|
1339
1642
|
(t.propertyOrder || (t.propertyOrder = Object.keys(t.properties)),
|
|
1340
1643
|
t.propertyOrder.map(function (e) {
|
|
1341
|
-
t.properties[e] =
|
|
1644
|
+
t.properties[e] = A(t.properties[e]);
|
|
1342
1645
|
})),
|
|
1343
|
-
t.items && (t.items =
|
|
1646
|
+
t.items && (t.items = A(t.items)),
|
|
1344
1647
|
t
|
|
1345
1648
|
);
|
|
1346
1649
|
}
|
|
1347
|
-
function
|
|
1348
|
-
var t =
|
|
1650
|
+
function A(e) {
|
|
1651
|
+
var t = a(e);
|
|
1349
1652
|
return (
|
|
1350
1653
|
t.required || delete t.required,
|
|
1351
1654
|
t.type && t.type && (t.type = t.type),
|
|
@@ -1354,7 +1657,7 @@
|
|
|
1354
1657
|
'datasource' !== t.type &&
|
|
1355
1658
|
'event' !== t.type &&
|
|
1356
1659
|
'object' !== t.type) ||
|
|
1357
|
-
!
|
|
1660
|
+
!l(t.default) ||
|
|
1358
1661
|
delete t.default,
|
|
1359
1662
|
('radio' !== t.type &&
|
|
1360
1663
|
'checkboxes' !== t.type &&
|
|
@@ -1370,9 +1673,9 @@
|
|
|
1370
1673
|
t.properties &&
|
|
1371
1674
|
(t.propertyOrder || (t.propertyOrder = Object.keys(t.properties)),
|
|
1372
1675
|
t.propertyOrder.map(function (e) {
|
|
1373
|
-
t.properties[e] =
|
|
1676
|
+
t.properties[e] = A(t.properties[e]);
|
|
1374
1677
|
})),
|
|
1375
|
-
'array' === t.type && t.items && (t.items =
|
|
1678
|
+
'array' === t.type && t.items && (t.items = A(t.items)),
|
|
1376
1679
|
t
|
|
1377
1680
|
);
|
|
1378
1681
|
}
|
|
@@ -1396,6 +1699,7 @@
|
|
|
1396
1699
|
input: 'string',
|
|
1397
1700
|
json: 'string',
|
|
1398
1701
|
number: 'number',
|
|
1702
|
+
'input-image': 'string',
|
|
1399
1703
|
object: 'object',
|
|
1400
1704
|
quantity: 'object',
|
|
1401
1705
|
radio: 'string',
|
|
@@ -1412,12 +1716,12 @@
|
|
|
1412
1716
|
function L(e) {
|
|
1413
1717
|
return B[e] || e;
|
|
1414
1718
|
}
|
|
1415
|
-
function
|
|
1719
|
+
function V(e, t) {
|
|
1416
1720
|
B[e]
|
|
1417
1721
|
? console.warn('当前已经存在' + e + '(' + B[e] + '),暂时不支持覆盖。')
|
|
1418
1722
|
: (B[e] = t);
|
|
1419
1723
|
}
|
|
1420
|
-
function
|
|
1724
|
+
function J(e) {
|
|
1421
1725
|
var t = !0;
|
|
1422
1726
|
if (!e) return t;
|
|
1423
1727
|
var r = e.type;
|
|
@@ -1437,147 +1741,149 @@
|
|
|
1437
1741
|
t
|
|
1438
1742
|
);
|
|
1439
1743
|
}
|
|
1440
|
-
function
|
|
1744
|
+
function K(e) {
|
|
1441
1745
|
var t = !1,
|
|
1442
1746
|
r = e.lastUpdateTime,
|
|
1443
|
-
|
|
1444
|
-
return r && new Date(r).getTime() >=
|
|
1747
|
+
a = new Date('2024-10-05T00:01:00.691Z').getTime();
|
|
1748
|
+
return r && new Date(r).getTime() >= a && (t = !0), t;
|
|
1445
1749
|
}
|
|
1446
|
-
function
|
|
1750
|
+
function U(e) {
|
|
1447
1751
|
var t = !1,
|
|
1448
1752
|
r = L(e.type),
|
|
1449
|
-
|
|
1450
|
-
return 'object' === r &&
|
|
1753
|
+
a = void 0 === e.isContainer || e.isContainer;
|
|
1754
|
+
return 'object' === r && a && (t = !0), t;
|
|
1451
1755
|
}
|
|
1452
|
-
function
|
|
1756
|
+
function X(e) {
|
|
1453
1757
|
var t = !0;
|
|
1454
1758
|
return (
|
|
1455
1759
|
'object' === e.type && e.propertyOrder && e.properties
|
|
1456
1760
|
? e.propertyOrder.map(function (r) {
|
|
1457
|
-
var
|
|
1458
|
-
('object' === e.type &&
|
|
1761
|
+
var a = e.properties[r];
|
|
1762
|
+
('object' === e.type && a.propertyOrder && a.properties) ||
|
|
1459
1763
|
(t = !1);
|
|
1460
1764
|
})
|
|
1461
1765
|
: (t = !1),
|
|
1462
1766
|
t
|
|
1463
1767
|
);
|
|
1464
1768
|
}
|
|
1465
|
-
function
|
|
1769
|
+
function Y(e, t) {
|
|
1466
1770
|
var r = e.split('-'),
|
|
1467
|
-
|
|
1468
|
-
return r.pop(),
|
|
1771
|
+
a = t.split('-');
|
|
1772
|
+
return r.pop(), a.pop(), r.join('-') === a.join('-');
|
|
1469
1773
|
}
|
|
1470
|
-
function
|
|
1774
|
+
function W(e, t) {
|
|
1471
1775
|
for (
|
|
1472
1776
|
var r = e.split('-'),
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1777
|
+
a = t.split('-'),
|
|
1778
|
+
i = 'before',
|
|
1779
|
+
l = 0,
|
|
1780
|
+
n = (r.length > a.length ? a : r).length;
|
|
1781
|
+
l < n;
|
|
1782
|
+
l += 1
|
|
1479
1783
|
)
|
|
1480
|
-
Number(r[
|
|
1481
|
-
return
|
|
1784
|
+
Number(r[l]) > Number(a[l]) && (i = 'after');
|
|
1785
|
+
return i;
|
|
1482
1786
|
}
|
|
1483
|
-
function
|
|
1787
|
+
function Z(e) {
|
|
1484
1788
|
var t = e.split('-');
|
|
1485
1789
|
return t.pop(), t.join('-');
|
|
1486
1790
|
}
|
|
1487
|
-
function
|
|
1791
|
+
function z(e) {
|
|
1488
1792
|
var t = e.split('-'),
|
|
1489
1793
|
r = t.pop(),
|
|
1490
|
-
|
|
1491
|
-
return t.push('' +
|
|
1794
|
+
a = Number(r) + 1;
|
|
1795
|
+
return t.push('' + a), t.join('-');
|
|
1492
1796
|
}
|
|
1493
|
-
function
|
|
1797
|
+
function H(e) {
|
|
1494
1798
|
var t = e.split('-'),
|
|
1495
1799
|
r = t.pop();
|
|
1496
1800
|
return [t.join('-'), r];
|
|
1497
1801
|
}
|
|
1498
|
-
function
|
|
1802
|
+
function Q(e) {
|
|
1499
1803
|
var t = e.split('-'),
|
|
1500
1804
|
r = t.pop();
|
|
1501
1805
|
return t.push(Number(r) - 1), t.join('-');
|
|
1502
1806
|
}
|
|
1503
|
-
function
|
|
1807
|
+
function G(e) {
|
|
1504
1808
|
var t = e.split('-'),
|
|
1505
1809
|
r = t.pop();
|
|
1506
1810
|
return t.push(Number(r) + 1), t.join('-');
|
|
1507
1811
|
}
|
|
1508
|
-
function
|
|
1812
|
+
function ee(e, t) {
|
|
1509
1813
|
var r = '',
|
|
1510
|
-
|
|
1814
|
+
a = !1;
|
|
1511
1815
|
return (
|
|
1512
|
-
e.options && e.options[0] && ((r = e.options[0].value), (
|
|
1513
|
-
(t || e.multiple) && (r =
|
|
1816
|
+
e.options && e.options[0] && ((r = e.options[0].value), (a = !0)),
|
|
1817
|
+
(t || e.multiple) && (r = a ? [r] : []),
|
|
1514
1818
|
r
|
|
1515
1819
|
);
|
|
1516
1820
|
}
|
|
1517
|
-
function
|
|
1821
|
+
function te(e, t) {
|
|
1518
1822
|
var r = '',
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
var
|
|
1823
|
+
a = t;
|
|
1824
|
+
l(a) && l(e.default) && typeof a != typeof e.default && (a = void 0);
|
|
1825
|
+
var i = l(a) ? a : e.default;
|
|
1522
1826
|
switch (e.type) {
|
|
1523
1827
|
case 'select':
|
|
1524
1828
|
case 'radio':
|
|
1525
|
-
r =
|
|
1829
|
+
r = i || ee(e);
|
|
1526
1830
|
break;
|
|
1527
1831
|
case 'checkboxes':
|
|
1528
|
-
r =
|
|
1832
|
+
r = i || ee(e, !0);
|
|
1529
1833
|
break;
|
|
1530
1834
|
case 'color':
|
|
1531
|
-
('#fff' !==
|
|
1532
|
-
(r =
|
|
1835
|
+
('#fff' !== i && '#FFF' !== i) || (i = '#ffffff'),
|
|
1836
|
+
(r = l(i) ? i : '#ffffff');
|
|
1533
1837
|
break;
|
|
1534
1838
|
case 'boolean':
|
|
1535
|
-
r = !!
|
|
1839
|
+
r = !!l(i) && i;
|
|
1536
1840
|
break;
|
|
1537
1841
|
case 'number':
|
|
1538
|
-
r =
|
|
1842
|
+
r = l(i) ? i : void 0;
|
|
1539
1843
|
break;
|
|
1540
1844
|
case 'json':
|
|
1541
|
-
var
|
|
1542
|
-
if (
|
|
1543
|
-
else if (F(
|
|
1845
|
+
var n = '';
|
|
1846
|
+
if (E(i) || R(i)) n = i;
|
|
1847
|
+
else if (F(i) || '' === i) n = {};
|
|
1544
1848
|
else
|
|
1545
1849
|
try {
|
|
1546
|
-
|
|
1850
|
+
n = JSON.parse(i);
|
|
1547
1851
|
} catch (e) {
|
|
1548
|
-
|
|
1852
|
+
n = {};
|
|
1549
1853
|
}
|
|
1550
|
-
r =
|
|
1854
|
+
r = n;
|
|
1551
1855
|
break;
|
|
1552
1856
|
default:
|
|
1553
1857
|
r =
|
|
1554
1858
|
'input' === e.type && '0' === e.default
|
|
1555
|
-
?
|
|
1556
|
-
:
|
|
1557
|
-
?
|
|
1859
|
+
? i || e.default
|
|
1860
|
+
: l(i)
|
|
1861
|
+
? i
|
|
1558
1862
|
: void 0;
|
|
1559
1863
|
}
|
|
1560
1864
|
return r;
|
|
1561
1865
|
}
|
|
1562
|
-
function
|
|
1866
|
+
function re(e, t) {
|
|
1563
1867
|
var r = {},
|
|
1564
|
-
|
|
1565
|
-
if (
|
|
1566
|
-
var
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1868
|
+
i = e.type;
|
|
1869
|
+
if (E(e) && 'object' === L(e.type)) {
|
|
1870
|
+
var n = e,
|
|
1871
|
+
o = t;
|
|
1872
|
+
l(o) &&
|
|
1873
|
+
((l(n.default) && typeof o != typeof e.default) || !E(o)) &&
|
|
1874
|
+
(o = void 0);
|
|
1875
|
+
var p = l(o) ? o : n.default;
|
|
1876
|
+
'dynamic-data' === i
|
|
1877
|
+
? ((r = a(m)),
|
|
1572
1878
|
p &&
|
|
1573
|
-
|
|
1879
|
+
E(p) &&
|
|
1574
1880
|
'{}' !== JSON.stringify(p) &&
|
|
1575
1881
|
(r = Object.assign(r, p)))
|
|
1576
|
-
: 'datasource' ===
|
|
1577
|
-
?
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
'local' ===
|
|
1882
|
+
: 'datasource' === i
|
|
1883
|
+
? n.properties &&
|
|
1884
|
+
n.properties.type &&
|
|
1885
|
+
n.properties.type.default &&
|
|
1886
|
+
'local' === n.properties.type.default
|
|
1581
1887
|
? ((r = { data: '{}', filter: '() => {}' }),
|
|
1582
1888
|
p && p.data && (r.data = p.data),
|
|
1583
1889
|
p && p.filter && (r.filter = p.filter),
|
|
@@ -1586,11 +1892,11 @@
|
|
|
1586
1892
|
p && p.data && (r.data = p.data),
|
|
1587
1893
|
p && p.filter && (r.filter = p.filter),
|
|
1588
1894
|
'{}' === r.data && (r.data = 'http://xxx'))
|
|
1589
|
-
: 'event' ===
|
|
1590
|
-
?
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
'emit' ===
|
|
1895
|
+
: 'event' === i
|
|
1896
|
+
? n.properties &&
|
|
1897
|
+
n.properties.type &&
|
|
1898
|
+
n.properties.type.default &&
|
|
1899
|
+
'emit' === n.properties.type.default
|
|
1594
1900
|
? p && 'out' === p.type
|
|
1595
1901
|
? (r = {
|
|
1596
1902
|
trigger: (p && p.filter) || 'eventName',
|
|
@@ -1607,84 +1913,86 @@
|
|
|
1607
1913
|
: ((r = { register: 'eventName', actionFunc: '() => {}' }),
|
|
1608
1914
|
p && p.register && (r.register = p.register),
|
|
1609
1915
|
p && p.actionFunc && (r.actionFunc = p.actionFunc))
|
|
1610
|
-
: !1 === e.isContainer && p &&
|
|
1916
|
+
: !1 === e.isContainer && p && E(p) && '{}' !== JSON.stringify(p)
|
|
1611
1917
|
? (r = Object.assign(r, p))
|
|
1612
1918
|
: e.properties &&
|
|
1613
1919
|
(e.propertyOrder
|
|
1614
1920
|
? e.propertyOrder
|
|
1615
1921
|
: Object.keys(e.properties)
|
|
1616
|
-
).map(function (
|
|
1617
|
-
var
|
|
1618
|
-
|
|
1619
|
-
switch (L(
|
|
1922
|
+
).map(function (a) {
|
|
1923
|
+
var i = e.properties[a],
|
|
1924
|
+
l = t && t[a];
|
|
1925
|
+
switch (L(i.type)) {
|
|
1620
1926
|
case 'array':
|
|
1621
|
-
r[
|
|
1927
|
+
r[a] = ae(i, l);
|
|
1622
1928
|
break;
|
|
1623
1929
|
case 'object':
|
|
1624
|
-
r[
|
|
1930
|
+
r[a] = re(i, l);
|
|
1625
1931
|
break;
|
|
1626
1932
|
default:
|
|
1627
|
-
r[
|
|
1933
|
+
r[a] = te(i, l);
|
|
1628
1934
|
}
|
|
1629
1935
|
});
|
|
1630
1936
|
}
|
|
1631
1937
|
return r;
|
|
1632
1938
|
}
|
|
1633
|
-
function
|
|
1939
|
+
function ae(e, t) {
|
|
1634
1940
|
var r = [];
|
|
1635
1941
|
if (e && 'array' === L(e.type)) {
|
|
1636
|
-
var
|
|
1637
|
-
|
|
1638
|
-
|
|
1942
|
+
var a = t;
|
|
1943
|
+
l(a) &&
|
|
1944
|
+
((l(e.default) && typeof a != typeof e.default) || !R(a)) &&
|
|
1945
|
+
(a = void 0);
|
|
1946
|
+
var i = l(a) ? a : e.default;
|
|
1639
1947
|
if ('array' === L(e.type))
|
|
1640
|
-
if (
|
|
1641
|
-
|
|
1642
|
-
r.push(
|
|
1948
|
+
if (R(i))
|
|
1949
|
+
i.map(function (t) {
|
|
1950
|
+
r.push(re(e.items, t));
|
|
1643
1951
|
});
|
|
1644
|
-
else if (
|
|
1952
|
+
else if (i) r = i;
|
|
1645
1953
|
else {
|
|
1646
|
-
var
|
|
1647
|
-
r.push(
|
|
1954
|
+
var n = re(e.items, i);
|
|
1955
|
+
r.push(n);
|
|
1648
1956
|
}
|
|
1649
|
-
else r =
|
|
1957
|
+
else r = l(i) ? i : [];
|
|
1650
1958
|
}
|
|
1651
1959
|
return r;
|
|
1652
1960
|
}
|
|
1653
1961
|
function ie(e, t) {
|
|
1654
1962
|
return 'object' === L(e.type)
|
|
1655
|
-
?
|
|
1963
|
+
? re(e, t)
|
|
1656
1964
|
: 'array' === L(e.type)
|
|
1657
|
-
?
|
|
1658
|
-
:
|
|
1965
|
+
? ae(e, t)
|
|
1966
|
+
: te(e, t);
|
|
1659
1967
|
}
|
|
1660
|
-
var
|
|
1968
|
+
var le = g;
|
|
1661
1969
|
function ne(e, t) {
|
|
1662
1970
|
var r = t || [];
|
|
1663
1971
|
if (e && '{}' !== JSON.stringify(e))
|
|
1664
|
-
if (
|
|
1972
|
+
if (E(e))
|
|
1665
1973
|
if (
|
|
1666
1974
|
e.type &&
|
|
1667
1975
|
'remote' === e.type &&
|
|
1668
1976
|
e.config &&
|
|
1669
|
-
|
|
1977
|
+
E(e.config) &&
|
|
1670
1978
|
e.config.dataName &&
|
|
1671
|
-
|
|
1672
|
-
|
|
1979
|
+
l(e.localFilter) &&
|
|
1980
|
+
l(e.data)
|
|
1673
1981
|
) {
|
|
1674
|
-
var
|
|
1675
|
-
if (
|
|
1982
|
+
var a = e.config.body;
|
|
1983
|
+
if (a && !E(a))
|
|
1676
1984
|
try {
|
|
1677
|
-
|
|
1985
|
+
a = JSON.parse(a);
|
|
1678
1986
|
} catch (e) {
|
|
1679
|
-
|
|
1987
|
+
a = {};
|
|
1680
1988
|
}
|
|
1681
|
-
r.push({ id: e.config.id, dataName: e.config.dataName, body:
|
|
1989
|
+
r.push({ id: e.config.id, dataName: e.config.dataName, body: a });
|
|
1682
1990
|
} else
|
|
1683
1991
|
Object.keys(e).map(function (t) {
|
|
1684
1992
|
ne(e[t], r);
|
|
1685
1993
|
});
|
|
1686
1994
|
else
|
|
1687
|
-
|
|
1995
|
+
R(e) &&
|
|
1688
1996
|
e.map(function (e) {
|
|
1689
1997
|
ne(e, r);
|
|
1690
1998
|
});
|
|
@@ -1699,38 +2007,56 @@
|
|
|
1699
2007
|
r
|
|
1700
2008
|
);
|
|
1701
2009
|
}
|
|
1702
|
-
function
|
|
2010
|
+
function pe(e, t) {
|
|
1703
2011
|
var r = [];
|
|
1704
2012
|
return (
|
|
1705
|
-
|
|
1706
|
-
? Object.keys(e).map(function (
|
|
1707
|
-
var
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
? r.push({ title:
|
|
1711
|
-
: r.push({ title:
|
|
2013
|
+
E(e)
|
|
2014
|
+
? Object.keys(e).map(function (a) {
|
|
2015
|
+
var i = e[a],
|
|
2016
|
+
l = t ? t + '-' + a : a;
|
|
2017
|
+
E(i) || R(i)
|
|
2018
|
+
? r.push({ title: a, value: l, key: l, children: pe(i, l) })
|
|
2019
|
+
: r.push({ title: a, value: l, key: l });
|
|
1712
2020
|
})
|
|
1713
|
-
:
|
|
1714
|
-
e.map(function (e,
|
|
1715
|
-
var
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
? r.push({ title:
|
|
1719
|
-
: r.push({ title:
|
|
2021
|
+
: R(e) &&
|
|
2022
|
+
e.map(function (e, a) {
|
|
2023
|
+
var i = a.toString(),
|
|
2024
|
+
l = t ? t + '-' + a : i;
|
|
2025
|
+
E(e) || R(e)
|
|
2026
|
+
? r.push({ title: i, value: l, key: l, children: pe(e, l) })
|
|
2027
|
+
: r.push({ title: i, value: l, key: l });
|
|
1720
2028
|
}),
|
|
1721
2029
|
r
|
|
1722
2030
|
);
|
|
1723
2031
|
}
|
|
1724
|
-
function
|
|
2032
|
+
function ue(e, t) {
|
|
2033
|
+
var r = '';
|
|
2034
|
+
return (
|
|
2035
|
+
'object' === L(e.type) &&
|
|
2036
|
+
e.properties &&
|
|
2037
|
+
(e.propertyOrder ? e.propertyOrder : Object.keys(e.properties)).map(
|
|
2038
|
+
function (a) {
|
|
2039
|
+
var i = e.properties[a],
|
|
2040
|
+
l = t[a];
|
|
2041
|
+
('array' === L(i.type) && 'object' === L(i.type)) ||
|
|
2042
|
+
(l &&
|
|
2043
|
+
i.isConditionProp &&
|
|
2044
|
+
(r.indexOf('-') > 0 ? (r += '-' + l) : (r = l)));
|
|
2045
|
+
},
|
|
2046
|
+
),
|
|
2047
|
+
r
|
|
2048
|
+
);
|
|
2049
|
+
}
|
|
2050
|
+
function ce(e) {
|
|
1725
2051
|
var t = e.split('-');
|
|
1726
2052
|
return t.pop(), t.join('-');
|
|
1727
2053
|
}
|
|
1728
|
-
function
|
|
2054
|
+
function se(e) {
|
|
1729
2055
|
var t = e.split('-'),
|
|
1730
2056
|
r = t.pop();
|
|
1731
2057
|
return [t.join('-'), r];
|
|
1732
2058
|
}
|
|
1733
|
-
var
|
|
2059
|
+
var de = [
|
|
1734
2060
|
'key',
|
|
1735
2061
|
'enum',
|
|
1736
2062
|
'enumextra',
|