@egose/shadcn-theme-ng 0.0.26 → 0.0.28
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/LICENSE +201 -0
- package/README.md +107 -2
- package/accordion/fesm2022/accordion.mjs +42 -37
- package/accordion/fesm2022/accordion.mjs.map +1 -1
- package/accordion/package.json +25 -0
- package/accordion/{index.d.ts → types/accordion.d.ts} +1 -1
- package/alert/fesm2022/alert.mjs +32 -27
- package/alert/fesm2022/alert.mjs.map +1 -1
- 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/fesm2022/alert-dialog.mjs.map +1 -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/fesm2022/aspect-ratio.mjs.map +1 -0
- package/aspect-ratio/package.json +25 -0
- package/aspect-ratio/types/aspect-ratio.d.ts +21 -0
- package/autocomplete/fesm2022/autocomplete.mjs +323 -457
- package/autocomplete/fesm2022/autocomplete.mjs.map +1 -1
- 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/fesm2022/avatar.mjs.map +1 -0
- package/avatar/package.json +25 -0
- package/avatar/types/avatar.d.ts +50 -0
- package/badge/fesm2022/badge.mjs +16 -10
- package/badge/fesm2022/badge.mjs.map +1 -1
- package/badge/package.json +25 -0
- package/basic-alert/fesm2022/basic-alert.mjs +12 -8
- package/basic-alert/fesm2022/basic-alert.mjs.map +1 -1
- package/basic-alert/package.json +24 -0
- package/breadcrumb/README.md +11 -0
- package/breadcrumb/fesm2022/breadcrumb.mjs +224 -0
- package/breadcrumb/fesm2022/breadcrumb.mjs.map +1 -0
- package/breadcrumb/package.json +25 -0
- package/breadcrumb/types/breadcrumb.d.ts +57 -0
- package/button/fesm2022/button.mjs +100 -26
- package/button/fesm2022/button.mjs.map +1 -1
- package/button/package.json +25 -0
- package/button/{index.d.ts → types/button.d.ts} +30 -9
- package/button-group/README.md +11 -0
- package/button-group/fesm2022/button-group.mjs +102 -0
- package/button-group/fesm2022/button-group.mjs.map +1 -0
- package/button-group/package.json +25 -0
- package/button-group/types/button-group.d.ts +30 -0
- package/calendar/fesm2022/calendar.mjs +868 -546
- package/calendar/fesm2022/calendar.mjs.map +1 -1
- 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/fesm2022/card.mjs.map +1 -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 +309 -0
- package/carousel/fesm2022/carousel.mjs.map +1 -0
- package/carousel/package.json +25 -0
- package/carousel/types/carousel.d.ts +84 -0
- package/checkbox/fesm2022/checkbox.mjs +25 -20
- package/checkbox/fesm2022/checkbox.mjs.map +1 -1
- package/checkbox/package.json +24 -0
- package/collapsible/README.md +11 -0
- package/collapsible/fesm2022/collapsible.mjs +77 -0
- package/collapsible/fesm2022/collapsible.mjs.map +1 -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 +683 -0
- package/combobox/fesm2022/combobox.mjs.map +1 -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 +361 -0
- package/command/fesm2022/command.mjs.map +1 -0
- package/command/package.json +25 -0
- package/command/types/command.d.ts +89 -0
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +19 -8
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +1 -1
- package/confirmation-dialog/package.json +24 -0
- package/context-menu/README.md +11 -0
- package/context-menu/fesm2022/context-menu.mjs +89 -0
- package/context-menu/fesm2022/context-menu.mjs.map +1 -0
- package/context-menu/package.json +25 -0
- package/context-menu/types/context-menu.d.ts +34 -0
- package/date-picker/fesm2022/date-picker.mjs +1262 -307
- package/date-picker/fesm2022/date-picker.mjs.map +1 -1
- package/date-picker/package.json +24 -0
- package/date-picker/types/date-picker.d.ts +551 -0
- package/dialog/fesm2022/dialog.mjs +137 -108
- package/dialog/fesm2022/dialog.mjs.map +1 -1
- 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 +271 -0
- package/drawer/fesm2022/drawer.mjs.map +1 -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 +542 -0
- package/dropdown-menu/fesm2022/dropdown-menu.mjs.map +1 -0
- package/dropdown-menu/package.json +25 -0
- package/dropdown-menu/types/dropdown-menu.d.ts +176 -0
- package/empty/README.md +11 -0
- package/empty/fesm2022/empty.mjs +151 -0
- package/empty/fesm2022/empty.mjs.map +1 -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 +367 -0
- package/field/fesm2022/field.mjs.map +1 -0
- package/field/package.json +25 -0
- package/field/types/field.d.ts +107 -0
- package/form-checkbox/fesm2022/form-checkbox.mjs +39 -22
- package/form-checkbox/fesm2022/form-checkbox.mjs.map +1 -1
- package/form-checkbox/package.json +24 -0
- package/form-date-picker/fesm2022/form-date-picker.mjs +58 -51
- package/form-date-picker/fesm2022/form-date-picker.mjs.map +1 -1
- package/form-date-picker/package.json +24 -0
- package/form-field/fesm2022/form-field.mjs +39 -27
- package/form-field/fesm2022/form-field.mjs.map +1 -1
- package/form-field/package.json +25 -0
- package/form-field/{index.d.ts → types/form-field.d.ts} +4 -3
- package/form-field-simple/fesm2022/form-field-simple.mjs +15 -10
- package/form-field-simple/fesm2022/form-field-simple.mjs.map +1 -1
- package/form-field-simple/package.json +24 -0
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +44 -25
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +1 -1
- package/form-searchable-multiselect/package.json +24 -0
- package/form-select/fesm2022/form-select.mjs +132 -71
- package/form-select/fesm2022/form-select.mjs.map +1 -1
- package/form-select/package.json +24 -0
- package/form-text-input/fesm2022/form-text-input.mjs +68 -39
- package/form-text-input/fesm2022/form-text-input.mjs.map +1 -1
- package/form-text-input/package.json +24 -0
- package/form-textarea/fesm2022/form-textarea.mjs +54 -30
- package/form-textarea/fesm2022/form-textarea.mjs.map +1 -1
- package/form-textarea/package.json +24 -0
- package/hover-card/README.md +11 -0
- package/hover-card/fesm2022/hover-card.mjs +123 -0
- package/hover-card/fesm2022/hover-card.mjs.map +1 -0
- package/hover-card/package.json +25 -0
- package/hover-card/types/hover-card.d.ts +36 -0
- package/icon/fesm2022/icon.mjs +12 -10
- package/icon/fesm2022/icon.mjs.map +1 -1
- package/icon/package.json +25 -0
- package/input/fesm2022/input.mjs +20 -70
- package/input/fesm2022/input.mjs.map +1 -1
- package/input/package.json +25 -0
- package/input/types/input.d.ts +18 -0
- package/input-group/README.md +11 -0
- package/input-group/fesm2022/input-group.mjs +199 -0
- package/input-group/fesm2022/input-group.mjs.map +1 -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/fesm2022/input-otp.mjs.map +1 -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/fesm2022/item.mjs.map +1 -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/fesm2022/kbd.mjs.map +1 -0
- package/kbd/package.json +25 -0
- package/kbd/types/kbd.d.ts +22 -0
- package/label/fesm2022/label.mjs +11 -10
- package/label/fesm2022/label.mjs.map +1 -1
- package/label/package.json +25 -0
- package/layout-simple/fesm2022/layout-simple.mjs +438 -325
- package/layout-simple/fesm2022/layout-simple.mjs.map +1 -1
- package/layout-simple/package.json +24 -0
- package/layout-simple/{index.d.ts → types/layout-simple.d.ts} +28 -17
- package/menubar/README.md +11 -0
- package/menubar/fesm2022/menubar.mjs +108 -0
- package/menubar/fesm2022/menubar.mjs.map +1 -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/fesm2022/native-select.mjs.map +1 -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 +206 -0
- package/navigation-menu/fesm2022/navigation-menu.mjs.map +1 -0
- package/navigation-menu/package.json +25 -0
- package/navigation-menu/types/navigation-menu.d.ts +54 -0
- package/package.json +223 -81
- package/pagination/README.md +11 -0
- package/pagination/fesm2022/pagination.mjs +808 -0
- package/pagination/fesm2022/pagination.mjs.map +1 -0
- package/pagination/package.json +25 -0
- package/pagination/types/pagination.d.ts +192 -0
- package/popover/fesm2022/popover.mjs +121 -27
- package/popover/fesm2022/popover.mjs.map +1 -1
- 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/fesm2022/progress.mjs.map +1 -0
- package/progress/package.json +25 -0
- package/progress/types/progress.d.ts +27 -0
- package/radio-group/fesm2022/radio-group.mjs +96 -62
- package/radio-group/fesm2022/radio-group.mjs.map +1 -1
- package/radio-group/package.json +25 -0
- package/radio-group/{index.d.ts → types/radio-group.d.ts} +22 -14
- package/resizable/README.md +11 -0
- package/resizable/fesm2022/resizable.mjs +111 -0
- package/resizable/fesm2022/resizable.mjs.map +1 -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/fesm2022/scroll-area.mjs.map +1 -0
- package/scroll-area/package.json +25 -0
- package/scroll-area/types/scroll-area.d.ts +16 -0
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +92 -88
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +1 -1
- package/searchable-multiselect/package.json +24 -0
- package/searchable-multiselect/{index.d.ts → types/searchable-multiselect.d.ts} +13 -24
- package/select/fesm2022/select.mjs +371 -189
- package/select/fesm2022/select.mjs.map +1 -1
- package/select/package.json +25 -0
- package/select/types/select.d.ts +119 -0
- package/separator/fesm2022/separator.mjs +16 -14
- package/separator/fesm2022/separator.mjs.map +1 -1
- package/separator/package.json +24 -0
- package/separator/{index.d.ts → types/separator.d.ts} +4 -5
- package/sheet/fesm2022/sheet.mjs +57 -51
- package/sheet/fesm2022/sheet.mjs.map +1 -1
- package/sheet/package.json +24 -0
- package/sidebar/README.md +11 -0
- package/sidebar/fesm2022/sidebar.mjs +948 -0
- package/sidebar/fesm2022/sidebar.mjs.map +1 -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/fesm2022/skeleton.mjs.map +1 -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 +144 -0
- package/slider/fesm2022/slider.mjs.map +1 -0
- package/slider/package.json +25 -0
- package/slider/types/slider.d.ts +19 -0
- package/sonner/fesm2022/sonner.mjs +30 -35
- package/sonner/fesm2022/sonner.mjs.map +1 -1
- package/sonner/package.json +25 -0
- package/spinner/fesm2022/spinner.mjs +18 -14
- package/spinner/fesm2022/spinner.mjs.map +1 -1
- package/spinner/package.json +25 -0
- package/switch/fesm2022/switch.mjs +29 -26
- package/switch/fesm2022/switch.mjs.map +1 -1
- package/switch/package.json +25 -0
- package/table/README.md +11 -0
- package/table/fesm2022/table.mjs +211 -0
- package/table/fesm2022/table.mjs.map +1 -0
- package/table/package.json +25 -0
- package/table/types/table.d.ts +87 -0
- package/tabs/fesm2022/tabs.mjs +131 -103
- package/tabs/fesm2022/tabs.mjs.map +1 -1
- 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/fesm2022/textarea.mjs.map +1 -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/fesm2022/toggle.mjs.map +1 -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/fesm2022/toggle-group.mjs.map +1 -0
- package/toggle-group/package.json +25 -0
- package/toggle-group/types/toggle-group.d.ts +39 -0
- package/tooltip/fesm2022/tooltip.mjs +33 -54
- package/tooltip/fesm2022/tooltip.mjs.map +1 -1
- 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/fesm2022/typography.mjs.map +1 -0
- package/typography/package.json +25 -0
- package/typography/types/typography.d.ts +94 -0
- package/utils/fesm2022/utils.mjs +184 -1
- package/utils/fesm2022/utils.mjs.map +1 -1
- package/utils/package.json +25 -0
- package/utils/types/utils.d.ts +13 -0
- package/autocomplete/index.d.ts +0 -162
- package/calendar/index.d.ts +0 -111
- package/date-picker/index.d.ts +0 -227
- package/dialog/index.d.ts +0 -89
- package/exports.json +0 -1
- package/input/index.d.ts +0 -41
- package/menu/README.md +0 -64
- package/menu/fesm2022/menu.mjs +0 -449
- package/menu/fesm2022/menu.mjs.map +0 -1
- package/menu/index.d.ts +0 -137
- package/popover/index.d.ts +0 -30
- package/select/index.d.ts +0 -92
- package/tabs/index.d.ts +0 -71
- package/tooltip/index.d.ts +0 -21
- 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/checkbox/{index.d.ts → types/checkbox.d.ts} +0 -0
- /package/confirmation-dialog/{index.d.ts → types/confirmation-dialog.d.ts} +0 -0
- /package/form-checkbox/{index.d.ts → types/form-checkbox.d.ts} +0 -0
- /package/form-date-picker/{index.d.ts → types/form-date-picker.d.ts} +0 -0
- /package/form-field-simple/{index.d.ts → types/form-field-simple.d.ts} +0 -0
- /package/form-searchable-multiselect/{index.d.ts → types/form-searchable-multiselect.d.ts} +0 -0
- /package/form-select/{index.d.ts → types/form-select.d.ts} +0 -0
- /package/form-text-input/{index.d.ts → types/form-text-input.d.ts} +0 -0
- /package/form-textarea/{index.d.ts → types/form-textarea.d.ts} +0 -0
- /package/icon/{index.d.ts → types/icon.d.ts} +0 -0
- /package/label/{index.d.ts → types/label.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,95 @@
|
|
|
1
|
+
import * as i1 from '@spartan-ng/brain/dialog';
|
|
2
|
+
import { BrnDialog, BrnDialogOptions, BrnDialogRef } from '@spartan-ng/brain/dialog';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { TemplateRef } from '@angular/core';
|
|
5
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
6
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
7
|
+
import { ClassValue } from 'clsx';
|
|
8
|
+
|
|
9
|
+
declare class HlmDialog extends BrnDialog {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialog, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDialog, "hlm-dialog", ["hlmDialog"], {}, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class HlmDialogClose {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogClose, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogClose, "button[hlmDialogClose]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDialogClose; inputs: {}; outputs: {}; }]>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class HlmDialogContent {
|
|
20
|
+
private readonly _dialogRef;
|
|
21
|
+
private readonly _dialogContext;
|
|
22
|
+
readonly showCloseButton: i0.InputSignalWithTransform<boolean, BooleanInput>;
|
|
23
|
+
readonly state: i0.Signal<i1.BrnDialogState>;
|
|
24
|
+
readonly component: ComponentType<unknown> | undefined;
|
|
25
|
+
private readonly _dynamicComponentClass;
|
|
26
|
+
constructor();
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogContent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDialogContent, "hlm-dialog-content", never, { "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class HlmDialogDescription {
|
|
32
|
+
constructor();
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogDescription, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogDescription, "[hlmDialogDescription]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDialogDescription; inputs: {}; outputs: {}; }]>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class HlmDialogFooter {
|
|
38
|
+
constructor();
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogFooter, never>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogFooter, "[hlmDialogFooter],hlm-dialog-footer", never, {}, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class HlmDialogHeader {
|
|
44
|
+
constructor();
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogHeader, never>;
|
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogHeader, "[hlmDialogHeader],hlm-dialog-header", never, {}, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare const hlmDialogOverlayClass: string;
|
|
50
|
+
declare class HlmDialogOverlay {
|
|
51
|
+
private readonly _classSettable;
|
|
52
|
+
readonly userClass: i0.InputSignal<ClassValue>;
|
|
53
|
+
protected readonly _computedClass: i0.Signal<string>;
|
|
54
|
+
constructor();
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogOverlay, never>;
|
|
56
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogOverlay, "[hlmDialogOverlay],hlm-dialog-overlay", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnDialogOverlay; inputs: {}; outputs: {}; }]>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare class HlmDialogPortal {
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogPortal, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogPortal, "[hlmDialogPortal]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDialogContent; inputs: { "context": "context"; "class": "class"; }; outputs: {}; }]>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class HlmDialogTitle {
|
|
65
|
+
constructor();
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogTitle, never>;
|
|
67
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogTitle, "[hlmDialogTitle]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDialogTitle; inputs: {}; outputs: {}; }]>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class HlmDialogTrigger {
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogTrigger, never>;
|
|
72
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogTrigger, "button[hlmDialogTrigger],button[hlmDialogTriggerFor]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDialogTrigger; inputs: { "id": "id"; "brnDialogTriggerFor": "hlmDialogTriggerFor"; "type": "type"; }; outputs: {}; }]>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type HlmDialogOptions<DialogContext = unknown> = BrnDialogOptions & {
|
|
76
|
+
contentClass?: string;
|
|
77
|
+
showCloseButton?: boolean;
|
|
78
|
+
context?: DialogContext;
|
|
79
|
+
};
|
|
80
|
+
declare class HlmDialogService {
|
|
81
|
+
private readonly _brnDialogService;
|
|
82
|
+
open<TResult = unknown, TContext = unknown>(component: ComponentType<unknown> | TemplateRef<unknown>, options?: Partial<HlmDialogOptions<TContext>>): BrnDialogRef<TResult>;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogService, never>;
|
|
84
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HlmDialogService>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare const HlmDialogImports: readonly [typeof HlmDialog, typeof HlmDialogContent, typeof HlmDialogDescription, typeof HlmDialogFooter, typeof HlmDialogHeader, typeof HlmDialogOverlay, typeof HlmDialogPortal, typeof HlmDialogTitle, typeof HlmDialogTrigger, typeof HlmDialogClose];
|
|
88
|
+
declare class HlmDialogModule {
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogModule, never>;
|
|
90
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmDialogModule, never, [typeof HlmDialog, typeof HlmDialogContent, typeof HlmDialogDescription, typeof HlmDialogFooter, typeof HlmDialogHeader, typeof HlmDialogOverlay, typeof HlmDialogPortal, typeof HlmDialogTitle, typeof HlmDialogTrigger, typeof HlmDialogClose], [typeof HlmDialog, typeof HlmDialogContent, typeof HlmDialogDescription, typeof HlmDialogFooter, typeof HlmDialogHeader, typeof HlmDialogOverlay, typeof HlmDialogPortal, typeof HlmDialogTitle, typeof HlmDialogTrigger, typeof HlmDialogClose]>;
|
|
91
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HlmDialogModule>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { HlmDialog, HlmDialogClose, HlmDialogContent, HlmDialogDescription, HlmDialogFooter, HlmDialogHeader, HlmDialogImports, HlmDialogModule, HlmDialogOverlay, HlmDialogPortal, HlmDialogService, HlmDialogTitle, HlmDialogTrigger, hlmDialogOverlayClass };
|
|
95
|
+
export type { HlmDialogOptions };
|
package/drawer/README.md
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, computed, effect, untracked, Directive, forwardRef, ChangeDetectionStrategy, Component, signal, NgModule } from '@angular/core';
|
|
3
|
+
import { BrnDialog, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';
|
|
4
|
+
import * as i1 from '@spartan-ng/brain/drawer';
|
|
5
|
+
import { BrnDrawerOverlay, BrnDrawer, BrnDrawerClose, BrnDrawerHandle, BrnDrawerDescription, BrnDrawerContent, BrnDrawerTitle, BrnDrawerTrigger } from '@spartan-ng/brain/drawer';
|
|
6
|
+
import { injectCustomClassSettable, injectExposesStateProvider, injectExposedSideProvider } from '@spartan-ng/brain/core';
|
|
7
|
+
import { hlm, classes } from '@egose/shadcn-theme-ng/utils';
|
|
8
|
+
|
|
9
|
+
class HlmDrawerOverlay {
|
|
10
|
+
_classSettable = injectCustomClassSettable({ optional: true, host: true });
|
|
11
|
+
userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
|
|
12
|
+
_computedClass = computed(() => hlm('data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0', this.userClass()), /* @ts-ignore */
|
|
13
|
+
...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
|
|
14
|
+
constructor() {
|
|
15
|
+
effect(() => {
|
|
16
|
+
const classValue = this._computedClass();
|
|
17
|
+
untracked(() => this._classSettable?.setClassToCustomElement(classValue));
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmDrawerOverlay, isStandalone: true, selector: "[hlmDrawerOverlay],hlm-drawer-overlay", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1.BrnDrawerOverlay }], ngImport: i0 });
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerOverlay, decorators: [{
|
|
24
|
+
type: Directive,
|
|
25
|
+
args: [{
|
|
26
|
+
selector: '[hlmDrawerOverlay],hlm-drawer-overlay',
|
|
27
|
+
hostDirectives: [BrnDrawerOverlay],
|
|
28
|
+
}]
|
|
29
|
+
}], ctorParameters: () => [], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
30
|
+
|
|
31
|
+
class HlmDrawer extends BrnDrawer {
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawer, isStandalone: true, selector: "hlm-drawer", providers: [
|
|
34
|
+
{
|
|
35
|
+
provide: BrnDialog,
|
|
36
|
+
useExisting: forwardRef(() => HlmDrawer),
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
provide: BrnDrawer,
|
|
40
|
+
useExisting: forwardRef(() => HlmDrawer),
|
|
41
|
+
},
|
|
42
|
+
provideBrnDialogDefaultOptions({
|
|
43
|
+
// add custom options here
|
|
44
|
+
}),
|
|
45
|
+
], exportAs: ["hlmDrawer"], usesInheritance: true, ngImport: i0, template: `
|
|
46
|
+
<hlm-drawer-overlay />
|
|
47
|
+
<ng-content />
|
|
48
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: HlmDrawerOverlay, selector: "[hlmDrawerOverlay],hlm-drawer-overlay", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawer, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{
|
|
53
|
+
selector: 'hlm-drawer',
|
|
54
|
+
exportAs: 'hlmDrawer',
|
|
55
|
+
imports: [HlmDrawerOverlay],
|
|
56
|
+
providers: [
|
|
57
|
+
{
|
|
58
|
+
provide: BrnDialog,
|
|
59
|
+
useExisting: forwardRef(() => HlmDrawer),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
provide: BrnDrawer,
|
|
63
|
+
useExisting: forwardRef(() => HlmDrawer),
|
|
64
|
+
},
|
|
65
|
+
provideBrnDialogDefaultOptions({
|
|
66
|
+
// add custom options here
|
|
67
|
+
}),
|
|
68
|
+
],
|
|
69
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
70
|
+
template: `
|
|
71
|
+
<hlm-drawer-overlay />
|
|
72
|
+
<ng-content />
|
|
73
|
+
`,
|
|
74
|
+
}]
|
|
75
|
+
}] });
|
|
76
|
+
|
|
77
|
+
class HlmDrawerClose {
|
|
78
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
79
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerClose, isStandalone: true, selector: "button[hlmDrawerClose]", host: { attributes: { "data-slot": "drawer-close" } }, hostDirectives: [{ directive: i1.BrnDrawerClose }], ngImport: i0 });
|
|
80
|
+
}
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerClose, decorators: [{
|
|
82
|
+
type: Directive,
|
|
83
|
+
args: [{
|
|
84
|
+
selector: 'button[hlmDrawerClose]',
|
|
85
|
+
hostDirectives: [BrnDrawerClose],
|
|
86
|
+
host: { 'data-slot': 'drawer-close' },
|
|
87
|
+
}]
|
|
88
|
+
}] });
|
|
89
|
+
|
|
90
|
+
class HlmDrawerContent {
|
|
91
|
+
_stateProvider = injectExposesStateProvider({ host: true });
|
|
92
|
+
_sideProvider = injectExposedSideProvider({ host: true });
|
|
93
|
+
state = this._stateProvider.state ?? signal('closed');
|
|
94
|
+
constructor() {
|
|
95
|
+
classes(() => [
|
|
96
|
+
'bg-background fixed z-50 flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm',
|
|
97
|
+
'group/drawer-content',
|
|
98
|
+
'data-open:animate-in data-closed:animate-out',
|
|
99
|
+
'data-[vaul-drawer-direction=bottom]:data-closed:slide-out-to-bottom data-[vaul-drawer-direction=bottom]:data-open:slide-in-from-bottom',
|
|
100
|
+
'data-[vaul-drawer-direction=top]:data-closed:slide-out-to-top data-[vaul-drawer-direction=top]:data-open:slide-in-from-top',
|
|
101
|
+
'data-[vaul-drawer-direction=left]:data-closed:slide-out-to-left data-[vaul-drawer-direction=left]:data-open:slide-in-from-left',
|
|
102
|
+
'data-[vaul-drawer-direction=right]:data-closed:slide-out-to-right data-[vaul-drawer-direction=right]:data-open:slide-in-from-right',
|
|
103
|
+
]);
|
|
104
|
+
}
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
106
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerContent, isStandalone: true, selector: "hlm-drawer-content", host: { attributes: { "data-slot": "drawer-content" }, properties: { "attr.data-vaul-drawer-direction": "_sideProvider.side()", "attr.data-state": "state()" } }, hostDirectives: [{ directive: i1.BrnDrawerHandle, inputs: ["closeThreshold", "closeThreshold"] }], ngImport: i0, template: `
|
|
107
|
+
<div
|
|
108
|
+
class="bg-muted mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"
|
|
109
|
+
></div>
|
|
110
|
+
<ng-content />
|
|
111
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
112
|
+
}
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerContent, decorators: [{
|
|
114
|
+
type: Component,
|
|
115
|
+
args: [{
|
|
116
|
+
selector: 'hlm-drawer-content',
|
|
117
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
118
|
+
hostDirectives: [{ directive: BrnDrawerHandle, inputs: ['closeThreshold'] }],
|
|
119
|
+
host: {
|
|
120
|
+
'data-slot': 'drawer-content',
|
|
121
|
+
'[attr.data-vaul-drawer-direction]': '_sideProvider.side()',
|
|
122
|
+
'[attr.data-state]': 'state()',
|
|
123
|
+
},
|
|
124
|
+
template: `
|
|
125
|
+
<div
|
|
126
|
+
class="bg-muted mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"
|
|
127
|
+
></div>
|
|
128
|
+
<ng-content />
|
|
129
|
+
`,
|
|
130
|
+
}]
|
|
131
|
+
}], ctorParameters: () => [] });
|
|
132
|
+
|
|
133
|
+
class HlmDrawerDescription {
|
|
134
|
+
constructor() {
|
|
135
|
+
classes(() => 'text-muted-foreground text-sm');
|
|
136
|
+
}
|
|
137
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
138
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerDescription, isStandalone: true, selector: "[hlmDrawerDescription]", host: { attributes: { "data-slot": "drawer-description" } }, hostDirectives: [{ directive: i1.BrnDrawerDescription }], ngImport: i0 });
|
|
139
|
+
}
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerDescription, decorators: [{
|
|
141
|
+
type: Directive,
|
|
142
|
+
args: [{
|
|
143
|
+
selector: '[hlmDrawerDescription]',
|
|
144
|
+
hostDirectives: [BrnDrawerDescription],
|
|
145
|
+
host: { 'data-slot': 'drawer-description' },
|
|
146
|
+
}]
|
|
147
|
+
}], ctorParameters: () => [] });
|
|
148
|
+
|
|
149
|
+
class HlmDrawerFooter {
|
|
150
|
+
constructor() {
|
|
151
|
+
classes(() => 'gap-2 p-4 mt-auto flex flex-col');
|
|
152
|
+
}
|
|
153
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
154
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerFooter, isStandalone: true, selector: "[hlmDrawerFooter],hlm-drawer-footer", host: { attributes: { "data-slot": "drawer-footer" } }, ngImport: i0 });
|
|
155
|
+
}
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerFooter, decorators: [{
|
|
157
|
+
type: Directive,
|
|
158
|
+
args: [{
|
|
159
|
+
selector: '[hlmDrawerFooter],hlm-drawer-footer',
|
|
160
|
+
host: { 'data-slot': 'drawer-footer' },
|
|
161
|
+
}]
|
|
162
|
+
}], ctorParameters: () => [] });
|
|
163
|
+
|
|
164
|
+
class HlmDrawerHeader {
|
|
165
|
+
constructor() {
|
|
166
|
+
classes(() => 'gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start flex flex-col');
|
|
167
|
+
}
|
|
168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
169
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerHeader, isStandalone: true, selector: "[hlmDrawerHeader],hlm-drawer-header", host: { attributes: { "data-slot": "drawer-header" } }, ngImport: i0 });
|
|
170
|
+
}
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerHeader, decorators: [{
|
|
172
|
+
type: Directive,
|
|
173
|
+
args: [{
|
|
174
|
+
selector: '[hlmDrawerHeader],hlm-drawer-header',
|
|
175
|
+
host: { 'data-slot': 'drawer-header' },
|
|
176
|
+
}]
|
|
177
|
+
}], ctorParameters: () => [] });
|
|
178
|
+
|
|
179
|
+
class HlmDrawerPortal {
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
181
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerPortal, isStandalone: true, selector: "[hlmDrawerPortal]", hostDirectives: [{ directive: i1.BrnDrawerContent, inputs: ["context", "context", "class", "class"] }], ngImport: i0 });
|
|
182
|
+
}
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerPortal, decorators: [{
|
|
184
|
+
type: Directive,
|
|
185
|
+
args: [{
|
|
186
|
+
selector: '[hlmDrawerPortal]',
|
|
187
|
+
hostDirectives: [{ directive: BrnDrawerContent, inputs: ['context', 'class'] }],
|
|
188
|
+
}]
|
|
189
|
+
}] });
|
|
190
|
+
|
|
191
|
+
class HlmDrawerTitle {
|
|
192
|
+
constructor() {
|
|
193
|
+
classes(() => 'text-foreground font-medium');
|
|
194
|
+
}
|
|
195
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
196
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerTitle, isStandalone: true, selector: "[hlmDrawerTitle]", host: { attributes: { "data-slot": "drawer-title" } }, hostDirectives: [{ directive: i1.BrnDrawerTitle }], ngImport: i0 });
|
|
197
|
+
}
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerTitle, decorators: [{
|
|
199
|
+
type: Directive,
|
|
200
|
+
args: [{
|
|
201
|
+
selector: '[hlmDrawerTitle]',
|
|
202
|
+
hostDirectives: [BrnDrawerTitle],
|
|
203
|
+
host: { 'data-slot': 'drawer-title' },
|
|
204
|
+
}]
|
|
205
|
+
}], ctorParameters: () => [] });
|
|
206
|
+
|
|
207
|
+
class HlmDrawerTrigger {
|
|
208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
209
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmDrawerTrigger, isStandalone: true, selector: "button[hlmDrawerTrigger]", host: { attributes: { "data-slot": "drawer-trigger" } }, hostDirectives: [{ directive: i1.BrnDrawerTrigger, inputs: ["id", "id", "direction", "direction", "type", "type"] }], ngImport: i0 });
|
|
210
|
+
}
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerTrigger, decorators: [{
|
|
212
|
+
type: Directive,
|
|
213
|
+
args: [{
|
|
214
|
+
selector: 'button[hlmDrawerTrigger]',
|
|
215
|
+
hostDirectives: [{ directive: BrnDrawerTrigger, inputs: ['id', 'direction', 'type'] }],
|
|
216
|
+
host: { 'data-slot': 'drawer-trigger' },
|
|
217
|
+
}]
|
|
218
|
+
}] });
|
|
219
|
+
|
|
220
|
+
/*
|
|
221
|
+
* Public API Surface of drawer
|
|
222
|
+
*/
|
|
223
|
+
const HlmDrawerImports = [
|
|
224
|
+
HlmDrawer,
|
|
225
|
+
HlmDrawerClose,
|
|
226
|
+
HlmDrawerContent,
|
|
227
|
+
HlmDrawerDescription,
|
|
228
|
+
HlmDrawerFooter,
|
|
229
|
+
HlmDrawerHeader,
|
|
230
|
+
HlmDrawerOverlay,
|
|
231
|
+
HlmDrawerPortal,
|
|
232
|
+
HlmDrawerTitle,
|
|
233
|
+
HlmDrawerTrigger,
|
|
234
|
+
];
|
|
235
|
+
class HlmDrawerModule {
|
|
236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
237
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerModule, imports: [HlmDrawer,
|
|
238
|
+
HlmDrawerClose,
|
|
239
|
+
HlmDrawerContent,
|
|
240
|
+
HlmDrawerDescription,
|
|
241
|
+
HlmDrawerFooter,
|
|
242
|
+
HlmDrawerHeader,
|
|
243
|
+
HlmDrawerOverlay,
|
|
244
|
+
HlmDrawerPortal,
|
|
245
|
+
HlmDrawerTitle,
|
|
246
|
+
HlmDrawerTrigger], exports: [HlmDrawer,
|
|
247
|
+
HlmDrawerClose,
|
|
248
|
+
HlmDrawerContent,
|
|
249
|
+
HlmDrawerDescription,
|
|
250
|
+
HlmDrawerFooter,
|
|
251
|
+
HlmDrawerHeader,
|
|
252
|
+
HlmDrawerOverlay,
|
|
253
|
+
HlmDrawerPortal,
|
|
254
|
+
HlmDrawerTitle,
|
|
255
|
+
HlmDrawerTrigger] });
|
|
256
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerModule });
|
|
257
|
+
}
|
|
258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmDrawerModule, decorators: [{
|
|
259
|
+
type: NgModule,
|
|
260
|
+
args: [{
|
|
261
|
+
imports: [...HlmDrawerImports],
|
|
262
|
+
exports: [...HlmDrawerImports],
|
|
263
|
+
}]
|
|
264
|
+
}] });
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Generated bundle index. Do not edit.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
export { HlmDrawer, HlmDrawerClose, HlmDrawerContent, HlmDrawerDescription, HlmDrawerFooter, HlmDrawerHeader, HlmDrawerImports, HlmDrawerModule, HlmDrawerOverlay, HlmDrawerPortal, HlmDrawerTitle, HlmDrawerTrigger };
|
|
271
|
+
//# sourceMappingURL=drawer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.mjs","sources":["../../../projects/drawer/src/lib/hlm-drawer-overlay.ts","../../../projects/drawer/src/lib/hlm-drawer.ts","../../../projects/drawer/src/lib/hlm-drawer-close.ts","../../../projects/drawer/src/lib/hlm-drawer-content.ts","../../../projects/drawer/src/lib/hlm-drawer-description.ts","../../../projects/drawer/src/lib/hlm-drawer-footer.ts","../../../projects/drawer/src/lib/hlm-drawer-header.ts","../../../projects/drawer/src/lib/hlm-drawer-portal.ts","../../../projects/drawer/src/lib/hlm-drawer-title.ts","../../../projects/drawer/src/lib/hlm-drawer-trigger.ts","../../../projects/drawer/src/public-api.ts","../../../projects/drawer/src/drawer.ts"],"sourcesContent":["import { Directive, computed, effect, input, untracked } from '@angular/core';\nimport { injectCustomClassSettable } from '@spartan-ng/brain/core';\nimport { BrnDrawerOverlay } from '@spartan-ng/brain/drawer';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmDrawerOverlay],hlm-drawer-overlay',\n hostDirectives: [BrnDrawerOverlay],\n})\nexport class HlmDrawerOverlay {\n private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0',\n this.userClass(),\n ),\n );\n\n constructor() {\n effect(() => {\n const classValue = this._computedClass();\n untracked(() => this._classSettable?.setClassToCustomElement(classValue));\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport { BrnDialog, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';\nimport { BrnDrawer } from '@spartan-ng/brain/drawer';\nimport { HlmDrawerOverlay } from './hlm-drawer-overlay';\n\n@Component({\n selector: 'hlm-drawer',\n exportAs: 'hlmDrawer',\n imports: [HlmDrawerOverlay],\n providers: [\n {\n provide: BrnDialog,\n useExisting: forwardRef(() => HlmDrawer),\n },\n {\n provide: BrnDrawer,\n useExisting: forwardRef(() => HlmDrawer),\n },\n provideBrnDialogDefaultOptions({\n // add custom options here\n }),\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <hlm-drawer-overlay />\n <ng-content />\n `,\n})\nexport class HlmDrawer extends BrnDrawer {}\n","import { Directive } from '@angular/core';\nimport { BrnDrawerClose } from '@spartan-ng/brain/drawer';\n\n@Directive({\n selector: 'button[hlmDrawerClose]',\n hostDirectives: [BrnDrawerClose],\n host: { 'data-slot': 'drawer-close' },\n})\nexport class HlmDrawerClose {}\n","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';\nimport { BrnDrawerHandle } from '@spartan-ng/brain/drawer';\nimport { classes } from '@egose/shadcn-theme-ng/utils';\n\n@Component({\n selector: 'hlm-drawer-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [{ directive: BrnDrawerHandle, inputs: ['closeThreshold'] }],\n host: {\n 'data-slot': 'drawer-content',\n '[attr.data-vaul-drawer-direction]': '_sideProvider.side()',\n '[attr.data-state]': 'state()',\n },\n template: `\n <div\n class=\"bg-muted mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\"\n ></div>\n <ng-content />\n `,\n})\nexport class HlmDrawerContent {\n private readonly _stateProvider = injectExposesStateProvider({ host: true });\n protected readonly _sideProvider = injectExposedSideProvider({ host: true });\n public readonly state = this._stateProvider.state ?? signal('closed');\n\n constructor() {\n classes(() => [\n 'bg-background fixed z-50 flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm',\n 'group/drawer-content',\n 'data-open:animate-in data-closed:animate-out',\n 'data-[vaul-drawer-direction=bottom]:data-closed:slide-out-to-bottom data-[vaul-drawer-direction=bottom]:data-open:slide-in-from-bottom',\n 'data-[vaul-drawer-direction=top]:data-closed:slide-out-to-top data-[vaul-drawer-direction=top]:data-open:slide-in-from-top',\n 'data-[vaul-drawer-direction=left]:data-closed:slide-out-to-left data-[vaul-drawer-direction=left]:data-open:slide-in-from-left',\n 'data-[vaul-drawer-direction=right]:data-closed:slide-out-to-right data-[vaul-drawer-direction=right]:data-open:slide-in-from-right',\n ]);\n }\n}\n","import { Directive } from '@angular/core';\nimport { BrnDrawerDescription } from '@spartan-ng/brain/drawer';\nimport { classes } from '@egose/shadcn-theme-ng/utils';\n\n@Directive({\n selector: '[hlmDrawerDescription]',\n hostDirectives: [BrnDrawerDescription],\n host: { 'data-slot': 'drawer-description' },\n})\nexport class HlmDrawerDescription {\n constructor() {\n classes(() => 'text-muted-foreground text-sm');\n }\n}\n","import { Directive } from '@angular/core';\nimport { classes } from '@egose/shadcn-theme-ng/utils';\n\n@Directive({\n selector: '[hlmDrawerFooter],hlm-drawer-footer',\n host: { 'data-slot': 'drawer-footer' },\n})\nexport class HlmDrawerFooter {\n constructor() {\n classes(() => 'gap-2 p-4 mt-auto flex flex-col');\n }\n}\n","import { Directive } from '@angular/core';\nimport { classes } from '@egose/shadcn-theme-ng/utils';\n\n@Directive({\n selector: '[hlmDrawerHeader],hlm-drawer-header',\n host: { 'data-slot': 'drawer-header' },\n})\nexport class HlmDrawerHeader {\n constructor() {\n classes(\n () =>\n 'gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start flex flex-col',\n );\n }\n}\n","import { Directive } from '@angular/core';\nimport { BrnDrawerContent } from '@spartan-ng/brain/drawer';\n\n@Directive({\n selector: '[hlmDrawerPortal]',\n hostDirectives: [{ directive: BrnDrawerContent, inputs: ['context', 'class'] }],\n})\nexport class HlmDrawerPortal {}\n","import { Directive } from '@angular/core';\nimport { BrnDrawerTitle } from '@spartan-ng/brain/drawer';\nimport { classes } from '@egose/shadcn-theme-ng/utils';\n\n@Directive({\n selector: '[hlmDrawerTitle]',\n hostDirectives: [BrnDrawerTitle],\n host: { 'data-slot': 'drawer-title' },\n})\nexport class HlmDrawerTitle {\n constructor() {\n classes(() => 'text-foreground font-medium');\n }\n}\n","import { Directive } from '@angular/core';\nimport { BrnDrawerTrigger } from '@spartan-ng/brain/drawer';\n\n@Directive({\n selector: 'button[hlmDrawerTrigger]',\n hostDirectives: [{ directive: BrnDrawerTrigger, inputs: ['id', 'direction', 'type'] }],\n host: { 'data-slot': 'drawer-trigger' },\n})\nexport class HlmDrawerTrigger {}\n","/*\n * Public API Surface of drawer\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmDrawer } from './lib/hlm-drawer';\nimport { HlmDrawerClose } from './lib/hlm-drawer-close';\nimport { HlmDrawerContent } from './lib/hlm-drawer-content';\nimport { HlmDrawerDescription } from './lib/hlm-drawer-description';\nimport { HlmDrawerFooter } from './lib/hlm-drawer-footer';\nimport { HlmDrawerHeader } from './lib/hlm-drawer-header';\nimport { HlmDrawerOverlay } from './lib/hlm-drawer-overlay';\nimport { HlmDrawerPortal } from './lib/hlm-drawer-portal';\nimport { HlmDrawerTitle } from './lib/hlm-drawer-title';\nimport { HlmDrawerTrigger } from './lib/hlm-drawer-trigger';\n\nexport * from './lib/hlm-drawer';\nexport * from './lib/hlm-drawer-close';\nexport * from './lib/hlm-drawer-content';\nexport * from './lib/hlm-drawer-description';\nexport * from './lib/hlm-drawer-footer';\nexport * from './lib/hlm-drawer-header';\nexport * from './lib/hlm-drawer-overlay';\nexport * from './lib/hlm-drawer-portal';\nexport * from './lib/hlm-drawer-title';\nexport * from './lib/hlm-drawer-trigger';\n\nexport const HlmDrawerImports = [\n HlmDrawer,\n HlmDrawerClose,\n HlmDrawerContent,\n HlmDrawerDescription,\n HlmDrawerFooter,\n HlmDrawerHeader,\n HlmDrawerOverlay,\n HlmDrawerPortal,\n HlmDrawerTitle,\n HlmDrawerTrigger,\n] as const;\n\n@NgModule({\n imports: [...HlmDrawerImports],\n exports: [...HlmDrawerImports],\n})\nexport class HlmDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAUa,gBAAgB,CAAA;AACV,IAAA,cAAc,GAAG,yBAAyB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC3E,SAAS,GAAG,KAAK,CAAa,EAAE,iFAAI,KAAK,EAAE,OAAO,EAAA,CAAG;AAClD,IAAA,cAAc,GAAG,QAAQ,CAAC,MAC3C,GAAG,CACD,yOAAyO,EACzO,IAAI,CAAC,SAAS,EAAE,CACjB;uFACF;AAED,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE;AACxC,YAAA,SAAS,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAC;AAC3E,QAAA,CAAC,CAAC;IACJ;uGAfW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAA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AAA,gBAAgB,aAThB,SAAS;YACT,cAAc;YACd,gBAAgB;YAChB,oBAAoB;YACpB,eAAe;YACf,eAAe;YACf,gBAAgB;YAChB,eAAe;YACf,cAAc;YACd,gBAAgB,CAAA,EAAA,CAAA;wGAOL,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC;AAC9B,oBAAA,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC;AAC/B,iBAAA;;;AC5CD;;AAEG;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "drawer",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^22.0.0",
|
|
6
|
+
"@angular/core": "^22.0.0",
|
|
7
|
+
"@spartan-ng/brain": "^1.1.1"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"module": "fesm2022/drawer.mjs",
|
|
14
|
+
"typings": "types/drawer.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": {
|
|
17
|
+
"default": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./types/drawer.d.ts",
|
|
21
|
+
"default": "./fesm2022/drawer.mjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"type": "module"
|
|
25
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as i1 from '@spartan-ng/brain/drawer';
|
|
2
|
+
import { BrnDrawer } from '@spartan-ng/brain/drawer';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import * as _spartan_ng_brain_core from '@spartan-ng/brain/core';
|
|
5
|
+
import { ClassValue } from 'clsx';
|
|
6
|
+
|
|
7
|
+
declare class HlmDrawer extends BrnDrawer {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawer, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDrawer, "hlm-drawer", ["hlmDrawer"], {}, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class HlmDrawerClose {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerClose, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerClose, "button[hlmDrawerClose]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDrawerClose; inputs: {}; outputs: {}; }]>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class HlmDrawerContent {
|
|
18
|
+
private readonly _stateProvider;
|
|
19
|
+
protected readonly _sideProvider: _spartan_ng_brain_core.ExposesSide;
|
|
20
|
+
readonly state: i0.Signal<"closed" | "open">;
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerContent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDrawerContent, "hlm-drawer-content", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.BrnDrawerHandle; inputs: { "closeThreshold": "closeThreshold"; }; outputs: {}; }]>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare class HlmDrawerDescription {
|
|
27
|
+
constructor();
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerDescription, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerDescription, "[hlmDrawerDescription]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDrawerDescription; inputs: {}; outputs: {}; }]>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class HlmDrawerFooter {
|
|
33
|
+
constructor();
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerFooter, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerFooter, "[hlmDrawerFooter],hlm-drawer-footer", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class HlmDrawerHeader {
|
|
39
|
+
constructor();
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerHeader, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerHeader, "[hlmDrawerHeader],hlm-drawer-header", never, {}, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class HlmDrawerOverlay {
|
|
45
|
+
private readonly _classSettable;
|
|
46
|
+
readonly userClass: i0.InputSignal<ClassValue>;
|
|
47
|
+
protected readonly _computedClass: i0.Signal<string>;
|
|
48
|
+
constructor();
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerOverlay, never>;
|
|
50
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerOverlay, "[hlmDrawerOverlay],hlm-drawer-overlay", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnDrawerOverlay; inputs: {}; outputs: {}; }]>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare class HlmDrawerPortal {
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerPortal, never>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerPortal, "[hlmDrawerPortal]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDrawerContent; inputs: { "context": "context"; "class": "class"; }; outputs: {}; }]>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare class HlmDrawerTitle {
|
|
59
|
+
constructor();
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerTitle, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerTitle, "[hlmDrawerTitle]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDrawerTitle; inputs: {}; outputs: {}; }]>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class HlmDrawerTrigger {
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerTrigger, never>;
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDrawerTrigger, "button[hlmDrawerTrigger]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnDrawerTrigger; inputs: { "id": "id"; "direction": "direction"; "type": "type"; }; outputs: {}; }]>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare const HlmDrawerImports: readonly [typeof HlmDrawer, typeof HlmDrawerClose, typeof HlmDrawerContent, typeof HlmDrawerDescription, typeof HlmDrawerFooter, typeof HlmDrawerHeader, typeof HlmDrawerOverlay, typeof HlmDrawerPortal, typeof HlmDrawerTitle, typeof HlmDrawerTrigger];
|
|
70
|
+
declare class HlmDrawerModule {
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDrawerModule, never>;
|
|
72
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmDrawerModule, never, [typeof HlmDrawer, typeof HlmDrawerClose, typeof HlmDrawerContent, typeof HlmDrawerDescription, typeof HlmDrawerFooter, typeof HlmDrawerHeader, typeof HlmDrawerOverlay, typeof HlmDrawerPortal, typeof HlmDrawerTitle, typeof HlmDrawerTrigger], [typeof HlmDrawer, typeof HlmDrawerClose, typeof HlmDrawerContent, typeof HlmDrawerDescription, typeof HlmDrawerFooter, typeof HlmDrawerHeader, typeof HlmDrawerOverlay, typeof HlmDrawerPortal, typeof HlmDrawerTitle, typeof HlmDrawerTrigger]>;
|
|
73
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HlmDrawerModule>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { HlmDrawer, HlmDrawerClose, HlmDrawerContent, HlmDrawerDescription, HlmDrawerFooter, HlmDrawerHeader, HlmDrawerImports, HlmDrawerModule, HlmDrawerOverlay, HlmDrawerPortal, HlmDrawerTitle, HlmDrawerTrigger };
|