@next-bricks/nav 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +59 -9
- package/dist/chunks/2024.ddc88ed1.js +2 -0
- package/dist/chunks/{5326.42956a9e.js.map → 2024.ddc88ed1.js.map} +1 -1
- package/dist/chunks/5951.999e9688.js +3 -0
- package/dist/chunks/5951.999e9688.js.map +1 -0
- package/dist/chunks/{7632.b82bb027.js → 7632.51556511.js} +2 -2
- package/dist/chunks/7632.51556511.js.map +1 -0
- package/dist/chunks/eo-app-bar-wrapper.7d8078ce.js +3 -0
- package/dist/chunks/eo-app-bar-wrapper.7d8078ce.js.LICENSE.txt +5 -0
- package/dist/chunks/eo-app-bar-wrapper.7d8078ce.js.map +1 -0
- package/dist/chunks/eo-frame-breadcrumb.f2a2e95c.js +2 -0
- package/dist/chunks/eo-frame-breadcrumb.f2a2e95c.js.map +1 -0
- package/dist/chunks/eo-sidebar-menu-group.ab7d3a0d.js +3 -0
- package/dist/chunks/eo-sidebar-menu-group.ab7d3a0d.js.LICENSE.txt +5 -0
- package/dist/chunks/eo-sidebar-menu-group.ab7d3a0d.js.map +1 -0
- package/dist/chunks/eo-sidebar-menu-item.ffaa073d.js +2 -0
- package/dist/chunks/eo-sidebar-menu-item.ffaa073d.js.map +1 -0
- package/dist/chunks/eo-sidebar-menu-submenu.d62608cc.js +3 -0
- package/dist/chunks/eo-sidebar-menu-submenu.d62608cc.js.LICENSE.txt +5 -0
- package/dist/chunks/eo-sidebar-menu-submenu.d62608cc.js.map +1 -0
- package/dist/chunks/eo-sidebar-menu.084e4c74.js +2 -0
- package/dist/chunks/eo-sidebar-menu.084e4c74.js.map +1 -0
- package/dist/chunks/eo-sidebar-sub-menu.170d5571.js +3 -0
- package/dist/chunks/eo-sidebar-sub-menu.170d5571.js.LICENSE.txt +5 -0
- package/dist/chunks/eo-sidebar-sub-menu.170d5571.js.map +1 -0
- package/dist/chunks/eo-sidebar.6b4bde6a.js +3 -0
- package/dist/chunks/eo-sidebar.6b4bde6a.js.LICENSE.txt +5 -0
- package/dist/chunks/eo-sidebar.6b4bde6a.js.map +1 -0
- package/dist/chunks/main.482fbe2f.js +2 -0
- package/dist/chunks/main.482fbe2f.js.map +1 -0
- package/dist/index.7ff5d3e5.js +2 -0
- package/dist/index.7ff5d3e5.js.map +1 -0
- package/dist/manifest.json +286 -12
- package/dist/types.json +434 -0
- package/dist-types/app-bar-wrapper/index.d.ts +40 -0
- package/dist-types/app-bar-wrapper/index.spec.d.ts +1 -0
- package/dist-types/bootstrap.d.ts +8 -0
- package/dist-types/frame-breadcrumb/index.d.ts +35 -0
- package/dist-types/frame-breadcrumb/index.spec.d.ts +1 -0
- package/dist-types/sidebar/i18n.d.ts +14 -0
- package/dist-types/sidebar/index.d.ts +52 -0
- package/dist-types/sidebar/index.spec.d.ts +5 -0
- package/dist-types/sidebar/sidebar-menu/index.d.ts +19 -0
- package/dist-types/sidebar/sidebar-menu/index.spec.d.ts +1 -0
- package/dist-types/sidebar/sidebar-menu-group/index.d.ts +39 -0
- package/dist-types/sidebar/sidebar-menu-group/index.spec.d.ts +1 -0
- package/dist-types/sidebar/sidebar-menu-item/index.d.ts +45 -0
- package/dist-types/sidebar/sidebar-menu-item/index.spec.d.ts +1 -0
- package/dist-types/sidebar/sidebar-menu-submenu/index.d.ts +40 -0
- package/dist-types/sidebar/sidebar-menu-submenu/index.spec.d.ts +1 -0
- package/dist-types/sidebar/utils.d.ts +20 -0
- package/dist-types/sidebar-sub-menu/i18n.d.ts +11 -0
- package/dist-types/sidebar-sub-menu/index.d.ts +21 -0
- package/dist-types/sidebar-sub-menu/index.spec.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/2024.3653c941.js +0 -2
- package/dist/chunks/2024.3653c941.js.map +0 -1
- package/dist/chunks/5326.42956a9e.js +0 -2
- package/dist/chunks/7394.63355aa9.js +0 -3
- package/dist/chunks/7394.63355aa9.js.map +0 -1
- package/dist/chunks/7632.b82bb027.js.map +0 -1
- package/dist/chunks/main.7d3dfcde.js +0 -2
- package/dist/chunks/main.7d3dfcde.js.map +0 -1
- package/dist/index.d2af6391.js +0 -2
- package/dist/index.d2af6391.js.map +0 -1
- /package/dist/chunks/{7394.63355aa9.js.LICENSE.txt → 5951.999e9688.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -4,6 +4,244 @@
|
|
|
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
|
+
},
|
|
60
|
+
"eo-frame-breadcrumb": {
|
|
61
|
+
"properties": [
|
|
62
|
+
{
|
|
63
|
+
"name": "breadcrumb",
|
|
64
|
+
"annotation": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"elementType": {
|
|
67
|
+
"type": "reference",
|
|
68
|
+
"typeName": {
|
|
69
|
+
"type": "identifier",
|
|
70
|
+
"name": "BreadcrumbItemConf"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "noCurrentApp",
|
|
77
|
+
"annotation": {
|
|
78
|
+
"type": "keyword",
|
|
79
|
+
"value": "boolean"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "menu",
|
|
84
|
+
"annotation": {
|
|
85
|
+
"type": "reference",
|
|
86
|
+
"typeName": {
|
|
87
|
+
"type": "identifier",
|
|
88
|
+
"name": "Menu"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"events": [],
|
|
94
|
+
"methods": [],
|
|
95
|
+
"types": [
|
|
96
|
+
{
|
|
97
|
+
"type": "interface",
|
|
98
|
+
"name": "Menu",
|
|
99
|
+
"body": [
|
|
100
|
+
{
|
|
101
|
+
"type": "propertySignature",
|
|
102
|
+
"key": {
|
|
103
|
+
"type": "identifier",
|
|
104
|
+
"name": "title"
|
|
105
|
+
},
|
|
106
|
+
"annotation": {
|
|
107
|
+
"type": "keyword",
|
|
108
|
+
"value": "string"
|
|
109
|
+
},
|
|
110
|
+
"computed": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "propertySignature",
|
|
114
|
+
"key": {
|
|
115
|
+
"type": "identifier",
|
|
116
|
+
"name": "icon"
|
|
117
|
+
},
|
|
118
|
+
"annotation": {
|
|
119
|
+
"type": "reference",
|
|
120
|
+
"typeName": {
|
|
121
|
+
"type": "identifier",
|
|
122
|
+
"name": "GeneralIconProps"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"optional": true,
|
|
126
|
+
"computed": false
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "propertySignature",
|
|
130
|
+
"key": {
|
|
131
|
+
"type": "identifier",
|
|
132
|
+
"name": "link"
|
|
133
|
+
},
|
|
134
|
+
"annotation": {
|
|
135
|
+
"type": "reference",
|
|
136
|
+
"typeName": {
|
|
137
|
+
"type": "identifier",
|
|
138
|
+
"name": "ExtendedLocationDescriptor"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"optional": true,
|
|
142
|
+
"computed": false
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"eo-sidebar-menu-item": {
|
|
149
|
+
"properties": [
|
|
150
|
+
{
|
|
151
|
+
"name": "url",
|
|
152
|
+
"annotation": {
|
|
153
|
+
"type": "indexedAccess",
|
|
154
|
+
"objectType": {
|
|
155
|
+
"type": "reference",
|
|
156
|
+
"typeName": {
|
|
157
|
+
"type": "identifier",
|
|
158
|
+
"name": "LinkProps"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"indexType": {
|
|
162
|
+
"type": "jsLiteral",
|
|
163
|
+
"value": "url"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "href",
|
|
169
|
+
"annotation": {
|
|
170
|
+
"type": "indexedAccess",
|
|
171
|
+
"objectType": {
|
|
172
|
+
"type": "reference",
|
|
173
|
+
"typeName": {
|
|
174
|
+
"type": "identifier",
|
|
175
|
+
"name": "LinkProps"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"indexType": {
|
|
179
|
+
"type": "jsLiteral",
|
|
180
|
+
"value": "href"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "target",
|
|
186
|
+
"annotation": {
|
|
187
|
+
"type": "indexedAccess",
|
|
188
|
+
"objectType": {
|
|
189
|
+
"type": "reference",
|
|
190
|
+
"typeName": {
|
|
191
|
+
"type": "identifier",
|
|
192
|
+
"name": "LinkProps"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"indexType": {
|
|
196
|
+
"type": "jsLiteral",
|
|
197
|
+
"value": "target"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "icon",
|
|
203
|
+
"annotation": {
|
|
204
|
+
"type": "reference",
|
|
205
|
+
"typeName": {
|
|
206
|
+
"type": "identifier",
|
|
207
|
+
"name": "GeneralIconProps"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "selected",
|
|
213
|
+
"annotation": {
|
|
214
|
+
"type": "keyword",
|
|
215
|
+
"value": "boolean"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "menuCollapsed",
|
|
220
|
+
"annotation": {
|
|
221
|
+
"type": "keyword",
|
|
222
|
+
"value": "boolean"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"events": [],
|
|
227
|
+
"methods": []
|
|
228
|
+
},
|
|
229
|
+
"eo-sidebar-sub-menu": {
|
|
230
|
+
"properties": [
|
|
231
|
+
{
|
|
232
|
+
"name": "menu",
|
|
233
|
+
"annotation": {
|
|
234
|
+
"type": "reference",
|
|
235
|
+
"typeName": {
|
|
236
|
+
"type": "identifier",
|
|
237
|
+
"name": "SidebarMenu"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"events": [],
|
|
243
|
+
"methods": []
|
|
244
|
+
},
|
|
7
245
|
"eo-search-launchpad": {
|
|
8
246
|
"properties": [],
|
|
9
247
|
"events": [],
|
|
@@ -14,6 +252,202 @@
|
|
|
14
252
|
"events": [],
|
|
15
253
|
"methods": []
|
|
16
254
|
},
|
|
255
|
+
"eo-sidebar-menu-group": {
|
|
256
|
+
"properties": [
|
|
257
|
+
{
|
|
258
|
+
"name": "collapsable",
|
|
259
|
+
"annotation": {
|
|
260
|
+
"type": "keyword",
|
|
261
|
+
"value": "boolean"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "collapsed",
|
|
266
|
+
"annotation": {
|
|
267
|
+
"type": "keyword",
|
|
268
|
+
"value": "boolean"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "selected",
|
|
273
|
+
"annotation": {
|
|
274
|
+
"type": "keyword",
|
|
275
|
+
"value": "boolean"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "menuCollapsed",
|
|
280
|
+
"annotation": {
|
|
281
|
+
"type": "keyword",
|
|
282
|
+
"value": "boolean"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"events": [],
|
|
287
|
+
"methods": []
|
|
288
|
+
},
|
|
289
|
+
"eo-sidebar-menu-submenu": {
|
|
290
|
+
"properties": [
|
|
291
|
+
{
|
|
292
|
+
"name": "icon",
|
|
293
|
+
"annotation": {
|
|
294
|
+
"type": "reference",
|
|
295
|
+
"typeName": {
|
|
296
|
+
"type": "identifier",
|
|
297
|
+
"name": "GeneralIconProps"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "selected",
|
|
303
|
+
"annotation": {
|
|
304
|
+
"type": "keyword",
|
|
305
|
+
"value": "boolean"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "collapsed",
|
|
310
|
+
"annotation": {
|
|
311
|
+
"type": "keyword",
|
|
312
|
+
"value": "boolean"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "menuCollapsed",
|
|
317
|
+
"annotation": {
|
|
318
|
+
"type": "keyword",
|
|
319
|
+
"value": "boolean"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"events": [],
|
|
324
|
+
"methods": []
|
|
325
|
+
},
|
|
326
|
+
"eo-sidebar-menu": {
|
|
327
|
+
"properties": [
|
|
328
|
+
{
|
|
329
|
+
"name": "menuCollapsed",
|
|
330
|
+
"annotation": {
|
|
331
|
+
"type": "keyword",
|
|
332
|
+
"value": "boolean"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"events": [],
|
|
337
|
+
"methods": []
|
|
338
|
+
},
|
|
339
|
+
"eo-sidebar": {
|
|
340
|
+
"properties": [
|
|
341
|
+
{
|
|
342
|
+
"name": "menu",
|
|
343
|
+
"annotation": {
|
|
344
|
+
"type": "reference",
|
|
345
|
+
"typeName": {
|
|
346
|
+
"type": "identifier",
|
|
347
|
+
"name": "SidebarMenuType"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "hiddenFixedIcon",
|
|
353
|
+
"annotation": {
|
|
354
|
+
"type": "keyword",
|
|
355
|
+
"value": "boolean"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "expandedState",
|
|
360
|
+
"annotation": {
|
|
361
|
+
"type": "reference",
|
|
362
|
+
"typeName": {
|
|
363
|
+
"type": "identifier",
|
|
364
|
+
"name": "ExpandedState"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "position",
|
|
370
|
+
"annotation": {
|
|
371
|
+
"type": "union",
|
|
372
|
+
"types": [
|
|
373
|
+
{
|
|
374
|
+
"type": "jsLiteral",
|
|
375
|
+
"value": "static"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"type": "jsLiteral",
|
|
379
|
+
"value": "fixed"
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"events": [
|
|
386
|
+
{
|
|
387
|
+
"name": "actual.width.change",
|
|
388
|
+
"detail": {
|
|
389
|
+
"annotation": {
|
|
390
|
+
"type": "keyword",
|
|
391
|
+
"value": "number"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "expanded.state.change",
|
|
397
|
+
"detail": {
|
|
398
|
+
"annotation": {
|
|
399
|
+
"type": "reference",
|
|
400
|
+
"typeName": {
|
|
401
|
+
"type": "identifier",
|
|
402
|
+
"name": "ExpandedState"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"methods": [],
|
|
409
|
+
"types": [
|
|
410
|
+
{
|
|
411
|
+
"type": "enum",
|
|
412
|
+
"name": "ExpandedState",
|
|
413
|
+
"members": [
|
|
414
|
+
{
|
|
415
|
+
"type": "enumMember",
|
|
416
|
+
"id": {
|
|
417
|
+
"type": "identifier",
|
|
418
|
+
"name": "Collapsed"
|
|
419
|
+
},
|
|
420
|
+
"initializer": {
|
|
421
|
+
"type": "jsLiteral",
|
|
422
|
+
"value": "collapsed"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"type": "enumMember",
|
|
427
|
+
"id": {
|
|
428
|
+
"type": "identifier",
|
|
429
|
+
"name": "Hovered"
|
|
430
|
+
},
|
|
431
|
+
"initializer": {
|
|
432
|
+
"type": "jsLiteral",
|
|
433
|
+
"value": "hovered"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"type": "enumMember",
|
|
438
|
+
"id": {
|
|
439
|
+
"type": "identifier",
|
|
440
|
+
"name": "Expanded"
|
|
441
|
+
},
|
|
442
|
+
"initializer": {
|
|
443
|
+
"type": "jsLiteral",
|
|
444
|
+
"value": "expanded"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
}
|
|
449
|
+
]
|
|
450
|
+
},
|
|
17
451
|
"eo-launchpad-quick-access": {
|
|
18
452
|
"properties": [],
|
|
19
453
|
"events": [],
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import "@next-core/theme";
|
|
4
|
+
export interface AppBarWrapperProps {
|
|
5
|
+
isFixed?: boolean;
|
|
6
|
+
position?: "static" | "fixed";
|
|
7
|
+
displayCenter?: boolean;
|
|
8
|
+
extraAppBarContentStyle?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 应用顶部容器
|
|
12
|
+
* @slot left - 左侧内容区
|
|
13
|
+
* @slot right - 右侧内容区
|
|
14
|
+
*/
|
|
15
|
+
export declare class EoAppBarWrapper extends ReactNextElement implements AppBarWrapperProps {
|
|
16
|
+
/**
|
|
17
|
+
* 是否固定定位。
|
|
18
|
+
*
|
|
19
|
+
* @default true
|
|
20
|
+
* @deprecated 使用 `position` 属性代替
|
|
21
|
+
*/
|
|
22
|
+
accessor isFixed: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* 设置定位方式:静态定位或固定定位。
|
|
25
|
+
*
|
|
26
|
+
* 设置时优先级高于 `isFixed`。
|
|
27
|
+
*
|
|
28
|
+
* @default "fixed"
|
|
29
|
+
*/
|
|
30
|
+
accessor position: "static" | "fixed" | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* 居中显示
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
accessor displayCenter: boolean | undefined;
|
|
36
|
+
/** 自定义样式 */
|
|
37
|
+
accessor extraAppBarContentStyle: React.CSSProperties | undefined;
|
|
38
|
+
render(): React.JSX.Element;
|
|
39
|
+
}
|
|
40
|
+
export declare function EoAppBarWrapperComponent({ isFixed, position, displayCenter, extraAppBarContentStyle, }: AppBarWrapperProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./";
|
|
@@ -6,3 +6,11 @@ import "./easyops-navbar-alerts/index.js";
|
|
|
6
6
|
import "./launchpad-quick-access/index.js";
|
|
7
7
|
import "./search-launchpad/index.js";
|
|
8
8
|
import "./launchpad-recent-visits/index.js";
|
|
9
|
+
import "./app-bar-wrapper/index.js";
|
|
10
|
+
import "./frame-breadcrumb/index.js";
|
|
11
|
+
import "./sidebar/index.js";
|
|
12
|
+
import "./sidebar/sidebar-menu-item/index.js";
|
|
13
|
+
import "./sidebar/sidebar-menu-group/index.js";
|
|
14
|
+
import "./sidebar/sidebar-menu-submenu/index.js";
|
|
15
|
+
import "./sidebar/sidebar-menu/index.js";
|
|
16
|
+
import "./sidebar-sub-menu/index.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import { BreadcrumbItemConf } from "@next-core/types";
|
|
4
|
+
import "@next-core/theme";
|
|
5
|
+
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
6
|
+
import type { ExtendedLocationDescriptor } from "@next-bricks/basic/link";
|
|
7
|
+
export interface Menu {
|
|
8
|
+
title: string;
|
|
9
|
+
icon?: GeneralIconProps;
|
|
10
|
+
link?: ExtendedLocationDescriptor;
|
|
11
|
+
}
|
|
12
|
+
export interface EoFrameBreadcrumbProps {
|
|
13
|
+
breadcrumb?: BreadcrumbItemConf[];
|
|
14
|
+
noCurrentApp?: boolean;
|
|
15
|
+
menu?: Menu;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 面包屑
|
|
19
|
+
*/
|
|
20
|
+
export declare class EoFrameBreadcrumb extends ReactNextElement implements EoFrameBreadcrumbProps {
|
|
21
|
+
/**
|
|
22
|
+
* 面包屑配置
|
|
23
|
+
*/
|
|
24
|
+
accessor breadcrumb: BreadcrumbItemConf[] | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* 是否隐藏当前应用名称
|
|
27
|
+
*/
|
|
28
|
+
accessor noCurrentApp: boolean | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* 菜单配置
|
|
31
|
+
*/
|
|
32
|
+
accessor menu: Menu | undefined;
|
|
33
|
+
render(): React.JSX.Element;
|
|
34
|
+
}
|
|
35
|
+
export declare function EoFrameBreadcrumbComponent(props: EoFrameBreadcrumbProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum K {
|
|
2
|
+
CLICK_TO_FIX_NAVIGATION = "CLICK_TO_FIX_NAVIGATION",
|
|
3
|
+
UNPIN_NAVIGATION = "UNPIN_NAVIGATION",
|
|
4
|
+
FIXED_NAVIGATION = "FIXED_NAVIGATION"
|
|
5
|
+
}
|
|
6
|
+
export declare const NS = "bricks/nav/eo-sidebar";
|
|
7
|
+
export declare const locales: {
|
|
8
|
+
en: Locale;
|
|
9
|
+
zh: Locale;
|
|
10
|
+
};
|
|
11
|
+
type Locale = {
|
|
12
|
+
[key in K]: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import type { SidebarMenu as SidebarMenuType } from "@next-shared/general/types";
|
|
4
|
+
import "@next-core/theme";
|
|
5
|
+
import { ExpandedState } from "./utils.js";
|
|
6
|
+
export interface EoSidebarProps {
|
|
7
|
+
menu: SidebarMenuType;
|
|
8
|
+
expandedState?: ExpandedState;
|
|
9
|
+
hiddenFixedIcon?: boolean;
|
|
10
|
+
position?: "static" | "fixed";
|
|
11
|
+
}
|
|
12
|
+
export interface EoSidebarEvents {
|
|
13
|
+
"actual.width.change": CustomEvent<number>;
|
|
14
|
+
"expanded.state.change": CustomEvent<ExpandedState>;
|
|
15
|
+
}
|
|
16
|
+
export interface EoSidebarEventsMapping {
|
|
17
|
+
onActualWidthChange: "actual.width.change";
|
|
18
|
+
onExpandedStateChange: "expanded.state.change";
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 侧边栏
|
|
22
|
+
*
|
|
23
|
+
* @category navigation
|
|
24
|
+
*/
|
|
25
|
+
export declare class EoSidebar extends ReactNextElement implements EoSidebarProps {
|
|
26
|
+
#private;
|
|
27
|
+
/**
|
|
28
|
+
* 菜单数据
|
|
29
|
+
*/
|
|
30
|
+
accessor menu: SidebarMenuType;
|
|
31
|
+
/**
|
|
32
|
+
* 是否隐藏固定按钮
|
|
33
|
+
*/
|
|
34
|
+
accessor hiddenFixedIcon: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* 侧栏状态
|
|
37
|
+
*/
|
|
38
|
+
accessor expandedState: ExpandedState | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* 设置定位方式:静态定位或固定定位。
|
|
41
|
+
*
|
|
42
|
+
* @default "fixed"
|
|
43
|
+
*/
|
|
44
|
+
accessor position: "static" | "fixed" | undefined;
|
|
45
|
+
render(): React.JSX.Element;
|
|
46
|
+
}
|
|
47
|
+
interface EoSidebarComponentProps extends EoSidebarProps {
|
|
48
|
+
onActualWidthChange?: (actualWidth: number) => void;
|
|
49
|
+
onExpandedStateChange?: (state: ExpandedState) => void;
|
|
50
|
+
}
|
|
51
|
+
export declare function EoSidebarComponent(props: EoSidebarComponentProps): React.JSX.Element;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import "@next-core/theme";
|
|
4
|
+
export interface EoSidebarMenuProps {
|
|
5
|
+
menuCollapsed?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 侧栏菜单
|
|
9
|
+
*
|
|
10
|
+
* @category navigation
|
|
11
|
+
*/
|
|
12
|
+
export declare class EoSidebarMenu extends ReactNextElement implements EoSidebarMenuProps {
|
|
13
|
+
/**
|
|
14
|
+
* 菜单整体是否收起状态
|
|
15
|
+
*/
|
|
16
|
+
accessor menuCollapsed: boolean | undefined;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export declare function EoSidebarMenuComponent(props: EoSidebarMenuProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.jsx";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import "@next-core/theme";
|
|
4
|
+
export interface EoSidebarMenuGroupProps {
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
collapsable?: boolean;
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
menuCollapsed?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 侧栏菜单分组
|
|
12
|
+
* @slot title - 分组标题
|
|
13
|
+
* @category navigation
|
|
14
|
+
*/
|
|
15
|
+
export declare class EoSidebarMenuGroup extends ReactNextElement implements EoSidebarMenuGroupProps {
|
|
16
|
+
#private;
|
|
17
|
+
/**
|
|
18
|
+
* 是否允许折叠
|
|
19
|
+
*/
|
|
20
|
+
accessor collapsable: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 是否折叠
|
|
23
|
+
*/
|
|
24
|
+
accessor collapsed: boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* 是否选中
|
|
27
|
+
* */
|
|
28
|
+
accessor selected: boolean | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* 菜单整体是否收起状态
|
|
31
|
+
*/
|
|
32
|
+
accessor menuCollapsed: boolean | undefined;
|
|
33
|
+
render(): React.JSX.Element;
|
|
34
|
+
}
|
|
35
|
+
interface EoSidebarMenuGroupComponentProps extends EoSidebarMenuGroupProps {
|
|
36
|
+
onCollapseChange?: (collapsed: boolean) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare function EoSidebarMenuGroupComponent(props: EoSidebarMenuGroupComponentProps): React.JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.jsx";
|