@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,192 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { NumberInput, BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import * as _angular_router from '@angular/router';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
declare class HlmNumberedPagination {
|
|
7
|
+
/**
|
|
8
|
+
* The current (active) page.
|
|
9
|
+
*/
|
|
10
|
+
readonly currentPage: _angular_core.ModelSignal<number>;
|
|
11
|
+
/**
|
|
12
|
+
* The number of items per paginated page.
|
|
13
|
+
*/
|
|
14
|
+
readonly itemsPerPage: _angular_core.ModelSignal<number>;
|
|
15
|
+
/**
|
|
16
|
+
* The total number of items in the collection. Only useful when
|
|
17
|
+
* doing server-side paging, where the collection size is limited
|
|
18
|
+
* to a single page returned by the server API.
|
|
19
|
+
*/
|
|
20
|
+
readonly totalItems: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
21
|
+
/**
|
|
22
|
+
* The number of page links to show.
|
|
23
|
+
*/
|
|
24
|
+
readonly maxSize: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
25
|
+
/**
|
|
26
|
+
* Show the first and last page buttons.
|
|
27
|
+
*/
|
|
28
|
+
readonly showEdges: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
29
|
+
/**
|
|
30
|
+
* The page sizes to show.
|
|
31
|
+
* Defaults to [10, 20, 50, 100]
|
|
32
|
+
*/
|
|
33
|
+
readonly pageSizes: _angular_core.InputSignal<number[]>;
|
|
34
|
+
protected readonly _pageSizesWithCurrent: _angular_core.Signal<number[]>;
|
|
35
|
+
protected readonly _isFirstPageActive: _angular_core.Signal<boolean>;
|
|
36
|
+
protected readonly _isLastPageActive: _angular_core.Signal<boolean>;
|
|
37
|
+
protected readonly _lastPageNumber: _angular_core.Signal<number>;
|
|
38
|
+
protected readonly _pages: _angular_core.Signal<Page[]>;
|
|
39
|
+
protected goToPrevious(): void;
|
|
40
|
+
protected goToNext(): void;
|
|
41
|
+
protected goToFirst(): void;
|
|
42
|
+
protected goToLast(): void;
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmNumberedPagination, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmNumberedPagination, "hlm-numbered-pagination", never, { "currentPage": { "alias": "currentPage"; "required": true; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": true; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": true; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showEdges": { "alias": "showEdges"; "required": false; "isSignal": true; }; "pageSizes": { "alias": "pageSizes"; "required": false; "isSignal": true; }; }, { "currentPage": "currentPageChange"; "itemsPerPage": "itemsPerPageChange"; }, never, never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
type Page = number | '...';
|
|
47
|
+
/**
|
|
48
|
+
* Checks that the instance.currentPage property is within bounds for the current page range.
|
|
49
|
+
* If not, return a correct value for currentPage, or the current value if OK.
|
|
50
|
+
*
|
|
51
|
+
* Copied from 'ngx-pagination' package
|
|
52
|
+
*/
|
|
53
|
+
declare function outOfBoundCorrection(totalItems: number, itemsPerPage: number, currentPage: number): number;
|
|
54
|
+
/**
|
|
55
|
+
* Returns an array of Page objects to use in the pagination controls.
|
|
56
|
+
*
|
|
57
|
+
* Copied from 'ngx-pagination' package
|
|
58
|
+
*/
|
|
59
|
+
declare function createPageArray(currentPage: number, itemsPerPage: number, totalItems: number, paginationRange: number): Page[];
|
|
60
|
+
|
|
61
|
+
declare class HlmNumberedPaginationQueryParams {
|
|
62
|
+
/**
|
|
63
|
+
* The current (active) page.
|
|
64
|
+
*/
|
|
65
|
+
readonly currentPage: _angular_core.ModelSignal<number>;
|
|
66
|
+
/**
|
|
67
|
+
* The number of items per paginated page.
|
|
68
|
+
*/
|
|
69
|
+
readonly itemsPerPage: _angular_core.ModelSignal<number>;
|
|
70
|
+
/**
|
|
71
|
+
* The total number of items in the collection. Only useful when
|
|
72
|
+
* doing server-side paging, where the collection size is limited
|
|
73
|
+
* to a single page returned by the server API.
|
|
74
|
+
*/
|
|
75
|
+
readonly totalItems: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
76
|
+
/**
|
|
77
|
+
* The URL path to use for the pagination links.
|
|
78
|
+
* Defaults to '.' (current path).
|
|
79
|
+
*/
|
|
80
|
+
readonly link: _angular_core.InputSignal<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The number of page links to show.
|
|
83
|
+
*/
|
|
84
|
+
readonly maxSize: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
85
|
+
/**
|
|
86
|
+
* Show the first and last page buttons.
|
|
87
|
+
*/
|
|
88
|
+
readonly showEdges: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
89
|
+
/**
|
|
90
|
+
* The page sizes to show.
|
|
91
|
+
* Defaults to [10, 20, 50, 100]
|
|
92
|
+
*/
|
|
93
|
+
readonly pageSizes: _angular_core.InputSignal<number[]>;
|
|
94
|
+
protected readonly _pageSizesWithCurrent: _angular_core.Signal<number[]>;
|
|
95
|
+
protected readonly _isFirstPageActive: _angular_core.Signal<boolean>;
|
|
96
|
+
protected readonly _isLastPageActive: _angular_core.Signal<boolean>;
|
|
97
|
+
protected readonly _lastPageNumber: _angular_core.Signal<number>;
|
|
98
|
+
protected readonly _pages: _angular_core.Signal<(number | "...")[]>;
|
|
99
|
+
constructor();
|
|
100
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmNumberedPaginationQueryParams, never>;
|
|
101
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmNumberedPaginationQueryParams, "hlm-numbered-pagination-query-params", never, { "currentPage": { "alias": "currentPage"; "required": true; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": true; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": true; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showEdges": { "alias": "showEdges"; "required": false; "isSignal": true; }; "pageSizes": { "alias": "pageSizes"; "required": false; "isSignal": true; }; }, { "currentPage": "currentPageChange"; "itemsPerPage": "itemsPerPageChange"; }, never, never, true, never>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class HlmPagination {
|
|
105
|
+
/** The aria-label for the pagination component. */
|
|
106
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
107
|
+
constructor();
|
|
108
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPagination, never>;
|
|
109
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmPagination, "[hlmPagination],hlm-pagination", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class HlmPaginationContent {
|
|
113
|
+
constructor();
|
|
114
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPaginationContent, never>;
|
|
115
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmPaginationContent, "ul[hlmPaginationContent]", never, {}, {}, never, never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class HlmPaginationEllipsis {
|
|
119
|
+
/** Screen reader only text for the ellipsis */
|
|
120
|
+
readonly srOnlyText: _angular_core.InputSignal<string>;
|
|
121
|
+
constructor();
|
|
122
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPaginationEllipsis, never>;
|
|
123
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmPaginationEllipsis, "hlm-pagination-ellipsis", never, { "srOnlyText": { "alias": "srOnlyText"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare class HlmPaginationItem {
|
|
127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPaginationItem, never>;
|
|
128
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmPaginationItem, "li[hlmPaginationItem]", never, {}, {}, never, never, true, never>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class HlmPaginationLink {
|
|
132
|
+
/** Whether the link is active (i.e., the current page). */
|
|
133
|
+
readonly isActive: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
134
|
+
/** The size of the button. */
|
|
135
|
+
readonly size: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "compact-xs" | "compact-sm" | "compact-default" | "compact-lg" | "compact-icon" | null | undefined>;
|
|
136
|
+
/** The link to navigate to the page. */
|
|
137
|
+
readonly link: _angular_core.InputSignal<string | readonly any[] | _angular_router.UrlTree | null | undefined>;
|
|
138
|
+
constructor();
|
|
139
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPaginationLink, never>;
|
|
140
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmPaginationLink, "[hlmPaginationLink]", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof _angular_router.RouterLink; inputs: { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "state": "state"; "info": "info"; "relativeTo": "relativeTo"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "routerLink": "link"; }; outputs: {}; }]>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare class HlmPaginationNext {
|
|
144
|
+
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
145
|
+
/** The link to navigate to the next page. */
|
|
146
|
+
readonly link: _angular_core.InputSignal<string | readonly any[] | _angular_router.UrlTree | null | undefined>;
|
|
147
|
+
/** The query parameters to pass to the next page. */
|
|
148
|
+
readonly queryParams: _angular_core.InputSignal<_angular_router.Params | null | undefined>;
|
|
149
|
+
/** How to handle query parameters when navigating to the next page. */
|
|
150
|
+
readonly queryParamsHandling: _angular_core.InputSignal<_angular_router.QueryParamsHandling | null | undefined>;
|
|
151
|
+
/** The aria-label for the next page link. */
|
|
152
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
153
|
+
/** The text to display for the next page link. */
|
|
154
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
155
|
+
/** Whether the button should only display the icon. */
|
|
156
|
+
readonly iconOnly: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
157
|
+
protected readonly _labelClass: _angular_core.Signal<"sr-only" | "hidden sm:block">;
|
|
158
|
+
protected readonly _size: _angular_core.Signal<"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "compact-xs" | "compact-sm" | "compact-default" | "compact-lg" | "compact-icon" | null | undefined>;
|
|
159
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
160
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPaginationNext, never>;
|
|
161
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmPaginationNext, "hlm-pagination-next", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare class HlmPaginationPrevious {
|
|
165
|
+
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
166
|
+
/** The link to navigate to the previous page. */
|
|
167
|
+
readonly link: _angular_core.InputSignal<string | readonly any[] | _angular_router.UrlTree | null | undefined>;
|
|
168
|
+
/** The query parameters to pass to the previous page. */
|
|
169
|
+
readonly queryParams: _angular_core.InputSignal<_angular_router.Params | null | undefined>;
|
|
170
|
+
/** How to handle query parameters when navigating to the previous page. */
|
|
171
|
+
readonly queryParamsHandling: _angular_core.InputSignal<_angular_router.QueryParamsHandling | null | undefined>;
|
|
172
|
+
/** The aria-label for the previous page link. */
|
|
173
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
174
|
+
/** The text to display for the previous page link. */
|
|
175
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
176
|
+
/** Whether the button should only display the icon. */
|
|
177
|
+
readonly iconOnly: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
178
|
+
protected readonly _labelClass: _angular_core.Signal<string>;
|
|
179
|
+
protected readonly _size: _angular_core.Signal<"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "compact-xs" | "compact-sm" | "compact-default" | "compact-lg" | "compact-icon" | null | undefined>;
|
|
180
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPaginationPrevious, never>;
|
|
182
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmPaginationPrevious, "hlm-pagination-previous", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare const HlmPaginationImports: readonly [typeof HlmPagination, typeof HlmPaginationContent, typeof HlmPaginationItem, typeof HlmPaginationLink, typeof HlmPaginationPrevious, typeof HlmPaginationNext, typeof HlmPaginationEllipsis, typeof HlmNumberedPagination, typeof HlmNumberedPaginationQueryParams];
|
|
186
|
+
declare class HlmPaginationModule {
|
|
187
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmPaginationModule, never>;
|
|
188
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmPaginationModule, never, [typeof HlmPagination, typeof HlmPaginationContent, typeof HlmPaginationItem, typeof HlmPaginationLink, typeof HlmPaginationPrevious, typeof HlmPaginationNext, typeof HlmPaginationEllipsis, typeof HlmNumberedPagination, typeof HlmNumberedPaginationQueryParams], [typeof HlmPagination, typeof HlmPaginationContent, typeof HlmPaginationItem, typeof HlmPaginationLink, typeof HlmPaginationPrevious, typeof HlmPaginationNext, typeof HlmPaginationEllipsis, typeof HlmNumberedPagination, typeof HlmNumberedPaginationQueryParams]>;
|
|
189
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmPaginationModule>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export { HlmNumberedPagination, HlmNumberedPaginationQueryParams, HlmPagination, HlmPaginationContent, HlmPaginationEllipsis, HlmPaginationImports, HlmPaginationItem, HlmPaginationLink, HlmPaginationModule, HlmPaginationNext, HlmPaginationPrevious, createPageArray, outOfBoundCorrection };
|
package/popover/README.md
CHANGED
|
@@ -1,64 +1,3 @@
|
|
|
1
|
-
# Popover
|
|
1
|
+
# Popover Subpath
|
|
2
2
|
|
|
3
|
-
This project
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
ng generate component component-name
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
ng generate --help
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Building
|
|
20
|
-
|
|
21
|
-
To build the library, run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
ng build popover
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
-
|
|
29
|
-
### Publishing the Library
|
|
30
|
-
|
|
31
|
-
Once the project is built, you can publish your library by following these steps:
|
|
32
|
-
|
|
33
|
-
1. Navigate to the `dist` directory:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
cd dist/popover
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
40
|
-
```bash
|
|
41
|
-
npm publish
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Running unit tests
|
|
45
|
-
|
|
46
|
-
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
ng test
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Running end-to-end tests
|
|
53
|
-
|
|
54
|
-
For end-to-end (e2e) testing, run:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
ng e2e
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
61
|
-
|
|
62
|
-
## Additional Resources
|
|
63
|
-
|
|
64
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
3
|
+
This project ships only as `@egose/shadcn-theme-ng/popover` or `@egose/shadcn-theme-ng-tw/popover`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { Directive, signal, inject, Renderer2, ElementRef, effect, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@spartan-ng/brain/popover';
|
|
4
|
+
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
4
5
|
import { injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
6
|
+
import { classes } from '@egose/shadcn-theme-ng/utils';
|
|
5
7
|
|
|
6
|
-
class
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: HlmPopoverClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
10
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: HlmPopoverClose, isStandalone: true, selector: "[hlmPopoverClose],[brnPopoverClose][hlm]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
|
|
8
|
+
class HlmPopover {
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopover, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
10
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmPopover, isStandalone: true, selector: "[hlmPopover],hlm-popover", host: { attributes: { "data-slot": "popover" } }, hostDirectives: [{ directive: i1.BrnPopover, inputs: ["align", "align", "attachTo", "attachTo", "autoFocus", "autoFocus", "closeOnOutsidePointerEvents", "closeOnOutsidePointerEvents", "offsetX", "offsetX", "sideOffset", "sideOffset", "state", "state"], outputs: ["stateChanged", "stateChanged", "closed", "closed"] }], ngImport: i0 });
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopover, decorators: [{
|
|
13
13
|
type: Directive,
|
|
14
14
|
args: [{
|
|
15
|
-
selector: '[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
selector: '[hlmPopover],hlm-popover',
|
|
16
|
+
hostDirectives: [
|
|
17
|
+
{
|
|
18
|
+
directive: BrnPopover,
|
|
19
|
+
inputs: ['align', 'attachTo', 'autoFocus', 'closeOnOutsidePointerEvents', 'offsetX', 'sideOffset', 'state'],
|
|
20
|
+
outputs: ['stateChanged', 'closed'],
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
host: { 'data-slot': 'popover' },
|
|
19
24
|
}]
|
|
20
|
-
}]
|
|
25
|
+
}] });
|
|
21
26
|
|
|
22
27
|
class HlmPopoverContent {
|
|
23
28
|
_stateProvider = injectExposesStateProvider({ host: true });
|
|
@@ -28,32 +33,121 @@ class HlmPopoverContent {
|
|
|
28
33
|
effect(() => {
|
|
29
34
|
this._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state());
|
|
30
35
|
});
|
|
36
|
+
classes(() => "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 gap-4 rounded-md p-4 text-sm shadow-md ring-1 duration-100 relative flex w-72 flex-col outline-none");
|
|
37
|
+
}
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmPopoverContent, isStandalone: true, selector: "[hlmPopoverContent],hlm-popover-content", host: { attributes: { "data-slot": "popover-content" } }, ngImport: i0 });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverContent, decorators: [{
|
|
42
|
+
type: Directive,
|
|
43
|
+
args: [{
|
|
44
|
+
selector: '[hlmPopoverContent],hlm-popover-content',
|
|
45
|
+
host: { 'data-slot': 'popover-content' },
|
|
46
|
+
}]
|
|
47
|
+
}], ctorParameters: () => [] });
|
|
48
|
+
|
|
49
|
+
class HlmPopoverDescription {
|
|
50
|
+
constructor() {
|
|
51
|
+
classes(() => "text-muted-foreground");
|
|
52
|
+
}
|
|
53
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmPopoverDescription, isStandalone: true, selector: "[hlmPopoverDescription]", host: { attributes: { "data-slot": "popover-description" } }, ngImport: i0 });
|
|
55
|
+
}
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverDescription, decorators: [{
|
|
57
|
+
type: Directive,
|
|
58
|
+
args: [{
|
|
59
|
+
selector: '[hlmPopoverDescription]',
|
|
60
|
+
host: { 'data-slot': 'popover-description' },
|
|
61
|
+
}]
|
|
62
|
+
}], ctorParameters: () => [] });
|
|
63
|
+
|
|
64
|
+
class HlmPopoverHeader {
|
|
65
|
+
constructor() {
|
|
66
|
+
classes(() => "flex flex-col gap-1 text-sm");
|
|
31
67
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: HlmPopoverContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: HlmPopoverContent, isStandalone: true, selector: "[hlmPopoverContent],[brnPopoverContent][hlm]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
|
|
68
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
69
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmPopoverHeader, isStandalone: true, selector: "[hlmPopoverHeader],hlm-popover-header", host: { attributes: { "data-slot": "popover-header" } }, ngImport: i0 });
|
|
36
70
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverHeader, decorators: [{
|
|
38
72
|
type: Directive,
|
|
39
73
|
args: [{
|
|
40
|
-
selector: '[
|
|
41
|
-
host: {
|
|
42
|
-
'[class]': '_computedClass()',
|
|
43
|
-
},
|
|
74
|
+
selector: '[hlmPopoverHeader],hlm-popover-header',
|
|
75
|
+
host: { 'data-slot': 'popover-header' },
|
|
44
76
|
}]
|
|
45
|
-
}], ctorParameters: () => []
|
|
77
|
+
}], ctorParameters: () => [] });
|
|
78
|
+
|
|
79
|
+
class HlmPopoverPortal {
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
81
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmPopoverPortal, isStandalone: true, selector: "[hlmPopoverPortal]", hostDirectives: [{ directive: i1.BrnPopoverContent, inputs: ["context", "context", "class", "class"] }], ngImport: i0 });
|
|
82
|
+
}
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverPortal, decorators: [{
|
|
84
|
+
type: Directive,
|
|
85
|
+
args: [{
|
|
86
|
+
selector: '[hlmPopoverPortal]',
|
|
87
|
+
hostDirectives: [{ directive: BrnPopoverContent, inputs: ['context', 'class'] }],
|
|
88
|
+
}]
|
|
89
|
+
}] });
|
|
90
|
+
|
|
91
|
+
class HlmPopoverTitle {
|
|
92
|
+
constructor() {
|
|
93
|
+
classes(() => "font-medium");
|
|
94
|
+
}
|
|
95
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
96
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmPopoverTitle, isStandalone: true, selector: "[hlmPopoverTitle]", host: { attributes: { "data-slot": "popover-title" } }, ngImport: i0 });
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverTitle, decorators: [{
|
|
99
|
+
type: Directive,
|
|
100
|
+
args: [{
|
|
101
|
+
selector: '[hlmPopoverTitle]',
|
|
102
|
+
host: { 'data-slot': 'popover-title' },
|
|
103
|
+
}]
|
|
104
|
+
}], ctorParameters: () => [] });
|
|
105
|
+
|
|
106
|
+
class HlmPopoverTrigger {
|
|
107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
108
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmPopoverTrigger, isStandalone: true, selector: "button[hlmPopoverTrigger],button[hlmPopoverTriggerFor]", host: { attributes: { "data-slot": "popover-trigger" } }, hostDirectives: [{ directive: i1.BrnPopoverTrigger, inputs: ["id", "id", "brnPopoverTriggerFor", "hlmPopoverTriggerFor", "type", "type"] }], ngImport: i0 });
|
|
109
|
+
}
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverTrigger, decorators: [{
|
|
111
|
+
type: Directive,
|
|
112
|
+
args: [{
|
|
113
|
+
selector: 'button[hlmPopoverTrigger],button[hlmPopoverTriggerFor]',
|
|
114
|
+
hostDirectives: [
|
|
115
|
+
{ directive: BrnPopoverTrigger, inputs: ['id', 'brnPopoverTriggerFor: hlmPopoverTriggerFor', 'type'] },
|
|
116
|
+
],
|
|
117
|
+
host: { 'data-slot': 'popover-trigger' },
|
|
118
|
+
}]
|
|
119
|
+
}] });
|
|
46
120
|
|
|
47
121
|
/*
|
|
48
122
|
* Public API Surface of popover
|
|
49
123
|
*/
|
|
50
|
-
const HlmPopoverImports = [
|
|
124
|
+
const HlmPopoverImports = [
|
|
125
|
+
HlmPopover,
|
|
126
|
+
HlmPopoverContent,
|
|
127
|
+
HlmPopoverDescription,
|
|
128
|
+
HlmPopoverHeader,
|
|
129
|
+
HlmPopoverPortal,
|
|
130
|
+
HlmPopoverTitle,
|
|
131
|
+
HlmPopoverTrigger,
|
|
132
|
+
];
|
|
51
133
|
class HlmPopoverModule {
|
|
52
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
54
|
-
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
135
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverModule, imports: [HlmPopover,
|
|
136
|
+
HlmPopoverContent,
|
|
137
|
+
HlmPopoverDescription,
|
|
138
|
+
HlmPopoverHeader,
|
|
139
|
+
HlmPopoverPortal,
|
|
140
|
+
HlmPopoverTitle,
|
|
141
|
+
HlmPopoverTrigger], exports: [HlmPopover,
|
|
142
|
+
HlmPopoverContent,
|
|
143
|
+
HlmPopoverDescription,
|
|
144
|
+
HlmPopoverHeader,
|
|
145
|
+
HlmPopoverPortal,
|
|
146
|
+
HlmPopoverTitle,
|
|
147
|
+
HlmPopoverTrigger] });
|
|
148
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverModule });
|
|
55
149
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmPopoverModule, decorators: [{
|
|
57
151
|
type: NgModule,
|
|
58
152
|
args: [{
|
|
59
153
|
imports: [...HlmPopoverImports],
|
|
@@ -65,5 +159,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
65
159
|
* Generated bundle index. Do not edit.
|
|
66
160
|
*/
|
|
67
161
|
|
|
68
|
-
export {
|
|
69
|
-
|
|
162
|
+
export { HlmPopover, HlmPopoverContent, HlmPopoverDescription, HlmPopoverHeader, HlmPopoverImports, HlmPopoverModule, HlmPopoverPortal, HlmPopoverTitle, HlmPopoverTrigger };
|
|
163
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "popover",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^20.3.0 || ^22.0.0",
|
|
6
|
+
"@angular/core": "^20.3.0 || ^22.0.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/popover.mjs",
|
|
13
|
+
"typings": "types/popover.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./types/popover.d.ts",
|
|
20
|
+
"default": "./fesm2022/popover.mjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"type": "module"
|
|
24
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@spartan-ng/brain/popover';
|
|
3
|
+
|
|
4
|
+
declare class HlmPopover {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopover, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopover, "[hlmPopover],hlm-popover", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnPopover; inputs: { "align": "align"; "attachTo": "attachTo"; "autoFocus": "autoFocus"; "closeOnOutsidePointerEvents": "closeOnOutsidePointerEvents"; "offsetX": "offsetX"; "sideOffset": "sideOffset"; "state": "state"; }; outputs: { "stateChanged": "stateChanged"; "closed": "closed"; }; }]>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class HlmPopoverContent {
|
|
10
|
+
private readonly _stateProvider;
|
|
11
|
+
state: i0.Signal<"closed" | "open">;
|
|
12
|
+
private readonly _renderer;
|
|
13
|
+
private readonly _element;
|
|
14
|
+
constructor();
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverContent, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverContent, "[hlmPopoverContent],hlm-popover-content", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class HlmPopoverDescription {
|
|
20
|
+
constructor();
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverDescription, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverDescription, "[hlmPopoverDescription]", never, {}, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class HlmPopoverHeader {
|
|
26
|
+
constructor();
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverHeader, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverHeader, "[hlmPopoverHeader],hlm-popover-header", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class HlmPopoverPortal {
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverPortal, never>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverPortal, "[hlmPopoverPortal]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnPopoverContent; inputs: { "context": "context"; "class": "class"; }; outputs: {}; }]>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class HlmPopoverTitle {
|
|
37
|
+
constructor();
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverTitle, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverTitle, "[hlmPopoverTitle]", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class HlmPopoverTrigger {
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverTrigger, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverTrigger, "button[hlmPopoverTrigger],button[hlmPopoverTriggerFor]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnPopoverTrigger; inputs: { "id": "id"; "brnPopoverTriggerFor": "hlmPopoverTriggerFor"; "type": "type"; }; outputs: {}; }]>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare const HlmPopoverImports: readonly [typeof HlmPopover, typeof HlmPopoverContent, typeof HlmPopoverDescription, typeof HlmPopoverHeader, typeof HlmPopoverPortal, typeof HlmPopoverTitle, typeof HlmPopoverTrigger];
|
|
48
|
+
declare class HlmPopoverModule {
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverModule, never>;
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmPopoverModule, never, [typeof HlmPopover, typeof HlmPopoverContent, typeof HlmPopoverDescription, typeof HlmPopoverHeader, typeof HlmPopoverPortal, typeof HlmPopoverTitle, typeof HlmPopoverTrigger], [typeof HlmPopover, typeof HlmPopoverContent, typeof HlmPopoverDescription, typeof HlmPopoverHeader, typeof HlmPopoverPortal, typeof HlmPopoverTitle, typeof HlmPopoverTrigger]>;
|
|
51
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HlmPopoverModule>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { HlmPopover, HlmPopoverContent, HlmPopoverDescription, HlmPopoverHeader, HlmPopoverImports, HlmPopoverModule, HlmPopoverPortal, HlmPopoverTitle, HlmPopoverTrigger };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, inject, computed, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@spartan-ng/brain/progress';
|
|
4
|
+
import { BrnProgress, injectBrnProgress, BrnProgressIndicator } from '@spartan-ng/brain/progress';
|
|
5
|
+
import { classes } from '@egose/shadcn-theme-ng/utils';
|
|
6
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
7
|
+
|
|
8
|
+
class HlmProgress {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => "bg-muted h-1.5 rounded-full relative inline-flex w-full overflow-hidden");
|
|
11
|
+
}
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmProgress, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmProgress, isStandalone: true, selector: "hlm-progress,[hlmProgress]", host: { attributes: { "data-slot": "progress" } }, hostDirectives: [{ directive: i1.BrnProgress, inputs: ["value", "value", "max", "max", "getValueLabel", "getValueLabel"] }], ngImport: i0 });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmProgress, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: 'hlm-progress,[hlmProgress]',
|
|
19
|
+
hostDirectives: [{ directive: BrnProgress, inputs: ['value', 'max', 'getValueLabel'] }],
|
|
20
|
+
host: { 'data-slot': 'progress' },
|
|
21
|
+
}]
|
|
22
|
+
}], ctorParameters: () => [] });
|
|
23
|
+
|
|
24
|
+
class HlmProgressIndicator {
|
|
25
|
+
_progress = injectBrnProgress();
|
|
26
|
+
_dir = inject(Directionality);
|
|
27
|
+
// Offset the indicator by the unfilled remainder. In RTL the bar fills from the inline-start
|
|
28
|
+
// (visually the right), so translate the opposite way to keep the fill on the correct side.
|
|
29
|
+
_transform = computed(() => {
|
|
30
|
+
const offset = 100 - (this._progress.value() ?? 100);
|
|
31
|
+
return `translateX(${this._dir.valueSignal() === 'rtl' ? '' : '-'}${offset}%)`;
|
|
32
|
+
}, /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "_transform" }] : /* istanbul ignore next */ []));
|
|
34
|
+
_indeterminate = computed(() => this._progress.value() === null || this._progress.value() === undefined, /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "_indeterminate" }] : /* istanbul ignore next */ []));
|
|
36
|
+
constructor() {
|
|
37
|
+
classes(() => "bg-primary h-full w-full flex-1 transition-all");
|
|
38
|
+
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmProgressIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmProgressIndicator, isStandalone: true, selector: "[hlmProgressIndicator],hlm-progress-indicator", host: { attributes: { "data-slot": "progress-indicator" }, properties: { "class.animate-indeterminate": "_indeterminate()", "style.transform": "_transform()" } }, hostDirectives: [{ directive: i1.BrnProgressIndicator }], ngImport: i0 });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmProgressIndicator, decorators: [{
|
|
43
|
+
type: Directive,
|
|
44
|
+
args: [{
|
|
45
|
+
selector: '[hlmProgressIndicator],hlm-progress-indicator',
|
|
46
|
+
hostDirectives: [BrnProgressIndicator],
|
|
47
|
+
host: {
|
|
48
|
+
'data-slot': 'progress-indicator',
|
|
49
|
+
'[class.animate-indeterminate]': '_indeterminate()',
|
|
50
|
+
'[style.transform]': '_transform()',
|
|
51
|
+
},
|
|
52
|
+
}]
|
|
53
|
+
}], ctorParameters: () => [] });
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* Public API Surface of progress
|
|
57
|
+
*/
|
|
58
|
+
const HlmProgressImports = [HlmProgress, HlmProgressIndicator];
|
|
59
|
+
class HlmProgressModule {
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
61
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmProgressModule, imports: [HlmProgress, HlmProgressIndicator], exports: [HlmProgress, HlmProgressIndicator] });
|
|
62
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmProgressModule });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmProgressModule, decorators: [{
|
|
65
|
+
type: NgModule,
|
|
66
|
+
args: [{
|
|
67
|
+
imports: [...HlmProgressImports],
|
|
68
|
+
exports: [...HlmProgressImports],
|
|
69
|
+
}]
|
|
70
|
+
}] });
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Generated bundle index. Do not edit.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
export { HlmProgress, HlmProgressImports, HlmProgressIndicator, HlmProgressModule };
|
|
77
|
+
|