@next-bricks/visual-builder 1.9.2 → 1.9.3
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 +9 -9
- package/dist/chunks/3801.ed31e8a9.js +3 -0
- package/dist/chunks/3801.ed31e8a9.js.map +1 -0
- package/dist/chunks/{main.747cbab4.js → main.20539ba2.js} +2 -2
- package/dist/chunks/{main.747cbab4.js.map → main.20539ba2.js.map} +1 -1
- package/dist/{index.a68bdaaf.js → index.29a24d3c.js} +2 -2
- package/dist/{index.a68bdaaf.js.map → index.29a24d3c.js.map} +1 -1
- package/dist/manifest.json +52 -52
- package/dist/types.json +299 -216
- package/dist-types/interfaces.d.ts +13 -3
- package/dist-types/shared/workbench/WorkbenchTreeDndContext.d.ts +0 -2
- package/package.json +4 -2
- package/dist/chunks/3801.80b3cda4.js +0 -3
- package/dist/chunks/3801.80b3cda4.js.map +0 -1
- /package/dist/chunks/{3801.80b3cda4.js.LICENSE.txt → 3801.ed31e8a9.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -951,219 +951,6 @@
|
|
|
951
951
|
}
|
|
952
952
|
]
|
|
953
953
|
},
|
|
954
|
-
"visual-builder.inject-preview-agent": {
|
|
955
|
-
"type": "provider",
|
|
956
|
-
"params": [
|
|
957
|
-
{
|
|
958
|
-
"name": "previewFromOrigin",
|
|
959
|
-
"annotation": {
|
|
960
|
-
"type": "keyword",
|
|
961
|
-
"value": "string"
|
|
962
|
-
}
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
"name": "options",
|
|
966
|
-
"annotation": {
|
|
967
|
-
"type": "reference",
|
|
968
|
-
"typeName": {
|
|
969
|
-
"type": "identifier",
|
|
970
|
-
"name": "PreviewStartOptions"
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
],
|
|
975
|
-
"returns": {
|
|
976
|
-
"annotation": {
|
|
977
|
-
"type": "reference",
|
|
978
|
-
"typeName": {
|
|
979
|
-
"type": "identifier",
|
|
980
|
-
"name": "Promise"
|
|
981
|
-
},
|
|
982
|
-
"typeParameters": {
|
|
983
|
-
"type": "typeParameterInstantiation",
|
|
984
|
-
"params": [
|
|
985
|
-
{
|
|
986
|
-
"type": "keyword",
|
|
987
|
-
"value": "unknown"
|
|
988
|
-
}
|
|
989
|
-
]
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
},
|
|
993
|
-
"types": [
|
|
994
|
-
{
|
|
995
|
-
"type": "interface",
|
|
996
|
-
"name": "PreviewStartOptions",
|
|
997
|
-
"body": [
|
|
998
|
-
{
|
|
999
|
-
"type": "propertySignature",
|
|
1000
|
-
"key": {
|
|
1001
|
-
"type": "identifier",
|
|
1002
|
-
"name": "appId"
|
|
1003
|
-
},
|
|
1004
|
-
"annotation": {
|
|
1005
|
-
"type": "keyword",
|
|
1006
|
-
"value": "string"
|
|
1007
|
-
},
|
|
1008
|
-
"computed": false
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"type": "propertySignature",
|
|
1012
|
-
"key": {
|
|
1013
|
-
"type": "identifier",
|
|
1014
|
-
"name": "templateId"
|
|
1015
|
-
},
|
|
1016
|
-
"annotation": {
|
|
1017
|
-
"type": "keyword",
|
|
1018
|
-
"value": "string"
|
|
1019
|
-
},
|
|
1020
|
-
"optional": true,
|
|
1021
|
-
"computed": false
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"type": "propertySignature",
|
|
1025
|
-
"key": {
|
|
1026
|
-
"type": "identifier",
|
|
1027
|
-
"name": "formId"
|
|
1028
|
-
},
|
|
1029
|
-
"annotation": {
|
|
1030
|
-
"type": "keyword",
|
|
1031
|
-
"value": "string"
|
|
1032
|
-
},
|
|
1033
|
-
"optional": true,
|
|
1034
|
-
"computed": false
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
"type": "propertySignature",
|
|
1038
|
-
"key": {
|
|
1039
|
-
"type": "identifier",
|
|
1040
|
-
"name": "snippetData"
|
|
1041
|
-
},
|
|
1042
|
-
"annotation": {
|
|
1043
|
-
"type": "keyword",
|
|
1044
|
-
"value": "any"
|
|
1045
|
-
},
|
|
1046
|
-
"optional": true,
|
|
1047
|
-
"computed": false
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"type": "propertySignature",
|
|
1051
|
-
"key": {
|
|
1052
|
-
"type": "identifier",
|
|
1053
|
-
"name": "routePath"
|
|
1054
|
-
},
|
|
1055
|
-
"annotation": {
|
|
1056
|
-
"type": "keyword",
|
|
1057
|
-
"value": "string"
|
|
1058
|
-
},
|
|
1059
|
-
"optional": true,
|
|
1060
|
-
"computed": false
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"type": "propertySignature",
|
|
1064
|
-
"key": {
|
|
1065
|
-
"type": "identifier",
|
|
1066
|
-
"name": "routeExact"
|
|
1067
|
-
},
|
|
1068
|
-
"annotation": {
|
|
1069
|
-
"type": "keyword",
|
|
1070
|
-
"value": "boolean"
|
|
1071
|
-
},
|
|
1072
|
-
"optional": true,
|
|
1073
|
-
"computed": false
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
"type": "propertySignature",
|
|
1077
|
-
"key": {
|
|
1078
|
-
"type": "identifier",
|
|
1079
|
-
"name": "settings"
|
|
1080
|
-
},
|
|
1081
|
-
"annotation": {
|
|
1082
|
-
"type": "reference",
|
|
1083
|
-
"typeName": {
|
|
1084
|
-
"type": "identifier",
|
|
1085
|
-
"name": "PreviewSettings"
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
"optional": true,
|
|
1089
|
-
"computed": false
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
"type": "propertySignature",
|
|
1093
|
-
"key": {
|
|
1094
|
-
"type": "identifier",
|
|
1095
|
-
"name": "updateStoryboardType"
|
|
1096
|
-
},
|
|
1097
|
-
"annotation": {
|
|
1098
|
-
"type": "reference",
|
|
1099
|
-
"typeName": {
|
|
1100
|
-
"type": "identifier",
|
|
1101
|
-
"name": "UpdateStoryboardType"
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
"optional": true,
|
|
1105
|
-
"computed": false
|
|
1106
|
-
}
|
|
1107
|
-
]
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
"type": "interface",
|
|
1111
|
-
"name": "PreviewSettings",
|
|
1112
|
-
"body": [
|
|
1113
|
-
{
|
|
1114
|
-
"type": "propertySignature",
|
|
1115
|
-
"key": {
|
|
1116
|
-
"type": "identifier",
|
|
1117
|
-
"name": "properties"
|
|
1118
|
-
},
|
|
1119
|
-
"annotation": {
|
|
1120
|
-
"type": "reference",
|
|
1121
|
-
"typeName": {
|
|
1122
|
-
"type": "identifier",
|
|
1123
|
-
"name": "Record"
|
|
1124
|
-
},
|
|
1125
|
-
"typeParameters": {
|
|
1126
|
-
"type": "typeParameterInstantiation",
|
|
1127
|
-
"params": [
|
|
1128
|
-
{
|
|
1129
|
-
"type": "keyword",
|
|
1130
|
-
"value": "string"
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
"type": "keyword",
|
|
1134
|
-
"value": "unknown"
|
|
1135
|
-
}
|
|
1136
|
-
]
|
|
1137
|
-
}
|
|
1138
|
-
},
|
|
1139
|
-
"optional": true,
|
|
1140
|
-
"computed": false
|
|
1141
|
-
}
|
|
1142
|
-
]
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
"type": "typeAlias",
|
|
1146
|
-
"name": "UpdateStoryboardType",
|
|
1147
|
-
"annotation": {
|
|
1148
|
-
"type": "union",
|
|
1149
|
-
"types": [
|
|
1150
|
-
{
|
|
1151
|
-
"type": "jsLiteral",
|
|
1152
|
-
"value": "route"
|
|
1153
|
-
},
|
|
1154
|
-
{
|
|
1155
|
-
"type": "jsLiteral",
|
|
1156
|
-
"value": "template"
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"type": "jsLiteral",
|
|
1160
|
-
"value": "snippet"
|
|
1161
|
-
}
|
|
1162
|
-
]
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
]
|
|
1166
|
-
},
|
|
1167
954
|
"visual-builder.workbench-tree": {
|
|
1168
955
|
"properties": [
|
|
1169
956
|
{
|
|
@@ -1523,7 +1310,7 @@
|
|
|
1523
1310
|
"type": "reference",
|
|
1524
1311
|
"typeName": {
|
|
1525
1312
|
"type": "identifier",
|
|
1526
|
-
"name": "
|
|
1313
|
+
"name": "IconConfig"
|
|
1527
1314
|
}
|
|
1528
1315
|
},
|
|
1529
1316
|
"optional": true,
|
|
@@ -1558,6 +1345,55 @@
|
|
|
1558
1345
|
"optional": true,
|
|
1559
1346
|
"computed": false
|
|
1560
1347
|
},
|
|
1348
|
+
{
|
|
1349
|
+
"type": "propertySignature",
|
|
1350
|
+
"key": {
|
|
1351
|
+
"type": "identifier",
|
|
1352
|
+
"name": "labelPrefix"
|
|
1353
|
+
},
|
|
1354
|
+
"annotation": {
|
|
1355
|
+
"type": "typeLiteral",
|
|
1356
|
+
"members": [
|
|
1357
|
+
{
|
|
1358
|
+
"type": "propertySignature",
|
|
1359
|
+
"key": {
|
|
1360
|
+
"type": "identifier",
|
|
1361
|
+
"name": "text"
|
|
1362
|
+
},
|
|
1363
|
+
"annotation": {
|
|
1364
|
+
"type": "keyword",
|
|
1365
|
+
"value": "string"
|
|
1366
|
+
},
|
|
1367
|
+
"computed": false
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"type": "propertySignature",
|
|
1371
|
+
"key": {
|
|
1372
|
+
"type": "identifier",
|
|
1373
|
+
"name": "style"
|
|
1374
|
+
},
|
|
1375
|
+
"annotation": {
|
|
1376
|
+
"type": "reference",
|
|
1377
|
+
"typeName": {
|
|
1378
|
+
"type": "qualifiedName",
|
|
1379
|
+
"left": {
|
|
1380
|
+
"type": "identifier",
|
|
1381
|
+
"name": "React"
|
|
1382
|
+
},
|
|
1383
|
+
"right": {
|
|
1384
|
+
"type": "identifier",
|
|
1385
|
+
"name": "CSSProperties"
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
"optional": true,
|
|
1390
|
+
"computed": false
|
|
1391
|
+
}
|
|
1392
|
+
]
|
|
1393
|
+
},
|
|
1394
|
+
"optional": true,
|
|
1395
|
+
"computed": false
|
|
1396
|
+
},
|
|
1561
1397
|
{
|
|
1562
1398
|
"type": "propertySignature",
|
|
1563
1399
|
"key": {
|
|
@@ -1616,7 +1452,7 @@
|
|
|
1616
1452
|
"type": "reference",
|
|
1617
1453
|
"typeName": {
|
|
1618
1454
|
"type": "identifier",
|
|
1619
|
-
"name": "
|
|
1455
|
+
"name": "IconConfig"
|
|
1620
1456
|
}
|
|
1621
1457
|
},
|
|
1622
1458
|
"optional": true,
|
|
@@ -1734,6 +1570,40 @@
|
|
|
1734
1570
|
}
|
|
1735
1571
|
]
|
|
1736
1572
|
},
|
|
1573
|
+
{
|
|
1574
|
+
"type": "typeAlias",
|
|
1575
|
+
"name": "IconConfig",
|
|
1576
|
+
"annotation": {
|
|
1577
|
+
"type": "intersection",
|
|
1578
|
+
"types": [
|
|
1579
|
+
{
|
|
1580
|
+
"type": "reference",
|
|
1581
|
+
"typeName": {
|
|
1582
|
+
"type": "identifier",
|
|
1583
|
+
"name": "GeneralIconProps"
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"type": "typeLiteral",
|
|
1588
|
+
"members": [
|
|
1589
|
+
{
|
|
1590
|
+
"type": "propertySignature",
|
|
1591
|
+
"key": {
|
|
1592
|
+
"type": "identifier",
|
|
1593
|
+
"name": "color"
|
|
1594
|
+
},
|
|
1595
|
+
"annotation": {
|
|
1596
|
+
"type": "keyword",
|
|
1597
|
+
"value": "string"
|
|
1598
|
+
},
|
|
1599
|
+
"optional": true,
|
|
1600
|
+
"computed": false
|
|
1601
|
+
}
|
|
1602
|
+
]
|
|
1603
|
+
}
|
|
1604
|
+
]
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1737
1607
|
{
|
|
1738
1608
|
"type": "interface",
|
|
1739
1609
|
"name": "WorkbenchTreeAction",
|
|
@@ -1760,7 +1630,7 @@
|
|
|
1760
1630
|
"type": "reference",
|
|
1761
1631
|
"typeName": {
|
|
1762
1632
|
"type": "identifier",
|
|
1763
|
-
"name": "
|
|
1633
|
+
"name": "IconConfig"
|
|
1764
1634
|
}
|
|
1765
1635
|
},
|
|
1766
1636
|
"computed": false
|
|
@@ -1834,5 +1704,218 @@
|
|
|
1834
1704
|
]
|
|
1835
1705
|
}
|
|
1836
1706
|
]
|
|
1707
|
+
},
|
|
1708
|
+
"visual-builder.inject-preview-agent": {
|
|
1709
|
+
"type": "provider",
|
|
1710
|
+
"params": [
|
|
1711
|
+
{
|
|
1712
|
+
"name": "previewFromOrigin",
|
|
1713
|
+
"annotation": {
|
|
1714
|
+
"type": "keyword",
|
|
1715
|
+
"value": "string"
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "options",
|
|
1720
|
+
"annotation": {
|
|
1721
|
+
"type": "reference",
|
|
1722
|
+
"typeName": {
|
|
1723
|
+
"type": "identifier",
|
|
1724
|
+
"name": "PreviewStartOptions"
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
],
|
|
1729
|
+
"returns": {
|
|
1730
|
+
"annotation": {
|
|
1731
|
+
"type": "reference",
|
|
1732
|
+
"typeName": {
|
|
1733
|
+
"type": "identifier",
|
|
1734
|
+
"name": "Promise"
|
|
1735
|
+
},
|
|
1736
|
+
"typeParameters": {
|
|
1737
|
+
"type": "typeParameterInstantiation",
|
|
1738
|
+
"params": [
|
|
1739
|
+
{
|
|
1740
|
+
"type": "keyword",
|
|
1741
|
+
"value": "unknown"
|
|
1742
|
+
}
|
|
1743
|
+
]
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
},
|
|
1747
|
+
"types": [
|
|
1748
|
+
{
|
|
1749
|
+
"type": "interface",
|
|
1750
|
+
"name": "PreviewStartOptions",
|
|
1751
|
+
"body": [
|
|
1752
|
+
{
|
|
1753
|
+
"type": "propertySignature",
|
|
1754
|
+
"key": {
|
|
1755
|
+
"type": "identifier",
|
|
1756
|
+
"name": "appId"
|
|
1757
|
+
},
|
|
1758
|
+
"annotation": {
|
|
1759
|
+
"type": "keyword",
|
|
1760
|
+
"value": "string"
|
|
1761
|
+
},
|
|
1762
|
+
"computed": false
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"type": "propertySignature",
|
|
1766
|
+
"key": {
|
|
1767
|
+
"type": "identifier",
|
|
1768
|
+
"name": "templateId"
|
|
1769
|
+
},
|
|
1770
|
+
"annotation": {
|
|
1771
|
+
"type": "keyword",
|
|
1772
|
+
"value": "string"
|
|
1773
|
+
},
|
|
1774
|
+
"optional": true,
|
|
1775
|
+
"computed": false
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"type": "propertySignature",
|
|
1779
|
+
"key": {
|
|
1780
|
+
"type": "identifier",
|
|
1781
|
+
"name": "formId"
|
|
1782
|
+
},
|
|
1783
|
+
"annotation": {
|
|
1784
|
+
"type": "keyword",
|
|
1785
|
+
"value": "string"
|
|
1786
|
+
},
|
|
1787
|
+
"optional": true,
|
|
1788
|
+
"computed": false
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
"type": "propertySignature",
|
|
1792
|
+
"key": {
|
|
1793
|
+
"type": "identifier",
|
|
1794
|
+
"name": "snippetData"
|
|
1795
|
+
},
|
|
1796
|
+
"annotation": {
|
|
1797
|
+
"type": "keyword",
|
|
1798
|
+
"value": "any"
|
|
1799
|
+
},
|
|
1800
|
+
"optional": true,
|
|
1801
|
+
"computed": false
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"type": "propertySignature",
|
|
1805
|
+
"key": {
|
|
1806
|
+
"type": "identifier",
|
|
1807
|
+
"name": "routePath"
|
|
1808
|
+
},
|
|
1809
|
+
"annotation": {
|
|
1810
|
+
"type": "keyword",
|
|
1811
|
+
"value": "string"
|
|
1812
|
+
},
|
|
1813
|
+
"optional": true,
|
|
1814
|
+
"computed": false
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"type": "propertySignature",
|
|
1818
|
+
"key": {
|
|
1819
|
+
"type": "identifier",
|
|
1820
|
+
"name": "routeExact"
|
|
1821
|
+
},
|
|
1822
|
+
"annotation": {
|
|
1823
|
+
"type": "keyword",
|
|
1824
|
+
"value": "boolean"
|
|
1825
|
+
},
|
|
1826
|
+
"optional": true,
|
|
1827
|
+
"computed": false
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"type": "propertySignature",
|
|
1831
|
+
"key": {
|
|
1832
|
+
"type": "identifier",
|
|
1833
|
+
"name": "settings"
|
|
1834
|
+
},
|
|
1835
|
+
"annotation": {
|
|
1836
|
+
"type": "reference",
|
|
1837
|
+
"typeName": {
|
|
1838
|
+
"type": "identifier",
|
|
1839
|
+
"name": "PreviewSettings"
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1842
|
+
"optional": true,
|
|
1843
|
+
"computed": false
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"type": "propertySignature",
|
|
1847
|
+
"key": {
|
|
1848
|
+
"type": "identifier",
|
|
1849
|
+
"name": "updateStoryboardType"
|
|
1850
|
+
},
|
|
1851
|
+
"annotation": {
|
|
1852
|
+
"type": "reference",
|
|
1853
|
+
"typeName": {
|
|
1854
|
+
"type": "identifier",
|
|
1855
|
+
"name": "UpdateStoryboardType"
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1858
|
+
"optional": true,
|
|
1859
|
+
"computed": false
|
|
1860
|
+
}
|
|
1861
|
+
]
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
"type": "interface",
|
|
1865
|
+
"name": "PreviewSettings",
|
|
1866
|
+
"body": [
|
|
1867
|
+
{
|
|
1868
|
+
"type": "propertySignature",
|
|
1869
|
+
"key": {
|
|
1870
|
+
"type": "identifier",
|
|
1871
|
+
"name": "properties"
|
|
1872
|
+
},
|
|
1873
|
+
"annotation": {
|
|
1874
|
+
"type": "reference",
|
|
1875
|
+
"typeName": {
|
|
1876
|
+
"type": "identifier",
|
|
1877
|
+
"name": "Record"
|
|
1878
|
+
},
|
|
1879
|
+
"typeParameters": {
|
|
1880
|
+
"type": "typeParameterInstantiation",
|
|
1881
|
+
"params": [
|
|
1882
|
+
{
|
|
1883
|
+
"type": "keyword",
|
|
1884
|
+
"value": "string"
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"type": "keyword",
|
|
1888
|
+
"value": "unknown"
|
|
1889
|
+
}
|
|
1890
|
+
]
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
"optional": true,
|
|
1894
|
+
"computed": false
|
|
1895
|
+
}
|
|
1896
|
+
]
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
"type": "typeAlias",
|
|
1900
|
+
"name": "UpdateStoryboardType",
|
|
1901
|
+
"annotation": {
|
|
1902
|
+
"type": "union",
|
|
1903
|
+
"types": [
|
|
1904
|
+
{
|
|
1905
|
+
"type": "jsLiteral",
|
|
1906
|
+
"value": "route"
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
"type": "jsLiteral",
|
|
1910
|
+
"value": "template"
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
"type": "jsLiteral",
|
|
1914
|
+
"value": "snippet"
|
|
1915
|
+
}
|
|
1916
|
+
]
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
]
|
|
1837
1920
|
}
|
|
1838
1921
|
}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
/// <reference types="trusted-types" />
|
|
1
4
|
import { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
2
5
|
export interface WorkbenchNodeData<T = unknown> {
|
|
3
6
|
if?: boolean;
|
|
4
7
|
key: string | number;
|
|
5
8
|
name: string;
|
|
6
|
-
icon?:
|
|
9
|
+
icon?: IconConfig;
|
|
7
10
|
data?: T;
|
|
8
11
|
labelColor?: string;
|
|
12
|
+
labelPrefix?: {
|
|
13
|
+
text: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
};
|
|
9
16
|
link?: {
|
|
10
17
|
to: string;
|
|
11
18
|
} | {
|
|
12
19
|
href: string;
|
|
13
20
|
};
|
|
14
|
-
badge?:
|
|
21
|
+
badge?: IconConfig;
|
|
15
22
|
children?: WorkbenchNodeData[];
|
|
16
23
|
matched?: boolean;
|
|
17
24
|
matchedSelf?: boolean;
|
|
@@ -21,9 +28,12 @@ export interface WorkbenchNodeData<T = unknown> {
|
|
|
21
28
|
parentPath?: string;
|
|
22
29
|
unreachable?: boolean;
|
|
23
30
|
}
|
|
31
|
+
export type IconConfig = GeneralIconProps & {
|
|
32
|
+
color?: string;
|
|
33
|
+
};
|
|
24
34
|
export interface WorkbenchTreeAction {
|
|
25
35
|
action: string;
|
|
26
|
-
icon:
|
|
36
|
+
icon: IconConfig;
|
|
27
37
|
title?: string;
|
|
28
38
|
if?: string | boolean;
|
|
29
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/visual-builder",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
"build:main": "cross-env NODE_ENV=production build-next-bricks",
|
|
29
29
|
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json",
|
|
30
30
|
"build:manifest": "cross-env NODE_ENV=production build-next-bricks --manifest-only",
|
|
31
|
+
"test": "cross-env NODE_ENV='test' test-next",
|
|
32
|
+
"test:ci": "cross-env NODE_ENV='test' CI=true test-next",
|
|
31
33
|
"prepublishOnly": "cp package.json package.json.bak && npm pkg delete dependencies",
|
|
32
34
|
"postpublish": "mv package.json.bak package.json"
|
|
33
35
|
},
|
|
@@ -40,5 +42,5 @@
|
|
|
40
42
|
"@next-bricks/form": "*",
|
|
41
43
|
"@next-bricks/icons": "*"
|
|
42
44
|
},
|
|
43
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "5622db94c42811d1a9f0b759f11e8ba175a5deaf"
|
|
44
46
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3801.80b3cda4.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[3801,2052],{4940:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,l:()=>a});var o=n(8769),r=(0,o.createContext)({});function a(){return(0,o.useContext)(r)}},7758:(e,t,n)=>{"use strict";n.d(t,{cU:()=>S});var o=n(9575),r=n(9740),a=n(8769),i=n.n(a),l=n(1030),c=n.n(l),s=n(3373),d=n.n(s),u=n(9406),p=n(4940),f=function(e){return e.inside="inside",e.top="top",e.bottom="bottom",e}({}),h=(0,a.createContext)({});function v(){return(0,a.useContext)(h)}var g=n(6227),m=n(9924),b=(0,g.wrapBrick)("eo-icon");function x(e){var{data:t,className:n,gap:o,isFirst:r,isLast:l,actions:c,actionsHidden:s,onActionClick:u}=e,p=(0,a.useMemo)((()=>null==c?void 0:c.filter((e=>(0,m.checkIfByTransform)(e,t)))),[c,t]);return s||null==p||!p.length?null:i().createElement("div",{className:d()("actionsBar",n),style:{gap:o}},p.map((e=>i().createElement(y,{key:e.action,action:e,data:t,isFirst:r,isLast:l,onActionClick:u}))))}function y(e){var{action:t,data:n,isFirst:o,isLast:r,onActionClick:l}=e,c=o&&"move-up"===t.action||r&&"move-down"===t.action,s=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),c||null==l||l({action:t.action,data:n})}),[t.action,n,c,l]),u=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]);return i().createElement("a",{className:d()("action",{disabled:c}),title:t.title,role:"button",onClick:s,onContextMenu:u,onMouseDown:u},i().createElement(b,t.icon))}var w=(0,g.wrapBrick)("eo-link"),k=(0,g.wrapBrick)("eo-icon"),E=10,A="0 0 0 1px #ba6d30",C=(0,a.createContext)(!1);function S(e){var{nodes:t,placeholder:n,searchPlaceholder:o,isDrag:r,noSearch:l,allowDrag:s,allowDragToRoot:p,allowDragToInside:v,dropEmit:g}=e,[m,b]=(0,a.useState)(""),[x,y]=(0,a.useState)(r),[w,E]=(0,a.useState)(),[A,S]=(0,a.useState)(),[N,I]=(0,a.useState)(),[M,j]=(0,a.useState)(),[D,R]=(0,a.useState)(),[B,P]=(0,a.useState)(),{nodeKey:O,onBrickDrop:T,contextMenuFactory:F,matchNode:z}=(0,u.o)(),_=(0,a.useMemo)((()=>{var e;return function(e,t){var n=(e,o,r,a)=>{var i=e.shift();if(i){e.length>0&&e.splice(0,1,"".concat(i,"/").concat(e[0]));var l=o.find((e=>e&&e.key===i&&e.isContainer));if(l)o[a]=null,n(e,l.children,r);else{var c=i.split("/"),s={name:c.pop(),key:i,parentPath:c?c.join("/"):c,originKey:r.key,data:{[t]:i,isContainer:!0},children:[],icon:{icon:"folder",lib:"antd",theme:"filled",color:"orange"},isContainer:!0};"number"==typeof a?o[a]=s:o.push(s),n(e,s.children,r)}}else o.push(r)};return e.forEach(((t,o)=>{if(t.path){var r=t.path.split("/").filter(Boolean);n(r,e,t,o)}})),e.filter(Boolean)}(null!==(e=null==t?void 0:t.slice())&&void 0!==e?e:[],O)}),[t,O]),K=(0,a.useCallback)((e=>{b(e.target.value)}),[]),W=(0,a.useMemo)((()=>null==F?void 0:F()),[F]),$=null==m?void 0:m.trim().toLowerCase(),H=(0,a.useMemo)((()=>{if(l||!$||!_)return _;var e=t=>{var n;t.matchedSelf=z(t,$);var o=null===(n=t.children)||void 0===n?void 0:n.map(e).includes(!0);return t.matched=t.matchedSelf||o,t.matched};return _.forEach(e),_.slice()}),[l,$,_,z]),U=function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;n;){if(n.draggable&&(t||n!==e)&&"A"!==n.tagName)return n;n=n.parentElement}},Y=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var r of e)if(r.data[n]===t&&(o=r),r.children&&(o=Y(r.children,t,n,o)),o)break;return o},V=()=>{S(null),j(null),I(null),R(null),y(!1)};return(0,a.useEffect)((()=>{y(r)}),[r]),(0,a.useEffect)((()=>(window.addEventListener("dragend",V),()=>{window.removeEventListener("dragend",V)})),[]),i().createElement("div",{style:{height:"100%"},className:"tree-wrapper",onContextMenu:W},null!=_&&_.length?i().createElement("div",null,!l&&i().createElement("div",{className:"searchBox",onContextMenu:e=>e.stopPropagation()},i().createElement("span",{className:d()("filter-input-wrapper",{focus:B})},i().createElement("span",{className:"prefix"},i().createElement(k,{icon:"search",lib:"antd",theme:"outlined"})),i().createElement("input",{value:m,onChange:K,onFocus:()=>P(!0),onBlur:()=>P(!1),autoComplete:"off",placeholder:o}),i().createElement("span",{className:"suffix"},m?i().createElement(k,{className:"clear-button",icon:"close-circle",lib:"antd",theme:"filled",onClick:()=>{b("")}}):null))),i().createElement(C.Provider,{value:!!m},i().createElement(h.Provider,{value:{allow:s,allowDragToRoot:p,dragElement:A,dragOverElement:M,dragStatus:D,onDragStart:(e,t)=>{var n;if(e.stopPropagation(),s){var o=e.target;null!==(n=o.dataset)&&void 0!==n&&n.container||(y(!0),function(e,t){var n=document.createElement("canvas");document.body.append(n);var o=n.getContext("2d");n.width=o.measureText(t).width+60,n.height=20,n.style.position="absolute",n.style.left="-100%",n.style.zIndex="-100",o.fillStyle="#333333",o.fillRect(0,0,n.width,n.height),o.fillStyle="#999999",o.font="bold 14px Arial",o.fillText(t,20,15),e.dataTransfer.setDragImage(n,0,0)}(e,o.innerText),S(o),E(t))}}}},i().createElement("div",{className:d()({hightlight:r}),onDragOver:e=>{if(e.preventDefault(),x&&"workbenchTree-placeholder-dom"!==e.target.className){var t=(e=>{var t=U(e.target),n=t.dataset.uid;if(!(t===A||null!=n&&n.includes(":"))){var o,{top:r,bottom:a}=t.getBoundingClientRect(),i=v?5:10;return o=e.clientY<r+i?f.top:e.clientY>a-i?f.bottom:v?f.inside:D,{element:t,node:Y(_,n,O),status:o}}})(e);!t||null!=A&&A.contains(t.element)||(j(t.element),I(t.node),R(t.status))}},onDrop:e=>{if(x){if(T){var t=M;[f.top,f.bottom].includes(D)&&(t=U(t,!1)),T(e,{curElement:A,overElement:M,parentElement:t,overStatus:D})}else if(p||1!==Number(M.dataset.level)){var n=N,o=(e,t)=>{for(var r=0;r<e.length;r++){if(e[r].key===t){n=e[r];break}e[r].children&&o(e[r].children,t)}},r=M.dataset.uid;o(_,r);var a=e=>{var t=!1,{container:o,uid:r}=M.dataset,i=o?n.originKey:r,l=e.filter((e=>(e.children&&(e.children=a(e.children)),e.key===i&&(t=!0),e.key!==w.key)));return t&&l.splice(l.findIndex((e=>e.key===i))+("bottom"===D?1:0),0,w),l},i=function(e){var t=[],n=e=>{e.forEach((e=>{e.isContainer?n(e.children):t.push(c().omit(e,["path","icon"]))}))};return n(e),t}(_),l=w.isContainer?i.find((e=>e.key===w.originKey)):w;l.data.path=n.parentPath||n.path,g({nodes:a(i),curNode:l,overNode:n,status:D})}V()}}},i().createElement(L,{nodes:H,level:1}))))):i().createElement("div",{className:"placeholder"},n))}function L(e){var{nodes:t,level:n}=e,o=t.length-1;return i().createElement("ul",{className:"tree"},t.filter((e=>(0,m.checkIfOfComputed)(e))).map(((e,t)=>i().createElement(I,{key:e.key,node:e,level:n,isFirst:0===t,isLast:t===o}))))}function N(e){var{style:t}=e,{dragStatus:n}=v(),o=(0,r.A)({height:22,border:"1px dashed goldenrod",opacity:n===f.inside?"0":"1"},t);return i().createElement("li",{className:"workbenchTree-placeholder-dom",style:o})}function I(e){var t,n,c,{node:s,level:h,isFirst:g,isLast:m}=e,b=!(null!==(t=s.children)&&void 0!==t&&t.length),y=s.isContainer,{hoverKey:S,activeKey:I,basePaddingLeft:M,showMatchedNodeOnly:j,fixedActionsFor:D,collapsible:R,collapsedNodes:B,nodeKey:P,clickFactory:O,mouseEnterFactory:T,mouseLeaveFactory:F,contextMenuFactory:z,onNodeToggle:_,getCollapsedId:K,skipNotify:W}=(0,u.o)(),{allow:$,allowDragToRoot:H,onDragStart:U,dragElement:Y,dragOverElement:V,dragStatus:q}=v(),{actions:G,actionsHidden:J,onActionClick:Q}=(0,p.l)(),X=h*E+M-2,Z=(0,a.useContext)(C),[ee,te]=(0,a.useState)(null),[ne,oe]=(0,a.useState)(!1),[re,ae]=(0,a.useState)(null!==(n=null==B?void 0:B.includes(null==K?void 0:K(s)))&&void 0!==n&&n),ie=(0,a.useMemo)((()=>null==T?void 0:T(s)),[T,s]),le=(0,a.useMemo)((()=>null==F?void 0:F(s)),[F,s]),ce=(0,a.useCallback)((e=>{var t;e.stopPropagation(),null==z||null===(t=z(s))||void 0===t||t(e)}),[z,s]),se=I&&s.key===I,de=(0,a.useMemo)((()=>se?e=>{var t;null==e||null===(t=e.scrollIntoView)||void 0===t||t.call(e,{block:"center",inline:"center"})}:null),[]),ue=(0,a.useMemo)((()=>{return y?s.key:s.data?"mount-point"===(e=s.data).type?e.parent[P]||"".concat(e.parent.$$uid,":").concat(e.mountPoint):e[P]||e.$$uid:void 0;var e}),[P,s,y]);(0,a.useEffect)((()=>{q!==f.inside&&[f.top,f.bottom].includes(q)&&te(q)}),[q]);var pe=(0,a.useMemo)((()=>!!Y&&Y.dataset.uid===String(ue)),[Y,ue]),fe=(0,a.useMemo)((()=>!!V&&V.dataset.uid===String(ue)),[V,ue]),he=(0,a.useMemo)((()=>{var e={opacity:pe?.2:1};return fe&&q===f.inside&&(e={boxShadow:A,background:"rgba(255, 255, 255, 0.1)"}),Object.assign({},e)}),[fe,pe,q]),ve=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),oe(!0),ae((e=>!e))}),[]),ge=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]),me=(0,a.useCallback)((e=>{var t;if(!y)return null==O||null===(t=O(s))||void 0===t?void 0:t();ve(e)}),[O,ve,y,s]);(0,a.useEffect)((()=>{ne&&(null==_||_(null==K?void 0:K(s),re))}),[ne,re,K,s,_]);var be=R&&!b&&!Z;return Z&&j&&!s.matched?null:i().createElement(i().Fragment,null,fe&&(H||1!==h)&&ee===f.top&&i().createElement(N,{style:{marginLeft:X}}),i().createElement("li",(0,o.A)({draggable:$,onDragStart:e=>U(e,s),"data-uid":ue,"data-level":h,style:he},y?{"data-container":y}:{}),i().createElement(w,(0,o.A)({tabIndex:0,onMouseEnter:ie,onMouseLeave:le,onContextMenu:ce,onClick:me},W?{url:{pathname:(0,l.get)(s.link,"url","href"),state:{notify:!1}}}:(0,r.A)({},(0,l.pick)(s.link,["url","href"]))),i().createElement("span",{className:d()("nodeLabelRow",{active:se,hover:S&&s.key===S,matched:Z&&s.matchedSelf&&!j,fixedActions:D&&[].concat(D).some((e=>(0,l.isMatch)(s.data,e))),collapsed:be&&re,collapsible:be})},i().createElement("span",{className:d()("nodeLabel",{unreachable:s.unreachable}),style:{paddingLeft:X,color:s.labelColor},ref:de},i().createElement("span",{className:"nodeIconWrapper"},be&&i().createElement("span",{className:"collapseIcon",onClick:ve,onMouseDown:ge,title:re?"Expand":"Collapse",role:"button"},i().createElement(k,{lib:"antd",theme:"outlined",icon:re?"right":"down"})),i().createElement("span",{className:"nodeIcon"},i().createElement(k,(0,o.A)({},s.icon,{style:{fontSize:null!==(c=s.icon)&&void 0!==c&&c.imgSrc?14:null}})))),i().createElement("span",{className:"nodeName"},s.name)),i().createElement(x,{className:"nodeActionsBar",data:s.data,isFirst:g,isLast:m,actions:G,onActionClick:Q,actionsHidden:J}),s.badge&&i().createElement("span",{className:"badge"},i().createElement(k,s.badge)))),b||i().createElement(L,{nodes:s.children,level:h+1})),fe&&(H||1!==h)&&ee===f.bottom&&i().createElement(N,{style:{marginLeft:X}}))}},9406:(e,t,n)=>{"use strict";n.d(t,{N:()=>r,o:()=>a});var o=n(8769),r=(0,o.createContext)({});function a(){return(0,o.useContext)(r)}},675:(e,t,n)=>{"use strict";function o(e,t){switch(typeof e){case"string":return e.toLowerCase().includes(t);case"boolean":case"number":return String(e).includes(t);case"object":return null===e?"null".includes(t):(Array.isArray(e)?e:Object.entries(e).flat()).some((e=>o(e,t)));default:return!1}}n.d(t,{U:()=>o})},6275:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(6758),r=n.n(o),a=n(935),i=n.n(a)()(r());i.push([e.id,".actionsBar{display:flex;align-items:center;padding:0 3px}.action{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:5px}.action:hover{color:#fff;background-color:rgba(90,93,94,0.31)}.action{color:#c5c5c5}.disabled,\n.disabled:hover{color:var(--color-disabled-text);cursor:not-allowed;background-color:initial}",""]);const l=i.toString()},7995:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(6758),r=n.n(o),a=n(935),i=n.n(a)()(r());i.push([e.id,':host-context(html[data-theme="light"]),\n:host-context(html[data-override-theme="light"]){--search-box-background:#fff;--node-color:#595959;--node-color-focus:#595959;--node-background-active:#e0eeff;--node-background-focus:#e0eeff;--node-icon-background-hover:#fff}:host-context(html[data-theme="dark-v2"]),\n:host-context(html[data-override-theme="dark-v2"]){--search-box-background:#181818;--node-color:#c5c5c5;--node-color-focus:#fff;--node-background-active:rgba(255,255,255,0.08);--node-background-focus:#1a7aff;--node-icon-background-hover:rgba(90,93,94,0.31)}.searchBox{position:-webkit-sticky;position:sticky;top:0;background-color:var(--search-box-background);padding:5px 10px 10px;z-index:1}.searchBox .filter-input-wrapper{background-color:var(--search-box-background);border:1px solid rgba(255,255,255,0.2);position:relative;width:100%;min-width:0;padding:2px 7px;color:var(--antd-input-color);font-size:14px;line-height:1.5715;display:inline-flex;border-radius:3px;transition:all 0.3s;box-sizing:border-box}.searchBox .filter-input-wrapper.focus{background-color:var(--search-box-background);border:1px solid rgba(255,255,255,0.2);border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px rgba(0,113,235,0.2)}.searchBox .filter-input-wrapper input{text-overflow:ellipsis;border:none;outline:none;border-radius:3px;background-color:var(--search-box-background);box-sizing:border-box;margin:0;padding:0;color:var(--antd-text-color);font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;width:100%;min-width:0;color:var(--antd-input-color);font-size:14px;line-height:1.5715;background-image:none;transition:all 0.3s}.prefix{margin-right:4px}.suffix{margin-left:4px}.searchBox .prefix,\n.searchBox .suffix{display:flex;flex:none;align-items:center}.clear-button{cursor:pointer}.tree{list-style:none;margin:0;padding:0}.placeholder{color:var(--antd-input-placeholder-color);padding:0 15px}.nodeLabelRow{display:flex;cursor:pointer;height:22px;padding-right:10px}.nodeLabelRow:hover,\n.nodeLabelRow.hover{background-color:rgba(255,255,255,0.12)}.nodeLabelRow:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:var(--node-background-focus)}.nodeLabelRow.active:focus{background-color:var(--node-background-focus)}.nodeLabel{display:flex;align-items:center;min-width:0;flex:1}.unreachable{opacity:0.3}.nodeAction,\n.nodeAction:hover,\n.nodeLabelRow .nodeLabel{color:var(--node-color)}.nodeLabelRow:focus .nodeLabel{color:var(--node-color-focus)}.nodeLabelRow.matched .nodeLabel{color:var(--palette-orange-6)}.nodeLabelRow.active{background-color:var(--node-background-active)}.nodeIconWrapper{display:flex;width:24px;flex-shrink:0}.nodeIcon,\n.collapseIcon{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:5px;font-size:13px}.collapseIcon{display:none}.nodeLabelRow.collapsed .nodeIcon,\n.nodeLabelRow.collapsible .nodeIconWrapper:hover .nodeIcon{display:none}.nodeLabelRow.collapsed .collapseIcon,\n.nodeLabelRow.collapsible .nodeIconWrapper:hover .collapseIcon{display:flex}.nodeLabelRow.collapsible .nodeIcon:hover,\n.nodeLabelRow.collapsible .collapseIcon:hover{background-color:var(--node-icon-background-hover)}.nodeName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nodeLabelRow:not(:hover, .fixedActions) .nodeActionsBar{display:none}.badge{margin:0 3px}.collapsed + .tree{display:none}.hightlight{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:#fcd93f}',""]);const l=i.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(i[c]=!0)}for(var s=0;s<e.length;s++){var d=[].concat(e[s]);o&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(7545),r=n(6902);function a(e,t,n){"symbol"==(0,o.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var i=n(1369);function l(e,t,n,l,c,s){var d,u,p,f,h,v,g,m=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,x=Object.create,y=[x(null),x(null)],w=t.length;function k(t,n,o){return function(r,a){n&&(a=r,r=e);for(var i=0;i<t.length;i++)a=t[i].apply(r,o?[a]:[]);return o?a:r}}function E(e,t,n,o){if("function"!=typeof e&&(o||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(o?"":" or undefined"));return e}function A(e,t,n,r,i,l,c,s,p,f,h){function v(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),m=t[3],x=!c,w=1===i,A=3===i,C=4===i,S=2===i;function L(t,n,o){return function(r,a){return n&&(a=r,r=e),o&&o(r),N[t].call(r,a)}}if(!x){var N={},I=[],M=A?"get":C||w?"set":"value";if(p?(f||w?N={get:a((function(){return m(this)}),r,"get"),set:function(e){t[4](this,e)}}:N[M]=m,f||a(N[M],r,S?"":M)):f||(N=Object.getOwnPropertyDescriptor(e,r)),!f&&!p){if((u=y[+s][r])&&7!=(u^i))throw Error("Decorating two elements with the same name ("+N[M].name+") is not supported yet");y[+s][r]=i<3?1:i}}for(var j=e,D=g.length-1;D>=0;D-=n?2:1){var R=E(g[D],"A decorator","be",!0),B=n?g[D-1]:void 0,P={},O={kind:["field","accessor","method","getter","setter","class"][i],name:r,metadata:d,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),l.push(t)}.bind(null,P)};if(x)u=R.call(B,j,O),P.v=1,E(u,"class decorators","return")&&(j=u);else if(O.static=s,O.private=p,u=O.access={has:p?h.bind():function(e){return r in e}},C||(u.get=p?S?function(e){return v(e),N.value}:L("get",0,v):function(e){return e[r]}),S||A||(u.set=p?L("set",0,v):function(e,t){e[r]=t}),j=R.call(B,w?{get:N.get,set:N.set}:N[M],O),P.v=1,w){if("object"==(0,o.A)(j)&&j)(u=E(j.get,"accessor.get"))&&(N.get=u),(u=E(j.set,"accessor.set"))&&(N.set=u),(u=E(j.init,"accessor.init"))&&I.unshift(u);else if(void 0!==j)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(j,(f?"field":"method")+" decorators","return")&&(f?I.unshift(j):N[M]=j)}return i<2&&c.push(k(I,s,1),k(l,s,0)),f||x||(p?w?c.splice(-1,0,L("get",s),L("set",s)):c.push(S?N[M]:E.call.bind(N[M])):b(e,r,N)),j}function C(e){return b(e,m,{configurable:!0,enumerable:!0,value:d})}return void 0!==s&&(d=s[m]),d=x(null==d?null:d),h=[],v=function(e){e&&h.push(k(e))},g=function(t,o){for(var a=0;a<n.length;a++){var l=n[a],s=l[1],d=7&s;if((8&s)==t&&!d==o){var u=l[2],v=!!l[3],g=16&s;A(t?e:e.prototype,l,g,v?"#"+u:(0,i.A)(u),d,d<2?[]:t?f=f||[]:p=p||[],h,!!t,v,o,t&&v?function(t){return(0,r.A)(t)===e}:c)}}},g(8,0),g(0,0),g(8,1),g(0,1),v(p),v(f),u=h,w||C(e),{e:u,get c(){var n=[];return w&&[C(e=A(e,[t],l,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{"use strict";function o(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>o})},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(7545);function r(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,o.A)(e):"null"));return e}},2016:(e,t,n)=>{"use strict";function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>o})},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2559);function r(e,t){return e.get((0,o.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2016);function r(e,t,n){(0,o.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2559);function r(e,t,n){return e.set((0,o.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2559);function r(e,t,n){return n((0,o.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2016);function r(e,t){(0,o.A)(e,t),t.add(e)}},9575:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{A:()=>o})}}]);
|
|
3
|
-
//# sourceMappingURL=3801.80b3cda4.js.map
|