@next-bricks/data-view 1.1.16 → 1.1.18

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.
Files changed (161) hide show
  1. package/dist/bricks.json +4 -3
  2. package/dist/chunks/1122.464ab287.js +2 -0
  3. package/dist/chunks/1122.464ab287.js.map +1 -0
  4. package/dist/chunks/{114.df72bbe6.js → 114.ab9670ac.js} +2 -2
  5. package/dist/chunks/{114.df72bbe6.js.map → 114.ab9670ac.js.map} +1 -1
  6. package/dist/chunks/{1493.52877643.js → 1493.ce383219.js} +2 -2
  7. package/dist/chunks/{1493.52877643.js.map → 1493.ce383219.js.map} +1 -1
  8. package/dist/chunks/1940.e846cef4.js +2 -0
  9. package/dist/chunks/1940.e846cef4.js.map +1 -0
  10. package/dist/chunks/{2277.f8327da6.js → 2277.2e4cd7b6.js} +2 -2
  11. package/dist/chunks/{2277.f8327da6.js.map → 2277.2e4cd7b6.js.map} +1 -1
  12. package/dist/chunks/{3171.9cd5af64.js → 3171.31ea05fc.js} +2 -2
  13. package/dist/chunks/{3171.9cd5af64.js.map → 3171.31ea05fc.js.map} +1 -1
  14. package/dist/chunks/3933.07be69fd.js +2 -0
  15. package/dist/chunks/{6314.77e3827a.js.map → 3933.07be69fd.js.map} +1 -1
  16. package/dist/chunks/4.fcdcf351.js +3 -0
  17. package/dist/chunks/4.fcdcf351.js.map +1 -0
  18. package/dist/chunks/{4658.b9f5c9f1.js → 4658.3eeb0dc0.js} +2 -2
  19. package/dist/chunks/{4658.b9f5c9f1.js.map → 4658.3eeb0dc0.js.map} +1 -1
  20. package/dist/chunks/4837.81d221f1.js +2 -0
  21. package/dist/chunks/4837.81d221f1.js.map +1 -0
  22. package/dist/chunks/5399.f850e6c7.js +2 -0
  23. package/dist/chunks/5399.f850e6c7.js.map +1 -0
  24. package/dist/chunks/{5552.9f1fa873.js → 5552.1db5b295.js} +2 -2
  25. package/dist/chunks/{5552.9f1fa873.js.map → 5552.1db5b295.js.map} +1 -1
  26. package/dist/chunks/6314.41b7c790.js +2 -0
  27. package/dist/chunks/{3933.46c2057c.js.map → 6314.41b7c790.js.map} +1 -1
  28. package/dist/chunks/6464.7dbcd905.js +2 -0
  29. package/dist/chunks/{6464.7dcf3bbf.js.map → 6464.7dbcd905.js.map} +1 -1
  30. package/dist/chunks/7218.ae65ebea.js +2 -0
  31. package/dist/chunks/7218.ae65ebea.js.map +1 -0
  32. package/dist/chunks/{7733.e39abf8d.js → 7733.5a338288.js} +2 -2
  33. package/dist/chunks/{7733.e39abf8d.js.map → 7733.5a338288.js.map} +1 -1
  34. package/dist/chunks/{8097.d7e1b542.js → 8097.48ffc597.js} +2 -2
  35. package/dist/chunks/{8097.d7e1b542.js.map → 8097.48ffc597.js.map} +1 -1
  36. package/dist/chunks/{9515.d6d0210f.js → 9515.2ce9d6aa.js} +2 -2
  37. package/dist/chunks/{9515.d6d0210f.js.map → 9515.2ce9d6aa.js.map} +1 -1
  38. package/dist/chunks/9559.b121379b.js +2 -0
  39. package/dist/chunks/9559.b121379b.js.map +1 -0
  40. package/dist/chunks/{app-wall-card-item.881fab73.js → app-wall-card-item.9ab50c94.js} +3 -3
  41. package/dist/chunks/{app-wall-card-item.881fab73.js.map → app-wall-card-item.9ab50c94.js.map} +1 -1
  42. package/dist/chunks/{app-wall-relation-line.4b32533c.js → app-wall-relation-line.030a6b3b.js} +3 -3
  43. package/dist/chunks/{app-wall-relation-line.4b32533c.js.map → app-wall-relation-line.030a6b3b.js.map} +1 -1
  44. package/dist/chunks/{app-wall-system-card.a4580f39.js → app-wall-system-card.4a808108.js} +2 -2
  45. package/dist/chunks/{app-wall-system-card.a4580f39.js.map → app-wall-system-card.4a808108.js.map} +1 -1
  46. package/dist/chunks/{app-wall.b4da3be8.js → app-wall.7248f1dc.js} +2 -2
  47. package/dist/chunks/{app-wall.b4da3be8.js.map → app-wall.7248f1dc.js.map} +1 -1
  48. package/dist/chunks/{basic-index-group.76663447.js → basic-index-group.12440edc.js} +2 -2
  49. package/dist/chunks/{basic-index-group.76663447.js.map → basic-index-group.12440edc.js.map} +1 -1
  50. package/dist/chunks/{battery-chart.0b81d56c.js → battery-chart.2b162017.js} +2 -2
  51. package/dist/chunks/{battery-chart.0b81d56c.js.map → battery-chart.2b162017.js.map} +1 -1
  52. package/dist/chunks/{brick-notification.87a2d06f.js → brick-notification.5e27c17c.js} +2 -2
  53. package/dist/chunks/{brick-notification.87a2d06f.js.map → brick-notification.5e27c17c.js.map} +1 -1
  54. package/dist/chunks/{cabinet-app-layer.0e9a2269.js → cabinet-app-layer.c80afdea.js} +3 -3
  55. package/dist/chunks/{cabinet-app-layer.0e9a2269.js.map → cabinet-app-layer.c80afdea.js.map} +1 -1
  56. package/dist/chunks/{cabinet-button.b7ce5682.js → cabinet-button.68ecc77b.js} +2 -2
  57. package/dist/chunks/{cabinet-button.b7ce5682.js.map → cabinet-button.68ecc77b.js.map} +1 -1
  58. package/dist/chunks/{cabinet-container.3a566be5.js → cabinet-container.7d5b3a41.js} +3 -3
  59. package/dist/chunks/{cabinet-container.3a566be5.js.map → cabinet-container.7d5b3a41.js.map} +1 -1
  60. package/dist/chunks/{cabinet-graph.12c6e8dd.js → cabinet-graph.4ff3f971.js} +2 -2
  61. package/dist/chunks/{cabinet-graph.12c6e8dd.js.map → cabinet-graph.4ff3f971.js.map} +1 -1
  62. package/dist/chunks/{cabinet-node.92d65845.js → cabinet-node.8cb309dd.js} +3 -3
  63. package/dist/chunks/{cabinet-node.92d65845.js.map → cabinet-node.8cb309dd.js.map} +1 -1
  64. package/dist/chunks/{cabinet-thumbnail.690b1247.js → cabinet-thumbnail.f062cd96.js} +3 -3
  65. package/dist/chunks/{cabinet-thumbnail.690b1247.js.map → cabinet-thumbnail.f062cd96.js.map} +1 -1
  66. package/dist/chunks/complex-search.012a8cbe.js +2 -0
  67. package/dist/chunks/{complex-search.7fc78f5b.js.map → complex-search.012a8cbe.js.map} +1 -1
  68. package/dist/chunks/{data-display-flipper-fifth.00f367d1.js → data-display-flipper-fifth.d05fcacf.js} +2 -2
  69. package/dist/chunks/{data-display-flipper-fifth.00f367d1.js.map → data-display-flipper-fifth.d05fcacf.js.map} +1 -1
  70. package/dist/chunks/{data-display-flipper-sixth.51d13a98.js → data-display-flipper-sixth.5bb861cd.js} +2 -2
  71. package/dist/chunks/{data-display-flipper-sixth.51d13a98.js.map → data-display-flipper-sixth.5bb861cd.js.map} +1 -1
  72. package/dist/chunks/{data-display-flipper.a320bdaa.js → data-display-flipper.cb936a1f.js} +2 -2
  73. package/dist/chunks/{data-display-flipper.a320bdaa.js.map → data-display-flipper.cb936a1f.js.map} +1 -1
  74. package/dist/chunks/{dropdown-menu.bbb4e9cb.js → dropdown-menu.70660262.js} +3 -3
  75. package/dist/chunks/{dropdown-menu.bbb4e9cb.js.map → dropdown-menu.70660262.js.map} +1 -1
  76. package/dist/chunks/{gauge-chart.c6374f78.js → gauge-chart.cdbf1aa1.js} +2 -2
  77. package/dist/chunks/{gauge-chart.c6374f78.js.map → gauge-chart.cdbf1aa1.js.map} +1 -1
  78. package/dist/chunks/{gear-background.e08db5bb.js → gear-background.cae0a07e.js} +2 -2
  79. package/dist/chunks/{gear-background.e08db5bb.js.map → gear-background.cae0a07e.js.map} +1 -1
  80. package/dist/chunks/{graph-layout-grid.f3db47ca.js → graph-layout-grid.c97095a4.js} +2 -2
  81. package/dist/chunks/{graph-layout-grid.f3db47ca.js.map → graph-layout-grid.c97095a4.js.map} +1 -1
  82. package/dist/chunks/{graph-node.e64efc14.js → graph-node.4a0ddddd.js} +2 -2
  83. package/dist/chunks/{graph-node.e64efc14.js.map → graph-node.4a0ddddd.js.map} +1 -1
  84. package/dist/chunks/{graph-text.7521eff4.js → graph-text.65da3356.js} +2 -2
  85. package/dist/chunks/{graph-text.7521eff4.js.map → graph-text.65da3356.js.map} +1 -1
  86. package/dist/chunks/{grid-background.68e83fef.js → grid-background.b4ec8828.js} +2 -2
  87. package/dist/chunks/{grid-background.68e83fef.js.map → grid-background.b4ec8828.js.map} +1 -1
  88. package/dist/chunks/{hi-tech-button.843d3992.js → hi-tech-button.0a838024.js} +2 -2
  89. package/dist/chunks/{hi-tech-button.843d3992.js.map → hi-tech-button.0a838024.js.map} +1 -1
  90. package/dist/chunks/{indicator-card.e53ce85a.js → indicator-card.59ad1307.js} +3 -3
  91. package/dist/chunks/{indicator-card.e53ce85a.js.map → indicator-card.59ad1307.js.map} +1 -1
  92. package/dist/chunks/{lights-component-title.c3f15f74.js → lights-component-title.f9f54d10.js} +2 -2
  93. package/dist/chunks/{lights-component-title.c3f15f74.js.map → lights-component-title.f9f54d10.js.map} +1 -1
  94. package/dist/chunks/{loading-panel.232b1722.js → loading-panel.386ffbd3.js} +2 -2
  95. package/dist/chunks/{loading-panel.232b1722.js.map → loading-panel.386ffbd3.js.map} +1 -1
  96. package/dist/chunks/main.18a7d640.js +2 -0
  97. package/dist/chunks/main.18a7d640.js.map +1 -0
  98. package/dist/chunks/{modern-style-component-title.966add65.js → modern-style-component-title.476574e0.js} +2 -2
  99. package/dist/chunks/{modern-style-component-title.966add65.js.map → modern-style-component-title.476574e0.js.map} +1 -1
  100. package/dist/chunks/{modern-style-page-title.02b9a747.js → modern-style-page-title.2548100f.js} +2 -2
  101. package/dist/chunks/{modern-style-page-title.02b9a747.js.map → modern-style-page-title.2548100f.js.map} +1 -1
  102. package/dist/chunks/modern-style-treemap.f5a086ca.js +3 -0
  103. package/dist/chunks/{modern-style-treemap.217b877c.js.map → modern-style-treemap.f5a086ca.js.map} +1 -1
  104. package/dist/chunks/{particle-animation.cdf398d1.js → particle-animation.b36f327b.js} +2 -2
  105. package/dist/chunks/{particle-animation.cdf398d1.js.map → particle-animation.b36f327b.js.map} +1 -1
  106. package/dist/chunks/{radar-chart.d0d7c36f.js → radar-chart.55328dc8.js} +2 -2
  107. package/dist/chunks/{radar-chart.d0d7c36f.js.map → radar-chart.55328dc8.js.map} +1 -1
  108. package/dist/chunks/{simple-card-item.dd6a2f02.js → simple-card-item.589e3c6c.js} +3 -3
  109. package/dist/chunks/{simple-card-item.dd6a2f02.js.map → simple-card-item.589e3c6c.js.map} +1 -1
  110. package/dist/chunks/{tabs-drawer.93ac4dd6.js → tabs-drawer.87adde4b.js} +3 -3
  111. package/dist/chunks/{tabs-drawer.93ac4dd6.js.map → tabs-drawer.87adde4b.js.map} +1 -1
  112. package/dist/chunks/{tabs-page-title.771449ee.js → tabs-page-title.d6fc2421.js} +3 -3
  113. package/dist/chunks/{tabs-page-title.771449ee.js.map → tabs-page-title.d6fc2421.js.map} +1 -1
  114. package/dist/chunks/{tech-mesh-base-view.c074ef1a.js → tech-mesh-base-view.16ceea86.js} +2 -2
  115. package/dist/chunks/{tech-mesh-base-view.c074ef1a.js.map → tech-mesh-base-view.16ceea86.js.map} +1 -1
  116. package/dist/chunks/{title-text.f06d0adb.js → title-text.2b8c06cd.js} +2 -2
  117. package/dist/chunks/{title-text.f06d0adb.js.map → title-text.2b8c06cd.js.map} +1 -1
  118. package/dist/chunks/{top-title-bar.94a435f7.js → top-title-bar.2c582648.js} +2 -2
  119. package/dist/chunks/{top-title-bar.94a435f7.js.map → top-title-bar.2c582648.js.map} +1 -1
  120. package/dist/examples.json +6 -6
  121. package/dist/index.bd4cad17.js +2 -0
  122. package/dist/index.bd4cad17.js.map +1 -0
  123. package/dist/manifest.json +46 -46
  124. package/dist/types.json +166 -166
  125. package/package.json +6 -5
  126. package/dist/chunks/1122.dc389f73.js +0 -2
  127. package/dist/chunks/1122.dc389f73.js.map +0 -1
  128. package/dist/chunks/1940.ee006dae.js +0 -2
  129. package/dist/chunks/1940.ee006dae.js.map +0 -1
  130. package/dist/chunks/3933.46c2057c.js +0 -2
  131. package/dist/chunks/5399.14482414.js +0 -2
  132. package/dist/chunks/5399.14482414.js.map +0 -1
  133. package/dist/chunks/6314.77e3827a.js +0 -2
  134. package/dist/chunks/6464.7dcf3bbf.js +0 -2
  135. package/dist/chunks/7041.f292f175.js +0 -3
  136. package/dist/chunks/7041.f292f175.js.map +0 -1
  137. package/dist/chunks/7115.16727b59.js +0 -2
  138. package/dist/chunks/7115.16727b59.js.map +0 -1
  139. package/dist/chunks/9496.cbc525cf.js +0 -2
  140. package/dist/chunks/9496.cbc525cf.js.map +0 -1
  141. package/dist/chunks/9559.68cb4518.js +0 -2
  142. package/dist/chunks/9559.68cb4518.js.map +0 -1
  143. package/dist/chunks/complex-search.7fc78f5b.js +0 -2
  144. package/dist/chunks/main.47b87171.js +0 -2
  145. package/dist/chunks/main.47b87171.js.map +0 -1
  146. package/dist/chunks/modern-style-treemap.217b877c.js +0 -3
  147. package/dist/index.88a9958d.js +0 -2
  148. package/dist/index.88a9958d.js.map +0 -1
  149. /package/dist/chunks/{7041.f292f175.js.LICENSE.txt → 4.fcdcf351.js.LICENSE.txt} +0 -0
  150. /package/dist/chunks/{app-wall-card-item.881fab73.js.LICENSE.txt → app-wall-card-item.9ab50c94.js.LICENSE.txt} +0 -0
  151. /package/dist/chunks/{app-wall-relation-line.4b32533c.js.LICENSE.txt → app-wall-relation-line.030a6b3b.js.LICENSE.txt} +0 -0
  152. /package/dist/chunks/{cabinet-app-layer.0e9a2269.js.LICENSE.txt → cabinet-app-layer.c80afdea.js.LICENSE.txt} +0 -0
  153. /package/dist/chunks/{cabinet-container.3a566be5.js.LICENSE.txt → cabinet-container.7d5b3a41.js.LICENSE.txt} +0 -0
  154. /package/dist/chunks/{cabinet-node.92d65845.js.LICENSE.txt → cabinet-node.8cb309dd.js.LICENSE.txt} +0 -0
  155. /package/dist/chunks/{cabinet-thumbnail.690b1247.js.LICENSE.txt → cabinet-thumbnail.f062cd96.js.LICENSE.txt} +0 -0
  156. /package/dist/chunks/{dropdown-menu.bbb4e9cb.js.LICENSE.txt → dropdown-menu.70660262.js.LICENSE.txt} +0 -0
  157. /package/dist/chunks/{indicator-card.e53ce85a.js.LICENSE.txt → indicator-card.59ad1307.js.LICENSE.txt} +0 -0
  158. /package/dist/chunks/{modern-style-treemap.217b877c.js.LICENSE.txt → modern-style-treemap.f5a086ca.js.LICENSE.txt} +0 -0
  159. /package/dist/chunks/{simple-card-item.dd6a2f02.js.LICENSE.txt → simple-card-item.589e3c6c.js.LICENSE.txt} +0 -0
  160. /package/dist/chunks/{tabs-drawer.93ac4dd6.js.LICENSE.txt → tabs-drawer.87adde4b.js.LICENSE.txt} +0 -0
  161. /package/dist/chunks/{tabs-page-title.771449ee.js.LICENSE.txt → tabs-page-title.d6fc2421.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -40,34 +40,31 @@
40
40
  "events": [],
41
41
  "methods": []
42
42
  },
