@spartan-ng/brain 0.0.1-alpha.563 → 0.0.1-alpha.565

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 (272) hide show
  1. package/accordion/index.d.ts +125 -10
  2. package/alert-dialog/index.d.ts +40 -13
  3. package/autocomplete/index.d.ts +113 -15
  4. package/avatar/index.d.ts +40 -8
  5. package/button/index.d.ts +15 -3
  6. package/calendar/index.d.ts +465 -29
  7. package/checkbox/index.d.ts +156 -3
  8. package/collapsible/index.d.ts +70 -8
  9. package/command/index.d.ts +147 -16
  10. package/core/index.d.ts +153 -11
  11. package/date-time/index.d.ts +321 -3
  12. package/date-time-luxon/index.d.ts +32 -1
  13. package/dialog/index.d.ts +225 -21
  14. package/fesm2022/spartan-ng-brain-accordion.mjs +12 -12
  15. package/fesm2022/spartan-ng-brain-accordion.mjs.map +1 -1
  16. package/fesm2022/spartan-ng-brain-alert-dialog.mjs +18 -18
  17. package/fesm2022/spartan-ng-brain-alert-dialog.mjs.map +1 -1
  18. package/fesm2022/spartan-ng-brain-autocomplete.mjs +18 -18
  19. package/fesm2022/spartan-ng-brain-autocomplete.mjs.map +1 -1
  20. package/fesm2022/spartan-ng-brain-avatar.mjs +12 -12
  21. package/fesm2022/spartan-ng-brain-avatar.mjs.map +1 -1
  22. package/fesm2022/spartan-ng-brain-button.mjs +3 -3
  23. package/fesm2022/spartan-ng-brain-button.mjs.map +1 -1
  24. package/fesm2022/spartan-ng-brain-calendar.mjs +42 -42
  25. package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -1
  26. package/fesm2022/spartan-ng-brain-checkbox.mjs +5 -5
  27. package/fesm2022/spartan-ng-brain-checkbox.mjs.map +1 -1
  28. package/fesm2022/spartan-ng-brain-collapsible.mjs +9 -9
  29. package/fesm2022/spartan-ng-brain-collapsible.mjs.map +1 -1
  30. package/fesm2022/spartan-ng-brain-command.mjs +29 -34
  31. package/fesm2022/spartan-ng-brain-command.mjs.map +1 -1
  32. package/fesm2022/spartan-ng-brain-core.mjs.map +1 -1
  33. package/fesm2022/spartan-ng-brain-date-time-luxon.mjs.map +1 -1
  34. package/fesm2022/spartan-ng-brain-date-time.mjs.map +1 -1
  35. package/fesm2022/spartan-ng-brain-dialog.mjs +24 -24
  36. package/fesm2022/spartan-ng-brain-dialog.mjs.map +1 -1
  37. package/fesm2022/spartan-ng-brain-form-field.mjs +3 -3
  38. package/fesm2022/spartan-ng-brain-form-field.mjs.map +1 -1
  39. package/fesm2022/spartan-ng-brain-forms.mjs +6 -6
  40. package/fesm2022/spartan-ng-brain-forms.mjs.map +1 -1
  41. package/fesm2022/spartan-ng-brain-hover-card.mjs +12 -12
  42. package/fesm2022/spartan-ng-brain-hover-card.mjs.map +1 -1
  43. package/fesm2022/spartan-ng-brain-input-otp.mjs +6 -6
  44. package/fesm2022/spartan-ng-brain-input-otp.mjs.map +1 -1
  45. package/fesm2022/spartan-ng-brain-label.mjs +3 -3
  46. package/fesm2022/spartan-ng-brain-label.mjs.map +1 -1
  47. package/fesm2022/spartan-ng-brain-menu.mjs +24 -24
  48. package/fesm2022/spartan-ng-brain-menu.mjs.map +1 -1
  49. package/fesm2022/spartan-ng-brain-navigation-menu.mjs +21 -21
  50. package/fesm2022/spartan-ng-brain-navigation-menu.mjs.map +1 -1
  51. package/fesm2022/spartan-ng-brain-popover.mjs +12 -12
  52. package/fesm2022/spartan-ng-brain-popover.mjs.map +1 -1
  53. package/fesm2022/spartan-ng-brain-progress.mjs +6 -6
  54. package/fesm2022/spartan-ng-brain-progress.mjs.map +1 -1
  55. package/fesm2022/spartan-ng-brain-radio-group.mjs +6 -6
  56. package/fesm2022/spartan-ng-brain-radio-group.mjs.map +1 -1
  57. package/fesm2022/spartan-ng-brain-resizable.mjs +10 -11
  58. package/fesm2022/spartan-ng-brain-resizable.mjs.map +1 -1
  59. package/fesm2022/spartan-ng-brain-select.mjs +33 -33
  60. package/fesm2022/spartan-ng-brain-select.mjs.map +1 -1
  61. package/fesm2022/spartan-ng-brain-separator.mjs +3 -3
  62. package/fesm2022/spartan-ng-brain-separator.mjs.map +1 -1
  63. package/fesm2022/spartan-ng-brain-sheet.mjs +21 -21
  64. package/fesm2022/spartan-ng-brain-sheet.mjs.map +1 -1
  65. package/fesm2022/spartan-ng-brain-slider.mjs +17 -17
  66. package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -1
  67. package/fesm2022/spartan-ng-brain-switch.mjs +8 -8
  68. package/fesm2022/spartan-ng-brain-switch.mjs.map +1 -1
  69. package/fesm2022/spartan-ng-brain-tabs.mjs +15 -15
  70. package/fesm2022/spartan-ng-brain-tabs.mjs.map +1 -1
  71. package/fesm2022/spartan-ng-brain-toggle-group.mjs +6 -6
  72. package/fesm2022/spartan-ng-brain-toggle-group.mjs.map +1 -1
  73. package/fesm2022/spartan-ng-brain-toggle.mjs +3 -3
  74. package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -1
  75. package/fesm2022/spartan-ng-brain-tooltip.mjs +14 -14
  76. package/fesm2022/spartan-ng-brain-tooltip.mjs.map +1 -1
  77. package/fesm2022/spartan-ng-brain.mjs.map +1 -1
  78. package/form-field/index.d.ts +14 -1
  79. package/forms/index.d.ts +35 -3
  80. package/hover-card/index.d.ts +86 -5
  81. package/index.d.ts +2 -2
  82. package/input-otp/index.d.ts +82 -5
  83. package/label/index.d.ts +20 -3
  84. package/menu/index.d.ts +79 -17
  85. package/navigation-menu/index.d.ts +185 -13
  86. package/package.json +9 -9
  87. package/popover/index.d.ts +39 -9
  88. package/progress/index.d.ts +39 -6
  89. package/radio-group/index.d.ts +124 -6
  90. package/resizable/index.d.ts +103 -3
  91. package/select/index.d.ts +217 -21
  92. package/separator/index.d.ts +27 -4
  93. package/sheet/index.d.ts +51 -15
  94. package/slider/index.d.ts +100 -12
  95. package/switch/index.d.ts +141 -5
  96. package/tabs/index.d.ts +276 -10
  97. package/toggle/index.d.ts +30 -3
  98. package/toggle-group/index.d.ts +108 -6
  99. package/tooltip/index.d.ts +261 -10
  100. package/accordion/lib/brn-accordion-content.d.ts +0 -20
  101. package/accordion/lib/brn-accordion-item.d.ts +0 -28
  102. package/accordion/lib/brn-accordion-token.d.ts +0 -19
  103. package/accordion/lib/brn-accordion-trigger.d.ts +0 -16
  104. package/accordion/lib/brn-accordion.d.ts +0 -39
  105. package/alert-dialog/lib/brn-alert-dialog-content.d.ts +0 -6
  106. package/alert-dialog/lib/brn-alert-dialog-description.d.ts +0 -6
  107. package/alert-dialog/lib/brn-alert-dialog-overlay.d.ts +0 -6
  108. package/alert-dialog/lib/brn-alert-dialog-title.d.ts +0 -6
  109. package/alert-dialog/lib/brn-alert-dialog-trigger.d.ts +0 -10
  110. package/alert-dialog/lib/brn-alert-dialog.d.ts +0 -7
  111. package/autocomplete/lib/brn-autocomplete-empty.d.ts +0 -11
  112. package/autocomplete/lib/brn-autocomplete-group.d.ts +0 -8
  113. package/autocomplete/lib/brn-autocomplete-item.d.ts +0 -32
  114. package/autocomplete/lib/brn-autocomplete-item.token.d.ts +0 -4
  115. package/autocomplete/lib/brn-autocomplete-list.d.ts +0 -8
  116. package/autocomplete/lib/brn-autocomplete-search-input.d.ts +0 -13
  117. package/autocomplete/lib/brn-autocomplete.d.ts +0 -30
  118. package/autocomplete/lib/brn-autocomplete.token.d.ts +0 -5
  119. package/avatar/lib/brn-avatar.d.ts +0 -7
  120. package/avatar/lib/fallback/brn-avatar-fallback.d.ts +0 -9
  121. package/avatar/lib/fallback/index.d.ts +0 -1
  122. package/avatar/lib/image/brn-avatar-image.d.ts +0 -9
  123. package/avatar/lib/image/index.d.ts +0 -1
  124. package/avatar/lib/util/hex-color-for.d.ts +0 -1
  125. package/avatar/lib/util/index.d.ts +0 -3
  126. package/avatar/lib/util/initials.pipe.d.ts +0 -7
  127. package/avatar/lib/util/is-bright.d.ts +0 -1
  128. package/button/lib/brn-button.d.ts +0 -10
  129. package/calendar/lib/brn-calendar-cell-button.d.ts +0 -62
  130. package/calendar/lib/brn-calendar-cell.d.ts +0 -5
  131. package/calendar/lib/brn-calendar-grid.d.ts +0 -7
  132. package/calendar/lib/brn-calendar-header.d.ts +0 -7
  133. package/calendar/lib/brn-calendar-month-select.d.ts +0 -17
  134. package/calendar/lib/brn-calendar-next-button.d.ts +0 -13
  135. package/calendar/lib/brn-calendar-previous-button.d.ts +0 -13
  136. package/calendar/lib/brn-calendar-week.d.ts +0 -25
  137. package/calendar/lib/brn-calendar-weekday.d.ts +0 -28
  138. package/calendar/lib/brn-calendar-year-select.d.ts +0 -16
  139. package/calendar/lib/brn-calendar.d.ts +0 -74
  140. package/calendar/lib/brn-calendar.token.d.ts +0 -22
  141. package/calendar/lib/i18n/calendar-i18n.d.ts +0 -32
  142. package/calendar/lib/mode/brn-calendar-multiple.d.ts +0 -77
  143. package/calendar/lib/mode/brn-calendar-range.d.ts +0 -79
  144. package/checkbox/lib/brn-checkbox.d.ts +0 -151
  145. package/collapsible/lib/brn-collapsible-content.d.ts +0 -15
  146. package/collapsible/lib/brn-collapsible-token.d.ts +0 -16
  147. package/collapsible/lib/brn-collapsible-trigger.d.ts +0 -9
  148. package/collapsible/lib/brn-collapsible.d.ts +0 -24
  149. package/command/lib/brn-command-empty.d.ts +0 -11
  150. package/command/lib/brn-command-group.d.ts +0 -12
  151. package/command/lib/brn-command-item.d.ts +0 -42
  152. package/command/lib/brn-command-item.token.d.ts +0 -4
  153. package/command/lib/brn-command-list.d.ts +0 -8
  154. package/command/lib/brn-command-search-input.d.ts +0 -24
  155. package/command/lib/brn-command-search-input.token.d.ts +0 -4
  156. package/command/lib/brn-command.d.ts +0 -29
  157. package/command/lib/brn-command.token.d.ts +0 -11
  158. package/core/helpers/computed-previous.d.ts +0 -36
  159. package/core/helpers/create-hover-observable.d.ts +0 -7
  160. package/core/helpers/create-injection-token.d.ts +0 -20
  161. package/core/helpers/custom-element-class-settable.d.ts +0 -12
  162. package/core/helpers/debounced-signal.d.ts +0 -9
  163. package/core/helpers/dev-mode.d.ts +0 -5
  164. package/core/helpers/exposes-side.d.ts +0 -13
  165. package/core/helpers/exposes-state.d.ts +0 -13
  166. package/core/helpers/measure-dimensions.d.ts +0 -5
  167. package/core/helpers/table-classes-settable.d.ts +0 -16
  168. package/core/helpers/wait-for-element-animations.d.ts +0 -5
  169. package/core/helpers/zone-free.d.ts +0 -10
  170. package/date-time/lib/date-adapter.d.ts +0 -186
  171. package/date-time/lib/native-date-adapter.d.ts +0 -103
  172. package/date-time/lib/utc-date-adapter.d.ts +0 -28
  173. package/date-time-luxon/lib/date-adapter.d.ts +0 -29
  174. package/dialog/lib/brn-dialog-close.d.ts +0 -8
  175. package/dialog/lib/brn-dialog-content.d.ts +0 -12
  176. package/dialog/lib/brn-dialog-description.d.ts +0 -8
  177. package/dialog/lib/brn-dialog-options.d.ts +0 -26
  178. package/dialog/lib/brn-dialog-overlay.d.ts +0 -9
  179. package/dialog/lib/brn-dialog-ref.d.ts +0 -24
  180. package/dialog/lib/brn-dialog-state.d.ts +0 -1
  181. package/dialog/lib/brn-dialog-title.d.ts +0 -8
  182. package/dialog/lib/brn-dialog-token.d.ts +0 -29
  183. package/dialog/lib/brn-dialog-trigger.d.ts +0 -18
  184. package/dialog/lib/brn-dialog-utils.d.ts +0 -1
  185. package/dialog/lib/brn-dialog.d.ts +0 -61
  186. package/dialog/lib/brn-dialog.service.d.ts +0 -23
  187. package/form-field/lib/brn-form-field-control.d.ts +0 -11
  188. package/forms/lib/control-value-accessor.d.ts +0 -2
  189. package/forms/lib/error-options.d.ts +0 -14
  190. package/forms/lib/error-state-tracker.d.ts +0 -15
  191. package/hover-card/lib/brn-hover-card-content.service.d.ts +0 -72
  192. package/hover-card/lib/brn-hover-card.d.ts +0 -9
  193. package/input-otp/lib/brn-input-otp-slot.d.ts +0 -15
  194. package/input-otp/lib/brn-input-otp.d.ts +0 -61
  195. package/input-otp/lib/brn-input-otp.token.d.ts +0 -5
  196. package/label/lib/brn-label.d.ts +0 -15
  197. package/menu/lib/brn-context-menu-trigger.d.ts +0 -14
  198. package/menu/lib/brn-menu-align.d.ts +0 -4
  199. package/menu/lib/brn-menu-bar.d.ts +0 -6
  200. package/menu/lib/brn-menu-group.d.ts +0 -6
  201. package/menu/lib/brn-menu-item-checkbox.d.ts +0 -11
  202. package/menu/lib/brn-menu-item-radio.d.ts +0 -11
  203. package/menu/lib/brn-menu-item.d.ts +0 -10
  204. package/menu/lib/brn-menu-trigger.d.ts +0 -11
  205. package/menu/lib/brn-menu.d.ts +0 -11
  206. package/navigation-menu/lib/brn-navigation-menu-content.d.ts +0 -22
  207. package/navigation-menu/lib/brn-navigation-menu-content.service.d.ts +0 -44
  208. package/navigation-menu/lib/brn-navigation-menu-item-focusable.token.d.ts +0 -4
  209. package/navigation-menu/lib/brn-navigation-menu-item.d.ts +0 -23
  210. package/navigation-menu/lib/brn-navigation-menu-item.token.d.ts +0 -5
  211. package/navigation-menu/lib/brn-navigation-menu-link.d.ts +0 -22
  212. package/navigation-menu/lib/brn-navigation-menu-list.d.ts +0 -7
  213. package/navigation-menu/lib/brn-navigation-menu-trigger.d.ts +0 -44
  214. package/navigation-menu/lib/brn-navigation-menu.d.ts +0 -61
  215. package/navigation-menu/lib/brn-navigation-menu.token.d.ts +0 -5
  216. package/navigation-menu/lib/brn-parent-nav-menu.token.d.ts +0 -8
  217. package/popover/lib/brn-popover-close.d.ts +0 -6
  218. package/popover/lib/brn-popover-content.d.ts +0 -6
  219. package/popover/lib/brn-popover-trigger.d.ts +0 -10
  220. package/popover/lib/brn-popover.d.ts +0 -15
  221. package/progress/lib/brn-progress-indicator.d.ts +0 -6
  222. package/progress/lib/brn-progress.d.ts +0 -24
  223. package/progress/lib/brn-progress.token.d.ts +0 -4
  224. package/radio-group/lib/brn-radio-group.d.ts +0 -59
  225. package/radio-group/lib/brn-radio-group.token.d.ts +0 -4
  226. package/radio-group/lib/brn-radio.d.ts +0 -58
  227. package/resizable/lib/brn-resizable-group.d.ts +0 -37
  228. package/resizable/lib/brn-resizable-handle.d.ts +0 -26
  229. package/resizable/lib/brn-resizable-panel.d.ts +0 -39
  230. package/select/lib/brn-select-content.d.ts +0 -48
  231. package/select/lib/brn-select-content.token.d.ts +0 -4
  232. package/select/lib/brn-select-group.d.ts +0 -6
  233. package/select/lib/brn-select-label.d.ts +0 -9
  234. package/select/lib/brn-select-option.d.ts +0 -25
  235. package/select/lib/brn-select-placeholder.d.ts +0 -8
  236. package/select/lib/brn-select-trigger.d.ts +0 -24
  237. package/select/lib/brn-select-value-template.d.ts +0 -11
  238. package/select/lib/brn-select-value.d.ts +0 -18
  239. package/select/lib/brn-select.d.ts +0 -69
  240. package/select/lib/brn-select.token.d.ts +0 -4
  241. package/separator/lib/brn-separator.d.ts +0 -14
  242. package/separator/lib/brn-separator.token.d.ts +0 -7
  243. package/sheet/lib/brn-sheet-close.d.ts +0 -6
  244. package/sheet/lib/brn-sheet-content.d.ts +0 -8
  245. package/sheet/lib/brn-sheet-description.d.ts +0 -6
  246. package/sheet/lib/brn-sheet-overlay.d.ts +0 -6
  247. package/sheet/lib/brn-sheet-title.d.ts +0 -6
  248. package/sheet/lib/brn-sheet-trigger.d.ts +0 -10
  249. package/sheet/lib/brn-sheet.d.ts +0 -10
  250. package/slider/lib/brn-slider-range.d.ts +0 -7
  251. package/slider/lib/brn-slider-thumb.d.ts +0 -24
  252. package/slider/lib/brn-slider-tick.d.ts +0 -12
  253. package/slider/lib/brn-slider-track.d.ts +0 -12
  254. package/slider/lib/brn-slider-track.token.d.ts +0 -5
  255. package/slider/lib/brn-slider.d.ts +0 -39
  256. package/slider/lib/brn-slider.token.d.ts +0 -4
  257. package/switch/lib/brn-switch-thumb.d.ts +0 -5
  258. package/switch/lib/brn-switch.d.ts +0 -131
  259. package/tabs/lib/brn-tabs-content.d.ts +0 -15
  260. package/tabs/lib/brn-tabs-list.d.ts +0 -17
  261. package/tabs/lib/brn-tabs-paginated-list.d.ts +0 -196
  262. package/tabs/lib/brn-tabs-trigger.d.ts +0 -21
  263. package/tabs/lib/brn-tabs.d.ts +0 -38
  264. package/toggle/lib/brn-toggle.d.ts +0 -25
  265. package/toggle-group/lib/brn-toggle-group.d.ts +0 -68
  266. package/toggle-group/lib/brn-toggle-group.token.d.ts +0 -4
  267. package/toggle-group/lib/brn-toggle-item.d.ts +0 -31
  268. package/tooltip/lib/brn-tooltip-content-template.d.ts +0 -8
  269. package/tooltip/lib/brn-tooltip-content.d.ts +0 -73
  270. package/tooltip/lib/brn-tooltip-trigger.d.ts +0 -141
  271. package/tooltip/lib/brn-tooltip.d.ts +0 -7
  272. package/tooltip/lib/brn-tooltip.token.d.ts +0 -28
