@next-bricks/advanced 0.20.0 → 0.20.2
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 +8 -8
- package/dist/chunks/1377.55c60301.js +2 -0
- package/dist/chunks/{1377.080482b5.js.map → 1377.55c60301.js.map} +1 -1
- package/dist/chunks/{1950.12123f86.js → 1950.a9c30a92.js} +2 -2
- package/dist/chunks/1950.a9c30a92.js.map +1 -0
- package/dist/chunks/2108.19e43f3e.js +2 -0
- package/dist/chunks/2108.19e43f3e.js.map +1 -0
- package/dist/chunks/eo-next-table.8cfcf175.js +2 -0
- package/dist/chunks/{eo-next-table.f00525c1.js.map → eo-next-table.8cfcf175.js.map} +1 -1
- package/dist/chunks/eo-table.44492d23.js +2 -0
- package/dist/chunks/{eo-table.56377c27.js.map → eo-table.44492d23.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout.9c4bd9ec.js +2 -0
- package/dist/chunks/{eo-workbench-layout.dc89909e.js.map → eo-workbench-layout.9c4bd9ec.js.map} +1 -1
- package/dist/chunks/main.00580efb.js +2 -0
- package/dist/chunks/{main.27d4ce65.js.map → main.00580efb.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.891d3930.js +2 -0
- package/dist/{index.00e3ea41.js.map → index.891d3930.js.map} +1 -1
- package/dist/manifest.json +41 -41
- package/dist/types.json +159 -159
- package/package.json +3 -3
- package/dist/chunks/1377.080482b5.js +0 -2
- package/dist/chunks/1950.12123f86.js.map +0 -1
- package/dist/chunks/2108.49edf097.js +0 -2
- package/dist/chunks/2108.49edf097.js.map +0 -1
- package/dist/chunks/eo-next-table.f00525c1.js +0 -2
- package/dist/chunks/eo-table.56377c27.js +0 -2
- package/dist/chunks/eo-workbench-layout.dc89909e.js +0 -2
- package/dist/chunks/main.27d4ce65.js +0 -2
- package/dist/index.00e3ea41.js +0 -2
package/dist/manifest.json
CHANGED
|
@@ -536,6 +536,47 @@
|
|
|
536
536
|
"description": "大型表格",
|
|
537
537
|
"category": "table"
|
|
538
538
|
},
|
|
539
|
+
{
|
|
540
|
+
"name": "eo-workbench-layout",
|
|
541
|
+
"properties": [
|
|
542
|
+
{
|
|
543
|
+
"name": "cardTitle",
|
|
544
|
+
"type": "string"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "isEdit",
|
|
548
|
+
"type": "boolean"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "layouts",
|
|
552
|
+
"attribute": false,
|
|
553
|
+
"type": "Layout[]"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "componentList",
|
|
557
|
+
"attribute": false,
|
|
558
|
+
"type": "Item[]"
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
"events": [
|
|
562
|
+
{
|
|
563
|
+
"name": "save",
|
|
564
|
+
"detail": {
|
|
565
|
+
"type": "Layout[]"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "cancel",
|
|
570
|
+
"detail": {
|
|
571
|
+
"type": "void"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
],
|
|
575
|
+
"slots": [],
|
|
576
|
+
"methods": [],
|
|
577
|
+
"parts": [],
|
|
578
|
+
"description": "工作台布局"
|
|
579
|
+
},
|
|
539
580
|
{
|
|
540
581
|
"name": "eo-cascader",
|
|
541
582
|
"alias": [
|
|
@@ -642,47 +683,6 @@
|
|
|
642
683
|
"parts": [],
|
|
643
684
|
"description": "级联选择器",
|
|
644
685
|
"category": "form-input-basic"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
"name": "eo-workbench-layout",
|
|
648
|
-
"properties": [
|
|
649
|
-
{
|
|
650
|
-
"name": "cardTitle",
|
|
651
|
-
"type": "string"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"name": "isEdit",
|
|
655
|
-
"type": "boolean"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"name": "layouts",
|
|
659
|
-
"attribute": false,
|
|
660
|
-
"type": "Layout[]"
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"name": "componentList",
|
|
664
|
-
"attribute": false,
|
|
665
|
-
"type": "Item[]"
|
|
666
|
-
}
|
|
667
|
-
],
|
|
668
|
-
"events": [
|
|
669
|
-
{
|
|
670
|
-
"name": "save",
|
|
671
|
-
"detail": {
|
|
672
|
-
"type": "Layout[]"
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
"name": "cancel",
|
|
677
|
-
"detail": {
|
|
678
|
-
"type": "void"
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
],
|
|
682
|
-
"slots": [],
|
|
683
|
-
"methods": [],
|
|
684
|
-
"parts": [],
|
|
685
|
-
"description": "工作台布局"
|
|
686
686
|
}
|
|
687
687
|
],
|
|
688
688
|
"providers": []
|
package/dist/types.json
CHANGED
|
@@ -1,4 +1,163 @@
|
|
|
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": "save",
|
|
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": "cancel",
|
|
63
|
+
"detail": {
|
|
64
|
+
"annotation": {
|
|
65
|
+
"type": "keyword",
|
|
66
|
+
"value": "void"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"methods": [],
|
|
72
|
+
"types": [
|
|
73
|
+
{
|
|
74
|
+
"type": "typeAlias",
|
|
75
|
+
"name": "Item",
|
|
76
|
+
"annotation": {
|
|
77
|
+
"type": "typeLiteral",
|
|
78
|
+
"members": [
|
|
79
|
+
{
|
|
80
|
+
"type": "propertySignature",
|
|
81
|
+
"key": {
|
|
82
|
+
"type": "identifier",
|
|
83
|
+
"name": "position"
|
|
84
|
+
},
|
|
85
|
+
"annotation": {
|
|
86
|
+
"type": "reference",
|
|
87
|
+
"typeName": {
|
|
88
|
+
"type": "identifier",
|
|
89
|
+
"name": "Layout"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"computed": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "propertySignature",
|
|
96
|
+
"key": {
|
|
97
|
+
"type": "identifier",
|
|
98
|
+
"name": "key"
|
|
99
|
+
},
|
|
100
|
+
"annotation": {
|
|
101
|
+
"type": "keyword",
|
|
102
|
+
"value": "string"
|
|
103
|
+
},
|
|
104
|
+
"computed": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "propertySignature",
|
|
108
|
+
"key": {
|
|
109
|
+
"type": "identifier",
|
|
110
|
+
"name": "title"
|
|
111
|
+
},
|
|
112
|
+
"annotation": {
|
|
113
|
+
"type": "keyword",
|
|
114
|
+
"value": "string"
|
|
115
|
+
},
|
|
116
|
+
"computed": false
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "propertySignature",
|
|
120
|
+
"key": {
|
|
121
|
+
"type": "identifier",
|
|
122
|
+
"name": "style"
|
|
123
|
+
},
|
|
124
|
+
"annotation": {
|
|
125
|
+
"type": "reference",
|
|
126
|
+
"typeName": {
|
|
127
|
+
"type": "qualifiedName",
|
|
128
|
+
"left": {
|
|
129
|
+
"type": "identifier",
|
|
130
|
+
"name": "React"
|
|
131
|
+
},
|
|
132
|
+
"right": {
|
|
133
|
+
"type": "identifier",
|
|
134
|
+
"name": "CSSProperties"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"optional": true,
|
|
139
|
+
"computed": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "propertySignature",
|
|
143
|
+
"key": {
|
|
144
|
+
"type": "identifier",
|
|
145
|
+
"name": "useBrick"
|
|
146
|
+
},
|
|
147
|
+
"annotation": {
|
|
148
|
+
"type": "reference",
|
|
149
|
+
"typeName": {
|
|
150
|
+
"type": "identifier",
|
|
151
|
+
"name": "UseSingleBrickConf"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"computed": false
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
2
161
|
"eo-cascader": {
|
|
3
162
|
"properties": [
|
|
4
163
|
{
|
|
@@ -275,165 +434,6 @@
|
|
|
275
434
|
],
|
|
276
435
|
"methods": []
|
|
277
436
|
},
|
|
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": "save",
|
|
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": "cancel",
|
|
339
|
-
"detail": {
|
|
340
|
-
"annotation": {
|
|
341
|
-
"type": "keyword",
|
|
342
|
-
"value": "void"
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"methods": [],
|
|
348
|
-
"types": [
|
|
349
|
-
{
|
|
350
|
-
"type": "typeAlias",
|
|
351
|
-
"name": "Item",
|
|
352
|
-
"annotation": {
|
|
353
|
-
"type": "typeLiteral",
|
|
354
|
-
"members": [
|
|
355
|
-
{
|
|
356
|
-
"type": "propertySignature",
|
|
357
|
-
"key": {
|
|
358
|
-
"type": "identifier",
|
|
359
|
-
"name": "position"
|
|
360
|
-
},
|
|
361
|
-
"annotation": {
|
|
362
|
-
"type": "reference",
|
|
363
|
-
"typeName": {
|
|
364
|
-
"type": "identifier",
|
|
365
|
-
"name": "Layout"
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
"computed": false
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"type": "propertySignature",
|
|
372
|
-
"key": {
|
|
373
|
-
"type": "identifier",
|
|
374
|
-
"name": "key"
|
|
375
|
-
},
|
|
376
|
-
"annotation": {
|
|
377
|
-
"type": "keyword",
|
|
378
|
-
"value": "string"
|
|
379
|
-
},
|
|
380
|
-
"computed": false
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"type": "propertySignature",
|
|
384
|
-
"key": {
|
|
385
|
-
"type": "identifier",
|
|
386
|
-
"name": "title"
|
|
387
|
-
},
|
|
388
|
-
"annotation": {
|
|
389
|
-
"type": "keyword",
|
|
390
|
-
"value": "string"
|
|
391
|
-
},
|
|
392
|
-
"computed": false
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"type": "propertySignature",
|
|
396
|
-
"key": {
|
|
397
|
-
"type": "identifier",
|
|
398
|
-
"name": "style"
|
|
399
|
-
},
|
|
400
|
-
"annotation": {
|
|
401
|
-
"type": "reference",
|
|
402
|
-
"typeName": {
|
|
403
|
-
"type": "qualifiedName",
|
|
404
|
-
"left": {
|
|
405
|
-
"type": "identifier",
|
|
406
|
-
"name": "React"
|
|
407
|
-
},
|
|
408
|
-
"right": {
|
|
409
|
-
"type": "identifier",
|
|
410
|
-
"name": "CSSProperties"
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
"optional": true,
|
|
415
|
-
"computed": false
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"type": "propertySignature",
|
|
419
|
-
"key": {
|
|
420
|
-
"type": "identifier",
|
|
421
|
-
"name": "useBrick"
|
|
422
|
-
},
|
|
423
|
-
"annotation": {
|
|
424
|
-
"type": "reference",
|
|
425
|
-
"typeName": {
|
|
426
|
-
"type": "identifier",
|
|
427
|
-
"name": "UseSingleBrickConf"
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
"computed": false
|
|
431
|
-
}
|
|
432
|
-
]
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
]
|
|
436
|
-
},
|
|
437
437
|
"eo-table": {
|
|
438
438
|
"properties": [
|
|
439
439
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/advanced",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/basic",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"postpublish": "mv package.json.bak package.json"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@next-core/build-next-bricks": "^1.20.
|
|
37
|
+
"@next-core/build-next-bricks": "^1.20.2",
|
|
38
38
|
"@next-core/test-next": "^1.0.14"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@next-bricks/form": "*",
|
|
43
43
|
"@next-bricks/icons": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0cdc43e91e4e44b84465de1e39086faf891dfaf3"
|
|
46
46
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[1377],{9366:(e,t,a)=>{a.r(t);var i=a(3028),s=a(6666),r=a(3395),n=a(1815),l=a(381),o=a(687),h=a(5066),d=a(8657),c=a.n(d),u=a(5727),p=a(305),w=a(2869),g=a(5178),Z=a(9464),m=a(7896),v=a(2159),b=a(2504),f={$eq:g.isEqual,$lt:g.lt,$lte:g.lte,$gt:g.gt,$gte:g.gte,$ne:(e,t)=>!(0,g.isEqual)(e,t),$isEqual:g.isEqual,$notEqual:(e,t)=>!(0,g.isEqual)(e,t),$in:g.includes,$nin:(e,t)=>!(0,g.includes)(e,t),$exists:(e,t)=>e?!(0,g.isUndefined)(t):(0,g.isUndefined)(t)};function y(e,t,a){var{dataIndex:i,mapping:s}=e,r=void 0!==i?(0,g.get)(t,i):a,n=s.find((e=>e.value===r));return n?{borderLeft:"4px solid ".concat(n.leftBorderColor)}:{}}var k=(e,t,a,i)=>{e&&(0,g.forEach)(e,(e=>{var s=(0,g.get)(e,a),r=(0,g.get)(e,t);i.push(r),null!=s&&s.length&&k(s,t,a,i)}))},x=(e,t,a)=>{e&&(0,g.forEach)(e,(e=>{var i=(0,g.get)(e,t);a.push(e),null!=i&&i.length&&x(i,t,a)}))};function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null!=t&&t.length&&t.forEach((t=>{var a;return null!==(a=t[e])&&void 0!==a&&a.length?C(e,t[e]):(delete t[e],t)})),t}var S=a(2779),_=a.n(S),M=a(8533),E=a(2689),R=a(2238),W=a(8683),N=a(4819),I=a.n(N),B=a(9494),K=a(7263),D=["index","moveRow","className","style"],P=["useBrick","valueSuffix","cellStatus","cellStyle","headerBrick","colSpanKey","rowSpanKey","filterDropdownBrick"],z="DraggableBodyRow",U={lib:"antd",icon:"down",theme:"outlined"},A={lib:"antd",icon:"right",theme:"outlined"},T=(0,p.wrapBrick)("eo-icon"),F=e=>{var{index:t,moveRow:a,className:s,style:r}=e,n=(0,v.Z)(e,D),l=c().useRef(null),[{isOver:o,dropClassName:h},d]=(0,M.L)({accept:z,collect:e=>{var{index:a}=e.getItem()||{};return a===t?{}:{isOver:e.isOver(),dropClassName:a<t?"dropOverDownward":"dropOverUpward"}},drop:e=>{a(e.index,t)}}),[,u]=(0,E.c)({type:z,item:{type:z,index:t},collect:e=>({isDragging:e.isDragging()})});return d(u(l)),c().createElement("tr",(0,m.Z)({ref:l,className:_()(s,{[h]:o}),style:(0,i.Z)({cursor:"move"},r)},n))};function H(e){if(e.error)throw e.error;var{configProps:t={pagination:!0,sortBy:!1},columns:a,rowKey:s="key",expandIconAsCell:r,expandIconColumnIndex:n,childrenColumnName:l,scroll:o,optimizedColumns:h,onDelete:u,ellipsisInfo:p,showHeader:w}=e,Z=(0,d.useMemo)((()=>{var t;return null===(t=e.dataSource)||void 0===t?void 0:t.map(((e,t)=>(0,g.isNil)(e[s])?(0,i.Z)((0,i.Z)({},e),{},{[s]:t}):e))}),[e.dataSource,s]),[f,k]=(0,d.useState)(Z),x=(0,d.useRef)(new Map),C=(0,d.useRef)(new Map),S=(0,d.useRef)(new Map),M=(0,d.useRef)(new Map);(0,d.useEffect)((()=>{M.current.clear(),k(Z)}),[Z]);var E=null!=t&&t.rowSelection?-1:0,N=(0,d.useMemo)((()=>{if(a){C.current.clear(),S.current.clear();var e=a.map(((e,t)=>{var a,{useBrick:o,valueSuffix:h,cellStatus:d,cellStyle:u={},headerBrick:w,colSpanKey:Z,rowSpanKey:m,filterDropdownBrick:b}=e,f=(0,v.Z)(e,P);if(null!=w&&w.useBrick){var k=null==w?void 0:w.useBrick,_=C.current.get(e);_||(_={title:f.title},C.current.set(e,_)),f.title=((e,t)=>function(){return c().createElement(B.ReactUseMultipleBricks,{useBrick:e,data:t})})(k,_)}if(null!=b&&b.useBrick&&(f.filterDropdown=c().createElement(B.ReactUseMultipleBricks,{useBrick:b.useBrick})),o?(o&&((a=S.current.get(o))||(a=new Map,S.current.set(o,a))),f.render=((e,t)=>function(a,i,s){if(e){var r=null==t?void 0:t.get(i);return r||(r={cellData:a,rowData:i,columnIndex:s},null==t||t.set(i,r)),c().createElement(B.ReactUseMultipleBricks,{useBrick:e,data:r})}})(o,a),f.shouldCellUpdate=(e,t)=>!(0,g.isEqual)(e,t)):h&&(f.render=e=>e+h),!r&&t===Number(n)+E){var M=f.render;f.render=function(e,t,a){return c().createElement(c().Fragment,null,!t[l]&&x.current.get(s?t[s]:t),M?M(e,t,a):e)}}if(d||Z||m||u){var R=f.render;f.render=(e,t,a)=>({children:R?R(e,t,a):e,props:{colSpan:t[Z],rowSpan:t[m],style:(0,i.Z)((0,i.Z)({},d?y(d,t,e):{}),u)}})}return"string"==typeof f.dataIndex&&(f.dataIndex=(0,g.toPath)(f.dataIndex)),"top"===f.verticalAlign&&(f.className?f.className+=" alignTop":f.className="alignTop"),"bottom"===f.verticalAlign&&(f.className?f.className+=" alignBottom":f.className="alignBottom"),p&&(f.className?f.className+=" ellipsisInfoCell":f.className="ellipsisInfoCell"),f}));return e}}),[a,l,r,n,E,s,u,p]),D={body:{row:F}},z=(t,a)=>{var i=f[t],s=I()(f,{$splice:[[t,1],[a,0,i]]});k(s),e.onDrag&&e.onDrag(s)},H=(0,g.pickBy)({expandIconColumnIndex:n,expandIconAsCell:r,expandRowByClick:e.expandRowByClick,expandedRowKeys:e.expandedRowKeys,defaultExpandAllRows:e.defaultExpandAllRows},(e=>!(0,g.isNil)(e))),L=c().createElement(b.Z,(0,m.Z)({className:_()("brickTable",{expandIconCellHidden:!r,customDropTable:e.tableDraggable,tableThTransparent:e.thTransparent,zebraPatternTable:(null==f?void 0:f.length)>=2&&e.zebraPattern}),dataSource:f},e.tableDraggable?{components:D,onRow:(e,t)=>({index:t,moveRow:z})}:{},{columns:N,onChange:e.onChange},e.expandedRowBrick?{expandedRowRender:(t,a)=>{var i,s=M.current.get(t);return s||(s={rowData:t,rowIndex:a},M.current.set(t,s)),c().createElement(B.ReactUseMultipleBricks,{useBrick:null===(i=e.expandedRowBrick)||void 0===i?void 0:i.useBrick,data:s})}}:{},H,{onExpand:(t,a)=>{e.onExpand&&e.onExpand(t,a)},showSorterTooltip:!1,onExpandedRowsChange:t=>{e.onExpandedRowsChange&&e.onExpandedRowsChange(t)},rowKey:s,childrenColumnName:l,rowClassName:(t,a)=>t.invalidRow?"invalidRow":t.disabledRow?"disabledRow":e.zebraPattern&&a%2?"brickTableOddRow":"",expandIcon:t=>{var a,i,n,{record:l,expandable:o,expanded:h,onExpand:d}=t,u=(null===(a=e.expandIcon)||void 0===a?void 0:a.collapsedIcon)||U;o?(h||(u=(null===(n=e.expandIcon)||void 0===n?void 0:n.expandedIcon)||A),i=c().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon",onClick:e=>{d(l,e)}},c().createElement(T,u))):i=c().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon"},c().createElement("span",{style:{visibility:"hidden"}},c().createElement(T,u)));return i?(r||x.current.set(s?l[s]:l,i),i):c().createElement(c().Fragment,null)},scroll:o,showHeader:w},t));e.tableDraggable&&(L=c().createElement(R.W,{backend:W.PD},L));var q=(0,d.useMemo)((()=>(0,K.Df)()),[]);return c().createElement(K.V9,{container:e.shadowRoot,cache:q},L)}a(2006);var L,q,O,$,Q,j,V,G,Y,J,X,ee,te,ae,ie,se,re,ne,le,oe,he,de,ce,ue,pe,we,ge,Ze,me,ve,be,fe,ye,ke,xe,Ce,Se,_e,Me,Ee,Re,We,Ne,Ie,Be,Ke,De,Pe,ze,Ue,Ae,Te,Fe,He,Le,qe,Oe,$e,Qe,je,Ve,Ge,Ye,Je,Xe,et,tt,at,it,st,rt,nt,lt,ot,ht,dt,ct,ut,pt,wt,gt,Zt,mt,vt,bt,ft,yt,kt,xt,Ct,St,_t,Mt,Et,Rt,Wt,Nt,It,Bt,Kt,Dt,Pt,zt,Ut,At,Tt,Ft,Ht,Lt,qt,Ot,$t,Qt,jt,Vt,Gt,Yt,Jt,Xt,ea,ta,aa,ia,sa,ra,na,la,oa,ha,{defineElement:da,property:ca,event:ua,method:pa}=(0,u.createDecorators)();q=da("eo-table",{styleTexts:[w.Z],alias:["advanced.general-table"]}),O=ua({type:"page.update"}),V=ua({type:"filter.update"}),X=ua({type:"select.update"}),ie=ua({type:"select.row.keys.update"}),le=ua({type:"sort.update",cancelable:!0}),ce=ua({type:"row.expand"}),ge=ua({type:"expand.rows.change"}),be=ua({type:"row.drag"}),xe=ca({type:Boolean}),Se=ca({attribute:!1}),Me=ca(),Re=ca({attribute:!1}),Ne=ca({type:Boolean}),Be=ca({attribute:!1}),De=ca({attribute:!1}),ze=ca(),Ae=ca({attribute:!1}),Fe=ca({attribute:!1}),Le=ca({attribute:!1}),Oe=ca({attribute:!1}),Qe=ca({attribute:!1}),Ve=ca({type:Number}),Ye=ca({type:Boolean}),Xe=ca({attribute:!1}),tt=ca({attribute:!1}),it=ca({type:Boolean}),rt=ca({type:Boolean}),lt=ca({attribute:!1}),ht=ca({type:Boolean}),ct=ca({type:Boolean}),pt=ca({attribute:!1}),gt=ca({attribute:!1}),mt=ca({type:Boolean}),bt=ca(),yt=ca({type:Boolean}),xt=ca({attribute:!1}),St=ca({type:Number}),Mt=ca({type:Number}),Rt=ca({attribute:!1}),Nt=ca(),Bt=ca({type:Boolean}),Dt=ca({type:Boolean}),zt=ca({type:Boolean}),At=ca({attribute:!1}),Ft=ca({type:Boolean}),Lt=ca({type:Boolean}),Ot=ca({type:Boolean}),Qt=ca({attribute:!1}),Vt=ca(),Yt=ca({attribute:!1}),Xt=ca({type:Boolean}),ta=ca({type:Boolean}),ia=ca({attribute:!1}),ra=pa(),na=pa();var wa=new WeakMap,ga=new WeakMap,Za=new WeakMap,ma=new WeakMap,va=new WeakMap,ba=new WeakMap,fa=new WeakMap,ya=new WeakMap,ka=new WeakMap,xa=new WeakMap,Ca=new WeakMap,Sa=new WeakMap,_a=new WeakMap,Ma=new WeakMap,Ea=new WeakMap,Ra=new WeakMap,Wa=new WeakMap,Na=new WeakMap,Ia=new WeakMap,Ba=new WeakMap,Ka=new WeakMap,Da=new WeakMap,Pa=new WeakMap,za=new WeakMap,Ua=new WeakMap,Aa=new WeakMap,Ta=new WeakMap,Fa=new WeakMap,Ha=new WeakMap,La=new WeakMap,qa=new WeakMap,Oa=new WeakMap,$a=new WeakMap,Qa=new WeakMap,ja=new WeakMap,Va=new WeakMap,Ga=new WeakMap,Ya=new WeakMap,Ja=new WeakMap,Xa=new WeakMap,ei=new WeakMap,ti=new WeakMap,ai=new WeakMap,ii=new WeakMap,si=new WeakMap,ri=new WeakMap,ni=new WeakMap,li=new WeakMap,oi=new WeakMap,hi=new WeakMap,di=new WeakMap,ci=new WeakMap,ui=new WeakMap,pi=new WeakMap,wi=new WeakMap,gi=new WeakMap,Zi=new WeakMap,mi=new WeakMap,vi=new WeakMap,bi=new WeakMap,fi=new WeakMap,yi=new WeakMap;class ki extends p.ReactNextElement{constructor(){super(...arguments),(0,r.Z)(this,Ra,{get:Ui,set:zi}),(0,r.Z)(this,Ma,{get:Pi,set:Di}),(0,r.Z)(this,Sa,{get:Ki,set:Bi}),(0,r.Z)(this,xa,{get:Ii,set:Ni}),(0,r.Z)(this,ya,{get:Wi,set:Ri}),(0,r.Z)(this,ba,{get:Ei,set:Mi}),(0,r.Z)(this,ma,{get:_i,set:Si}),(0,r.Z)(this,ga,{get:Ci,set:xi}),(0,r.Z)(this,wa,{writable:!0,value:(la(this),$(this))}),(0,r.Z)(this,Za,{writable:!0,value:G(this)}),(0,r.Z)(this,va,{writable:!0,value:ee(this)}),(0,r.Z)(this,fa,{writable:!0,value:se(this)}),(0,r.Z)(this,ka,{writable:!0,value:oe(this)}),(0,r.Z)(this,Ca,{writable:!0,value:ue(this)}),(0,r.Z)(this,_a,{writable:!0,value:Ze(this)}),(0,r.Z)(this,Ea,{writable:!0,value:fe(this)}),(0,r.Z)(this,Wa,{writable:!0,value:Ce(this,!0)}),(0,r.Z)(this,Na,{writable:!0,value:_e(this)}),(0,r.Z)(this,Ia,{writable:!0,value:Ee(this)}),(0,r.Z)(this,Ba,{writable:!0,value:We(this)}),(0,r.Z)(this,Ka,{writable:!0,value:Ie(this,!1)}),(0,r.Z)(this,Da,{writable:!0,value:Ke(this)}),(0,r.Z)(this,Pa,{writable:!0,value:Pe(this)}),(0,r.Z)(this,za,{writable:!0,value:Ue(this)}),(0,r.Z)(this,Ua,{writable:!0,value:Te(this)}),(0,r.Z)(this,Aa,{writable:!0,value:He(this)}),(0,r.Z)(this,Ta,{writable:!0,value:qe(this)}),(0,r.Z)(this,Fa,{writable:!0,value:$e(this)}),(0,r.Z)(this,Ha,{writable:!0,value:je(this,!0)}),(0,r.Z)(this,La,{writable:!0,value:Ge(this)}),(0,r.Z)(this,qa,{writable:!0,value:Je(this)}),(0,r.Z)(this,Oa,{writable:!0,value:et(this)}),(0,r.Z)(this,$a,{writable:!0,value:at(this,!1)}),(0,r.Z)(this,Qa,{writable:!0,value:st(this)}),(0,r.Z)(this,ja,{writable:!0,value:nt(this)}),(0,r.Z)(this,Va,{writable:!0,value:ot(this)}),(0,r.Z)(this,Ga,{writable:!0,value:dt(this)}),(0,r.Z)(this,Ya,{writable:!0,value:ut(this)}),(0,s.Z)(this,"_disabledChildrenKeys",[]),(0,r.Z)(this,Ja,{writable:!0,value:wt(this,"children")}),(0,r.Z)(this,Xa,{writable:!0,value:Zt(this,!0)}),(0,r.Z)(this,ei,{writable:!0,value:vt(this)}),(0,r.Z)(this,ti,{writable:!0,value:ft(this,"")}),(0,r.Z)(this,ai,{writable:!0,value:kt(this)}),(0,r.Z)(this,ii,{writable:!0,value:Ct(this)}),(0,r.Z)(this,si,{writable:!0,value:_t(this)}),(0,r.Z)(this,ri,{writable:!0,value:Et(this)}),(0,r.Z)(this,ni,{writable:!0,value:Wt(this,{x:!0})}),(0,r.Z)(this,li,{writable:!0,value:It(this,"q")}),(0,r.Z)(this,oi,{writable:!0,value:Kt(this)}),(0,r.Z)(this,hi,{writable:!0,value:Pt(this)}),(0,r.Z)(this,di,{writable:!0,value:Ut(this)}),(0,r.Z)(this,ci,{writable:!0,value:Tt(this,[])}),(0,r.Z)(this,ui,{writable:!0,value:Ht(this)}),(0,r.Z)(this,pi,{writable:!0,value:qt(this)}),(0,r.Z)(this,wi,{writable:!0,value:$t(this,!0)}),(0,r.Z)(this,gi,{writable:!0,value:jt(this)}),(0,r.Z)(this,Zi,{writable:!0,value:Gt(this)}),(0,r.Z)(this,mi,{writable:!0,value:Jt(this)}),(0,r.Z)(this,vi,{writable:!0,value:ea(this,!0)}),(0,r.Z)(this,bi,{writable:!0,value:aa(this,!0)}),(0,s.Z)(this,"_originalDataSource",[]),(0,s.Z)(this,"_dataSource",[]),(0,s.Z)(this,"_pureSource",void 0),(0,s.Z)(this,"_columns",void 0),(0,s.Z)(this,"_finalConfigProps",{}),(0,s.Z)(this,"_error",void 0),(0,r.Z)(this,fi,{writable:!0,value:void 0}),(0,s.Z)(this,"_selectUpdateEventName",""),(0,s.Z)(this,"_selectUpdateEventDetailKeys",[]),(0,s.Z)(this,"_selectUpdateEventDetailField",""),(0,s.Z)(this,"_selectUpdateEventDetailExtra",{}),(0,s.Z)(this,"_fields",{page:"page",pageSize:"pageSize",dataSource:"list",total:"total",ascend:"ascend",descend:"descend"}),(0,r.Z)(this,yi,{writable:!0,value:sa(this,[])}),(0,s.Z)(this,"_selected",!1),(0,s.Z)(this,"_selectedRow",void 0),(0,s.Z)(this,"_selectedRows",[]),(0,s.Z)(this,"_allChildren",[]),(0,s.Z)(this,"_isInSelect",!1),(0,s.Z)(this,"_getRowKey",(()=>{var e,t,a,i;return null!==(e=null!==(t=null!==(a=this.rowKey)&&void 0!==a?a:this._fields.rowKey)&&void 0!==t?t:null===(i=this.configProps)||void 0===i?void 0:i.rowKey)&&void 0!==e?e:"key"})),(0,s.Z)(this,"_findParentByChildKeyValue",((e,t,a,i)=>{var s;return a.some((a=>{if(a[t]===e)s=i;else{var r=a[this.childrenColumnName];r&&(s=this._findParentByChildKeyValue(e,t,r,a))}return!!s})),s})),(0,s.Z)(this,"_handleRowSelectChange",((e,t)=>{var a=this._getRowKey(),i=(0,g.keyBy)(t,a);if(this._selected){var s=[...e];if(this._allChildren.forEach((e=>{var t=e[a];s.push(t),i[t]=e})),this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow){var r=new Set(e),n=this._findParentByChildKeyValue(this._selectedRow[a],a,this._dataSource);if(n&&n[this.childrenColumnName].every((e=>r.has(e[a])))){var l=n[a];s.push(l),i[l]=n}}this.selectedRowKeys=(0,g.uniq)(s)}else{var h;this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow&&(h=this._findParentByChildKeyValue(this._selectedRow[a],a,this._dataSource)),this.selectedRowKeys=(0,g.pullAll)(e,(0,g.map)(this._allChildren.concat(h),a))}this._selectedRow=void 0;var d=(0,g.keyBy)(this.extraRows,a);this._selectedRows=this.selectedRowKeys.map((e=>i[e]||d[e]));var c=null,u=(0,g.isEmpty)(this._selectUpdateEventDetailField)?this._selectedRows:(0,g.map)(this._selectedRows,(e=>(0,g.get)(e,this._selectUpdateEventDetailField)));c=(0,g.isEmpty)(this._selectUpdateEventDetailKeys)||(0,g.isEmpty)(u)?u:(0,g.set)({},this._selectUpdateEventDetailKeys,u),(0,g.isEmpty)(c)||(c=(0,g.merge)(c,this._selectUpdateEventDetailExtra)),this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:c})):(0,o.Z)(this,ba).emit(c),(0,o.Z)(this,ya).emit(e)})),(0,s.Z)(this,"_getSelectedRowsWithChildren",(e=>{var t=[];return!(0,g.isEmpty)(e[this.childrenColumnName])&&(0,g.isArray)(e[this.childrenColumnName])&&(0,g.forEach)(e[this.childrenColumnName],(e=>{t.push(e),t.push(...this._getSelectedRowsWithChildren(e))})),t})),(0,s.Z)(this,"_handleOnSelect",((e,t)=>{this._selected=t,this._selectedRow=e,this._isInSelect=!0;var a=this._getRowKey(),i=this.selectAllChildren?this._getSelectedRowsWithChildren(e):[];this._allChildren=i,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=t?(0,g.uniq)([...this._disabledChildrenKeys,...(0,g.map)(i,a)]):(0,g.pullAll)(this._disabledChildrenKeys,[...(0,g.map)(i,a)])),this.storeCheckedByUrl&&a&&this._updateUrlChecked([e[a]],t)})),(0,s.Z)(this,"_handleSelectAll",((e,t,a)=>{this._selected=e,this._isInSelect=!0;var i=this._getRowKey();if(this.selectAllChildren){var s=(0,g.map)(this._dataSource,i),r=a.filter((e=>s.includes(e[i]))),n=(0,g.flatten)((0,g.map)(r,(e=>(0,g.map)(this._getSelectedRowsWithChildren(e),(e=>e[i]))))),l=(0,g.flatten)((0,g.map)(r,(e=>(0,g.map)(this._getSelectedRowsWithChildren(e),(e=>e)))));this._allChildren=l,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=e?(0,g.uniq)(this._disabledChildrenKeys.concat(n)):this._disabledChildrenKeys.filter((e=>!n.includes(e))))}this.storeCheckedByUrl&&i&&this._updateUrlChecked((0,g.map)(a,i),e)})),(0,s.Z)(this,"_getCheckedFromUrl",(()=>{var e=(0,Z.getHistory)(),t=new URLSearchParams(e.location.search).get("checked");return(0,g.isEmpty)(t)?[]:t.split(",")})),(0,s.Z)(this,"_updateUrlChecked",((e,t)=>{var a=(0,Z.getHistory)(),i=this._getCheckedFromUrl();t?i=[...i,...e]:(0,g.pull)(i,...e),this.shouldUpdateUrlParams&&a.pushQuery({checked:i.join(",")},{notify:!1})})),(0,s.Z)(this,"_handleOnChange",((e,t,a)=>{var i=(0,Z.getHistory)(),s=new URLSearchParams(i.location.search);if(!(0,g.isEmpty)(e))if(e.pageSize!==this.pageSize)e.current=1,s.set("page","1"),s.set("pageSize",(null==e?void 0:e.pageSize).toString()),(0,o.Z)(this,ma).emit({[this._fields.pageSize]:e.pageSize,[this._fields.page]:1}),this.page=1,this.pageSize=e.pageSize;else if(e.current!==this.page){var r=e.current||1;s.set("page",r.toString()),(0,o.Z)(this,ga).emit({[this._fields.page]:r}),this.page=r}this.filters=t,(0,g.isEmpty)(t)||(0,g.forEach)(t,((e,t)=>{(0,g.isNil)(e)||0===e.length?s.delete(t):s.set(t,e)})),a.order&&(0,g.isNil)(a.order)&&(a.columnKey!==this.sort||this._fields[a.order]!==this.order)&&(a.columnKey&&a.order?(s.set("sort",a.columnKey),s.set("order",this._fields[a.order].toString()),this.sort=a.columnKey,this.order=this._fields[a.order]):(s.delete("sort"),s.delete("order"),this.sort=null,this.order=null),(0,o.Z)(this,xa).emit({sort:this.sort,order:this.order})),this.frontSearch?(this.shouldUpdateUrlParams&&i.push("?".concat(s),{notify:!1}),this.frontendSearch(e,t,a)):this.shouldUpdateUrlParams&&i.push("?".concat(s),{notify:!!this.shouldRenderWhenUrlParamsUpdate})})),(0,s.Z)(this,"renderSelectInfo",(()=>c().createElement("span",{style:{marginLeft:20}},c().createElement("span",null,"已选择",this.selectedRowKeys.length,"项"),c().createElement("a",{role:"button",style:{marginLeft:"10px"},onClick:()=>{this.selectedRowKeys=[],this._selectedRows=[],this._disabledChildrenKeys=[],this._allChildren=[],this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:[]})):(0,o.Z)(this,ba).emit([])}},"清空")))),(0,s.Z)(this,"_handleOnExpand",((e,t)=>{if(this.expandedRowKeys){var a=this._getRowKey(),i=[(0,g.get)(t,a)],s=(0,g.get)(t,this.childrenColumnName);if(!(0,g.isEmpty)(s)){var r=(0,g.map)((0,g.filter)(s,(e=>(0,g.isEmpty)((0,g.get)(e,this.childrenColumnName)))),a);i.push(...r)}this.expandedRowKeys=e?[...this.expandedRowKeys,...i]:(0,g.pull)(this.expandedRowKeys,...i),this._render()}(0,o.Z)(this,Sa).emit({expanded:e,record:t})})),(0,s.Z)(this,"_handleOnExpandedRowsChange",(e=>{(0,o.Z)(this,Ma).emit({expandedRows:e})})),(0,s.Z)(this,"_handleOnDrag",(e=>{(0,o.Z)(this,Ra).emit({data:e})})),(0,s.Z)(this,"_getAllRows",(()=>{var e=[];return x(this._dataSource,this.childrenColumnName,e),e})),(0,s.Z)(this,"_handleDefaultSelectAll",(()=>{this._isInSelect=!0;var e=this._getRowKey();return this._selectedRows=this._getAllRows(),this.selectedRowKeys=(0,g.map)(this._selectedRows,e),this.selectedRowKeys})),(0,s.Z)(this,"_initConfigProps",(()=>{var e,t,a,s={current:this.page,pageSize:this.pageSize,total:(0,o.Z)(this,fi),showSizeChanger:!0,pageSizeOptions:["10","20","50"],showTotal:e=>{var t;return c().createElement(c().Fragment,null,c().createElement("span",{className:"totalText"},"共 ",c().createElement("strong",{className:"total"},e)," 条"),((null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)||this.rowSelection)&&this.showSelectInfo&&0!==this.selectedRowKeys.length&&this.renderSelectInfo())}},r=this._getRowKey();this.rowDisabledConfig&&(a=Array.isArray(this.rowDisabledConfig)?this.rowDisabledConfig:[this.rowDisabledConfig]);var n=(0,i.Z)((0,i.Z)({},r?{selectedRowKeys:this._isInSelect?this.selectedRowKeys:this.storeCheckedByUrl?this._getCheckedFromUrl():this.defaultSelectAll?this._handleDefaultSelectAll():this.selectedRowKeys,onSelect:this._handleOnSelect,onSelectAll:this._handleSelectAll,onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0}:{onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0}),{},{getCheckboxProps:e=>!(0,g.isEmpty)(this._disabledChildrenKeys)&&this._disabledChildrenKeys.includes((0,g.get)(e,r))?{disabled:!0}:a?{disabled:a.some((t=>{var{field:a,value:i,operator:s}=t,r=f[s];return null==r?void 0:r(i,(0,g.get)(e,a))}))}:{}});this.configProps?(this._finalConfigProps=(0,g.cloneDeep)(this.configProps),!1!==this.configProps.pagination&&(this._finalConfigProps.pagination=(0,i.Z)((0,i.Z)((0,i.Z)({},s),this.pagination),this.configProps.pagination),void 0!==this.configProps.pagination&&null!==this.configProps.pagination||!1!==this.pagination||(this._finalConfigProps.pagination=!1)),this.configProps.size||(this._finalConfigProps.size=this.size)):(this._finalConfigProps={},this._finalConfigProps.pagination=!1!==this.pagination&&s,this._finalConfigProps.size=this.size);var l,h,d=null!==(e=null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)&&void 0!==e?e:this.rowSelection;d?this._finalConfigProps.rowSelection=!0===d?(0,i.Z)((0,i.Z)({},n),{},{type:null!==(l=this.type)&&void 0!==l?l:"checkbox"}):(0,i.Z)((0,i.Z)((0,i.Z)({},n),{},{type:null!==(h=this.type)&&void 0!==h?h:"checkbox"},d),n.selectedRowKeys?{selectedRowKeys:n.selectedRowKeys}:{}):this.type?this._finalConfigProps.rowSelection=(0,i.Z)((0,i.Z)({},n),{},{type:this.type}):this._finalConfigProps.rowSelection=!1,this._columns&&(this._columns=this._columns.map((e=>{if((0,g.isNil)(e.key)&&(e.key=e.dataIndex),e.sorter&&(e.sortOrder=this.sort===e.key&&!(0,g.isNil)(this.order)&&(this._fields.ascend===this.order?"ascend":"descend")),e.filters){var t,a,i=(0,Z.getHistory)(),s=null!==(t=new URLSearchParams(i.location.search).get(e.key))&&void 0!==t?t:null===(a=(0,g.get)(this.filters,e.key))||void 0===a?void 0:a.join(",");(0,g.isNil)(s)||(0,g.isEmpty)(s)?(e.filtered=!1,e.filteredValue=[]):(e.filtered=!0,e.filteredValue=s.split(",").map((t=>{var a,i;return null!==(a=null===(i=(0,g.find)(e.filters,(e=>String(e.value)===t)))||void 0===i?void 0:i.value)&&void 0!==a?a:t})))}return e})))}))}set columns(e){this._columns=e,this._render()}get columns(){return this._columns}set dataSource(e){var t,a,i,s,r,n;this._isInSelect=!1,this._originalDataSource=e,this._dataSource=(0,g.cloneDeep)(this._fields.dataSource?(0,g.get)(e,this._fields.dataSource):e),this._pureSource=(0,g.cloneDeep)(this._dataSource),this.stripEmptyExpandableChildren&&C((null===(n=this.configProps)||void 0===n||null===(n=n.expandable)||void 0===n?void 0:n.childrenColumnName)||"children",this._dataSource),(0,l.Z)(this,fi,(0,g.get)(e,this._fields.total)),this.page=null!==(t=null!==(a=(0,g.get)(e,"page"))&&void 0!==a?a:this.page)&&void 0!==t?t:1,this.pageSize=null!==(i=null!==(s=null!==(r=(0,g.get)(e,"page_size"))&&void 0!==r?r:(0,g.get)(e,"pageSize"))&&void 0!==s?s:this.pageSize)&&void 0!==i?i:10,this._render()}get showCard(){return(0,o.Z)(this,Wa)}set showCard(e){(0,l.Z)(this,Wa,e)}get rowSelection(){return(0,o.Z)(this,Na)}set rowSelection(e){(0,l.Z)(this,Na,e)}get rowKey(){return(0,o.Z)(this,Ia)}set rowKey(e){(0,l.Z)(this,Ia,e)}get hiddenColumns(){return(0,o.Z)(this,Ba)}set hiddenColumns(e){(0,l.Z)(this,Ba,e)}get showSelectInfo(){return(0,o.Z)(this,Ka)}set showSelectInfo(e){(0,l.Z)(this,Ka,e)}get filters(){return(0,o.Z)(this,Da)}set filters(e){(0,l.Z)(this,Da,e)}get configProps(){return(0,o.Z)(this,Pa)}set configProps(e){(0,l.Z)(this,Pa,e)}get sort(){return(0,o.Z)(this,za)}set sort(e){(0,l.Z)(this,za,e)}get order(){return(0,o.Z)(this,Ua)}set order(e){(0,l.Z)(this,Ua,e)}get rowDisabledConfig(){return(0,o.Z)(this,Aa)}set rowDisabledConfig(e){(0,l.Z)(this,Aa,e)}get expandedRowBrick(){return(0,o.Z)(this,Ta)}set expandedRowBrick(e){(0,l.Z)(this,Ta,e)}get expandIcon(){return(0,o.Z)(this,Fa)}set expandIcon(e){(0,l.Z)(this,Fa,e)}get expandIconAsCell(){return(0,o.Z)(this,Ha)}set expandIconAsCell(e){(0,l.Z)(this,Ha,e)}get expandIconColumnIndex(){return(0,o.Z)(this,La)}set expandIconColumnIndex(e){(0,l.Z)(this,La,e)}get expandRowByClick(){return(0,o.Z)(this,qa)}set expandRowByClick(e){(0,l.Z)(this,qa,e)}get optimizedColumns(){return(0,o.Z)(this,Oa)}set optimizedColumns(e){(0,l.Z)(this,Oa,e)}get stripEmptyExpandableChildren(){return(0,o.Z)(this,$a)}set stripEmptyExpandableChildren(e){(0,l.Z)(this,$a,e)}get defaultExpandAllRows(){return(0,o.Z)(this,Qa)}set defaultExpandAllRows(e){(0,l.Z)(this,Qa,e)}get ellipsisInfo(){return(0,o.Z)(this,ja)}set ellipsisInfo(e){(0,l.Z)(this,ja,e)}get expandedRowKeys(){return(0,o.Z)(this,Va)}set expandedRowKeys(e){(0,l.Z)(this,Va,e)}get selectAllChildren(){return(0,o.Z)(this,Ga)}set selectAllChildren(e){(0,l.Z)(this,Ga,e)}get defaultSelectAll(){return(0,o.Z)(this,Ya)}set defaultSelectAll(e){(0,l.Z)(this,Ya,e)}get childrenColumnName(){return(0,o.Z)(this,Ja)}set childrenColumnName(e){(0,l.Z)(this,Ja,e)}get sortable(){return(0,o.Z)(this,Xa)}set sortable(e){(0,l.Z)(this,Xa,e)}set fields(e){this._fields=(0,i.Z)((0,i.Z)({},this._fields),e),this._render()}get frontSearch(){return(0,o.Z)(this,ei)}set frontSearch(e){(0,l.Z)(this,ei,e)}get frontSearchQuery(){return(0,o.Z)(this,ti)}set frontSearchQuery(e){(0,l.Z)(this,ti,e)}get exactSearch(){return(0,o.Z)(this,ai)}set exactSearch(e){(0,l.Z)(this,ai,e)}get frontSearchFilterKeys(){return(0,o.Z)(this,ii)}set frontSearchFilterKeys(e){(0,l.Z)(this,ii,e)}get page(){return(0,o.Z)(this,si)}set page(e){(0,l.Z)(this,si,e)}get pageSize(){return(0,o.Z)(this,ri)}set pageSize(e){(0,l.Z)(this,ri,e)}get scrollConfigs(){return(0,o.Z)(this,ni)}set scrollConfigs(e){(0,l.Z)(this,ni,e)}get qField(){return(0,o.Z)(this,li)}set qField(e){(0,l.Z)(this,li,e)}get tableDraggable(){return(0,o.Z)(this,oi)}set tableDraggable(e){(0,l.Z)(this,oi,e)}get zebraPattern(){return(0,o.Z)(this,hi)}set zebraPattern(e){(0,l.Z)(this,hi,e)}get storeCheckedByUrl(){return(0,o.Z)(this,di)}set storeCheckedByUrl(e){(0,l.Z)(this,di,e)}get extraRows(){return(0,o.Z)(this,ci)}set extraRows(e){(0,l.Z)(this,ci,e)}get autoSelectParentWhenAllChildrenSelected(){return(0,o.Z)(this,ui)}set autoSelectParentWhenAllChildrenSelected(e){(0,l.Z)(this,ui,e)}get thTransparent(){return(0,o.Z)(this,pi)}set thTransparent(e){(0,l.Z)(this,pi,e)}get showHeader(){return(0,o.Z)(this,wi)}set showHeader(e){(0,l.Z)(this,wi,e)}get pagination(){return(0,o.Z)(this,gi)}set pagination(e){(0,l.Z)(this,gi,e)}get size(){return(0,o.Z)(this,Zi)}set size(e){(0,l.Z)(this,Zi,e)}get type(){return(0,o.Z)(this,mi)}set type(e){(0,l.Z)(this,mi,e)}get shouldUpdateUrlParams(){return(0,o.Z)(this,vi)}set shouldUpdateUrlParams(e){(0,l.Z)(this,vi,e)}get shouldRenderWhenUrlParamsUpdate(){return(0,o.Z)(this,bi)}set shouldRenderWhenUrlParamsUpdate(e){(0,l.Z)(this,bi,e)}get processedDataSource(){return this._dataSource}get processConfigProps(){return this._finalConfigProps}get processedColumns(){return this.getModifyColumns()}get selectedRowKeys(){return(0,o.Z)(this,yi)}set selectedRowKeys(e){(0,l.Z)(this,yi,e)}filterSourceData(e){var t=this.exactSearch?e.detail.q.trim():e.detail.q.trim().toLowerCase();if(this.shouldUpdateUrlParams){var a=(0,Z.getHistory)(),i=new URLSearchParams(a.location.search);i.set("page","1"),t?(i.set(this.qField,t),a.push("?".concat(i),{notify:!this.frontSearch})):(i.delete(this.qField),a.push("?".concat(i),{notify:!this.frontSearch})),this.page=1}this.frontSearchQuery=t}handleFrontendDataChange(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this.shouldUpdateUrlParams){var a=(0,Z.getHistory)(),i=new URLSearchParams(a.location.search);this.frontSearchQuery=i.get(this.qField)}var s=[];s=this.handleFrontendFilterSource(e,this.frontSearchQuery||"",t);var r=(0,g.isNil)(this.order)?null:this._fields.ascend===this.order?"ascend":"descend";return s=this.handleFrontendSorter(s,{columnKey:this.sort,order:r}),s=this.handleFrontendFilters(s),(0,l.Z)(this,fi,s.length),s}handleFrontendFilterSource(e,t,a,s){if(!t)return e;var r=[];return s||(s=this.frontSearchFilterKeys||a.map((e=>e.dataIndex))),e.forEach((e=>{var n,l=e[this.childrenColumnName];if(l){var o=this.handleFrontendFilterSource(l,t,a,s);if(o.length>0)return void r.push((0,i.Z)((0,i.Z)({},e),{},{[this.childrenColumnName]:o}))}(null===(n=s)||void 0===n?void 0:n.some((a=>{var i=(0,g.get)(e,a);return!(0,g.isNil)(i)&&(this.exactSearch?i===t:JSON.stringify(i).toLowerCase().includes(t))})))&&r.push(e)})),r}handleFrontendSorter(e,t){var a=e||[],{columnKey:i,order:s}=t;if(!i||!s)return e;var r=1;return"descend"===s?r=-1:"ascend"===s&&(r=1),void 0!==r&&(a.sort(((e,t)=>{var a=(0,g.get)(e,i),s=(0,g.get)(t,i);if((0,g.isNil)(a)){if(!(0,g.isNil)(s))return 1}else if((0,g.isNil)(s))return-1;return a==s?0:a>s?r:-r})),a.forEach((e=>{var a=e[this.childrenColumnName];a&&this.handleFrontendSorter(a,t)}))),a}handleFrontendFilters(e){var t=e||[],a=(0,g.map)(this.filters,((e,t)=>({key:t,value:e}))).filter((e=>!(0,g.isNil)(e.value)&&0!==e.value.length));return t.filter((e=>(0,g.every)(a,(t=>{var a,i;return null===(a=null===(i=t.value)||void 0===i?void 0:i.includes((0,g.get)(e,t.key)))||void 0===a||a}))))}frontendSearch(e,t,a){this.sort=(0,g.isNil)(a.order)?null:a.columnKey,this.order=(0,g.isNil)(a.order)?null:this._fields[a.order]}expandAll(){var e=[],t=this._getRowKey();this._dataSource&&k(this._dataSource,t,this.childrenColumnName,e),this.expandedRowKeys=e}getModifyColumns(){var e=this._columns;return this._columns&&this.hiddenColumns&&(e=this._columns.filter((e=>{var t,a;return!(null!==(t=this.hiddenColumns)&&void 0!==t&&t.includes(null!==(a=e.dataIndex)&&void 0!==a?a:e.key))}))),!1===this.sortable&&(e=(0,g.map)(e,(e=>(e.sorter=!1,e)))),e}render(){return this.frontSearch&&(this._dataSource=this.handleFrontendDataChange(this._pureSource,this._columns)),this._initConfigProps(),c().createElement(H,{shadowRoot:this.shadowRoot,dataSource:this._dataSource||[],columns:this.getModifyColumns(),configProps:this._finalConfigProps,error:this._error,onChange:this._handleOnChange,showCard:this.showCard,showHeader:this.showHeader,expandedRowBrick:this.expandedRowBrick,expandIconAsCell:this.expandIconAsCell,expandIconColumnIndex:this.expandIconColumnIndex,expandRowByClick:this.expandRowByClick,defaultExpandAllRows:this.defaultExpandAllRows,onExpand:this._handleOnExpand,onExpandedRowsChange:this._handleOnExpandedRowsChange,expandedRowKeys:this.expandedRowKeys,rowKey:this._getRowKey(),childrenColumnName:this.childrenColumnName,tableDraggable:this.tableDraggable||this.draggable,onDrag:this._handleOnDrag,zebraPattern:this.zebraPattern,expandIcon:this.expandIcon,scroll:this.scrollConfigs,optimizedColumns:this.optimizedColumns,ellipsisInfo:this.ellipsisInfo,thTransparent:this.thTransparent})}_test_only_getOriginalDataSource(){return this._originalDataSource}updateData(e){this._dataSource=e.detail,this._error=null,this._render()}updateError(e){this._error=e.detail,this._render()}set selectUpdateEventName(e){this._selectUpdateEventName=e}set selectUpdateEventDetailKeys(e){this._selectUpdateEventDetailKeys=e}set selectUpdateEventDetailField(e){this._selectUpdateEventDetailField=e}set selectUpdateEventDetailExtra(e){this._selectUpdateEventDetailExtra=e}}function xi(e){j(this,e)}function Ci(){return Q(this)}function Si(e){J(this,e)}function _i(){return Y(this)}function Mi(e){ae(this,e)}function Ei(){return te(this)}function Ri(e){ne(this,e)}function Wi(){return re(this)}function Ni(e){de(this,e)}function Ii(){return he(this)}function Bi(e){we(this,e)}function Ki(){return pe(this)}function Di(e){ve(this,e)}function Pi(){return me(this)}function zi(e){ke(this,e)}function Ui(){return ye(this)}oa=ki,({e:[$,Q,j,G,Y,J,ee,te,ae,se,re,ne,oe,he,de,ue,pe,we,Ze,me,ve,fe,ye,ke,Ce,_e,Ee,We,Ie,Ke,Pe,Ue,Te,He,qe,$e,je,Ge,Je,et,at,st,nt,ot,dt,ut,wt,Zt,vt,ft,kt,Ct,_t,Et,Wt,It,Kt,Pt,Ut,Tt,Ht,qt,$t,jt,Gt,Jt,ea,aa,sa,la],c:[ha,L]}=(0,h.Z)(oa,[[O,1,"pageUpdate",e=>(0,o.Z)(e,wa),(e,t)=>(0,l.Z)(e,wa,t)],[V,1,"filterUpdate",e=>(0,o.Z)(e,Za),(e,t)=>(0,l.Z)(e,Za,t)],[X,1,"selectUpdate",e=>(0,o.Z)(e,va),(e,t)=>(0,l.Z)(e,va,t)],[ie,1,"selectRowKeysUpdate",e=>(0,o.Z)(e,fa),(e,t)=>(0,l.Z)(e,fa,t)],[le,1,"sortUpdate",e=>(0,o.Z)(e,ka),(e,t)=>(0,l.Z)(e,ka,t)],[ce,1,"rowExpand",e=>(0,o.Z)(e,Ca),(e,t)=>(0,l.Z)(e,Ca,t)],[ge,1,"expandRowsChange",e=>(0,o.Z)(e,_a),(e,t)=>(0,l.Z)(e,_a,t)],[be,1,"rowDrag",e=>(0,o.Z)(e,Ea),(e,t)=>(0,l.Z)(e,Ea,t)],[xe,1,"showCard"],[Se,1,"rowSelection"],[Me,1,"rowKey"],[Re,1,"hiddenColumns"],[Ne,1,"showSelectInfo"],[Be,1,"filters"],[De,1,"configProps"],[ze,1,"sort"],[Ae,1,"order"],[Fe,1,"rowDisabledConfig"],[Le,1,"expandedRowBrick"],[Oe,1,"expandIcon"],[Qe,1,"expandIconAsCell"],[Ve,1,"expandIconColumnIndex"],[Ye,1,"expandRowByClick"],[Xe,1,"optimizedColumns"],[tt,1,"stripEmptyExpandableChildren"],[it,1,"defaultExpandAllRows"],[rt,1,"ellipsisInfo"],[lt,1,"expandedRowKeys"],[ht,1,"selectAllChildren"],[ct,1,"defaultSelectAll"],[pt,1,"childrenColumnName"],[gt,1,"sortable"],[mt,1,"frontSearch"],[bt,1,"frontSearchQuery"],[yt,1,"exactSearch"],[xt,1,"frontSearchFilterKeys"],[St,1,"page"],[Mt,1,"pageSize"],[Rt,1,"scrollConfigs"],[Nt,1,"qField"],[Bt,1,"tableDraggable"],[Dt,1,"zebraPattern"],[zt,1,"storeCheckedByUrl"],[At,1,"extraRows"],[Ft,1,"autoSelectParentWhenAllChildrenSelected"],[Lt,1,"thTransparent"],[Ot,1,"showHeader"],[Qt,1,"pagination"],[Vt,1,"size"],[Yt,1,"type"],[Xt,1,"shouldUpdateUrlParams"],[ta,1,"shouldRenderWhenUrlParamsUpdate"],[ia,1,"selectedRowKeys"],[ra,2,"filterSourceData"],[na,2,"expandAll"]],[q],0,(e=>fi.has((0,n.Z)(e))),p.ReactNextElement)),L();var Ai,Ti,Fi,Hi,Li,qi,Oi,$i,Qi,ji,Vi,Gi,Yi=a(2859),Ji=a(8786),Xi=a(2553),{method:es,property:ts}=(0,u.createDecorators)();Ai=ts({attribute:!1}),Fi=ts({attribute:!1}),Li=ts({attribute:!1}),Oi=ts({attribute:!1}),Qi=es(),ji=es();var as=new WeakMap,is=new WeakMap,ss=new WeakMap,rs=new WeakMap,ns=new WeakMap,ls=new WeakMap,os=new WeakMap,hs=new WeakMap,ds=new WeakMap,cs=new WeakMap;class us extends p.ReactNextElement{constructor(){super(...arguments),(0,r.Z)(this,ls,{get:ms,set:vs}),(0,r.Z)(this,rs,{get:gs,set:Zs}),(0,r.Z)(this,is,{get:ps,set:ws}),(0,r.Z)(this,as,{writable:!0,value:!1}),(0,r.Z)(this,ss,{writable:!0,value:"normal"}),(0,r.Z)(this,ns,{writable:!0,value:!1}),(0,r.Z)(this,os,{writable:!0,value:(Vi(this),Ti(this))}),(0,r.Z)(this,hs,{writable:!0,value:Hi(this)}),(0,r.Z)(this,ds,{writable:!0,value:qi(this)}),(0,r.Z)(this,cs,{writable:!0,value:$i(this)})}get isFormItemElement(){return!0}set validateState(e){(0,l.Z)(this,rs,e),this._render()}get validateState(){return(0,o.Z)(this,rs)}set notRender(e){this.hidden=e,(0,l.Z)(this,is,e),this._render()}get notRender(){return(0,o.Z)(this,is)}get $bindFormItem(){return(0,o.Z)(this,ls)}set $bindFormItem(e){(0,l.Z)(this,ls,e),this._render()}get helpBrick(){return(0,o.Z)(this,os)}set helpBrick(e){(0,l.Z)(this,os,e)}get labelBrick(){return(0,o.Z)(this,hs)}set labelBrick(e){(0,l.Z)(this,hs,e)}get labelCol(){return(0,o.Z)(this,ds)}set labelCol(e){(0,l.Z)(this,ds,e)}get wrapperCol(){return(0,o.Z)(this,cs)}set wrapperCol(e){(0,l.Z)(this,cs,e)}setNotRender(e){this.notRender=e}getFormElement(){for(var e=this;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function ps(){return(0,o.Z)(this,as)}function ws(e){(0,l.Z)(this,as,e)}function gs(){return(0,o.Z)(this,ss)}function Zs(e){(0,l.Z)(this,ss,e)}function ms(){return(0,o.Z)(this,ns)}function vs(e){(0,l.Z)(this,ns,e)}Gi=us,[Ti,Hi,qi,$i,Vi]=(0,h.Z)(Gi,[[Ai,1,"helpBrick"],[Fi,1,"labelBrick"],[Li,1,"labelCol"],[Oi,1,"wrapperCol"],[Qi,2,"setNotRender"],[ji,2,"getFormElement"]],[],0,void 0,p.ReactNextElement).e;var bs,fs,ys,ks,xs,Cs,Ss,_s,Ms,Es,Rs,Ws,Ns,Is,Bs,Ks,Ds,Ps,zs,Us,As,Ts,Fs,Hs,Ls,qs,Os,$s,Qs,js,Vs,Gs,Ys,Js,Xs,er,tr,ar,ir,sr,rr,nr,lr,or,hr,dr=a(443),{defineElement:cr,property:ur,event:pr}=(0,u.createDecorators)(),wr=(0,p.wrapBrick)("eo-icon"),gr=(0,p.wrapBrick)("eo-form-item");fs=cr("eo-cascader",{alias:["advanced.general-cascader"],styleTexts:[dr.Z]}),ys=ur(),xs=ur(),Ss=ur({type:Boolean}),Ms=ur({attribute:!1}),Rs=ur({attribute:!1}),Ns=ur({attribute:!1}),Bs=ur(),Ds=ur({type:Boolean}),zs=ur({type:Boolean}),As=ur({type:Boolean}),Fs=ur({type:Boolean}),Ls=ur({attribute:!1}),Os=ur(),Qs=ur(),Vs=ur(),Ys=ur({type:Number}),Xs=ur({attribute:!1}),tr=ur({attribute:!1}),ir=pr({type:"cascader.change"});var Zr=new WeakMap,mr=new WeakMap,vr=new WeakMap,br=new WeakMap,fr=new WeakMap,yr=new WeakMap,kr=new WeakMap,xr=new WeakMap,Cr=new WeakMap,Sr=new WeakMap,_r=new WeakMap,Mr=new WeakMap,Er=new WeakMap,Rr=new WeakMap,Wr=new WeakMap,Nr=new WeakMap,Ir=new WeakMap,Br=new WeakMap,Kr=new WeakMap,Dr=new WeakMap;function Pr(e){nr(this,e)}function zr(){return rr(this)}function Ur(e){var{shadowRoot:t,options:a,fieldNames:i,value:s,placeholder:r,disabled:n,multiple:l,allowClear:o,showSearch:h,expandTrigger:u,size:p,limit:w,popupPlacement:g,cascaderStyle:Z,suffixIcon:m,maxTagCount:v,onChange:b}=e,f=(0,B.useCurrentTheme)(),y=(0,d.useMemo)((()=>(0,K.Df)()),[]);return c().createElement(Yi.ZP,{theme:{algorithm:"dark-v2"===f?Ji.Z.darkAlgorithm:Ji.Z.defaultAlgorithm}},c().createElement(K.V9,{container:t,cache:y},c().createElement(Xi.Z,{getPopupContainer:e=>e.parentElement,allowClear:o,disabled:n,multiple:l,expandTrigger:u,fieldNames:i,placeholder:r,size:p,showSearch:h&&{limit:w,filter:(e,t)=>{for(var a,s=(null==i?void 0:i.label)||"label",r=e.split(" ").filter((e=>e)).map((e=>e.toLocaleLowerCase())),n=function(e){if(!t.some((t=>t[s].toLowerCase().includes(r[e]))))return{v:!1}},l=0;l<r.length;l++)if(a=n(l))return a.v;return!0}},placement:g,style:Z,suffixIcon:m&&c().createElement(wr,m),maxTagCount:v,value:s,options:a,onChange:(e,t)=>null==b?void 0:b(e,t)})))}or=class extends us{constructor(){super(...arguments),(0,r.Z)(this,Dr,{get:zr,set:Pr}),(0,r.Z)(this,Zr,{writable:!0,value:(lr(this),ks(this))}),(0,r.Z)(this,mr,{writable:!0,value:Cs(this)}),(0,r.Z)(this,vr,{writable:!0,value:_s(this)}),(0,r.Z)(this,br,{writable:!0,value:Es(this)}),(0,r.Z)(this,fr,{writable:!0,value:Ws(this,{label:"label",value:"value",children:"children"})}),(0,r.Z)(this,yr,{writable:!0,value:Is(this)}),(0,r.Z)(this,kr,{writable:!0,value:Ks(this)}),(0,r.Z)(this,xr,{writable:!0,value:Ps(this)}),(0,r.Z)(this,Cr,{writable:!0,value:Us(this)}),(0,r.Z)(this,Sr,{writable:!0,value:Ts(this,!0)}),(0,r.Z)(this,_r,{writable:!0,value:Hs(this,!0)}),(0,r.Z)(this,Mr,{writable:!0,value:qs(this)}),(0,r.Z)(this,Er,{writable:!0,value:$s(this,"click")}),(0,r.Z)(this,Rr,{writable:!0,value:js(this,"bottomLeft")}),(0,r.Z)(this,Wr,{writable:!0,value:Gs(this)}),(0,r.Z)(this,Nr,{writable:!0,value:Js(this,50)}),(0,r.Z)(this,Ir,{writable:!0,value:er(this)}),(0,r.Z)(this,Br,{writable:!0,value:ar(this)}),(0,r.Z)(this,Kr,{writable:!0,value:sr(this)}),(0,s.Z)(this,"handleOnChange",((e,t)=>{this.value=e,Promise.resolve().then((()=>{(0,o.Z)(this,Dr).emit({value:e,selectedOptions:t})}))}))}get name(){return(0,o.Z)(this,Zr)}set name(e){(0,l.Z)(this,Zr,e)}get label(){return(0,o.Z)(this,mr)}set label(e){(0,l.Z)(this,mr,e)}get required(){return(0,o.Z)(this,vr)}set required(e){(0,l.Z)(this,vr,e)}get options(){return(0,o.Z)(this,br)}set options(e){(0,l.Z)(this,br,e)}get fieldNames(){return(0,o.Z)(this,fr)}set fieldNames(e){(0,l.Z)(this,fr,e)}get value(){return(0,o.Z)(this,yr)}set value(e){(0,l.Z)(this,yr,e)}get placeholder(){return(0,o.Z)(this,kr)}set placeholder(e){(0,l.Z)(this,kr,e)}get multiple(){return(0,o.Z)(this,xr)}set multiple(e){(0,l.Z)(this,xr,e)}get disabled(){return(0,o.Z)(this,Cr)}set disabled(e){(0,l.Z)(this,Cr,e)}get allowClear(){return(0,o.Z)(this,Sr)}set allowClear(e){(0,l.Z)(this,Sr,e)}get showSearch(){return(0,o.Z)(this,_r)}set showSearch(e){(0,l.Z)(this,_r,e)}get suffixIcon(){return(0,o.Z)(this,Mr)}set suffixIcon(e){(0,l.Z)(this,Mr,e)}get expandTrigger(){return(0,o.Z)(this,Er)}set expandTrigger(e){(0,l.Z)(this,Er,e)}get popupPlacement(){return(0,o.Z)(this,Rr)}set popupPlacement(e){(0,l.Z)(this,Rr,e)}get size(){return(0,o.Z)(this,Wr)}set size(e){(0,l.Z)(this,Wr,e)}get limit(){return(0,o.Z)(this,Nr)}set limit(e){(0,l.Z)(this,Nr,e)}get maxTagCount(){return(0,o.Z)(this,Ir)}set maxTagCount(e){(0,l.Z)(this,Ir,e)}get cascaderStyle(){return(0,o.Z)(this,Br)}set cascaderStyle(e){(0,l.Z)(this,Br,e)}render(){return c().createElement(gr,{curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,trigger:"handleOnChange"},c().createElement(Ur,{shadowRoot:this.shadowRoot,options:this.options,fieldNames:this.fieldNames,value:this.value,multiple:this.multiple,placeholder:this.placeholder,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,expandTrigger:this.expandTrigger,suffixIcon:this.suffixIcon,size:this.size,limit:this.limit,popupPlacement:this.popupPlacement,maxTagCount:this.maxTagCount,cascaderStyle:this.cascaderStyle,onChange:this.handleOnChange}))}},({e:[ks,Cs,_s,Es,Ws,Is,Ks,Ps,Us,Ts,Hs,qs,$s,js,Gs,Js,er,ar,sr,rr,nr,lr],c:[hr,bs]}=(0,h.Z)(or,[[ys,1,"name"],[xs,1,"label"],[Ss,1,"required"],[Ms,1,"options"],[Rs,1,"fieldNames"],[Ns,1,"value"],[Bs,1,"placeholder"],[Ds,1,"multiple"],[zs,1,"disabled"],[As,1,"allowClear"],[Fs,1,"showSearch"],[Ls,1,"suffixIcon"],[Os,1,"expandTrigger"],[Qs,1,"popupPlacement"],[Vs,1,"size"],[Ys,1,"limit"],[Xs,1,"maxTagCount"],[tr,1,"cascaderStyle"],[ir,1,"changeEvent",e=>(0,o.Z)(e,Kr),(e,t)=>(0,l.Z)(e,Kr,t)]],[fs],0,(e=>Dr.has((0,n.Z)(e))),us)),bs();var Ar,Tr,Fr,Hr,Lr,qr,Or,$r,Qr,jr,Vr,Gr,Yr,Jr,Xr,en,tn,an,sn,rn,nn,ln,on,hn,dn,cn,un,pn,wn,gn,Zn,mn,vn,bn,fn,yn,kn,xn,Cn,Sn,_n,Mn,En,Rn,Wn,Nn,In,Bn,Kn,Dn,Pn,zn,Un,An,Tn,Fn,Hn,Ln,qn,On,$n,Qn,jn,Vn,Gn,Yn,Jn,Xn,el,tl,al,il,sl=a(750),rl=a(600),{defineElement:nl,property:ll,method:ol,event:hl}=(a(6713),(0,u.createDecorators)());Tr=nl("eo-next-table",{styleTexts:[sl.Z]}),Fr=ll(),Lr=ll({attribute:!1}),Or=ll({attribute:!1}),Qr=ll({type:Boolean}),Vr=ll({attribute:!1}),Yr=ll({type:Boolean}),Xr=ll({attribute:!1}),tn=ll({attribute:!1}),sn=ll({attribute:!1}),nn=ll({attribute:!1}),on=ll({attribute:!1}),dn=ll({attribute:!1}),un=ll(),wn=ll({type:Boolean}),Zn=ll({attribute:!1}),vn=ll(),fn=ll({type:Boolean}),kn=ll({attribute:!1}),Cn=ll({attribute:!1}),_n=ol(),Mn=hl({type:"page.change"}),Nn=hl({type:"page.size.change"}),Dn=hl({type:"sort.change"}),An=hl({type:"row.select"}),Ln=hl({type:"row.expand"}),Qn=hl({type:"expanded.rows.change"}),Yn=hl({type:"row.drag"});var dl=new WeakMap,cl=new WeakMap,ul=new WeakMap,pl=new WeakMap,wl=new WeakMap,gl=new WeakMap,Zl=new WeakMap,ml=new WeakMap,vl=new WeakMap,bl=new WeakMap,fl=new WeakMap,yl=new WeakMap,kl=new WeakMap,xl=new WeakMap,Cl=new WeakMap,Sl=new WeakMap,_l=new WeakMap,Ml=new WeakMap,El=new WeakMap,Rl=new WeakMap,Wl=new WeakMap,Nl=new WeakMap,Il=new WeakMap,Bl=new WeakMap,Kl=new WeakMap,Dl=new WeakMap,Pl=new WeakMap,zl=new WeakMap,Ul=new WeakMap,Al=new WeakMap,Tl=new WeakMap,Fl=new WeakMap,Hl=new WeakMap,Ll=new WeakMap,ql=new WeakMap,Ol=new WeakMap,$l=new WeakMap,Ql=new WeakMap,jl=new WeakMap,Vl=new WeakMap,Gl=new WeakMap,Yl=new WeakMap;class Jl extends p.ReactNextElement{constructor(){super(...arguments),(0,r.Z)(this,Gl,{get:po,set:uo}),(0,r.Z)(this,Ql,{get:co,set:ho}),(0,r.Z)(this,ql,{get:oo,set:lo}),(0,r.Z)(this,Fl,{get:no,set:ro}),(0,r.Z)(this,Ul,{get:so,set:io}),(0,r.Z)(this,Dl,{get:ao,set:to}),(0,r.Z)(this,Il,{get:eo,set:Xl}),(0,r.Z)(this,dl,{writable:!0,value:(0,d.createRef)()}),(0,r.Z)(this,cl,{writable:!0,value:(tl(this),Hr(this,"key"))}),(0,r.Z)(this,ul,{writable:!0,value:qr(this)}),(0,r.Z)(this,pl,{writable:!0,value:$r(this)}),(0,r.Z)(this,wl,{writable:!0,value:jr(this)}),(0,r.Z)(this,gl,{writable:!0,value:Gr(this)}),(0,r.Z)(this,Zl,{writable:!0,value:Jr(this)}),(0,r.Z)(this,ml,{writable:!0,value:en(this)}),(0,r.Z)(this,vl,{writable:!0,value:an(this)}),(0,r.Z)(this,bl,{writable:!0,value:rn(this)}),(0,r.Z)(this,fl,{writable:!0,value:ln(this)}),(0,r.Z)(this,yl,{writable:!0,value:hn(this)}),(0,r.Z)(this,kl,{writable:!0,value:cn(this)}),(0,r.Z)(this,xl,{writable:!0,value:pn(this,"children")}),(0,r.Z)(this,Cl,{writable:!0,value:gn(this)}),(0,r.Z)(this,Sl,{writable:!0,value:mn(this)}),(0,r.Z)(this,_l,{writable:!0,value:bn(this,"large")}),(0,r.Z)(this,Ml,{writable:!0,value:yn(this,!0)}),(0,r.Z)(this,El,{writable:!0,value:void 0}),(0,r.Z)(this,Rl,{writable:!0,value:xn(this,{x:!0})}),(0,r.Z)(this,Wl,{writable:!0,value:Sn(this)}),(0,r.Z)(this,Nl,{writable:!0,value:En(this)}),(0,r.Z)(this,Bl,{writable:!0,value:e=>{(0,o.Z)(this,Il).emit(e)}}),(0,r.Z)(this,Kl,{writable:!0,value:In(this)}),(0,r.Z)(this,Pl,{writable:!0,value:e=>{(0,o.Z)(this,Dl).emit(e)}}),(0,r.Z)(this,zl,{writable:!0,value:Pn(this)}),(0,r.Z)(this,Al,{writable:!0,value:e=>{(0,o.Z)(this,Ul).emit(e)}}),(0,r.Z)(this,Tl,{writable:!0,value:Tn(this)}),(0,r.Z)(this,Hl,{writable:!0,value:e=>{(0,o.Z)(this,Fl).emit(e)}}),(0,r.Z)(this,Ll,{writable:!0,value:qn(this)}),(0,r.Z)(this,Ol,{writable:!0,value:e=>{(0,o.Z)(this,ql).emit(e)}}),(0,r.Z)(this,$l,{writable:!0,value:jn(this)}),(0,r.Z)(this,jl,{writable:!0,value:e=>{(0,o.Z)(this,Ql).emit(e)}}),(0,r.Z)(this,Vl,{writable:!0,value:Jn(this)}),(0,r.Z)(this,Yl,{writable:!0,value:e=>{(0,o.Z)(this,Gl).emit(e)}})}get rowKey(){return(0,o.Z)(this,cl)}set rowKey(e){(0,l.Z)(this,cl,e)}get columns(){return(0,o.Z)(this,ul)}set columns(e){(0,l.Z)(this,ul,e)}get dataSource(){return(0,o.Z)(this,pl)}set dataSource(e){(0,l.Z)(this,pl,e)}get frontSearch(){return(0,o.Z)(this,wl)}set frontSearch(e){(0,l.Z)(this,wl,e)}get pagination(){return(0,o.Z)(this,gl)}set pagination(e){(0,l.Z)(this,gl,e)}get multiSort(){return(0,o.Z)(this,Zl)}set multiSort(e){(0,l.Z)(this,Zl,e)}get sort(){return(0,o.Z)(this,ml)}set sort(e){(0,l.Z)(this,ml,e)}get rowSelection(){return(0,o.Z)(this,vl)}set rowSelection(e){(0,l.Z)(this,vl,e)}get selectedRowKeys(){return(0,o.Z)(this,bl)}set selectedRowKeys(e){(0,l.Z)(this,bl,e)}get hiddenColumns(){return(0,o.Z)(this,fl)}set hiddenColumns(e){(0,l.Z)(this,fl,e)}get expandable(){return(0,o.Z)(this,yl)}set expandable(e){(0,l.Z)(this,yl,e)}get expandedRowKeys(){return(0,o.Z)(this,kl)}set expandedRowKeys(e){(0,l.Z)(this,kl,e)}get childrenColumnName(){return(0,o.Z)(this,xl)}set childrenColumnName(e){(0,l.Z)(this,xl,e)}get rowDraggable(){return(0,o.Z)(this,Cl)}set rowDraggable(e){(0,l.Z)(this,Cl,e)}get searchFields(){return(0,o.Z)(this,Sl)}set searchFields(e){(0,l.Z)(this,Sl,e)}get size(){return(0,o.Z)(this,_l)}set size(e){(0,l.Z)(this,_l,e)}get showHeader(){return(0,o.Z)(this,Ml)}set showHeader(e){(0,l.Z)(this,Ml,e)}get bordered(){return(0,o.Z)(this,El)}set bordered(e){(0,l.Z)(this,El,e)}get scrollConfig(){return(0,o.Z)(this,Rl)}set scrollConfig(e){(0,l.Z)(this,Rl,e)}get optimizedColumns(){return(0,o.Z)(this,Wl)}set optimizedColumns(e){(0,l.Z)(this,Wl,e)}search(e){var t;null===(t=(0,o.Z)(this,dl).current)||void 0===t||t.search(e)}render(){return c().createElement(rl.v,{ref:(0,o.Z)(this,dl),shadowRoot:this.shadowRoot,rowKey:this.rowKey,columns:this.columns,dataSource:this.dataSource,frontSearch:this.frontSearch,pagination:this.pagination,multiSort:this.multiSort,sort:this.sort,rowSelection:this.rowSelection,selectedRowKeys:this.selectedRowKeys,hiddenColumns:this.hiddenColumns,expandable:this.expandable,expandedRowKeys:this.expandedRowKeys,childrenColumnName:this.childrenColumnName,rowDraggable:this.rowDraggable,searchFields:this.searchFields,size:this.size,showHeader:this.showHeader,bordered:this.bordered,scrollConfig:this.scrollConfig,optimizedColumns:this.optimizedColumns,onPageChange:(0,o.Z)(this,Bl),onPageSizeChange:(0,o.Z)(this,Pl),onSort:(0,o.Z)(this,Al),onRowSelect:(0,o.Z)(this,Hl),onRowExpand:(0,o.Z)(this,Ol),onExpandedRowsChange:(0,o.Z)(this,jl),onRowDrag:(0,o.Z)(this,Yl)})}}function Xl(e){Wn(this,e)}function eo(){return Rn(this)}function to(e){Kn(this,e)}function ao(){return Bn(this)}function io(e){Un(this,e)}function so(){return zn(this)}function ro(e){Hn(this,e)}function no(){return Fn(this)}function lo(e){$n(this,e)}function oo(){return On(this)}function ho(e){Gn(this,e)}function co(){return Vn(this)}function uo(e){el(this,e)}function po(){return Xn(this)}al=Jl,({e:[Hr,qr,$r,jr,Gr,Jr,en,an,rn,ln,hn,cn,pn,gn,mn,bn,yn,xn,Sn,En,Rn,Wn,In,Bn,Kn,Pn,zn,Un,Tn,Fn,Hn,qn,On,$n,jn,Vn,Gn,Jn,Xn,el,tl],c:[il,Ar]}=(0,h.Z)(al,[[Fr,1,"rowKey"],[Lr,1,"columns"],[Or,1,"dataSource"],[Qr,1,"frontSearch"],[Vr,1,"pagination"],[Yr,1,"multiSort"],[Xr,1,"sort"],[tn,1,"rowSelection"],[sn,1,"selectedRowKeys"],[nn,1,"hiddenColumns"],[on,1,"expandable"],[dn,1,"expandedRowKeys"],[un,1,"childrenColumnName"],[wn,1,"rowDraggable"],[Zn,1,"searchFields"],[vn,1,"size"],[fn,1,"showHeader"],[kn,1,"scrollConfig"],[Cn,1,"optimizedColumns"],[_n,2,"search"],[Mn,1,"pageChangeEvent",e=>(0,o.Z)(e,Nl),(e,t)=>(0,l.Z)(e,Nl,t)],[Nn,1,"pageSizeChangeEvent",e=>(0,o.Z)(e,Kl),(e,t)=>(0,l.Z)(e,Kl,t)],[Dn,1,"sortChangeEvent",e=>(0,o.Z)(e,zl),(e,t)=>(0,l.Z)(e,zl,t)],[An,1,"rowSelectEvent",e=>(0,o.Z)(e,Tl),(e,t)=>(0,l.Z)(e,Tl,t)],[Ln,1,"rowExpandEvent",e=>(0,o.Z)(e,Ll),(e,t)=>(0,l.Z)(e,Ll,t)],[Qn,1,"expandedRowsChangeEvent",e=>(0,o.Z)(e,$l),(e,t)=>(0,l.Z)(e,$l,t)],[Yn,1,"rowDragEvent",e=>(0,o.Z)(e,Vl),(e,t)=>(0,l.Z)(e,Vl,t)]],[Tr],0,(e=>Yl.has((0,n.Z)(e))),p.ReactNextElement)),Ar();var wo,go,Zo,mo,vo,bo,fo,yo,ko,xo,Co,So,_o,Mo,Eo,Ro,Wo,No,Io,Bo,Ko,Do=a(6244),Po=a(9915),{defineElement:zo,property:Uo,event:Ao}=(0,u.createDecorators)(),To=(0,p.wrapBrick)("eo-button"),Fo=(0,p.wrapBrick)("eo-icon"),Ho=(0,p.wrapBrick)("eo-checkbox",{onChange:"change"});go=zo("eo-workbench-layout",{styleTexts:[Po.Z]}),Zo=Uo(),vo=Uo({type:Boolean}),fo=Uo({attribute:!1}),ko=Uo({attribute:!1}),Co=Ao({type:"save"}),Eo=Ao({type:"cancel"});var Lo=new WeakMap,qo=new WeakMap,Oo=new WeakMap,$o=new WeakMap,Qo=new WeakMap,jo=new WeakMap,Vo=new WeakMap,Go=new WeakMap,Yo=new WeakMap,Jo=new WeakMap;class Xo extends p.ReactNextElement{constructor(){super(...arguments),(0,r.Z)(this,Yo,{get:ih,set:ah}),(0,r.Z)(this,jo,{get:th,set:eh}),(0,r.Z)(this,Lo,{writable:!0,value:(Io(this),mo(this))}),(0,r.Z)(this,qo,{writable:!0,value:bo(this)}),(0,r.Z)(this,Oo,{writable:!0,value:yo(this)}),(0,r.Z)(this,$o,{writable:!0,value:xo(this)}),(0,r.Z)(this,Qo,{writable:!0,value:So(this)}),(0,r.Z)(this,Vo,{writable:!0,value:e=>{(0,o.Z)(this,jo).emit(e)}}),(0,r.Z)(this,Go,{writable:!0,value:Ro(this)}),(0,r.Z)(this,Jo,{writable:!0,value:()=>{(0,o.Z)(this,Yo).emit()}})}get cardTitle(){return(0,o.Z)(this,Lo)}set cardTitle(e){(0,l.Z)(this,Lo,e)}get isEdit(){return(0,o.Z)(this,qo)}set isEdit(e){(0,l.Z)(this,qo,e)}get layouts(){return(0,o.Z)(this,Oo)}set layouts(e){(0,l.Z)(this,Oo,e)}get componentList(){return(0,o.Z)(this,$o)}set componentList(e){(0,l.Z)(this,$o,e)}render(){return c().createElement(rh,{cardTitle:this.cardTitle,layouts:this.layouts,componentList:this.componentList,isEdit:this.isEdit,onSave:(0,o.Z)(this,Vo),onCancel:(0,o.Z)(this,Jo)})}}function eh(e){Mo(this,e)}function th(){return _o(this)}function ah(e){No(this,e)}function ih(){return Wo(this)}Bo=Xo,({e:[mo,bo,yo,xo,So,_o,Mo,Ro,Wo,No,Io],c:[Ko,wo]}=(0,h.Z)(Bo,[[Zo,1,"cardTitle"],[vo,1,"isEdit"],[fo,1,"layouts"],[ko,1,"componentList"],[Co,1,"saveLayoutEvent",e=>(0,o.Z)(e,Qo),(e,t)=>(0,l.Z)(e,Qo,t)],[Eo,1,"cancelEvent",e=>(0,o.Z)(e,Go),(e,t)=>(0,l.Z)(e,Go,t)]],[go],0,(e=>Jo.has((0,n.Z)(e))),p.ReactNextElement)),wo();var sh=e=>null!=e&&e.includes(":")?e.split(":")[0]:e;function rh(e){var{cardTitle:t="卡片列表",layouts:a,componentList:s=[],isEdit:r,onSave:n,onCancel:l}=e,o=(0,d.useMemo)((()=>(0,Do.WidthProvider)(Do.Responsive)),[]),h=(0,d.useRef)(null),u=(0,d.useRef)(),p=(0,d.useRef)(null),[w,g]=(0,d.useState)(null!=a?a:[]),[Z,m]=(0,d.useState)(3),[v,b]=(0,d.useState)(),f=(0,d.useCallback)(((e,t)=>{u.current||(u.current=e);for(var a=!0,s=0;s<e.length;s++){var{x:r,w:n}=e[s];if(n>1&&r>0){a=!1;break}}a?u.current=e:g((e=>null==e?void 0:e.map((e=>{var t,a=null===(t=u.current)||void 0===t?void 0:t.find((t=>sh(t.i)===sh(e.i))),s="".concat(sh(e.i),":").concat(Math.random());return(0,i.Z)((0,i.Z)({},a),{},{i:s})}))))}),[]),y=(0,d.useCallback)((e=>{var t=e.detail.map((e=>e.value)),a=w.map((e=>sh(e.i))),s=e.detail.filter((e=>!a.includes(e.key))).map((e=>(0,i.Z)((0,i.Z)({},e.position),{},{x:e.w>1?0:2*w.length%Z,y:1/0})));g((e=>e.filter((e=>t.includes(sh(e.i)))).concat(s)))}),[w,Z]),k=(0,d.useCallback)((()=>{var e;null==n||n((null!==(e=u.current)&&void 0!==e?e:[]).map((e=>(0,i.Z)((0,i.Z)({},e),{},{i:sh(e.i)}))))}),[n]),x=(0,d.useCallback)(((e,t)=>{var a,i;e.stopPropagation(),g(null!==(a=null===(i=u.current)||void 0===i?void 0:i.filter((e=>sh(e.i)!==t.key)))&&void 0!==a?a:[])}),[]),C=e=>{e.preventDefault()},S=(0,d.useMemo)((()=>w.map((e=>{var t,a=s.find((t=>t.key===sh(e.i)));return a?c().createElement("div",{key:e.i,"data-grid":(0,i.Z)((0,i.Z)({},null!==(t=a.position)&&void 0!==t?t:{}),e),style:a.style,className:"drag-box"},r&&c().createElement("div",{className:"edit-mask",onMouseDown:C}),c().createElement(B.ReactUseBrick,{useBrick:a.useBrick}),r&&c().createElement(Fo,{icon:"delete",lib:"antd",className:"delete-icon",onClick:e=>x(e,a)})):null})).filter(Boolean)),[s,x,w,r]),_=(0,d.useMemo)((()=>s.map((e=>(0,i.Z)((0,i.Z)({},e),{},{label:e.title,value:e.key})))),[s]),M=(0,d.useMemo)((()=>w.map((e=>sh(e.i)))),[w]),E=(0,d.useCallback)((()=>{if(p&&r){var e,t,{top:a}=null!==(e=null===(t=p.current)||void 0===t||null===(t=t.getClientRects())||void 0===t?void 0:t[0])&&void 0!==e?e:{};void 0!==a&&b({height:document.body.clientHeight-a,overflow:"scroll"})}}),[r]);return(0,d.useEffect)((()=>{if(r)return E(),window.addEventListener("resize",E),()=>{window.removeEventListener("resize",E)}}),[r,E]),c().createElement("div",{className:"grid-layout-wrapper",ref:h},r&&c().createElement("div",{className:"component-wrapper"},c().createElement("div",{className:"component-title"},t),c().createElement("div",{className:"component-list"},c().createElement(Ho,{options:_,value:M,onChange:y}),c().createElement("slot",{name:"toolbar"}))),c().createElement("div",{className:"layout-wrapper",ref:p,style:v},r&&c().createElement("div",{className:"actions-wrapper"},c().createElement(To,{type:"primary",onClick:k},"保存"),c().createElement(To,{danger:!0,onClick:()=>{g([])}},"清除"),c().createElement(To,{onClick:()=>{null==l||l()}},"取消")),c().createElement(o,{className:"layout",draggableCancel:".delete-icon,.edit-actions,.ingore-item",breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:1},isResizable:!1,isDraggable:r,onDrag:(e,t,a)=>{var i,s=null===(i=h.current)||void 0===i?void 0:i.querySelector(".react-grid-placeholder");s&&(a.w>1&&a.x>0?!s.classList.contains("forbidden")&&s.classList.add("forbidden"):s.classList.contains("forbidden")&&s.classList.remove("forbidden"))},onLayoutChange:f,onBreakpointChange:(e,t)=>{m(t)}},S)))}},443:(e,t,a)=>{a.d(t,{Z:()=>l});var i=a(9601),s=a.n(i),r=a(2609),n=a.n(r)()(s());n.push([e.id,".ant-select-single .ant-select-selector{border-radius:var(--medius-border-radius)}.ant-select-dropdown{border-radius:var(--medius-border-radius)}.ant-cascader-dropdown .ant-cascader-menu-item{border-radius:var(--small-border-radius)}",""]);const l=n.toString()},2869:(e,t,a)=>{a.d(t,{Z:()=>l});var i=a(9601),s=a.n(i),r=a(2609),n=a.n(r)()(s());n.push([e.id,".brickTableOddRow{background-color:var(--color-fill-bg-base-4)}.ant-table-small .ant-table-body{margin:0}.ant-table-small .ant-table-thead{background:var(--antd-table-header-bg)}.ant-table-small .ant-table-row{line-height:26px}.ant-table-tbody > tr.invalidRow > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.invalidRow:hover > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.disabledRow > td{background-color:var(--theme-gray-border-color)}.ant-table-tbody > .ant-table-row-selected td{background:var(--antd-table-cell-fixed-body-bg)!important}td.alignTop{vertical-align:top}td.alignBottom{vertical-align:bottom}.expandIconCellHidden .ant-table-row-expand-icon-cell,\n.expandIconCellHidden .ant-table-expand-icon-col{width:1px;min-width:auto}.expandIconCellHidden .ant-table-row-expand-icon-cell > *,\n.expandIconCellHidden .ant-table-expand-icon-col > *{display:none}.expandIconSpan{cursor:pointer;margin-right:9px;color:var(--antd-table-row-expand-icon-color);font-size:11px}.expandIconSpan .anticon{background:var(--antd-table-row-expand-icon-action-bg);border-radius:2px;padding:3px}.tableThTransparent thead.ant-table-thead > tr > th{background:var(--antd-table-header-bg)}.zebraPatternTable .ant-table-tbody tr td{border-bottom:0}.ellipsis{max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.totalText{color:var(--antd-pagination-total-text)}.total{font-weight:normal;color:var(--antd-pagination-total-strong-text)}.ant-table-wrapper .ant-table-thead > tr > th{padding:11px 16px;font-size:12px;line-height:20px;border-bottom:0;font-weight:500;color:var(--antd-table-header-color)}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin:24px 0}",""]);const l=n.toString()},9915:(e,t,a)=>{a.d(t,{Z:()=>d});var i=a(9601),s=a.n(i),r=a(2609),n=a.n(r),l=a(7825),o=a(588),h=n()(s());h.i(l.Z),h.i(o.Z),h.push([e.id,":host{display:block}:host([hidden]){display:none}.grid-layout-wrapper{display:flex;height:100%;position:relative}.grid-layout-wrapper .component-wrapper{width:150px;padding:6px 12px;overflow-y:scroll;box-shadow:1px 0 0 0 var(--palette-gray-5);background:var(--color-fill-bg-container-1);z-index:999;position:-webkit-sticky;position:sticky;top:0}.grid-layout-wrapper .component-wrapper .component-title{font-size:16px;padding:6px 0;font-weight:500}.grid-layout-wrapper .component-wrapper .component-list{margin-top:6px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-wrapper){display:flex;flex-wrap:wrap;gap:8px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-option){margin-left:0;width:100%;background:none}.grid-layout-wrapper .layout-wrapper{flex:1}.grid-layout-wrapper .layout-wrapper .layout{max-width:1300px;margin:0 auto}.grid-layout-wrapper .layout-wrapper .actions-wrapper{position:-webkit-sticky;position:sticky;top:0;z-index:999;margin-left:1px;display:flex;gap:8px;justify-content:end;background:var(--color-fill-bg-container-1);padding:8px 12px;box-shadow:0 1px 1px 0 var(--palette-gray-5)}.grid-layout-wrapper .layout-wrapper .edit-mask{position:absolute;left:0;right:0;top:45px;bottom:0;z-index:10}.grid-layout-wrapper .layout-wrapper .delete-icon{position:absolute;right:15px;top:15px;cursor:pointer;font-size:16px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;background:var(--color-fill-bg-container-1);color:var(--color-normal-text)}.grid-layout-wrapper .layout-wrapper .delete-icon:hover{color:var(--color-error)}.grid-layout-wrapper .layout-wrapper .delete-icon:active{color:var(--color-error-active)}.react-grid-item.react-grid-placeholder{background-color:#ddd}.react-grid-item.react-draggable-dragging{pointer-events:none}.react-grid-item.react-grid-placeholder.forbidden{background-color:red}",""]);const d=h.toString()},4577:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"}}]);
|
|
2
|
-
//# sourceMappingURL=1377.080482b5.js.map
|