@next-bricks/advanced 0.49.6 → 0.49.8
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/bricks.json +19 -19
- package/dist/chunks/4197.5df74c0b.js +2 -0
- package/dist/chunks/4197.5df74c0b.js.map +1 -0
- package/dist/chunks/{4306.2eb5235d.js → 4306.480cc1d2.js} +2 -2
- package/dist/chunks/4306.480cc1d2.js.map +1 -0
- package/dist/chunks/{4765.da59ee88.js → 4765.971bdb2d.js} +2 -2
- package/dist/chunks/4765.971bdb2d.js.map +1 -0
- package/dist/chunks/{4837.f4166cc0.js → 4837.72090bc6.js} +2 -2
- package/dist/chunks/{7218.84f7c175.js.map → 4837.72090bc6.js.map} +1 -1
- package/dist/chunks/{7146.c51ea5fd.js → 7146.39456b34.js} +2 -2
- package/dist/chunks/7146.39456b34.js.map +1 -0
- package/dist/chunks/{7218.84f7c175.js → 7218.e36a3bcf.js} +2 -2
- package/dist/chunks/{4837.f4166cc0.js.map → 7218.e36a3bcf.js.map} +1 -1
- package/dist/chunks/871.85d96717.js +2 -0
- package/dist/chunks/871.85d96717.js.map +1 -0
- package/dist/chunks/9118.0313a384.js +3 -0
- package/dist/chunks/{2252.b8bf2103.js.LICENSE.txt → 9118.0313a384.js.LICENSE.txt} +2 -2
- package/dist/chunks/9118.0313a384.js.map +1 -0
- package/dist/chunks/9140.fa754a84.js +3 -0
- package/dist/chunks/9140.fa754a84.js.map +1 -0
- package/dist/chunks/{capture-snapshot.9741ac3a.js → capture-snapshot.78552e7c.js} +2 -2
- package/dist/chunks/{capture-snapshot.9741ac3a.js.map → capture-snapshot.78552e7c.js.map} +1 -1
- package/dist/chunks/eo-cascader.b85beec8.js +2 -0
- package/dist/chunks/{eo-cascader.6328ebcd.js.map → eo-cascader.b85beec8.js.map} +1 -1
- package/dist/chunks/eo-next-table.0f80f89b.js +2 -0
- package/dist/chunks/{eo-next-table.f04e5262.js.map → eo-next-table.0f80f89b.js.map} +1 -1
- package/dist/chunks/eo-table.8ea71d8c.js +2 -0
- package/dist/chunks/{eo-table.da203d4f.js.map → eo-table.8ea71d8c.js.map} +1 -1
- package/dist/chunks/eo-tree-select.eae6af16.js +2 -0
- package/dist/chunks/{eo-tree-select.93d1aac6.js.map → eo-tree-select.eae6af16.js.map} +1 -1
- package/dist/chunks/{eo-tree.dbb4ba02.js → eo-tree.fd4dad63.js} +3 -3
- package/dist/chunks/{eo-tree.dbb4ba02.js.map → eo-tree.fd4dad63.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout-v2.56706ab0.js +3 -0
- package/dist/chunks/eo-workbench-layout-v2.56706ab0.js.map +1 -0
- package/dist/chunks/eo-workbench-layout.af277e81.js +2 -0
- package/dist/chunks/{eo-workbench-layout.ae274633.js.map → eo-workbench-layout.af277e81.js.map} +1 -1
- package/dist/chunks/main.250d78a0.js +2 -0
- package/dist/chunks/{main.30cc7ff2.js.map → main.250d78a0.js.map} +1 -1
- package/dist/examples.json +7 -7
- package/dist/index.bcf4bf38.js +2 -0
- package/dist/{index.e63c8cf1.js.map → index.bcf4bf38.js.map} +1 -1
- package/dist/manifest.json +231 -231
- package/dist/types.json +254 -254
- package/package.json +3 -3
- package/dist/chunks/2252.b8bf2103.js +0 -3
- package/dist/chunks/2252.b8bf2103.js.map +0 -1
- package/dist/chunks/4197.fd9e1bf8.js +0 -2
- package/dist/chunks/4197.fd9e1bf8.js.map +0 -1
- package/dist/chunks/4306.2eb5235d.js.map +0 -1
- package/dist/chunks/4765.da59ee88.js.map +0 -1
- package/dist/chunks/7146.c51ea5fd.js.map +0 -1
- package/dist/chunks/871.ef6bd372.js +0 -2
- package/dist/chunks/871.ef6bd372.js.map +0 -1
- package/dist/chunks/9140.9ee33780.js +0 -3
- package/dist/chunks/9140.9ee33780.js.map +0 -1
- package/dist/chunks/eo-cascader.6328ebcd.js +0 -2
- package/dist/chunks/eo-next-table.f04e5262.js +0 -2
- package/dist/chunks/eo-table.da203d4f.js +0 -2
- package/dist/chunks/eo-tree-select.93d1aac6.js +0 -2
- package/dist/chunks/eo-workbench-layout-v2.5b086697.js +0 -3
- package/dist/chunks/eo-workbench-layout-v2.5b086697.js.map +0 -1
- package/dist/chunks/eo-workbench-layout.ae274633.js +0 -2
- package/dist/chunks/main.30cc7ff2.js +0 -2
- package/dist/index.e63c8cf1.js +0 -2
- /package/dist/chunks/{9140.9ee33780.js.LICENSE.txt → 9140.fa754a84.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-tree.dbb4ba02.js.LICENSE.txt → eo-tree.fd4dad63.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-workbench-layout-v2.5b086697.js.LICENSE.txt → eo-workbench-layout-v2.56706ab0.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -1,238 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"eo-workbench-layout": {
|
|
3
|
-
"properties": [
|
|
4
|
-
{
|
|
5
|
-
"name": "cardTitle",
|
|
6
|
-
"annotation": {
|
|
7
|
-
"type": "keyword",
|
|
8
|
-
"value": "string"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "isEdit",
|
|
13
|
-
"annotation": {
|
|
14
|
-
"type": "keyword",
|
|
15
|
-
"value": "boolean"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "layouts",
|
|
20
|
-
"annotation": {
|
|
21
|
-
"type": "array",
|
|
22
|
-
"elementType": {
|
|
23
|
-
"type": "reference",
|
|
24
|
-
"typeName": {
|
|
25
|
-
"type": "identifier",
|
|
26
|
-
"name": "Layout"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "componentList",
|
|
33
|
-
"annotation": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"elementType": {
|
|
36
|
-
"type": "reference",
|
|
37
|
-
"typeName": {
|
|
38
|
-
"type": "identifier",
|
|
39
|
-
"name": "Item"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"events": [
|
|
46
|
-
{
|
|
47
|
-
"name": "change",
|
|
48
|
-
"detail": {
|
|
49
|
-
"annotation": {
|
|
50
|
-
"type": "array",
|
|
51
|
-
"elementType": {
|
|
52
|
-
"type": "reference",
|
|
53
|
-
"typeName": {
|
|
54
|
-
"type": "identifier",
|
|
55
|
-
"name": "Layout"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "save",
|
|
63
|
-
"detail": {
|
|
64
|
-
"annotation": {
|
|
65
|
-
"type": "array",
|
|
66
|
-
"elementType": {
|
|
67
|
-
"type": "reference",
|
|
68
|
-
"typeName": {
|
|
69
|
-
"type": "identifier",
|
|
70
|
-
"name": "Layout"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"name": "cancel",
|
|
78
|
-
"detail": {
|
|
79
|
-
"annotation": {
|
|
80
|
-
"type": "keyword",
|
|
81
|
-
"value": "void"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "action.click",
|
|
87
|
-
"detail": {
|
|
88
|
-
"annotation": {
|
|
89
|
-
"type": "typeLiteral",
|
|
90
|
-
"members": [
|
|
91
|
-
{
|
|
92
|
-
"type": "propertySignature",
|
|
93
|
-
"key": {
|
|
94
|
-
"type": "identifier",
|
|
95
|
-
"name": "action"
|
|
96
|
-
},
|
|
97
|
-
"annotation": {
|
|
98
|
-
"type": "reference",
|
|
99
|
-
"typeName": {
|
|
100
|
-
"type": "identifier",
|
|
101
|
-
"name": "SimpleAction"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"computed": false
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"type": "propertySignature",
|
|
108
|
-
"key": {
|
|
109
|
-
"type": "identifier",
|
|
110
|
-
"name": "layouts"
|
|
111
|
-
},
|
|
112
|
-
"annotation": {
|
|
113
|
-
"type": "array",
|
|
114
|
-
"elementType": {
|
|
115
|
-
"type": "reference",
|
|
116
|
-
"typeName": {
|
|
117
|
-
"type": "identifier",
|
|
118
|
-
"name": "Layout"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"computed": false
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
"methods": [
|
|
130
|
-
{
|
|
131
|
-
"name": "setLayouts",
|
|
132
|
-
"params": [
|
|
133
|
-
{
|
|
134
|
-
"name": "layouts",
|
|
135
|
-
"annotation": {
|
|
136
|
-
"type": "array",
|
|
137
|
-
"elementType": {
|
|
138
|
-
"type": "reference",
|
|
139
|
-
"typeName": {
|
|
140
|
-
"type": "identifier",
|
|
141
|
-
"name": "Layout"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"returns": {}
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
"types": [
|
|
151
|
-
{
|
|
152
|
-
"type": "interface",
|
|
153
|
-
"name": "Item",
|
|
154
|
-
"body": [
|
|
155
|
-
{
|
|
156
|
-
"type": "propertySignature",
|
|
157
|
-
"key": {
|
|
158
|
-
"type": "identifier",
|
|
159
|
-
"name": "position"
|
|
160
|
-
},
|
|
161
|
-
"annotation": {
|
|
162
|
-
"type": "reference",
|
|
163
|
-
"typeName": {
|
|
164
|
-
"type": "identifier",
|
|
165
|
-
"name": "Layout"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"computed": false
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"type": "propertySignature",
|
|
172
|
-
"key": {
|
|
173
|
-
"type": "identifier",
|
|
174
|
-
"name": "key"
|
|
175
|
-
},
|
|
176
|
-
"annotation": {
|
|
177
|
-
"type": "keyword",
|
|
178
|
-
"value": "string"
|
|
179
|
-
},
|
|
180
|
-
"computed": false
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"type": "propertySignature",
|
|
184
|
-
"key": {
|
|
185
|
-
"type": "identifier",
|
|
186
|
-
"name": "title"
|
|
187
|
-
},
|
|
188
|
-
"annotation": {
|
|
189
|
-
"type": "keyword",
|
|
190
|
-
"value": "string"
|
|
191
|
-
},
|
|
192
|
-
"computed": false
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"type": "propertySignature",
|
|
196
|
-
"key": {
|
|
197
|
-
"type": "identifier",
|
|
198
|
-
"name": "style"
|
|
199
|
-
},
|
|
200
|
-
"annotation": {
|
|
201
|
-
"type": "reference",
|
|
202
|
-
"typeName": {
|
|
203
|
-
"type": "qualifiedName",
|
|
204
|
-
"left": {
|
|
205
|
-
"type": "identifier",
|
|
206
|
-
"name": "React"
|
|
207
|
-
},
|
|
208
|
-
"right": {
|
|
209
|
-
"type": "identifier",
|
|
210
|
-
"name": "CSSProperties"
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
"optional": true,
|
|
215
|
-
"computed": false
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"type": "propertySignature",
|
|
219
|
-
"key": {
|
|
220
|
-
"type": "identifier",
|
|
221
|
-
"name": "useBrick"
|
|
222
|
-
},
|
|
223
|
-
"annotation": {
|
|
224
|
-
"type": "reference",
|
|
225
|
-
"typeName": {
|
|
226
|
-
"type": "identifier",
|
|
227
|
-
"name": "UseSingleBrickConf"
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
"computed": false
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
]
|
|
235
|
-
},
|
|
236
2
|
"eo-cascader": {
|
|
237
3
|
"properties": [
|
|
238
4
|
{
|
|
@@ -509,6 +275,240 @@
|
|
|
509
275
|
],
|
|
510
276
|
"methods": []
|
|
511
277
|
},
|
|
278
|
+
"eo-workbench-layout": {
|
|
279
|
+
"properties": [
|
|
280
|
+
{
|
|
281
|
+
"name": "cardTitle",
|
|
282
|
+
"annotation": {
|
|
283
|
+
"type": "keyword",
|
|
284
|
+
"value": "string"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "isEdit",
|
|
289
|
+
"annotation": {
|
|
290
|
+
"type": "keyword",
|
|
291
|
+
"value": "boolean"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "layouts",
|
|
296
|
+
"annotation": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"elementType": {
|
|
299
|
+
"type": "reference",
|
|
300
|
+
"typeName": {
|
|
301
|
+
"type": "identifier",
|
|
302
|
+
"name": "Layout"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "componentList",
|
|
309
|
+
"annotation": {
|
|
310
|
+
"type": "array",
|
|
311
|
+
"elementType": {
|
|
312
|
+
"type": "reference",
|
|
313
|
+
"typeName": {
|
|
314
|
+
"type": "identifier",
|
|
315
|
+
"name": "Item"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"events": [
|
|
322
|
+
{
|
|
323
|
+
"name": "change",
|
|
324
|
+
"detail": {
|
|
325
|
+
"annotation": {
|
|
326
|
+
"type": "array",
|
|
327
|
+
"elementType": {
|
|
328
|
+
"type": "reference",
|
|
329
|
+
"typeName": {
|
|
330
|
+
"type": "identifier",
|
|
331
|
+
"name": "Layout"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "save",
|
|
339
|
+
"detail": {
|
|
340
|
+
"annotation": {
|
|
341
|
+
"type": "array",
|
|
342
|
+
"elementType": {
|
|
343
|
+
"type": "reference",
|
|
344
|
+
"typeName": {
|
|
345
|
+
"type": "identifier",
|
|
346
|
+
"name": "Layout"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "cancel",
|
|
354
|
+
"detail": {
|
|
355
|
+
"annotation": {
|
|
356
|
+
"type": "keyword",
|
|
357
|
+
"value": "void"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "action.click",
|
|
363
|
+
"detail": {
|
|
364
|
+
"annotation": {
|
|
365
|
+
"type": "typeLiteral",
|
|
366
|
+
"members": [
|
|
367
|
+
{
|
|
368
|
+
"type": "propertySignature",
|
|
369
|
+
"key": {
|
|
370
|
+
"type": "identifier",
|
|
371
|
+
"name": "action"
|
|
372
|
+
},
|
|
373
|
+
"annotation": {
|
|
374
|
+
"type": "reference",
|
|
375
|
+
"typeName": {
|
|
376
|
+
"type": "identifier",
|
|
377
|
+
"name": "SimpleAction"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"computed": false
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "propertySignature",
|
|
384
|
+
"key": {
|
|
385
|
+
"type": "identifier",
|
|
386
|
+
"name": "layouts"
|
|
387
|
+
},
|
|
388
|
+
"annotation": {
|
|
389
|
+
"type": "array",
|
|
390
|
+
"elementType": {
|
|
391
|
+
"type": "reference",
|
|
392
|
+
"typeName": {
|
|
393
|
+
"type": "identifier",
|
|
394
|
+
"name": "Layout"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"computed": false
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"methods": [
|
|
406
|
+
{
|
|
407
|
+
"name": "setLayouts",
|
|
408
|
+
"params": [
|
|
409
|
+
{
|
|
410
|
+
"name": "layouts",
|
|
411
|
+
"annotation": {
|
|
412
|
+
"type": "array",
|
|
413
|
+
"elementType": {
|
|
414
|
+
"type": "reference",
|
|
415
|
+
"typeName": {
|
|
416
|
+
"type": "identifier",
|
|
417
|
+
"name": "Layout"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"returns": {}
|
|
424
|
+
}
|
|
425
|
+
],
|
|
426
|
+
"types": [
|
|
427
|
+
{
|
|
428
|
+
"type": "interface",
|
|
429
|
+
"name": "Item",
|
|
430
|
+
"body": [
|
|
431
|
+
{
|
|
432
|
+
"type": "propertySignature",
|
|
433
|
+
"key": {
|
|
434
|
+
"type": "identifier",
|
|
435
|
+
"name": "position"
|
|
436
|
+
},
|
|
437
|
+
"annotation": {
|
|
438
|
+
"type": "reference",
|
|
439
|
+
"typeName": {
|
|
440
|
+
"type": "identifier",
|
|
441
|
+
"name": "Layout"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"computed": false
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"type": "propertySignature",
|
|
448
|
+
"key": {
|
|
449
|
+
"type": "identifier",
|
|
450
|
+
"name": "key"
|
|
451
|
+
},
|
|
452
|
+
"annotation": {
|
|
453
|
+
"type": "keyword",
|
|
454
|
+
"value": "string"
|
|
455
|
+
},
|
|
456
|
+
"computed": false
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "propertySignature",
|
|
460
|
+
"key": {
|
|
461
|
+
"type": "identifier",
|
|
462
|
+
"name": "title"
|
|
463
|
+
},
|
|
464
|
+
"annotation": {
|
|
465
|
+
"type": "keyword",
|
|
466
|
+
"value": "string"
|
|
467
|
+
},
|
|
468
|
+
"computed": false
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"type": "propertySignature",
|
|
472
|
+
"key": {
|
|
473
|
+
"type": "identifier",
|
|
474
|
+
"name": "style"
|
|
475
|
+
},
|
|
476
|
+
"annotation": {
|
|
477
|
+
"type": "reference",
|
|
478
|
+
"typeName": {
|
|
479
|
+
"type": "qualifiedName",
|
|
480
|
+
"left": {
|
|
481
|
+
"type": "identifier",
|
|
482
|
+
"name": "React"
|
|
483
|
+
},
|
|
484
|
+
"right": {
|
|
485
|
+
"type": "identifier",
|
|
486
|
+
"name": "CSSProperties"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"optional": true,
|
|
491
|
+
"computed": false
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"type": "propertySignature",
|
|
495
|
+
"key": {
|
|
496
|
+
"type": "identifier",
|
|
497
|
+
"name": "useBrick"
|
|
498
|
+
},
|
|
499
|
+
"annotation": {
|
|
500
|
+
"type": "reference",
|
|
501
|
+
"typeName": {
|
|
502
|
+
"type": "identifier",
|
|
503
|
+
"name": "UseSingleBrickConf"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"computed": false
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
512
|
"eo-tree": {
|
|
513
513
|
"properties": [
|
|
514
514
|
{
|
|
@@ -1303,26 +1303,6 @@
|
|
|
1303
1303
|
],
|
|
1304
1304
|
"methods": []
|
|
1305
1305
|
},
|
|
1306
|
-
"eo-text-tooltip": {
|
|
1307
|
-
"properties": [
|
|
1308
|
-
{
|
|
1309
|
-
"name": "label",
|
|
1310
|
-
"annotation": {
|
|
1311
|
-
"type": "keyword",
|
|
1312
|
-
"value": "string"
|
|
1313
|
-
}
|
|
1314
|
-
},
|
|
1315
|
-
{
|
|
1316
|
-
"name": "lineClamp",
|
|
1317
|
-
"annotation": {
|
|
1318
|
-
"type": "keyword",
|
|
1319
|
-
"value": "number"
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
],
|
|
1323
|
-
"events": [],
|
|
1324
|
-
"methods": []
|
|
1325
|
-
},
|
|
1326
1306
|
"advanced.pdf-viewer": {
|
|
1327
1307
|
"properties": [
|
|
1328
1308
|
{
|
|
@@ -1367,6 +1347,26 @@
|
|
|
1367
1347
|
"events": [],
|
|
1368
1348
|
"methods": []
|
|
1369
1349
|
},
|
|
1350
|
+
"eo-text-tooltip": {
|
|
1351
|
+
"properties": [
|
|
1352
|
+
{
|
|
1353
|
+
"name": "label",
|
|
1354
|
+
"annotation": {
|
|
1355
|
+
"type": "keyword",
|
|
1356
|
+
"value": "string"
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"name": "lineClamp",
|
|
1361
|
+
"annotation": {
|
|
1362
|
+
"type": "keyword",
|
|
1363
|
+
"value": "number"
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
],
|
|
1367
|
+
"events": [],
|
|
1368
|
+
"methods": []
|
|
1369
|
+
},
|
|
1370
1370
|
"advanced.capture-snapshot": {
|
|
1371
1371
|
"type": "provider",
|
|
1372
1372
|
"params": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/advanced",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.8",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"postpublish": "mv package.json.bak package.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@next-core/build-next-bricks": "^1.23.
|
|
38
|
+
"@next-core/build-next-bricks": "^1.23.14",
|
|
39
39
|
"@next-core/test-next": "^2.0.0",
|
|
40
40
|
"copy-webpack-plugin": "^12.0.2"
|
|
41
41
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@next-bricks/icons": "*",
|
|
46
46
|
"@next-bricks/markdown": "*"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "30d507c1ee8feb2f59f9ba66a091a7416592808f"
|
|
49
49
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2252.b8bf2103.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[2252],{24586:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(11369);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},62252:(e,t,n)=>{n.r(t),n.d(t,{analytics:()=>u,auth:()=>vt,checkInstalledApps:()=>o,checkPermissions:()=>mt,flowApi:()=>i,menu:()=>s,messageDispatcher:()=>gt});var r={};n.r(r),n.d(r,{addPathToBlackList:()=>S,authenticate:()=>A,getAuth:()=>w,isBlockedHref:()=>P,isBlockedPath:()=>I,isBlockedUrl:()=>O,isLoggedIn:()=>b,logout:()=>y});var o={};n.r(o),n.d(o,{getCheckedApp:()=>ae,preCheckInstalledApps:()=>ie,waitForCheckingApps:()=>se});var i={};n.r(i),n.d(i,{FLOW_API_PROVIDER:()=>ue,clearCollectWidgetContract:()=>be,clearDebugContract:()=>Ie,collectContract:()=>we,collectDebugContract:()=>Se,collectWidgetContract:()=>ye,getArgsOfFlowApi:()=>ke,isFlowApiProvider:()=>Pe,registerFlowApiProvider:()=>de});var s={};n.r(s),n.d(s,{fetchMenuById:()=>Ke,getMenuById:()=>Ye});var a={};n.r(a),n.d(a,{onRequest:()=>lt,onResponse:()=>pt,onResponseError:()=>dt});var c={};n.r(c),n.d(c,{create:()=>ht});var u={};n.r(u),n.d(u,{http:()=>a,initialize:()=>ct,pageView:()=>c});var l=n(85801),p=n(86330),d=n(57372),f=function(){var e=(0,p.A)((function*(e,t){return(yield d.http.post("api/gateway/micro_app.permission.ValidatePermissions/api/micro_app/v1/permission/validate",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}(),h=n(23081),m=n(11732);const g={};let v=new Set;function A(e){var t;Object.assign(g,{org:e.org,username:e.username,userInstanceId:e.userInstanceId,loginFrom:e.loginFrom,accessRule:e.accessRule,isAdmin:e.isAdmin,csrfToken:e.csrfToken,license:e.license,accessToken:e.accessToken,userShowValue:e.userShowValue}),v=new Set(null===(t=e.license)||void 0===t?void 0:t.blackList)}function w(){return{...g}}function y(){for(const e of Object.keys(g))g[e]=void 0;k.clear(),E.length=0,M.clear()}function b(){return void 0!==g.username}function S(e){v.add(e)}function I(e){return[...v].some((t=>(0,h.matchPath)(e,{path:t})))}function O(e){const t=("string"==typeof e?(0,m.createLocation)(e):e).pathname;return"string"==typeof t&&I(t)}function P(e){const t=(0,h.getBasePath)(),n=new URL(e,`${location.origin}${t}`);return!(n.origin!==location.origin||!n.pathname.startsWith(t))&&I(n.pathname.substring(t.length-1))}const k=new Map,E=[],M=new Map;function C(e){if(b()&&!w().isAdmin)return T((0,l.scanPermissionActionsInAny)(e))}async function T(e){const t=e.filter((e=>!E.includes(e)));if(0===t.length)return;const n=[],r=[];for(const e of t){const t=k.get(e);t?n.push(t):r.push(e)}if(r.length>0){const e=(async()=>{try{const e=await f({actions:r},{noAbortOnRouteChange:!0});for(const t of e.actions)M.set(t.action,t.authorizationStatus),"undefined"===t.authorizationStatus&&console.error(`Undefined permission action: "${t.action}"`)}catch(e){console.error("Pre-check permissions failed",e)}finally{E.push(...r)}})();for(const t of r)k.set(t,e);n.push(e)}await Promise.all(n)}var _=n(74635),j=n(70918),N=n(5536),$=n(12559),D=n(86121),R=n(70829),L=n(41030),B=new WeakMap,W=new WeakMap,x=new WeakMap,U=new WeakMap,F=new WeakMap,q=new WeakMap,z=new WeakMap,H=new WeakSet;class G{constructor(e){(0,_.A)(this,H),(0,j.A)(this,B,void 0),(0,j.A)(this,W,void 0),(0,j.A)(this,x,[]),(0,j.A)(this,U,new Set),(0,j.A)(this,F,new Set),(0,j.A)(this,q,0),(0,j.A)(this,z,!1),(0,D.A)(B,this,e)}send(e){(0,R.A)(W,this)||(0,D.A)(W,this,(0,$.A)(H,this,J).call(this));const t=JSON.stringify(e);(0,R.A)(W,this).readyState===WebSocket.OPEN?(0,R.A)(W,this).send(t):(0,R.A)(x,this).push(t)}onMessage(e){return(0,R.A)(U,this).add(e),()=>{(0,R.A)(U,this).delete(e)}}onClose(e){return(0,R.A)(F,this).add(e),()=>{(0,R.A)(F,this).delete(e)}}reset(){(0,R.A)(x,this).length=0,(0,R.A)(U,this).clear(),(0,R.A)(F,this).clear()}close(){var e;(0,D.A)(z,this,!0),(null===(e=(0,R.A)(W,this))||void 0===e?void 0:e.readyState)===WebSocket.OPEN&&(0,R.A)(W,this).close()}}function J(){console.log("WebSocket connecting ...");const e=new WebSocket((0,R.A)(B,this));let t;return e.addEventListener("open",(n=>{console.log("WebSocket open:",n),t=setTimeout((()=>{t=void 0,(0,D.A)(q,this,0)}),1e3);for(const t of(0,R.A)(x,this))e.send(t);(0,R.A)(x,this).length=0})),e.addEventListener("close",(e=>{(0,R.A)(z,this)||(void 0!==t&&clearTimeout(t),console.log("WebSocket close:",e),1e3!==e.code&&(0,$.A)(H,this,V).call(this))})),e.addEventListener("error",(e=>{console.error("WebSocket error:",e)})),e.addEventListener("message",(e=>{const t=JSON.parse(e.data);for(const e of(0,R.A)(U,this))e(t)})),e}function V(){if((0,R.A)(q,this)>=5){console.error("WebSocket connect retry limit exceeded");for(const e of(0,R.A)(F,this))e();return}const e=1e3*Math.pow(2,(0,R.A)(q,this));console.log("WebSocket will reconnect after %d seconds",e/1e3),setTimeout((()=>{var e;(0,D.A)(q,this,(e=(0,R.A)(q,this),++e)),(0,D.A)(W,this,(0,$.A)(H,this,J).call(this))}),e)}var Y=new WeakMap,K=new WeakMap,Q=new WeakMap,X=new WeakSet;function Z(e){if(!(0,R.A)(Y,e)){const t=`${"https:"===location.protocol?"wss:":"ws:"}//${window.location.host}${(0,h.getBasePath)()}api/websocket_service/v1/ws`;(0,D.A)(Y,e,new G(t))}return(0,R.A)(Y,e)}function ee(e,t,n,r){const o=(0,R.A)(K,this)[e].get(r);if(o)return o;const i={event:"sub"===e?"TOPIC.SUB":"TOPIC.UNSUB",payload:n},s=new Promise(((t,r)=>{const o=te(n),s=(0,N.A)(X,this,Z).onMessage((n=>{const i=n.event===("sub"===e?"TOPIC.SUB_SUCCESS":"TOPIC.UNSUB_SUCCESS"),c=n.event===("sub"===e?"TOPIC.SUB_FAILED":"TOPIC.UNSUB_FAILED");(i||c)&&o===te(n.payload)&&((i?t:r)(n),s(),a())})),a=(0,N.A)(X,this,Z).onClose((()=>{r({retryCount:5}),s(),a()}));(0,N.A)(X,this,Z).send(i)}));return"sub"===e&&(0,R.A)(Q,this).set(t,r),(0,R.A)(K,this)[e].set(r,s),s}function te(e){const{system:t,topic:n}=e;return JSON.stringify({system:t,topic:n})}var ne=function(){var e=(0,p.A)((function*(e,t){return(yield d.http.post("api/gateway/micro_app_standalone.runtime.SearchMicroAppStandalone/api/v1/micro_app_standalone/search",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}();const re=new Map,oe=new Map;function ie(e,t){if(window.STANDALONE_MICRO_APPS&&!window.NO_AUTH_GUARD){const n=function(e){var t;const n={usedArgs:new Set},{customTemplates:r,menus:o}=null!==(t=e.meta)&&void 0!==t?t:{};return(0,l.traverseStoryboardExpressions)([e.routes,r,o],((e,t)=>{(0,l.collectInstalledAppsHasUsage)(n,e,t)}),"INSTALLED_APPS"),[...n.usedArgs]}(e),r=[];for(const e of n)re.has(e)||t(e)||r.push(e);if(0===r.length)return;const o=ne({query:{appId:{$in:r}},fields:["appId","currentVersion","installStatus"]},{noAbortOnRouteChange:!0}).catch((e=>{console.error("Get off site standalone micro-apps failed",e)}));for(const e of r)re.set(e,o.then((t=>{var n;const r=null==t||null===(n=t.list)||void 0===n?void 0:n.find((t=>t.appId===e)),o=r?{...r,id:e}:void 0;return oe.set(e,o),o})))}}async function se(e){await Promise.all(e.map((e=>re.get(e))))}function ae(e){if(window.STANDALONE_MICRO_APPS)return oe.get(e)}var ce=n(49523);const ue="core.provider-flow-api";function le(e,t){return null==e?void 0:e.some((e=>e.source===t))}async function pe(e){let{url:t,originalUri:n,method:r="GET",responseWrapper:o=!0,ext_fields:i,request:s,isFileType:a,stream:c}=e;const u=["get","delete","head"].includes(r.toLowerCase()),l=a?{responseType:"blob"}:{};let p;for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];if(u){var g,v,A,w;let e,o;var y,b;if(n&&"object"===(null==s?void 0:s.type)&&(null!==(g=null===(v=n.match(/:([^/]+)/g))||void 0===v?void 0:v.length)&&void 0!==g?g:0)===(null!==(A=null===(w=s.fields)||void 0===w?void 0:w.length)&&void 0!==A?A:0)?[o]=h:[e,o]=h,c)return await(0,ce.createSSEStream)(d.http.getUrlWithParams(t,e),{...l,...o,method:r,headers:Object.fromEntries([...new Headers(null!==(y=null===(b=o)||void 0===b?void 0:b.headers)&&void 0!==y?y:{}).entries()])});p=await d.http.simpleRequest(r,t,{params:e,...l,...o})}else{const e=function(e){if("object"!==(null==e?void 0:e.type))return!1;const t=e=>!(0,L.isEmpty)(e)&&e.some((e=>["file","file[]"].includes(e.type)||t(e.fields)));return t(e.fields)}(s),n=function(e){const t=le(e,"query");for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(t){if(le(e,"body")){const[e,t,n]=r;return{data:e,options:{params:t,...n}}}const[t,n]=r;return{data:{},options:{params:t,...n}}}const[i,s]=r;return{data:i,options:s}}(i,...h),o=e?function(e){if(e instanceof FormData)return e;const t=new FormData;for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.append(n,e)})):!(0,L.isObject)(r)||r instanceof Blob||r instanceof Date?t.append(n,r):Object.entries(r).forEach((e=>{let[r,o]=e;t.append(`${n}[${r}]`,o)}));return t}(n.data):n.data;if(c){var S;const{body:e,headers:i}=d.http.getBodyAndHeaders(o,null===(S=n.options)||void 0===S?void 0:S.headers);return await(0,ce.createSSEStream)(t,{...l,...n.options,method:r,headers:Object.fromEntries([...new Headers(null!=i?i:{}).entries()]),body:e})}p=await d.http.requestWithBody(r,t,o,{...l,...n.options})}return!a&&o?p.data:p}function de(){customElements.define(ue,(0,ce.createProviderClass)(pe))}var fe=n(55310);const he=async(e,t)=>(await d.http.post("api/contract/single_search",e,t)).data,me=new Map,ge=new Map,ve=new Map,Ae=(e,t)=>{null==e||e.forEach((e=>{t.set(`${e.namespaceId}.${e.name}`,e)}))};function we(e){Ae(e,me)}function ye(e){Ae(e,ge)}function be(){ge.clear()}function Se(e){Ae(e,ve)}function Ie(){ve.clear()}const Oe=new Map;function Pe(e){return e.includes("@")}async function ke(e,t,n,r){if(!e.includes(":"))throw new Error(`You're using legacy Custom API "${e}" which is dropped in v3, please use Flow API instead`);const o=await async function(e){const[t,n]=e.split("@"),[r,o]=n.split(":"),i=function(e){return me.get(e)||ge.get(e)||ve.get(e)}(`${t}.${r}`);if(i)return{name:i.name,namespace:i.namespaceId,serviceName:i.serviceName,version:i.version,contract:{endpoint:i.endpoint,response:i.response,request:i.request}};let s=Oe.get(e);return s||(s=async function(e,t,n){var r;const{contractData:o}=await he({contractName:`${e}.${t}`,version:n});return o?{name:o.name,namespace:null===(r=o.namespace)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.name,serviceName:o.serviceName,version:o.version,contract:{endpoint:o.endpoint,response:o.response,request:o.request}}:null}(t,r,o),Oe.set(e,s)),s}(e);if(!o)throw new Ee(`Flow API not found: "${e}"`);const i=function(e,t){var n,r;const o="string"==typeof t.contract?fe.safeLoad(t.contract,{schema:fe.JSON_SCHEMA,json:!0}):t.contract,{uri:i,method:s="GET",ext_fields:a}=null!==(n=null==o?void 0:o.endpoint)&&void 0!==n?n:{},c=!(null==o||!o.response)&&!1!==o.response.wrapper;if(!i)throw new Error(`Missing endpoint.uri in contract of provider "${e}"`);return{uri:i,method:"list"===s.toLowerCase()?"get":s,ext_fields:a,name:t.name,namespace:t.namespace,serviceName:t.serviceName,version:t.version,isFileType:"file"===(null==o||null===(r=o.response)||void 0===r?void 0:r.type),responseWrapper:c,request:null==o?void 0:o.request}}(e,o);return function(e,t,n,r){const{uri:o,method:i,ext_fields:s,responseWrapper:a,isFileType:c,request:u}=e,l="saveAs"===n;let p,d=t;l&&(Array.isArray(t)?(d=t.slice(),p=d.shift()):p=t.filename);const{url:f,args:h}=function(e,t){const{uri:n,name:r,namespace:o,serviceName:i,version:s,method:a="GET",request:c,ext_fields:u}=e,l=s?"logic.api.gateway"===i||null!=i&&i.startsWith("logic.api.gateway.")?"":i?`api/gateway/${i}`:`api/gateway/${o}.${r}@${s}`:`api/gateway/api_service.${o}.${r}`;let p,d=[];if(Array.isArray(t))d=t.slice(),p=n.replace(/:([^/]+)/g,(()=>d.shift()));else{const e={...t.params};if(p=n.replace(/:([^/]+)/g,((t,n)=>{if((0,ce.hasOwnProperty)(e,n)){const t=e[n];return delete e[n],t}throw new Error(`Missing required param: "${n}"`)})),["get","delete","head"].includes(a.toLowerCase())){var f,h,m,g;"object"===(null==c?void 0:c.type)&&(null!==(f=null===(h=n.match(/:([^/]+)/g))||void 0===h?void 0:h.length)&&void 0!==f?f:0)===(null!==(m=null===(g=c.fields)||void 0===g?void 0:g.length)&&void 0!==m?m:0)||d.push(e)}else{const t=null==u?void 0:u.find((e=>"body"===e.source));if(t){let n;t.name&&(0,ce.hasOwnProperty)(e,t.name)&&(n=e[t.name],delete e[t.name]),d.push(n)}const n=null==u?void 0:u.find((e=>"query"===e.source));if(n){let t;n.name&&(0,ce.hasOwnProperty)(e,n.name)&&(t=e[n.name],delete e[n.name]),d.push(t)}t||n||d.push(e)}t.options&&d.push(t.options)}return{url:l?l+p:p.replace(/^\//,""),args:d}}(e,d);return[...l?[p]:[],{url:f,originalUri:o,method:i,ext_fields:s,responseWrapper:a,request:u,isFileType:c,stream:r},...h]}(i,t,n,r)}class Ee extends Error{constructor(e){super(e),this.name="FlowApiNotFoundError",Error.captureStackTrace&&Error.captureStackTrace(this,Ee)}}var Me=function(){var e=(0,p.A)((function*(e,t,n){return(yield d.http.post("api/gateway/cmdb.instance.PostSearch/object/".concat(e,"/instance/_search"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}(),Ce=n(69740),Te=function(){var e=(0,p.A)((function*(e,t,n){return(yield d.http.get("api/gateway/micro_app.installed_micro_app.GetMenusInfo/api/v1/micro-app/menus/".concat(e),(0,Ce.A)((0,Ce.A)({},n),{},{params:t}))).data}));return function(t,n,r){return e.apply(this,arguments)}}(),_e=n(99733);const je=Symbol("appId"),Ne=Symbol("menuI18nNamespace"),$e=Symbol("overrideApp");async function De(e,t,n){const r=e.find((e=>"inject"!==e.type));if(!r)return;const o=[],i=new Map,s=new WeakMap;for(const t of e)if(t.i18n){const e=`menu/${t.menuId}~${t.app[0].appId}+${t.instanceId}`;Object.entries(t.i18n).forEach((t=>{let[n,r]=t;_e.i18n.addResourceBundle(n,e,r)})),s.set(t,e)}await Promise.all(e.map((e=>async function(e,t,n,r){if(e.dynamicItems&&e.itemsResolve){const i=e.app[0].appId,s={...t,pendingPermissionsPreCheck:[...t.pendingPermissionsPreCheck,C(e.itemsResolve)]};var o;i!==t.app.id&&(s.overrideApp=window.STANDALONE_MICRO_APPS?e.overrideApp:null===(o=r.getStoryboardByAppId(i))||void 0===o?void 0:o.app,s.appendI18nNamespace=n.get(e));const a=await r.resolveData({transform:"items",...e.itemsResolve},s);e.items=a.items}}(e,t,s,n))));for(const t of e){var a;if(null!==(a=t.items)&&void 0!==a&&a.length)if("inject"===t.type&&t.injectMenuGroupId){let e=i.get(t.injectMenuGroupId);e||(e=[],i.set(t.injectMenuGroupId,e)),e.push(t)}else o.push(t)}return{...r,items:o.flatMap((e=>Re(e.items,e,i,s))),[Ne]:s.get(r),[$e]:r.overrideApp}}function Re(e,t,n,r){return null==e?void 0:e.map((e=>{var o;const i=e.groupId&&n.get(e.groupId);return i&&n.delete(e.groupId),{...e,children:(null!==(o=Re(e.children,t,n,r))&&void 0!==o?o:[]).concat(i?i.flatMap((e=>Re(e.items,e,n,r))):[]),[je]:t.app[0].appId,[Ne]:r.get(t),[$e]:t.overrideApp}}))}function Le(e){e.items=Be(e.items)}function Be(e){return function(e){return(0,L.sortBy)(e,(e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}))}(e).map((e=>({...e,children:Be(e.children)})))}var We=n(59933),xe=n(71321);function Ue(e,t,n,r){if("titleDataSource"in e&&(0,ce.isObject)(e.titleDataSource)&&Object.entries(e.titleDataSource).every((e=>{let[,t]=e;return null===t||""===t}))&&delete e.titleDataSource,"if"in e&&null===e.if&&delete e.if,"to"in e&&e.to&&!(0,xe.isEvaluable)(e.to)){const t=We.pipes.yaml(e.to);(0,ce.isObject)(t)&&["pathname","search","hash"].some((e=>(0,ce.hasOwnProperty)(t,e)))&&(e.to=t)}let o=n;if(t!==n.app.id){var i;const s=window.STANDALONE_MICRO_APPS?e[$e]:null===(i=r.getStoryboardByAppId(t))||void 0===i?void 0:i.app;o={...n,overrideApp:s,appendI18nNamespace:e[Ne]}}return r.asyncComputeRealValue(e,o,{ignoreSymbols:!0})}function Fe(e,t,n){return Promise.all(e.map((async e=>{let{children:r,...o}=e;const[i,s]=await Promise.all([Ue(o,o[je],t,n),r&&await Fe(r,t,n)]);return{...i,children:s}})))}var qe=function(){var e=(0,p.A)((function*(e,t,n,r){return(yield d.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(e,"/instance/").concat(t),(0,Ce.A)((0,Ce.A)({},r),{},{params:n}))).data}));return function(t,n,r,o){return e.apply(this,arguments)}}();const ze=new Map;async function He(e){if(e.title||(0,L.isEmpty)(e.titleDataSource))return e.title;const t=JSON.stringify(e.titleDataSource),n=ze.get(t);if(void 0!==n)return n;const{objectId:r,instanceId:o,attributeId:i}=e.titleDataSource,s=null!=i?i:"name",a=await qe(r,o,{fields:s});let c;if("#showKey"===i&&Array.isArray(a[s])){const[e,...t]=a[s];c=t.length>0?`${e}(${t.join(",")})`:String(e)}else c=String(a[s]);return ze.set(t,c),c}const Ge=new Map,Je=new Map;function Ve(e){return null==e?void 0:e.filter(h.checkIfOfComputed).map((e=>{const t=Ve(e.children);return"group"===e.type?{type:"group",title:e.text,childLayout:e.childLayout,items:t,groupId:e.groupId,groupFrom:e.groupFrom}:null!=t&&t.length?{type:"subMenu",childLayout:e.childLayout,title:e.text,icon:e.icon,items:t,defaultExpanded:e.defaultExpanded}:function(e){return e.href?P(e.href):!!e.to&&O(e.to)}(e)?null:(0,L.omit)(e,["type","items","children"])})).filter(Boolean)}function Ye(e){return Je.get(e)}function Ke(e,t,n){let r=Ge.get(e);return r||(r=async function(e,t,n){const r=window.STANDALONE_MICRO_APPS?function(e,t,n){var r,o,i,s;const a=n.getStoryboardByAppId(t);return(null!==(r=null!==(o=null===(i=a.meta)||void 0===i?void 0:i.injectMenus)&&void 0!==o?o:null===(s=a.meta)||void 0===s?void 0:s.menus)&&void 0!==r?r:[]).filter((t=>t.menuId===e)).map((e=>{var n;return{...e,...null!==(n=e.app)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.appId?{}:{app:[{appId:t}]}}}))}(e,t.app.id,n):t.flags["three-level-menu-layout"]?(await Te(e,{menuObjectId:"EASYOPS_STORYBOARD_MENU"})).menus:(await Me("EASYOPS_STORYBOARD_MENU",{page:1,page_size:200,fields:{menuId:!0,title:!0,icon:!0,link:!0,titleDataSource:!0,defaultCollapsed:!0,defaultCollapsedBreakpoint:!0,type:!0,injectMenuGroupId:!0,dynamicItems:!0,itemsResolve:!0,items:!0,i18n:!0,"items.children":!0,"app.appId":!0},query:{menuId:{$eq:e},app:{$size:{$gt:0}}}})).list,o=await De(r,t,n);if(!o)throw new Error(`Menu not found: ${e}`);Le(o);const{items:i,app:s,...a}=o,c={...t,pendingPermissionsPreCheck:[...t.pendingPermissionsPreCheck,C([i,a])]};delete c.tplStateStoreId,delete c.forEachItem,delete c.forEachIndex,delete c.forEachSize;const u=s[0].appId,[l,p]=await Promise.all([Ue(a,u,c,n),Fe(i,c,n)]),d={title:await He(l),...(0,L.pick)(l,["icon","link","defaultCollapsed","defaultCollapsedBreakpoint"]),menuItems:Ve(p)};Je.set(e,d)}(e,t,n)),r}const Qe=[];let Xe=null;const Ze={maxWaitingTime:5e3,maxLoggedEvents:10};function et(){clearTimeout(Xe),Qe.length>Ze.maxLoggedEvents?tt():Xe=setTimeout(tt,Ze.maxWaitingTime)}function tt(){if(0===Qe.length)return;const e={model:"easyops.FRONTEND_STAT",columns:["_ver","st","et","lt","size","time","traceId","code","duration","page","uid","username","api","type","msg","status","pageId","route","apiCount","maxApiTimeCost","apiSizeCost","pageTitle"],data:Qe.splice(0,Ze.maxLoggedEvents)};var t;!function(e,t){const n=new Blob([JSON.stringify(t)],{type:"application/json"});window.navigator.sendBeacon(e,n)}(Ze.api,e),Qe.length&&(t=tt,(window.requestIdleCallback||window.requestAnimationFrame||(e=>setTimeout(e,17)))(t))}function nt(){window.addEventListener("beforeunload",tt,!1)}let rt,ot=!1,it=null,st=!0;const at=[];function ct(e){ot||(ot=!0,rt||(rt=function(e,t){return Object.assign(Ze,{...t,api:e}),{sendOnExit:nt,emit:et}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),rt.sendOnExit()))}const ut=Symbol("HttpAnalytics");function lt(e){const t=Math.round(performance.now()),n=Date.now();return e[ut]={st:n,time:Math.round(n/1e3),perfStartTime:t},e}function pt(e,t){return ft(!1,e,t)}function dt(e,t){return ft(!0,e,t)}function ft(e,t,n){const r=Math.round(performance.now()),o=Date.now(),{[ut]:i,url:s}=n;if(i&&!(e&&t instanceof d.HttpAbortError)){delete n[ut];const{st:c,time:u,perfStartTime:l}=i,{userInstanceId:p,username:f}=w();let h,m,g,v,A,y,b;if(e){const e=t instanceof d.HttpResponseError;(e||t instanceof d.HttpParseError)&&(({status:A,headers:y}=t.response),e&&(b=t.responseJson))}else({status:A,data:b,headers:y}=t);(0,ce.isObject)(b)&&({code:h,message:m}=b),y instanceof Headers&&(g=y.get("x-b3-traceid"),v=y.get("content-length")),a={st:c,_ver:c,uid:p,username:f,time:u,et:o,page:location.href,duration:r-l,api:s,type:"api",code:null!=h?h:-1,msg:null!=m?m:"",status:A,traceId:null!=g?g:"",size:v?Number(v):-1},it?Qe.push({...a,type:"apiRequest",...it}):at.push(a)}var a;return e?Promise.reject(t):t}function ht(){const e=Math.round(performance.now()),t=Date.now();return at.length=0,it=null,function(n){let{status:r,path:o,pageTitle:i}=n;if("ok"!==r)return Qe.push(...at),void(at.length=0);const s=Math.round(performance.now())-e,a=Date.now(),{username:c}=w();(function(e){const t=function(){const e=URL.createObjectURL(new Blob([]));let t=e.substring(e.lastIndexOf("/")+1);return URL.revokeObjectURL(e),st&&(t="88-"+t,st=!1),t}(),{lt:n,route:r}=e;it={lt:n,route:r,pageId:t},Qe.push({...e,pageId:t,apiCount:at.length,maxApiTimeCost:Math.max(0,...at.map((e=>e.duration))),size:at.map((e=>e.size)).filter((e=>e>0)).reduce(((e,t)=>e+t),0)});for(const e of at)Qe.push({...e,...it});at.length=0,rt.emit()})({type:"page",page:location.href,_ver:t,time:Math.round(t/1e3),st:t,et:a,lt:s,pageTitle:i,username:c,route:o}),window.dispatchEvent(new CustomEvent("route.render",{detail:{renderTime:s}}))}}const mt=Object.freeze({checkPermissions:function(){if(!b())return!1;if(w().isAdmin)return!0;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t)switch(M.get(e)){case"unauthorized":case"undefined":return!1;case void 0:return console.error(`Un-checked permission action: "${e}", please make sure the permission to check is defined in permissionsPreCheck.`),!1}return!0},preCheckPermissions:function(e){if(b()&&!w().isAdmin)return T((0,l.scanPermissionActionsInStoryboard)(e))},preCheckPermissionsForBrickOrRoute:async function(e,t){if(b()&&!w().isAdmin&&Array.isArray(e.permissionsPreCheck))return T(await t(e.permissionsPreCheck))}}),gt=new class{constructor(){(0,_.A)(this,X),(0,j.A)(this,Y,void 0),(0,j.A)(this,K,{sub:new Map,unsub:new Map}),(0,j.A)(this,Q,new Map)}subscribe(e,t){const n=JSON.stringify(t);return(0,$.A)(X,this,ee).call(this,"sub",e,t,n)}unsubscribe(e){const t=(0,R.A)(Q,this).get(e);if(!t){const t=`The message channel to unsubscribe "${e}" is not found`;return console.error(t),Promise.reject(new Error(t))}const n=JSON.parse(t),r=(0,$.A)(X,this,ee).call(this,"unsub",e,n,t);return(0,R.A)(K,this).sub.delete(t),r.then((()=>{(0,R.A)(Q,this).delete(e)})),r}onMessage(e,t){let n=(0,R.A)(Q,this).get(e),r=!1;return(0,N.A)(X,this,Z).onMessage((o=>{n||(n=(0,R.A)(Q,this).get(e)),n?"MESSAGE.PUSH"===o.event&&function(e,t){const n=JSON.parse(e);return n.system===t.system&&(n.topic===t.topic||"string"==typeof n.topic&&n.topic.includes("*")&&new RegExp(`^${n.topic.replace(/([^*]*)\*([^*]*)/g,((e,t,n)=>`${(0,L.escapeRegExp)(t)}[^/]*${(0,L.escapeRegExp)(n)}`))}$`).test(t.topic))}(n,o.payload)&&t(o.payload.message):r||(console.error(`Message channel: "${e}" not found`),r=!0)}))}onClose(e){return(0,N.A)(X,this,Z).onClose(e)}reset(){var e;(0,R.A)(K,this).sub.clear(),(0,R.A)(K,this).unsub.clear(),(0,R.A)(Q,this).clear(),null===(e=(0,R.A)(Y,this))||void 0===e||e.reset()}},vt=function(){const e=(0,h.getV2RuntimeFromDll)();if(e)return Object.freeze((0,L.pick)(e,["authenticate","getAuth","isLoggedIn","logout","addPathToBlackList","isBlockedPath","isBlockedUrl","isBlockedHref"]))}()||r},69740:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(24586);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},86330:(e,t,n)=>{function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}n.d(t,{A:()=>o})}}]);
|
|
3
|
-
//# sourceMappingURL=2252.b8bf2103.js.map
|