@spartan-ng/brain 0.0.1-alpha.562 → 0.0.1-alpha.564

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 +24 -24
  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,3 +1,321 @@
1
- export * from './lib/date-adapter';
2
- export * from './lib/native-date-adapter';
3
- export * from './lib/utc-date-adapter';
1
+ import { InjectionToken, Type, ClassProvider } from '@angular/core';
2
+
3
+ /**
4
+ * An abstraction that can be used to create and modify date time objects
5
+ * immutably regardless of the underlying implementation.
6
+ */
7
+ interface BrnDateAdapter<T> {
8
+ /**
9
+ * Create a new date time object.
10
+ */
11
+ create(values: BrnDateUnits): T;
12
+ /**
13
+ * Create a new date with the current date and time.
14
+ */
15
+ now(): T;
16
+ /**
17
+ * Set the year of the date time object based on a duration.
18
+ */
19
+ set(date: T, values: BrnDateUnits): T;
20
+ /**
21
+ * Add a duration to the date time object.
22
+ */
23
+ add(date: T, duration: BrnDuration): T;
24
+ /**
25
+ * Subtract a duration from the date time object.
26
+ */
27
+ subtract(date: T, duration: BrnDuration): T;
28
+ /**
29
+ * Compare two date time objects.
30
+ */
31
+ compare(a: T, b: T): number;
32
+ /**
33
+ * Determine if two date time objects are equal.
34
+ */
35
+ isEqual(a: T, b: T): boolean;
36
+ /**
37
+ * Determine if a date time object is before another.
38
+ */
39
+ isBefore(a: T, b: T): boolean;
40
+ /**
41
+ * Determine if a date time object is after another.
42
+ */
43
+ isAfter(a: T, b: T): boolean;
44
+ /**
45
+ * Determine if two date objects are on the same day.
46
+ */
47
+ isSameDay(a: T, b: T): boolean;
48
+ /**
49
+ * Determine if two date objects are on the same month.
50
+ */
51
+ isSameMonth(a: T, b: T): boolean;
52
+ /**
53
+ * Determine if two date objects are on the same year.
54
+ */
55
+ isSameYear(a: T, b: T): boolean;
56
+ /**
57
+ * Get the year.
58
+ */
59
+ getYear(date: T): number;
60
+ /**
61
+ * Get the month.
62
+ */
63
+ getMonth(date: T): number;
64
+ /**
65
+ * Get the date.
66
+ */
67
+ getDate(date: T): number;
68
+ /**
69
+ * Get the day of the week.
70
+ *
71
+ * Returns a value between 0 and 6 where 0 is Sunday
72
+ */
73
+ getDay(date: T): number;
74
+ /**
75
+ * Get the hours.
76
+ */
77
+ getHours(date: T): number;
78
+ /**
79
+ * Get the minutes.
80
+ */
81
+ getMinutes(date: T): number;
82
+ /**
83
+ * Get the seconds.
84
+ */
85
+ getSeconds(date: T): number;
86
+ /**
87
+ * Get the milliseconds.
88
+ */
89
+ getMilliseconds(date: T): number;
90
+ /**
91
+ * Get the time.
92
+ */
93
+ getTime(date: T): number;
94
+ /**
95
+ * Get the first day of the month.
96
+ */
97
+ startOfMonth(date: T): T;
98
+ /**
99
+ * Get the last day of the month.
100
+ */
101
+ endOfMonth(date: T): T;
102
+ /**
103
+ * Get the start of the day.
104
+ */
105
+ startOfDay(date: T): T;
106
+ /**
107
+ * Get the end of the day.
108
+ */
109
+ endOfDay(date: T): T;
110
+ }
111
+ interface BrnDateUnits {
112
+ /**
113
+ * The year.
114
+ */
115
+ year?: number;
116
+ /**
117
+ * The month.
118
+ */
119
+ month?: number;
120
+ /**
121
+ * The day.
122
+ */
123
+ day?: number;
124
+ /**
125
+ * The hour.
126
+ */
127
+ hour?: number;
128
+ /**
129
+ * The minute.
130
+ */
131
+ minute?: number;
132
+ /**
133
+ * The second.
134
+ */
135
+ second?: number;
136
+ /**
137
+ * The millisecond.
138
+ */
139
+ millisecond?: number;
140
+ }
141
+ interface BrnDuration {
142
+ /**
143
+ * The years.
144
+ */
145
+ years?: number;
146
+ /**
147
+ * The months.
148
+ */
149
+ months?: number;
150
+ /**
151
+ * The days.
152
+ */
153
+ days?: number;
154
+ /**
155
+ * The hours.
156
+ */
157
+ hours?: number;
158
+ /**
159
+ * The minutes.
160
+ */
161
+ minutes?: number;
162
+ /**
163
+ * The seconds.
164
+ */
165
+ seconds?: number;
166
+ /**
167
+ * The milliseconds.
168
+ */
169
+ milliseconds?: number;
170
+ }
171
+ declare const BrnDateAdapterToken: InjectionToken<BrnDateAdapter<unknown>>;
172
+ /**
173
+ * Inject the DateAdapter instance
174
+ */
175
+ declare function injectDateAdapter<T>(): BrnDateAdapter<T>;
176
+ /**
177
+ * Provide the DateAdapter instance
178
+ */
179
+ declare function provideDateAdapter<T>(adapter: Type<BrnDateAdapter<T>>): ClassProvider;
180
+ /**
181
+ * Provide the native date adapter
182
+ */
183
+ declare function provideNativeDateAdapter(): ClassProvider;
184
+ /**
185
+ * Provide the UTC date adapter
186
+ */
187
+ declare function provideUtcDateAdapter(): ClassProvider;
188
+
189
+ declare class BrnNativeDateAdapter implements BrnDateAdapter<Date> {
190
+ /**
191
+ * Create a new date time object.
192
+ */
193
+ create({ day, hour, minute, month, second, year, millisecond }: BrnDateUnits): Date;
194
+ /**
195
+ * Create a new date with the current date and time.
196
+ */
197
+ now(): Date;
198
+ /**
199
+ * Set the year of the date time object based on a duration.
200
+ */
201
+ set(date: Date, values: BrnDateUnits): Date;
202
+ /**
203
+ * Add a duration to the date time object.
204
+ */
205
+ add(date: Date, duration: BrnDuration): Date;
206
+ /**
207
+ * Subtract a duration from the date time object
208
+ */
209
+ subtract(date: Date, duration: BrnDuration): Date;
210
+ /**
211
+ * Compare two date time objects
212
+ */
213
+ compare(a: Date, b: Date): number;
214
+ /**
215
+ * Determine if two date time objects are equal.
216
+ */
217
+ isEqual(a: Date, b: Date): boolean;
218
+ /**
219
+ * Determine if a date time object is before another.
220
+ */
221
+ isBefore(a: Date, b: Date): boolean;
222
+ /**
223
+ * Determine if a date time object is after another.
224
+ */
225
+ isAfter(a: Date, b: Date): boolean;
226
+ /**
227
+ * Determine if two date objects are on the same day.
228
+ */
229
+ isSameDay(a: Date, b: Date): boolean;
230
+ /**
231
+ * Determine if two date objects are on the same month.
232
+ */
233
+ isSameMonth(a: Date, b: Date): boolean;
234
+ /**
235
+ * Determine if two date objects are on the same year.
236
+ */
237
+ isSameYear(a: Date, b: Date): boolean;
238
+ /**
239
+ * Get the year.
240
+ */
241
+ getYear(date: Date): number;
242
+ /**
243
+ * Get the month.
244
+ */
245
+ getMonth(date: Date): number;
246
+ /**
247
+ * Get the day.
248
+ */
249
+ getDay(date: Date): number;
250
+ /**
251
+ * Get the date.
252
+ */
253
+ getDate(date: Date): number;
254
+ /**
255
+ * Get the hours.
256
+ */
257
+ getHours(date: Date): number;
258
+ /**
259
+ * Get the minutes.
260
+ */
261
+ getMinutes(date: Date): number;
262
+ /**
263
+ * Get the seconds.
264
+ */
265
+ getSeconds(date: Date): number;
266
+ /**
267
+ * Get the milliseconds.
268
+ */
269
+ getMilliseconds(date: Date): number;
270
+ /**
271
+ * Get the first day of the month.
272
+ */
273
+ startOfMonth(date: Date): Date;
274
+ /**
275
+ * Get the last day of the month.
276
+ */
277
+ endOfMonth(date: Date): Date;
278
+ /**
279
+ * Get the start of the day.
280
+ */
281
+ startOfDay(date: Date): Date;
282
+ /**
283
+ * Get the end of the day.
284
+ */
285
+ endOfDay(date: Date): Date;
286
+ /**
287
+ * Get the time.
288
+ */
289
+ getTime(date: Date): number;
290
+ }
291
+
292
+ declare class BrnUtcDateAdapter implements BrnDateAdapter<Date> {
293
+ create({ day, hour, minute, month, second, year, millisecond }: BrnDateUnits): Date;
294
+ now(): Date;
295
+ set(date: Date, values: BrnDateUnits): Date;
296
+ add(date: Date, duration: BrnDuration): Date;
297
+ subtract(date: Date, duration: BrnDuration): Date;
298
+ compare(a: Date, b: Date): number;
299
+ isEqual(a: Date, b: Date): boolean;
300
+ isBefore(a: Date, b: Date): boolean;
301
+ isAfter(a: Date, b: Date): boolean;
302
+ isSameDay(a: Date, b: Date): boolean;
303
+ isSameMonth(a: Date, b: Date): boolean;
304
+ isSameYear(a: Date, b: Date): boolean;
305
+ getYear(date: Date): number;
306
+ getMonth(date: Date): number;
307
+ getDay(date: Date): number;
308
+ getDate(date: Date): number;
309
+ getHours(date: Date): number;
310
+ getMinutes(date: Date): number;
311
+ getSeconds(date: Date): number;
312
+ getMilliseconds(date: Date): number;
313
+ getTime(date: Date): number;
314
+ startOfMonth(date: Date): Date;
315
+ endOfMonth(date: Date): Date;
316
+ startOfDay(date: Date): Date;
317
+ endOfDay(date: Date): Date;
318
+ }
319
+
320
+ export { BrnDateAdapterToken, BrnNativeDateAdapter, BrnUtcDateAdapter, injectDateAdapter, provideDateAdapter, provideNativeDateAdapter, provideUtcDateAdapter };
321
+ export type { BrnDateAdapter, BrnDateUnits, BrnDuration };
@@ -1 +1,32 @@
1
- export * from './lib/date-adapter';
1
+ import { BrnDateAdapter, BrnDateUnits, BrnDuration } from '@spartan-ng/brain/date-time';
2
+ import { DateTime } from 'luxon';
3
+
4
+ declare class BrnLuxonDateAdapter implements BrnDateAdapter<DateTime> {
5
+ now(): DateTime<true>;
6
+ set(date: DateTime, values: BrnDateUnits): DateTime<boolean>;
7
+ add(date: DateTime, duration: BrnDuration): DateTime<boolean>;
8
+ subtract(date: DateTime, duration: BrnDuration): DateTime<boolean>;
9
+ compare(a: DateTime, b: DateTime): number;
10
+ isEqual(a: DateTime, b: DateTime): boolean;
11
+ isBefore(a: DateTime, b: DateTime): boolean;
12
+ isAfter(a: DateTime, b: DateTime): boolean;
13
+ isSameDay(a: DateTime, b: DateTime): boolean;
14
+ isSameMonth(a: DateTime, b: DateTime): boolean;
15
+ isSameYear(a: DateTime, b: DateTime): boolean;
16
+ getYear(date: DateTime): number;
17
+ getMonth(date: DateTime): number;
18
+ getDate(date: DateTime): number;
19
+ getDay(date: DateTime): number;
20
+ getHours(date: DateTime): number;
21
+ getMinutes(date: DateTime): number;
22
+ getSeconds(date: DateTime): number;
23
+ getMilliseconds(date: DateTime): number;
24
+ getTime(date: DateTime<boolean>): number;
25
+ startOfMonth(date: DateTime): DateTime<boolean>;
26
+ endOfMonth(date: DateTime): DateTime<boolean>;
27
+ startOfDay(date: DateTime): DateTime<boolean>;
28
+ endOfDay(date: DateTime): DateTime<boolean>;
29
+ create(values: BrnDateUnits): DateTime<true> | DateTime<false>;
30
+ }
31
+
32
+ export { BrnLuxonDateAdapter };
package/dialog/index.d.ts CHANGED
@@ -1,21 +1,225 @@
1
- import { BrnDialog } from './lib/brn-dialog';
2
- import { BrnDialogClose } from './lib/brn-dialog-close';
3
- import { BrnDialogContent } from './lib/brn-dialog-content';
4
- import { BrnDialogDescription } from './lib/brn-dialog-description';
5
- import { BrnDialogOverlay } from './lib/brn-dialog-overlay';
6
- import { BrnDialogTitle } from './lib/brn-dialog-title';
7
- import { BrnDialogTrigger } from './lib/brn-dialog-trigger';
8
- export * from './lib/brn-dialog';
9
- export * from './lib/brn-dialog-close';
10
- export * from './lib/brn-dialog-content';
11
- export * from './lib/brn-dialog-description';
12
- export * from './lib/brn-dialog-options';
13
- export * from './lib/brn-dialog-overlay';
14
- export * from './lib/brn-dialog-ref';
15
- export * from './lib/brn-dialog-state';
16
- export * from './lib/brn-dialog-title';
17
- export * from './lib/brn-dialog-token';
18
- export * from './lib/brn-dialog-trigger';
19
- export * from './lib/brn-dialog-utils';
20
- export * from './lib/brn-dialog.service';
21
- export declare const BrnDialogImports: readonly [typeof BrnDialog, typeof BrnDialogOverlay, typeof BrnDialogTrigger, typeof BrnDialogClose, typeof BrnDialogContent, typeof BrnDialogTitle, typeof BrnDialogDescription];
1
+ import * as _angular_cdk_dialog from '@angular/cdk/dialog';
2
+ import { AutoFocusTarget, DialogRef } from '@angular/cdk/dialog';
3
+ import * as _angular_cdk_overlay from '@angular/cdk/overlay';
4
+ import { PositionStrategy, ScrollStrategy, FlexibleConnectedPositionStrategyOrigin, ConnectedPosition, OverlayPositionBuilder, ScrollStrategyOptions, ComponentType } from '@angular/cdk/overlay';
5
+ import * as _angular_core from '@angular/core';
6
+ import { ElementRef, StaticProvider, TemplateRef, Signal, WritableSignal, ValueProvider, InjectOptions, ViewContainerRef } from '@angular/core';
7
+ import * as _spartan_ng_brain_dialog from '@spartan-ng/brain/dialog';
8
+ import { Observable } from 'rxjs';
9
+
10
+ type BrnDialogOptions = {
11
+ id: string;
12
+ role: 'dialog' | 'alertdialog';
13
+ hasBackdrop: boolean;
14
+ panelClass: string | string[];
15
+ backdropClass: string | string[];
16
+ positionStrategy: PositionStrategy | null | undefined;
17
+ scrollStrategy: ScrollStrategy | null | undefined;
18
+ restoreFocus: boolean | string | ElementRef;
19
+ closeDelay: number;
20
+ closeOnOutsidePointerEvents: boolean;
21
+ closeOnBackdropClick: boolean;
22
+ attachTo: FlexibleConnectedPositionStrategyOrigin | null | undefined;
23
+ attachPositions: ConnectedPosition[];
24
+ autoFocus: AutoFocusTarget | (Record<never, never> & string);
25
+ disableClose: boolean;
26
+ ariaDescribedBy: string | null | undefined;
27
+ ariaLabelledBy: string | null | undefined;
28
+ ariaLabel: string | null | undefined;
29
+ ariaModal: boolean;
30
+ providers?: StaticProvider[] | (() => StaticProvider[]);
31
+ };
32
+ declare const DEFAULT_BRN_DIALOG_OPTIONS: Readonly<Partial<BrnDialogOptions>>;
33
+
34
+ type BrnDialogState = 'closed' | 'open';
35
+
36
+ declare class BrnDialog {
37
+ private readonly _dialogService;
38
+ private readonly _vcr;
39
+ readonly positionBuilder: OverlayPositionBuilder;
40
+ readonly ssos: ScrollStrategyOptions;
41
+ private readonly _injector;
42
+ protected readonly _defaultOptions: _spartan_ng_brain_dialog.BrnDialogDefaultOptions;
43
+ private _context;
44
+ readonly stateComputed: _angular_core.Signal<BrnDialogState>;
45
+ private _contentTemplate;
46
+ private readonly _dialogRef;
47
+ private _dialogStateEffectRef?;
48
+ private readonly _backdropClass;
49
+ private readonly _panelClass;
50
+ readonly closed: _angular_core.OutputEmitterRef<any>;
51
+ readonly stateChanged: _angular_core.OutputEmitterRef<BrnDialogState>;
52
+ readonly state: _angular_core.InputSignal<BrnDialogState | null>;
53
+ readonly role: _angular_core.InputSignal<"dialog" | "alertdialog">;
54
+ readonly hasBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
55
+ readonly positionStrategy: _angular_core.InputSignal<_angular_cdk_overlay.PositionStrategy | null | undefined>;
56
+ readonly mutablePositionStrategy: _angular_core.WritableSignal<_angular_cdk_overlay.PositionStrategy | null | undefined>;
57
+ readonly scrollStrategy: _angular_core.InputSignal<ScrollStrategy | "close" | "reposition" | null | undefined>;
58
+ protected readonly _options: _angular_core.Signal<Partial<BrnDialogOptions>>;
59
+ constructor();
60
+ readonly restoreFocus: _angular_core.InputSignal<string | boolean | _angular_core.ElementRef<any>>;
61
+ readonly closeOnOutsidePointerEvents: _angular_core.InputSignalWithTransform<boolean, unknown>;
62
+ readonly mutableCloseOnOutsidePointerEvents: _angular_core.WritableSignal<boolean>;
63
+ readonly closeOnBackdropClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
64
+ readonly attachTo: _angular_core.InputSignal<_angular_cdk_overlay.FlexibleConnectedPositionStrategyOrigin | null | undefined>;
65
+ readonly mutableAttachTo: _angular_core.WritableSignal<_angular_cdk_overlay.FlexibleConnectedPositionStrategyOrigin | null | undefined>;
66
+ readonly attachPositions: _angular_core.InputSignal<_angular_cdk_overlay.ConnectedPosition[]>;
67
+ readonly mutableAttachPositions: _angular_core.WritableSignal<_angular_cdk_overlay.ConnectedPosition[]>;
68
+ readonly autoFocus: _angular_core.InputSignal<_angular_cdk_dialog.AutoFocusTarget | (Record<never, never> & string)>;
69
+ readonly closeDelay: _angular_core.InputSignalWithTransform<number, unknown>;
70
+ readonly disableClose: _angular_core.InputSignalWithTransform<boolean, unknown>;
71
+ readonly ariaDescribedBy: _angular_core.InputSignal<string | null | undefined>;
72
+ private readonly _mutableAriaDescribedBy;
73
+ readonly ariaLabelledBy: _angular_core.InputSignal<string | null | undefined>;
74
+ private readonly _mutableAriaLabelledBy;
75
+ readonly ariaLabel: _angular_core.InputSignal<string | null | undefined>;
76
+ private readonly _mutableAriaLabel;
77
+ readonly ariaModal: _angular_core.InputSignalWithTransform<boolean, unknown>;
78
+ private readonly _mutableAriaModal;
79
+ open<DialogContext>(): void;
80
+ close(result?: any, delay?: number): void;
81
+ registerTemplate(template: TemplateRef<unknown>): void;
82
+ setOverlayClass(overlayClass: string | null | undefined): void;
83
+ setPanelClass(panelClass: string | null | undefined): void;
84
+ setContext(context: unknown): void;
85
+ setAriaDescribedBy(ariaDescribedBy: string | null | undefined): void;
86
+ setAriaLabelledBy(ariaLabelledBy: string | null | undefined): void;
87
+ setAriaLabel(ariaLabel: string | null | undefined): void;
88
+ setAriaModal(ariaModal: boolean): void;
89
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialog, never>;
90
+ static ɵcmp: _angular_core.ɵɵ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>;
91
+ }
92
+
93
+ declare class BrnDialogClose {
94
+ private readonly _brnDialogRef;
95
+ readonly delay: _angular_core.InputSignalWithTransform<number | undefined, number>;
96
+ close(): void;
97
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogClose, never>;
98
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnDialogClose, "button[brnDialogClose]", never, { "delay": { "alias": "delay"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
99
+ }
100
+
101
+ declare class BrnDialogContent<T> {
102
+ private readonly _brnDialog;
103
+ private readonly _brnDialogRef;
104
+ private readonly _template;
105
+ readonly state: _angular_core.Signal<_spartan_ng_brain_dialog.BrnDialogState>;
106
+ readonly className: _angular_core.InputSignal<string | null | undefined>;
107
+ readonly context: _angular_core.InputSignal<T | undefined>;
108
+ constructor();
109
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogContent<any>, never>;
110
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnDialogContent<any>, "[brnDialogContent]", never, { "className": { "alias": "class"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
111
+ }
112
+
113
+ declare class BrnDialogDescription {
114
+ private readonly _brnDialogRef;
115
+ protected readonly _id: _angular_core.WritableSignal<string>;
116
+ constructor();
117
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogDescription, never>;
118
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnDialogDescription, "[brnDialogDescription]", never, {}, {}, never, never, true, never>;
119
+ }
120
+
121
+ declare class BrnDialogOverlay {
122
+ private readonly _brnDialog;
123
+ readonly className: _angular_core.InputSignal<string | null | undefined>;
124
+ setClassToCustomElement(newClass: string): void;
125
+ constructor();
126
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogOverlay, never>;
127
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BrnDialogOverlay, "brn-dialog-overlay", never, { "className": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
128
+ }
129
+
130
+ declare class BrnDialogTitle {
131
+ private readonly _brnDialogRef;
132
+ protected readonly _id: _angular_core.WritableSignal<string>;
133
+ constructor();
134
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogTitle, never>;
135
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnDialogTitle, "[brnDialogTitle]", never, {}, {}, never, never, true, never>;
136
+ }
137
+
138
+ declare class BrnDialogRef<DialogResult = any> {
139
+ private readonly _cdkDialogRef;
140
+ private readonly _open;
141
+ readonly state: Signal<BrnDialogState>;
142
+ readonly dialogId: number;
143
+ private readonly _options?;
144
+ private readonly _closing$;
145
+ readonly closing$: Observable<void>;
146
+ readonly closed$: Observable<DialogResult | undefined>;
147
+ private _previousTimeout;
148
+ get open(): boolean;
149
+ constructor(_cdkDialogRef: DialogRef<DialogResult>, _open: WritableSignal<boolean>, state: Signal<BrnDialogState>, dialogId: number, _options?: BrnDialogOptions | undefined);
150
+ close(result?: DialogResult, delay?: number): void;
151
+ setPanelClass(paneClass: string | null | undefined): void;
152
+ setOverlayClass(overlayClass: string | null | undefined): void;
153
+ setAriaDescribedBy(ariaDescribedBy: string | null | undefined): void;
154
+ setAriaLabelledBy(ariaLabelledBy: string | null | undefined): void;
155
+ setAriaLabel(ariaLabel: string | null | undefined): void;
156
+ }
157
+
158
+ declare class BrnDialogTrigger {
159
+ protected _brnDialog: BrnDialog | null;
160
+ protected readonly _brnDialogRef: BrnDialogRef<any> | null;
161
+ readonly id: _angular_core.InputSignal<string>;
162
+ readonly state: _angular_core.Signal<BrnDialogState>;
163
+ readonly dialogId: string;
164
+ readonly brnDialogTriggerFor: _angular_core.InputSignal<BrnDialog | undefined>;
165
+ readonly mutableBrnDialogTriggerFor: _angular_core.Signal<_angular_core.WritableSignal<BrnDialog | undefined>>;
166
+ readonly brnDialogTriggerForState: _angular_core.Signal<BrnDialog | undefined>;
167
+ constructor();
168
+ open(): void;
169
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogTrigger, never>;
170
+ static ɵdir: _angular_core.ɵɵ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>;
171
+ }
172
+
173
+ interface BrnDialogDefaultOptions {
174
+ /** A connected position as specified by the user. */
175
+ attachPositions: BrnDialogOptions['attachPositions'];
176
+ /** Options for where to set focus to automatically on dialog open */
177
+ autoFocus: BrnDialogOptions['autoFocus'];
178
+ /** The delay in milliseconds before the dialog closes. */
179
+ closeDelay: number;
180
+ /** Close dialog on backdrop click */
181
+ closeOnBackdropClick: boolean;
182
+ /** Close dialog on outside pointer event */
183
+ closeOnOutsidePointerEvents: boolean;
184
+ /** Whether the dialog closes with the escape key or pointer events outside the panel element. */
185
+ disableClose: boolean;
186
+ /** Whether the dialog has a backdrop. */
187
+ hasBackdrop: boolean;
188
+ /** Strategy to use when positioning the dialog */
189
+ positionStrategy: BrnDialogOptions['positionStrategy'];
190
+ /** Whether the dialog should restore focus to the previously-focused element upon closing. */
191
+ restoreFocus: BrnDialogOptions['restoreFocus'];
192
+ /** The role of the dialog */
193
+ role: BrnDialogOptions['role'];
194
+ /** Scroll strategy to be used for the dialog. */
195
+ scrollStrategy: BrnDialogOptions['scrollStrategy'] | 'close' | 'reposition';
196
+ }
197
+ declare const defaultOptions: BrnDialogDefaultOptions;
198
+ declare function provideBrnDialogDefaultOptions(options: Partial<BrnDialogDefaultOptions>): ValueProvider;
199
+ declare function injectBrnDialogDefaultOptions(): BrnDialogDefaultOptions;
200
+
201
+ declare const cssClassesToArray: (classes: string | string[] | undefined | null, defaultClass?: string) => string[];
202
+
203
+ type BrnDialogContext<T> = T & {
204
+ close: (result?: any) => void;
205
+ };
206
+ /** @deprecated `injectBrnDialogCtx` will no longer be supported once components are stable. Use `injectBrnDialogContext` instead. */
207
+ declare const injectBrnDialogCtx: <T>() => BrnDialogContext<T>;
208
+ declare const injectBrnDialogContext: <DialogContext = any>(options?: InjectOptions) => DialogContext;
209
+ declare class BrnDialogService {
210
+ private readonly _overlayCloseDispatcher;
211
+ private readonly _cdkDialog;
212
+ private readonly _rendererFactory;
213
+ private readonly _renderer;
214
+ private readonly _positionBuilder;
215
+ private readonly _sso;
216
+ private readonly _injector;
217
+ open<DialogContext>(content: ComponentType<unknown> | TemplateRef<unknown>, vcr?: ViewContainerRef, context?: DialogContext, options?: Partial<BrnDialogOptions>): BrnDialogRef<any>;
218
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogService, never>;
219
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<BrnDialogService>;
220
+ }
221
+
222
+ declare const BrnDialogImports: readonly [typeof BrnDialog, typeof BrnDialogOverlay, typeof BrnDialogTrigger, typeof BrnDialogClose, typeof BrnDialogContent, typeof BrnDialogTitle, typeof BrnDialogDescription];
223
+
224
+ export { BrnDialog, BrnDialogClose, BrnDialogContent, BrnDialogDescription, BrnDialogImports, BrnDialogOverlay, BrnDialogRef, BrnDialogService, BrnDialogTitle, BrnDialogTrigger, DEFAULT_BRN_DIALOG_OPTIONS, cssClassesToArray, defaultOptions, injectBrnDialogContext, injectBrnDialogCtx, injectBrnDialogDefaultOptions, provideBrnDialogDefaultOptions };
225
+ export type { BrnDialogContext, BrnDialogDefaultOptions, BrnDialogOptions, BrnDialogState };