@egose/shadcn-theme-ng 0.0.27 → 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.
Files changed (334) hide show
  1. package/accordion/README.md +64 -0
  2. package/accordion/fesm2022/accordion.mjs +160 -0
  3. package/accordion/fesm2022/accordion.mjs.map +1 -0
  4. package/accordion/package.json +25 -0
  5. package/accordion/types/accordion.d.ts +49 -0
  6. package/alert/fesm2022/alert.mjs +29 -24
  7. package/alert/fesm2022/alert.mjs.map +1 -1
  8. package/alert/package.json +25 -0
  9. package/alert-dialog/README.md +11 -0
  10. package/alert-dialog/fesm2022/alert-dialog.mjs +287 -0
  11. package/alert-dialog/fesm2022/alert-dialog.mjs.map +1 -0
  12. package/alert-dialog/package.json +25 -0
  13. package/alert-dialog/types/alert-dialog.d.ts +90 -0
  14. package/aspect-ratio/README.md +11 -0
  15. package/aspect-ratio/fesm2022/aspect-ratio.mjs +62 -0
  16. package/aspect-ratio/fesm2022/aspect-ratio.mjs.map +1 -0
  17. package/aspect-ratio/package.json +25 -0
  18. package/aspect-ratio/types/aspect-ratio.d.ts +21 -0
  19. package/autocomplete/README.md +64 -0
  20. package/autocomplete/fesm2022/autocomplete.mjs +409 -0
  21. package/autocomplete/fesm2022/autocomplete.mjs.map +1 -0
  22. package/autocomplete/package.json +24 -0
  23. package/autocomplete/types/autocomplete.d.ts +96 -0
  24. package/avatar/README.md +11 -0
  25. package/avatar/fesm2022/avatar.mjs +178 -0
  26. package/avatar/fesm2022/avatar.mjs.map +1 -0
  27. package/avatar/package.json +25 -0
  28. package/avatar/types/avatar.d.ts +50 -0
  29. package/badge/fesm2022/badge.mjs +15 -9
  30. package/badge/fesm2022/badge.mjs.map +1 -1
  31. package/badge/package.json +25 -0
  32. package/basic-alert/fesm2022/basic-alert.mjs +11 -7
  33. package/basic-alert/fesm2022/basic-alert.mjs.map +1 -1
  34. package/basic-alert/package.json +24 -0
  35. package/breadcrumb/README.md +11 -0
  36. package/breadcrumb/fesm2022/breadcrumb.mjs +224 -0
  37. package/breadcrumb/fesm2022/breadcrumb.mjs.map +1 -0
  38. package/breadcrumb/package.json +25 -0
  39. package/breadcrumb/types/breadcrumb.d.ts +57 -0
  40. package/button/fesm2022/button.mjs +99 -25
  41. package/button/fesm2022/button.mjs.map +1 -1
  42. package/button/package.json +25 -0
  43. package/button/{index.d.ts → types/button.d.ts} +30 -9
  44. package/button-group/README.md +11 -0
  45. package/button-group/fesm2022/button-group.mjs +102 -0
  46. package/button-group/fesm2022/button-group.mjs.map +1 -0
  47. package/button-group/package.json +25 -0
  48. package/button-group/types/button-group.d.ts +30 -0
  49. package/calendar/fesm2022/calendar.mjs +868 -546
  50. package/calendar/fesm2022/calendar.mjs.map +1 -1
  51. package/calendar/package.json +24 -0
  52. package/calendar/types/calendar.d.ts +94 -0
  53. package/card/README.md +11 -0
  54. package/card/fesm2022/card.mjs +169 -0
  55. package/card/fesm2022/card.mjs.map +1 -0
  56. package/card/package.json +25 -0
  57. package/card/types/card.d.ts +54 -0
  58. package/carousel/README.md +11 -0
  59. package/carousel/fesm2022/carousel.mjs +309 -0
  60. package/carousel/fesm2022/carousel.mjs.map +1 -0
  61. package/carousel/package.json +25 -0
  62. package/carousel/types/carousel.d.ts +84 -0
  63. package/checkbox/README.md +64 -0
  64. package/checkbox/fesm2022/checkbox.mjs +151 -0
  65. package/checkbox/fesm2022/checkbox.mjs.map +1 -0
  66. package/checkbox/package.json +24 -0
  67. package/checkbox/types/checkbox.d.ts +55 -0
  68. package/collapsible/README.md +11 -0
  69. package/collapsible/fesm2022/collapsible.mjs +77 -0
  70. package/collapsible/fesm2022/collapsible.mjs.map +1 -0
  71. package/collapsible/package.json +25 -0
  72. package/collapsible/types/collapsible.d.ts +27 -0
  73. package/combobox/README.md +11 -0
  74. package/combobox/fesm2022/combobox.mjs +683 -0
  75. package/combobox/fesm2022/combobox.mjs.map +1 -0
  76. package/combobox/package.json +25 -0
  77. package/combobox/types/combobox.d.ts +151 -0
  78. package/command/README.md +11 -0
  79. package/command/fesm2022/command.mjs +361 -0
  80. package/command/fesm2022/command.mjs.map +1 -0
  81. package/command/package.json +25 -0
  82. package/command/types/command.d.ts +89 -0
  83. package/confirmation-dialog/README.md +64 -0
  84. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +104 -0
  85. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +1 -0
  86. package/confirmation-dialog/package.json +24 -0
  87. package/confirmation-dialog/types/confirmation-dialog.d.ts +24 -0
  88. package/context-menu/README.md +11 -0
  89. package/context-menu/fesm2022/context-menu.mjs +89 -0
  90. package/context-menu/fesm2022/context-menu.mjs.map +1 -0
  91. package/context-menu/package.json +25 -0
  92. package/context-menu/types/context-menu.d.ts +34 -0
  93. package/date-picker/fesm2022/date-picker.mjs +1262 -307
  94. package/date-picker/fesm2022/date-picker.mjs.map +1 -1
  95. package/date-picker/package.json +24 -0
  96. package/date-picker/types/date-picker.d.ts +551 -0
  97. package/dialog/README.md +64 -0
  98. package/dialog/fesm2022/dialog.mjs +307 -0
  99. package/dialog/fesm2022/dialog.mjs.map +1 -0
  100. package/dialog/package.json +24 -0
  101. package/dialog/types/dialog.d.ts +95 -0
  102. package/drawer/README.md +11 -0
  103. package/drawer/fesm2022/drawer.mjs +271 -0
  104. package/drawer/fesm2022/drawer.mjs.map +1 -0
  105. package/drawer/package.json +25 -0
  106. package/drawer/types/drawer.d.ts +76 -0
  107. package/dropdown-menu/README.md +11 -0
  108. package/dropdown-menu/fesm2022/dropdown-menu.mjs +542 -0
  109. package/dropdown-menu/fesm2022/dropdown-menu.mjs.map +1 -0
  110. package/dropdown-menu/package.json +25 -0
  111. package/dropdown-menu/types/dropdown-menu.d.ts +176 -0
  112. package/empty/README.md +11 -0
  113. package/empty/fesm2022/empty.mjs +151 -0
  114. package/empty/fesm2022/empty.mjs.map +1 -0
  115. package/empty/package.json +25 -0
  116. package/empty/types/empty.d.ts +54 -0
  117. package/field/README.md +11 -0
  118. package/field/fesm2022/field.mjs +367 -0
  119. package/field/fesm2022/field.mjs.map +1 -0
  120. package/field/package.json +25 -0
  121. package/field/types/field.d.ts +107 -0
  122. package/form-checkbox/README.md +64 -0
  123. package/form-checkbox/fesm2022/form-checkbox.mjs +154 -0
  124. package/form-checkbox/fesm2022/form-checkbox.mjs.map +1 -0
  125. package/form-checkbox/package.json +24 -0
  126. package/form-checkbox/types/form-checkbox.d.ts +27 -0
  127. package/form-date-picker/fesm2022/form-date-picker.mjs +57 -50
  128. package/form-date-picker/fesm2022/form-date-picker.mjs.map +1 -1
  129. package/form-date-picker/package.json +24 -0
  130. package/form-field/fesm2022/form-field.mjs +37 -25
  131. package/form-field/fesm2022/form-field.mjs.map +1 -1
  132. package/form-field/package.json +25 -0
  133. package/form-field/{index.d.ts → types/form-field.d.ts} +4 -3
  134. package/form-field-simple/fesm2022/form-field-simple.mjs +14 -9
  135. package/form-field-simple/fesm2022/form-field-simple.mjs.map +1 -1
  136. package/form-field-simple/package.json +24 -0
  137. package/form-searchable-multiselect/README.md +64 -0
  138. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +158 -0
  139. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +1 -0
  140. package/form-searchable-multiselect/package.json +24 -0
  141. package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +30 -0
  142. package/form-select/fesm2022/form-select.mjs +131 -70
  143. package/form-select/fesm2022/form-select.mjs.map +1 -1
  144. package/form-select/package.json +24 -0
  145. package/form-text-input/fesm2022/form-text-input.mjs +66 -37
  146. package/form-text-input/fesm2022/form-text-input.mjs.map +1 -1
  147. package/form-text-input/package.json +24 -0
  148. package/form-textarea/fesm2022/form-textarea.mjs +53 -29
  149. package/form-textarea/fesm2022/form-textarea.mjs.map +1 -1
  150. package/form-textarea/package.json +24 -0
  151. package/hover-card/README.md +11 -0
  152. package/hover-card/fesm2022/hover-card.mjs +123 -0
  153. package/hover-card/fesm2022/hover-card.mjs.map +1 -0
  154. package/hover-card/package.json +25 -0
  155. package/hover-card/types/hover-card.d.ts +36 -0
  156. package/icon/fesm2022/icon.mjs +11 -9
  157. package/icon/fesm2022/icon.mjs.map +1 -1
  158. package/icon/package.json +25 -0
  159. package/input/fesm2022/input.mjs +21 -71
  160. package/input/fesm2022/input.mjs.map +1 -1
  161. package/input/package.json +25 -0
  162. package/input/types/input.d.ts +18 -0
  163. package/input-group/README.md +11 -0
  164. package/input-group/fesm2022/input-group.mjs +199 -0
  165. package/input-group/fesm2022/input-group.mjs.map +1 -0
  166. package/input-group/package.json +25 -0
  167. package/input-group/types/input-group.d.ts +52 -0
  168. package/input-otp/README.md +11 -0
  169. package/input-otp/fesm2022/input-otp.mjs +141 -0
  170. package/input-otp/fesm2022/input-otp.mjs.map +1 -0
  171. package/input-otp/package.json +25 -0
  172. package/input-otp/types/input-otp.d.ts +43 -0
  173. package/item/README.md +11 -0
  174. package/item/fesm2022/item.mjs +278 -0
  175. package/item/fesm2022/item.mjs.map +1 -0
  176. package/item/package.json +25 -0
  177. package/item/types/item.d.ts +101 -0
  178. package/kbd/README.md +11 -0
  179. package/kbd/fesm2022/kbd.mjs +61 -0
  180. package/kbd/fesm2022/kbd.mjs.map +1 -0
  181. package/kbd/package.json +25 -0
  182. package/kbd/types/kbd.d.ts +22 -0
  183. package/label/fesm2022/label.mjs +10 -9
  184. package/label/fesm2022/label.mjs.map +1 -1
  185. package/label/package.json +25 -0
  186. package/layout-simple/README.md +64 -0
  187. package/layout-simple/fesm2022/layout-simple.mjs +719 -0
  188. package/layout-simple/fesm2022/layout-simple.mjs.map +1 -0
  189. package/layout-simple/package.json +24 -0
  190. package/layout-simple/types/layout-simple.d.ts +153 -0
  191. package/menubar/README.md +11 -0
  192. package/menubar/fesm2022/menubar.mjs +108 -0
  193. package/menubar/fesm2022/menubar.mjs.map +1 -0
  194. package/menubar/package.json +25 -0
  195. package/menubar/types/menubar.d.ts +40 -0
  196. package/native-select/README.md +11 -0
  197. package/native-select/fesm2022/native-select.mjs +207 -0
  198. package/native-select/fesm2022/native-select.mjs.map +1 -0
  199. package/native-select/package.json +25 -0
  200. package/native-select/types/native-select.d.ts +70 -0
  201. package/navigation-menu/README.md +11 -0
  202. package/navigation-menu/fesm2022/navigation-menu.mjs +206 -0
  203. package/navigation-menu/fesm2022/navigation-menu.mjs.map +1 -0
  204. package/navigation-menu/package.json +25 -0
  205. package/navigation-menu/types/navigation-menu.d.ts +54 -0
  206. package/package.json +239 -47
  207. package/pagination/README.md +11 -0
  208. package/pagination/fesm2022/pagination.mjs +808 -0
  209. package/pagination/fesm2022/pagination.mjs.map +1 -0
  210. package/pagination/package.json +25 -0
  211. package/pagination/types/pagination.d.ts +192 -0
  212. package/popover/fesm2022/popover.mjs +123 -29
  213. package/popover/fesm2022/popover.mjs.map +1 -1
  214. package/popover/package.json +24 -0
  215. package/popover/types/popover.d.ts +54 -0
  216. package/progress/README.md +11 -0
  217. package/progress/fesm2022/progress.mjs +77 -0
  218. package/progress/fesm2022/progress.mjs.map +1 -0
  219. package/progress/package.json +25 -0
  220. package/progress/types/progress.d.ts +27 -0
  221. package/radio-group/README.md +64 -0
  222. package/radio-group/fesm2022/radio-group.mjs +204 -0
  223. package/radio-group/fesm2022/radio-group.mjs.map +1 -0
  224. package/radio-group/package.json +25 -0
  225. package/radio-group/types/radio-group.d.ts +71 -0
  226. package/resizable/README.md +11 -0
  227. package/resizable/fesm2022/resizable.mjs +111 -0
  228. package/resizable/fesm2022/resizable.mjs.map +1 -0
  229. package/resizable/package.json +25 -0
  230. package/resizable/types/resizable.d.ts +32 -0
  231. package/scroll-area/README.md +11 -0
  232. package/scroll-area/fesm2022/scroll-area.mjs +51 -0
  233. package/scroll-area/fesm2022/scroll-area.mjs.map +1 -0
  234. package/scroll-area/package.json +25 -0
  235. package/scroll-area/types/scroll-area.d.ts +16 -0
  236. package/searchable-multiselect/README.md +64 -0
  237. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +225 -0
  238. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +1 -0
  239. package/searchable-multiselect/package.json +24 -0
  240. package/searchable-multiselect/types/searchable-multiselect.d.ts +39 -0
  241. package/select/fesm2022/select.mjs +373 -191
  242. package/select/fesm2022/select.mjs.map +1 -1
  243. package/select/package.json +25 -0
  244. package/select/types/select.d.ts +119 -0
  245. package/separator/fesm2022/separator.mjs +16 -14
  246. package/separator/fesm2022/separator.mjs.map +1 -1
  247. package/separator/package.json +24 -0
  248. package/separator/{index.d.ts → types/separator.d.ts} +4 -5
  249. package/sheet/fesm2022/sheet.mjs +49 -42
  250. package/sheet/fesm2022/sheet.mjs.map +1 -1
  251. package/sheet/package.json +24 -0
  252. package/sidebar/README.md +11 -0
  253. package/sidebar/fesm2022/sidebar.mjs +948 -0
  254. package/sidebar/fesm2022/sidebar.mjs.map +1 -0
  255. package/sidebar/package.json +25 -0
  256. package/sidebar/types/sidebar.d.ts +237 -0
  257. package/skeleton/README.md +11 -0
  258. package/skeleton/fesm2022/skeleton.mjs +44 -0
  259. package/skeleton/fesm2022/skeleton.mjs.map +1 -0
  260. package/skeleton/package.json +25 -0
  261. package/skeleton/types/skeleton.d.ts +16 -0
  262. package/slider/README.md +11 -0
  263. package/slider/fesm2022/slider.mjs +144 -0
  264. package/slider/fesm2022/slider.mjs.map +1 -0
  265. package/slider/package.json +25 -0
  266. package/slider/types/slider.d.ts +19 -0
  267. package/sonner/fesm2022/sonner.mjs +29 -34
  268. package/sonner/fesm2022/sonner.mjs.map +1 -1
  269. package/sonner/package.json +25 -0
  270. package/spinner/fesm2022/spinner.mjs +17 -13
  271. package/spinner/fesm2022/spinner.mjs.map +1 -1
  272. package/spinner/package.json +25 -0
  273. package/switch/fesm2022/switch.mjs +27 -24
  274. package/switch/fesm2022/switch.mjs.map +1 -1
  275. package/switch/package.json +25 -0
  276. package/table/README.md +11 -0
  277. package/table/fesm2022/table.mjs +211 -0
  278. package/table/fesm2022/table.mjs.map +1 -0
  279. package/table/package.json +25 -0
  280. package/table/types/table.d.ts +87 -0
  281. package/tabs/README.md +64 -0
  282. package/tabs/fesm2022/tabs.mjs +286 -0
  283. package/tabs/fesm2022/tabs.mjs.map +1 -0
  284. package/tabs/package.json +25 -0
  285. package/tabs/types/tabs.d.ts +71 -0
  286. package/textarea/README.md +11 -0
  287. package/textarea/fesm2022/textarea.mjs +47 -0
  288. package/textarea/fesm2022/textarea.mjs.map +1 -0
  289. package/textarea/package.json +25 -0
  290. package/textarea/types/textarea.d.ts +18 -0
  291. package/toggle/README.md +11 -0
  292. package/toggle/fesm2022/toggle.mjs +78 -0
  293. package/toggle/fesm2022/toggle.mjs.map +1 -0
  294. package/toggle/package.json +25 -0
  295. package/toggle/types/toggle.d.ts +27 -0
  296. package/toggle-group/README.md +11 -0
  297. package/toggle-group/fesm2022/toggle-group.mjs +117 -0
  298. package/toggle-group/fesm2022/toggle-group.mjs.map +1 -0
  299. package/toggle-group/package.json +25 -0
  300. package/toggle-group/types/toggle-group.d.ts +39 -0
  301. package/tooltip/README.md +64 -0
  302. package/tooltip/fesm2022/tooltip.mjs +72 -0
  303. package/tooltip/fesm2022/tooltip.mjs.map +1 -0
  304. package/tooltip/package.json +25 -0
  305. package/tooltip/types/tooltip.d.ts +22 -0
  306. package/typography/README.md +11 -0
  307. package/typography/fesm2022/typography.mjs +242 -0
  308. package/typography/fesm2022/typography.mjs.map +1 -0
  309. package/typography/package.json +25 -0
  310. package/typography/types/typography.d.ts +94 -0
  311. package/utils/fesm2022/utils.mjs +184 -1
  312. package/utils/fesm2022/utils.mjs.map +1 -1
  313. package/utils/package.json +25 -0
  314. package/utils/types/utils.d.ts +13 -0
  315. package/calendar/index.d.ts +0 -111
  316. package/date-picker/index.d.ts +0 -227
  317. package/input/index.d.ts +0 -41
  318. package/popover/index.d.ts +0 -30
  319. package/select/index.d.ts +0 -92
  320. package/utils/index.d.ts +0 -5
  321. /package/alert/{index.d.ts → types/alert.d.ts} +0 -0
  322. /package/badge/{index.d.ts → types/badge.d.ts} +0 -0
  323. /package/basic-alert/{index.d.ts → types/basic-alert.d.ts} +0 -0
  324. /package/form-date-picker/{index.d.ts → types/form-date-picker.d.ts} +0 -0
  325. /package/form-field-simple/{index.d.ts → types/form-field-simple.d.ts} +0 -0
  326. /package/form-select/{index.d.ts → types/form-select.d.ts} +0 -0
  327. /package/form-text-input/{index.d.ts → types/form-text-input.d.ts} +0 -0
  328. /package/form-textarea/{index.d.ts → types/form-textarea.d.ts} +0 -0
  329. /package/icon/{index.d.ts → types/icon.d.ts} +0 -0
  330. /package/label/{index.d.ts → types/label.d.ts} +0 -0
  331. /package/sheet/{index.d.ts → types/sheet.d.ts} +0 -0
  332. /package/sonner/{index.d.ts → types/sonner.d.ts} +0 -0
  333. /package/spinner/{index.d.ts → types/spinner.d.ts} +0 -0
  334. /package/switch/{index.d.ts → types/switch.d.ts} +0 -0
