@starasia/admin 14.11.0 → 14.13.0
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/components/Highlight/index.d.ts +24 -0
- package/dist/components/TableLayout/TableLayout.d.ts +1 -1
- package/dist/components/TableLayout/types.d.ts +9 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +18 -18
- package/dist/index.es.js +2409 -2377
- package/dist/index.umd.js +16 -16
- package/dist/types/menu.d.ts +17 -0
- package/package.json +1 -1
package/dist/types/menu.d.ts
CHANGED
|
@@ -27,6 +27,22 @@ export interface SidebarMenuItem {
|
|
|
27
27
|
icon: IconName;
|
|
28
28
|
children?: SidebarMenuChildItem[];
|
|
29
29
|
badge?: SidebarBadge;
|
|
30
|
+
/**
|
|
31
|
+
* Kalau diisi, item dirender sebagai induk yang bisa dibuka-tutup dan area
|
|
32
|
+
* sub-item-nya diganti `<SidebarGroupSlotOutlet slotKey={slotKey}>` — consumer
|
|
33
|
+
* inject konten dinamis (mis. daftar project / riwayat) dengan
|
|
34
|
+
* `<SidebarGroupSlot slotKey={slotKey}>`. Selama belum ada slot yang terpasang,
|
|
35
|
+
* `children` statis (kalau ada) dirender sebagai fallback.
|
|
36
|
+
*
|
|
37
|
+
* `to` hanya dipakai saat sidebar jadi icon rail (klik → navigasi) dan tidak
|
|
38
|
+
* ikut perhitungan menu aktif — status aktif diurus konten slot sendiri.
|
|
39
|
+
*/
|
|
40
|
+
slotKey?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Buka item induk (ber-`children` atau ber-`slotKey`) saat pertama kali tampil.
|
|
43
|
+
* Setelah itu buka/tutup mengikuti klik user.
|
|
44
|
+
*/
|
|
45
|
+
defaultExpanded?: boolean;
|
|
30
46
|
}
|
|
31
47
|
export interface SidebarMenuGroup {
|
|
32
48
|
id: number;
|
|
@@ -42,6 +58,7 @@ export interface SidebarMenuGroup {
|
|
|
42
58
|
* Kalau diisi, static `items` tidak dirender. Sebagai gantinya AppLayout
|
|
43
59
|
* merender `<SidebarGroupSlotOutlet slotKey={slotKey}>` di area items.
|
|
44
60
|
* Consumer inject konten dinamis dengan `<SidebarGroupSlot slotKey={slotKey}>`.
|
|
61
|
+
* Untuk slot sebagai sub-menu dari satu item, pakai `SidebarMenuItem.slotKey`.
|
|
45
62
|
*/
|
|
46
63
|
slotKey?: string;
|
|
47
64
|
}
|