@next-bricks/nav 1.24.3 → 1.24.5
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 +27 -27
- package/dist/chunks/9149.f260681c.js +2 -0
- package/dist/chunks/9149.f260681c.js.map +1 -0
- package/dist/chunks/{main.136dc148.js → main.0d281534.js} +2 -2
- package/dist/chunks/{main.136dc148.js.map → main.0d281534.js.map} +1 -1
- package/dist/examples.json +10 -10
- package/dist/{index.a4d57852.js → index.8e935045.js} +2 -2
- package/dist/{index.a4d57852.js.map → index.8e935045.js.map} +1 -1
- package/dist/manifest.json +105 -105
- package/dist/types.json +89 -89
- package/package.json +2 -2
- package/dist/chunks/9149.0f9ad72a.js +0 -2
- package/dist/chunks/9149.0f9ad72a.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -96,16 +96,6 @@
|
|
|
96
96
|
"description": "构件 `nav.easyops-navbar-alerts`",
|
|
97
97
|
"insider": true
|
|
98
98
|
},
|
|
99
|
-
{
|
|
100
|
-
"name": "eo-launchpad-button-v2",
|
|
101
|
-
"properties": [],
|
|
102
|
-
"events": [],
|
|
103
|
-
"slots": [],
|
|
104
|
-
"methods": [],
|
|
105
|
-
"parts": [],
|
|
106
|
-
"description": "构件 `eo-launchpad-button-v2`",
|
|
107
|
-
"insider": true
|
|
108
|
-
},
|
|
109
99
|
{
|
|
110
100
|
"name": "eo-launchpad-quick-access",
|
|
111
101
|
"properties": [
|
|
@@ -125,22 +115,6 @@
|
|
|
125
115
|
"description": "快捷访问",
|
|
126
116
|
"insider": true
|
|
127
117
|
},
|
|
128
|
-
{
|
|
129
|
-
"name": "eo-search-launchpad",
|
|
130
|
-
"properties": [
|
|
131
|
-
{
|
|
132
|
-
"name": "readonly",
|
|
133
|
-
"description": "简约模式",
|
|
134
|
-
"type": "boolean"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"events": [],
|
|
138
|
-
"slots": [],
|
|
139
|
-
"methods": [],
|
|
140
|
-
"parts": [],
|
|
141
|
-
"description": "launchpad 搜索",
|
|
142
|
-
"insider": true
|
|
143
|
-
},
|
|
144
118
|
{
|
|
145
119
|
"name": "eo-launchpad-recent-visits",
|
|
146
120
|
"properties": [
|
|
@@ -158,41 +132,24 @@
|
|
|
158
132
|
"insider": true
|
|
159
133
|
},
|
|
160
134
|
{
|
|
161
|
-
"name": "eo-launchpad-button",
|
|
135
|
+
"name": "eo-launchpad-button-v2",
|
|
162
136
|
"properties": [],
|
|
163
137
|
"events": [],
|
|
164
138
|
"slots": [],
|
|
165
139
|
"methods": [],
|
|
166
140
|
"parts": [],
|
|
167
|
-
"description": "
|
|
141
|
+
"description": "构件 `eo-launchpad-button-v2`",
|
|
168
142
|
"insider": true
|
|
169
143
|
},
|
|
170
144
|
{
|
|
171
|
-
"name": "eo-
|
|
172
|
-
"properties": [
|
|
173
|
-
{
|
|
174
|
-
"name": "breadcrumb",
|
|
175
|
-
"description": "面包屑配置",
|
|
176
|
-
"attribute": false,
|
|
177
|
-
"type": "BreadcrumbItemConf[]"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"name": "noCurrentApp",
|
|
181
|
-
"description": "是否隐藏当前应用名称",
|
|
182
|
-
"type": "boolean"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"name": "menu",
|
|
186
|
-
"description": "菜单配置",
|
|
187
|
-
"attribute": false,
|
|
188
|
-
"type": "Menu"
|
|
189
|
-
}
|
|
190
|
-
],
|
|
145
|
+
"name": "eo-launchpad-button",
|
|
146
|
+
"properties": [],
|
|
191
147
|
"events": [],
|
|
192
148
|
"slots": [],
|
|
193
149
|
"methods": [],
|
|
194
150
|
"parts": [],
|
|
195
|
-
"description": "
|
|
151
|
+
"description": "Launchpad 按钮构件",
|
|
152
|
+
"insider": true
|
|
196
153
|
},
|
|
197
154
|
{
|
|
198
155
|
"name": "eo-app-bar-wrapper",
|
|
@@ -242,23 +199,83 @@
|
|
|
242
199
|
"description": "应用顶部容器"
|
|
243
200
|
},
|
|
244
201
|
{
|
|
245
|
-
"name": "eo-
|
|
202
|
+
"name": "eo-search-launchpad",
|
|
246
203
|
"properties": [
|
|
247
204
|
{
|
|
248
|
-
"name": "
|
|
249
|
-
"description": "
|
|
205
|
+
"name": "readonly",
|
|
206
|
+
"description": "简约模式",
|
|
250
207
|
"type": "boolean"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"events": [],
|
|
211
|
+
"slots": [],
|
|
212
|
+
"methods": [],
|
|
213
|
+
"parts": [],
|
|
214
|
+
"description": "launchpad 搜索",
|
|
215
|
+
"insider": true
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "eo-frame-breadcrumb",
|
|
219
|
+
"properties": [
|
|
220
|
+
{
|
|
221
|
+
"name": "breadcrumb",
|
|
222
|
+
"description": "面包屑配置",
|
|
223
|
+
"attribute": false,
|
|
224
|
+
"type": "BreadcrumbItemConf[]"
|
|
251
225
|
},
|
|
252
226
|
{
|
|
253
|
-
"name": "
|
|
254
|
-
"description": "
|
|
227
|
+
"name": "noCurrentApp",
|
|
228
|
+
"description": "是否隐藏当前应用名称",
|
|
255
229
|
"type": "boolean"
|
|
256
230
|
},
|
|
231
|
+
{
|
|
232
|
+
"name": "menu",
|
|
233
|
+
"description": "菜单配置",
|
|
234
|
+
"attribute": false,
|
|
235
|
+
"type": "Menu"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"events": [],
|
|
239
|
+
"slots": [],
|
|
240
|
+
"methods": [],
|
|
241
|
+
"parts": [],
|
|
242
|
+
"description": "面包屑"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "eo-sidebar-menu-item",
|
|
246
|
+
"properties": [
|
|
247
|
+
{
|
|
248
|
+
"name": "url",
|
|
249
|
+
"description": "菜单项对应的系统内地址",
|
|
250
|
+
"attribute": false,
|
|
251
|
+
"type": "LinkProps[\"url\"]"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "href",
|
|
255
|
+
"description": "菜单项对应的外部链接地址",
|
|
256
|
+
"type": "LinkProps[\"href\"]"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "target",
|
|
260
|
+
"description": "菜单项链接打开的目标",
|
|
261
|
+
"type": "LinkProps[\"target\"]"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "icon",
|
|
265
|
+
"description": "菜单项的图标",
|
|
266
|
+
"attribute": false,
|
|
267
|
+
"type": "GeneralIconProps"
|
|
268
|
+
},
|
|
257
269
|
{
|
|
258
270
|
"name": "selected",
|
|
259
271
|
"description": "是否选中",
|
|
260
272
|
"type": "boolean"
|
|
261
273
|
},
|
|
274
|
+
{
|
|
275
|
+
"name": "inSubmenu",
|
|
276
|
+
"description": "是否在二级菜单中",
|
|
277
|
+
"type": "boolean"
|
|
278
|
+
},
|
|
262
279
|
{
|
|
263
280
|
"name": "menuCollapsed",
|
|
264
281
|
"description": "菜单整体是否收起状态",
|
|
@@ -266,29 +283,18 @@
|
|
|
266
283
|
}
|
|
267
284
|
],
|
|
268
285
|
"events": [],
|
|
269
|
-
"slots": [
|
|
270
|
-
{
|
|
271
|
-
"name": "title",
|
|
272
|
-
"description": "分组标题"
|
|
273
|
-
}
|
|
274
|
-
],
|
|
286
|
+
"slots": [],
|
|
275
287
|
"methods": [],
|
|
276
288
|
"parts": [],
|
|
277
|
-
"description": "
|
|
289
|
+
"description": "侧栏菜单项",
|
|
278
290
|
"category": "navigation"
|
|
279
291
|
},
|
|
280
292
|
{
|
|
281
|
-
"name": "eo-sidebar-menu-
|
|
293
|
+
"name": "eo-sidebar-menu-group",
|
|
282
294
|
"properties": [
|
|
283
295
|
{
|
|
284
|
-
"name": "
|
|
285
|
-
"description": "
|
|
286
|
-
"attribute": false,
|
|
287
|
-
"type": "GeneralIconProps"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"name": "selected",
|
|
291
|
-
"description": "是否选中",
|
|
296
|
+
"name": "collapsable",
|
|
297
|
+
"description": "是否允许折叠",
|
|
292
298
|
"type": "boolean"
|
|
293
299
|
},
|
|
294
300
|
{
|
|
@@ -296,6 +302,11 @@
|
|
|
296
302
|
"description": "是否折叠",
|
|
297
303
|
"type": "boolean"
|
|
298
304
|
},
|
|
305
|
+
{
|
|
306
|
+
"name": "selected",
|
|
307
|
+
"description": "是否选中",
|
|
308
|
+
"type": "boolean"
|
|
309
|
+
},
|
|
299
310
|
{
|
|
300
311
|
"name": "menuCollapsed",
|
|
301
312
|
"description": "菜单整体是否收起状态",
|
|
@@ -306,36 +317,20 @@
|
|
|
306
317
|
"slots": [
|
|
307
318
|
{
|
|
308
319
|
"name": "title",
|
|
309
|
-
"description": "
|
|
320
|
+
"description": "分组标题"
|
|
310
321
|
}
|
|
311
322
|
],
|
|
312
323
|
"methods": [],
|
|
313
324
|
"parts": [],
|
|
314
|
-
"description": "
|
|
325
|
+
"description": "侧栏菜单分组",
|
|
315
326
|
"category": "navigation"
|
|
316
327
|
},
|
|
317
328
|
{
|
|
318
|
-
"name": "eo-sidebar-menu-
|
|
329
|
+
"name": "eo-sidebar-menu-submenu",
|
|
319
330
|
"properties": [
|
|
320
|
-
{
|
|
321
|
-
"name": "url",
|
|
322
|
-
"description": "菜单项对应的系统内地址",
|
|
323
|
-
"attribute": false,
|
|
324
|
-
"type": "LinkProps[\"url\"]"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"name": "href",
|
|
328
|
-
"description": "菜单项对应的外部链接地址",
|
|
329
|
-
"type": "LinkProps[\"href\"]"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"name": "target",
|
|
333
|
-
"description": "菜单项链接打开的目标",
|
|
334
|
-
"type": "LinkProps[\"target\"]"
|
|
335
|
-
},
|
|
336
331
|
{
|
|
337
332
|
"name": "icon",
|
|
338
|
-
"description": "
|
|
333
|
+
"description": "菜单的图标",
|
|
339
334
|
"attribute": false,
|
|
340
335
|
"type": "GeneralIconProps"
|
|
341
336
|
},
|
|
@@ -345,8 +340,8 @@
|
|
|
345
340
|
"type": "boolean"
|
|
346
341
|
},
|
|
347
342
|
{
|
|
348
|
-
"name": "
|
|
349
|
-
"description": "
|
|
343
|
+
"name": "collapsed",
|
|
344
|
+
"description": "是否折叠",
|
|
350
345
|
"type": "boolean"
|
|
351
346
|
},
|
|
352
347
|
{
|
|
@@ -356,10 +351,15 @@
|
|
|
356
351
|
}
|
|
357
352
|
],
|
|
358
353
|
"events": [],
|
|
359
|
-
"slots": [
|
|
354
|
+
"slots": [
|
|
355
|
+
{
|
|
356
|
+
"name": "title",
|
|
357
|
+
"description": "子菜单标题"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
360
|
"methods": [],
|
|
361
361
|
"parts": [],
|
|
362
|
-
"description": "
|
|
362
|
+
"description": "侧栏菜单子菜单",
|
|
363
363
|
"category": "navigation"
|
|
364
364
|
},
|
|
365
365
|
{
|
|
@@ -644,15 +644,6 @@
|
|
|
644
644
|
"parts": [],
|
|
645
645
|
"description": "目录树叶子节点"
|
|
646
646
|
},
|
|
647
|
-
{
|
|
648
|
-
"name": "nav.nav-logo",
|
|
649
|
-
"properties": [],
|
|
650
|
-
"events": [],
|
|
651
|
-
"slots": [],
|
|
652
|
-
"methods": [],
|
|
653
|
-
"parts": [],
|
|
654
|
-
"description": "导航栏图标"
|
|
655
|
-
},
|
|
656
647
|
{
|
|
657
648
|
"name": "eo-directory-tree-internal-node",
|
|
658
649
|
"properties": [
|
|
@@ -710,13 +701,13 @@
|
|
|
710
701
|
"description": "目录树节点节点"
|
|
711
702
|
},
|
|
712
703
|
{
|
|
713
|
-
"name": "nav.
|
|
704
|
+
"name": "nav.nav-logo",
|
|
714
705
|
"properties": [],
|
|
715
706
|
"events": [],
|
|
716
707
|
"slots": [],
|
|
717
708
|
"methods": [],
|
|
718
709
|
"parts": [],
|
|
719
|
-
"description": "
|
|
710
|
+
"description": "导航栏图标"
|
|
720
711
|
},
|
|
721
712
|
{
|
|
722
713
|
"name": "nav.poll-announce",
|
|
@@ -753,6 +744,15 @@
|
|
|
753
744
|
"methods": [],
|
|
754
745
|
"parts": [],
|
|
755
746
|
"description": "轮询获取通知消息并展示。\n\n 从 v2 构件 `nav-legacy.poll-announce` 迁移而来"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"name": "nav.query-search",
|
|
750
|
+
"properties": [],
|
|
751
|
+
"events": [],
|
|
752
|
+
"slots": [],
|
|
753
|
+
"methods": [],
|
|
754
|
+
"parts": [],
|
|
755
|
+
"description": "构件 `nav.query-search`"
|
|
756
756
|
}
|
|
757
757
|
],
|
|
758
758
|
"providers": [
|
package/dist/types.json
CHANGED
|
@@ -4,6 +4,59 @@
|
|
|
4
4
|
"events": [],
|
|
5
5
|
"methods": []
|
|
6
6
|
},
|
|
7
|
+
"eo-app-bar-wrapper": {
|
|
8
|
+
"properties": [
|
|
9
|
+
{
|
|
10
|
+
"name": "isFixed",
|
|
11
|
+
"annotation": {
|
|
12
|
+
"type": "keyword",
|
|
13
|
+
"value": "boolean"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "position",
|
|
18
|
+
"annotation": {
|
|
19
|
+
"type": "union",
|
|
20
|
+
"types": [
|
|
21
|
+
{
|
|
22
|
+
"type": "jsLiteral",
|
|
23
|
+
"value": "static"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "jsLiteral",
|
|
27
|
+
"value": "fixed"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "displayCenter",
|
|
34
|
+
"annotation": {
|
|
35
|
+
"type": "keyword",
|
|
36
|
+
"value": "boolean"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "extraAppBarContentStyle",
|
|
41
|
+
"annotation": {
|
|
42
|
+
"type": "reference",
|
|
43
|
+
"typeName": {
|
|
44
|
+
"type": "qualifiedName",
|
|
45
|
+
"left": {
|
|
46
|
+
"type": "identifier",
|
|
47
|
+
"name": "React"
|
|
48
|
+
},
|
|
49
|
+
"right": {
|
|
50
|
+
"type": "identifier",
|
|
51
|
+
"name": "CSSProperties"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"events": [],
|
|
58
|
+
"methods": []
|
|
59
|
+
},
|
|
7
60
|
"eo-frame-breadcrumb": {
|
|
8
61
|
"properties": [
|
|
9
62
|
{
|
|
@@ -92,59 +145,6 @@
|
|
|
92
145
|
}
|
|
93
146
|
]
|
|
94
147
|
},
|
|
95
|
-
"eo-app-bar-wrapper": {
|
|
96
|
-
"properties": [
|
|
97
|
-
{
|
|
98
|
-
"name": "isFixed",
|
|
99
|
-
"annotation": {
|
|
100
|
-
"type": "keyword",
|
|
101
|
-
"value": "boolean"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "position",
|
|
106
|
-
"annotation": {
|
|
107
|
-
"type": "union",
|
|
108
|
-
"types": [
|
|
109
|
-
{
|
|
110
|
-
"type": "jsLiteral",
|
|
111
|
-
"value": "static"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"type": "jsLiteral",
|
|
115
|
-
"value": "fixed"
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"name": "displayCenter",
|
|
122
|
-
"annotation": {
|
|
123
|
-
"type": "keyword",
|
|
124
|
-
"value": "boolean"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "extraAppBarContentStyle",
|
|
129
|
-
"annotation": {
|
|
130
|
-
"type": "reference",
|
|
131
|
-
"typeName": {
|
|
132
|
-
"type": "qualifiedName",
|
|
133
|
-
"left": {
|
|
134
|
-
"type": "identifier",
|
|
135
|
-
"name": "React"
|
|
136
|
-
},
|
|
137
|
-
"right": {
|
|
138
|
-
"type": "identifier",
|
|
139
|
-
"name": "CSSProperties"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"events": [],
|
|
146
|
-
"methods": []
|
|
147
|
-
},
|
|
148
148
|
"eo-sidebar-menu-item": {
|
|
149
149
|
"properties": [
|
|
150
150
|
{
|
|
@@ -564,29 +564,29 @@
|
|
|
564
564
|
"events": [],
|
|
565
565
|
"methods": []
|
|
566
566
|
},
|
|
567
|
-
"eo-
|
|
567
|
+
"eo-launchpad-recent-visits": {
|
|
568
568
|
"properties": [
|
|
569
569
|
{
|
|
570
|
-
"name": "
|
|
570
|
+
"name": "target",
|
|
571
571
|
"annotation": {
|
|
572
|
-
"type": "
|
|
573
|
-
"
|
|
572
|
+
"type": "reference",
|
|
573
|
+
"typeName": {
|
|
574
|
+
"type": "identifier",
|
|
575
|
+
"name": "Target"
|
|
576
|
+
}
|
|
574
577
|
}
|
|
575
578
|
}
|
|
576
579
|
],
|
|
577
580
|
"events": [],
|
|
578
581
|
"methods": []
|
|
579
582
|
},
|
|
580
|
-
"eo-launchpad
|
|
583
|
+
"eo-search-launchpad": {
|
|
581
584
|
"properties": [
|
|
582
585
|
{
|
|
583
|
-
"name": "
|
|
586
|
+
"name": "readonly",
|
|
584
587
|
"annotation": {
|
|
585
|
-
"type": "
|
|
586
|
-
"
|
|
587
|
-
"type": "identifier",
|
|
588
|
-
"name": "Target"
|
|
589
|
-
}
|
|
588
|
+
"type": "keyword",
|
|
589
|
+
"value": "boolean"
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
],
|
|
@@ -1384,11 +1384,6 @@
|
|
|
1384
1384
|
],
|
|
1385
1385
|
"methods": []
|
|
1386
1386
|
},
|
|
1387
|
-
"nav.query-search": {
|
|
1388
|
-
"properties": [],
|
|
1389
|
-
"events": [],
|
|
1390
|
-
"methods": []
|
|
1391
|
-
},
|
|
1392
1387
|
"nav.poll-announce": {
|
|
1393
1388
|
"properties": [
|
|
1394
1389
|
{
|
|
@@ -1864,26 +1859,8 @@
|
|
|
1864
1859
|
}
|
|
1865
1860
|
]
|
|
1866
1861
|
},
|
|
1867
|
-
"
|
|
1868
|
-
"properties": [
|
|
1869
|
-
{
|
|
1870
|
-
"name": "readonly",
|
|
1871
|
-
"annotation": {
|
|
1872
|
-
"type": "keyword",
|
|
1873
|
-
"value": "boolean"
|
|
1874
|
-
}
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
"name": "target",
|
|
1878
|
-
"annotation": {
|
|
1879
|
-
"type": "reference",
|
|
1880
|
-
"typeName": {
|
|
1881
|
-
"type": "identifier",
|
|
1882
|
-
"name": "Target"
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
],
|
|
1862
|
+
"nav.query-search": {
|
|
1863
|
+
"properties": [],
|
|
1887
1864
|
"events": [],
|
|
1888
1865
|
"methods": []
|
|
1889
1866
|
},
|
|
@@ -2979,6 +2956,29 @@
|
|
|
2979
2956
|
"events": [],
|
|
2980
2957
|
"methods": []
|
|
2981
2958
|
},
|
|
2959
|
+
"eo-launchpad-quick-access": {
|
|
2960
|
+
"properties": [
|
|
2961
|
+
{
|
|
2962
|
+
"name": "readonly",
|
|
2963
|
+
"annotation": {
|
|
2964
|
+
"type": "keyword",
|
|
2965
|
+
"value": "boolean"
|
|
2966
|
+
}
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"name": "target",
|
|
2970
|
+
"annotation": {
|
|
2971
|
+
"type": "reference",
|
|
2972
|
+
"typeName": {
|
|
2973
|
+
"type": "identifier",
|
|
2974
|
+
"name": "Target"
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
],
|
|
2979
|
+
"events": [],
|
|
2980
|
+
"methods": []
|
|
2981
|
+
},
|
|
2982
2982
|
"eo-launchpad-button-v2": {
|
|
2983
2983
|
"properties": [],
|
|
2984
2984
|
"events": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/nav",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.5",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/nav",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@next-bricks/form": "*",
|
|
44
44
|
"@next-bricks/icons": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ca257cf66471197669b4639f243cd411ada6b39a"
|
|
47
47
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[9149],{1724:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,':root{--eo-launchpad-v2-background:#fff;--eo-launchpad-v2-menu-icon-color:#8c8c8c}html[data-theme="dark"],\nhtml[data-theme="dark-v2"]{--eo-launchpad-v2-background:#26262a;--eo-launchpad-v2-menu-icon-color:rgba(255,255,255,0.45)}',""]);const o=i},3693:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,".platform-category-name,\n.platform-category-sidebar-menu-item-label,\n.platform-item-name,\n.platform-item-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-category-sidebar-menu-item{display:flex;gap:8px;align-items:center;padding:0px 12px 0px 16px}.platform-category-sidebar-menu-item > eo-link{display:block;min-width:0px;color:var(--color-header-text);cursor:pointer}.platform-category-sidebar-menu-item > eo-link:hover,\n.platform-category-sidebar-menu-item\n > eo-link:hover\n .platform-category-sidebar-menu-icon{color:var(--color-brand-hover)}.platform-category-sidebar-menu-item > eo-link.active,\n.platform-category-sidebar-menu-item\n > eo-link.active\n .platform-category-sidebar-menu-icon{color:var(--color-brand-active)}.platform-category-sidebar-menu-item > eo-link::part(link){height:20px;display:flex;align-items:center;gap:8px}.platform-category-sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.platform-category-name{font-size:18px;font-weight:500;color:var(--text-color-secondary);flex-shrink:0}.platform-items{display:grid;grid-template-columns:repeat(2,1fr);gap:0 54px}.platform-items > li{min-width:0}.platform-items > li > eo-link{width:100%;cursor:pointer}.platform-item{padding:12px 0;display:flex;flex-direction:column}.platform-item:hover .platform-item-icon,\n.platform-item:hover .platform-item-name{color:var(--color-brand-hover)}.platform-item-title{display:flex;align-items:center;margin-bottom:4px}.platform-item-icon{margin-right:8px;font-size:14px;color:var(--text-color-secondary);flex-shrink:0}.platform-item-name{font-weight:500;color:var(--text-color-title);line-height:18px}.platform-item-description{margin-left:22px;color:var(--text-color-secondary);line-height:18px}",""]);const o=i.toString()},5924:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,":host{display:inline-block;width:32px;height:32px;--eo-launchpad-v2-max-height:calc(100vh - var(--app-bar-height) - 36px)}:host([hidden]){display:none}.launchpad-button{width:100%;height:100%;display:flex;justify-content:center;align-items:center;color:#999;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px}.launchpad-button:hover,\n.launchpad-button.active{background-color:var(--color-fill-bg-base-1)}.launchpad-button.active{color:var(--color-brand)}.mask{position:fixed;top:0;bottom:0;left:0;right:0;z-index:1;display:none}.mask.active{display:block}.launchpad{display:none;position:absolute;margin-top:4px;z-index:1;width:1110px;max-width:calc(100vw - 100px);height:var(--eo-launchpad-v2-max-height);background-color:var(--eo-launchpad-v2-background);border:1px solid var(--color-text-divider-line);border-radius:6px;box-shadow:var(--fullscreen-overlay-shadow)}.launchpad.active{display:flex}.sidebar{width:190px;display:flex;flex-direction:column;background:var(--color-fill-bg-base-3);min-width:0;background-size:205px 205px;background-repeat:no-repeat;background-position:left 52px bottom 27px}.sidebar > *:not(:last-child){border-bottom:1px solid var(--stroke-color-default)}.quick-nav-label,\n.platform-nav-label,\n.jump-nav-label,\n.menu-group-label,\n.menu-item-label,\n.recent-visits span{overflow:auto;white-space:normal;word-break:break-word;width:90px}.recent-visits span{width:100%}.sidebar-menu,\n.menu-groups,\n.menu,\n.sub-menu,\n.recent-visits,\n.platform-items{list-style:none;margin:0;padding:0}.sidebar-menu,\n.menu,\n.sub-menu{display:flex;flex-direction:column;gap:14px}.sidebar-menu-item > eo-link,\n.menu-item > eo-link,\n.recent-visits eo-link{display:block;min-width:0;height:100%}.sidebar-menu-item > eo-link::part(link),\n.menu-item > eo-link::part(link){display:flex;align-items:center;gap:8px;color:var(--color-header-text)}.sidebar-menu-item{padding:0 12px 0 16px;justify-content:space-between}.sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.union{flex:1;display:flex;flex-direction:column;overflow-y:auto}.quick-nav,\n.platform-nav{display:flex;flex-direction:column;padding:20px 0 24px}.platform-nav{padding:0 0 24px}.quick-nav-label,\n.platform-nav-label{color:var(--color-header-text);font-weight:500;margin-bottom:14px;padding:0 16px}.quick-nav-menu,\n.platform-nav-menu{flex:1}.jump-nav > eo-link{display:block;cursor:pointer}.jump-nav > eo-link::part(link){padding:10px 16px;display:flex;justify-content:space-between;align-items:center}.jump-nav-label{flex:1;color:var(--color-header-text);font-weight:500}.jump-nav > eo-icon{font-size:14px;color:var(--text-color-default)}.content{flex:1;padding:20px 24px 24px;min-width:0;overflow-y:auto;display:flex;flex-direction:column;gap:24px}.search-box{border-bottom:1px solid var(--color-text-divider-line);display:flex;gap:8px;align-items:center;padding:10px 0;margin-top:-10px;cursor:text}.search-icon{color:var(--color-auxiliary-text)}.search-input{padding:0;margin:0;border:none;outline:none;color:inherit;background-color:transparent;font-size:14px;line-height:22px;flex:1;min-width:0}.search-input::placeholder{color:var(--color-disabled-text);opacity:1}.search-clear{display:none;color:var(--color-secondary-text);cursor:pointer}.search-clear.searching{display:inline-block}.search-clear:hover{color:var(--color-auxiliary-text)}.menu-groups,\n.recent-visits{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.menu-groups{display:grid;gap:32px 8px}.menu-group{padding-right:12px;color:var(--color-header-text)}.menu-group-label{font-size:var(--card-title-font-size);font-weight:500;color:var(--color-header-text);margin-bottom:14px;width:100%}.sidebar-menu-item,\n.menu-item:not(.folder){display:flex;gap:8px;align-items:center}.menu-icon{color:var(--eo-launchpad-v2-menu-icon-color)}.menu-item.active,\n.menu-item.active .menu-icon{color:var(--color-brand-active)}.sub-menu:not(.expanded){display:none}.sub-menu{margin-top:14px;margin-left:8px;border-left:1px solid var(--color-text-divider-line);padding-left:15px}.menu-item-remove,\n.menu-item-star{cursor:pointer}.menu-item-remove,\n.menu-item-star,\n.menu-item-toggle{color:var(--color-secondary-text)}.sidebar-menu-item:not(:hover) .menu-item-remove{display:none}.menu-item-remove:hover{color:var(--color-normal-text)}.menu-item-remove:active{color:var(--color-strong-text)}.menu-item-star{display:none}.can-star.starred > .menu-item-star,\n.can-star:hover > .menu-item-star{display:inline-block}.can-star:not(.starred) > .menu-item-star{color:var(--color-secondary-text)}.starred > .menu-item-star{color:var(--palette-yellow-6)}.recent-visits-label{margin-bottom:12px;font-size:var(--card-title-font-size);color:var(--color-header-text);font-weight:500}.recent-visits{display:grid;gap:8px}.recent-visits eo-link::part(link){background-color:var(--color-fill-bg-base-1);border-radius:3px;color:var(--color-header-text);display:flex;align-items:center;height:100%;padding:0 8px}.sidebar-menu-item > eo-link:hover::part(link),\n.sidebar-menu-item > eo-link:hover .sidebar-menu-icon,\n.menu-item > eo-link:hover::part(link),\n.menu-item > eo-link:hover .menu-icon,\n.menu-item > eo-link:hover .menu-item-toggle,\n.recent-visits eo-link:hover::part(link){color:var(--color-brand-hover)}.spinner{display:flex;justify-content:center;align-items:center;color:var(--theme-doderblue-color);flex:1;font-size:30px}.empty,\n.loading > :not(.spinner){display:none}@supports not (inset: 0){.content,\n .search-box,\n .sidebar-menu,\n .menu,\n .sub-menu,\n .sidebar-menu-item,\n .menu-item:not(.folder),\n .sidebar-menu-item > eo-link::part(link),\n .menu-item > eo-link::part(link){gap:0}.sidebar-menu > :not(:first-child),\n .menu > :not(:first-child),\n .sub-menu > :not(:first-child){margin-top:14px}.search-icon,\n .sidebar-menu-icon,\n .menu-icon{margin-right:8px}.search-clear,\n .menu-item-star,\n .menu-item-toggle{margin-left:8px}.content > :not(:last-child){margin-bottom:24px}}",""]);const o=i.toString()},8356:(e,t,a)=>{a.d(t,{P:()=>i,z:()=>r});var n=a(8769),l=a.n(n);const r=l().createContext({}),i=()=>l().useContext(r)},8776:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,".fadeEnter{opacity:0;transform:scale(0.95)}.fadeEnterActive{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExit{transform:translate(-30px,0)}.fadeExitActive{transform:translate(-100%,0);transition:transform 300ms ease-out}.fadeExitDone{display:none}",""]);const o=i.toString()},8839:(e,t,a)=>{a.d(t,{F:()=>g,r:()=>d});var n=a(9575),l=a(8769),r=a.n(l),i=a(1030),o=a(3373),c=a.n(o),m=a(9393),s=a(8356),p=a(6934),u=a(403);function d(e){let{name:t,items:a}=e;return r().createElement("li",{className:"menu-group"},r().createElement("div",{className:"menu-group-label"},t),r().createElement("ul",{className:"menu"},a.map((e=>"dir"===e.type?r().createElement(f,{key:`${e.type}-${e.id}`,name:e.localeName,items:e.items}):r().createElement(v,{key:`${e.type}-${e.id}`,item:e})))))}function v(e){var t;let{item:a}=e;const{t:o}=(0,p.useTranslation)(u.NS),{loadingFavorites:d,readonly:v,pushRecentVisit:g,toggleStar:f,isStarred:h}=(0,s.P)(),b=(0,l.useMemo)((()=>h(a)),[h,a]),x=(0,l.useCallback)((()=>{f(a)}),[a,f]),y=(0,l.useCallback)((()=>{g(a)}),[a,g]);return r().createElement("li",{className:c()("menu-item",{starred:b,"can-star":!d})},r().createElement(m.EM,(0,n.A)({onClick:y},"app"===a.type?{url:a.url}:{href:a.url}),r().createElement(m.Bj,(0,n.A)({className:"menu-icon",lib:"easyops",icon:"micro-app-center"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,i.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"menu-item-label"},a.localeName)),!v&&r().createElement(m.Bj,{lib:"fa",prefix:b?"fas":"far",icon:"star",className:"menu-item-star",title:o(b?u.K.UNFAVORITE:u.K.FAVORITE),onClick:x,"data-testid":"menu-item-star"}))}function g(e){var t;let{item:a,target:o}=e;const{readonly:c,pushRecentVisit:p,toggleStar:u}=(0,s.P)(),d=(0,l.useCallback)((()=>{"link"!==a.type&&p(a)}),[a,p]),v=(0,l.useCallback)((()=>{u(a)}),[a,u]);return r().createElement("li",{className:"sidebar-menu-item"},r().createElement(m.EM,(0,n.A)({onClick:d},"app"===a.type?{url:a.url}:{href:a.url},o?{target:o}:null),r().createElement(m.Bj,(0,n.A)({className:"sidebar-menu-icon",lib:"easyops",icon:"micro-app-center"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,i.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"menu-item-label"},a.name)),!c&&r().createElement(m.Bj,{lib:"fa",icon:"xmark",className:"menu-item-remove",onClick:v}))}function f(e){let{name:t,items:a}=e;const{searching:n}=(0,s.P)(),[i,o]=(0,l.useState)(!1),[p,u]=(0,l.useState)(!1),d=(0,l.useCallback)((()=>{n?u((e=>!e)):o((e=>!e))}),[n]);(0,l.useEffect)((()=>{u(!0)}),[n]);const g=n?p:i;return r().createElement("li",{className:"menu-item folder"},r().createElement(m.EM,{onClick:d},r().createElement(m.Bj,{lib:"fa",prefix:"far",icon:"folder-open",className:"menu-icon"}),r().createElement("span",{className:"menu-item-label"},t),r().createElement(m.Bj,{lib:"antd",icon:g?"up":"down",className:"menu-item-toggle"})),r().createElement("ul",{className:c()("sub-menu",{expanded:g})},a.map((e=>r().createElement(v,{key:`${e.type}-${e.id}`,item:e})))))}(0,p.initializeReactI18n)(u.NS,u.I)},9262:(e,t,a)=>{var n=a(2591),l=a.n(n),r=a(1740),i=a.n(r),o=a(8128),c=a.n(o),m=a(855),s=a.n(m),p=a(3051),u=a.n(p),d=a(3656),v=a.n(d),g=a(1724),f={};f.styleTagTransform=v(),f.setAttributes=s(),f.insert=c().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=u(),l()(g.A,f),g.A&&g.A.locals&&g.A.locals},9302:(e,t,a)=>{a.d(t,{r:()=>y});var n=a(9575),l=a(8769),r=a.n(l),i=a(3373),o=a.n(i),c=a(9393),m=a(2133),s=a(8839),p=a(8356),u=a(1030);function d(e){var t;let{item:a,active:l,onClick:i}=e;return r().createElement("li",{className:"platform-category-sidebar-menu-item"},r().createElement(c.EM,{type:"plain",className:o()({active:l}),onClick:()=>null==i?void 0:i(a)},r().createElement(c.Bj,(0,n.A)({className:"platform-category-sidebar-menu-icon",lib:"easyops",category:"second-menu",icon:"serve-second-menu"},null!==(t=a.icon)&&void 0!==t&&t.lib&&a.icon.icon?(0,u.pick)(a.icon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"platform-category-sidebar-menu-item-label"},a.name)))}function v(e){var t;let{item:a}=e;return r().createElement("li",null,r().createElement(c.EM,(0,n.A)({type:"plain"},"app"===a.type?{url:a.url}:{href:a.url,target:"_blank"}),r().createElement("div",{className:"platform-item"},r().createElement("div",{className:"platform-item-title"},r().createElement(c.Bj,(0,n.A)({className:"platform-item-icon",lib:"easyops",category:"third-menu",icon:"deploy-orchestration-tasks-third-menu"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,u.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("div",{className:"platform-item-name"},a.name)),r().createElement("div",{className:"platform-item-description"},a.description))))}var g=a(3081),f=a(1675),h=a(2865),b=a(6934),x=a(403);function y(e){let{active:t}=e;const{t:a}=(0,b.useTranslation)(x.NS),i=(0,l.useRef)(null),[u,y]=(0,l.useState)([]),k=(0,l.useCallback)((()=>{var e;null===(e=i.current)||void 0===e||e.focus()}),[]),[N,w]=(0,l.useState)("#all"),A=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-platform-category"]}),[]),C=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-scenario-center"]}),[]),j=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-solution-center"]}),[]),S=r().useMemo((()=>{var e;return null===(e=(0,g.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-open-platform"]}),[]),{loading:I,q:R,setQ:F,menuGroups:M,favorites:z,loadingFavorites:B,recentVisits:T,pushRecentVisit:_,toggleStar:K,isStarred:P,platformCategories:O}=(0,m.sZ)(t),q=!!R,V=(0,l.useCallback)((e=>{F(e.target.value)}),[F]),$=(0,l.useCallback)((()=>{F("")}),[F]);(0,l.useEffect)((()=>{var e;t&&(null===(e=i.current)||void 0===e||e.focus())}),[t]);const L=(0,l.useCallback)((e=>{w(e.id)}),[]),D=(0,l.useMemo)((()=>O.find((e=>e.id===N))),[N,O]);return(0,l.useEffect)((()=>{z.length>u.length?y(z):setTimeout((()=>{y(z)}),300)}),[z,u.length]),r().createElement("div",{className:o()("launchpad",{active:t})},r().createElement(p.z.Provider,{value:{searching:q,loadingFavorites:B,pushRecentVisit:_,toggleStar:K,isStarred:P}},r().createElement("div",{className:"sidebar"},r().createElement("div",{className:"union"},r().createElement("div",{className:"quick-nav"},r().createElement("div",{className:"quick-nav-label"},a(x.K.QUICK_ACCESS)),r().createElement(f.A,null,r().createElement("ul",{className:"sidebar-menu quick-nav-menu"},u.map(((e,t)=>r().createElement(h.A,{key:t,timeout:300,in:!!z.find((t=>t.id===e.id)),classNames:{enter:"fadeEnter",enterActive:"fadeEnterActive",exit:"fadeExit",exitActive:"fadeExitActive",exitDone:"fadeExitDone"}},r().createElement(s.F,{key:t,item:e}))))))),A&&r().createElement("div",{className:"platform-nav"},r().createElement("div",{className:"platform-nav-label"},a(x.K.PLATFORM_BASE)),r().createElement("ul",{className:"sidebar-menu platform-nav-menu"},O.map(((e,t)=>r().createElement(d,{key:t,onClick:L,item:e,active:N===e.id})))))),C&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/portal/scenario"},r().createElement("div",{className:"jump-nav-label"},a(x.K.SCENARIO_CENTER)),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"}))),j&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/portal/solution"},r().createElement("div",{className:"jump-nav-label"},a(x.K.SOLUTIONS)),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"}))),S&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/developers"},r().createElement("div",{className:"jump-nav-label"},a(x.K.OPEN_PLATFORM)),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"})))),r().createElement("div",{className:o()("content",{loading:I})},r().createElement(E,{loading:I}),"#all"!==N&&r().createElement("div",{className:"platform-category-name"},null==D?void 0:D.name),r().createElement("div",{className:"search-box",onClick:k},r().createElement(c.Bj,{lib:"fa",icon:"magnifying-glass",className:"search-icon"}),r().createElement("input",{ref:i,placeholder:a(x.K.SEARCH_PLACEHOLDER),value:R,onChange:V,className:"search-input"}),r().createElement(c.Bj,{lib:"antd",theme:"filled",icon:"close-circle",className:o()("search-clear",{searching:q}),onClick:$})),"#all"===N&&r().createElement("div",{className:o()({empty:0===T.length})},r().createElement("div",{className:"recent-visits-label"},a(x.K.RECENT_VISITS)),r().createElement("ul",{className:"recent-visits"},T.map(((e,t)=>r().createElement("li",{key:t},r().createElement(c.EM,(0,n.A)({onClick:()=>_(e)},"app"===e.type?{url:e.url}:{href:e.url,target:"_blank"}),r().createElement("span",null,e.name))))))),"#all"===N&&r().createElement("ul",{className:"menu-groups"},M.map((e=>r().createElement(s.r,{key:e.name,name:e.localeName,items:e.items})))),"#all"!==N&&r().createElement("ul",{className:o()("platform-items",{empty:0===(null==D?void 0:D.items.length)})},null==D?void 0:D.items.map(((e,t)=>r().createElement(v,{item:e,key:t})))))))}function E(e){let{loading:t}=e;return t&&r().createElement("div",{className:"spinner"},r().createElement(c.Bj,{lib:"fa",icon:"spinner",spinning:!0}))}(0,b.initializeReactI18n)(x.NS,x.I)}}]);
|
|
2
|
-
//# sourceMappingURL=9149.0f9ad72a.js.map
|