@@ -0,0 +1,13 @@
1
+ import { ElementRef, Injector, EnvironmentProviders } from '@angular/core';
2
+ import { ClassValue } from 'clsx';
3
+
4
+ declare function hlm(...inputs: ClassValue[]): string;
5
+ declare function classes(computed: () => ClassValue[] | string, options?: ClassesOptions): void;
6
+ interface ClassesOptions {
7
+ elementRef?: ElementRef<HTMLElement>;
8
+ injector?: Injector;
9
+ }
10
+
11
+ declare function provideSpartanHlm(): EnvironmentProviders;
12
+
13
+ export { classes, hlm, provideSpartanHlm };
@@ -1,111 +0,0 @@
1
- import * as _spartan_ng_brain_date_time from '@spartan-ng/brain/date-time';
2
- import * as _spartan_ng_brain_calendar from '@spartan-ng/brain/calendar';
3
- import { Weekday } from '@spartan-ng/brain/calendar';
4
- import * as _angular_core from '@angular/core';
5
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
6
- import { ClassValue } from 'clsx';
7
-
8
- declare class HlmCalendar<T> {
9
- readonly calendarClass: _angular_core.InputSignal<ClassValue>;
10
- protected readonly _computedCalenderClass: _angular_core.Signal<string>;
11
- /** Access the calendar i18n */
12
- protected readonly _i18n: _spartan_ng_brain_calendar.BrnCalendarI18nService;
13
- /** Access the date time adapter */
14
- protected readonly _dateAdapter: _spartan_ng_brain_date_time.BrnDateAdapter<T>;
15
- /** The minimum date that can be selected.*/
16
- readonly min: _angular_core.InputSignal<T | undefined>;
17
- /** The maximum date that can be selected. */
18
- readonly max: _angular_core.InputSignal<T | undefined>;
19
- /** Determine if the date picker is disabled. */
20
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
21
- /** The selected value. */
22
- readonly date: _angular_core.ModelSignal<T | undefined>;
23
- /** Whether a specific date is disabled. */
24
- readonly dateDisabled: _angular_core.InputSignal<(date: T) => boolean>;
25
- /** The day the week starts on */
26
- readonly weekStartsOn: _angular_core.InputSignalWithTransform<Weekday | undefined, NumberInput>;
27
- /** The default focused date. */
28
- readonly defaultFocusedDate: _angular_core.InputSignal<T | undefined>;
29
- /** Access the calendar directive */
30
- private readonly _calendar;
31
- /** Get the heading for the current month and year */
32
- protected readonly _heading: _angular_core.Signal<string>;
33
- protected readonly _btnClass: string;
34
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmCalendar<any>, never>;
35
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmCalendar<any>, "hlm-calendar", never, { "calendarClass": { "alias": "calendarClass"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "dateDisabled"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; }, { "date": "dateChange"; }, never, never, true, never>;
36
- }
37
-
38
- declare class HlmCalendarMulti<T> {
39
- readonly calendarClass: _angular_core.InputSignal<ClassValue>;
40
- protected readonly _computedCalenderClass: _angular_core.Signal<string>;
41
- /** Access the calendar i18n */
42
- protected readonly _i18n: _spartan_ng_brain_calendar.BrnCalendarI18nService;
43
- /** Access the date time adapter */
44
- protected readonly _dateAdapter: _spartan_ng_brain_date_time.BrnDateAdapter<T>;
45
- /** The minimum date that can be selected.*/
46
- readonly min: _angular_core.InputSignal<T | undefined>;
47
- /** The maximum date that can be selected. */
48
- readonly max: _angular_core.InputSignal<T | undefined>;
49
- /** The minimum selectable dates. */
50
- readonly minSelection: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
51
- /** The maximum selectable dates. */
52
- readonly maxSelection: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
53
- /** Determine if the date picker is disabled. */
54
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
55
- /** The selected value. */
56
- readonly date: _angular_core.ModelSignal<T[] | undefined>;
57
- /** Whether a specific date is disabled. */
58
- readonly dateDisabled: _angular_core.InputSignal<(date: T) => boolean>;
59
- /** The day the week starts on */
60
- readonly weekStartsOn: _angular_core.InputSignalWithTransform<Weekday | undefined, NumberInput>;
61
- /** The default focused date. */
62
- readonly defaultFocusedDate: _angular_core.InputSignal<T | undefined>;
63
- /** Access the calendar directive */
64
- private readonly _calendar;
65
- /** Get the heading for the current month and year */
66
- protected readonly _heading: _angular_core.Signal<string>;
67
- protected readonly _btnClass: string;
68
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmCalendarMulti<any>, never>;
69
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmCalendarMulti<any>, "hlm-calendar-multi", never, { "calendarClass": { "alias": "calendarClass"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minSelection": { "alias": "minSelection"; "required": false; "isSignal": true; }; "maxSelection": { "alias": "maxSelection"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "dateDisabled"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; }, { "date": "dateChange"; }, never, never, true, never>;
70
- }
71
-
72
- declare class HlmCalendarRange<T> {
73
- readonly calendarClass: _angular_core.InputSignal<ClassValue>;
74
- protected readonly _computedCalenderClass: _angular_core.Signal<string>;
75
- /** Access the calendar i18n */
76
- protected readonly _i18n: _spartan_ng_brain_calendar.BrnCalendarI18nService;
77
- /** Access the date time adapter */
78
- protected readonly _dateAdapter: _spartan_ng_brain_date_time.BrnDateAdapter<T>;
79
- /** The minimum date that can be selected.*/
80
- readonly min: _angular_core.InputSignal<T | undefined>;
81
- /** The maximum date that can be selected. */
82
- readonly max: _angular_core.InputSignal<T | undefined>;
83
- /** Determine if the date picker is disabled. */
84
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
85
- /** The start date of the range. */
86
- readonly startDate: _angular_core.ModelSignal<T | undefined>;
87
- /** The end date of the range. */
88
- readonly endDate: _angular_core.ModelSignal<T | undefined>;
89
- /** Whether a specific date is disabled. */
90
- readonly dateDisabled: _angular_core.InputSignal<(date: T) => boolean>;
91
- /** The day the week starts on */
92
- readonly weekStartsOn: _angular_core.InputSignalWithTransform<Weekday | undefined, NumberInput>;
93
- /** The default focused date. */
94
- readonly defaultFocusedDate: _angular_core.InputSignal<T | undefined>;
95
- /** Access the calendar directive */
96
- private readonly _calendar;
97
- /** Get the heading for the current month and year */
98
- protected readonly _heading: _angular_core.Signal<string>;
99
- protected readonly _btnClass: string;
100
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmCalendarRange<any>, never>;
101
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmCalendarRange<any>, "hlm-calendar-range", never, { "calendarClass": { "alias": "calendarClass"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "startDate": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "endDate"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "dateDisabled"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; }, { "startDate": "startDateChange"; "endDate": "endDateChange"; }, never, never, true, never>;
102
- }
103
-
104
- declare const HlmCalendarImports: readonly [typeof HlmCalendar, typeof HlmCalendarMulti, typeof HlmCalendarRange];
105
- declare class HlmCalendarModule {
106
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmCalendarModule, never>;
107
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmCalendarModule, never, [typeof HlmCalendar, typeof HlmCalendarMulti, typeof HlmCalendarRange], [typeof HlmCalendar, typeof HlmCalendarMulti, typeof HlmCalendarRange]>;
108
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmCalendarModule>;
109
- }
110
-
111
- export { HlmCalendar, HlmCalendarImports, HlmCalendarModule, HlmCalendarMulti, HlmCalendarRange };
@@ -1,227 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ValueProvider } from '@angular/core';
3
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
4
- import { ControlValueAccessor } from '@angular/forms';
5
- import { BrnDialogState } from '@spartan-ng/brain/dialog';
6
- import { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
7
- import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
8
- import { ClassValue } from 'clsx';
9
-
10
- declare const HLM_DATE_PICKER_VALUE_ACCESSOR: {
11
- provide: _angular_core.InjectionToken<readonly ControlValueAccessor[]>;
12
- useExisting: _angular_core.Type<any>;
13
- multi: boolean;
14
- };
15
- declare class HlmDatePicker<T> extends BrnFormFieldControl implements ControlValueAccessor {
16
- private readonly _config;
17
- readonly userClass: _angular_core.InputSignal<ClassValue>;
18
- protected readonly _computedClass: _angular_core.Signal<string>;
19
- /** The id of the button that opens the date picker. */
20
- readonly buttonId: _angular_core.InputSignal<string>;
21
- /** The minimum date that can be selected.*/
22
- readonly min: _angular_core.InputSignal<T | undefined>;
23
- /** The maximum date that can be selected. */
24
- readonly max: _angular_core.InputSignal<T | undefined>;
25
- /** Determine if the date picker is disabled. */
26
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
27
- /** The selected value. */
28
- readonly date: _angular_core.InputSignal<T | undefined>;
29
- protected readonly _mutableDate: _angular_core.WritableSignal<T | undefined>;
30
- /** If true, the date picker will close when a date is selected. */
31
- readonly autoCloseOnSelect: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
32
- /** Defines how the date should be displayed in the UI. */
33
- readonly formatDate: _angular_core.InputSignal<(date: T) => string>;
34
- /** Defines how the date should be transformed before saving to model/form. */
35
- readonly transformDate: _angular_core.InputSignal<(date: T) => T>;
36
- protected readonly _popoverState: _angular_core.WritableSignal<BrnDialogState | null>;
37
- protected readonly _mutableDisabled: _angular_core.WritableSignal<boolean>;
38
- protected readonly _formattedDate: _angular_core.Signal<string | undefined>;
39
- readonly dateChange: _angular_core.OutputEmitterRef<T>;
40
- protected _onChange?: ChangeFn<T>;
41
- protected _onTouched?: TouchFn;
42
- protected _handleChange(value: T): void;
43
- /** CONTROL VALUE ACCESSOR */
44
- writeValue(value: T | null): void;
45
- registerOnChange(fn: ChangeFn<T>): void;
46
- registerOnTouched(fn: TouchFn): void;
47
- setDisabledState(isDisabled: boolean): void;
48
- open(): void;
49
- close(): void;
50
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePicker<any>, never>;
51
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePicker<any>, "hlm-date-picker", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "buttonId": { "alias": "buttonId"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "autoCloseOnSelect": { "alias": "autoCloseOnSelect"; "required": false; "isSignal": true; }; "formatDate": { "alias": "formatDate"; "required": false; "isSignal": true; }; "transformDate": { "alias": "transformDate"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, never, ["*"], true, never>;
52
- }
53
-
54
- declare const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR: {
55
- provide: _angular_core.InjectionToken<readonly ControlValueAccessor[]>;
56
- useExisting: _angular_core.Type<any>;
57
- multi: boolean;
58
- };
59
- declare class HlmDatePickerMulti<T> implements ControlValueAccessor {
60
- private readonly _config;
61
- readonly userClass: _angular_core.InputSignal<ClassValue>;
62
- protected readonly _computedClass: _angular_core.Signal<string>;
63
- /** The id of the button that opens the date picker. */
64
- readonly buttonId: _angular_core.InputSignal<string>;
65
- /** The minimum date that can be selected.*/
66
- readonly min: _angular_core.InputSignal<T | undefined>;
67
- /** The maximum date that can be selected. */
68
- readonly max: _angular_core.InputSignal<T | undefined>;
69
- /** The minimum selectable dates. */
70
- readonly minSelection: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
71
- /** The maximum selectable dates. */
72
- readonly maxSelection: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
73
- /** Determine if the date picker is disabled. */
74
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
75
- /** The selected value. */
76
- readonly date: _angular_core.InputSignal<T[] | undefined>;
77
- protected readonly _mutableDate: _angular_core.WritableSignal<T[] | undefined>;
78
- /** If true, the date picker will close when the max selection of dates is reached. */
79
- readonly autoCloseOnMaxSelection: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
80
- /** Defines how the date should be displayed in the UI. */
81
- readonly formatDates: _angular_core.InputSignal<(date: T[]) => string>;
82
- /** Defines how the date should be transformed before saving to model/form. */
83
- readonly transformDates: _angular_core.InputSignal<(date: T[]) => T[]>;
84
- protected readonly _popoverState: _angular_core.WritableSignal<BrnDialogState | null>;
85
- protected readonly _mutableDisabled: _angular_core.WritableSignal<boolean>;
86
- protected readonly _formattedDate: _angular_core.Signal<string | undefined>;
87
- readonly dateChange: _angular_core.OutputEmitterRef<T[]>;
88
- protected _onChange?: ChangeFn<T[]>;
89
- protected _onTouched?: TouchFn;
90
- protected _handleChange(value: T[] | undefined): void;
91
- /** CONTROL VALUE ACCESSOR */
92
- writeValue(value: T[] | null): void;
93
- registerOnChange(fn: ChangeFn<T[]>): void;
94
- registerOnTouched(fn: TouchFn): void;
95
- setDisabledState(isDisabled: boolean): void;
96
- open(): void;
97
- close(): void;
98
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePickerMulti<any>, never>;
99
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePickerMulti<any>, "hlm-date-picker-multi", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "buttonId": { "alias": "buttonId"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minSelection": { "alias": "minSelection"; "required": false; "isSignal": true; }; "maxSelection": { "alias": "maxSelection"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "autoCloseOnMaxSelection": { "alias": "autoCloseOnMaxSelection"; "required": false; "isSignal": true; }; "formatDates": { "alias": "formatDates"; "required": false; "isSignal": true; }; "transformDates": { "alias": "transformDates"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, never, ["*"], true, never>;
100
- }
101
-
102
- declare const HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR: {
103
- provide: _angular_core.InjectionToken<readonly ControlValueAccessor[]>;
104
- useExisting: _angular_core.Type<any>;
105
- multi: boolean;
106
- };
107
- declare class HlmDateRangePicker<T> implements ControlValueAccessor {
108
- private readonly _config;
109
- readonly userClass: _angular_core.InputSignal<ClassValue>;
110
- protected readonly _computedClass: _angular_core.Signal<string>;
111
- /** The id of the button that opens the date picker. */
112
- readonly buttonId: _angular_core.InputSignal<string>;
113
- /** The minimum date that can be selected.*/
114
- readonly min: _angular_core.InputSignal<T | undefined>;
115
- /** The maximum date that can be selected. */
116
- readonly max: _angular_core.InputSignal<T | undefined>;
117
- /** Determine if the date picker is disabled. */
118
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
119
- /** The selected value. */
120
- readonly date: _angular_core.InputSignal<[T, T] | undefined>;
121
- protected readonly _mutableDate: _angular_core.WritableSignal<[T, T] | undefined>;
122
- protected readonly _start: _angular_core.WritableSignal<T | undefined>;
123
- protected readonly _end: _angular_core.WritableSignal<T | undefined>;
124
- /** If true, the date picker will close when the end date is selected */
125
- readonly autoCloseOnEndSelection: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
126
- /** Defines how the date should be displayed in the UI. */
127
- readonly formatDates: _angular_core.InputSignal<(dates: [T | undefined, T | undefined]) => string>;
128
- /** Defines how the date should be transformed before saving to model/form. */
129
- readonly transformDates: _angular_core.InputSignal<(date: [T, T]) => [T, T]>;
130
- protected readonly _popoverState: _angular_core.WritableSignal<BrnDialogState | null>;
131
- protected readonly _mutableDisabled: _angular_core.WritableSignal<boolean>;
132
- protected readonly _formattedDate: _angular_core.Signal<string | undefined>;
133
- readonly dateChange: _angular_core.OutputEmitterRef<[T, T] | null>;
134
- protected _onChange?: ChangeFn<[T, T] | null>;
135
- protected _onTouched?: TouchFn;
136
- protected _handleStartDayChange(value: T): void;
137
- protected _handleEndDateChange(value: T): void;
138
- /** CONTROL VALUE ACCESSOR */
139
- writeValue(value: [T, T] | null): void;
140
- registerOnChange(fn: ChangeFn<[T, T] | null>): void;
141
- registerOnTouched(fn: TouchFn): void;
142
- setDisabledState(isDisabled: boolean): void;
143
- open(): void;
144
- close(): void;
145
- protected _onClose(): void;
146
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDateRangePicker<any>, never>;
147
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDateRangePicker<any>, "hlm-date-range-picker", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "buttonId": { "alias": "buttonId"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "autoCloseOnEndSelection": { "alias": "autoCloseOnEndSelection"; "required": false; "isSignal": true; }; "formatDates": { "alias": "formatDates"; "required": false; "isSignal": true; }; "transformDates": { "alias": "transformDates"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, never, ["*"], true, never>;
148
- }
149
-
150
- interface HlmDatePickerMultiConfig<T> {
151
- /**
152
- * If true, the date picker will close when the max selection of dates is reached.
153
- */
154
- autoCloseOnMaxSelection: boolean;
155
- /**
156
- * Defines how the date should be displayed in the UI.
157
- *
158
- * @param dates
159
- * @returns formatted date
160
- */
161
- formatDates: (dates: T[]) => string;
162
- /**
163
- * Defines how the date should be transformed before saving to model/form.
164
- *
165
- * @param dates
166
- * @returns transformed date
167
- */
168
- transformDates: (dates: T[]) => T[];
169
- }
170
- declare function provideHlmDatePickerMultiConfig<T>(config: Partial<HlmDatePickerMultiConfig<T>>): ValueProvider;
171
- declare function injectHlmDatePickerMultiConfig<T>(): HlmDatePickerMultiConfig<T>;
172
-
173
- interface HlmDatePickerConfig<T> {
174
- /**
175
- * If true, the date picker will close when a date is selected.
176
- */
177
- autoCloseOnSelect: boolean;
178
- /**
179
- * Defines how the date should be displayed in the UI.
180
- *
181
- * @param date
182
- * @returns formatted date
183
- */
184
- formatDate: (date: T) => string;
185
- /**
186
- * Defines how the date should be transformed before saving to model/form.
187
- *
188
- * @param date
189
- * @returns transformed date
190
- */
191
- transformDate: (date: T) => T;
192
- }
193
- declare function provideHlmDatePickerConfig<T>(config: Partial<HlmDatePickerConfig<T>>): ValueProvider;
194
- declare function injectHlmDatePickerConfig<T>(): HlmDatePickerConfig<T>;
195
-
196
- interface HlmDateRangePickerConfig<T> {
197
- /**
198
- * If true, the date picker will close when the max selection of dates is reached.
199
- */
200
- autoCloseOnEndSelection: boolean;
201
- /**
202
- * Defines how the date should be displayed in the UI.
203
- *
204
- * @param dates
205
- * @returns formatted date
206
- */
207
- formatDates: (dates: [T | undefined, T | undefined]) => string;
208
- /**
209
- * Defines how the date should be transformed before saving to model/form.
210
- *
211
- * @param dates
212
- * @returns transformed date
213
- */
214
- transformDates: (dates: [T, T]) => [T, T];
215
- }
216
- declare function provideHlmDateRangePickerConfig<T>(config: Partial<HlmDateRangePickerConfig<T>>): ValueProvider;
217
- declare function injectHlmDateRangePickerConfig<T>(): HlmDateRangePickerConfig<T>;
218
-
219
- declare const HlmDatePickerImports: readonly [typeof HlmDatePicker, typeof HlmDatePickerMulti, typeof HlmDateRangePicker];
220
- declare class HlmDatePickerModule {
221
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePickerModule, never>;
222
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmDatePickerModule, never, [typeof HlmDatePicker, typeof HlmDatePickerMulti, typeof HlmDateRangePicker], [typeof HlmDatePicker, typeof HlmDatePickerMulti, typeof HlmDateRangePicker]>;
223
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmDatePickerModule>;
224
- }
225
-
226
- export { HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR, HLM_DATE_PICKER_VALUE_ACCESSOR, HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR, HlmDatePicker, HlmDatePickerImports, HlmDatePickerModule, HlmDatePickerMulti, HlmDateRangePicker, injectHlmDatePickerConfig, injectHlmDatePickerMultiConfig, injectHlmDateRangePickerConfig, provideHlmDatePickerConfig, provideHlmDatePickerMultiConfig, provideHlmDateRangePickerConfig };
227
- export type { HlmDatePickerConfig, HlmDatePickerMultiConfig, HlmDateRangePickerConfig };
package/input/index.d.ts DELETED
@@ -1,41 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { DoCheck } from '@angular/core';
3
- import * as class_variance_authority_types from 'class-variance-authority/types';
4
- import { NgControl } from '@angular/forms';
5
- import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
6
- import { VariantProps } from 'class-variance-authority';
7
- import { ClassValue } from 'clsx';
8
-
9
- declare const inputVariants: (props?: ({
10
- error?: boolean | "auto" | null | undefined;
11
- } & class_variance_authority_types.ClassProp) | undefined) => string;
12
- type InputVariants = VariantProps<typeof inputVariants>;
13
- declare class HlmInput implements BrnFormFieldControl, DoCheck {
14
- readonly error: _angular_core.InputSignal<boolean | "auto" | null | undefined>;
15
- protected readonly _state: _angular_core.WritableSignal<{
16
- error: boolean | "auto" | null | undefined;
17
- }>;
18
- readonly userClass: _angular_core.InputSignal<ClassValue>;
19
- protected readonly _computedClass: _angular_core.Signal<string>;
20
- private readonly _injector;
21
- readonly ngControl: NgControl | null;
22
- private readonly _errorStateTracker;
23
- private readonly _defaultErrorStateMatcher;
24
- private readonly _parentForm;
25
- private readonly _parentFormGroup;
26
- readonly errorState: _angular_core.Signal<boolean>;
27
- constructor();
28
- ngDoCheck(): void;
29
- setError(error: InputVariants['error']): void;
30
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmInput, never>;
31
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmInput, "[hlmInput]", never, { "error": { "alias": "error"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
32
- }
33
-
34
- declare const HlmInputImpots: readonly [typeof HlmInput];
35
- declare class HlmInputModule {
36
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmInputModule, never>;
37
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmInputModule, never, [typeof HlmInput], [typeof HlmInput]>;
38
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmInputModule>;
39
- }
40
-
41
- export { HlmInput, HlmInputImpots, HlmInputModule, inputVariants };
@@ -1,30 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { ClassValue } from 'clsx';
3
-
4
- declare class HlmPopoverClose {
5
- readonly userClass: i0.InputSignal<ClassValue>;
6
- protected readonly _computedClass: i0.Signal<string>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverClose, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverClose, "[hlmPopoverClose],[brnPopoverClose][hlm]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
- }
10
-
11
- declare class HlmPopoverContent {
12
- private readonly _stateProvider;
13
- state: i0.Signal<"open" | "closed">;
14
- private readonly _renderer;
15
- private readonly _element;
16
- constructor();
17
- readonly userClass: i0.InputSignal<ClassValue>;
18
- protected readonly _computedClass: i0.Signal<string>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverContent, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<HlmPopoverContent, "[hlmPopoverContent],[brnPopoverContent][hlm]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
21
- }
22
-
23
- declare const HlmPopoverImports: readonly [typeof HlmPopoverContent, typeof HlmPopoverClose];
24
- declare class HlmPopoverModule {
25
- static ɵfac: i0.ɵɵFactoryDeclaration<HlmPopoverModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<HlmPopoverModule, never, [typeof HlmPopoverContent, typeof HlmPopoverClose], [typeof HlmPopoverContent, typeof HlmPopoverClose]>;
27
- static ɵinj: i0.ɵɵInjectorDeclaration<HlmPopoverModule>;
28
- }
29
-
30
- export { HlmPopoverClose, HlmPopoverContent, HlmPopoverImports, HlmPopoverModule };
package/select/index.d.ts DELETED
@@ -1,92 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ClassValue } from 'clsx';
3
- import * as _spartan_ng_brain_core from '@spartan-ng/brain/core';
4
- import { BooleanInput } from '@angular/cdk/coercion';
5
- import * as i1 from '@spartan-ng/brain/select';
6
- import { BrnSelectOption, BrnSelect } from '@spartan-ng/brain/select';
7
- import * as class_variance_authority_types from 'class-variance-authority/types';
8
- import { HlmIcon } from '@egose/shadcn-theme-ng/icon';
9
-
10
- declare class HlmSelect {
11
- readonly userClass: _angular_core.InputSignal<ClassValue>;
12
- protected readonly _computedClass: _angular_core.Signal<string>;
13
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelect, never>;
14
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmSelect, "hlm-select, brn-select [hlm]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
- }
16
-
17
- declare class HlmSelectContent {
18
- readonly userClass: _angular_core.InputSignal<ClassValue>;
19
- readonly stickyLabels: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
20
- protected readonly _stateProvider: _spartan_ng_brain_core.ExposesState | null;
21
- protected readonly _sideProvider: _spartan_ng_brain_core.ExposesSide | null;
22
- protected readonly _computedClass: _angular_core.Signal<string>;
23
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectContent, never>;
24
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmSelectContent, "[hlmSelectContent], hlm-select-content", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "stickyLabels": { "alias": "stickyLabels"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
- }
26
-
27
- declare class HlmSelectGroup {
28
- readonly userClass: _angular_core.InputSignal<ClassValue>;
29
- protected readonly _computedClass: _angular_core.Signal<string>;
30
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectGroup, never>;
31
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmSelectGroup, "[hlmSelectGroup], hlm-select-group", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnSelectGroup; inputs: {}; outputs: {}; }]>;
32
- }
33
-
34
- declare class HlmSelectLabel {
35
- private readonly _selectContent;
36
- private readonly _stickyLabels;
37
- readonly userClass: _angular_core.InputSignal<ClassValue>;
38
- protected readonly _computedClass: _angular_core.Signal<string>;
39
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectLabel, never>;
40
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmSelectLabel, "[hlmSelectLabel], hlm-select-label", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnSelectLabel; inputs: {}; outputs: {}; }]>;
41
- }
42
-
43
- declare class HlmSelectOption {
44
- protected readonly _brnSelectOption: BrnSelectOption<any>;
45
- readonly userClass: _angular_core.InputSignal<ClassValue>;
46
- protected readonly _computedClass: _angular_core.Signal<string>;
47
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectOption, never>;
48
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmSelectOption, "hlm-option", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BrnSelectOption; inputs: { "disabled": "disabled"; "value": "value"; }; outputs: {}; }]>;
49
- }
50
-
51
- declare class HlmSelectScrollDown {
52
- readonly userClass: _angular_core.InputSignal<ClassValue>;
53
- protected readonly _computedClass: _angular_core.Signal<string>;
54
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectScrollDown, never>;
55
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmSelectScrollDown, "hlm-select-scroll-down", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
56
- }
57
-
58
- declare class HlmSelectScrollUp {
59
- readonly userClass: _angular_core.InputSignal<ClassValue>;
60
- protected readonly _computedClass: _angular_core.Signal<string>;
61
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectScrollUp, never>;
62
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmSelectScrollUp, "hlm-select-scroll-up", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
63
- }
64
-
65
- declare const selectTriggerVariants: (props?: ({
66
- error?: boolean | "auto" | null | undefined;
67
- } & class_variance_authority_types.ClassProp) | undefined) => string;
68
- declare class HlmSelectTrigger {
69
- protected readonly _icon: _angular_core.Signal<HlmIcon | undefined>;
70
- protected readonly _brnSelect: BrnSelect<any> | null;
71
- readonly userClass: _angular_core.InputSignal<ClassValue>;
72
- readonly size: _angular_core.InputSignal<"default" | "sm">;
73
- protected readonly _computedClass: _angular_core.Signal<string>;
74
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectTrigger, never>;
75
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmSelectTrigger, "hlm-select-trigger", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, ["_icon"], ["*", "ng-icon"], true, never>;
76
- }
77
-
78
- declare class HlmSelectValue {
79
- readonly userClass: _angular_core.InputSignal<ClassValue>;
80
- protected readonly _computedClass: _angular_core.Signal<string>;
81
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectValue, never>;
82
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmSelectValue, "hlm-select-value,[hlmSelectValue], brn-select-value[hlm]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
83
- }
84
-
85
- declare const HlmSelectImports: readonly [typeof HlmSelectContent, typeof HlmSelectTrigger, typeof HlmSelectOption, typeof HlmSelectValue, typeof HlmSelect, typeof HlmSelectScrollUp, typeof HlmSelectScrollDown, typeof HlmSelectLabel, typeof HlmSelectGroup];
86
- declare class HlmSelectModule {
87
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmSelectModule, never>;
88
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmSelectModule, never, [typeof HlmSelectContent, typeof HlmSelectTrigger, typeof HlmSelectOption, typeof HlmSelectValue, typeof HlmSelect, typeof HlmSelectScrollUp, typeof HlmSelectScrollDown, typeof HlmSelectLabel, typeof HlmSelectGroup], [typeof HlmSelectContent, typeof HlmSelectTrigger, typeof HlmSelectOption, typeof HlmSelectValue, typeof HlmSelect, typeof HlmSelectScrollUp, typeof HlmSelectScrollDown, typeof HlmSelectLabel, typeof HlmSelectGroup]>;
89
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmSelectModule>;
90
- }
91
-
92
- export { HlmSelect, HlmSelectContent, HlmSelectGroup, HlmSelectImports, HlmSelectLabel, HlmSelectModule, HlmSelectOption, HlmSelectScrollDown, HlmSelectScrollUp, HlmSelectTrigger, HlmSelectValue, selectTriggerVariants };
package/utils/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
-
3
- declare function hlm(...inputs: ClassValue[]): string;
4
-
5
- export { hlm };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes