@egose/shadcn-theme-ng 0.0.27 → 0.1.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/README.md +130 -13
- package/accordion/README.md +3 -0
- package/accordion/fesm2022/accordion.mjs +148 -0
- package/accordion/package.json +25 -0
- package/accordion/types/accordion.d.ts +49 -0
- package/alert/README.md +2 -63
- package/alert/fesm2022/alert.mjs +58 -53
- package/alert/package.json +25 -0
- package/alert-dialog/README.md +11 -0
- package/alert-dialog/fesm2022/alert-dialog.mjs +287 -0
- package/alert-dialog/package.json +25 -0
- package/alert-dialog/types/alert-dialog.d.ts +90 -0
- package/aspect-ratio/README.md +11 -0
- package/aspect-ratio/fesm2022/aspect-ratio.mjs +62 -0
- package/aspect-ratio/package.json +25 -0
- package/aspect-ratio/types/aspect-ratio.d.ts +21 -0
- package/autocomplete/README.md +3 -0
- package/autocomplete/fesm2022/autocomplete.mjs +391 -0
- package/autocomplete/package.json +24 -0
- package/autocomplete/types/autocomplete.d.ts +96 -0
- package/avatar/README.md +11 -0
- package/avatar/fesm2022/avatar.mjs +178 -0
- package/avatar/package.json +25 -0
- package/avatar/types/avatar.d.ts +50 -0
- package/badge/README.md +2 -63
- package/badge/fesm2022/badge.mjs +69 -63
- package/badge/package.json +25 -0
- package/basic-alert/README.md +2 -63
- package/basic-alert/fesm2022/basic-alert.mjs +14 -22
- package/basic-alert/package.json +24 -0
- package/breadcrumb/README.md +11 -0
- package/breadcrumb/fesm2022/breadcrumb.mjs +218 -0
- package/breadcrumb/package.json +25 -0
- package/breadcrumb/types/breadcrumb.d.ts +57 -0
- package/button/README.md +2 -63
- package/button/fesm2022/button.mjs +201 -177
- package/button/package.json +25 -0
- package/button/{index.d.ts → types/button.d.ts} +31 -10
- package/button-group/README.md +11 -0
- package/button-group/fesm2022/button-group.mjs +102 -0
- package/button-group/package.json +25 -0
- package/button-group/types/button-group.d.ts +30 -0
- package/calendar/README.md +2 -63
- package/calendar/fesm2022/calendar.mjs +178 -570
- package/calendar/package.json +24 -0
- package/calendar/types/calendar.d.ts +94 -0
- package/card/README.md +11 -0
- package/card/fesm2022/card.mjs +169 -0
- package/card/package.json +25 -0
- package/card/types/card.d.ts +54 -0
- package/carousel/README.md +11 -0
- package/carousel/fesm2022/carousel.mjs +267 -0
- package/carousel/package.json +25 -0
- package/carousel/types/carousel.d.ts +84 -0
- package/checkbox/README.md +3 -0
- package/checkbox/fesm2022/checkbox.mjs +113 -0
- package/checkbox/package.json +24 -0
- package/checkbox/types/checkbox.d.ts +56 -0
- package/collapsible/README.md +11 -0
- package/collapsible/fesm2022/collapsible.mjs +77 -0
- package/collapsible/package.json +25 -0
- package/collapsible/types/collapsible.d.ts +27 -0
- package/combobox/README.md +11 -0
- package/combobox/fesm2022/combobox.mjs +547 -0
- package/combobox/package.json +25 -0
- package/combobox/types/combobox.d.ts +151 -0
- package/command/README.md +11 -0
- package/command/fesm2022/command.mjs +301 -0
- package/command/package.json +25 -0
- package/command/types/command.d.ts +89 -0
- package/confirmation-dialog/README.md +3 -0
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +79 -0
- package/confirmation-dialog/package.json +24 -0
- package/confirmation-dialog/types/confirmation-dialog.d.ts +28 -0
- package/context-menu/README.md +11 -0
- package/context-menu/fesm2022/context-menu.mjs +89 -0
- package/context-menu/package.json +25 -0
- package/context-menu/types/context-menu.d.ts +34 -0
- package/date-picker/README.md +2 -63
- package/date-picker/fesm2022/date-picker.mjs +1104 -352
- package/date-picker/package.json +24 -0
- package/date-picker/types/date-picker.d.ts +555 -0
- package/dialog/README.md +3 -0
- package/dialog/fesm2022/dialog.mjs +281 -0
- package/dialog/package.json +24 -0
- package/dialog/types/dialog.d.ts +95 -0
- package/drawer/README.md +11 -0
- package/drawer/fesm2022/drawer.mjs +261 -0
- package/drawer/package.json +25 -0
- package/drawer/types/drawer.d.ts +76 -0
- package/dropdown-menu/README.md +11 -0
- package/dropdown-menu/fesm2022/dropdown-menu.mjs +554 -0
- package/dropdown-menu/package.json +25 -0
- package/dropdown-menu/types/dropdown-menu.d.ts +180 -0
- package/empty/README.md +11 -0
- package/empty/fesm2022/empty.mjs +151 -0
- package/empty/package.json +25 -0
- package/empty/types/empty.d.ts +54 -0
- package/field/README.md +11 -0
- package/field/fesm2022/field.mjs +351 -0
- package/field/package.json +25 -0
- package/field/types/field.d.ts +107 -0
- package/form-checkbox/README.md +3 -0
- package/form-checkbox/fesm2022/form-checkbox.mjs +94 -0
- package/form-checkbox/package.json +24 -0
- package/form-checkbox/types/form-checkbox.d.ts +33 -0
- package/form-date-picker/README.md +2 -63
- package/form-date-picker/fesm2022/form-date-picker.mjs +74 -120
- package/form-date-picker/package.json +24 -0
- package/form-date-picker/{index.d.ts → types/form-date-picker.d.ts} +7 -1
- package/form-field/README.md +2 -63
- package/form-field/fesm2022/form-field.mjs +54 -28
- package/form-field/package.json +25 -0
- package/form-field/types/form-field.d.ts +46 -0
- package/form-field-simple/README.md +2 -63
- package/form-field-simple/fesm2022/form-field-simple.mjs +15 -10
- package/form-field-simple/package.json +24 -0
- package/form-searchable-multiselect/README.md +3 -0
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +98 -0
- package/form-searchable-multiselect/package.json +24 -0
- package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +36 -0
- package/form-select/README.md +2 -63
- package/form-select/fesm2022/form-select.mjs +85 -141
- package/form-select/package.json +24 -0
- package/form-select/{index.d.ts → types/form-select.d.ts} +7 -1
- package/form-text-input/README.md +2 -63
- package/form-text-input/fesm2022/form-text-input.mjs +86 -171
- package/form-text-input/package.json +24 -0
- package/form-text-input/{index.d.ts → types/form-text-input.d.ts} +9 -12
- package/form-textarea/README.md +2 -63
- package/form-textarea/fesm2022/form-textarea.mjs +77 -128
- package/form-textarea/package.json +24 -0
- package/form-textarea/{index.d.ts → types/form-textarea.d.ts} +8 -1
- package/hover-card/README.md +11 -0
- package/hover-card/fesm2022/hover-card.mjs +123 -0
- package/hover-card/package.json +25 -0
- package/hover-card/types/hover-card.d.ts +36 -0
- package/icon/README.md +2 -63
- package/icon/fesm2022/icon.mjs +12 -10
- package/icon/package.json +25 -0
- package/input/README.md +2 -63
- package/input/fesm2022/input.mjs +25 -70
- package/input/package.json +25 -0
- package/input/types/input.d.ts +19 -0
- package/input-group/README.md +11 -0
- package/input-group/fesm2022/input-group.mjs +199 -0
- package/input-group/package.json +25 -0
- package/input-group/types/input-group.d.ts +52 -0
- package/input-otp/README.md +11 -0
- package/input-otp/fesm2022/input-otp.mjs +141 -0
- package/input-otp/package.json +25 -0
- package/input-otp/types/input-otp.d.ts +43 -0
- package/item/README.md +11 -0
- package/item/fesm2022/item.mjs +278 -0
- package/item/package.json +25 -0
- package/item/types/item.d.ts +101 -0
- package/kbd/README.md +11 -0
- package/kbd/fesm2022/kbd.mjs +61 -0
- package/kbd/package.json +25 -0
- package/kbd/types/kbd.d.ts +22 -0
- package/label/README.md +2 -63
- package/label/fesm2022/label.mjs +12 -11
- package/label/package.json +25 -0
- package/label/{index.d.ts → types/label.d.ts} +1 -1
- package/layout-simple/README.md +3 -0
- package/layout-simple/fesm2022/layout-simple.mjs +388 -0
- package/layout-simple/package.json +24 -0
- package/layout-simple/types/layout-simple.d.ts +167 -0
- package/menu/README.md +3 -0
- package/menu/fesm2022/menu.mjs +455 -0
- package/menu/package.json +24 -0
- package/menu/types/menu.d.ts +137 -0
- package/menubar/README.md +11 -0
- package/menubar/fesm2022/menubar.mjs +108 -0
- package/menubar/package.json +25 -0
- package/menubar/types/menubar.d.ts +40 -0
- package/native-select/README.md +11 -0
- package/native-select/fesm2022/native-select.mjs +207 -0
- package/native-select/package.json +25 -0
- package/native-select/types/native-select.d.ts +70 -0
- package/navigation-menu/README.md +11 -0
- package/navigation-menu/fesm2022/navigation-menu.mjs +194 -0
- package/navigation-menu/package.json +25 -0
- package/navigation-menu/types/navigation-menu.d.ts +54 -0
- package/package.json +284 -63
- package/pagination/README.md +11 -0
- package/pagination/fesm2022/pagination.mjs +522 -0
- package/pagination/package.json +25 -0
- package/pagination/types/pagination.d.ts +192 -0
- package/popover/README.md +2 -63
- package/popover/fesm2022/popover.mjs +124 -30
- package/popover/package.json +24 -0
- package/popover/types/popover.d.ts +54 -0
- package/progress/README.md +11 -0
- package/progress/fesm2022/progress.mjs +77 -0
- package/progress/package.json +25 -0
- package/progress/types/progress.d.ts +27 -0
- package/radio-group/README.md +3 -0
- package/radio-group/fesm2022/radio-group.mjs +207 -0
- package/radio-group/package.json +25 -0
- package/radio-group/types/radio-group.d.ts +71 -0
- package/resizable/README.md +11 -0
- package/resizable/fesm2022/resizable.mjs +103 -0
- package/resizable/package.json +25 -0
- package/resizable/types/resizable.d.ts +32 -0
- package/scroll-area/README.md +11 -0
- package/scroll-area/fesm2022/scroll-area.mjs +51 -0
- package/scroll-area/package.json +25 -0
- package/scroll-area/types/scroll-area.d.ts +16 -0
- package/searchable-multiselect/README.md +3 -0
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +136 -0
- package/searchable-multiselect/package.json +24 -0
- package/searchable-multiselect/types/searchable-multiselect.d.ts +45 -0
- package/select/README.md +2 -63
- package/select/fesm2022/select.mjs +340 -198
- package/select/package.json +25 -0
- package/select/types/select.d.ts +121 -0
- package/separator/README.md +2 -63
- package/separator/fesm2022/separator.mjs +17 -15
- package/separator/package.json +24 -0
- package/separator/{index.d.ts → types/separator.d.ts} +4 -5
- package/sheet/README.md +2 -63
- package/sheet/fesm2022/sheet.mjs +56 -61
- package/sheet/package.json +24 -0
- package/sidebar/README.md +11 -0
- package/sidebar/fesm2022/sidebar.mjs +846 -0
- package/sidebar/package.json +25 -0
- package/sidebar/types/sidebar.d.ts +237 -0
- package/skeleton/README.md +11 -0
- package/skeleton/fesm2022/skeleton.mjs +44 -0
- package/skeleton/package.json +25 -0
- package/skeleton/types/skeleton.d.ts +16 -0
- package/slider/README.md +11 -0
- package/slider/fesm2022/slider.mjs +74 -0
- package/slider/package.json +25 -0
- package/slider/types/slider.d.ts +19 -0
- package/sonner/README.md +2 -63
- package/sonner/fesm2022/sonner.mjs +34 -39
- package/sonner/package.json +25 -0
- package/spinner/README.md +2 -63
- package/spinner/fesm2022/spinner.mjs +20 -16
- package/spinner/package.json +25 -0
- package/switch/README.md +2 -63
- package/switch/fesm2022/switch.mjs +28 -27
- package/switch/package.json +25 -0
- package/table/README.md +11 -0
- package/table/fesm2022/table.mjs +211 -0
- package/table/package.json +25 -0
- package/table/types/table.d.ts +87 -0
- package/tabs/README.md +3 -0
- package/tabs/fesm2022/tabs.mjs +210 -0
- package/tabs/package.json +25 -0
- package/tabs/types/tabs.d.ts +71 -0
- package/textarea/README.md +11 -0
- package/textarea/fesm2022/textarea.mjs +47 -0
- package/textarea/package.json +25 -0
- package/textarea/types/textarea.d.ts +18 -0
- package/toggle/README.md +11 -0
- package/toggle/fesm2022/toggle.mjs +78 -0
- package/toggle/package.json +25 -0
- package/toggle/types/toggle.d.ts +27 -0
- package/toggle-group/README.md +11 -0
- package/toggle-group/fesm2022/toggle-group.mjs +117 -0
- package/toggle-group/package.json +25 -0
- package/toggle-group/types/toggle-group.d.ts +45 -0
- package/tooltip/README.md +3 -0
- package/tooltip/fesm2022/tooltip.mjs +72 -0
- package/tooltip/package.json +25 -0
- package/tooltip/types/tooltip.d.ts +22 -0
- package/typography/README.md +11 -0
- package/typography/fesm2022/typography.mjs +242 -0
- package/typography/package.json +25 -0
- package/typography/types/typography.d.ts +94 -0
- package/utils/README.md +2 -63
- package/utils/fesm2022/utils.mjs +209 -2
- package/utils/package.json +25 -0
- package/utils/types/utils.d.ts +13 -0
- package/alert/fesm2022/alert.mjs.map +0 -1
- package/badge/fesm2022/badge.mjs.map +0 -1
- package/basic-alert/fesm2022/basic-alert.mjs.map +0 -1
- package/button/fesm2022/button.mjs.map +0 -1
- package/calendar/fesm2022/calendar.mjs.map +0 -1
- package/calendar/index.d.ts +0 -111
- package/date-picker/fesm2022/date-picker.mjs.map +0 -1
- package/date-picker/index.d.ts +0 -227
- package/form-date-picker/fesm2022/form-date-picker.mjs.map +0 -1
- package/form-field/fesm2022/form-field.mjs.map +0 -1
- package/form-field/index.d.ts +0 -37
- package/form-field-simple/fesm2022/form-field-simple.mjs.map +0 -1
- package/form-select/fesm2022/form-select.mjs.map +0 -1
- package/form-text-input/fesm2022/form-text-input.mjs.map +0 -1
- package/form-textarea/fesm2022/form-textarea.mjs.map +0 -1
- package/icon/fesm2022/icon.mjs.map +0 -1
- package/input/fesm2022/input.mjs.map +0 -1
- package/input/index.d.ts +0 -41
- package/label/fesm2022/label.mjs.map +0 -1
- package/popover/fesm2022/popover.mjs.map +0 -1
- package/popover/index.d.ts +0 -30
- package/select/fesm2022/select.mjs.map +0 -1
- package/select/index.d.ts +0 -92
- package/separator/fesm2022/separator.mjs.map +0 -1
- package/sheet/fesm2022/sheet.mjs.map +0 -1
- package/sonner/fesm2022/sonner.mjs.map +0 -1
- package/spinner/fesm2022/spinner.mjs.map +0 -1
- package/switch/fesm2022/switch.mjs.map +0 -1
- package/utils/fesm2022/utils.mjs.map +0 -1
- package/utils/index.d.ts +0 -5
- /package/alert/{index.d.ts → types/alert.d.ts} +0 -0
- /package/badge/{index.d.ts → types/badge.d.ts} +0 -0
- /package/basic-alert/{index.d.ts → types/basic-alert.d.ts} +0 -0
- /package/form-field-simple/{index.d.ts → types/form-field-simple.d.ts} +0 -0
- /package/icon/{index.d.ts → types/icon.d.ts} +0 -0
- /package/sheet/{index.d.ts → types/sheet.d.ts} +0 -0
- /package/sonner/{index.d.ts → types/sonner.d.ts} +0 -0
- /package/spinner/{index.d.ts → types/spinner.d.ts} +0 -0
- /package/switch/{index.d.ts → types/switch.d.ts} +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
import { hlm } from '@egose/shadcn-theme-ng/utils';
|
|
6
|
+
import { BrnSheet } from '@spartan-ng/brain/sheet';
|
|
7
|
+
|
|
8
|
+
interface UserMenuItem {
|
|
9
|
+
label: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
action?: () => void;
|
|
12
|
+
link?: string;
|
|
13
|
+
class?: string;
|
|
14
|
+
}
|
|
15
|
+
interface UserMenuSection {
|
|
16
|
+
label?: string;
|
|
17
|
+
separator?: boolean;
|
|
18
|
+
items?: UserMenuItem[];
|
|
19
|
+
}
|
|
20
|
+
declare class EgLayoutSimpleUserMenu {
|
|
21
|
+
hlm: typeof hlm;
|
|
22
|
+
lucideUser: string;
|
|
23
|
+
menus: _angular_core.InputSignal<UserMenuSection[]>;
|
|
24
|
+
menuTrigger: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EgLayoutSimpleUserMenu, never>;
|
|
26
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EgLayoutSimpleUserMenu, "eg-layout-simple-user-menu", never, { "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "menuTrigger": { "alias": "menuTrigger"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class EgLayoutSimpleSidebar {
|
|
30
|
+
readonly viewchildSheetRef: _angular_core.Signal<BrnSheet | undefined>;
|
|
31
|
+
side: _angular_core.InputSignal<"top" | "bottom" | "left" | "right" | undefined>;
|
|
32
|
+
title: _angular_core.InputSignal<string | undefined>;
|
|
33
|
+
content: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
34
|
+
contentContext: _angular_core.InputSignal<object | null>;
|
|
35
|
+
constructor();
|
|
36
|
+
openSheet(): void;
|
|
37
|
+
closeSheet(): void;
|
|
38
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EgLayoutSimpleSidebar, never>;
|
|
39
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EgLayoutSimpleSidebar, "eg-layout-simple-sidebar", never, { "side": { "alias": "side"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "contentContext": { "alias": "contentContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface MenuItem {
|
|
43
|
+
label: string;
|
|
44
|
+
icon?: string;
|
|
45
|
+
link?: string;
|
|
46
|
+
action?: () => void;
|
|
47
|
+
class?: string;
|
|
48
|
+
}
|
|
49
|
+
interface MenuGroup {
|
|
50
|
+
label?: string;
|
|
51
|
+
items: MenuItem[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Single viewport contract for the shell: below Tailwind's `md` (768px) breakpoint the
|
|
55
|
+
* mobile menu trigger replaces all desktop navigation rows. CSS (`tw:hidden tw:md:flex`)
|
|
56
|
+
* and runtime rendering both derive from this one boundary.
|
|
57
|
+
*/
|
|
58
|
+
declare const EG_LAYOUT_SIMPLE_MOBILE_BREAKPOINT = "(max-width: 767.98px)";
|
|
59
|
+
declare class EgLayoutSimple<TItem, TParams extends object = {
|
|
60
|
+
search: string;
|
|
61
|
+
}> {
|
|
62
|
+
private breakpointObserver;
|
|
63
|
+
private readonly destroyRef;
|
|
64
|
+
hlm: typeof hlm;
|
|
65
|
+
menuIcon: string;
|
|
66
|
+
sidebarEnabled: _angular_core.InputSignal<boolean>;
|
|
67
|
+
sidebarTitle: _angular_core.InputSignal<string>;
|
|
68
|
+
sidebarContent: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
69
|
+
/** Accessible name for the icon-only sidebar trigger. */
|
|
70
|
+
sidebarToggleLabel: _angular_core.InputSignal<string>;
|
|
71
|
+
/** Accessible name for the icon-only mobile menu trigger. */
|
|
72
|
+
mobileMenuLabel: _angular_core.InputSignal<string>;
|
|
73
|
+
userMenuTrigger: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
74
|
+
/** Menu data inputs */
|
|
75
|
+
leftMenus: _angular_core.InputSignal<MenuItem[]>;
|
|
76
|
+
leftMenuGroups: _angular_core.InputSignal<MenuGroup[]>;
|
|
77
|
+
rightMenus: _angular_core.InputSignal<MenuItem[]>;
|
|
78
|
+
topMenus: _angular_core.InputSignal<MenuItem[]>;
|
|
79
|
+
topSecondaryMenus: _angular_core.InputSignal<MenuGroup[]>;
|
|
80
|
+
userMenus: _angular_core.InputSignal<UserMenuSection[]>;
|
|
81
|
+
logo: _angular_core.InputSignal<string>;
|
|
82
|
+
logoLink: _angular_core.InputSignal<string>;
|
|
83
|
+
logoClass: _angular_core.InputSignal<ClassValue>;
|
|
84
|
+
headerClass: _angular_core.InputSignal<ClassValue>;
|
|
85
|
+
contentClass: _angular_core.InputSignal<ClassValue>;
|
|
86
|
+
contentBottomClass: _angular_core.InputSignal<ClassValue>;
|
|
87
|
+
/** Container class inputs */
|
|
88
|
+
leftMenuClass: _angular_core.InputSignal<ClassValue>;
|
|
89
|
+
rightMenuClass: _angular_core.InputSignal<ClassValue>;
|
|
90
|
+
topMenuClass: _angular_core.InputSignal<ClassValue>;
|
|
91
|
+
/** Link/button base class inputs */
|
|
92
|
+
leftLinkClass: _angular_core.InputSignal<ClassValue>;
|
|
93
|
+
rightLinkClass: _angular_core.InputSignal<ClassValue>;
|
|
94
|
+
topLinkClass: _angular_core.InputSignal<ClassValue>;
|
|
95
|
+
searchEnabled: _angular_core.InputSignal<boolean>;
|
|
96
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
97
|
+
searchPlaceholderText: _angular_core.InputSignal<string>;
|
|
98
|
+
searchEmptyText: _angular_core.InputSignal<string>;
|
|
99
|
+
searchOptionTemplate: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
100
|
+
searchLoaderFn: _angular_core.InputSignal<((params: TParams) => Promise<TItem[]>) | undefined>;
|
|
101
|
+
searchTransformValueToSearch: _angular_core.InputSignal<((value: TItem) => string) | undefined>;
|
|
102
|
+
readonly searchOptionChange: _angular_core.OutputEmitterRef<TItem>;
|
|
103
|
+
protected readonly _logoClass: _angular_core.Signal<string>;
|
|
104
|
+
protected readonly _headerClass: _angular_core.Signal<string>;
|
|
105
|
+
protected readonly _contentClass: _angular_core.Signal<string>;
|
|
106
|
+
protected readonly _contentBottomClass: _angular_core.Signal<string>;
|
|
107
|
+
/** Computed merged classes for containers */
|
|
108
|
+
protected readonly _computedLeftClass: _angular_core.Signal<string>;
|
|
109
|
+
protected readonly _computedRightClass: _angular_core.Signal<string>;
|
|
110
|
+
protected readonly _computedTopClass: _angular_core.Signal<string>;
|
|
111
|
+
protected readonly _computedTopSecondaryClass: _angular_core.Signal<string>;
|
|
112
|
+
/** Computed merged classes for link/button elements */
|
|
113
|
+
protected readonly _computedLeftLinkClass: _angular_core.Signal<string>;
|
|
114
|
+
protected readonly _computedRightLinkClass: _angular_core.Signal<string>;
|
|
115
|
+
protected readonly _computedTopLinkClass: _angular_core.Signal<string>;
|
|
116
|
+
mobileMenuItemClass: string;
|
|
117
|
+
footerEnabled: _angular_core.InputSignal<boolean>;
|
|
118
|
+
footerMenus: _angular_core.InputSignal<MenuItem[]>;
|
|
119
|
+
footerMenuClass: _angular_core.InputSignal<ClassValue>;
|
|
120
|
+
footerLinkClass: _angular_core.InputSignal<ClassValue>;
|
|
121
|
+
footerContent: _angular_core.InputSignal<string>;
|
|
122
|
+
footerClass: _angular_core.InputSignal<ClassValue>;
|
|
123
|
+
protected readonly _footerClass: _angular_core.Signal<string>;
|
|
124
|
+
protected readonly _computedFooterMenuClass: _angular_core.Signal<string>;
|
|
125
|
+
protected readonly _computedFooterLinkClass: _angular_core.Signal<string>;
|
|
126
|
+
/** Mobile menu state */
|
|
127
|
+
protected readonly mobileMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
128
|
+
isMobile: _angular_core.WritableSignal<boolean>;
|
|
129
|
+
/** Expanded state of the sidebar sheet, kept in sync with BrnSheet state changes. */
|
|
130
|
+
protected readonly sidebarOpen: _angular_core.WritableSignal<boolean>;
|
|
131
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
132
|
+
toggleMobileMenu(): void;
|
|
133
|
+
closeMobileMenu(): void;
|
|
134
|
+
onSearchOptionChange(value: TItem): void;
|
|
135
|
+
readonly viewchildSheetRef: _angular_core.Signal<EgLayoutSimpleSidebar | undefined>;
|
|
136
|
+
openSidebar(): void;
|
|
137
|
+
closeSidebar(): void;
|
|
138
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EgLayoutSimple<any, any>, never>;
|
|
139
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EgLayoutSimple<any, any>, "eg-layout-simple", never, { "sidebarEnabled": { "alias": "sidebarEnabled"; "required": false; "isSignal": true; }; "sidebarTitle": { "alias": "sidebarTitle"; "required": false; "isSignal": true; }; "sidebarContent": { "alias": "sidebarContent"; "required": false; "isSignal": true; }; "sidebarToggleLabel": { "alias": "sidebarToggleLabel"; "required": false; "isSignal": true; }; "mobileMenuLabel": { "alias": "mobileMenuLabel"; "required": false; "isSignal": true; }; "userMenuTrigger": { "alias": "userMenuTrigger"; "required": false; "isSignal": true; }; "leftMenus": { "alias": "leftMenus"; "required": false; "isSignal": true; }; "leftMenuGroups": { "alias": "leftMenuGroups"; "required": false; "isSignal": true; }; "rightMenus": { "alias": "rightMenus"; "required": false; "isSignal": true; }; "topMenus": { "alias": "topMenus"; "required": false; "isSignal": true; }; "topSecondaryMenus": { "alias": "topSecondaryMenus"; "required": false; "isSignal": true; }; "userMenus": { "alias": "userMenus"; "required": false; "isSignal": true; }; "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "logoLink": { "alias": "logoLink"; "required": false; "isSignal": true; }; "logoClass": { "alias": "logoClass"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "contentClass": { "alias": "contentClass"; "required": false; "isSignal": true; }; "contentBottomClass": { "alias": "contentBottomClass"; "required": false; "isSignal": true; }; "leftMenuClass": { "alias": "leftClass"; "required": false; "isSignal": true; }; "rightMenuClass": { "alias": "rightClass"; "required": false; "isSignal": true; }; "topMenuClass": { "alias": "topClass"; "required": false; "isSignal": true; }; "leftLinkClass": { "alias": "leftLinkClass"; "required": false; "isSignal": true; }; "rightLinkClass": { "alias": "rightLinkClass"; "required": false; "isSignal": true; }; "topLinkClass": { "alias": "topLinkClass"; "required": false; "isSignal": true; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "searchPlaceholderText": { "alias": "searchPlaceholderText"; "required": false; "isSignal": true; }; "searchEmptyText": { "alias": "searchEmptyText"; "required": false; "isSignal": true; }; "searchOptionTemplate": { "alias": "searchOptionTemplate"; "required": false; "isSignal": true; }; "searchLoaderFn": { "alias": "searchLoaderFn"; "required": false; "isSignal": true; }; "searchTransformValueToSearch": { "alias": "searchTransformValueToSearch"; "required": false; "isSignal": true; }; "footerEnabled": { "alias": "footerEnabled"; "required": false; "isSignal": true; }; "footerMenus": { "alias": "footerMenus"; "required": false; "isSignal": true; }; "footerMenuClass": { "alias": "footerMenuClass"; "required": false; "isSignal": true; }; "footerLinkClass": { "alias": "footerLinkClass"; "required": false; "isSignal": true; }; "footerContent": { "alias": "footerContent"; "required": false; "isSignal": true; }; "footerClass": { "alias": "footerClass"; "required": false; "isSignal": true; }; }, { "searchOptionChange": "searchOptionChange"; }, never, ["*"], true, never>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface AutocompleteOption<T = unknown> {
|
|
143
|
+
label: string;
|
|
144
|
+
value: T;
|
|
145
|
+
raw?: T;
|
|
146
|
+
}
|
|
147
|
+
declare class EgGenericAutocomplete<TItem, TParams extends object = {
|
|
148
|
+
search: string;
|
|
149
|
+
}> {
|
|
150
|
+
placeholderText: _angular_core.InputSignal<string>;
|
|
151
|
+
emptyText: _angular_core.InputSignal<string>;
|
|
152
|
+
/** Loader function: takes search string, returns options. */
|
|
153
|
+
loaderFn: _angular_core.InputSignal<((params: TParams) => Promise<TItem[]>) | undefined>;
|
|
154
|
+
transformValueToSearch: _angular_core.InputSignal<((value: TItem) => string) | undefined>;
|
|
155
|
+
readonly search: _angular_core.WritableSignal<string>;
|
|
156
|
+
readonly options: _angular_core.WritableSignal<TItem[]>;
|
|
157
|
+
protected readonly filtered: _angular_core.Signal<AutocompleteOption<TItem>[]>;
|
|
158
|
+
readonly optionChange: _angular_core.OutputEmitterRef<TItem>;
|
|
159
|
+
constructor();
|
|
160
|
+
private loadOptions;
|
|
161
|
+
select(opt: AutocompleteOption<TItem>): void;
|
|
162
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EgGenericAutocomplete<any, any>, never>;
|
|
163
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EgGenericAutocomplete<any, any>, "eg-generic-autocomplete", never, { "placeholderText": { "alias": "placeholderText"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "loaderFn": { "alias": "loaderFn"; "required": false; "isSignal": true; }; "transformValueToSearch": { "alias": "transformValueToSearch"; "required": false; "isSignal": true; }; }, { "optionChange": "optionChange"; }, never, never, true, never>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export { EG_LAYOUT_SIMPLE_MOBILE_BREAKPOINT, EgGenericAutocomplete, EgLayoutSimple, EgLayoutSimpleUserMenu };
|
|
167
|
+
export type { AutocompleteOption, MenuGroup, MenuItem, UserMenuItem, UserMenuSection };
|
package/menu/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Menu Subpath
|
|
2
|
+
|
|
3
|
+
This project ships only as `@egose/shadcn-theme-ng/menu` or `@egose/shadcn-theme-ng-tw/menu`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.
|