43
- "data-view.modern-style-page-title": {
43
+ "data-view.modern-style-component-title": {
44
44
  "properties": [
45
45
  {
46
- "name": "pageTitle",
46
+ "name": "hideLeftComponent",
47
47
  "annotation": {
48
48
  "type": "keyword",
49
- "value": "string"
49
+ "value": "boolean"
50
50
  }
51
51
  },
52
52
  {
53
- "name": "description",
53
+ "name": "hideRightComponent",
54
54
  "annotation": {
55
55
  "type": "keyword",
56
- "value": "string"
56
+ "value": "boolean"
57
57
  }
58
58
  },
59
59
  {
60
- "name": "backgroundStyle",
60
+ "name": "componentTitle",
61
61
  "annotation": {
62
- "type": "reference",
63
- "typeName": {
64
- "type": "identifier",
65
- "name": "CSSProperties"
66
- }
62
+ "type": "keyword",
63
+ "value": "string"
67
64
  }
68
65
  },
69
66
  {
70
- "name": "leftRoundStyle",
67
+ "name": "titleTextStyle",
71
68
  "annotation": {
72
69
  "type": "reference",
73
70
  "typeName": {
@@ -77,12 +74,19 @@
77
74
  }
78
75
  },
79
76
  {
80
- "name": "rightRoundStyle",
77
+ "name": "squareColor",
81
78
  "annotation": {
82
- "type": "reference",
83
- "typeName": {
84
- "type": "identifier",
85
- "name": "CSSProperties"
79
+ "type": "indexedAccess",
80
+ "objectType": {
81
+ "type": "reference",
82
+ "typeName": {
83
+ "type": "identifier",
84
+ "name": "CSSProperties"
85
+ }
86
+ },
87
+ "indexType": {
88
+ "type": "jsLiteral",
89
+ "value": "color"
86
90
  }
87
91
  }
88
92
  }
@@ -90,31 +94,34 @@
90
94
  "events": [],
91
95
  "methods": []
92
96
  },
93
- "data-view.modern-style-component-title": {
97
+ "data-view.modern-style-page-title": {
94
98
  "properties": [
95
99
  {
96
- "name": "hideLeftComponent",
100
+ "name": "pageTitle",
97
101
  "annotation": {
98
102
  "type": "keyword",
99
- "value": "boolean"
103
+ "value": "string"
100
104
  }
101
105
  },
102
106
  {
103
- "name": "hideRightComponent",
107
+ "name": "description",
104
108
  "annotation": {
105
109
  "type": "keyword",
106
- "value": "boolean"
110
+ "value": "string"
107
111
  }
108
112
  },
109
113
  {
110
- "name": "componentTitle",
114
+ "name": "backgroundStyle",
111
115
  "annotation": {
112
- "type": "keyword",
113
- "value": "string"
116
+ "type": "reference",
117
+ "typeName": {
118
+ "type": "identifier",
119
+ "name": "CSSProperties"
120
+ }
114
121
  }
115
122
  },
116
123
  {
117
- "name": "titleTextStyle",
124
+ "name": "leftRoundStyle",
118
125
  "annotation": {
119
126
  "type": "reference",
120
127
  "typeName": {
@@ -124,19 +131,12 @@
124
131
  }
125
132
  },
126
133
  {
127
- "name": "squareColor",
134
+ "name": "rightRoundStyle",
128
135
  "annotation": {
129
- "type": "indexedAccess",
130
- "objectType": {
131
- "type": "reference",
132
- "typeName": {
133
- "type": "identifier",
134
- "name": "CSSProperties"
135
- }
136
- },
137
- "indexType": {
138
- "type": "jsLiteral",
139
- "value": "color"
136
+ "type": "reference",
137
+ "typeName": {
138
+ "type": "identifier",
139
+ "name": "CSSProperties"
140
140
  }
141
141
  }
142
142
  }
@@ -548,6 +548,134 @@
548
548
  ],
549
549
  "methods": []
550
550
  },
551
+ "data-view.particle-animation": {
552
+ "properties": [
553
+ {
554
+ "name": "colors",
555
+ "annotation": {
556
+ "type": "reference",
557
+ "typeName": {
558
+ "type": "identifier",
559
+ "name": "ColorType"
560
+ }
561
+ }
562
+ },
563
+ {
564
+ "name": "containerStyle",
565
+ "annotation": {
566
+ "type": "reference",
567
+ "typeName": {
568
+ "type": "qualifiedName",
569
+ "left": {
570
+ "type": "identifier",
571
+ "name": "React"
572
+ },
573
+ "right": {
574
+ "type": "identifier",
575
+ "name": "CSSProperties"
576
+ }
577
+ }
578
+ }
579
+ }
580
+ ],
581
+ "events": [],
582
+ "methods": [],
583
+ "types": [
584
+ {
585
+ "type": "interface",
586
+ "name": "ColorType",
587
+ "body": [
588
+ {
589
+ "type": "propertySignature",
590
+ "key": {
591
+ "type": "identifier",
592
+ "name": "startColor"
593
+ },
594
+ "annotation": {
595
+ "type": "indexedAccess",
596
+ "objectType": {
597
+ "type": "reference",
598
+ "typeName": {
599
+ "type": "qualifiedName",
600
+ "left": {
601
+ "type": "identifier",
602
+ "name": "React"
603
+ },
604
+ "right": {
605
+ "type": "identifier",
606
+ "name": "CSSProperties"
607
+ }
608
+ }
609
+ },
610
+ "indexType": {
611
+ "type": "jsLiteral",
612
+ "value": "color"
613
+ }
614
+ },
615
+ "computed": false
616
+ },
617
+ {
618
+ "type": "propertySignature",
619
+ "key": {
620
+ "type": "identifier",
621
+ "name": "middleColor"
622
+ },
623
+ "annotation": {
624
+ "type": "indexedAccess",
625
+ "objectType": {
626
+ "type": "reference",
627
+ "typeName": {
628
+ "type": "qualifiedName",
629
+ "left": {
630
+ "type": "identifier",
631
+ "name": "React"
632
+ },
633
+ "right": {
634
+ "type": "identifier",
635
+ "name": "CSSProperties"
636
+ }
637
+ }
638
+ },
639
+ "indexType": {
640
+ "type": "jsLiteral",
641
+ "value": "color"
642
+ }
643
+ },
644
+ "computed": false
645
+ },
646
+ {
647
+ "type": "propertySignature",
648
+ "key": {
649
+ "type": "identifier",
650
+ "name": "endColor"
651
+ },
652
+ "annotation": {
653
+ "type": "indexedAccess",
654
+ "objectType": {
655
+ "type": "reference",
656
+ "typeName": {
657
+ "type": "qualifiedName",
658
+ "left": {
659
+ "type": "identifier",
660
+ "name": "React"
661
+ },
662
+ "right": {
663
+ "type": "identifier",
664
+ "name": "CSSProperties"
665
+ }
666
+ }
667
+ },
668
+ "indexType": {
669
+ "type": "jsLiteral",
670
+ "value": "color"
671
+ }
672
+ },
673
+ "computed": false
674
+ }
675
+ ]
676
+ }
677
+ ]
678
+ },
551
679
  "data-view.app-wall-card-item": {
552
680
  "properties": [
553
681
  {
@@ -703,134 +831,6 @@
703
831
  }
704
832
  ]
705
833
  },
706
- "data-view.particle-animation": {
707
- "properties": [
708
- {
709
- "name": "colors",
710
- "annotation": {
711
- "type": "reference",
712
- "typeName": {
713
- "type": "identifier",
714
- "name": "ColorType"
715
- }
716
- }
717
- },
718
- {
719
- "name": "containerStyle",
720
- "annotation": {
721
- "type": "reference",
722
- "typeName": {
723
- "type": "qualifiedName",
724
- "left": {
725
- "type": "identifier",
726
- "name": "React"
727
- },
728
- "right": {
729
- "type": "identifier",
730
- "name": "CSSProperties"
731
- }
732
- }
733
- }
734
- }
735
- ],
736
- "events": [],
737
- "methods": [],
738
- "types": [
739
- {
740
- "type": "interface",
741
- "name": "ColorType",
742
- "body": [
743
- {
744
- "type": "propertySignature",
745
- "key": {
746
- "type": "identifier",
747
- "name": "startColor"
748
- },
749
- "annotation": {
750
- "type": "indexedAccess",
751
- "objectType": {
752
- "type": "reference",
753
- "typeName": {
754
- "type": "qualifiedName",
755
- "left": {
756
- "type": "identifier",
757
- "name": "React"
758
- },
759
- "right": {
760
- "type": "identifier",
761
- "name": "CSSProperties"
762
- }
763
- }
764
- },
765
- "indexType": {
766
- "type": "jsLiteral",
767
- "value": "color"
768
- }
769
- },
770
- "computed": false
771
- },
772
- {
773
- "type": "propertySignature",
774
- "key": {
775
- "type": "identifier",
776
- "name": "middleColor"
777
- },
778
- "annotation": {
779
- "type": "indexedAccess",
780
- "objectType": {
781
- "type": "reference",
782
- "typeName": {
783
- "type": "qualifiedName",
784
- "left": {
785
- "type": "identifier",
786
- "name": "React"
787
- },
788
- "right": {
789
- "type": "identifier",
790
- "name": "CSSProperties"
791
- }
792
- }
793
- },
794
- "indexType": {
795
- "type": "jsLiteral",
796
- "value": "color"
797
- }
798
- },
799
- "computed": false
800
- },
801
- {
802
- "type": "propertySignature",
803
- "key": {
804
- "type": "identifier",
805
- "name": "endColor"
806
- },
807
- "annotation": {
808
- "type": "indexedAccess",
809
- "objectType": {
810
- "type": "reference",
811
- "typeName": {
812
- "type": "qualifiedName",
813
- "left": {
814
- "type": "identifier",
815
- "name": "React"
816
- },
817
- "right": {
818
- "type": "identifier",
819
- "name": "CSSProperties"
820
- }
821
- }
822
- },
823
- "indexType": {
824
- "type": "jsLiteral",
825
- "value": "color"
826
- }
827
- },
828
- "computed": false
829
- }
830
- ]
831
- }
832
- ]
833
- },
834
834
  "data-view.app-wall-relation-line": {
835
835
  "properties": [
836
836
  {
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git@github.com:easyops-cn/next-bricks.git"
7
+ "url": "git@github.com:easyops-cn/next-bricks.git",
8
+ "directory": "bricks/data-view"
8
9
  },
9
10
  "license": "GPL-3.0",
10
11
  "type": "module",
@@ -34,11 +35,11 @@
34
35
  "postpublish": "mv package.json.bak package.json"
35
36
  },
36
37
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.21.1",
38
- "@next-core/test-next": "^1.1.2"
38
+ "@next-core/build-next-bricks": "^1.22.0",
39
+ "@next-core/test-next": "^1.1.3"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "@next-bricks/icons": "*"
42
43
  },
43
- "gitHead": "8b1ac1395511214d47faac3ae4681de13608f73f"
44
+ "gitHead": "21c9d773b3e9c226cf6768666fd6c6d588194f62"
44
45
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[1122],{4586:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(1369);function i(e,n,t){return(n=(0,r.A)(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},1369:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(7545);function i(e){var n=function(e,n){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(n)?n:n+""}},7545:(e,n,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.d(n,{A:()=>r})},1122:(e,n,t)=>{t.r(n),t.d(n,{cook:()=>R,isEvaluable:()=>U,isTrackAll:()=>G,precook:()=>z,precookFunction:()=>q,preevaluate:()=>_,shouldAllowRecursiveEvaluations:()=>W});var r=t(4586);class i{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0),(0,r.A)(this,"Function",void 0)}}class o{constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingMap",new Map),this.OuterEnv=e}HasBinding(e){return this.bindingMap.has(e)}CreateMutableBinding(e,n){return this.bindingMap.set(e,{mutable:!0,deletable:n}),v(void 0)}CreateImmutableBinding(e,n){return this.bindingMap.set(e,{strict:n}),v(void 0)}InitializeBinding(e,n){const t=this.bindingMap.get(e);return Object.assign(t,{initialized:!0,value:n}),v(void 0)}SetMutableBinding(e,n,t){const r=this.bindingMap.get(e);if(!r.initialized)throw new ReferenceError(`${e} is not initialized`);if(!r.mutable)throw new TypeError("Assignment to constant variable");return r.value=n,v(void 0)}GetBindingValue(e,n){const t=this.bindingMap.get(e);if(!t.initialized)throw new ReferenceError(`${e} is not initialized`);return t.value}}class a extends o{}class s extends o{}const c=Symbol.for("SourceNode"),u=Symbol.for("FormalParameters"),l=Symbol.for("ECMAScriptCode"),f=Symbol.for("Environment"),d=Symbol.for("IsConstructor");class p{constructor(e,n,t){(0,r.A)(this,"Base",void 0),(0,r.A)(this,"ReferenceName",void 0),(0,r.A)(this,"Strict",void 0),this.Base=e,this.ReferenceName=n,this.Strict=t}}class m{constructor(e,n){(0,r.A)(this,"Type",void 0),(0,r.A)(this,"Value",void 0),this.Type=e,this.Value=n}}function v(e){return new m("normal",e)}const y=Symbol("empty completion");function b(e){const n=new Set,t=e=>{if(Array.isArray(e))for(const n of e)t(n);else if(e)switch(e.type){case"Identifier":return void n.add(e.name);case"VariableDeclaration":return t(e.declarations);case"VariableDeclarator":case"FunctionDeclaration":return t(e.id);case"ArrayPattern":return t(e.elements);case"AssignmentPattern":return t(e.left);case"ObjectPattern":return t(e.properties);case"Property":return t(e.value);case"RestElement":return t(e.argument)}};return t(e),Array.from(n)}function g(e){const n=e=>{if(Array.isArray(e))return e.some(n);if(e)switch(e.type){case"ArrayPattern":return n(e.elements);case"AssignmentPattern":return!0;case"ObjectPattern":return n(e.properties);case"Property":return e.computed||n(e.value);case"RestElement":return n(e.argument)}};return n(e)}function h(e,n){const t=[],r={var:n.var},i=(e,n)=>{if(Array.isArray(e))for(const t of e)i(t,n);else if(e){switch(e.type){case"FunctionDeclaration":return void(Number(!n.var)^Number(n.topLevel)&&t.push(e));case"VariableDeclaration":return void(Number(!n.var)^Number("var"===e.kind)&&t.push(e));case"SwitchCase":return void i(e.consequent,r);case"CatchClause":return void i(e.body,r)}if(n.var)switch(e.type){case"BlockStatement":case"DoWhileStatement":case"WhileStatement":return void i(e.body,r);case"IfStatement":return i(e.consequent,r),void i(e.alternate,r);case"ForStatement":return i(e.init,r),void i(e.body,r);case"ForInStatement":case"ForOfStatement":return i(e.left,r),void i(e.body,r);case"SwitchStatement":return void i(e.cases,r);case"TryStatement":return i(e.block,r),i(e.handler,r),void i(e.finalizer,r)}}};return i(e,n),t}function E(e){return"unresolvable"!==e.Base&&!(e.Base instanceof o)}function w(e,n){return e.Base.InitializeBinding(e.ReferenceName,n)}function x(e,n,t){if(null==n)return e;const r=Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n));for(const i of r)if(!t.has(i)){const t=Object.getOwnPropertyDescriptor(n,i);null!=t&&t.enumerable&&(e[i]=n[i])}return e}function S(e,n){const t="const"===e.kind;for(const r of b(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1)}function B(e){return"normal"===e.Type||"continue"==e.Type}function A(e,n){return e.Value!==y?e:new m(e.Type,n)}function k(e){if(e instanceof m&&(e=e.Value),!(e instanceof p))return e;if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.GetBindingValue(e.ReferenceName,e.Strict):e.Base[e.ReferenceName]}function L(e){return"symbol"==typeof e?e:String(e)}function V(e,n){return e[n]}function C(e,n){if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.SetMutableBinding(e.ReferenceName,n,e.Strict):(e.Base[e.ReferenceName]=n,v(void 0))}function P(e){if(n=e,!(Array.isArray(n)||null!=n&&"function"==typeof n[Symbol.iterator]))throw new TypeError(typeof e+" is not iterable");var n;return e[Symbol.iterator]()}function T(e){if(null==e)throw new TypeError("Cannot destructure properties of undefined or null")}function I(e,n,t){return e?e.HasBinding(n)?new p(e,n,t):I(e.OuterEnv,n,t):new p("unresolvable",n,t)}function O(e,n,t){switch(n){case"+":return e+t;case"-":return e-t;case"/":return e/t;case"%":return e%t;case"*":return e*t;case"**":return e**t;case"==":return e==t;case"===":return e===t;case"!=":return e!=t;case"!==":return e!==t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}throw new SyntaxError(`Unsupported binary operator \`${n}\``)}const F=new WeakSet([Function,Object,Function.prototype,Object.prototype,function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}()]);function j(e){if(F.has(e))throw new TypeError("Cannot access reserved objects such as `Function`.")}const M=new WeakSet([Array,Map,Set,URLSearchParams,WeakMap,WeakSet,RegExp]);function R(e,n){var t;let{rules:r,globalVariables:o={},hooks:F={}}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const R="FunctionDeclaration"!==e.type,D=new a(null),$=new i;$.VariableEnvironment=D,$.LexicalEnvironment=D;const z=[$];for(const[e,n]of Object.entries(o))D.CreateImmutableBinding(e,!0),D.InitializeBinding(e,n);const N=new WeakMap;function q(e,t){var r,i,o;switch(null===(r=F.beforeEvaluate)||void 0===r||r.call(F,e),e.type){case"ArrayExpression":{const n=[];for(const t of e.elements)if(t)if("SpreadElement"===t.type){const e=k(q(t.argument));n.push(...e)}else n.push(k(q(t)));else n.length+=1;return v(n)}case"ArrowFunctionExpression":return ue(e),v(re(e,_().LexicalEnvironment,!1));case"BinaryExpression":{const t=k(q(e.left)),r=q(e.right).Value,i=k(r);if(R&&"|>"===e.operator){if("function"!=typeof i){const t=n.substring(e.right.start,e.right.end);throw new TypeError(`${t} is not a function`)}let o;return r instanceof p&&E(r)&&(o=r.Base),v(i.call(o,t))}return v(O(t,e.operator,i))}case"CallExpression":{const n=q(e.callee,t).Value,r=k(n);return null==r&&(e.optional||null!=t&&t.skipped)?(t.skipped=!0,v(void 0)):(j(r),Z(r,n,e.arguments,e.callee))}case"ChainExpression":return q(e.expression,{});case"ConditionalExpression":return v(k(q(k(q(e.test))?e.consequent:e.alternate)));case"Identifier":return v(U(e.name));case"Literal":if(e.regex){if(null===e.value)throw new SyntaxError(`Invalid regular expression: ${e.raw}`);if(e.regex.flags.includes("u"))throw new SyntaxError(`Unsupported unicode flag in regular expression: ${e.raw}`)}return v(e.value);case"LogicalExpression":{const n=k(q(e.left));switch(e.operator){case"&&":return v(n&&k(q(e.right)));case"||":return v(n||k(q(e.right)));case"??":return v(n??k(q(e.right)));default:throw new SyntaxError(`Unsupported logical operator '${e.operator}'`)}}case"MemberExpression":{const n=k(q(e.object,t).Value);if(null==n&&(e.optional||null!=t&&t.skipped))return t.skipped=!0,v(void 0);j(n);const r=e.computed?function(e,n,t){const r=L(k(q(n)));return new p(e,r,!0)}(n,e.property):function(e,n,t){const r=n.name;return new p(e,r,!0)}(n,e.property);return j(r),v(r)}case"NewExpression":return function(e,t){const r=k(q(e)),i=ee(t);if("function"!=typeof r||!1===r[d]){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not a constructor`)}if(!function(e){return M.has(e)||e===Date}(r)){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not an allowed constructor`)}return v(new r(...i))}(e.callee,e.arguments);case"ObjectExpression":{const n={};for(const t of e.properties)if("SpreadElement"===t.type)x(n,k(q(t.argument)),new Set);else{if("init"!==t.kind)throw new SyntaxError("Unsupported object getter/setter");const e=t.computed||"Identifier"!==t.key.type?oe(t.key):t.key.name;if("__proto__"===e)throw new TypeError("Setting '__proto__' property is not allowed");n[e]=k(q(t.value))}return v(n)}case"SequenceExpression":{let n;for(const t of e.expressions)n=v(k(q(t)));return n}case"TemplateLiteral":{const n=[e.quasis[0].value.cooked];let t=0;for(const r of e.expressions){const i=k(q(r));n.push(String(i)),n.push(e.quasis[t+=1].value.cooked)}return v(n.join(""))}case"TaggedTemplateExpression":{const n=q(e.tag).Value,t=k(n);return j(t),Z(t,n,e.quasi,e.tag)}case"UnaryExpression":{const n=q(e.argument).Value;if(!R&&"delete"===e.operator){if(!(n instanceof p))return v(!0);if(E(n))return v(delete n.Base[n.ReferenceName])}return"typeof"===e.operator?n instanceof p&&"unresolvable"===n.Base?v("undefined"):v(typeof k(n)):v(function(e,n){switch(n){case"!":return!e;case"+":return+e;case"-":return-e;case"void":return}throw new SyntaxError(`Unsupported unary operator \`${n}\``)}(k(n),e.operator))}}if(!R)switch(e.type){case"AssignmentExpression":{if("="===e.operator){if("ArrayPattern"!==e.left.type&&"ObjectPattern"!==e.left.type){const n=q(e.left).Value,t=k(q(e.right));return C(n,t),v(t)}const n=k(q(e.right));return K(e.left,n),v(n)}const n=q(e.left).Value,t=k(n),r=k(q(e.right)),i=function(e,n,t){switch(n){case"+=":case"-=":case"*=":case"/=":case"%=":case"**=":return O(e,n.substr(0,n.length-1),t)}throw new SyntaxError(`Unsupported assignment operator \`${n}\``)}(t,e.operator,r);return C(n,i),v(i)}case"BlockStatement":{if(!e.body.length)return v(y);const n=_().LexicalEnvironment,t=new a(n);Y(e.body,t),_().LexicalEnvironment=t;const r=ne(e.body);return _().LexicalEnvironment=n,r}case"BreakStatement":return new m("break",y);case"ContinueStatement":return new m("continue",y);case"EmptyStatement":case"FunctionDeclaration":return v(y);case"DoWhileStatement":return W(function(e){let n;for(;;){const t=q(e.body);if(!B(t))return A(t,n);if(t.Value!==y&&(n=t.Value),!k(q(e.test)))return v(n)}}(e));case"ExpressionStatement":case"TSAsExpression":return q(e.expression);case"ForInStatement":case"ForOfStatement":return W(function(e){const n=e.left,t="VariableDeclaration"===n.type?"var"===n.kind?"varBinding":"lexicalBinding":"assignment",r="lexicalBinding"===t?b(n):[],i="ForInStatement"===e.type?"enumerate":"iterate",o=function(e,n,t){const r=_(),i=r.LexicalEnvironment;if(e.length>0){const n=new a(i);for(const t of e)n.CreateMutableBinding(t,!1);r.LexicalEnvironment=n}const o=q(n);r.LexicalEnvironment=i;const s=k(o);return"enumerate"===t?null==s?new m("break",y):v(function*(e){for(const n in e)yield n}(s)):v(P(s))}(r,e.right,i);return"normal"!==o.Type?o:function(e,n,t,r,i){const o="assignment"===i?e:e.declarations[0].id,s=_().LexicalEnvironment;let c;const u="ObjectPattern"===o.type||"ArrayPattern"===o.type;for(;;){const{done:l,value:f}=t.next();if(l)return v(c);let d,p;if("lexicalBinding"===i){if(p=new a(s),S(e,p),_().LexicalEnvironment=p,!u){const[e]=b(o);d=U(e)}}else u||(d=q(o).Value);u?"assignment"===i?K(o,f):ie(o,f,"varBinding"===i?void 0:p):"lexicalBinding"===i?w(d,f):C(d,f);const m=q(n);if(_().LexicalEnvironment=s,!B(m)){const e=A(m,c);if("enumerate"!==r&&void 0!==t.return){const e=t.return();if(!e||!["object","function"].includes(typeof e))throw new TypeError("Iterator result is not an object")}return e}m.Value!==y&&(c=m.Value)}}(n,e.body,o.Value,i,t)}(e));case"ForStatement":return W(function(e){var n;if("VariableDeclaration"===(null===(n=e.init)||void 0===n?void 0:n.type)){if("var"===e.init.kind)return q(e.init),H(e.test,e.update,e.body,[]);const n=_().LexicalEnvironment,t=new a(n),r="const"===e.init.kind,i=b(e.init);for(const e of i)r?t.CreateImmutableBinding(e,!0):t.CreateMutableBinding(e,!1);_().LexicalEnvironment=t,q(e.init);const o=r?[]:Array.from(i),s=H(e.test,e.update,e.body,o);return _().LexicalEnvironment=n,s}return e.init&&k(q(e.init)),H(e.test,e.update,e.body,[])}(e));case"FunctionExpression":return ue(e),v(function(e){const n=_().LexicalEnvironment;if(e.id){const t=e.id.name,r=new a(n);r.CreateImmutableBinding(t,!1);const i=re(e,r,!0);return r.InitializeBinding(t,i),i}return re(e,n,!0)}(e));case"IfStatement":return k(q(e.test))?(null!==(i=F.beforeBranch)&&void 0!==i&&i.call(F,e,"if"),A(q(e.consequent),void 0)):(null!==(o=F.beforeBranch)&&void 0!==o&&o.call(F,e,"else"),e.alternate?A(q(e.alternate),void 0):v(void 0));case"ReturnStatement":{let n;return e.argument&&(n=k(q(e.argument))),new m("return",n)}case"ThrowStatement":throw k(q(e.argument));case"UpdateExpression":{const n=q(e.argument).Value,t=Number(k(n)),r="++"===e.operator?t+1:t-1;return C(n,r),v(e.prefix?r:t)}case"SwitchCase":return ne(e.consequent);case"SwitchStatement":{const n=k(q(e.discriminant)),t=_().LexicalEnvironment,r=new a(t);Y(e.cases,r),_().LexicalEnvironment=r;const i=function(e,n){let t;const r=e.findIndex((e=>!e.test)),i=r>=0,o=i?e.slice(0,r):e;let a=!1;for(const e of o)if(a||(a=G(e,n)),a){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}if(!i)return v(t);let s=!1;const c=e.slice(r+1);if(!a)for(const e of c)if(s||(s=G(e,n)),s){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}if(s)return v(t);const u=q(e[r]);if(u.Value!==y&&(t=u.Value),"normal"!==u.Type)return A(u,t);for(const e of c){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}return v(t)}(e.cases,n);return _().LexicalEnvironment=t,W(i)}case"TryStatement":{let n;try{n=q(e.block)}catch(t){if(!e.handler)throw t;var s;null===(s=F.beforeEvaluate)||void 0===s||s.call(F,e.handler),n=function(e,n){if(!e.param)return q(e.body);const t=_().LexicalEnvironment,r=new a(t);for(const n of b(e.param))r.CreateMutableBinding(n,!1);_().LexicalEnvironment=r,ie(e.param,n,r);const i=q(e.body);return _().LexicalEnvironment=t,i}(e.handler,t)}finally{if(e.finalizer){const t=q(e.finalizer);"normal"!==t.Type&&(n=t)}}return n}case"VariableDeclaration":{let n;for(const t of e.declarations)if(t.init)if("Identifier"===t.id.type){const r=U(t.id.name),i=k(q(t.init));n="var"===e.kind?C(r,i):w(r,i)}else{const r=k(q(t.init));n=ie(t.id,r,"var"===e.kind?void 0:_().LexicalEnvironment)}else n="var"===e.kind?v(y):w(U(t.id.name),void 0);return n}case"WhileStatement":return W(function(e){let n;for(;;){if(!k(q(e.test)))return v(n);const t=q(e.body);if(!B(t))return A(t,n);t.Value!==y&&(n=t.Value)}}(e))}throw new SyntaxError(`Unsupported node type \`${e.type}\``)}function _(){return z[z.length-1]}function U(e,n){return n||(n=_().LexicalEnvironment),I(n,e,!0)}function W(e){return"break"===e.Type?e.Value===y?v(void 0):v(e.Value):e}function G(e,n){return n===k(q(e.test))}function H(e,n,t,r){let i;for(J(r);;){if(e&&!k(q(e)))return v(i);const o=q(t);if(!B(o))return A(o,i);o.Value&&(i=o.Value),J(r),n&&k(q(n))}}function J(e){if(0===e.length)return;const n=_().LexicalEnvironment,t=n.OuterEnv,r=new a(t);for(const t of e){r.CreateMutableBinding(t,!1);const e=n.GetBindingValue(t,!1);r.InitializeBinding(t,e)}_().LexicalEnvironment=r}function K(e,n){if("ObjectPattern"===e.type)return T(n),e.properties.length>0&&function(e,n){const t=new Set;for(const r of e)if("Property"===r.type){const e=r.computed||"Identifier"!==r.key.type?oe(r.key):r.key.name,i="AssignmentPattern"===r.value.type?r.value.left:r.value;if("Identifier"===i.type){const o=U(i.name);let a=V(n,e);"AssignmentPattern"===r.value.type&&void 0===a&&(a=k(q(r.value.right))),C(o,a),t.add(e)}else Q(r.value,n,e),t.add(e)}else X(r,n,t)}(e.properties,n),v(y);const t=P(n);return function(e,n){let t=v(y);for(const r of e){if(!r){n.next(),t=v(y);continue}const e="RestElement"===r.type?r.argument:"AssignmentPattern"===r.type?r.left:r,i="ArrayPattern"===e.type||"ObjectPattern"===e.type;let o,a;if(i||(o=q(e).Value),"RestElement"!==r.type){const{done:e,value:t}=n.next(),i=e?void 0:t;a="AssignmentPattern"===r.type&&void 0===i?k(q(r.right)):i}else{a=[];let e=0;for(;;){const{done:t,value:r}=n.next();if(t)break;a[e]=r,e++}}t=i?K(e,a):C(o,a)}return t}(e.elements,t)}function Q(e,n,t){const r="AssignmentPattern"===e.type?e.left:e,i="ArrayPattern"===r.type||"ObjectPattern"===r.type;let o;i||(o=q(r).Value);const a=V(n,t);let s;return s="AssignmentPattern"===e.type&&void 0===a?k(q(e.right)):a,i?K(r,s):C(o,s)}function X(e,n,t){return C(q(e.argument).Value,x({},n,t))}function Y(e,n){const t=h(e,{var:!1,topLevel:!1});for(const e of t){const t="VariableDeclaration"===e.type&&"const"===e.kind;for(const r of b(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1);if("FunctionDeclaration"===e.type){const[t]=b(e),r=te(e,n);n.InitializeBinding(t,r)}}}function Z(e,t,r,i){let o;t instanceof p&&E(t)&&(o=t.Base);const a=ee(r);if("function"!=typeof e){const e=n.substring(i.start,i.end);throw new TypeError(`${e} is not a function`)}const s=e.apply(o,a);return j(s),v(s)}function ee(e){const n=[];if(Array.isArray(e))for(const t of e)if("SpreadElement"===t.type){const e=k(q(t.argument));n.push(...e)}else n.push(k(q(t)));else{n.push(function(e){const n=N.get(e);if(n)return n;const t=e.quasis.map((e=>e.value.raw)),r=e.quasis.map((e=>e.value.cooked));return Object.freeze(t),Object.defineProperty(r,"raw",{value:t,writable:!1,enumerable:!1,configurable:!1}),Object.freeze(r),N.set(e,r),r}(e));for(const t of e.expressions)n.push(k(q(t)))}return n}function ne(e){let n=v(y);for(const t of e){const e=q(t);if("normal"!==e.Type)return e;n=A(n,e.Value)}return n}function te(e,n){return re(e,n,!0)}function re(e,n,t){const o=function(){return function(e,n){var t;null===(t=F.beforeCall)||void 0===t||t.call(F,e[c]),function(e){const n=new i;n.Function=e;const t=new s(e[f]);n.VariableEnvironment=t,n.LexicalEnvironment=t,z.push(n)}(e);const o=function(e,n){return function(e,n,t){return function(e,n){const t=_(),i=e[l],o=e[u],s=b(o),c=g(o),f=h(i,{var:!0,topLevel:!0}),d=b(f),p=[],m=[];for(let e=f.length-1;e>=0;e--){const n=f[e];if("FunctionDeclaration"===n.type){ue(n);const[e]=b(n);p.includes(e)||(p.unshift(e),m.unshift(n))}else if(null!=r&&r.noVar)throw new SyntaxError("Var declaration is not recommended, use `let` or `const` instead")}const v=t.LexicalEnvironment;for(const e of s)v.CreateMutableBinding(e,!1);let y;if(se(o,P(n),v),c){y=new a(v),t.VariableEnvironment=y;for(const e of d){let n;y.CreateMutableBinding(e,!1),s.includes(e)&&!p.includes(e)&&(n=v.GetBindingValue(e,!1)),y.InitializeBinding(e,n)}}else{for(const e of d)s.includes(e)||(v.CreateMutableBinding(e,!1),v.InitializeBinding(e,void 0));y=v}const E=y;t.LexicalEnvironment=E;const w=h(i,{var:!1,topLevel:!0});for(const e of w)for(const n of b(e))"const"===e.kind?E.CreateImmutableBinding(n,!0):E.CreateMutableBinding(n,!1);for(const e of m){const[n]=b(e),t=te(e,E);y.SetMutableBinding(n,t,!1)}}(n,t),Array.isArray(e)?ne(e):new m("return",k(q(e)))}(e[l],e,n)}(e,n);if(z.pop(),"return"===o.Type)return o.Value}(o,arguments)};return Object.defineProperties(o,{[c]:{value:e},[u]:{value:e.params},[l]:{value:"BlockStatement"===e.body.type?e.body.body:e.body},[f]:{value:n},[d]:{value:t}}),o}function ie(e,n,t){switch(e.type){case"Identifier":return function(e,n,t){return t.InitializeBinding(e,n),v(y)}(e.name,n,t);case"ObjectPattern":return T(n),function(e,n,t){const r=new Set;for(const i of e){if("RestElement"===i.type)return ae(i,n,t,r);if(i.computed||"Identifier"!==i.key.type){const e=oe(i.key);ce(i.value,n,t,e),r.add(e)}else ce(i.value,n,t,i.key.name),r.add(i.key.name)}return v(y)}(e.properties,n,t);case"ArrayPattern":{const r=P(n);return se(e.elements,r,t)}}}function oe(e){return L(k(q(e)))}function ae(e,n,t,r){const i=U(e.argument.name,t),o=x({},n,r);return t?w(i,o):C(i,o)}function se(e,n,t){if(0===e.length)return v(y);let r;for(const i of e)if(i)if("RestElement"===i.type)if("Identifier"===i.argument.type){const e=U(i.argument.name,t),o=[];let a=0;for(;;){const{done:i,value:s}=n.next();if(i){r=t?w(e,o):C(e,o);break}o[a]=s,a++}}else{const e=[];let o=0;for(;;){const{done:a,value:s}=n.next();if(a){r=ie(i.argument,e,t);break}e[o]=s,o++}}else{const e="AssignmentPattern"===i.type?i.left:i;switch(e.type){case"ObjectPattern":case"ArrayPattern":{let o;const{done:a,value:s}=n.next();a||(o=s),"AssignmentPattern"===i.type&&void 0===o&&(o=k(q(i.right))),r=ie(e,o,t);break}case"Identifier":{const o=U(e.name,t);let a;const{done:s,value:c}=n.next();s||(a=c),"AssignmentPattern"===i.type&&void 0===a&&(a=k(q(i.right))),r=t?w(o,a):C(o,a);break}}}else n.next(),r=v(y);return r}function ce(e,n,t,r){if("Identifier"===e.type||"AssignmentPattern"===e.type&&"Identifier"===e.left.type){const i=U("Identifier"===e.type?e.name:e.left.name,t);let o=V(n,r);return"AssignmentPattern"===e.type&&void 0===o&&(o=k(q(e.right))),t?w(i,o):C(i,o)}let i=V(n,r);return"AssignmentPattern"===e.type&&void 0===i&&(i=k(q(e.right))),ie("AssignmentPattern"===e.type?e.left:e,i,t)}function ue(e){if(e.async||e.generator)throw new SyntaxError((e.async?"Async":"Generator")+" function is not allowed");if(R&&!e.expression)throw new SyntaxError("Only an `Expression` is allowed in `ArrowFunctionExpression`'s body")}if(R)return k(q(e));null===(t=F.beforeEvaluate)||void 0===t||t.call(F,e),ue(e);const[le]=b(e);D.CreateImmutableBinding(le,!0);const fe=te(e,D);return D.InitializeBinding(le,fe),fe}class D{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0)}}class ${constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingSet",new Set),this.OuterEnv=e}HasBinding(e){return this.bindingSet.has(e)}CreateBinding(e){this.bindingSet.add(e)}}function z(e){let{expressionOnly:n,visitors:t,withParent:r,hooks:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=new Set,a=[],s=new $(null),c=new D;function u(){return a[a.length-1]}function l(e,n,t){for(const r of n)f(e[r],null==t?void 0:t.concat({node:e,key:r}))}function f(e,r){if(Array.isArray(e))e.forEach(((e,n)=>{f(e,r?r.slice(0,-1).concat({...r[r.length-1],index:n}):r)}));else if(e){var a,s;switch(null===(a=i.beforeVisit)||void 0===a||a.call(i,e,r),function(e){var n,r;t&&(n=t,r=e.type,Object.prototype.hasOwnProperty.call(n,r))&&t[e.type](e)}(e),e.type){case"Identifier":var c;return h=e.name,void(p(u().LexicalEnvironment,h)||(null===(c=i.beforeVisitGlobal)||void 0===c||c.call(i,e,r),o.add(e.name)));case"ArrayExpression":case"ArrayPattern":return void l(e,["elements"],r);case"ArrowFunctionExpression":return void v(y(e,u().LexicalEnvironment),r);case"AssignmentPattern":case"BinaryExpression":case"LogicalExpression":return void l(e,["left","right"],r);case"CallExpression":case"NewExpression":return void l(e,["callee","arguments"],r);case"ChainExpression":return void l(e,["expression"],r);case"ConditionalExpression":return void l(e,["test","consequent","alternate"],r);case"MemberExpression":return l(e,["object"],r),void(e.computed&&l(e,["property"],r));case"ObjectExpression":case"ObjectPattern":return void l(e,["properties"],r);case"Property":return e.computed&&l(e,["key"],r),void l(e,["value"],r);case"RestElement":case"SpreadElement":case"UnaryExpression":return void l(e,["argument"],r);case"SequenceExpression":case"TemplateLiteral":return void l(e,["expressions"],r);case"TaggedTemplateExpression":return void l(e,["tag","quasi"],r);case"Literal":return}if(!n)switch(e.type){case"AssignmentExpression":return void l(e,["right","left"],r);case"BlockStatement":{if(!e.body.length)return;const n=u(),t=n.LexicalEnvironment,i=new $(t);return m(e.body,i),n.LexicalEnvironment=i,l(e,["body"],r),void(n.LexicalEnvironment=t)}case"BreakStatement":case"ContinueStatement":case"EmptyStatement":return;case"CatchClause":{const n=u(),t=n.LexicalEnvironment,i=new $(t);return d(e.param,i),n.LexicalEnvironment=i,l(e,["param","body"],r),void(n.LexicalEnvironment=t)}case"DoWhileStatement":return void l(e,["body","test"],r);case"ExpressionStatement":case"TSAsExpression":return void l(e,["expression"],r);case"ForInStatement":case"ForOfStatement":{const n="VariableDeclaration"===e.left.type&&"var"!==e.left.kind,t=u(),i=t.LexicalEnvironment;if(n){const n=new $(i);d(e.left,n),t.LexicalEnvironment=n}if(l(e,["right"],r),t.LexicalEnvironment=i,n){const n=new $(i);d(e.left,n),t.LexicalEnvironment=n}return l(e,["left","body"],r),void(t.LexicalEnvironment=i)}case"ForStatement":{var g;const n="VariableDeclaration"===(null===(g=e.init)||void 0===g?void 0:g.type)&&"var"!==e.init.kind,t=u(),i=t.LexicalEnvironment;if(n){const n=new $(i);d(e.init,n),t.LexicalEnvironment=n}return l(e,["init","test","body","update"],r),void(t.LexicalEnvironment=i)}case"FunctionDeclaration":{const[n]=b(e),t=u().LexicalEnvironment,i=y(e,t);return t.CreateBinding(n),void v(i,r)}case"FunctionExpression":{const n=function(e){const n=u().LexicalEnvironment;if(!e.id)return y(e,n);const t=e.id.name,r=new $(n);return r.CreateBinding(t),y(e,r)}(e);return void v(n,r)}case"IfStatement":return void l(e,["test","consequent","alternate"],r);case"ReturnStatement":case"ThrowStatement":case"UpdateExpression":return void l(e,["argument"],r);case"SwitchCase":return void l(e,["test","consequent"],r);case"SwitchStatement":{l(e,["discriminant"],r);const n=u(),t=n.LexicalEnvironment,i=new $(t);return m(e.cases,i),n.LexicalEnvironment=i,l(e,["cases"],r),void(n.LexicalEnvironment=t)}case"TryStatement":return void l(e,["block","handler","finalizer"],r);case"VariableDeclaration":return void l(e,["declarations"],r);case"VariableDeclarator":return void l(e,["id","init"],r);case"WhileStatement":return void l(e,["test","body"],r)}(null===(s=i.beforeVisitUnknown)||void 0===s?void 0:s.call(i,e,r))||console.warn(`Unsupported node type \`${e.type}\``)}var h}function d(e,n){for(const t of b(e))n.CreateBinding(t)}function p(e,n){return!!e&&(e.HasBinding(n)||p(e.OuterEnv,n))}function m(e,n){d(h(e,{var:!1,topLevel:!1}),n)}function v(e,n){!function(e){const n=new D,t=new $(e.Environment);n.VariableEnvironment=t,n.LexicalEnvironment=t,a.push(n)}(e),function(e,n){const t=u(),r=e.ECMAScriptCode,i=e.FormalParameters,o=g(i),a=b(h(r,{var:!0,topLevel:!0})),s=t.LexicalEnvironment;let c;if(d(i,s),f(i,null==n?void 0:n.concat({node:e.Function,key:"params"})),o){c=new $(s),t.VariableEnvironment=c;for(const e of a)c.CreateBinding(e)}else{for(const e of a)s.CreateBinding(e);c=s}const l=c;t.LexicalEnvironment=l,d(h(r,{var:!1,topLevel:!0}),l)}(e,n),f(e.ECMAScriptCode,null==n?void 0:n.concat({node:e.Function,key:"body"}).concat("BlockStatement"===e.Function.body.type?{node:e.Function.body,key:"body"}:[])),a.pop()}function y(e,n){return{Function:e,FormalParameters:e.params,ECMAScriptCode:"BlockStatement"===e.body.type?e.body.body:e.body,Environment:n}}return c.VariableEnvironment=s,c.LexicalEnvironment=s,a.push(c),f(e,r?[]:void 0),o}var N=t(6667);function q(e){let{typescript:n,...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){let{typescript:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=(0,N.parse)(e,{plugins:["estree",n&&"typescript"].filter(Boolean),strictMode:!0,attachComment:!1}).program.body,r=n?[]:t;if(n)for(const e of t)if(e.type.startsWith("TS")){if(/Enum|Import|Export/.test(e.type))throw new SyntaxError(`Unsupported TypeScript syntax: ${e.type}`)}else r.push(e);if(0===r.length)throw new SyntaxError("Function declaration not found");if(r.length>1||"FunctionDeclaration"!==r[0].type)throw new SyntaxError(`Expect a single function declaration at top level, but received: ${r.map((e=>`"${e.type}"`)).join(", ")}`);return r[0]}(e,{typescript:n});return{function:r,attemptToVisitGlobals:z(r,t)}}function _(e,n){const t=[],r=e.replace(/^\s*<%[~=]?\s|\s%>\s*$/g,(e=>(t.push(e),""))),i=function(e){return(0,N.parseExpression)(e,{plugins:["estree",["pipelineOperator",{proposal:"minimal"}]],attachComment:!1})}(r);return{expression:i,attemptToVisitGlobals:z(i,{...n,expressionOnly:!0}),source:r,prefix:t[0],suffix:t[1]}}function U(e){return/^\s*<%[~=]?\s/.test(e)&&/\s%>\s*$/.test(e)}function W(e){return/^\s*<%~\s/.test(e)}function G(e){return/^\s*<%=\s/.test(e)&&/\s%>\s*$/.test(e)}}}]);
2
- //# sourceMappingURL=1122.dc389f73.js.map