@next-bricks/nav 1.24.4 → 1.24.6

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.
@@ -30,6 +30,16 @@
30
30
  "description": "菜单构件",
31
31
  "category": "navigation"
32
32
  },
33
+ {
34
+ "name": "nav.easyops-navbar-alerts",
35
+ "properties": [],
36
+ "events": [],
37
+ "slots": [],
38
+ "methods": [],
39
+ "parts": [],
40
+ "description": "构件 `nav.easyops-navbar-alerts`",
41
+ "insider": true
42
+ },
33
43
  {
34
44
  "name": "eo-launchpad-button-v2",
35
45
  "properties": [],
@@ -41,58 +51,88 @@
41
51
  "insider": true
42
52
  },
43
53
  {
44
- "name": "nav.easyops-navbar-alerts",
54
+ "name": "eo-launchpad-button",
45
55
  "properties": [],
46
56
  "events": [],
47
57
  "slots": [],
48
58
  "methods": [],
49
59
  "parts": [],
50
- "description": "构件 `nav.easyops-navbar-alerts`",
60
+ "description": "Launchpad 按钮构件",
51
61
  "insider": true
52
62
  },
53
63
  {
54
- "name": "eo-launchpad-quick-access",
64
+ "name": "nav.launchpad-config",
55
65
  "properties": [
56
66
  {
57
- "name": "readonly",
58
- "type": "boolean"
67
+ "name": "menuGroups",
68
+ "attribute": false,
69
+ "type": "ConfigMenuGroup[]"
59
70
  },
60
71
  {
61
- "name": "target",
62
- "type": "Target"
72
+ "name": "actions",
73
+ "attribute": false,
74
+ "type": "MenuAction[]"
75
+ },
76
+ {
77
+ "name": "variant",
78
+ "description": "",
79
+ "default": "\"launchpad-config\"",
80
+ "type": "ConfigVariant"
81
+ },
82
+ {
83
+ "name": "urlTemplate",
84
+ "description": "菜单项 APP 类型的链接模板,例如可配置为 `/app/{{ id }}`。\n\n注:仅用于 variant: \"menu-config\"。",
85
+ "type": "string"
86
+ },
87
+ {
88
+ "name": "customUrlTemplate",
89
+ "description": "菜单项自定义类型的链接模板,例如可配置为 `/custom?url={{ __pathname }}`。\n\n注:仅用于 variant: \"menu-config\"。\n 外链菜单链接会设置为禁用。\n `__pathname` 是运行时变量,表示 url 解析后的 pathname。",
90
+ "type": "string"
91
+ },
92
+ {
93
+ "name": "blacklist",
94
+ "description": "屏蔽的 URL 列表,例如可配置为 `[\"/app/1\", \"/app/2\"]`。\n\n注:仅用于 variant: \"blacklist-config\"。",
95
+ "attribute": false,
96
+ "type": "string[]"
97
+ }
98
+ ],
99
+ "events": [
100
+ {
101
+ "name": "menu-item.click",
102
+ "detail": {
103
+ "type": "ConfigMenuItemNormal"
104
+ }
105
+ },
106
+ {
107
+ "name": "action.click",
108
+ "detail": {
109
+ "type": "MenuActionEventDetail"
110
+ }
63
111
  }
64
112
  ],
65
- "events": [],
66
113
  "slots": [],
67
114
  "methods": [],
68
115
  "parts": [],
69
- "description": "快捷访问",
116
+ "description": "进行 Launchpad 配置。\n\n也可用于菜单自定义显示产品功能清单。",
70
117
  "insider": true
71
118
  },
72
119
  {
73
- "name": "eo-search-launchpad",
120
+ "name": "eo-launchpad-quick-access",
74
121
  "properties": [
75
122
  {
76
123
  "name": "readonly",
77
- "description": "简约模式",
78
124
  "type": "boolean"
125
+ },
126
+ {
127
+ "name": "target",
128
+ "type": "Target"
79
129
  }
80
130
  ],
81
131
  "events": [],
82
132
  "slots": [],
83
133
  "methods": [],
84
134
  "parts": [],
85
- "description": "launchpad 搜索",
86
- "insider": true
87
- },
88
- {
89
- "name": "eo-launchpad-button",
90
- "properties": [],
91
- "events": [],
92
- "slots": [],
93
- "methods": [],
94
- "parts": [],
95
- "description": "Launchpad 按钮构件",
135
+ "description": "快捷访问",
96
136
  "insider": true
97
137
  },
98
138
  {
@@ -142,6 +182,38 @@
142
182
  "parts": [],
143
183
  "description": "应用顶部容器"
144
184
  },
185
+ {
186
+ "name": "eo-search-launchpad",
187
+ "properties": [
188
+ {
189
+ "name": "readonly",
190
+ "description": "简约模式",
191
+ "type": "boolean"
192
+ }
193
+ ],
194
+ "events": [],
195
+ "slots": [],
196
+ "methods": [],
197
+ "parts": [],
198
+ "description": "launchpad 搜索",
199
+ "insider": true
200
+ },
201
+ {
202
+ "name": "eo-launchpad-recent-visits",
203
+ "properties": [
204
+ {
205
+ "name": "target",
206
+ "attribute": false,
207
+ "type": "Target"
208
+ }
209
+ ],
210
+ "events": [],
211
+ "slots": [],
212
+ "methods": [],
213
+ "parts": [],
214
+ "description": "launchpad 最近访问",
215
+ "insider": true
216
+ },
145
217
  {
146
218
  "name": "eo-frame-breadcrumb",
147
219
  "properties": [
@@ -170,60 +242,40 @@
170
242
  "description": "面包屑"
171
243
  },
172
244
  {
173
- "name": "nav.launchpad-config",
245
+ "name": "eo-sidebar-menu-group",
174
246
  "properties": [
175
247
  {
176
- "name": "menuGroups",
177
- "attribute": false,
178
- "type": "ConfigMenuGroup[]"
179
- },
180
- {
181
- "name": "actions",
182
- "attribute": false,
183
- "type": "MenuAction[]"
184
- },
185
- {
186
- "name": "variant",
187
- "description": "",
188
- "default": "\"launchpad-config\"",
189
- "type": "ConfigVariant"
248
+ "name": "collapsable",
249
+ "description": "是否允许折叠",
250
+ "type": "boolean"
190
251
  },
191
252
  {
192
- "name": "urlTemplate",
193
- "description": "菜单项 APP 类型的链接模板,例如可配置为 `/app/{{ id }}`。\n\n注:仅用于 variant: \"menu-config\"。",
194
- "type": "string"
253
+ "name": "collapsed",
254
+ "description": "是否折叠",
255
+ "type": "boolean"
195
256
  },
196
257
  {
197
- "name": "customUrlTemplate",
198
- "description": "菜单项自定义类型的链接模板,例如可配置为 `/custom?url={{ __pathname }}`。\n\n注:仅用于 variant: \"menu-config\"。\n 外链菜单链接会设置为禁用。\n `__pathname` 是运行时变量,表示 url 解析后的 pathname。",
199
- "type": "string"
258
+ "name": "selected",
259
+ "description": "是否选中",
260
+ "type": "boolean"
200
261
  },
201
262
  {
202
- "name": "blacklist",
203
- "description": "屏蔽的 URL 列表,例如可配置为 `[\"/app/1\", \"/app/2\"]`。\n\n注:仅用于 variant: \"blacklist-config\"。",
204
- "attribute": false,
205
- "type": "string[]"
263
+ "name": "menuCollapsed",
264
+ "description": "菜单整体是否收起状态",
265
+ "type": "boolean"
206
266
  }
207
267
  ],
208
- "events": [
209
- {
210
- "name": "menu-item.click",
211
- "detail": {
212
- "type": "ConfigMenuItemNormal"
213
- }
214
- },
268
+ "events": [],
269
+ "slots": [
215
270
  {
216
- "name": "action.click",
217
- "detail": {
218
- "type": "MenuActionEventDetail"
219
- }
271
+ "name": "title",
272
+ "description": "分组标题"
220
273
  }
221
274
  ],
222
- "slots": [],
223
275
  "methods": [],
224
276
  "parts": [],
225
- "description": "进行 Launchpad 配置。\n\n也可用于菜单自定义显示产品功能清单。",
226
- "insider": true
277
+ "description": "侧栏菜单分组",
278
+ "category": "navigation"
227
279
  },
228
280
  {
229
281
  "name": "eo-sidebar-menu-item",
@@ -273,42 +325,6 @@
273
325
  "description": "侧栏菜单项",
274
326
  "category": "navigation"
275
327
  },
276
- {
277
- "name": "eo-sidebar-menu-group",
278
- "properties": [
279
- {
280
- "name": "collapsable",
281
- "description": "是否允许折叠",
282
- "type": "boolean"
283
- },
284
- {
285
- "name": "collapsed",
286
- "description": "是否折叠",
287
- "type": "boolean"
288
- },
289
- {
290
- "name": "selected",
291
- "description": "是否选中",
292
- "type": "boolean"
293
- },
294
- {
295
- "name": "menuCollapsed",
296
- "description": "菜单整体是否收起状态",
297
- "type": "boolean"
298
- }
299
- ],
300
- "events": [],
301
- "slots": [
302
- {
303
- "name": "title",
304
- "description": "分组标题"
305
- }
306
- ],
307
- "methods": [],
308
- "parts": [],
309
- "description": "侧栏菜单分组",
310
- "category": "navigation"
311
- },
312
328
  {
313
329
  "name": "eo-sidebar-menu-submenu",
314
330
  "properties": [
@@ -346,22 +362,6 @@
346
362
  "description": "侧栏菜单子菜单",
347
363
  "category": "navigation"
348
364
  },
349
- {
350
- "name": "eo-launchpad-recent-visits",
351
- "properties": [
352
- {
353
- "name": "target",
354
- "attribute": false,
355
- "type": "Target"
356
- }
357
- ],
358
- "events": [],
359
- "slots": [],
360
- "methods": [],
361
- "parts": [],
362
- "description": "launchpad 最近访问",
363
- "insider": true
364
- },
365
365
  {
366
366
  "name": "eo-sidebar-menu",
367
367
  "properties": [
@@ -445,108 +445,6 @@
445
445
  "description": "构件 `eo-sidebar-sub-menu`",
446
446
  "category": "navigation"
447
447
  },
448
- {
449
- "name": "eo-directory",
450
- "properties": [
451
- {
452
- "name": "position",
453
- "description": "设置定位方式:静态定位或固定定位。",
454
- "default": "\"fixed\"",
455
- "type": "\"static\" | \"fixed\""
456
- },
457
- {
458
- "name": "directoryTitle",
459
- "description": "目录标题",
460
- "type": "string"
461
- },
462
- {
463
- "name": "menuItems",
464
- "description": "菜单数据",
465
- "required": true,
466
- "default": "[]",
467
- "attribute": false,
468
- "type": "MenuItem[]"
469
- },
470
- {
471
- "name": "hideRightBorder",
472
- "description": "是否隐藏右边线",
473
- "default": "false",
474
- "type": "boolean"
475
- },
476
- {
477
- "name": "suffixBrick",
478
- "description": "后缀 useBrick",
479
- "attribute": false,
480
- "type": "{ useBrick: UseBrickConf }"
481
- },
482
- {
483
- "name": "defaultSelectedKeys",
484
- "description": "默认选中高亮的菜单项",
485
- "attribute": false,
486
- "type": "string[]"
487
- }
488
- ],
489
- "events": [
490
- {
491
- "name": "menu.item.click",
492
- "description": "菜单点击,groupKey 表示对应分组的key,data 表示对应菜单项",
493
- "detail": {
494
- "description": "{ groupKey: string, data: MenuChildrenItem }",
495
- "type": "MenuItemClickEventDetail"
496
- }
497
- },
498
- {
499
- "name": "suffix.icon.click",
500
- "description": "点击icon,detail为 对应菜单项或者是分组的key",
501
- "detail": {
502
- "description": "{ key: string }",
503
- "type": "{ key: string }"
504
- }
505
- }
506
- ],
507
- "slots": [],
508
- "methods": [],
509
- "parts": [],
510
- "description": "目录"
511
- },
512
- {
513
- "name": "eo-directory-tree-leaf",
514
- "properties": [
515
- {
516
- "name": "depth",
517
- "description": "深度",
518
- "default": "0",
519
- "type": "number"
520
- },
521
- {
522
- "name": "selected",
523
- "description": "是否选中",
524
- "type": "boolean"
525
- },
526
- {
527
- "name": "icon",
528
- "attribute": false,
529
- "type": "GeneralIconProps"
530
- },
531
- {
532
- "name": "faded",
533
- "type": "boolean"
534
- }
535
- ],
536
- "events": [
537
- {
538
- "name": "select",
539
- "description": "选择事件",
540
- "detail": {
541
- "type": "void"
542
- }
543
- }
544
- ],
545
- "slots": [],
546
- "methods": [],
547
- "parts": [],
548
- "description": "目录树叶子节点"
549
- },
550
448
  {
551
449
  "name": "eo-directory-tree",
552
450
  "properties": [
@@ -644,6 +542,44 @@
644
542
  "parts": [],
645
543
  "description": "目录树"
646
544
  },
545
+ {
546
+ "name": "eo-directory-tree-leaf",
547
+ "properties": [
548
+ {
549
+ "name": "depth",
550
+ "description": "深度",
551
+ "default": "0",
552
+ "type": "number"
553
+ },
554
+ {
555
+ "name": "selected",
556
+ "description": "是否选中",
557
+ "type": "boolean"
558
+ },
559
+ {
560
+ "name": "icon",
561
+ "attribute": false,
562
+ "type": "GeneralIconProps"
563
+ },
564
+ {
565
+ "name": "faded",
566
+ "type": "boolean"
567
+ }
568
+ ],
569
+ "events": [
570
+ {
571
+ "name": "select",
572
+ "description": "选择事件",
573
+ "detail": {
574
+ "type": "void"
575
+ }
576
+ }
577
+ ],
578
+ "slots": [],
579
+ "methods": [],
580
+ "parts": [],
581
+ "description": "目录树叶子节点"
582
+ },
647
583
  {
648
584
  "name": "eo-directory-tree-internal-node",
649
585
  "properties": [
@@ -745,6 +681,70 @@
745
681
  "parts": [],
746
682
  "description": "轮询获取通知消息并展示。\n\n 从 v2 构件 `nav-legacy.poll-announce` 迁移而来"
747
683
  },
684
+ {
685
+ "name": "eo-directory",
686
+ "properties": [
687
+ {
688
+ "name": "position",
689
+ "description": "设置定位方式:静态定位或固定定位。",
690
+ "default": "\"fixed\"",
691
+ "type": "\"static\" | \"fixed\""
692
+ },
693
+ {
694
+ "name": "directoryTitle",
695
+ "description": "目录标题",
696
+ "type": "string"
697
+ },
698
+ {
699
+ "name": "menuItems",
700
+ "description": "菜单数据",
701
+ "required": true,
702
+ "default": "[]",
703
+ "attribute": false,
704
+ "type": "MenuItem[]"
705
+ },
706
+ {
707
+ "name": "hideRightBorder",
708
+ "description": "是否隐藏右边线",
709
+ "default": "false",
710
+ "type": "boolean"
711
+ },
712
+ {
713
+ "name": "suffixBrick",
714
+ "description": "后缀 useBrick",
715
+ "attribute": false,
716
+ "type": "{ useBrick: UseBrickConf }"
717
+ },
718
+ {
719
+ "name": "defaultSelectedKeys",
720
+ "description": "默认选中高亮的菜单项",
721
+ "attribute": false,
722
+ "type": "string[]"
723
+ }
724
+ ],
725
+ "events": [
726
+ {
727
+ "name": "menu.item.click",
728
+ "description": "菜单点击,groupKey 表示对应分组的key,data 表示对应菜单项",
729
+ "detail": {
730
+ "description": "{ groupKey: string, data: MenuChildrenItem }",
731
+ "type": "MenuItemClickEventDetail"
732
+ }
733
+ },
734
+ {
735
+ "name": "suffix.icon.click",
736
+ "description": "点击icon,detail为 对应菜单项或者是分组的key",
737
+ "detail": {
738
+ "description": "{ key: string }",
739
+ "type": "{ key: string }"
740
+ }
741
+ }
742
+ ],
743
+ "slots": [],
744
+ "methods": [],
745
+ "parts": [],
746
+ "description": "目录"
747
+ },
748
748
  {
749
749
  "name": "nav.query-search",
750
750
  "properties": [],
package/dist/types.json CHANGED
@@ -249,6 +249,11 @@
249
249
  "events": [],
250
250
  "methods": []
251
251
  },
252
+ "nav.nav-logo": {
253
+ "properties": [],
254
+ "events": [],
255
+ "methods": []
256
+ },
252
257
  "eo-directory": {
253
258
  "properties": [
254
259
  {
@@ -559,11 +564,6 @@
559
564
  }
560
565
  ]
561
566
  },
562
- "nav.nav-logo": {
563
- "properties": [],
564
- "events": [],
565
- "methods": []
566
- },
567
567
  "eo-search-launchpad": {
568
568
  "properties": [
569
569
  {
@@ -577,6 +577,22 @@
577
577
  "events": [],
578
578
  "methods": []
579
579
  },
580
+ "eo-launchpad-recent-visits": {
581
+ "properties": [
582
+ {
583
+ "name": "target",
584
+ "annotation": {
585
+ "type": "reference",
586
+ "typeName": {
587
+ "type": "identifier",
588
+ "name": "Target"
589
+ }
590
+ }
591
+ }
592
+ ],
593
+ "events": [],
594
+ "methods": []
595
+ },
580
596
  "eo-sidebar-menu-submenu": {
581
597
  "properties": [
582
598
  {
@@ -614,22 +630,6 @@
614
630
  "events": [],
615
631
  "methods": []
616
632
  },
617
- "eo-launchpad-recent-visits": {
618
- "properties": [
619
- {
620
- "name": "target",
621
- "annotation": {
622
- "type": "reference",
623
- "typeName": {
624
- "type": "identifier",
625
- "name": "Target"
626
- }
627
- }
628
- }
629
- ],
630
- "events": [],
631
- "methods": []
632
- },
633
633
  "eo-sidebar-menu": {
634
634
  "properties": [
635
635
  {
@@ -1191,6 +1191,40 @@
1191
1191
  }
1192
1192
  ]
1193
1193
  },
1194
+ "eo-sidebar-menu-group": {
1195
+ "properties": [
1196
+ {
1197
+ "name": "collapsable",
1198
+ "annotation": {
1199
+ "type": "keyword",
1200
+ "value": "boolean"
1201
+ }
1202
+ },
1203
+ {
1204
+ "name": "collapsed",
1205
+ "annotation": {
1206
+ "type": "keyword",
1207
+ "value": "boolean"
1208
+ }
1209
+ },
1210
+ {
1211
+ "name": "selected",
1212
+ "annotation": {
1213
+ "type": "keyword",
1214
+ "value": "boolean"
1215
+ }
1216
+ },
1217
+ {
1218
+ "name": "menuCollapsed",
1219
+ "annotation": {
1220
+ "type": "keyword",
1221
+ "value": "boolean"
1222
+ }
1223
+ }
1224
+ ],
1225
+ "events": [],
1226
+ "methods": []
1227
+ },
1194
1228
  "eo-sidebar": {
1195
1229
  "properties": [
1196
1230
  {
@@ -1303,40 +1337,6 @@
1303
1337
  }
1304
1338
  ]
1305
1339
  },
1306
- "eo-sidebar-menu-group": {
1307
- "properties": [
1308
- {
1309
- "name": "collapsable",
1310
- "annotation": {
1311
- "type": "keyword",
1312
- "value": "boolean"
1313
- }
1314
- },
1315
- {
1316
- "name": "collapsed",
1317
- "annotation": {
1318
- "type": "keyword",
1319
- "value": "boolean"
1320
- }
1321
- },
1322
- {
1323
- "name": "selected",
1324
- "annotation": {
1325
- "type": "keyword",
1326
- "value": "boolean"
1327
- }
1328
- },
1329
- {
1330
- "name": "menuCollapsed",
1331
- "annotation": {
1332
- "type": "keyword",
1333
- "value": "boolean"
1334
- }
1335
- }
1336
- ],
1337
- "events": [],
1338
- "methods": []
1339
- },
1340
1340
  "eo-directory-tree-leaf": {
1341
1341
  "properties": [
1342
1342
  {
@@ -1,4 +1,14 @@
1
1
  export declare enum K {
2
+ FULL_TEXT_SEARCH = "FULL_TEXT_SEARCH",
3
+ IP_SEARCH = "IP_SEARCH",
4
+ TICKET_SEARCH = "TICKET_SEARCH",
5
+ TICKET_SEARCH_PLACEHOLDER = "TICKET_SEARCH_PLACEHOLDER",
6
+ IP_SEARCH_PLACEHOLDER = "IP_SEARCH_PLACEHOLDER",
7
+ FULL_TEXT_SEARCH_PLACEHOLDER = "FULL_TEXT_SEARCH_PLACEHOLDER",
8
+ IP_SEARCH_TOOLTIP = "IP_SEARCH_TOOLTIP",
9
+ RECENT_SEARCH = "RECENT_SEARCH",
10
+ NO_SEARCH_HISTORY = "NO_SEARCH_HISTORY",
11
+ QUICK_SEARCH_TIP = "QUICK_SEARCH_TIP"
2
12
  }
3
13
  export declare const NS = "bricks/nav/query-search";
4
14
  export declare const locales: {