@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,90 @@
|
|
|
1
|
+
import * as i1$2 from '@spartan-ng/brain/alert-dialog';
|
|
2
|
+
import { BrnAlertDialog } from '@spartan-ng/brain/alert-dialog';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import * as i1 from '@egose/shadcn-theme-ng/button';
|
|
5
|
+
import * as i1$1 from '@spartan-ng/brain/dialog';
|
|
6
|
+
import { ClassValue } from 'clsx';
|
|
7
|
+
|
|
8
|
+
declare class HlmAlertDialog extends BrnAlertDialog {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialog, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HlmAlertDialog, "hlm-alert-dialog", ["hlmAlertDialog"], {}, {}, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class HlmAlertDialogAction {
|
|
14
|
+
readonly type: i0.InputSignal<"button" | "submit" | "reset">;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogAction, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogAction, "button[hlmAlertDialogAction]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmBtn; inputs: { "variant": "variant"; "size": "size"; }; outputs: {}; }]>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class HlmAlertDialogCancel {
|
|
20
|
+
readonly type: i0.InputSignal<"button" | "submit" | "reset">;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogCancel, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogCancel, "button[hlmAlertDialogCancel]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.BrnDialogClose; inputs: {}; outputs: {}; }, { directive: typeof i1.HlmBtn; inputs: { "variant": "variant"; "size": "size"; }; outputs: {}; }]>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class HlmAlertDialogContent {
|
|
26
|
+
private readonly _stateProvider;
|
|
27
|
+
readonly state: i0.Signal<"open" | "closed">;
|
|
28
|
+
readonly size: i0.InputSignal<"default" | "sm">;
|
|
29
|
+
constructor();
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogContent, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogContent, "[hlmAlertDialogContent],hlm-alert-dialog-content", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare class HlmAlertDialogDescription {
|
|
35
|
+
constructor();
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogDescription, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogDescription, "[hlmAlertDialogDescription]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogDescription; inputs: {}; outputs: {}; }]>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class HlmAlertDialogFooter {
|
|
41
|
+
constructor();
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogFooter, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogFooter, "[hlmAlertDialogFooter],hlm-alert-dialog-footer", never, {}, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class HlmAlertDialogHeader {
|
|
47
|
+
constructor();
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogHeader, never>;
|
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogHeader, "[hlmAlertDialogHeader],hlm-alert-dialog-header", never, {}, {}, never, never, true, never>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class HlmAlertDialogMedia {
|
|
53
|
+
constructor();
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogMedia, never>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogMedia, "[hlmAlertDialogMedia],hlm-alert-dialog-media", never, {}, {}, never, never, true, never>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare class HlmAlertDialogOverlay {
|
|
59
|
+
private readonly _classSettable;
|
|
60
|
+
readonly userClass: i0.InputSignal<ClassValue>;
|
|
61
|
+
protected readonly _computedClass: i0.Signal<string>;
|
|
62
|
+
constructor();
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogOverlay, never>;
|
|
64
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogOverlay, "[hlmAlertDialogOverlay],hlm-alert-dialog-overlay", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogOverlay; inputs: {}; outputs: {}; }]>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare class HlmAlertDialogPortal {
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogPortal, never>;
|
|
69
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogPortal, "[hlmAlertDialogPortal]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogContent; inputs: { "context": "context"; "class": "class"; }; outputs: {}; }]>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare class HlmAlertDialogTitle {
|
|
73
|
+
constructor();
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogTitle, never>;
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogTitle, "[hlmAlertDialogTitle]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogTitle; inputs: {}; outputs: {}; }]>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class HlmAlertDialogTrigger {
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogTrigger, never>;
|
|
80
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogTrigger, "button[hlmAlertDialogTrigger],button[hlmAlertDialogTriggerFor]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogTrigger; inputs: { "id": "id"; "brnAlertDialogTriggerFor": "hlmAlertDialogTriggerFor"; "type": "type"; }; outputs: {}; }]>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare const HlmAlertDialogImports: readonly [typeof HlmAlertDialog, typeof HlmAlertDialogAction, typeof HlmAlertDialogCancel, typeof HlmAlertDialogContent, typeof HlmAlertDialogDescription, typeof HlmAlertDialogFooter, typeof HlmAlertDialogHeader, typeof HlmAlertDialogMedia, typeof HlmAlertDialogOverlay, typeof HlmAlertDialogPortal, typeof HlmAlertDialogTitle, typeof HlmAlertDialogTrigger];
|
|
84
|
+
declare class HlmAlertDialogModule {
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogModule, never>;
|
|
86
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmAlertDialogModule, never, [typeof HlmAlertDialog, typeof HlmAlertDialogAction, typeof HlmAlertDialogCancel, typeof HlmAlertDialogContent, typeof HlmAlertDialogDescription, typeof HlmAlertDialogFooter, typeof HlmAlertDialogHeader, typeof HlmAlertDialogMedia, typeof HlmAlertDialogOverlay, typeof HlmAlertDialogPortal, typeof HlmAlertDialogTitle, typeof HlmAlertDialogTrigger], [typeof HlmAlertDialog, typeof HlmAlertDialogAction, typeof HlmAlertDialogCancel, typeof HlmAlertDialogContent, typeof HlmAlertDialogDescription, typeof HlmAlertDialogFooter, typeof HlmAlertDialogHeader, typeof HlmAlertDialogMedia, typeof HlmAlertDialogOverlay, typeof HlmAlertDialogPortal, typeof HlmAlertDialogTitle, typeof HlmAlertDialogTrigger]>;
|
|
87
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HlmAlertDialogModule>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { HlmAlertDialog, HlmAlertDialogAction, HlmAlertDialogCancel, HlmAlertDialogContent, HlmAlertDialogDescription, HlmAlertDialogFooter, HlmAlertDialogHeader, HlmAlertDialogImports, HlmAlertDialogMedia, HlmAlertDialogModule, HlmAlertDialogOverlay, HlmAlertDialogPortal, HlmAlertDialogTitle, HlmAlertDialogTrigger };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Directive, NgModule } from '@angular/core';
|
|
3
|
+
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
4
|
+
import { classes } from '@egose/shadcn-theme-ng/utils';
|
|
5
|
+
|
|
6
|
+
const parseDividedString = (value) => {
|
|
7
|
+
if (typeof value !== 'string' || !value.includes('/'))
|
|
8
|
+
return value;
|
|
9
|
+
return value
|
|
10
|
+
.split('/')
|
|
11
|
+
.map((v) => Number.parseInt(v, 10))
|
|
12
|
+
.reduce((a, b) => a / b);
|
|
13
|
+
};
|
|
14
|
+
class HlmAspectRatio {
|
|
15
|
+
/**
|
|
16
|
+
* Aspect ratio of the element, defined as width / height.
|
|
17
|
+
*/
|
|
18
|
+
ratio = input(1, { ...(ngDevMode ? { debugName: "ratio" } : /* istanbul ignore next */ {}), alias: 'hlmAspectRatio',
|
|
19
|
+
transform: (value) => {
|
|
20
|
+
const coerced = coerceNumberProperty(parseDividedString(value));
|
|
21
|
+
return coerced <= 0 ? 1 : coerced;
|
|
22
|
+
} });
|
|
23
|
+
constructor() {
|
|
24
|
+
classes(() => 'relative aspect-(--ratio)');
|
|
25
|
+
}
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmAspectRatio, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmAspectRatio, isStandalone: true, selector: "[hlmAspectRatio]", inputs: { ratio: { classPropertyName: "ratio", publicName: "hlmAspectRatio", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "aspect-ratio" }, properties: { "style.--ratio": "ratio()" } }, ngImport: i0 });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmAspectRatio, decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: '[hlmAspectRatio]',
|
|
33
|
+
host: {
|
|
34
|
+
'data-slot': 'aspect-ratio',
|
|
35
|
+
'[style.--ratio]': 'ratio()',
|
|
36
|
+
},
|
|
37
|
+
}]
|
|
38
|
+
}], ctorParameters: () => [], propDecorators: { ratio: [{ type: i0.Input, args: [{ isSignal: true, alias: "hlmAspectRatio", required: false }] }] } });
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* Public API Surface of aspect-ratio
|
|
42
|
+
*/
|
|
43
|
+
const HlmAspectRatioImports = [HlmAspectRatio];
|
|
44
|
+
class HlmAspectRatioModule {
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmAspectRatioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
46
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmAspectRatioModule, imports: [HlmAspectRatio], exports: [HlmAspectRatio] });
|
|
47
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmAspectRatioModule });
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmAspectRatioModule, decorators: [{
|
|
50
|
+
type: NgModule,
|
|
51
|
+
args: [{
|
|
52
|
+
imports: [...HlmAspectRatioImports],
|
|
53
|
+
exports: [...HlmAspectRatioImports],
|
|
54
|
+
}]
|
|
55
|
+
}] });
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Generated bundle index. Do not edit.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export { HlmAspectRatio, HlmAspectRatioImports, HlmAspectRatioModule };
|
|
62
|
+
//# sourceMappingURL=aspect-ratio.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aspect-ratio.mjs","sources":["../../../projects/aspect-ratio/src/lib/hlm-aspect-ratio.ts","../../../projects/aspect-ratio/src/public-api.ts","../../../projects/aspect-ratio/src/aspect-ratio.ts"],"sourcesContent":["import { type NumberInput, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { Directive, input } from '@angular/core';\nimport { classes } from '@egose/shadcn-theme-ng/utils';\n\nconst parseDividedString = (value: NumberInput): NumberInput => {\n if (typeof value !== 'string' || !value.includes('/')) return value;\n return value\n .split('/')\n .map((v) => Number.parseInt(v, 10))\n .reduce((a, b) => a / b);\n};\n\n@Directive({\n selector: '[hlmAspectRatio]',\n host: {\n 'data-slot': 'aspect-ratio',\n '[style.--ratio]': 'ratio()',\n },\n})\nexport class HlmAspectRatio {\n /**\n * Aspect ratio of the element, defined as width / height.\n */\n public readonly ratio = input<number, NumberInput>(1, {\n alias: 'hlmAspectRatio',\n transform: (value: NumberInput) => {\n const coerced = coerceNumberProperty(parseDividedString(value));\n return coerced <= 0 ? 1 : coerced;\n },\n });\n\n constructor() {\n classes(() => 'relative aspect-(--ratio)');\n }\n}\n","/*\n * Public API Surface of aspect-ratio\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmAspectRatio } from './lib/hlm-aspect-ratio';\n\nexport * from './lib/hlm-aspect-ratio';\n\nexport const HlmAspectRatioImports = [HlmAspectRatio] as const;\n\n@NgModule({\n imports: [...HlmAspectRatioImports],\n exports: [...HlmAspectRatioImports],\n})\nexport class HlmAspectRatioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,kBAAkB,GAAG,CAAC,KAAkB,KAAiB;IAC7D,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;AAAE,QAAA,OAAO,KAAK;AACnE,IAAA,OAAO;SACJ,KAAK,CAAC,GAAG;AACT,SAAA,GAAG,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC;AACjC,SAAA,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;MASY,cAAc,CAAA;AACzB;;AAEG;AACa,IAAA,KAAK,GAAG,KAAK,CAAsB,CAAC,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,OAAA,EAAA,8BAAA,EAAA,CAAA,EAClD,KAAK,EAAE,gBAAgB;AACvB,QAAA,SAAS,EAAE,CAAC,KAAkB,KAAI;YAChC,MAAM,OAAO,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC/D,OAAO,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO;AACnC,QAAA,CAAC,GACD;AAEF,IAAA,WAAA,GAAA;AACE,QAAA,OAAO,CAAC,MAAM,2BAA2B,CAAC;IAC5C;uGAdW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,cAAA,EAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,SAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,cAAc;AAC3B,wBAAA,iBAAiB,EAAE,SAAS;AAC7B,qBAAA;AACF,iBAAA;;;AClBD;;AAEG;AAQI,MAAM,qBAAqB,GAAG,CAAC,cAAc;MAMvC,oBAAoB,CAAA;uGAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAApB,oBAAoB,EAAA,OAAA,EAAA,CANK,cAAc,CAAA,EAAA,OAAA,EAAA,CAAd,cAAc,CAAA,EAAA,CAAA;wGAMvC,oBAAoB,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,qBAAqB,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,GAAG,qBAAqB,CAAC;AACpC,iBAAA;;;ACfD;;AAEG;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aspect-ratio",
|
|
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/aspect-ratio.mjs",
|
|
14
|
+
"typings": "types/aspect-ratio.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": {
|
|
17
|
+
"default": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./types/aspect-ratio.d.ts",
|
|
21
|
+
"default": "./fesm2022/aspect-ratio.mjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"type": "module"
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NumberInput } from '@angular/cdk/coercion';
|
|
3
|
+
|
|
4
|
+
declare class HlmAspectRatio {
|
|
5
|
+
/**
|
|
6
|
+
* Aspect ratio of the element, defined as width / height.
|
|
7
|
+
*/
|
|
8
|
+
readonly ratio: i0.InputSignalWithTransform<number, NumberInput>;
|
|
9
|
+
constructor();
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAspectRatio, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAspectRatio, "[hlmAspectRatio]", never, { "ratio": { "alias": "hlmAspectRatio"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const HlmAspectRatioImports: readonly [typeof HlmAspectRatio];
|
|
15
|
+
declare class HlmAspectRatioModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmAspectRatioModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmAspectRatioModule, never, [typeof HlmAspectRatio], [typeof HlmAspectRatio]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HlmAspectRatioModule>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { HlmAspectRatio, HlmAspectRatioImports, HlmAspectRatioModule };
|