@wibetter/json-utils 5.3.1 → 6.0.1
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 +0 -1349
- package/dist/index.esm.min.js +917 -1728
- package/dist/index.js +370 -1202
- package/dist/index.js.LICENSE.txt +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -45,31 +45,31 @@
|
|
|
45
45
|
return d;
|
|
46
46
|
},
|
|
47
47
|
EventTypeDataList: function () {
|
|
48
|
-
return
|
|
48
|
+
return s;
|
|
49
49
|
},
|
|
50
50
|
KeyWordList: function () {
|
|
51
|
-
return
|
|
51
|
+
return be;
|
|
52
52
|
},
|
|
53
53
|
TypeDataList: function () {
|
|
54
|
-
return
|
|
54
|
+
return c;
|
|
55
55
|
},
|
|
56
56
|
dataRoute2dataPath: function () {
|
|
57
57
|
return de;
|
|
58
58
|
},
|
|
59
59
|
dynamicDataAnalyzer: function () {
|
|
60
|
-
return
|
|
60
|
+
return se;
|
|
61
61
|
},
|
|
62
62
|
evalExpression: function () {
|
|
63
|
-
return
|
|
63
|
+
return U;
|
|
64
64
|
},
|
|
65
65
|
getCurPosition: function () {
|
|
66
|
-
return
|
|
66
|
+
return Y;
|
|
67
67
|
},
|
|
68
68
|
getDefaultOptionVal: function () {
|
|
69
|
-
return
|
|
69
|
+
return ae;
|
|
70
70
|
},
|
|
71
71
|
getExpectType: function () {
|
|
72
|
-
return
|
|
72
|
+
return H;
|
|
73
73
|
},
|
|
74
74
|
getJsonDataByKeyRoute: function () {
|
|
75
75
|
return P;
|
|
@@ -84,137 +84,137 @@
|
|
|
84
84
|
return re;
|
|
85
85
|
},
|
|
86
86
|
getParentKeyRoute: function () {
|
|
87
|
-
return
|
|
87
|
+
return me;
|
|
88
88
|
},
|
|
89
89
|
getParentKeyRoute_CurKey: function () {
|
|
90
|
-
return
|
|
90
|
+
return ve;
|
|
91
91
|
},
|
|
92
92
|
getSchemaByIndexRoute: function () {
|
|
93
|
-
return
|
|
93
|
+
return E;
|
|
94
94
|
},
|
|
95
95
|
getSchemaByKeyRoute: function () {
|
|
96
|
-
return
|
|
96
|
+
return J;
|
|
97
97
|
},
|
|
98
98
|
hasProperties: function () {
|
|
99
|
-
return
|
|
99
|
+
return w;
|
|
100
100
|
},
|
|
101
101
|
indexRoute2keyRoute: function () {
|
|
102
|
-
return
|
|
102
|
+
return A;
|
|
103
103
|
},
|
|
104
104
|
isArray: function () {
|
|
105
|
-
return
|
|
105
|
+
return j;
|
|
106
106
|
},
|
|
107
107
|
isBoolean: function () {
|
|
108
|
-
return
|
|
108
|
+
return v;
|
|
109
109
|
},
|
|
110
110
|
isColor: function () {
|
|
111
|
-
return
|
|
111
|
+
return S;
|
|
112
112
|
},
|
|
113
113
|
isContainerSchema: function () {
|
|
114
|
-
return
|
|
114
|
+
return Q;
|
|
115
115
|
},
|
|
116
116
|
isDateStr: function () {
|
|
117
|
-
return
|
|
117
|
+
return b;
|
|
118
118
|
},
|
|
119
119
|
isDateTimeStr: function () {
|
|
120
|
-
return
|
|
120
|
+
return g;
|
|
121
121
|
},
|
|
122
122
|
isEmptySchema: function () {
|
|
123
|
-
return
|
|
123
|
+
return W;
|
|
124
124
|
},
|
|
125
125
|
isEqual: function () {
|
|
126
126
|
return R;
|
|
127
127
|
},
|
|
128
128
|
isEqualByIdT: function () {
|
|
129
|
-
return
|
|
129
|
+
return F;
|
|
130
130
|
},
|
|
131
131
|
isFunction: function () {
|
|
132
|
-
return
|
|
132
|
+
return k;
|
|
133
133
|
},
|
|
134
134
|
isNewSchemaData: function () {
|
|
135
|
-
return
|
|
135
|
+
return Z;
|
|
136
136
|
},
|
|
137
137
|
isNumber: function () {
|
|
138
|
-
return
|
|
138
|
+
return m;
|
|
139
139
|
},
|
|
140
140
|
isObject: function () {
|
|
141
|
-
return
|
|
141
|
+
return x;
|
|
142
142
|
},
|
|
143
143
|
isQuantity: function () {
|
|
144
|
-
return
|
|
144
|
+
return q;
|
|
145
145
|
},
|
|
146
146
|
isSameParent: function () {
|
|
147
|
-
return
|
|
147
|
+
return X;
|
|
148
148
|
},
|
|
149
149
|
isSelect: function () {
|
|
150
|
-
return
|
|
150
|
+
return O;
|
|
151
151
|
},
|
|
152
152
|
isString: function () {
|
|
153
|
-
return
|
|
153
|
+
return y;
|
|
154
154
|
},
|
|
155
155
|
isStructuredSchema: function () {
|
|
156
|
-
return
|
|
156
|
+
return G;
|
|
157
157
|
},
|
|
158
158
|
isTimeStr: function () {
|
|
159
|
-
return
|
|
159
|
+
return h;
|
|
160
160
|
},
|
|
161
161
|
isURL: function () {
|
|
162
|
-
return
|
|
162
|
+
return f;
|
|
163
163
|
},
|
|
164
164
|
json2schema: function () {
|
|
165
165
|
return B;
|
|
166
166
|
},
|
|
167
167
|
json2treeData: function () {
|
|
168
|
-
return
|
|
168
|
+
return fe;
|
|
169
169
|
},
|
|
170
170
|
keyRoute2indexRoute: function () {
|
|
171
|
-
return
|
|
171
|
+
return $;
|
|
172
172
|
},
|
|
173
173
|
metaElemAnalyzer: function () {
|
|
174
|
-
return
|
|
174
|
+
return z;
|
|
175
175
|
},
|
|
176
176
|
moveBackward: function () {
|
|
177
|
-
return
|
|
177
|
+
return ne;
|
|
178
178
|
},
|
|
179
179
|
moveForward: function () {
|
|
180
180
|
return ie;
|
|
181
181
|
},
|
|
182
182
|
objClone: function () {
|
|
183
|
-
return
|
|
183
|
+
return D;
|
|
184
184
|
},
|
|
185
185
|
oldSchemaToNewSchema: function () {
|
|
186
|
-
return
|
|
186
|
+
return K;
|
|
187
187
|
},
|
|
188
188
|
oldSchemaToNewSchemaV1: function () {
|
|
189
|
-
return
|
|
189
|
+
return I;
|
|
190
190
|
},
|
|
191
191
|
registerExpectType: function () {
|
|
192
|
-
return
|
|
192
|
+
return V;
|
|
193
193
|
},
|
|
194
194
|
schema2conditionValue: function () {
|
|
195
|
-
return
|
|
195
|
+
return ye;
|
|
196
196
|
},
|
|
197
197
|
schema2json: function () {
|
|
198
|
-
return
|
|
198
|
+
return le;
|
|
199
199
|
},
|
|
200
200
|
schemaMetaList: function () {
|
|
201
|
-
return
|
|
201
|
+
return ce;
|
|
202
202
|
},
|
|
203
203
|
truncate: function () {
|
|
204
|
-
return
|
|
204
|
+
return C;
|
|
205
205
|
},
|
|
206
206
|
urlParse: function () {
|
|
207
|
-
return
|
|
207
|
+
return T;
|
|
208
208
|
},
|
|
209
209
|
urlStringify: function () {
|
|
210
|
-
return
|
|
210
|
+
return N;
|
|
211
211
|
},
|
|
212
212
|
});
|
|
213
213
|
var r,
|
|
214
214
|
i = require('lodash'),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
n = require('qs'),
|
|
216
|
+
a = e.n(n),
|
|
217
|
+
o = {
|
|
218
218
|
type: 'event',
|
|
219
219
|
title: '事件',
|
|
220
220
|
isContainer: !1,
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
},
|
|
245
245
|
propertyOrder: ['type', 'trigger', 'eventData'],
|
|
246
246
|
},
|
|
247
|
-
|
|
247
|
+
p = {
|
|
248
248
|
type: 'datasource',
|
|
249
249
|
title: '数据源',
|
|
250
250
|
isContainer: !1,
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
},
|
|
277
277
|
propertyOrder: ['type', 'data', 'filter'],
|
|
278
278
|
},
|
|
279
|
-
|
|
279
|
+
u =
|
|
280
280
|
(((r = { type: 'object' }).type = 'datasource'),
|
|
281
281
|
(r.title = '数据源'),
|
|
282
282
|
(r.isContainer = !1),
|
|
@@ -308,13 +308,13 @@
|
|
|
308
308
|
}),
|
|
309
309
|
(r.propertyOrder = ['type', 'data', 'filter']),
|
|
310
310
|
r),
|
|
311
|
-
|
|
311
|
+
l = {
|
|
312
312
|
type: 'local',
|
|
313
313
|
config: { dataName: '', body: {}, filter: 'return data;' },
|
|
314
314
|
data: '{}',
|
|
315
315
|
localFilter: 'return data;',
|
|
316
316
|
},
|
|
317
|
-
|
|
317
|
+
c = {
|
|
318
318
|
jsonschema: {
|
|
319
319
|
type: 'object',
|
|
320
320
|
title: 'jsonSchemaObject',
|
|
@@ -732,837 +732,10 @@
|
|
|
732
732
|
},
|
|
733
733
|
propertyOrder: ['type', 'config', 'data', 'localFilter'],
|
|
734
734
|
},
|
|
735
|
-
datasource:
|
|
736
|
-
event:
|
|
737
|
-
'dynamic-config': {
|
|
738
|
-
type: 'dynamic-config',
|
|
739
|
-
title: '动态配置',
|
|
740
|
-
description: '',
|
|
741
|
-
isContainer: !1,
|
|
742
|
-
properties: {
|
|
743
|
-
type: {
|
|
744
|
-
type: 'select',
|
|
745
|
-
title: '数据来源',
|
|
746
|
-
options: [
|
|
747
|
-
{ label: '模板直接设置', value: 'DevDefaults' },
|
|
748
|
-
{ label: 'mp后台配置', value: 'ContentStaticConfig' },
|
|
749
|
-
{ label: '内容Meta数据', value: 'Content' },
|
|
750
|
-
{ label: '全局配置数据', value: 'RuntimeConst' },
|
|
751
|
-
{ label: '资源中心配置', value: 'ResourceCenter' },
|
|
752
|
-
],
|
|
753
|
-
default: 'DevDefaults',
|
|
754
|
-
isConditionProp: !0,
|
|
755
|
-
description:
|
|
756
|
-
'目前支持的数据来源包括: 1)模版直接设置:在模版配置直接生效,支持直接输入或图片上传。 2)mp后台配置:选择mp后台配置后,属性会出现在mp后台中,支持属性描述的输入。 3)内容meta数据:支持内容meta数据的获取,页面meta数据。 4)全局配置数据:目前支持的全局配置包括:全局Tab配置及主题包配置。相关属性会挂载至:window.globalConst',
|
|
757
|
-
},
|
|
758
|
-
value: {
|
|
759
|
-
title: '数据值',
|
|
760
|
-
type: 'input',
|
|
761
|
-
default: '',
|
|
762
|
-
description: '',
|
|
763
|
-
placeholder: '',
|
|
764
|
-
onShow:
|
|
765
|
-
'type === "DevDefaults" || type === "Content" || type === "RuntimeConst"',
|
|
766
|
-
},
|
|
767
|
-
description: {
|
|
768
|
-
title: '属性名称',
|
|
769
|
-
type: 'input',
|
|
770
|
-
default: '',
|
|
771
|
-
description: '',
|
|
772
|
-
placeholder: '',
|
|
773
|
-
onShow:
|
|
774
|
-
'type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
775
|
-
},
|
|
776
|
-
valueType: {
|
|
777
|
-
type: 'radio',
|
|
778
|
-
title: '配置方式',
|
|
779
|
-
options: [
|
|
780
|
-
{ label: '填写', value: 'string' },
|
|
781
|
-
{ label: '选择', value: 'select' },
|
|
782
|
-
],
|
|
783
|
-
default: 'string',
|
|
784
|
-
isConditionProp: !0,
|
|
785
|
-
description: '在MP后台或资源中心配置时的交互方式,推荐使用"选择"',
|
|
786
|
-
onShow:
|
|
787
|
-
'type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
788
|
-
},
|
|
789
|
-
range: {
|
|
790
|
-
type: 'select',
|
|
791
|
-
title: '可选项',
|
|
792
|
-
multiple: !0,
|
|
793
|
-
options: [],
|
|
794
|
-
onShow:
|
|
795
|
-
'(type === "ContentStaticConfig" || type === "ResourceCenter") && valueType === "select"',
|
|
796
|
-
description: '这里会使用value中的配置选项作为options',
|
|
797
|
-
},
|
|
798
|
-
},
|
|
799
|
-
propertyOrder: ['type', 'value', 'description', 'valueType', 'range'],
|
|
800
|
-
showCodeViewBtn: !1,
|
|
801
|
-
},
|
|
802
|
-
'dynamic-object': {
|
|
803
|
-
type: 'dynamic-object',
|
|
804
|
-
title: '动态配置',
|
|
805
|
-
description: '',
|
|
806
|
-
isContainer: !1,
|
|
807
|
-
properties: {
|
|
808
|
-
type: {
|
|
809
|
-
type: 'select',
|
|
810
|
-
title: '数据来源',
|
|
811
|
-
options: [
|
|
812
|
-
{ label: '模板直接设置', value: 'DevDefaults' },
|
|
813
|
-
{ label: 'mp后台配置', value: 'ContentStaticConfig' },
|
|
814
|
-
{ label: '内容Meta数据', value: 'Content' },
|
|
815
|
-
{ label: '全局配置数据', value: 'RuntimeConst' },
|
|
816
|
-
{ label: '资源中心配置', value: 'ResourceCenter' },
|
|
817
|
-
],
|
|
818
|
-
default: 'DevDefaults',
|
|
819
|
-
isConditionProp: !0,
|
|
820
|
-
description:
|
|
821
|
-
'目前支持的数据来源包括: 1)模版直接设置: 在模版配置直接生效,支持直接输入或图片上传。 2)mp后台配置: 选择mp后台配置后,属性会出现在mp后台中,支持属性描述的输入。 3)内容meta数据: 支持内容meta数据的获取,页面meta数据。 4)全局配置数据: 目前支持的全局配置包括:全局Tab配置及主题包配置。相关属性会挂载至:window.globalConst',
|
|
822
|
-
},
|
|
823
|
-
value: {
|
|
824
|
-
title: '数据值',
|
|
825
|
-
type: 'input',
|
|
826
|
-
default: '',
|
|
827
|
-
description: '',
|
|
828
|
-
placeholder: '',
|
|
829
|
-
onShow: 'type === "Content" || type === "RuntimeConst"',
|
|
830
|
-
},
|
|
831
|
-
description: {
|
|
832
|
-
title: '自定义配置名称',
|
|
833
|
-
type: 'input',
|
|
834
|
-
default: '主题包配置',
|
|
835
|
-
description: '',
|
|
836
|
-
placeholder: '',
|
|
837
|
-
onShow:
|
|
838
|
-
'type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
839
|
-
},
|
|
840
|
-
attrs: {
|
|
841
|
-
type: 'array',
|
|
842
|
-
title: '属性列表',
|
|
843
|
-
description: 'Tab需要配置的属性',
|
|
844
|
-
items: {
|
|
845
|
-
type: 'object',
|
|
846
|
-
title: '数组项',
|
|
847
|
-
description: '',
|
|
848
|
-
properties: {
|
|
849
|
-
attr: {
|
|
850
|
-
type: 'input',
|
|
851
|
-
title: '属性Key',
|
|
852
|
-
default: '',
|
|
853
|
-
description: '',
|
|
854
|
-
placeholder: '',
|
|
855
|
-
},
|
|
856
|
-
description: {
|
|
857
|
-
title: '描述',
|
|
858
|
-
type: 'input',
|
|
859
|
-
default: '',
|
|
860
|
-
description: '',
|
|
861
|
-
placeholder: '',
|
|
862
|
-
},
|
|
863
|
-
value: {
|
|
864
|
-
title: '数值',
|
|
865
|
-
typeOn:
|
|
866
|
-
"type === 'image' ? 'input-image' : type === 'number' ? 'number' : 'input'",
|
|
867
|
-
default: '',
|
|
868
|
-
description: '',
|
|
869
|
-
placeholder: '',
|
|
870
|
-
},
|
|
871
|
-
type: {
|
|
872
|
-
type: 'select',
|
|
873
|
-
title: '属性类型',
|
|
874
|
-
options: [
|
|
875
|
-
{ label: '图片类型', value: 'image' },
|
|
876
|
-
{ label: '字符串', value: 'string' },
|
|
877
|
-
{ label: '数字', value: 'number' },
|
|
878
|
-
],
|
|
879
|
-
default: 'string',
|
|
880
|
-
description: '',
|
|
881
|
-
},
|
|
882
|
-
},
|
|
883
|
-
propertyOrder: ['attr', 'description', 'type', 'value'],
|
|
884
|
-
},
|
|
885
|
-
'minimum-child': 1,
|
|
886
|
-
showCodeViewBtn: !1,
|
|
887
|
-
onShow:
|
|
888
|
-
'type === "DevDefaults" || type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
889
|
-
},
|
|
890
|
-
},
|
|
891
|
-
propertyOrder: ['type', 'description', 'attrs', 'value'],
|
|
892
|
-
showCodeViewBtn: !1,
|
|
893
|
-
showKey: !0,
|
|
894
|
-
},
|
|
895
|
-
'dynamic-array': {
|
|
896
|
-
type: 'dynamic-array',
|
|
897
|
-
title: '动态数组',
|
|
898
|
-
description: '',
|
|
899
|
-
isContainer: !1,
|
|
900
|
-
properties: {
|
|
901
|
-
type: {
|
|
902
|
-
type: 'select',
|
|
903
|
-
title: '数据来源',
|
|
904
|
-
options: [
|
|
905
|
-
{ label: '模板直接设置', value: 'DevDefaults' },
|
|
906
|
-
{ label: 'mp后台配置', value: 'ContentStaticConfig' },
|
|
907
|
-
{ label: '资源中心配置', value: 'ResourceCenter' },
|
|
908
|
-
],
|
|
909
|
-
default: 'DevDefaults',
|
|
910
|
-
isConditionProp: !0,
|
|
911
|
-
description:
|
|
912
|
-
'目前支持的数据来源包括: 1)模版直接设置:在模版配置直接生效,支持直接输入或图片上传。 2)mp后台配置:选择mp后台配置后,属性会出现在mp后台中,支持属性描述的输入。 3)内容meta数据:支持内容meta数据的获取,页面meta数据。 4)全局配置数据:目前支持的全局配置包括:全局Tab配置及主题包配置。相关属性会挂载至:window.globalConst',
|
|
913
|
-
},
|
|
914
|
-
description: {
|
|
915
|
-
title: '自定义配置名称',
|
|
916
|
-
type: 'input',
|
|
917
|
-
default: 'Tab全局配置',
|
|
918
|
-
description: '',
|
|
919
|
-
placeholder: '',
|
|
920
|
-
onShow:
|
|
921
|
-
'type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
922
|
-
},
|
|
923
|
-
tabNums: {
|
|
924
|
-
title: 'Tab配置数',
|
|
925
|
-
type: 'number',
|
|
926
|
-
default: 1,
|
|
927
|
-
description: '需要配置的Tab数量',
|
|
928
|
-
placeholder: '',
|
|
929
|
-
onShow:
|
|
930
|
-
"type === 'ContentStaticConfig' || type === 'ResourceCenter'",
|
|
931
|
-
},
|
|
932
|
-
attrs: {
|
|
933
|
-
type: 'array',
|
|
934
|
-
title: 'Tab属性',
|
|
935
|
-
description: 'Tab需要配置的属性',
|
|
936
|
-
items: {
|
|
937
|
-
type: 'object',
|
|
938
|
-
title: '数组项',
|
|
939
|
-
description: '',
|
|
940
|
-
properties: {
|
|
941
|
-
attr: {
|
|
942
|
-
type: 'input',
|
|
943
|
-
title: '属性Key',
|
|
944
|
-
default: '',
|
|
945
|
-
description: '',
|
|
946
|
-
placeholder: '',
|
|
947
|
-
},
|
|
948
|
-
description: {
|
|
949
|
-
title: '描述',
|
|
950
|
-
type: 'input',
|
|
951
|
-
default: '',
|
|
952
|
-
description: '',
|
|
953
|
-
placeholder: '',
|
|
954
|
-
},
|
|
955
|
-
tipText: {
|
|
956
|
-
title: '提示说明',
|
|
957
|
-
type: 'textarea',
|
|
958
|
-
default: '',
|
|
959
|
-
description: '',
|
|
960
|
-
placeholder: '',
|
|
961
|
-
},
|
|
962
|
-
},
|
|
963
|
-
propertyOrder: ['attr', 'description', 'tipText'],
|
|
964
|
-
},
|
|
965
|
-
'minimum-child': 1,
|
|
966
|
-
onShow:
|
|
967
|
-
"type === 'ContentStaticConfig' || type === 'ResourceCenter'",
|
|
968
|
-
showCodeViewBtn: !1,
|
|
969
|
-
},
|
|
970
|
-
value: {
|
|
971
|
-
type: 'array',
|
|
972
|
-
title: 'Tab配置',
|
|
973
|
-
description: '',
|
|
974
|
-
items: {
|
|
975
|
-
type: 'object',
|
|
976
|
-
title: '数组项',
|
|
977
|
-
description: '',
|
|
978
|
-
properties: {
|
|
979
|
-
title: {
|
|
980
|
-
type: 'input',
|
|
981
|
-
title: '名称',
|
|
982
|
-
default: '',
|
|
983
|
-
description: '',
|
|
984
|
-
placeholder: '',
|
|
985
|
-
},
|
|
986
|
-
id: {
|
|
987
|
-
title: 'id',
|
|
988
|
-
type: 'input',
|
|
989
|
-
default: '',
|
|
990
|
-
description: '',
|
|
991
|
-
placeholder: '',
|
|
992
|
-
},
|
|
993
|
-
value: {
|
|
994
|
-
title: '数值',
|
|
995
|
-
type: 'input',
|
|
996
|
-
default: '',
|
|
997
|
-
description: '',
|
|
998
|
-
placeholder: '',
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
|
-
propertyOrder: ['title', 'value', 'id'],
|
|
1002
|
-
},
|
|
1003
|
-
'minimum-child': 1,
|
|
1004
|
-
onShow: "type === 'DevDefaults'",
|
|
1005
|
-
showCodeViewBtn: !1,
|
|
1006
|
-
},
|
|
1007
|
-
},
|
|
1008
|
-
propertyOrder: ['type', 'value', 'description', 'tabNums', 'attrs'],
|
|
1009
|
-
showCodeViewBtn: !1,
|
|
1010
|
-
showKey: !0,
|
|
1011
|
-
},
|
|
1012
|
-
'sohu-source': {
|
|
1013
|
-
type: 'sohu-source',
|
|
1014
|
-
title: '数据源',
|
|
1015
|
-
description: '',
|
|
1016
|
-
isContainer: !1,
|
|
1017
|
-
properties: {
|
|
1018
|
-
mainConfig: {
|
|
1019
|
-
type: 'object',
|
|
1020
|
-
title: '主要配置',
|
|
1021
|
-
description: '',
|
|
1022
|
-
isContainer: !1,
|
|
1023
|
-
properties: {
|
|
1024
|
-
type: {
|
|
1025
|
-
type: 'select',
|
|
1026
|
-
title: '数据来源',
|
|
1027
|
-
isConditionProp: !0,
|
|
1028
|
-
options: [
|
|
1029
|
-
{
|
|
1030
|
-
label: '模板自定义数据源',
|
|
1031
|
-
value: 'RuntimeDataSelfDefine',
|
|
1032
|
-
},
|
|
1033
|
-
{ label: 'mp后台配置', value: 'ContentStaticConfig' },
|
|
1034
|
-
{
|
|
1035
|
-
label: '请求当前页面数据',
|
|
1036
|
-
value: 'RuntimeDataSelfContent',
|
|
1037
|
-
},
|
|
1038
|
-
{ label: '资源中心配置', value: 'ResourceCenter' },
|
|
1039
|
-
],
|
|
1040
|
-
default: 'RuntimeDataSelfDefine',
|
|
1041
|
-
description: '',
|
|
1042
|
-
},
|
|
1043
|
-
description: {
|
|
1044
|
-
title: '数据源名称',
|
|
1045
|
-
type: 'input',
|
|
1046
|
-
description: '',
|
|
1047
|
-
placeholder: '',
|
|
1048
|
-
onShow: 'type === "ContentStaticConfig"',
|
|
1049
|
-
},
|
|
1050
|
-
dataType: {
|
|
1051
|
-
type: 'radio',
|
|
1052
|
-
title: '请求方式',
|
|
1053
|
-
default: !1,
|
|
1054
|
-
options: [
|
|
1055
|
-
{ label: '批量请求', value: 'FROMCIS' },
|
|
1056
|
-
{ label: '组件内部请求', value: 'FROMCOMPCIS' },
|
|
1057
|
-
{ label: '不请求', value: !1 },
|
|
1058
|
-
],
|
|
1059
|
-
description: '',
|
|
1060
|
-
},
|
|
1061
|
-
CONTENTID: {
|
|
1062
|
-
title: '数据源ID',
|
|
1063
|
-
type: 'input',
|
|
1064
|
-
description: '',
|
|
1065
|
-
placeholder: '',
|
|
1066
|
-
onShow: 'type === "RuntimeDataSelfDefine"',
|
|
1067
|
-
},
|
|
1068
|
-
CONTENTTYPE: {
|
|
1069
|
-
type: 'select',
|
|
1070
|
-
title: '数据源类型',
|
|
1071
|
-
options: [
|
|
1072
|
-
{ label: 'channel', value: 13 },
|
|
1073
|
-
{ label: 'topic', value: 15 },
|
|
1074
|
-
{ label: 'block', value: 14 },
|
|
1075
|
-
],
|
|
1076
|
-
description: '',
|
|
1077
|
-
onShow: 'type === "RuntimeDataSelfDefine"',
|
|
1078
|
-
},
|
|
1079
|
-
},
|
|
1080
|
-
propertyOrder: [
|
|
1081
|
-
'type',
|
|
1082
|
-
'description',
|
|
1083
|
-
'dataType',
|
|
1084
|
-
'CONTENTID',
|
|
1085
|
-
'CONTENTTYPE',
|
|
1086
|
-
],
|
|
1087
|
-
showCodeViewBtn: !1,
|
|
1088
|
-
},
|
|
1089
|
-
outConfig: {
|
|
1090
|
-
type: 'object',
|
|
1091
|
-
title: '出流配置',
|
|
1092
|
-
description: '',
|
|
1093
|
-
isContainer: !1,
|
|
1094
|
-
properties: {
|
|
1095
|
-
PRO: {
|
|
1096
|
-
type: 'select',
|
|
1097
|
-
title: '内容类型',
|
|
1098
|
-
options: [
|
|
1099
|
-
{ label: '置顶+加精', value: '4' },
|
|
1100
|
-
{ label: '长效置顶', value: '5' },
|
|
1101
|
-
],
|
|
1102
|
-
description: '',
|
|
1103
|
-
},
|
|
1104
|
-
FEEDTYPE: {
|
|
1105
|
-
type: 'select',
|
|
1106
|
-
title: '排序类型',
|
|
1107
|
-
options: [
|
|
1108
|
-
{ label: '综合', value: 'XTOPIC_SYNTHETICAL' },
|
|
1109
|
-
{ label: '最新', value: 'XTOPIC_LATEST' },
|
|
1110
|
-
{ label: '相关', value: 'XTOPIC_RELATED' },
|
|
1111
|
-
],
|
|
1112
|
-
description: '',
|
|
1113
|
-
},
|
|
1114
|
-
VIEW: {
|
|
1115
|
-
type: 'select',
|
|
1116
|
-
title: '数据裁剪',
|
|
1117
|
-
options: [
|
|
1118
|
-
{ label: '相关推荐模式', value: 'articleFeedMode' },
|
|
1119
|
-
{ label: '文字链裁剪方式', value: 'textMode' },
|
|
1120
|
-
{ label: '短内容摘录方式', value: 'excerptMode' },
|
|
1121
|
-
{
|
|
1122
|
-
label: '互动(点赞/评论)裁剪方式',
|
|
1123
|
-
value: 'interactMode',
|
|
1124
|
-
},
|
|
1125
|
-
{ label: '评论文字链裁剪方式', value: 'commentTextMode' },
|
|
1126
|
-
{
|
|
1127
|
-
label: '摘录方式(无点赞)',
|
|
1128
|
-
value: 'excerptCommentMode',
|
|
1129
|
-
},
|
|
1130
|
-
{ label: '无限流卡片模式', value: 'dynamicFeedMode' },
|
|
1131
|
-
{ label: '时间线模式', value: 'timeLineMode' },
|
|
1132
|
-
{ label: '复合内容流模式', value: 'multiFeedMode' },
|
|
1133
|
-
{ label: '搜狐号推荐模式', value: 'recommendFeedMode' },
|
|
1134
|
-
{ label: '作者页内容流模式', value: 'operateFeedMode' },
|
|
1135
|
-
{ label: '标签内容流模式', value: 'tagsFeedMode' },
|
|
1136
|
-
{ label: '评论链裁剪方式', value: 'commentMode' },
|
|
1137
|
-
{ label: '标签摘录方式', value: 'excerptTagsMode' },
|
|
1138
|
-
{ label: '内容流模式', value: 'feedMode' },
|
|
1139
|
-
],
|
|
1140
|
-
description: '',
|
|
1141
|
-
},
|
|
1142
|
-
CONTENTCONTEXT: {
|
|
1143
|
-
type: 'select',
|
|
1144
|
-
title: 'mKey参数',
|
|
1145
|
-
options: [
|
|
1146
|
-
{
|
|
1147
|
-
label: '作者ID+栏目ID',
|
|
1148
|
-
value: 'authorColumnId_${#authorColumnId}',
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
label: '账号ID',
|
|
1152
|
-
value: 'accountId_${#contentData_account_id}',
|
|
1153
|
-
},
|
|
1154
|
-
{ label: 'mkeyID', value: 'mid_${#mkeyConst_mid}' },
|
|
1155
|
-
{ label: 'mkey名称', value: 'mname_${#mkeyConst_mname}' },
|
|
1156
|
-
{
|
|
1157
|
-
label: '城市Code码',
|
|
1158
|
-
value: 'cityCode_${#cityInfo_cityCode}',
|
|
1159
|
-
},
|
|
1160
|
-
{
|
|
1161
|
-
label: '城市名称',
|
|
1162
|
-
value: 'cityName_${#cityInfo_cityName}',
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
label: '焦点城市Code码',
|
|
1166
|
-
value: 'focusCityCode_${#focusCityInfo_cityCode}',
|
|
1167
|
-
},
|
|
1168
|
-
],
|
|
1169
|
-
description: '',
|
|
1170
|
-
},
|
|
1171
|
-
CONTENTPARAMS: {
|
|
1172
|
-
title: '动态参数',
|
|
1173
|
-
type: 'json',
|
|
1174
|
-
description: '请填写JSON格式的参数',
|
|
1175
|
-
placeholder: '',
|
|
1176
|
-
},
|
|
1177
|
-
},
|
|
1178
|
-
propertyOrder: [
|
|
1179
|
-
'PRO',
|
|
1180
|
-
'FEEDTYPE',
|
|
1181
|
-
'VIEW',
|
|
1182
|
-
'CONTENTCONTEXT',
|
|
1183
|
-
'CONTENTPARAMS',
|
|
1184
|
-
],
|
|
1185
|
-
showCodeViewBtn: !1,
|
|
1186
|
-
},
|
|
1187
|
-
otherConfig: {
|
|
1188
|
-
type: 'object',
|
|
1189
|
-
title: '选配内容',
|
|
1190
|
-
description: '',
|
|
1191
|
-
isContainer: !1,
|
|
1192
|
-
properties: {
|
|
1193
|
-
SIZE: {
|
|
1194
|
-
type: 'number',
|
|
1195
|
-
title: '容量',
|
|
1196
|
-
minimum: 0,
|
|
1197
|
-
maximum: 1e3,
|
|
1198
|
-
description: '该位置区块需要的内容条数',
|
|
1199
|
-
},
|
|
1200
|
-
TITLE: {
|
|
1201
|
-
title: '标题',
|
|
1202
|
-
type: 'input',
|
|
1203
|
-
description: '',
|
|
1204
|
-
placeholder: '',
|
|
1205
|
-
},
|
|
1206
|
-
URL: {
|
|
1207
|
-
type: 'url',
|
|
1208
|
-
title: '更多跳转链接',
|
|
1209
|
-
description: '该区块下点击“更多或箭头图标”后的跳转链接',
|
|
1210
|
-
placeholder: '',
|
|
1211
|
-
},
|
|
1212
|
-
CODE: {
|
|
1213
|
-
title: 'Code参数',
|
|
1214
|
-
type: 'input',
|
|
1215
|
-
description: '',
|
|
1216
|
-
placeholder: '',
|
|
1217
|
-
onShow: !1,
|
|
1218
|
-
},
|
|
1219
|
-
},
|
|
1220
|
-
propertyOrder: ['SIZE', 'TITLE', 'URL', 'CODE'],
|
|
1221
|
-
showCodeViewBtn: !1,
|
|
1222
|
-
},
|
|
1223
|
-
},
|
|
1224
|
-
propertyOrder: ['mainConfig', 'otherConfig', 'outConfig'],
|
|
1225
|
-
showCodeViewBtn: !1,
|
|
1226
|
-
},
|
|
1227
|
-
'sohu-event': {
|
|
1228
|
-
type: 'sohu-event',
|
|
1229
|
-
title: 'sohu组件事件',
|
|
1230
|
-
showCodeViewBtn: !1,
|
|
1231
|
-
isContainer: !1,
|
|
1232
|
-
properties: {
|
|
1233
|
-
globalEventMap: {
|
|
1234
|
-
type: 'object',
|
|
1235
|
-
title: '全局事件Map',
|
|
1236
|
-
description: '',
|
|
1237
|
-
properties: {
|
|
1238
|
-
eventCode: {
|
|
1239
|
-
type: 'input',
|
|
1240
|
-
title: '事件名称',
|
|
1241
|
-
default: '',
|
|
1242
|
-
description: '',
|
|
1243
|
-
placeholder: '',
|
|
1244
|
-
readOnly: !0,
|
|
1245
|
-
},
|
|
1246
|
-
},
|
|
1247
|
-
propertyOrder: ['eventCode'],
|
|
1248
|
-
showCodeViewBtn: !1,
|
|
1249
|
-
},
|
|
1250
|
-
event: {
|
|
1251
|
-
type: 'array',
|
|
1252
|
-
title: '监听事件',
|
|
1253
|
-
description: '当前组件监听事件列表',
|
|
1254
|
-
default: [],
|
|
1255
|
-
items: {
|
|
1256
|
-
type: 'object',
|
|
1257
|
-
title: '数组项',
|
|
1258
|
-
description: '',
|
|
1259
|
-
properties: {
|
|
1260
|
-
name: {
|
|
1261
|
-
type: 'input',
|
|
1262
|
-
title: '事件',
|
|
1263
|
-
default: '',
|
|
1264
|
-
description: '',
|
|
1265
|
-
placeholder: '',
|
|
1266
|
-
},
|
|
1267
|
-
code: {
|
|
1268
|
-
title: '事件code',
|
|
1269
|
-
type: 'input',
|
|
1270
|
-
default: '',
|
|
1271
|
-
description: '',
|
|
1272
|
-
placeholder: '',
|
|
1273
|
-
},
|
|
1274
|
-
listenName: {
|
|
1275
|
-
title: '事件名称',
|
|
1276
|
-
type: 'input',
|
|
1277
|
-
default: '',
|
|
1278
|
-
description: '',
|
|
1279
|
-
placeholder: '',
|
|
1280
|
-
},
|
|
1281
|
-
desc: {
|
|
1282
|
-
title: '事件描述',
|
|
1283
|
-
type: 'input',
|
|
1284
|
-
default: '',
|
|
1285
|
-
description: '',
|
|
1286
|
-
placeholder: '',
|
|
1287
|
-
},
|
|
1288
|
-
},
|
|
1289
|
-
propertyOrder: ['name', 'code', 'listenName', 'desc'],
|
|
1290
|
-
},
|
|
1291
|
-
showCodeViewBtn: !1,
|
|
1292
|
-
},
|
|
1293
|
-
},
|
|
1294
|
-
propertyOrder: ['globalEventMap', 'event'],
|
|
1295
|
-
},
|
|
1296
|
-
'sohu-ad': {
|
|
1297
|
-
type: 'object',
|
|
1298
|
-
title: '广告配置',
|
|
1299
|
-
description: '',
|
|
1300
|
-
properties: {
|
|
1301
|
-
type: {
|
|
1302
|
-
type: 'select',
|
|
1303
|
-
title: '数据源类型',
|
|
1304
|
-
isConditionProp: !0,
|
|
1305
|
-
options: [
|
|
1306
|
-
{ label: '模板直接设置', value: 'DevDefaults' },
|
|
1307
|
-
{ label: '资源中心配置', value: 'ResourceCenter' },
|
|
1308
|
-
],
|
|
1309
|
-
description: '',
|
|
1310
|
-
},
|
|
1311
|
-
value: {
|
|
1312
|
-
type: 'object',
|
|
1313
|
-
title: '广告规则',
|
|
1314
|
-
description: '',
|
|
1315
|
-
onShow: 'type === "DevDefaults"',
|
|
1316
|
-
properties: {
|
|
1317
|
-
id: {
|
|
1318
|
-
title: '广告ID',
|
|
1319
|
-
type: 'number',
|
|
1320
|
-
description: '',
|
|
1321
|
-
placeholder: '',
|
|
1322
|
-
},
|
|
1323
|
-
rule: {
|
|
1324
|
-
type: 'radio',
|
|
1325
|
-
title: '规则类型',
|
|
1326
|
-
isConditionProp: !0,
|
|
1327
|
-
options: [
|
|
1328
|
-
{ label: '固定位置', value: 1 },
|
|
1329
|
-
{ label: '隔几出几', value: 2 },
|
|
1330
|
-
{ label: '固定位置隔几出几', value: 3 },
|
|
1331
|
-
],
|
|
1332
|
-
description: '',
|
|
1333
|
-
},
|
|
1334
|
-
fixArray: {
|
|
1335
|
-
type: 'select',
|
|
1336
|
-
title: '固定位置',
|
|
1337
|
-
description: '',
|
|
1338
|
-
multiple: !0,
|
|
1339
|
-
onShow: 'rule === 1 || rule === 3',
|
|
1340
|
-
options: [
|
|
1341
|
-
{ label: '1', value: 1 },
|
|
1342
|
-
{ label: '2', value: 2 },
|
|
1343
|
-
{ label: '3', value: 3 },
|
|
1344
|
-
{ label: '4', value: 4 },
|
|
1345
|
-
{ label: '5', value: 5 },
|
|
1346
|
-
{ label: '6', value: 6 },
|
|
1347
|
-
{ label: '7', value: 7 },
|
|
1348
|
-
{ label: '8', value: 8 },
|
|
1349
|
-
{ label: '9', value: 9 },
|
|
1350
|
-
{ label: '10', value: 10 },
|
|
1351
|
-
{ label: '11', value: 11 },
|
|
1352
|
-
{ label: '12', value: 12 },
|
|
1353
|
-
{ label: '13', value: 13 },
|
|
1354
|
-
{ label: '14', value: 14 },
|
|
1355
|
-
{ label: '15', value: 15 },
|
|
1356
|
-
{ label: '16', value: 16 },
|
|
1357
|
-
{ label: '17', value: 17 },
|
|
1358
|
-
{ label: '18', value: 18 },
|
|
1359
|
-
{ label: '19', value: 19 },
|
|
1360
|
-
{ label: '20', value: 20 },
|
|
1361
|
-
{ label: '21', value: 21 },
|
|
1362
|
-
{ label: '22', value: 22 },
|
|
1363
|
-
{ label: '23', value: 23 },
|
|
1364
|
-
{ label: '24', value: 24 },
|
|
1365
|
-
{ label: '25', value: 25 },
|
|
1366
|
-
{ label: '26', value: 26 },
|
|
1367
|
-
{ label: '27', value: 27 },
|
|
1368
|
-
{ label: '28', value: 28 },
|
|
1369
|
-
{ label: '29', value: 29 },
|
|
1370
|
-
{ label: '30', value: 30 },
|
|
1371
|
-
{ label: '31', value: 31 },
|
|
1372
|
-
{ label: '32', value: 32 },
|
|
1373
|
-
{ label: '33', value: 33 },
|
|
1374
|
-
{ label: '34', value: 34 },
|
|
1375
|
-
{ label: '35', value: 35 },
|
|
1376
|
-
{ label: '36', value: 36 },
|
|
1377
|
-
{ label: '37', value: 37 },
|
|
1378
|
-
{ label: '38', value: 38 },
|
|
1379
|
-
{ label: '39', value: 39 },
|
|
1380
|
-
{ label: '40', value: 40 },
|
|
1381
|
-
{ label: '41', value: 41 },
|
|
1382
|
-
{ label: '42', value: 42 },
|
|
1383
|
-
{ label: '43', value: 43 },
|
|
1384
|
-
{ label: '44', value: 44 },
|
|
1385
|
-
{ label: '45', value: 45 },
|
|
1386
|
-
{ label: '46', value: 46 },
|
|
1387
|
-
{ label: '47', value: 47 },
|
|
1388
|
-
{ label: '48', value: 48 },
|
|
1389
|
-
{ label: '49', value: 49 },
|
|
1390
|
-
{ label: '50', value: 50 },
|
|
1391
|
-
],
|
|
1392
|
-
},
|
|
1393
|
-
begin: {
|
|
1394
|
-
type: 'number',
|
|
1395
|
-
title: '开始位置',
|
|
1396
|
-
minimum: '1',
|
|
1397
|
-
maximum: '50',
|
|
1398
|
-
description: '',
|
|
1399
|
-
onShow: 'rule === 2 || rule === 3',
|
|
1400
|
-
},
|
|
1401
|
-
turn: {
|
|
1402
|
-
type: 'number',
|
|
1403
|
-
title: '间隔/隔',
|
|
1404
|
-
minimum: '1',
|
|
1405
|
-
maximum: '50',
|
|
1406
|
-
description: '',
|
|
1407
|
-
onShow: 'rule === 2 || rule === 3',
|
|
1408
|
-
},
|
|
1409
|
-
number: {
|
|
1410
|
-
type: 'number',
|
|
1411
|
-
title: '间隔/出',
|
|
1412
|
-
minimum: '1',
|
|
1413
|
-
maximum: '50',
|
|
1414
|
-
description: '',
|
|
1415
|
-
onShow: 'rule === 2 || rule === 3',
|
|
1416
|
-
},
|
|
1417
|
-
mergeType: {
|
|
1418
|
-
type: 'radio',
|
|
1419
|
-
title: '插入规则',
|
|
1420
|
-
options: [
|
|
1421
|
-
{ label: '覆盖', value: 0 },
|
|
1422
|
-
{ label: '插入', value: 1 },
|
|
1423
|
-
],
|
|
1424
|
-
description: '',
|
|
1425
|
-
},
|
|
1426
|
-
},
|
|
1427
|
-
propertyOrder: [
|
|
1428
|
-
'id',
|
|
1429
|
-
'rule',
|
|
1430
|
-
'fixArray',
|
|
1431
|
-
'begin',
|
|
1432
|
-
'turn',
|
|
1433
|
-
'number',
|
|
1434
|
-
'mergeType',
|
|
1435
|
-
],
|
|
1436
|
-
},
|
|
1437
|
-
range: {
|
|
1438
|
-
type: 'array',
|
|
1439
|
-
title: '广告规则列表',
|
|
1440
|
-
description: '',
|
|
1441
|
-
onShow: 'type === "ResourceCenter"',
|
|
1442
|
-
items: {
|
|
1443
|
-
type: 'object',
|
|
1444
|
-
title: '数组项',
|
|
1445
|
-
description: '',
|
|
1446
|
-
properties: {
|
|
1447
|
-
rule: {
|
|
1448
|
-
type: 'radio',
|
|
1449
|
-
title: '规则类型',
|
|
1450
|
-
isConditionProp: !0,
|
|
1451
|
-
options: [
|
|
1452
|
-
{ label: '固定位置', value: 1 },
|
|
1453
|
-
{ label: '隔几出几', value: 2 },
|
|
1454
|
-
{ label: '固定位置隔几出几', value: 3 },
|
|
1455
|
-
],
|
|
1456
|
-
description: '',
|
|
1457
|
-
},
|
|
1458
|
-
fixArray: {
|
|
1459
|
-
type: 'select',
|
|
1460
|
-
title: '固定位置',
|
|
1461
|
-
description: '',
|
|
1462
|
-
onShow: 'rule === 1 || rule === 3',
|
|
1463
|
-
multiple: !0,
|
|
1464
|
-
options: [
|
|
1465
|
-
{ label: '1', value: 1 },
|
|
1466
|
-
{ label: '2', value: 2 },
|
|
1467
|
-
{ label: '3', value: 3 },
|
|
1468
|
-
{ label: '4', value: 4 },
|
|
1469
|
-
{ label: '5', value: 5 },
|
|
1470
|
-
{ label: '6', value: 6 },
|
|
1471
|
-
{ label: '7', value: 7 },
|
|
1472
|
-
{ label: '8', value: 8 },
|
|
1473
|
-
{ label: '9', value: 9 },
|
|
1474
|
-
{ label: '10', value: 10 },
|
|
1475
|
-
{ label: '11', value: 11 },
|
|
1476
|
-
{ label: '12', value: 12 },
|
|
1477
|
-
{ label: '13', value: 13 },
|
|
1478
|
-
{ label: '14', value: 14 },
|
|
1479
|
-
{ label: '15', value: 15 },
|
|
1480
|
-
{ label: '16', value: 16 },
|
|
1481
|
-
{ label: '17', value: 17 },
|
|
1482
|
-
{ label: '18', value: 18 },
|
|
1483
|
-
{ label: '19', value: 19 },
|
|
1484
|
-
{ label: '20', value: 20 },
|
|
1485
|
-
{ label: '21', value: 21 },
|
|
1486
|
-
{ label: '22', value: 22 },
|
|
1487
|
-
{ label: '23', value: 23 },
|
|
1488
|
-
{ label: '24', value: 24 },
|
|
1489
|
-
{ label: '25', value: 25 },
|
|
1490
|
-
{ label: '26', value: 26 },
|
|
1491
|
-
{ label: '27', value: 27 },
|
|
1492
|
-
{ label: '28', value: 28 },
|
|
1493
|
-
{ label: '29', value: 29 },
|
|
1494
|
-
{ label: '30', value: 30 },
|
|
1495
|
-
{ label: '31', value: 31 },
|
|
1496
|
-
{ label: '32', value: 32 },
|
|
1497
|
-
{ label: '33', value: 33 },
|
|
1498
|
-
{ label: '34', value: 34 },
|
|
1499
|
-
{ label: '35', value: 35 },
|
|
1500
|
-
{ label: '36', value: 36 },
|
|
1501
|
-
{ label: '37', value: 37 },
|
|
1502
|
-
{ label: '38', value: 38 },
|
|
1503
|
-
{ label: '39', value: 39 },
|
|
1504
|
-
{ label: '40', value: 40 },
|
|
1505
|
-
{ label: '41', value: 41 },
|
|
1506
|
-
{ label: '42', value: 42 },
|
|
1507
|
-
{ label: '43', value: 43 },
|
|
1508
|
-
{ label: '44', value: 44 },
|
|
1509
|
-
{ label: '45', value: 45 },
|
|
1510
|
-
{ label: '46', value: 46 },
|
|
1511
|
-
{ label: '47', value: 47 },
|
|
1512
|
-
{ label: '48', value: 48 },
|
|
1513
|
-
{ label: '49', value: 49 },
|
|
1514
|
-
{ label: '50', value: 50 },
|
|
1515
|
-
],
|
|
1516
|
-
},
|
|
1517
|
-
begin: {
|
|
1518
|
-
type: 'number',
|
|
1519
|
-
title: '开始位置',
|
|
1520
|
-
minimum: '1',
|
|
1521
|
-
maximum: '50',
|
|
1522
|
-
description: '',
|
|
1523
|
-
onShow: 'rule === 2 || rule === 3',
|
|
1524
|
-
},
|
|
1525
|
-
turn: {
|
|
1526
|
-
type: 'number',
|
|
1527
|
-
title: '间隔/隔',
|
|
1528
|
-
minimum: '1',
|
|
1529
|
-
maximum: '50',
|
|
1530
|
-
description: '',
|
|
1531
|
-
onShow: 'rule === 2 || rule === 3',
|
|
1532
|
-
},
|
|
1533
|
-
number: {
|
|
1534
|
-
type: 'number',
|
|
1535
|
-
title: '间隔/出',
|
|
1536
|
-
minimum: '1',
|
|
1537
|
-
maximum: '50',
|
|
1538
|
-
description: '',
|
|
1539
|
-
onShow: 'rule === 2 || rule === 3',
|
|
1540
|
-
},
|
|
1541
|
-
mergeType: {
|
|
1542
|
-
type: 'radio',
|
|
1543
|
-
title: '插入规则',
|
|
1544
|
-
options: [
|
|
1545
|
-
{ label: '覆盖', value: 0 },
|
|
1546
|
-
{ label: '插入', value: 1 },
|
|
1547
|
-
],
|
|
1548
|
-
description: '',
|
|
1549
|
-
},
|
|
1550
|
-
},
|
|
1551
|
-
propertyOrder: [
|
|
1552
|
-
'rule',
|
|
1553
|
-
'fixArray',
|
|
1554
|
-
'begin',
|
|
1555
|
-
'turn',
|
|
1556
|
-
'number',
|
|
1557
|
-
'mergeType',
|
|
1558
|
-
],
|
|
1559
|
-
},
|
|
1560
|
-
},
|
|
1561
|
-
},
|
|
1562
|
-
propertyOrder: ['type', 'value', 'range'],
|
|
1563
|
-
},
|
|
735
|
+
datasource: p,
|
|
736
|
+
event: o,
|
|
1564
737
|
},
|
|
1565
|
-
|
|
738
|
+
s = {
|
|
1566
739
|
on: {
|
|
1567
740
|
type: 'event',
|
|
1568
741
|
title: '事件',
|
|
@@ -1593,63 +766,63 @@
|
|
|
1593
766
|
},
|
|
1594
767
|
propertyOrder: ['type', 'register', 'actionFunc'],
|
|
1595
768
|
},
|
|
1596
|
-
emit:
|
|
769
|
+
emit: o,
|
|
1597
770
|
},
|
|
1598
|
-
d = { local:
|
|
1599
|
-
function
|
|
771
|
+
d = { local: p, remote: u };
|
|
772
|
+
function f(e) {
|
|
1600
773
|
return /^http[s]?:\/\/.*/.test(e);
|
|
1601
774
|
}
|
|
1602
|
-
function
|
|
775
|
+
function y(e) {
|
|
1603
776
|
return 'String' === Object.prototype.toString.call(e).slice(8, -1);
|
|
1604
777
|
}
|
|
1605
|
-
function
|
|
778
|
+
function m(e) {
|
|
1606
779
|
return (
|
|
1607
780
|
'number' == typeof e ||
|
|
1608
781
|
'[object Number]' === Object.prototype.toString.call(e)
|
|
1609
782
|
);
|
|
1610
783
|
}
|
|
1611
|
-
function
|
|
784
|
+
function v(e) {
|
|
1612
785
|
return 'Boolean' === Object.prototype.toString.call(e).slice(8, -1);
|
|
1613
786
|
}
|
|
1614
|
-
function
|
|
787
|
+
function b(e) {
|
|
1615
788
|
return /^\d{4}-\d{2}-\d{2}$/.test(e);
|
|
1616
789
|
}
|
|
1617
|
-
function
|
|
790
|
+
function g(e) {
|
|
1618
791
|
return (
|
|
1619
792
|
/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}$/.test(e) ||
|
|
1620
793
|
/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(e)
|
|
1621
794
|
);
|
|
1622
795
|
}
|
|
1623
|
-
function
|
|
796
|
+
function h(e) {
|
|
1624
797
|
return /^\d{2}:\d{2}:\d{2}$/.test(e) || /^\d{2}:\d{2}$/.test(e);
|
|
1625
798
|
}
|
|
1626
|
-
function
|
|
799
|
+
function j(e) {
|
|
1627
800
|
var t = !1;
|
|
1628
801
|
return (
|
|
1629
802
|
'Array' === Object.prototype.toString.call(e).slice(8, -1) && (t = !0),
|
|
1630
803
|
t
|
|
1631
804
|
);
|
|
1632
805
|
}
|
|
1633
|
-
function
|
|
1634
|
-
if (!
|
|
1635
|
-
for (var t = 0, r = e.length; t < r; t++) if (!
|
|
806
|
+
function O(e) {
|
|
807
|
+
if (!j(e)) return !1;
|
|
808
|
+
for (var t = 0, r = e.length; t < r; t++) if (!y(e[t])) return !1;
|
|
1636
809
|
return !0;
|
|
1637
810
|
}
|
|
1638
|
-
function
|
|
811
|
+
function x(e) {
|
|
1639
812
|
var t = !1;
|
|
1640
813
|
return (
|
|
1641
814
|
'Object' === Object.prototype.toString.call(e).slice(8, -1) && (t = !0),
|
|
1642
815
|
t
|
|
1643
816
|
);
|
|
1644
817
|
}
|
|
1645
|
-
function
|
|
818
|
+
function q(e) {
|
|
1646
819
|
var t = !1;
|
|
1647
|
-
return
|
|
820
|
+
return c.quantity.properties.quantity.enum.indexOf(e) >= 0 && (t = !0), t;
|
|
1648
821
|
}
|
|
1649
|
-
function
|
|
822
|
+
function S(e) {
|
|
1650
823
|
return /^#[0-9a-f]{6}$/.test(e) || /^#[0-9a-f]{3}$/.test(e);
|
|
1651
824
|
}
|
|
1652
|
-
function
|
|
825
|
+
function k(e) {
|
|
1653
826
|
var t = !1;
|
|
1654
827
|
return (
|
|
1655
828
|
'Function' === Object.prototype.toString.call(e).slice(8, -1) &&
|
|
@@ -1657,156 +830,156 @@
|
|
|
1657
830
|
t
|
|
1658
831
|
);
|
|
1659
832
|
}
|
|
1660
|
-
function
|
|
833
|
+
function T() {
|
|
1661
834
|
var e = {};
|
|
1662
835
|
return (
|
|
1663
|
-
location.search && (e =
|
|
836
|
+
location.search && (e = a().parse(location.search.substring(1))), e
|
|
1664
837
|
);
|
|
1665
838
|
}
|
|
1666
|
-
function
|
|
839
|
+
function N(e) {
|
|
1667
840
|
var t = '';
|
|
1668
|
-
return url && (t =
|
|
841
|
+
return url && (t = a().stringify(e)), t;
|
|
1669
842
|
}
|
|
1670
|
-
function
|
|
843
|
+
function D(e) {
|
|
1671
844
|
return (0, i.cloneDeep)(e);
|
|
1672
845
|
}
|
|
1673
846
|
function R(e, t) {
|
|
1674
|
-
if ((
|
|
1675
|
-
if (
|
|
847
|
+
if ((w(e) && !w(t)) || (!w(e) && w(t)) || typeof e != typeof t) return !1;
|
|
848
|
+
if (x(e) && (e.id !== t.id || e.lastUpdateTime !== t.lastUpdateTime))
|
|
1676
849
|
return !1;
|
|
1677
850
|
var r = new Date().getTime();
|
|
1678
851
|
return (
|
|
1679
852
|
!!(
|
|
1680
|
-
|
|
853
|
+
x(e) &&
|
|
1681
854
|
e.lastUpdateTime &&
|
|
1682
855
|
e.lastUpdateTime === t.lastUpdateTime &&
|
|
1683
856
|
r - e.lastUpdateTime < 500
|
|
1684
857
|
) || (0, i.isEqual)(e, t)
|
|
1685
858
|
);
|
|
1686
859
|
}
|
|
1687
|
-
function
|
|
1688
|
-
if ((
|
|
1689
|
-
if (
|
|
860
|
+
function F(e, t) {
|
|
861
|
+
if ((w(e) && !w(t)) || (!w(e) && w(t)) || typeof e != typeof t) return !1;
|
|
862
|
+
if (x(e) && (e.id !== t.id || e.lastUpdateTime !== t.lastUpdateTime))
|
|
1690
863
|
return !1;
|
|
1691
864
|
var r = new Date().getTime();
|
|
1692
865
|
return (
|
|
1693
866
|
!!(
|
|
1694
|
-
|
|
867
|
+
x(e) &&
|
|
1695
868
|
e.lastUpdateTime &&
|
|
1696
869
|
e.lastUpdateTime === t.lastUpdateTime &&
|
|
1697
870
|
r - e.lastUpdateTime < 500
|
|
1698
871
|
) ||
|
|
1699
872
|
!(
|
|
1700
|
-
!
|
|
873
|
+
!x(e) ||
|
|
1701
874
|
!(
|
|
1702
|
-
(
|
|
1703
|
-
(
|
|
875
|
+
(w(e.id) && e.id === t.id) ||
|
|
876
|
+
(w(e.lastUpdateTime) && e.lastUpdateTime === t.lastUpdateTime)
|
|
1704
877
|
)
|
|
1705
878
|
) ||
|
|
1706
879
|
(0, i.isEqual)(e, t)
|
|
1707
880
|
);
|
|
1708
881
|
}
|
|
1709
|
-
function
|
|
882
|
+
function w(e) {
|
|
1710
883
|
var t = !1;
|
|
1711
884
|
return null != e && (t = !0), t;
|
|
1712
885
|
}
|
|
1713
|
-
function
|
|
886
|
+
function C(e, t) {
|
|
1714
887
|
return (0, i.truncate)(e, t);
|
|
1715
888
|
}
|
|
1716
|
-
function
|
|
889
|
+
function U(e, t) {
|
|
1717
890
|
var r = t || {};
|
|
1718
891
|
if (!e) return !1;
|
|
1719
892
|
var i = new Function('data', 'with(data) { return (' + e + ');}'),
|
|
1720
|
-
|
|
893
|
+
n = '';
|
|
1721
894
|
try {
|
|
1722
|
-
|
|
895
|
+
n = i(r);
|
|
1723
896
|
} catch (t) {
|
|
1724
|
-
return console.warn('表达式运算出错: ' + e + ',报错信息:', t),
|
|
897
|
+
return console.warn('表达式运算出错: ' + e + ',报错信息:', t), n;
|
|
1725
898
|
}
|
|
1726
|
-
return
|
|
899
|
+
return n;
|
|
1727
900
|
}
|
|
1728
901
|
function P(e, t, r) {
|
|
1729
902
|
var i = t;
|
|
1730
|
-
if ((r && (i =
|
|
1731
|
-
for (var
|
|
1732
|
-
var
|
|
1733
|
-
|
|
903
|
+
if ((r && (i = D(t)), e))
|
|
904
|
+
for (var n = e.split('-'), a = 0, o = n.length; a < o; a++) {
|
|
905
|
+
var p = n[a];
|
|
906
|
+
p && (i = i && i[p]);
|
|
1734
907
|
}
|
|
1735
908
|
return i;
|
|
1736
909
|
}
|
|
1737
|
-
function
|
|
910
|
+
function E(e, t, r) {
|
|
1738
911
|
var i = t;
|
|
1739
|
-
if ((r && (i =
|
|
1740
|
-
for (var
|
|
1741
|
-
var
|
|
912
|
+
if ((r && (i = D(t)), e))
|
|
913
|
+
for (var n = e.split('-'), a = 0, o = n.length; a < o; a++) {
|
|
914
|
+
var p = n[a];
|
|
1742
915
|
if (
|
|
1743
|
-
'0' !==
|
|
916
|
+
'0' !== p ||
|
|
1744
917
|
('array' !== i.type &&
|
|
1745
918
|
'radio' !== i.type &&
|
|
1746
919
|
'select' !== i.type &&
|
|
1747
920
|
'checkboxes' !== i.type) ||
|
|
1748
921
|
(!i.options && !i.items)
|
|
1749
922
|
) {
|
|
1750
|
-
if (
|
|
1751
|
-
var
|
|
923
|
+
if (p) {
|
|
924
|
+
var u = '0';
|
|
1752
925
|
i.propertyOrder
|
|
1753
|
-
? (
|
|
1754
|
-
: i.properties && (
|
|
1755
|
-
(i = i.properties[
|
|
926
|
+
? (u = i.propertyOrder[p])
|
|
927
|
+
: i.properties && (u = Object.keys(i.properties)[p]),
|
|
928
|
+
(i = i.properties[u]);
|
|
1756
929
|
}
|
|
1757
930
|
} else i = i.options || i.items;
|
|
1758
931
|
}
|
|
1759
932
|
return i;
|
|
1760
933
|
}
|
|
1761
|
-
function
|
|
934
|
+
function J(e, t, r) {
|
|
1762
935
|
var i = t;
|
|
1763
|
-
if ((r && (i =
|
|
1764
|
-
for (var
|
|
1765
|
-
var
|
|
1766
|
-
|
|
936
|
+
if ((r && (i = D(t)), e && i))
|
|
937
|
+
for (var n = e.split('-'), a = 0, o = n.length; a < o; a++) {
|
|
938
|
+
var p = n[a];
|
|
939
|
+
p && i.properties && (i = i.properties[p]);
|
|
1767
940
|
}
|
|
1768
941
|
return i;
|
|
1769
942
|
}
|
|
1770
|
-
function
|
|
943
|
+
function A(e, t) {
|
|
1771
944
|
for (
|
|
1772
|
-
var r = t, i = '',
|
|
1773
|
-
|
|
1774
|
-
|
|
945
|
+
var r = t, i = '', n = e.split('-'), a = 0, o = n.length;
|
|
946
|
+
a < o;
|
|
947
|
+
a++
|
|
1775
948
|
) {
|
|
1776
|
-
var
|
|
1777
|
-
if ('0' ===
|
|
949
|
+
var p = n[a];
|
|
950
|
+
if ('0' === p && r.items)
|
|
1778
951
|
(r = r.items), (i = i ? i + '-items' : 'items');
|
|
1779
|
-
else if ('0' ===
|
|
952
|
+
else if ('0' === p && r.options)
|
|
1780
953
|
(r = r.options), (i = i ? i + '-options' : 'options');
|
|
1781
|
-
else if (
|
|
1782
|
-
var
|
|
954
|
+
else if (p) {
|
|
955
|
+
var u = '0';
|
|
1783
956
|
r.propertyOrder
|
|
1784
|
-
? (
|
|
1785
|
-
: r.properties && (
|
|
1786
|
-
(r = r.properties[
|
|
1787
|
-
(i = i ? i + '-' +
|
|
957
|
+
? (u = r.propertyOrder[p])
|
|
958
|
+
: r.properties && (u = Object.keys(r.properties)[p]),
|
|
959
|
+
(r = r.properties[u]),
|
|
960
|
+
(i = i ? i + '-' + u : u);
|
|
1788
961
|
}
|
|
1789
962
|
}
|
|
1790
963
|
return i;
|
|
1791
964
|
}
|
|
1792
|
-
function
|
|
965
|
+
function $(e, t) {
|
|
1793
966
|
for (
|
|
1794
|
-
var r = t, i = '',
|
|
1795
|
-
|
|
1796
|
-
|
|
967
|
+
var r = t, i = '', n = e.split('-'), a = 0, o = n.length;
|
|
968
|
+
a < o;
|
|
969
|
+
a++
|
|
1797
970
|
) {
|
|
1798
|
-
var
|
|
1799
|
-
if (
|
|
1800
|
-
var
|
|
971
|
+
var p = n[a];
|
|
972
|
+
if (p) {
|
|
973
|
+
var u = -1;
|
|
1801
974
|
r.propertyOrder
|
|
1802
|
-
? ((
|
|
975
|
+
? ((u = r.propertyOrder.indexOf(p)), (r = r.properties[p]))
|
|
1803
976
|
: r.properties
|
|
1804
|
-
? ((
|
|
1805
|
-
(r = r.properties[
|
|
977
|
+
? ((u = Object.keys(r.properties).indexOf(p)),
|
|
978
|
+
(r = r.properties[p]))
|
|
1806
979
|
: r.items
|
|
1807
|
-
? ((
|
|
1808
|
-
: r.options && ((
|
|
1809
|
-
(i = i ? i + '-' +
|
|
980
|
+
? ((u = 0), (r = r.items))
|
|
981
|
+
: r.options && ((u = 0), (r = r.options)),
|
|
982
|
+
(i = i ? i + '-' + u : u.toString());
|
|
1810
983
|
}
|
|
1811
984
|
}
|
|
1812
985
|
return i;
|
|
@@ -1815,20 +988,20 @@
|
|
|
1815
988
|
var t;
|
|
1816
989
|
return (
|
|
1817
990
|
(t =
|
|
1818
|
-
e &&
|
|
991
|
+
e && x(e)
|
|
1819
992
|
? (function (e) {
|
|
1820
993
|
var t;
|
|
1821
|
-
if (
|
|
994
|
+
if (x(e)) {
|
|
1822
995
|
var r = Object.keys(e);
|
|
1823
996
|
e.data && e.filter && 2 === r.length
|
|
1824
|
-
? (t =
|
|
997
|
+
? (t = j(e.data) || x(e.data) ? D(d.local) : D(d.remote))
|
|
1825
998
|
: e.trigger && e.eventData && 2 === r.length
|
|
1826
|
-
? (t =
|
|
999
|
+
? (t = D(s.emit))
|
|
1827
1000
|
: e.register && e.actionFunc && 2 === r.length
|
|
1828
|
-
? (t =
|
|
1829
|
-
: e.quantity &&
|
|
1830
|
-
? (t =
|
|
1831
|
-
: ((t =
|
|
1001
|
+
? (t = D(s.on))
|
|
1002
|
+
: e.quantity && q(e.quantity) && 2 === r.length
|
|
1003
|
+
? (t = D(c.quantity))
|
|
1004
|
+
: ((t = D(c['empty-object'])),
|
|
1832
1005
|
Object.keys(e).map(function (r) {
|
|
1833
1006
|
var i = e[r];
|
|
1834
1007
|
t.properties[r] = B(i);
|
|
@@ -1836,78 +1009,78 @@
|
|
|
1836
1009
|
}
|
|
1837
1010
|
return t;
|
|
1838
1011
|
})(e)
|
|
1839
|
-
: e &&
|
|
1012
|
+
: e && j(e)
|
|
1840
1013
|
? (function (e) {
|
|
1841
1014
|
var t;
|
|
1842
|
-
if (e &&
|
|
1843
|
-
if (
|
|
1844
|
-
(t =
|
|
1015
|
+
if (e && j(e))
|
|
1016
|
+
if (O(e)) {
|
|
1017
|
+
(t = D(c.select)).items.enum = e;
|
|
1845
1018
|
var r = t.items.enumextra.length,
|
|
1846
1019
|
i = e.length;
|
|
1847
1020
|
if (i > r)
|
|
1848
|
-
for (var
|
|
1849
|
-
t.items.enumextra.push('选项' + e(
|
|
1021
|
+
for (var n = r, a = i; n < a; n++)
|
|
1022
|
+
t.items.enumextra.push('选项' + e(n));
|
|
1850
1023
|
} else {
|
|
1851
|
-
t =
|
|
1852
|
-
var
|
|
1853
|
-
t.items.properties =
|
|
1024
|
+
t = D(c['empty-array']);
|
|
1025
|
+
var o = B(e[0]);
|
|
1026
|
+
t.items.properties = o.properties;
|
|
1854
1027
|
}
|
|
1855
1028
|
return t;
|
|
1856
1029
|
})(e)
|
|
1857
1030
|
: (function (e) {
|
|
1858
1031
|
var t = '';
|
|
1859
|
-
if (
|
|
1860
|
-
else if (
|
|
1861
|
-
else if (
|
|
1862
|
-
else if (
|
|
1863
|
-
else if (
|
|
1864
|
-
else if (
|
|
1865
|
-
else if (
|
|
1032
|
+
if (v(e)) t = D(c.boolean);
|
|
1033
|
+
else if (m(e)) t = D(c.number);
|
|
1034
|
+
else if (f(e)) t = D(c.url);
|
|
1035
|
+
else if (b(e)) t = D(c.date);
|
|
1036
|
+
else if (g(e)) t = D(c['date-time']);
|
|
1037
|
+
else if (h(e)) t = D(c.time);
|
|
1038
|
+
else if (S(e)) t = D(c.color);
|
|
1866
1039
|
else
|
|
1867
1040
|
try {
|
|
1868
|
-
t =
|
|
1041
|
+
t = m(JSON.parse(e)) ? D(c.input) : D(c.json);
|
|
1869
1042
|
} catch (r) {
|
|
1870
|
-
t = e && e.length > 30 ?
|
|
1043
|
+
t = e && e.length > 30 ? D(c.textarea) : D(c.input);
|
|
1871
1044
|
}
|
|
1872
1045
|
return t;
|
|
1873
1046
|
})(e)),
|
|
1874
1047
|
t
|
|
1875
1048
|
);
|
|
1876
1049
|
}
|
|
1877
|
-
function
|
|
1050
|
+
function L(e, t) {
|
|
1878
1051
|
var r = t || {};
|
|
1879
1052
|
return (
|
|
1880
|
-
|
|
1053
|
+
x(e) &&
|
|
1881
1054
|
'object' === getExpectType(e.type) &&
|
|
1882
1055
|
e.properties &&
|
|
1883
1056
|
(e.propertyOrder ? e.propertyOrder : Object.keys(e.properties)).map(
|
|
1884
1057
|
function (t) {
|
|
1885
1058
|
var i = e.properties[t];
|
|
1886
|
-
r =
|
|
1059
|
+
r = z(i, r);
|
|
1887
1060
|
},
|
|
1888
1061
|
),
|
|
1889
1062
|
r
|
|
1890
1063
|
);
|
|
1891
1064
|
}
|
|
1892
|
-
function
|
|
1065
|
+
function z(e, t) {
|
|
1893
1066
|
var r = !t,
|
|
1894
1067
|
i = t || {};
|
|
1895
1068
|
if (e && '{}' !== JSON.stringify(e)) {
|
|
1896
|
-
var
|
|
1897
|
-
'object' ===
|
|
1069
|
+
var n = e.type;
|
|
1070
|
+
'object' === n || 'func' === n || 'style' === n || 'data' === n
|
|
1898
1071
|
? (!r && i.object ? (i.object += 1) : r || (i.object = 1),
|
|
1899
|
-
(i =
|
|
1900
|
-
: 'array' ===
|
|
1072
|
+
(i = L(e, i)))
|
|
1073
|
+
: 'array' === n
|
|
1901
1074
|
? (!r && i.array ? (i.array += 1) : r || (i.array = 1),
|
|
1902
|
-
(i =
|
|
1903
|
-
: !r && i[
|
|
1904
|
-
? (i[
|
|
1905
|
-
: r || (i[
|
|
1075
|
+
(i = L((e = e.items), i)))
|
|
1076
|
+
: !r && i[n]
|
|
1077
|
+
? (i[n] += 1)
|
|
1078
|
+
: r || (i[n] = 1);
|
|
1906
1079
|
}
|
|
1907
1080
|
return i;
|
|
1908
1081
|
}
|
|
1909
|
-
function
|
|
1910
|
-
var t =
|
|
1082
|
+
function I(e) {
|
|
1083
|
+
var t = D(e);
|
|
1911
1084
|
if (
|
|
1912
1085
|
(!t.title && t.description && (t.title = t.description),
|
|
1913
1086
|
t.type || (t.type = t.format),
|
|
@@ -1916,7 +1089,7 @@
|
|
|
1916
1089
|
'datasource' !== t.type &&
|
|
1917
1090
|
'event' !== t.type &&
|
|
1918
1091
|
'object' !== t.type) ||
|
|
1919
|
-
!
|
|
1092
|
+
!w(t.default) ||
|
|
1920
1093
|
delete t.default,
|
|
1921
1094
|
'radio' === t.type &&
|
|
1922
1095
|
((t.type = 'string'),
|
|
@@ -1924,62 +1097,62 @@
|
|
|
1924
1097
|
t.enumextra &&
|
|
1925
1098
|
((t.items = {
|
|
1926
1099
|
type: 'string',
|
|
1927
|
-
enum:
|
|
1928
|
-
enumextra:
|
|
1100
|
+
enum: D(t.enum),
|
|
1101
|
+
enumextra: D(t.enumextra),
|
|
1929
1102
|
}),
|
|
1930
1103
|
delete t.enum,
|
|
1931
1104
|
delete t.enumextra)),
|
|
1932
1105
|
'quantity' === t.type)
|
|
1933
1106
|
) {
|
|
1934
1107
|
var r = t.properties,
|
|
1935
|
-
i =
|
|
1936
|
-
if (r.quantity &&
|
|
1937
|
-
var
|
|
1938
|
-
i.properties.quantity.default = 'percent' ===
|
|
1108
|
+
i = D(c.quantity);
|
|
1109
|
+
if (r.quantity && x(r.quantity) && r.quantity.default) {
|
|
1110
|
+
var n = r.quantity.default;
|
|
1111
|
+
i.properties.quantity.default = 'percent' === n ? '%' : n;
|
|
1939
1112
|
}
|
|
1940
1113
|
t = i;
|
|
1941
1114
|
}
|
|
1942
1115
|
if ('datasource' === t.type) {
|
|
1943
|
-
var
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
'local' ===
|
|
1948
|
-
? ((t =
|
|
1949
|
-
: ((t =
|
|
1950
|
-
?
|
|
1116
|
+
var a = t.properties,
|
|
1117
|
+
o = a.type && a.type.default,
|
|
1118
|
+
p = a.data && a.data.default,
|
|
1119
|
+
u = a.filter && a.filter.default;
|
|
1120
|
+
'local' === o
|
|
1121
|
+
? ((t = D(d.local)).properties.data.default = p ? D(p) : '{}')
|
|
1122
|
+
: ((t = D(d.remote)).properties.data.default = p
|
|
1123
|
+
? D(p)
|
|
1951
1124
|
: 'http://xxx'),
|
|
1952
|
-
(t.properties.filter.default =
|
|
1125
|
+
(t.properties.filter.default = u ? D(u) : '() => {}');
|
|
1953
1126
|
}
|
|
1954
1127
|
if ('event' === t.type) {
|
|
1955
|
-
var
|
|
1956
|
-
|
|
1957
|
-
if ('in' ===
|
|
1958
|
-
var
|
|
1959
|
-
(t =
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
(t.properties.actionFunc.default =
|
|
1128
|
+
var l = t.properties,
|
|
1129
|
+
f = l.type && l.type.default;
|
|
1130
|
+
if ('in' === f || 'on' === f) {
|
|
1131
|
+
var y = (l.filter && l.filter.default) || '() => {}';
|
|
1132
|
+
(t = D(s.on)),
|
|
1133
|
+
l.actionFunc &&
|
|
1134
|
+
x(l.actionFunc) &&
|
|
1135
|
+
(t.properties.actionFunc.default = l.actionFunc.default || D(y));
|
|
1963
1136
|
} else {
|
|
1964
|
-
var
|
|
1965
|
-
(t =
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
(t.properties.eventData.default =
|
|
1137
|
+
var m = (l.filter && l.filter.default) || '{}';
|
|
1138
|
+
(t = D(s.emit)),
|
|
1139
|
+
l.eventData &&
|
|
1140
|
+
x(l.eventData) &&
|
|
1141
|
+
(t.properties.eventData.default = l.eventData.default || D(m));
|
|
1969
1142
|
}
|
|
1970
1143
|
}
|
|
1971
1144
|
return (
|
|
1972
1145
|
t.properties &&
|
|
1973
1146
|
(t.propertyOrder || (t.propertyOrder = Object.keys(t.properties)),
|
|
1974
1147
|
t.propertyOrder.map(function (e) {
|
|
1975
|
-
t.properties[e] =
|
|
1148
|
+
t.properties[e] = K(t.properties[e]);
|
|
1976
1149
|
})),
|
|
1977
|
-
t.items && (t.items =
|
|
1150
|
+
t.items && (t.items = K(t.items)),
|
|
1978
1151
|
t
|
|
1979
1152
|
);
|
|
1980
1153
|
}
|
|
1981
|
-
function
|
|
1982
|
-
var t =
|
|
1154
|
+
function K(e) {
|
|
1155
|
+
var t = D(e);
|
|
1983
1156
|
return (
|
|
1984
1157
|
t.required || delete t.required,
|
|
1985
1158
|
t.type && t.type && (t.type = t.type),
|
|
@@ -1988,7 +1161,7 @@
|
|
|
1988
1161
|
'datasource' !== t.type &&
|
|
1989
1162
|
'event' !== t.type &&
|
|
1990
1163
|
'object' !== t.type) ||
|
|
1991
|
-
!
|
|
1164
|
+
!w(t.default) ||
|
|
1992
1165
|
delete t.default,
|
|
1993
1166
|
('radio' !== t.type &&
|
|
1994
1167
|
'checkboxes' !== t.type &&
|
|
@@ -2004,16 +1177,16 @@
|
|
|
2004
1177
|
t.properties &&
|
|
2005
1178
|
(t.propertyOrder || (t.propertyOrder = Object.keys(t.properties)),
|
|
2006
1179
|
t.propertyOrder.map(function (e) {
|
|
2007
|
-
t.properties[e] =
|
|
1180
|
+
t.properties[e] = K(t.properties[e]);
|
|
2008
1181
|
})),
|
|
2009
|
-
'array' === t.type && t.items && (t.items =
|
|
1182
|
+
'array' === t.type && t.items && (t.items = K(t.items)),
|
|
2010
1183
|
t
|
|
2011
1184
|
);
|
|
2012
1185
|
}
|
|
2013
1186
|
require('mobx');
|
|
2014
|
-
var
|
|
2015
|
-
|
|
2016
|
-
(((
|
|
1187
|
+
var _,
|
|
1188
|
+
M =
|
|
1189
|
+
(((_ = {
|
|
2017
1190
|
array: 'array',
|
|
2018
1191
|
boolean: 'boolean',
|
|
2019
1192
|
'box-style': 'object',
|
|
@@ -2037,25 +1210,20 @@
|
|
|
2037
1210
|
radio: 'string',
|
|
2038
1211
|
select: 'array',
|
|
2039
1212
|
}).select = 'string'),
|
|
2040
|
-
(
|
|
2041
|
-
(
|
|
2042
|
-
(
|
|
2043
|
-
(
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
(J['sohu-source'] = 'object'),
|
|
2048
|
-
(J['sohu-event'] = 'object'),
|
|
2049
|
-
J);
|
|
2050
|
-
function z(e) {
|
|
2051
|
-
return K[e] || e;
|
|
1213
|
+
(_.textarea = 'string'),
|
|
1214
|
+
(_['text-editor'] = 'string'),
|
|
1215
|
+
(_.time = 'string'),
|
|
1216
|
+
(_.url = 'string'),
|
|
1217
|
+
_);
|
|
1218
|
+
function H(e) {
|
|
1219
|
+
return M[e] || e;
|
|
2052
1220
|
}
|
|
2053
|
-
function
|
|
2054
|
-
|
|
2055
|
-
? console.warn('当前已经存在' + e + '(' +
|
|
2056
|
-
: (
|
|
1221
|
+
function V(e, t) {
|
|
1222
|
+
M[e]
|
|
1223
|
+
? console.warn('当前已经存在' + e + '(' + M[e] + '),暂时不支持覆盖。')
|
|
1224
|
+
: (M[e] = t);
|
|
2057
1225
|
}
|
|
2058
|
-
function
|
|
1226
|
+
function W(e) {
|
|
2059
1227
|
var t = !0;
|
|
2060
1228
|
if (!e) return t;
|
|
2061
1229
|
var r = e.type;
|
|
@@ -2075,19 +1243,19 @@
|
|
|
2075
1243
|
t
|
|
2076
1244
|
);
|
|
2077
1245
|
}
|
|
2078
|
-
function
|
|
1246
|
+
function Z(e) {
|
|
2079
1247
|
var t = !1,
|
|
2080
1248
|
r = e.lastUpdateTime,
|
|
2081
1249
|
i = new Date('2024-10-05T00:01:00.691Z').getTime();
|
|
2082
1250
|
return r && new Date(r).getTime() >= i && (t = !0), t;
|
|
2083
1251
|
}
|
|
2084
|
-
function
|
|
1252
|
+
function Q(e) {
|
|
2085
1253
|
var t = !1,
|
|
2086
|
-
r =
|
|
1254
|
+
r = H(e.type),
|
|
2087
1255
|
i = void 0 === e.isContainer || e.isContainer;
|
|
2088
1256
|
return 'object' === r && i && (t = !0), t;
|
|
2089
1257
|
}
|
|
2090
|
-
function
|
|
1258
|
+
function G(e) {
|
|
2091
1259
|
var t = !0;
|
|
2092
1260
|
return (
|
|
2093
1261
|
'object' === e.type && e.propertyOrder && e.properties
|
|
@@ -2100,23 +1268,23 @@
|
|
|
2100
1268
|
t
|
|
2101
1269
|
);
|
|
2102
1270
|
}
|
|
2103
|
-
function
|
|
1271
|
+
function X(e, t) {
|
|
2104
1272
|
var r = e.split('-'),
|
|
2105
1273
|
i = t.split('-');
|
|
2106
1274
|
return r.pop(), i.pop(), r.join('-') === i.join('-');
|
|
2107
1275
|
}
|
|
2108
|
-
function
|
|
1276
|
+
function Y(e, t) {
|
|
2109
1277
|
for (
|
|
2110
1278
|
var r = e.split('-'),
|
|
2111
1279
|
i = t.split('-'),
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
1280
|
+
n = 'before',
|
|
1281
|
+
a = 0,
|
|
1282
|
+
o = (r.length > i.length ? i : r).length;
|
|
1283
|
+
a < o;
|
|
1284
|
+
a += 1
|
|
2117
1285
|
)
|
|
2118
|
-
Number(r[
|
|
2119
|
-
return
|
|
1286
|
+
Number(r[a]) > Number(i[a]) && (n = 'after');
|
|
1287
|
+
return n;
|
|
2120
1288
|
}
|
|
2121
1289
|
function ee(e) {
|
|
2122
1290
|
var t = e.split('-');
|
|
@@ -2138,12 +1306,12 @@
|
|
|
2138
1306
|
r = t.pop();
|
|
2139
1307
|
return t.push(Number(r) - 1), t.join('-');
|
|
2140
1308
|
}
|
|
2141
|
-
function
|
|
1309
|
+
function ne(e) {
|
|
2142
1310
|
var t = e.split('-'),
|
|
2143
1311
|
r = t.pop();
|
|
2144
1312
|
return t.push(Number(r) + 1), t.join('-');
|
|
2145
1313
|
}
|
|
2146
|
-
function
|
|
1314
|
+
function ae(e, t) {
|
|
2147
1315
|
var r = '',
|
|
2148
1316
|
i = !1;
|
|
2149
1317
|
if (!1 !== e.defaultActiveFirstOption && e.defaultActiveFirstOption)
|
|
@@ -2153,177 +1321,177 @@
|
|
|
2153
1321
|
r
|
|
2154
1322
|
);
|
|
2155
1323
|
}
|
|
2156
|
-
function
|
|
1324
|
+
function oe(e, t) {
|
|
2157
1325
|
var r,
|
|
2158
1326
|
i,
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
(typeof
|
|
2164
|
-
((r =
|
|
2165
|
-
(
|
|
2166
|
-
var
|
|
1327
|
+
n = void 0,
|
|
1328
|
+
a = t;
|
|
1329
|
+
w(a) &&
|
|
1330
|
+
w(e.default) &&
|
|
1331
|
+
(typeof a != typeof e.default ||
|
|
1332
|
+
((r = a), (i = e.default), x(r) + '-' + j(r) != x(i) + '-' + j(i))) &&
|
|
1333
|
+
(a = void 0);
|
|
1334
|
+
var o = w(a) ? a : e.default;
|
|
2167
1335
|
switch (e.type) {
|
|
2168
1336
|
case 'select':
|
|
2169
1337
|
case 'radio':
|
|
2170
|
-
|
|
1338
|
+
n = null != o ? o : ae(e);
|
|
2171
1339
|
break;
|
|
2172
1340
|
case 'checkboxes':
|
|
2173
|
-
|
|
1341
|
+
n = null != o ? o : ae(e, !0);
|
|
2174
1342
|
break;
|
|
2175
1343
|
case 'color':
|
|
2176
|
-
('#fff' !==
|
|
2177
|
-
(
|
|
1344
|
+
('#fff' !== o && '#FFF' !== o) || (o = '#ffffff'),
|
|
1345
|
+
(n = w(o) ? o : '#ffffff');
|
|
2178
1346
|
break;
|
|
2179
1347
|
case 'boolean':
|
|
2180
|
-
|
|
1348
|
+
n = !!w(o) && o;
|
|
2181
1349
|
break;
|
|
2182
1350
|
case 'number':
|
|
2183
|
-
|
|
1351
|
+
n = w(o) ? o : void 0;
|
|
2184
1352
|
break;
|
|
2185
1353
|
case 'json':
|
|
2186
|
-
var
|
|
2187
|
-
if (
|
|
2188
|
-
else if (
|
|
1354
|
+
var p = '';
|
|
1355
|
+
if (x(o) || j(o)) p = o;
|
|
1356
|
+
else if (k(o) || '' === o) p = {};
|
|
2189
1357
|
else
|
|
2190
1358
|
try {
|
|
2191
|
-
|
|
1359
|
+
p = JSON.parse(o);
|
|
2192
1360
|
} catch (e) {
|
|
2193
|
-
|
|
1361
|
+
p = {};
|
|
2194
1362
|
}
|
|
2195
|
-
|
|
1363
|
+
n = p;
|
|
2196
1364
|
break;
|
|
2197
1365
|
default:
|
|
2198
|
-
|
|
1366
|
+
n =
|
|
2199
1367
|
'input' === e.type && '0' === e.default
|
|
2200
|
-
?
|
|
2201
|
-
:
|
|
2202
|
-
?
|
|
1368
|
+
? o || e.default
|
|
1369
|
+
: w(o)
|
|
1370
|
+
? o
|
|
2203
1371
|
: void 0;
|
|
2204
1372
|
}
|
|
2205
|
-
return
|
|
1373
|
+
return n;
|
|
2206
1374
|
}
|
|
2207
|
-
function
|
|
1375
|
+
function pe(e, t) {
|
|
2208
1376
|
var r = {},
|
|
2209
1377
|
i = e.type;
|
|
2210
|
-
if (
|
|
2211
|
-
var
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
((
|
|
2215
|
-
(
|
|
2216
|
-
var
|
|
1378
|
+
if (x(e) && 'object' === H(e.type)) {
|
|
1379
|
+
var n = e,
|
|
1380
|
+
a = t;
|
|
1381
|
+
w(a) &&
|
|
1382
|
+
((w(n.default) && typeof a != typeof e.default) || !x(a)) &&
|
|
1383
|
+
(a = void 0);
|
|
1384
|
+
var o = w(a) ? a : n.default;
|
|
2217
1385
|
'dynamic-data' === i
|
|
2218
|
-
? ((r =
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
'{}' !== JSON.stringify(
|
|
2222
|
-
(r = Object.assign(r,
|
|
1386
|
+
? ((r = D(l)),
|
|
1387
|
+
o &&
|
|
1388
|
+
x(o) &&
|
|
1389
|
+
'{}' !== JSON.stringify(o) &&
|
|
1390
|
+
(r = Object.assign(r, o)))
|
|
2223
1391
|
: 'datasource' === i
|
|
2224
|
-
?
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
'local' ===
|
|
1392
|
+
? n.properties &&
|
|
1393
|
+
n.properties.type &&
|
|
1394
|
+
n.properties.type.default &&
|
|
1395
|
+
'local' === n.properties.type.default
|
|
2228
1396
|
? ((r = { data: '{}', filter: '() => {}' }),
|
|
2229
|
-
|
|
2230
|
-
|
|
1397
|
+
o && o.data && (r.data = o.data),
|
|
1398
|
+
o && o.filter && (r.filter = o.filter),
|
|
2231
1399
|
'http://xxx' === r.data && (r.data = '{}'))
|
|
2232
1400
|
: ((r = { data: 'http://xxx', filter: '() => {}' }),
|
|
2233
|
-
|
|
2234
|
-
|
|
1401
|
+
o && o.data && (r.data = o.data),
|
|
1402
|
+
o && o.filter && (r.filter = o.filter),
|
|
2235
1403
|
'{}' === r.data && (r.data = 'http://xxx'))
|
|
2236
1404
|
: 'event' === i
|
|
2237
|
-
?
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
'emit' ===
|
|
2241
|
-
?
|
|
1405
|
+
? n.properties &&
|
|
1406
|
+
n.properties.type &&
|
|
1407
|
+
n.properties.type.default &&
|
|
1408
|
+
'emit' === n.properties.type.default
|
|
1409
|
+
? o && 'out' === o.type
|
|
2242
1410
|
? (r = {
|
|
2243
|
-
trigger: (
|
|
1411
|
+
trigger: (o && o.filter) || 'eventName',
|
|
2244
1412
|
eventData: '{}',
|
|
2245
1413
|
})
|
|
2246
1414
|
: ((r = { trigger: 'eventName', eventData: '{}' }),
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
:
|
|
1415
|
+
o && o.trigger && (r.trigger = o.trigger),
|
|
1416
|
+
o && o.eventData && (r.eventData = o.eventData))
|
|
1417
|
+
: o && 'in' === o.type
|
|
2250
1418
|
? (r = {
|
|
2251
1419
|
register: 'eventName',
|
|
2252
|
-
actionFunc: (
|
|
1420
|
+
actionFunc: (o && o.filter) || '() => {}',
|
|
2253
1421
|
})
|
|
2254
1422
|
: ((r = { register: 'eventName', actionFunc: '() => {}' }),
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
: !1 === e.isContainer &&
|
|
2258
|
-
? (r = Object.assign(r,
|
|
2259
|
-
: void 0 ===
|
|
2260
|
-
? (r =
|
|
1423
|
+
o && o.register && (r.register = o.register),
|
|
1424
|
+
o && o.actionFunc && (r.actionFunc = o.actionFunc))
|
|
1425
|
+
: !1 === e.isContainer && o && x(o) && '{}' !== JSON.stringify(o)
|
|
1426
|
+
? (r = Object.assign(r, o))
|
|
1427
|
+
: void 0 === a && n.default && x(n.default)
|
|
1428
|
+
? (r = n.default)
|
|
2261
1429
|
: e.properties &&
|
|
2262
1430
|
(e.propertyOrder
|
|
2263
1431
|
? e.propertyOrder
|
|
2264
1432
|
: Object.keys(e.properties)
|
|
2265
1433
|
).map(function (i) {
|
|
2266
|
-
var
|
|
2267
|
-
|
|
2268
|
-
switch (
|
|
1434
|
+
var n = e.properties[i],
|
|
1435
|
+
a = t && t[i];
|
|
1436
|
+
switch (H(n.type)) {
|
|
2269
1437
|
case 'array':
|
|
2270
|
-
r[i] =
|
|
1438
|
+
r[i] = ue(n, a);
|
|
2271
1439
|
break;
|
|
2272
1440
|
case 'object':
|
|
2273
|
-
r[i] =
|
|
1441
|
+
r[i] = pe(n, a);
|
|
2274
1442
|
break;
|
|
2275
1443
|
default:
|
|
2276
|
-
r[i] =
|
|
1444
|
+
r[i] = oe(n, a);
|
|
2277
1445
|
}
|
|
2278
1446
|
});
|
|
2279
1447
|
}
|
|
2280
1448
|
return r;
|
|
2281
1449
|
}
|
|
2282
|
-
function
|
|
1450
|
+
function ue(e, t) {
|
|
2283
1451
|
var r = [];
|
|
2284
|
-
if (e && 'array' ===
|
|
1452
|
+
if (e && 'array' === H(e.type)) {
|
|
2285
1453
|
var i = t;
|
|
2286
|
-
|
|
2287
|
-
((
|
|
1454
|
+
w(i) &&
|
|
1455
|
+
((w(e.default) && typeof i != typeof e.default) || !j(i)) &&
|
|
2288
1456
|
(i = void 0);
|
|
2289
|
-
var
|
|
2290
|
-
if ('array' ===
|
|
2291
|
-
if (
|
|
2292
|
-
|
|
2293
|
-
r.push(
|
|
1457
|
+
var n = w(i) ? i : e.default;
|
|
1458
|
+
if ('array' === H(e.type))
|
|
1459
|
+
if (j(n))
|
|
1460
|
+
n.map(function (t) {
|
|
1461
|
+
r.push(pe(e.items, t));
|
|
2294
1462
|
});
|
|
2295
|
-
else if (
|
|
1463
|
+
else if (n) r = n;
|
|
2296
1464
|
else {
|
|
2297
|
-
var
|
|
2298
|
-
r.push(
|
|
1465
|
+
var a = pe(e.items, n);
|
|
1466
|
+
r.push(a);
|
|
2299
1467
|
}
|
|
2300
|
-
else r =
|
|
1468
|
+
else r = w(n) ? n : [];
|
|
2301
1469
|
}
|
|
2302
1470
|
return r;
|
|
2303
1471
|
}
|
|
2304
|
-
function
|
|
2305
|
-
return 'object' ===
|
|
2306
|
-
?
|
|
2307
|
-
: 'array' ===
|
|
2308
|
-
?
|
|
2309
|
-
:
|
|
1472
|
+
function le(e, t) {
|
|
1473
|
+
return 'object' === H(e.type)
|
|
1474
|
+
? pe(e, t)
|
|
1475
|
+
: 'array' === H(e.type)
|
|
1476
|
+
? ue(e, t)
|
|
1477
|
+
: oe(e, t);
|
|
2310
1478
|
}
|
|
2311
|
-
var
|
|
2312
|
-
function
|
|
1479
|
+
var ce = c;
|
|
1480
|
+
function se(e, t) {
|
|
2313
1481
|
var r = t || [];
|
|
2314
1482
|
if (e && '{}' !== JSON.stringify(e))
|
|
2315
|
-
if (
|
|
1483
|
+
if (x(e))
|
|
2316
1484
|
if (
|
|
2317
1485
|
e.type &&
|
|
2318
1486
|
'remote' === e.type &&
|
|
2319
1487
|
e.config &&
|
|
2320
|
-
|
|
1488
|
+
x(e.config) &&
|
|
2321
1489
|
e.config.dataName &&
|
|
2322
|
-
|
|
2323
|
-
|
|
1490
|
+
w(e.localFilter) &&
|
|
1491
|
+
w(e.data)
|
|
2324
1492
|
) {
|
|
2325
1493
|
var i = e.config.body;
|
|
2326
|
-
if (i && !
|
|
1494
|
+
if (i && !x(i))
|
|
2327
1495
|
try {
|
|
2328
1496
|
i = JSON.parse(i);
|
|
2329
1497
|
} catch (e) {
|
|
@@ -2332,12 +1500,12 @@
|
|
|
2332
1500
|
r.push({ id: e.config.id, dataName: e.config.dataName, body: i });
|
|
2333
1501
|
} else
|
|
2334
1502
|
Object.keys(e).map(function (t) {
|
|
2335
|
-
|
|
1503
|
+
se(e[t], r);
|
|
2336
1504
|
});
|
|
2337
1505
|
else
|
|
2338
|
-
|
|
1506
|
+
j(e) &&
|
|
2339
1507
|
e.map(function (e) {
|
|
2340
|
-
|
|
1508
|
+
se(e, r);
|
|
2341
1509
|
});
|
|
2342
1510
|
return r;
|
|
2343
1511
|
}
|
|
@@ -2350,56 +1518,56 @@
|
|
|
2350
1518
|
r
|
|
2351
1519
|
);
|
|
2352
1520
|
}
|
|
2353
|
-
function
|
|
1521
|
+
function fe(e, t) {
|
|
2354
1522
|
var r = [];
|
|
2355
1523
|
return (
|
|
2356
|
-
|
|
1524
|
+
x(e)
|
|
2357
1525
|
? Object.keys(e).map(function (i) {
|
|
2358
|
-
var
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
? r.push({ title: i, value:
|
|
2362
|
-
: r.push({ title: i, value:
|
|
1526
|
+
var n = e[i],
|
|
1527
|
+
a = t ? t + '-' + i : i;
|
|
1528
|
+
x(n) || j(n)
|
|
1529
|
+
? r.push({ title: i, value: a, key: a, children: fe(n, a) })
|
|
1530
|
+
: r.push({ title: i, value: a, key: a });
|
|
2363
1531
|
})
|
|
2364
|
-
:
|
|
1532
|
+
: j(e) &&
|
|
2365
1533
|
e.map(function (e, i) {
|
|
2366
|
-
var
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
? r.push({ title:
|
|
2370
|
-
: r.push({ title:
|
|
1534
|
+
var n = i.toString(),
|
|
1535
|
+
a = t ? t + '-' + i : n;
|
|
1536
|
+
x(e) || j(e)
|
|
1537
|
+
? r.push({ title: n, value: a, key: a, children: fe(e, a) })
|
|
1538
|
+
: r.push({ title: n, value: a, key: a });
|
|
2371
1539
|
}),
|
|
2372
1540
|
r
|
|
2373
1541
|
);
|
|
2374
1542
|
}
|
|
2375
|
-
function
|
|
1543
|
+
function ye(e, t) {
|
|
2376
1544
|
var r = '';
|
|
2377
1545
|
return (
|
|
2378
|
-
'object' ===
|
|
1546
|
+
'object' === H(e.type) &&
|
|
2379
1547
|
e.properties &&
|
|
2380
1548
|
(e.propertyOrder ? e.propertyOrder : Object.keys(e.properties)).map(
|
|
2381
1549
|
function (i) {
|
|
2382
|
-
var
|
|
2383
|
-
|
|
2384
|
-
('array' ===
|
|
2385
|
-
(
|
|
2386
|
-
|
|
2387
|
-
(r.indexOf('-') > 0 ? (r += '-' +
|
|
1550
|
+
var n = e.properties[i],
|
|
1551
|
+
a = t[i];
|
|
1552
|
+
('array' === H(n.type) && 'object' === H(n.type)) ||
|
|
1553
|
+
(a &&
|
|
1554
|
+
n.isConditionProp &&
|
|
1555
|
+
(r.indexOf('-') > 0 ? (r += '-' + a) : (r = a)));
|
|
2388
1556
|
},
|
|
2389
1557
|
),
|
|
2390
1558
|
r
|
|
2391
1559
|
);
|
|
2392
1560
|
}
|
|
2393
|
-
function
|
|
1561
|
+
function me(e) {
|
|
2394
1562
|
var t = e.split('-');
|
|
2395
1563
|
return t.pop(), t.join('-');
|
|
2396
1564
|
}
|
|
2397
|
-
function
|
|
1565
|
+
function ve(e) {
|
|
2398
1566
|
var t = e.split('-'),
|
|
2399
1567
|
r = t.pop();
|
|
2400
1568
|
return [t.join('-'), r];
|
|
2401
1569
|
}
|
|
2402
|
-
var
|
|
1570
|
+
var be = [
|
|
2403
1571
|
'key',
|
|
2404
1572
|
'enum',
|
|
2405
1573
|
'enumextra',
|