@@ -1,186 +0,0 @@
1
- import { type ClassProvider, InjectionToken, type Type } from '@angular/core';
2
- /**
3
- * An abstraction that can be used to create and modify date time objects
4
- * immutably regardless of the underlying implementation.
5
- */
6
- export interface BrnDateAdapter<T> {
7
- /**
8
- * Create a new date time object.
9
- */
10
- create(values: BrnDateUnits): T;
11
- /**
12
- * Create a new date with the current date and time.
13
- */
14
- now(): T;
15
- /**
16
- * Set the year of the date time object based on a duration.
17
- */
18
- set(date: T, values: BrnDateUnits): T;
19
- /**
20
- * Add a duration to the date time object.
21
- */
22
- add(date: T, duration: BrnDuration): T;
23
- /**
24
- * Subtract a duration from the date time object.
25
- */
26
- subtract(date: T, duration: BrnDuration): T;
27
- /**
28
- * Compare two date time objects.
29
- */
30
- compare(a: T, b: T): number;
31
- /**
32
- * Determine if two date time objects are equal.
33
- */
34
- isEqual(a: T, b: T): boolean;
35
- /**
36
- * Determine if a date time object is before another.
37
- */
38
- isBefore(a: T, b: T): boolean;
39
- /**
40
- * Determine if a date time object is after another.
41
- */
42
- isAfter(a: T, b: T): boolean;
43
- /**
44
- * Determine if two date objects are on the same day.
45
- */
46
- isSameDay(a: T, b: T): boolean;
47
- /**
48
- * Determine if two date objects are on the same month.
49
- */
50
- isSameMonth(a: T, b: T): boolean;
51
- /**
52
- * Determine if two date objects are on the same year.
53
- */
54
- isSameYear(a: T, b: T): boolean;
55
- /**
56
- * Get the year.
57
- */
58
- getYear(date: T): number;
59
- /**
60
- * Get the month.
61
- */
62
- getMonth(date: T): number;
63
- /**
64
- * Get the date.
65
- */
66
- getDate(date: T): number;
67
- /**
68
- * Get the day of the week.
69
- *
70
- * Returns a value between 0 and 6 where 0 is Sunday
71
- */
72
- getDay(date: T): number;
73
- /**
74
- * Get the hours.
75
- */
76
- getHours(date: T): number;
77
- /**
78
- * Get the minutes.
79
- */
80
- getMinutes(date: T): number;
81
- /**
82
- * Get the seconds.
83
- */
84
- getSeconds(date: T): number;
85
- /**
86
- * Get the milliseconds.
87
- */
88
- getMilliseconds(date: T): number;
89
- /**
90
- * Get the time.
91
- */
92
- getTime(date: T): number;
93
- /**
94
- * Get the first day of the month.
95
- */
96
- startOfMonth(date: T): T;
97
- /**
98
- * Get the last day of the month.
99
- */
100
- endOfMonth(date: T): T;
101
- /**
102
- * Get the start of the day.
103
- */
104
- startOfDay(date: T): T;
105
- /**
106
- * Get the end of the day.
107
- */
108
- endOfDay(date: T): T;
109
- }
110
- export interface BrnDateUnits {
111
- /**
112
- * The year.
113
- */
114
- year?: number;
115
- /**
116
- * The month.
117
- */
118
- month?: number;
119
- /**
120
- * The day.
121
- */
122
- day?: number;
123
- /**
124
- * The hour.
125
- */
126
- hour?: number;
127
- /**
128
- * The minute.
129
- */
130
- minute?: number;
131
- /**
132
- * The second.
133
- */
134
- second?: number;
135
- /**
136
- * The millisecond.
137
- */
138
- millisecond?: number;
139
- }
140
- export interface BrnDuration {
141
- /**
142
- * The years.
143
- */
144
- years?: number;
145
- /**
146
- * The months.
147
- */
148
- months?: number;
149
- /**
150
- * The days.
151
- */
152
- days?: number;
153
- /**
154
- * The hours.
155
- */
156
- hours?: number;
157
- /**
158
- * The minutes.
159
- */
160
- minutes?: number;
161
- /**
162
- * The seconds.
163
- */
164
- seconds?: number;
165
- /**
166
- * The milliseconds.
167
- */
168
- milliseconds?: number;
169
- }
170
- export declare const BrnDateAdapterToken: InjectionToken<BrnDateAdapter<unknown>>;
171
- /**
172
- * Inject the DateAdapter instance
173
- */
174
- export declare function injectDateAdapter<T>(): BrnDateAdapter<T>;
175
- /**
176
- * Provide the DateAdapter instance
177
- */
178
- export declare function provideDateAdapter<T>(adapter: Type<BrnDateAdapter<T>>): ClassProvider;
179
- /**
180
- * Provide the native date adapter
181
- */
182
- export declare function provideNativeDateAdapter(): ClassProvider;
183
- /**
184
- * Provide the UTC date adapter
185
- */
186
- export declare function provideUtcDateAdapter(): ClassProvider;
@@ -1,103 +0,0 @@
1
- import type { BrnDateAdapter, BrnDateUnits, BrnDuration } from './date-adapter';
2
- export declare class BrnNativeDateAdapter implements BrnDateAdapter<Date> {
3
- /**
4
- * Create a new date time object.
5
- */
6
- create({ day, hour, minute, month, second, year, millisecond }: BrnDateUnits): Date;
7
- /**
8
- * Create a new date with the current date and time.
9
- */
10
- now(): Date;
11
- /**
12
- * Set the year of the date time object based on a duration.
13
- */
14
- set(date: Date, values: BrnDateUnits): Date;
15
- /**
16
- * Add a duration to the date time object.
17
- */
18
- add(date: Date, duration: BrnDuration): Date;
19
- /**
20
- * Subtract a duration from the date time object
21
- */
22
- subtract(date: Date, duration: BrnDuration): Date;
23
- /**
24
- * Compare two date time objects
25
- */
26
- compare(a: Date, b: Date): number;
27
- /**
28
- * Determine if two date time objects are equal.
29
- */
30
- isEqual(a: Date, b: Date): boolean;
31
- /**
32
- * Determine if a date time object is before another.
33
- */
34
- isBefore(a: Date, b: Date): boolean;
35
- /**
36
- * Determine if a date time object is after another.
37
- */
38
- isAfter(a: Date, b: Date): boolean;
39
- /**
40
- * Determine if two date objects are on the same day.
41
- */
42
- isSameDay(a: Date, b: Date): boolean;
43
- /**
44
- * Determine if two date objects are on the same month.
45
- */
46
- isSameMonth(a: Date, b: Date): boolean;
47
- /**
48
- * Determine if two date objects are on the same year.
49
- */
50
- isSameYear(a: Date, b: Date): boolean;
51
- /**
52
- * Get the year.
53
- */
54
- getYear(date: Date): number;
55
- /**
56
- * Get the month.
57
- */
58
- getMonth(date: Date): number;
59
- /**
60
- * Get the day.
61
- */
62
- getDay(date: Date): number;
63
- /**
64
- * Get the date.
65
- */
66
- getDate(date: Date): number;
67
- /**
68
- * Get the hours.
69
- */
70
- getHours(date: Date): number;
71
- /**
72
- * Get the minutes.
73
- */
74
- getMinutes(date: Date): number;
75
- /**
76
- * Get the seconds.
77
- */
78
- getSeconds(date: Date): number;
79
- /**
80
- * Get the milliseconds.
81
- */
82
- getMilliseconds(date: Date): number;
83
- /**
84
- * Get the first day of the month.
85
- */
86
- startOfMonth(date: Date): Date;
87
- /**
88
- * Get the last day of the month.
89
- */
90
- endOfMonth(date: Date): Date;
91
- /**
92
- * Get the start of the day.
93
- */
94
- startOfDay(date: Date): Date;
95
- /**
96
- * Get the end of the day.
97
- */
98
- endOfDay(date: Date): Date;
99
- /**
100
- * Get the time.
101
- */
102
- getTime(date: Date): number;
103
- }
@@ -1,28 +0,0 @@
1
- import type { BrnDateAdapter, BrnDateUnits, BrnDuration } from './date-adapter';
2
- export declare class BrnUtcDateAdapter implements BrnDateAdapter<Date> {
3
- create({ day, hour, minute, month, second, year, millisecond }: BrnDateUnits): Date;
4
- now(): Date;
5
- set(date: Date, values: BrnDateUnits): Date;
6
- add(date: Date, duration: BrnDuration): Date;
7
- subtract(date: Date, duration: BrnDuration): Date;
8
- compare(a: Date, b: Date): number;
9
- isEqual(a: Date, b: Date): boolean;
10
- isBefore(a: Date, b: Date): boolean;
11
- isAfter(a: Date, b: Date): boolean;
12
- isSameDay(a: Date, b: Date): boolean;
13
- isSameMonth(a: Date, b: Date): boolean;
14
- isSameYear(a: Date, b: Date): boolean;
15
- getYear(date: Date): number;
16
- getMonth(date: Date): number;
17
- getDay(date: Date): number;
18
- getDate(date: Date): number;
19
- getHours(date: Date): number;
20
- getMinutes(date: Date): number;
21
- getSeconds(date: Date): number;
22
- getMilliseconds(date: Date): number;
23
- getTime(date: Date): number;
24
- startOfMonth(date: Date): Date;
25
- endOfMonth(date: Date): Date;
26
- startOfDay(date: Date): Date;
27
- endOfDay(date: Date): Date;
28
- }
@@ -1,29 +0,0 @@
1
- import type { BrnDateAdapter, BrnDateUnits, BrnDuration } from '@spartan-ng/brain/date-time';
2
- import { DateTime } from 'luxon';
3
- export declare class BrnLuxonDateAdapter implements BrnDateAdapter<DateTime> {
4
- now(): DateTime<true>;
5
- set(date: DateTime, values: BrnDateUnits): DateTime<boolean>;
6
- add(date: DateTime, duration: BrnDuration): DateTime<boolean>;
7
- subtract(date: DateTime, duration: BrnDuration): DateTime<boolean>;
8
- compare(a: DateTime, b: DateTime): number;
9
- isEqual(a: DateTime, b: DateTime): boolean;
10
- isBefore(a: DateTime, b: DateTime): boolean;
11
- isAfter(a: DateTime, b: DateTime): boolean;
12
- isSameDay(a: DateTime, b: DateTime): boolean;
13
- isSameMonth(a: DateTime, b: DateTime): boolean;
14
- isSameYear(a: DateTime, b: DateTime): boolean;
15
- getYear(date: DateTime): number;
16
- getMonth(date: DateTime): number;
17
- getDate(date: DateTime): number;
18
- getDay(date: DateTime): number;
19
- getHours(date: DateTime): number;
20
- getMinutes(date: DateTime): number;
21
- getSeconds(date: DateTime): number;
22
- getMilliseconds(date: DateTime): number;
23
- getTime(date: DateTime<boolean>): number;
24
- startOfMonth(date: DateTime): DateTime<boolean>;
25
- endOfMonth(date: DateTime): DateTime<boolean>;
26
- startOfDay(date: DateTime): DateTime<boolean>;
27
- endOfDay(date: DateTime): DateTime<boolean>;
28
- create(values: BrnDateUnits): DateTime<true> | DateTime<false>;
29
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BrnDialogClose {
3
- private readonly _brnDialogRef;
4
- readonly delay: import("@angular/core").InputSignalWithTransform<number | undefined, number>;
5
- close(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialogClose, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<BrnDialogClose, "button[brnDialogClose]", never, { "delay": { "alias": "delay"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BrnDialogContent<T> {
3
- private readonly _brnDialog;
4
- private readonly _brnDialogRef;
5
- private readonly _template;
6
- readonly state: import("@angular/core").Signal<import("@spartan-ng/brain/dialog").BrnDialogState>;
7
- readonly className: import("@angular/core").InputSignal<string | null | undefined>;
8
- readonly context: import("@angular/core").InputSignal<T | undefined>;
9
- constructor();
10
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialogContent<any>, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<BrnDialogContent<any>, "[brnDialogContent]", never, { "className": { "alias": "class"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BrnDialogDescription {
3
- private readonly _brnDialogRef;
4
- protected readonly _id: import("@angular/core").WritableSignal<string>;
5
- constructor();
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialogDescription, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<BrnDialogDescription, "[brnDialogDescription]", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,26 +0,0 @@
1
- import type { AutoFocusTarget } from '@angular/cdk/dialog';
2
- import type { ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, PositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
3
- import type { ElementRef, StaticProvider } from '@angular/core';
4
- export type BrnDialogOptions = {
5
- id: string;
6
- role: 'dialog' | 'alertdialog';
7
- hasBackdrop: boolean;
8
- panelClass: string | string[];
9
- backdropClass: string | string[];
10
- positionStrategy: PositionStrategy | null | undefined;
11
- scrollStrategy: ScrollStrategy | null | undefined;
12
- restoreFocus: boolean | string | ElementRef;
13
- closeDelay: number;
14
- closeOnOutsidePointerEvents: boolean;
15
- closeOnBackdropClick: boolean;
16
- attachTo: FlexibleConnectedPositionStrategyOrigin | null | undefined;
17
- attachPositions: ConnectedPosition[];
18
- autoFocus: AutoFocusTarget | (Record<never, never> & string);
19
- disableClose: boolean;
20
- ariaDescribedBy: string | null | undefined;
21
- ariaLabelledBy: string | null | undefined;
22
- ariaLabel: string | null | undefined;
23
- ariaModal: boolean;
24
- providers?: StaticProvider[] | (() => StaticProvider[]);
25
- };
26
- export declare const DEFAULT_BRN_DIALOG_OPTIONS: Readonly<Partial<BrnDialogOptions>>;
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BrnDialogOverlay {
3
- private readonly _brnDialog;
4
- readonly className: import("@angular/core").InputSignal<string | null | undefined>;
5
- setClassToCustomElement(newClass: string): void;
6
- constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialogOverlay, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<BrnDialogOverlay, "brn-dialog-overlay", never, { "className": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
- }
@@ -1,24 +0,0 @@
1
- import type { DialogRef } from '@angular/cdk/dialog';
2
- import type { Signal, WritableSignal } from '@angular/core';
3
- import { type Observable } from 'rxjs';
4
- import type { BrnDialogOptions } from './brn-dialog-options';
5
- import type { BrnDialogState } from './brn-dialog-state';
6
- export declare class BrnDialogRef<DialogResult = any> {
7
- private readonly _cdkDialogRef;
8
- private readonly _open;
9
- readonly state: Signal<BrnDialogState>;
10
- readonly dialogId: number;
11
- private readonly _options?;
12
- private readonly _closing$;
13
- readonly closing$: Observable<void>;
14
- readonly closed$: Observable<DialogResult | undefined>;
15
- private _previousTimeout;
16
- get open(): boolean;
17
- constructor(_cdkDialogRef: DialogRef<DialogResult>, _open: WritableSignal<boolean>, state: Signal<BrnDialogState>, dialogId: number, _options?: BrnDialogOptions | undefined);
18
- close(result?: DialogResult, delay?: number): void;
19
- setPanelClass(paneClass: string | null | undefined): void;
20
- setOverlayClass(overlayClass: string | null | undefined): void;
21
- setAriaDescribedBy(ariaDescribedBy: string | null | undefined): void;
22
- setAriaLabelledBy(ariaLabelledBy: string | null | undefined): void;
23
- setAriaLabel(ariaLabel: string | null | undefined): void;
24
- }
@@ -1 +0,0 @@
1
- export type BrnDialogState = 'closed' | 'open';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BrnDialogTitle {
3
- private readonly _brnDialogRef;
4
- protected readonly _id: import("@angular/core").WritableSignal<string>;
5
- constructor();
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialogTitle, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<BrnDialogTitle, "[brnDialogTitle]", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,29 +0,0 @@
1
- import { type ValueProvider } from '@angular/core';
2
- import type { BrnDialogOptions } from './brn-dialog-options';
3
- export interface BrnDialogDefaultOptions {
4
- /** A connected position as specified by the user. */
5
- attachPositions: BrnDialogOptions['attachPositions'];
6
- /** Options for where to set focus to automatically on dialog open */
7
- autoFocus: BrnDialogOptions['autoFocus'];
8
- /** The delay in milliseconds before the dialog closes. */
9
- closeDelay: number;
10
- /** Close dialog on backdrop click */
11
- closeOnBackdropClick: boolean;
12
- /** Close dialog on outside pointer event */
13
- closeOnOutsidePointerEvents: boolean;
14
- /** Whether the dialog closes with the escape key or pointer events outside the panel element. */
15
- disableClose: boolean;
16
- /** Whether the dialog has a backdrop. */
17
- hasBackdrop: boolean;
18
- /** Strategy to use when positioning the dialog */
19
- positionStrategy: BrnDialogOptions['positionStrategy'];
20
- /** Whether the dialog should restore focus to the previously-focused element upon closing. */
21
- restoreFocus: BrnDialogOptions['restoreFocus'];
22
- /** The role of the dialog */
23
- role: BrnDialogOptions['role'];
24
- /** Scroll strategy to be used for the dialog. */
25
- scrollStrategy: BrnDialogOptions['scrollStrategy'] | 'close' | 'reposition';
26
- }
27
- export declare const defaultOptions: BrnDialogDefaultOptions;
28
- export declare function provideBrnDialogDefaultOptions(options: Partial<BrnDialogDefaultOptions>): ValueProvider;
29
- export declare function injectBrnDialogDefaultOptions(): BrnDialogDefaultOptions;
@@ -1,18 +0,0 @@
1
- import { BrnDialog } from './brn-dialog';
2
- import { BrnDialogRef } from './brn-dialog-ref';
3
- import type { BrnDialogState } from './brn-dialog-state';
4
- import * as i0 from "@angular/core";
5
- export declare class BrnDialogTrigger {
6
- protected _brnDialog: BrnDialog | null;
7
- protected readonly _brnDialogRef: BrnDialogRef<any> | null;
8
- readonly id: import("@angular/core").InputSignal<string>;
9
- readonly state: import("@angular/core").Signal<BrnDialogState>;
10
- readonly dialogId: string;
11
- readonly brnDialogTriggerFor: import("@angular/core").InputSignal<BrnDialog | undefined>;
12
- readonly mutableBrnDialogTriggerFor: import("@angular/core").Signal<import("@angular/core").WritableSignal<BrnDialog | undefined>>;
13
- readonly brnDialogTriggerForState: import("@angular/core").Signal<BrnDialog | undefined>;
14
- constructor();
15
- open(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialogTrigger, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<BrnDialogTrigger, "button[brnDialogTrigger],button[brnDialogTriggerFor]", ["brnDialogTrigger"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "brnDialogTriggerFor": { "alias": "brnDialogTriggerFor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
- }
@@ -1 +0,0 @@
1
- export declare const cssClassesToArray: (classes: string | string[] | undefined | null, defaultClass?: string) => string[];
@@ -1,61 +0,0 @@
1
- import { OverlayPositionBuilder, type ScrollStrategy, ScrollStrategyOptions } from '@angular/cdk/overlay';
2
- import { type TemplateRef } from '@angular/core';
3
- import type { BrnDialogOptions } from './brn-dialog-options';
4
- import type { BrnDialogState } from './brn-dialog-state';
5
- import * as i0 from "@angular/core";
6
- export declare class BrnDialog {
7
- private readonly _dialogService;
8
- private readonly _vcr;
9
- readonly positionBuilder: OverlayPositionBuilder;
10
- readonly ssos: ScrollStrategyOptions;
11
- private readonly _injector;
12
- protected readonly _defaultOptions: import("./brn-dialog-token").BrnDialogDefaultOptions;
13
- private _context;
14
- readonly stateComputed: import("@angular/core").Signal<BrnDialogState>;
15
- private _contentTemplate;
16
- private readonly _dialogRef;
17
- private _dialogStateEffectRef?;
18
- private readonly _backdropClass;
19
- private readonly _panelClass;
20
- readonly closed: import("@angular/core").OutputEmitterRef<any>;
21
- readonly stateChanged: import("@angular/core").OutputEmitterRef<BrnDialogState>;
22
- readonly state: import("@angular/core").InputSignal<BrnDialogState | null>;
23
- readonly role: import("@angular/core").InputSignal<"dialog" | "alertdialog">;
24
- readonly hasBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
- readonly positionStrategy: import("@angular/core").InputSignal<import("@angular/cdk/overlay").PositionStrategy | null | undefined>;
26
- readonly mutablePositionStrategy: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").PositionStrategy | null | undefined>;
27
- readonly scrollStrategy: import("@angular/core").InputSignal<ScrollStrategy | "close" | "reposition" | null | undefined>;
28
- protected readonly _options: import("@angular/core").Signal<Partial<BrnDialogOptions>>;
29
- constructor();
30
- readonly restoreFocus: import("@angular/core").InputSignal<string | boolean | import("@angular/core").ElementRef<any>>;
31
- readonly closeOnOutsidePointerEvents: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
32
- readonly mutableCloseOnOutsidePointerEvents: import("@angular/core").WritableSignal<boolean>;
33
- readonly closeOnBackdropClick: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
34
- readonly attachTo: import("@angular/core").InputSignal<import("@angular/cdk/overlay").FlexibleConnectedPositionStrategyOrigin | null | undefined>;
35
- readonly mutableAttachTo: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").FlexibleConnectedPositionStrategyOrigin | null | undefined>;
36
- readonly attachPositions: import("@angular/core").InputSignal<import("@angular/cdk/overlay").ConnectedPosition[]>;
37
- readonly mutableAttachPositions: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").ConnectedPosition[]>;
38
- readonly autoFocus: import("@angular/core").InputSignal<import("@angular/cdk/dialog").AutoFocusTarget | (Record<never, never> & string)>;
39
- readonly closeDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
40
- readonly disableClose: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
41
- readonly ariaDescribedBy: import("@angular/core").InputSignal<string | null | undefined>;
42
- private readonly _mutableAriaDescribedBy;
43
- readonly ariaLabelledBy: import("@angular/core").InputSignal<string | null | undefined>;
44
- private readonly _mutableAriaLabelledBy;
45
- readonly ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
46
- private readonly _mutableAriaLabel;
47
- readonly ariaModal: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
48
- private readonly _mutableAriaModal;
49
- open<DialogContext>(): void;
50
- close(result?: any, delay?: number): void;
51
- registerTemplate(template: TemplateRef<unknown>): void;
52
- setOverlayClass(overlayClass: string | null | undefined): void;
53
- setPanelClass(panelClass: string | null | undefined): void;
54
- setContext(context: unknown): void;
55
- setAriaDescribedBy(ariaDescribedBy: string | null | undefined): void;
56
- setAriaLabelledBy(ariaLabelledBy: string | null | undefined): void;
57
- setAriaLabel(ariaLabel: string | null | undefined): void;
58
- setAriaModal(ariaModal: boolean): void;
59
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialog, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<BrnDialog, "brn-dialog", ["brnDialog"], { "state": { "alias": "state"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "positionStrategy": { "alias": "positionStrategy"; "required": false; "isSignal": true; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; "isSignal": true; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; "isSignal": true; }; "closeOnOutsidePointerEvents": { "alias": "closeOnOutsidePointerEvents"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "attachTo": { "alias": "attachTo"; "required": false; "isSignal": true; }; "attachPositions": { "alias": "attachPositions"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "closeDelay": { "alias": "closeDelay"; "required": false; "isSignal": true; }; "disableClose": { "alias": "disableClose"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaModal": { "alias": "aria-modal"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "stateChanged": "stateChanged"; }, never, ["*"], true, never>;
61
- }
@@ -1,23 +0,0 @@
1
- import { type ComponentType } from '@angular/cdk/overlay';
2
- import { type InjectOptions, type TemplateRef, type ViewContainerRef } from '@angular/core';
3
- import type { BrnDialogOptions } from './brn-dialog-options';
4
- import { BrnDialogRef } from './brn-dialog-ref';
5
- import * as i0 from "@angular/core";
6
- export type BrnDialogContext<T> = T & {
7
- close: (result?: any) => void;
8
- };
9
- /** @deprecated `injectBrnDialogCtx` will no longer be supported once components are stable. Use `injectBrnDialogContext` instead. */
10
- export declare const injectBrnDialogCtx: <T>() => BrnDialogContext<T>;
11
- export declare const injectBrnDialogContext: <DialogContext = any>(options?: InjectOptions) => DialogContext;
12
- export declare class BrnDialogService {
13
- private readonly _overlayCloseDispatcher;
14
- private readonly _cdkDialog;
15
- private readonly _rendererFactory;
16
- private readonly _renderer;
17
- private readonly _positionBuilder;
18
- private readonly _sso;
19
- private readonly _injector;
20
- open<DialogContext>(content: ComponentType<unknown> | TemplateRef<unknown>, vcr?: ViewContainerRef, context?: DialogContext, options?: Partial<BrnDialogOptions>): BrnDialogRef<any>;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnDialogService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<BrnDialogService>;
23
- }
@@ -1,11 +0,0 @@
1
- import { type Signal } from '@angular/core';
2
- import type { AbstractControl, NgControl } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class BrnFormFieldControl {
5
- /** Gets the AbstractControlDirective for this control. */
6
- readonly ngControl: NgControl | AbstractControl | null;
7
- /** Whether the control is in an error state. */
8
- readonly errorState: Signal<boolean>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<BrnFormFieldControl, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<BrnFormFieldControl, never, never, {}, {}, never, never, true, never>;
11
- }
@@ -1,2 +0,0 @@
1
- export type ChangeFn<T> = (value: T) => void;
2
- export type TouchFn = () => void;
@@ -1,14 +0,0 @@
1
- import { type AbstractControl, type FormGroupDirective, NgForm } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- /** Error state matcher that matches when a control is invalid and dirty. */
4
- export declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
5
- isInvalid(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
8
- }
9
- /** Provider that defines how form controls behave with regards to displaying error messages. */
10
- export declare class ErrorStateMatcher {
11
- isInvalid(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatcher, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatcher>;
14
- }
@@ -1,15 +0,0 @@
1
- import type { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
2
- import type { ErrorStateMatcher } from './error-options';
3
- export declare class ErrorStateTracker {
4
- private readonly _defaultMatcher;
5
- ngControl: NgControl | null;
6
- private readonly _parentFormGroup;
7
- private readonly _parentForm;
8
- /** Whether the tracker is currently in an error state. */
9
- readonly errorState: import("@angular/core").WritableSignal<boolean>;
10
- /** User-defined matcher for the error state. */
11
- matcher: ErrorStateMatcher | null;
12
- constructor(_defaultMatcher: ErrorStateMatcher | null, ngControl: NgControl | null, _parentFormGroup: FormGroupDirective | null, _parentForm: NgForm | null);
13
- /** Updates the error state based on the provided error state matcher. */
14
- updateErrorState(): void;
15
- }