@spartan-ng/brain 0.0.1-alpha.374 → 0.0.1-alpha.380

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 (398) hide show
  1. package/accordion/README.md +3 -0
  2. package/accordion/index.d.ts +13 -0
  3. package/accordion/lib/brn-accordion-content.component.d.ts +15 -0
  4. package/accordion/lib/brn-accordion.directive.d.ts +47 -0
  5. package/alert-dialog/README.md +3 -0
  6. package/alert-dialog/index.d.ts +25 -0
  7. package/alert-dialog/lib/brn-alert-dialog-content.directive.d.ts +6 -0
  8. package/alert-dialog/lib/brn-alert-dialog-description.directive.d.ts +6 -0
  9. package/alert-dialog/lib/brn-alert-dialog-overlay.component.d.ts +6 -0
  10. package/alert-dialog/lib/brn-alert-dialog-title.directive.d.ts +6 -0
  11. package/alert-dialog/lib/brn-alert-dialog-trigger.directive.d.ts +8 -0
  12. package/alert-dialog/lib/brn-alert-dialog.component.d.ts +7 -0
  13. package/avatar/README.md +3 -0
  14. package/avatar/index.d.ts +17 -0
  15. package/avatar/lib/brn-avatar.component.d.ts +7 -0
  16. package/avatar/lib/fallback/brn-avatar-fallback.directive.d.ts +11 -0
  17. package/avatar/lib/fallback/index.d.ts +1 -0
  18. package/avatar/lib/image/brn-avatar-image.directive.d.ts +9 -0
  19. package/avatar/lib/image/index.d.ts +1 -0
  20. package/avatar/lib/util/hex-color-for.d.ts +1 -0
  21. package/avatar/lib/util/index.d.ts +3 -0
  22. package/avatar/lib/util/initials.pipe.d.ts +7 -0
  23. package/avatar/lib/util/is-bright.d.ts +1 -0
  24. package/calendar/README.md +3 -0
  25. package/calendar/index.d.ts +36 -0
  26. package/calendar/lib/brn-calendar-cell-button.directive.d.ts +59 -0
  27. package/calendar/lib/brn-calendar-cell.directive.d.ts +5 -0
  28. package/calendar/lib/brn-calendar-grid.directive.d.ts +7 -0
  29. package/calendar/lib/brn-calendar-header.directive.d.ts +7 -0
  30. package/calendar/lib/brn-calendar-next-button.directive.d.ts +13 -0
  31. package/calendar/lib/brn-calendar-previous-button.directive.d.ts +13 -0
  32. package/calendar/lib/brn-calendar-week.directive.d.ts +25 -0
  33. package/calendar/lib/brn-calendar-weekday.directive.d.ts +25 -0
  34. package/calendar/lib/brn-calendar.directive.d.ts +55 -0
  35. package/calendar/lib/brn-calendar.token.d.ts +8 -0
  36. package/calendar/lib/i18n/calendar-i18n.d.ts +17 -0
  37. package/checkbox/lib/brn-checkbox.component.d.ts +1 -1
  38. package/collapsible/README.md +3 -0
  39. package/collapsible/index.d.ts +16 -0
  40. package/collapsible/lib/brn-collapsible-content.component.d.ts +19 -0
  41. package/collapsible/lib/brn-collapsible-trigger.directive.d.ts +12 -0
  42. package/collapsible/lib/brn-collapsible.component.d.ts +11 -0
  43. package/command/README.md +3 -0
  44. package/command/index.d.ts +33 -0
  45. package/command/lib/brn-command-empty.directive.d.ts +6 -0
  46. package/command/lib/brn-command-group.component.d.ts +6 -0
  47. package/command/lib/brn-command-input.directive.d.ts +6 -0
  48. package/command/lib/brn-command-item.directive.d.ts +6 -0
  49. package/command/lib/brn-command-list.component.d.ts +6 -0
  50. package/command/lib/brn-command-loader.directive.d.ts +6 -0
  51. package/command/lib/brn-command-separator.component.d.ts +6 -0
  52. package/command/lib/brn-command.component.d.ts +6 -0
  53. package/date-time/README.md +3 -0
  54. package/date-time/index.d.ts +2 -0
  55. package/date-time/lib/date-adapter.d.ts +176 -0
  56. package/date-time/lib/native-date-adapter.d.ts +103 -0
  57. package/date-time-luxon/README.md +3 -0
  58. package/date-time-luxon/index.d.ts +1 -0
  59. package/date-time-luxon/lib/date-adapter.d.ts +29 -0
  60. package/dialog/README.md +3 -0
  61. package/dialog/index.d.ts +33 -0
  62. package/dialog/lib/brn-dialog-close.directive.d.ts +10 -0
  63. package/dialog/lib/brn-dialog-content.directive.d.ts +12 -0
  64. package/dialog/lib/brn-dialog-description.directive.d.ts +8 -0
  65. package/dialog/lib/brn-dialog-options.d.ts +26 -0
  66. package/dialog/lib/brn-dialog-overlay.component.d.ts +8 -0
  67. package/dialog/lib/brn-dialog-ref.d.ts +24 -0
  68. package/dialog/lib/brn-dialog-state.d.ts +1 -0
  69. package/dialog/lib/brn-dialog-title.directive.d.ts +8 -0
  70. package/dialog/lib/brn-dialog-trigger.directive.d.ts +16 -0
  71. package/dialog/lib/brn-dialog-utils.d.ts +1 -0
  72. package/dialog/lib/brn-dialog.component.d.ts +56 -0
  73. package/dialog/lib/brn-dialog.service.d.ts +22 -0
  74. package/esm2022/accordion/index.mjs +31 -0
  75. package/esm2022/accordion/lib/brn-accordion-content.component.mjs +50 -0
  76. package/esm2022/accordion/lib/brn-accordion.directive.mjs +180 -0
  77. package/esm2022/accordion/spartan-ng-brain-accordion.mjs +5 -0
  78. package/esm2022/alert-dialog/index.mjs +45 -0
  79. package/esm2022/alert-dialog/lib/brn-alert-dialog-content.directive.mjs +17 -0
  80. package/esm2022/alert-dialog/lib/brn-alert-dialog-description.directive.mjs +18 -0
  81. package/esm2022/alert-dialog/lib/brn-alert-dialog-overlay.component.mjs +20 -0
  82. package/esm2022/alert-dialog/lib/brn-alert-dialog-title.directive.mjs +18 -0
  83. package/esm2022/alert-dialog/lib/brn-alert-dialog-trigger.directive.mjs +27 -0
  84. package/esm2022/alert-dialog/lib/brn-alert-dialog.component.mjs +40 -0
  85. package/esm2022/alert-dialog/spartan-ng-brain-alert-dialog.mjs +5 -0
  86. package/esm2022/avatar/index.mjs +23 -0
  87. package/esm2022/avatar/lib/brn-avatar.component.mjs +31 -0
  88. package/esm2022/avatar/lib/fallback/brn-avatar-fallback.directive.mjs +21 -0
  89. package/esm2022/avatar/lib/fallback/index.mjs +2 -0
  90. package/esm2022/avatar/lib/image/brn-avatar-image.directive.mjs +29 -0
  91. package/esm2022/avatar/lib/image/index.mjs +2 -0
  92. package/esm2022/avatar/lib/util/hex-color-for.mjs +22 -0
  93. package/esm2022/avatar/lib/util/index.mjs +4 -0
  94. package/esm2022/avatar/lib/util/initials.pipe.mjs +27 -0
  95. package/esm2022/avatar/lib/util/is-bright.mjs +12 -0
  96. package/esm2022/avatar/spartan-ng-brain-avatar.mjs +5 -0
  97. package/esm2022/calendar/index.mjs +62 -0
  98. package/esm2022/calendar/lib/brn-calendar-cell-button.directive.mjs +160 -0
  99. package/esm2022/calendar/lib/brn-calendar-cell.directive.mjs +17 -0
  100. package/esm2022/calendar/lib/brn-calendar-grid.directive.mjs +21 -0
  101. package/esm2022/calendar/lib/brn-calendar-header.directive.mjs +22 -0
  102. package/esm2022/calendar/lib/brn-calendar-next-button.directive.mjs +42 -0
  103. package/esm2022/calendar/lib/brn-calendar-previous-button.directive.mjs +42 -0
  104. package/esm2022/calendar/lib/brn-calendar-week.directive.mjs +64 -0
  105. package/esm2022/calendar/lib/brn-calendar-weekday.directive.mjs +48 -0
  106. package/esm2022/calendar/lib/brn-calendar.directive.mjs +154 -0
  107. package/esm2022/calendar/lib/brn-calendar.token.mjs +12 -0
  108. package/esm2022/calendar/lib/i18n/calendar-i18n.mjs +33 -0
  109. package/esm2022/calendar/spartan-ng-brain-calendar.mjs +5 -0
  110. package/esm2022/checkbox/lib/brn-checkbox.component.mjs +1 -1
  111. package/esm2022/collapsible/index.mjs +30 -0
  112. package/esm2022/collapsible/lib/brn-collapsible-content.component.mjs +61 -0
  113. package/esm2022/collapsible/lib/brn-collapsible-trigger.directive.mjs +35 -0
  114. package/esm2022/collapsible/lib/brn-collapsible.component.mjs +33 -0
  115. package/esm2022/collapsible/spartan-ng-brain-collapsible.mjs +5 -0
  116. package/esm2022/command/index.mjs +64 -0
  117. package/esm2022/command/lib/brn-command-empty.directive.mjs +29 -0
  118. package/esm2022/command/lib/brn-command-group.component.mjs +45 -0
  119. package/esm2022/command/lib/brn-command-input.directive.mjs +29 -0
  120. package/esm2022/command/lib/brn-command-item.directive.mjs +36 -0
  121. package/esm2022/command/lib/brn-command-list.component.mjs +35 -0
  122. package/esm2022/command/lib/brn-command-loader.directive.mjs +29 -0
  123. package/esm2022/command/lib/brn-command-separator.component.mjs +30 -0
  124. package/esm2022/command/lib/brn-command.component.mjs +21 -0
  125. package/esm2022/command/spartan-ng-brain-command.mjs +5 -0
  126. package/esm2022/date-time/index.mjs +3 -0
  127. package/esm2022/date-time/lib/date-adapter.mjs +16 -0
  128. package/esm2022/date-time/lib/native-date-adapter.mjs +155 -0
  129. package/esm2022/date-time/spartan-ng-brain-date-time.mjs +5 -0
  130. package/esm2022/date-time-luxon/index.mjs +2 -0
  131. package/esm2022/date-time-luxon/lib/date-adapter.mjs +85 -0
  132. package/esm2022/date-time-luxon/spartan-ng-brain-date-time-luxon.mjs +5 -0
  133. package/esm2022/dialog/index.mjs +55 -0
  134. package/esm2022/dialog/lib/brn-dialog-close.directive.mjs +29 -0
  135. package/esm2022/dialog/lib/brn-dialog-content.directive.mjs +41 -0
  136. package/esm2022/dialog/lib/brn-dialog-description.directive.mjs +25 -0
  137. package/esm2022/dialog/lib/brn-dialog-options.mjs +19 -0
  138. package/esm2022/dialog/lib/brn-dialog-overlay.component.mjs +29 -0
  139. package/esm2022/dialog/lib/brn-dialog-ref.mjs +53 -0
  140. package/esm2022/dialog/lib/brn-dialog-state.mjs +2 -0
  141. package/esm2022/dialog/lib/brn-dialog-title.directive.mjs +25 -0
  142. package/esm2022/dialog/lib/brn-dialog-trigger.directive.mjs +39 -0
  143. package/esm2022/dialog/lib/brn-dialog-utils.mjs +12 -0
  144. package/esm2022/dialog/lib/brn-dialog.component.mjs +208 -0
  145. package/esm2022/dialog/lib/brn-dialog.service.mjs +127 -0
  146. package/esm2022/dialog/spartan-ng-brain-dialog.mjs +5 -0
  147. package/esm2022/form-field/index.mjs +2 -0
  148. package/esm2022/form-field/lib/brn-form-field-control.mjs +14 -0
  149. package/esm2022/form-field/spartan-ng-brain-form-field.mjs +5 -0
  150. package/esm2022/forms/index.mjs +4 -0
  151. package/esm2022/forms/lib/control-value-accessor.mjs +2 -0
  152. package/esm2022/forms/lib/error-options.mjs +26 -0
  153. package/esm2022/forms/lib/error-state-tracker.mjs +29 -0
  154. package/esm2022/forms/spartan-ng-brain-forms.mjs +5 -0
  155. package/esm2022/hover-card/index.mjs +29 -0
  156. package/esm2022/hover-card/lib/brn-hover-card-content.service.mjs +205 -0
  157. package/esm2022/hover-card/lib/brn-hover-card.component.mjs +34 -0
  158. package/esm2022/hover-card/lib/createHoverObservable.mjs +19 -0
  159. package/esm2022/hover-card/spartan-ng-brain-hover-card.mjs +5 -0
  160. package/esm2022/label/index.mjs +17 -0
  161. package/esm2022/label/lib/brn-label.directive.mjs +49 -0
  162. package/esm2022/label/spartan-ng-brain-label.mjs +5 -0
  163. package/esm2022/menu/index.mjs +100 -0
  164. package/esm2022/menu/lib/brn-context-menu-trigger.directive.mjs +40 -0
  165. package/esm2022/menu/lib/brn-menu-align.mjs +15 -0
  166. package/esm2022/menu/lib/brn-menu-bar.directive.mjs +17 -0
  167. package/esm2022/menu/lib/brn-menu-group.directive.mjs +17 -0
  168. package/esm2022/menu/lib/brn-menu-item-checkbox.directive.mjs +30 -0
  169. package/esm2022/menu/lib/brn-menu-item-radio.directive.mjs +30 -0
  170. package/esm2022/menu/lib/brn-menu-item.directive.mjs +27 -0
  171. package/esm2022/menu/lib/brn-menu-trigger.directive.mjs +36 -0
  172. package/esm2022/menu/lib/brn-menu.directive.mjs +50 -0
  173. package/esm2022/menu/spartan-ng-brain-menu.mjs +5 -0
  174. package/esm2022/popover/index.mjs +35 -0
  175. package/esm2022/popover/lib/brn-popover-close.directive.mjs +15 -0
  176. package/esm2022/popover/lib/brn-popover-content.directive.mjs +17 -0
  177. package/esm2022/popover/lib/brn-popover-trigger.directive.mjs +37 -0
  178. package/esm2022/popover/lib/brn-popover.component.mjs +81 -0
  179. package/esm2022/popover/spartan-ng-brain-popover.mjs +5 -0
  180. package/esm2022/progress/index.mjs +21 -0
  181. package/esm2022/progress/lib/brn-progress-indicator.component.mjs +22 -0
  182. package/esm2022/progress/lib/brn-progress.component.mjs +61 -0
  183. package/esm2022/progress/lib/brn-progress.token.mjs +9 -0
  184. package/esm2022/progress/spartan-ng-brain-progress.mjs +5 -0
  185. package/esm2022/radio-group/index.mjs +20 -0
  186. package/esm2022/radio-group/lib/brn-radio-group.component.mjs +90 -0
  187. package/esm2022/radio-group/lib/brn-radio-group.token.mjs +9 -0
  188. package/esm2022/radio-group/lib/brn-radio.component.mjs +185 -0
  189. package/esm2022/radio-group/spartan-ng-brain-radio-group.mjs +5 -0
  190. package/esm2022/select/index.mjs +56 -0
  191. package/esm2022/select/lib/brn-select-content.component.mjs +204 -0
  192. package/esm2022/select/lib/brn-select-group.directive.mjs +19 -0
  193. package/esm2022/select/lib/brn-select-label.directive.mjs +23 -0
  194. package/esm2022/select/lib/brn-select-option.directive.mjs +65 -0
  195. package/esm2022/select/lib/brn-select-value.component.mjs +46 -0
  196. package/esm2022/select/lib/brn-select.component.mjs +358 -0
  197. package/esm2022/select/lib/brn-select.service.mjs +197 -0
  198. package/esm2022/select/spartan-ng-brain-select.mjs +5 -0
  199. package/esm2022/separator/index.mjs +17 -0
  200. package/esm2022/separator/lib/brn-separator.component.mjs +24 -0
  201. package/esm2022/separator/spartan-ng-brain-separator.mjs +5 -0
  202. package/esm2022/sheet/index.mjs +50 -0
  203. package/esm2022/sheet/lib/brn-sheet-close.directive.mjs +15 -0
  204. package/esm2022/sheet/lib/brn-sheet-content.directive.mjs +25 -0
  205. package/esm2022/sheet/lib/brn-sheet-description.directive.mjs +18 -0
  206. package/esm2022/sheet/lib/brn-sheet-overlay.component.mjs +20 -0
  207. package/esm2022/sheet/lib/brn-sheet-title.directive.mjs +18 -0
  208. package/esm2022/sheet/lib/brn-sheet-trigger.directive.mjs +26 -0
  209. package/esm2022/sheet/lib/brn-sheet.component.mjs +55 -0
  210. package/esm2022/sheet/spartan-ng-brain-sheet.mjs +5 -0
  211. package/esm2022/slider/index.mjs +13 -0
  212. package/esm2022/slider/lib/brn-slider-thumb.directive.mjs +41 -0
  213. package/esm2022/slider/lib/brn-slider-tick-mark.directive.mjs +37 -0
  214. package/esm2022/slider/lib/brn-slider-track-active-fill.directive.mjs +29 -0
  215. package/esm2022/slider/lib/brn-slider-track.directive.mjs +290 -0
  216. package/esm2022/slider/spartan-ng-brain-slider.mjs +5 -0
  217. package/esm2022/switch/index.mjs +20 -0
  218. package/esm2022/switch/lib/brn-switch-thumb.component.mjs +16 -0
  219. package/esm2022/switch/lib/brn-switch.component.mjs +236 -0
  220. package/esm2022/switch/spartan-ng-brain-switch.mjs +5 -0
  221. package/esm2022/table/index.mjs +47 -0
  222. package/esm2022/table/lib/brn-cell-def.directive.mjs +22 -0
  223. package/esm2022/table/lib/brn-column-def.component.mjs +82 -0
  224. package/esm2022/table/lib/brn-column-manager.mjs +61 -0
  225. package/esm2022/table/lib/brn-footer-def.directive.mjs +22 -0
  226. package/esm2022/table/lib/brn-header-def.directive.mjs +22 -0
  227. package/esm2022/table/lib/brn-paginator.directive.mjs +109 -0
  228. package/esm2022/table/lib/brn-table.component.mjs +169 -0
  229. package/esm2022/table/spartan-ng-brain-table.mjs +5 -0
  230. package/esm2022/tabs/index.mjs +32 -0
  231. package/esm2022/tabs/lib/brn-tabs-list.directive.mjs +65 -0
  232. package/esm2022/tabs/lib/brn-tabs-paginated-list.directive.mjs +525 -0
  233. package/esm2022/tabs/lib/brn-tabs-trigger.directive.mjs +134 -0
  234. package/esm2022/tabs/spartan-ng-brain-tabs.mjs +5 -0
  235. package/esm2022/toggle/index.mjs +31 -0
  236. package/esm2022/toggle/lib/brn-toggle-group.component.mjs +159 -0
  237. package/esm2022/toggle/lib/brn-toggle-group.token.mjs +9 -0
  238. package/esm2022/toggle/lib/brn-toggle.directive.mjs +65 -0
  239. package/esm2022/toggle/spartan-ng-brain-toggle.mjs +5 -0
  240. package/esm2022/tooltip/index.mjs +35 -0
  241. package/esm2022/tooltip/lib/brn-tooltip-content.component.mjs +228 -0
  242. package/esm2022/tooltip/lib/brn-tooltip-content.directive.mjs +22 -0
  243. package/esm2022/tooltip/lib/brn-tooltip-trigger.directive.mjs +689 -0
  244. package/esm2022/tooltip/lib/brn-tooltip.directive.mjs +15 -0
  245. package/esm2022/tooltip/spartan-ng-brain-tooltip.mjs +5 -0
  246. package/fesm2022/spartan-ng-brain-accordion.mjs +259 -0
  247. package/fesm2022/spartan-ng-brain-accordion.mjs.map +1 -0
  248. package/fesm2022/spartan-ng-brain-alert-dialog.mjs +162 -0
  249. package/fesm2022/spartan-ng-brain-alert-dialog.mjs.map +1 -0
  250. package/fesm2022/spartan-ng-brain-avatar.mjs +156 -0
  251. package/fesm2022/spartan-ng-brain-avatar.mjs.map +1 -0
  252. package/fesm2022/spartan-ng-brain-calendar.mjs +629 -0
  253. package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -0
  254. package/fesm2022/spartan-ng-brain-checkbox.mjs.map +1 -1
  255. package/fesm2022/spartan-ng-brain-collapsible.mjs +152 -0
  256. package/fesm2022/spartan-ng-brain-collapsible.mjs.map +1 -0
  257. package/fesm2022/spartan-ng-brain-command.mjs +284 -0
  258. package/fesm2022/spartan-ng-brain-command.mjs.map +1 -0
  259. package/fesm2022/spartan-ng-brain-date-time-luxon.mjs +92 -0
  260. package/fesm2022/spartan-ng-brain-date-time-luxon.mjs.map +1 -0
  261. package/fesm2022/spartan-ng-brain-date-time.mjs +177 -0
  262. package/fesm2022/spartan-ng-brain-date-time.mjs.map +1 -0
  263. package/fesm2022/spartan-ng-brain-dialog.mjs +617 -0
  264. package/fesm2022/spartan-ng-brain-dialog.mjs.map +1 -0
  265. package/fesm2022/spartan-ng-brain-form-field.mjs +21 -0
  266. package/fesm2022/spartan-ng-brain-form-field.mjs.map +1 -0
  267. package/fesm2022/spartan-ng-brain-forms.mjs +61 -0
  268. package/fesm2022/spartan-ng-brain-forms.mjs.map +1 -0
  269. package/fesm2022/spartan-ng-brain-hover-card.mjs +274 -0
  270. package/fesm2022/spartan-ng-brain-hover-card.mjs.map +1 -0
  271. package/fesm2022/spartan-ng-brain-label.mjs +69 -0
  272. package/fesm2022/spartan-ng-brain-label.mjs.map +1 -0
  273. package/fesm2022/spartan-ng-brain-menu.mjs +316 -0
  274. package/fesm2022/spartan-ng-brain-menu.mjs.map +1 -0
  275. package/fesm2022/spartan-ng-brain-popover.mjs +173 -0
  276. package/fesm2022/spartan-ng-brain-popover.mjs.map +1 -0
  277. package/fesm2022/spartan-ng-brain-progress.mjs +108 -0
  278. package/fesm2022/spartan-ng-brain-progress.mjs.map +1 -0
  279. package/fesm2022/spartan-ng-brain-radio-group.mjs +299 -0
  280. package/fesm2022/spartan-ng-brain-radio-group.mjs.map +1 -0
  281. package/fesm2022/spartan-ng-brain-select.mjs +928 -0
  282. package/fesm2022/spartan-ng-brain-select.mjs.map +1 -0
  283. package/fesm2022/spartan-ng-brain-separator.mjs +44 -0
  284. package/fesm2022/spartan-ng-brain-separator.mjs.map +1 -0
  285. package/fesm2022/spartan-ng-brain-sheet.mjs +197 -0
  286. package/fesm2022/spartan-ng-brain-sheet.mjs.map +1 -0
  287. package/fesm2022/spartan-ng-brain-slider.mjs +399 -0
  288. package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -0
  289. package/fesm2022/spartan-ng-brain-switch.mjs +271 -0
  290. package/fesm2022/spartan-ng-brain-switch.mjs.map +1 -0
  291. package/fesm2022/spartan-ng-brain-table.mjs +506 -0
  292. package/fesm2022/spartan-ng-brain-table.mjs.map +1 -0
  293. package/fesm2022/spartan-ng-brain-tabs.mjs +748 -0
  294. package/fesm2022/spartan-ng-brain-tabs.mjs.map +1 -0
  295. package/fesm2022/spartan-ng-brain-toggle.mjs +260 -0
  296. package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -0
  297. package/fesm2022/spartan-ng-brain-tooltip.mjs +975 -0
  298. package/fesm2022/spartan-ng-brain-tooltip.mjs.map +1 -0
  299. package/form-field/README.md +3 -0
  300. package/form-field/index.d.ts +1 -0
  301. package/form-field/lib/brn-form-field-control.d.ts +11 -0
  302. package/forms/README.md +3 -0
  303. package/forms/index.d.ts +3 -0
  304. package/forms/lib/control-value-accessor.d.ts +2 -0
  305. package/forms/lib/error-options.d.ts +14 -0
  306. package/forms/lib/error-state-tracker.d.ts +15 -0
  307. package/hover-card/README.md +3 -0
  308. package/hover-card/index.d.ts +14 -0
  309. package/hover-card/lib/brn-hover-card-content.service.d.ts +65 -0
  310. package/hover-card/lib/brn-hover-card.component.d.ts +9 -0
  311. package/hover-card/lib/createHoverObservable.d.ts +4 -0
  312. package/label/README.md +3 -0
  313. package/label/index.d.ts +8 -0
  314. package/label/lib/brn-label.directive.d.ts +15 -0
  315. package/menu/README.md +3 -0
  316. package/menu/index.d.ts +49 -0
  317. package/menu/lib/brn-context-menu-trigger.directive.d.ts +13 -0
  318. package/menu/lib/brn-menu-align.d.ts +3 -0
  319. package/menu/lib/brn-menu-bar.directive.d.ts +6 -0
  320. package/menu/lib/brn-menu-group.directive.d.ts +6 -0
  321. package/menu/lib/brn-menu-item-checkbox.directive.d.ts +11 -0
  322. package/menu/lib/brn-menu-item-radio.directive.d.ts +11 -0
  323. package/menu/lib/brn-menu-item.directive.d.ts +10 -0
  324. package/menu/lib/brn-menu-trigger.directive.d.ts +10 -0
  325. package/menu/lib/brn-menu.directive.d.ts +11 -0
  326. package/package.json +182 -9
  327. package/popover/README.md +3 -0
  328. package/popover/index.d.ts +19 -0
  329. package/popover/lib/brn-popover-close.directive.d.ts +6 -0
  330. package/popover/lib/brn-popover-content.directive.d.ts +6 -0
  331. package/popover/lib/brn-popover-trigger.directive.d.ts +10 -0
  332. package/popover/lib/brn-popover.component.d.ts +14 -0
  333. package/progress/README.md +3 -0
  334. package/progress/index.d.ts +14 -0
  335. package/progress/lib/brn-progress-indicator.component.d.ts +6 -0
  336. package/progress/lib/brn-progress.component.d.ts +15 -0
  337. package/progress/lib/brn-progress.token.d.ts +4 -0
  338. package/radio-group/README.md +3 -0
  339. package/radio-group/index.d.ts +13 -0
  340. package/radio-group/lib/brn-radio-group.component.d.ts +57 -0
  341. package/radio-group/lib/brn-radio-group.token.d.ts +4 -0
  342. package/radio-group/lib/brn-radio.component.d.ts +58 -0
  343. package/select/README.md +3 -0
  344. package/select/index.d.ts +28 -0
  345. package/select/lib/brn-select-content.component.d.ts +50 -0
  346. package/select/lib/brn-select-group.directive.d.ts +6 -0
  347. package/select/lib/brn-select-label.directive.d.ts +9 -0
  348. package/select/lib/brn-select-option.directive.d.ts +25 -0
  349. package/select/lib/brn-select-value.component.d.ts +11 -0
  350. package/select/lib/brn-select.component.d.ts +82 -0
  351. package/select/lib/brn-select.service.d.ts +67 -0
  352. package/separator/README.md +3 -0
  353. package/separator/index.d.ts +8 -0
  354. package/separator/lib/brn-separator.component.d.ts +11 -0
  355. package/sheet/README.md +3 -0
  356. package/sheet/index.d.ts +28 -0
  357. package/sheet/lib/brn-sheet-close.directive.d.ts +6 -0
  358. package/sheet/lib/brn-sheet-content.directive.d.ts +8 -0
  359. package/sheet/lib/brn-sheet-description.directive.d.ts +6 -0
  360. package/sheet/lib/brn-sheet-overlay.component.d.ts +6 -0
  361. package/sheet/lib/brn-sheet-title.directive.d.ts +6 -0
  362. package/sheet/lib/brn-sheet-trigger.directive.d.ts +9 -0
  363. package/sheet/lib/brn-sheet.component.d.ts +9 -0
  364. package/slider/README.md +3 -0
  365. package/slider/index.d.ts +7 -0
  366. package/slider/lib/brn-slider-thumb.directive.d.ts +17 -0
  367. package/slider/lib/brn-slider-tick-mark.directive.d.ts +15 -0
  368. package/slider/lib/brn-slider-track-active-fill.directive.d.ts +10 -0
  369. package/slider/lib/brn-slider-track.directive.d.ts +139 -0
  370. package/switch/README.md +3 -0
  371. package/switch/index.d.ts +13 -0
  372. package/switch/lib/brn-switch-thumb.component.d.ts +5 -0
  373. package/switch/lib/brn-switch.component.d.ts +58 -0
  374. package/table/README.md +3 -0
  375. package/table/index.d.ts +26 -0
  376. package/table/lib/brn-cell-def.directive.d.ts +9 -0
  377. package/table/lib/brn-column-def.component.d.ts +18 -0
  378. package/table/lib/brn-column-manager.d.ts +26 -0
  379. package/table/lib/brn-footer-def.directive.d.ts +9 -0
  380. package/table/lib/brn-header-def.directive.d.ts +9 -0
  381. package/table/lib/brn-paginator.directive.d.ts +41 -0
  382. package/table/lib/brn-table.component.d.ts +37 -0
  383. package/tabs/README.md +3 -0
  384. package/tabs/index.d.ts +14 -0
  385. package/tabs/lib/brn-tabs-list.directive.d.ts +17 -0
  386. package/tabs/lib/brn-tabs-paginated-list.directive.d.ts +196 -0
  387. package/tabs/lib/brn-tabs-trigger.directive.d.ts +61 -0
  388. package/toggle/README.md +3 -0
  389. package/toggle/index.d.ts +15 -0
  390. package/toggle/lib/brn-toggle-group.component.d.ts +68 -0
  391. package/toggle/lib/brn-toggle-group.token.d.ts +4 -0
  392. package/toggle/lib/brn-toggle.directive.d.ts +25 -0
  393. package/tooltip/README.md +3 -0
  394. package/tooltip/index.d.ts +19 -0
  395. package/tooltip/lib/brn-tooltip-content.component.d.ts +73 -0
  396. package/tooltip/lib/brn-tooltip-content.directive.d.ts +8 -0
  397. package/tooltip/lib/brn-tooltip-trigger.directive.d.ts +177 -0
  398. package/tooltip/lib/brn-tooltip.directive.d.ts +7 -0
@@ -0,0 +1,284 @@
1
+ import * as i0 from '@angular/core';
2
+ import { forwardRef, Directive, Component, NgModule } from '@angular/core';
3
+ import { EmptyDirective, GroupComponent, InputDirective, ItemDirective, ListComponent, LoaderDirective, SeparatorComponent, CommandComponent, CmdkService, CmdkModule } from '@ngxpert/cmdk';
4
+ import { NgIf } from '@angular/common';
5
+ import * as i1 from '@ngneat/overview';
6
+ import { DynamicViewModule } from '@ngneat/overview';
7
+ import { __decorate } from 'tslib';
8
+ import { UntilDestroy } from '@ngneat/until-destroy';
9
+
10
+ class BrnCommandEmptyDirective extends EmptyDirective {
11
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandEmptyDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
12
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandEmptyDirective, isStandalone: true, selector: "[brnCmdEmpty]", host: { classAttribute: "cmdk-empty" }, providers: [
13
+ {
14
+ provide: EmptyDirective,
15
+ useExisting: forwardRef((() => BrnCommandEmptyDirective)),
16
+ },
17
+ ], usesInheritance: true, ngImport: i0 });
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandEmptyDirective, decorators: [{
20
+ type: Directive,
21
+ args: [{
22
+ selector: '[brnCmdEmpty]',
23
+ standalone: true,
24
+ providers: [
25
+ {
26
+ provide: EmptyDirective,
27
+ useExisting: forwardRef((() => BrnCommandEmptyDirective)),
28
+ },
29
+ ],
30
+ host: {
31
+ class: 'cmdk-empty',
32
+ },
33
+ }]
34
+ }] });
35
+
36
+ class BrnCommandGroupComponent extends GroupComponent {
37
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
38
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandGroupComponent, isStandalone: true, selector: "brn-cmd-group", providers: [
39
+ {
40
+ provide: GroupComponent,
41
+ useExisting: forwardRef((() => BrnCommandGroupComponent)),
42
+ },
43
+ ], usesInheritance: true, ngImport: i0, template: `
44
+ <div role="presentation" *ngIf="label" class="cmdk-group-label">
45
+ <ng-container *dynamicView="label"></ng-container>
46
+ </div>
47
+ <div class="cmdk-group-content" role="group" [attr.aria-label]="ariaLabel">
48
+ <ng-content></ng-content>
49
+ </div>
50
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: DynamicViewModule }, { kind: "directive", type: i1.DynamicViewDirective, selector: "[dynamicView]", inputs: ["dynamicView", "dynamicViewInjector", "dynamicViewContext", "dynamicViewInputs"] }] });
51
+ }
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandGroupComponent, decorators: [{
53
+ type: Component,
54
+ args: [{
55
+ selector: 'brn-cmd-group',
56
+ standalone: true,
57
+ imports: [NgIf, DynamicViewModule],
58
+ providers: [
59
+ {
60
+ provide: GroupComponent,
61
+ useExisting: forwardRef((() => BrnCommandGroupComponent)),
62
+ },
63
+ ],
64
+ template: `
65
+ <div role="presentation" *ngIf="label" class="cmdk-group-label">
66
+ <ng-container *dynamicView="label"></ng-container>
67
+ </div>
68
+ <div class="cmdk-group-content" role="group" [attr.aria-label]="ariaLabel">
69
+ <ng-content></ng-content>
70
+ </div>
71
+ `,
72
+ }]
73
+ }] });
74
+
75
+ class BrnCommandInputDirective extends InputDirective {
76
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandInputDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
77
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandInputDirective, isStandalone: true, selector: "input[brnCmdInput]", host: { classAttribute: "cmdk-input" }, providers: [
78
+ {
79
+ provide: InputDirective,
80
+ useExisting: forwardRef((() => BrnCommandInputDirective)),
81
+ },
82
+ ], usesInheritance: true, ngImport: i0 });
83
+ }
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandInputDirective, decorators: [{
85
+ type: Directive,
86
+ args: [{
87
+ selector: 'input[brnCmdInput]',
88
+ standalone: true,
89
+ providers: [
90
+ {
91
+ provide: InputDirective,
92
+ useExisting: forwardRef((() => BrnCommandInputDirective)),
93
+ },
94
+ ],
95
+ host: {
96
+ class: 'cmdk-input',
97
+ },
98
+ }]
99
+ }] });
100
+
101
+ let BrnCommandItemDirective = class BrnCommandItemDirective extends ItemDirective {
102
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
103
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandItemDirective, isStandalone: true, selector: "[brnCmdItem]", host: { attributes: { "tabindex": "-1" }, classAttribute: "cmdk-item" }, providers: [
104
+ {
105
+ provide: ItemDirective,
106
+ useExisting: forwardRef((() => BrnCommandItemDirective)),
107
+ },
108
+ ], usesInheritance: true, ngImport: i0 });
109
+ };
110
+ BrnCommandItemDirective = __decorate([
111
+ UntilDestroy()
112
+ ], BrnCommandItemDirective);
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandItemDirective, decorators: [{
114
+ type: Directive,
115
+ args: [{
116
+ selector: '[brnCmdItem]',
117
+ standalone: true,
118
+ providers: [
119
+ {
120
+ provide: ItemDirective,
121
+ useExisting: forwardRef((() => BrnCommandItemDirective)),
122
+ },
123
+ ],
124
+ host: {
125
+ tabindex: '-1',
126
+ class: 'cmdk-item',
127
+ },
128
+ }]
129
+ }] });
130
+
131
+ class BrnCommandListComponent extends ListComponent {
132
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
133
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandListComponent, isStandalone: true, selector: "brn-cmd-list", providers: [
134
+ {
135
+ provide: ListComponent,
136
+ useExisting: forwardRef((() => BrnCommandListComponent)),
137
+ },
138
+ ], usesInheritance: true, ngImport: i0, template: `
139
+ <div class="cmdk-list-content" role="listbox" [attr.aria-label]="ariaLabel" #height>
140
+ <ng-content></ng-content>
141
+ </div>
142
+ `, isInline: true });
143
+ }
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandListComponent, decorators: [{
145
+ type: Component,
146
+ args: [{
147
+ selector: 'brn-cmd-list',
148
+ standalone: true,
149
+ providers: [
150
+ {
151
+ provide: ListComponent,
152
+ useExisting: forwardRef((() => BrnCommandListComponent)),
153
+ },
154
+ ],
155
+ template: `
156
+ <div class="cmdk-list-content" role="listbox" [attr.aria-label]="ariaLabel" #height>
157
+ <ng-content></ng-content>
158
+ </div>
159
+ `,
160
+ }]
161
+ }] });
162
+
163
+ class BrnCommandLoaderDirective extends LoaderDirective {
164
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandLoaderDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
165
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandLoaderDirective, isStandalone: true, selector: "[brnCmdLoader]", host: { classAttribute: "cmdk-loader" }, providers: [
166
+ {
167
+ provide: LoaderDirective,
168
+ useExisting: forwardRef((() => BrnCommandLoaderDirective)),
169
+ },
170
+ ], usesInheritance: true, ngImport: i0 });
171
+ }
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandLoaderDirective, decorators: [{
173
+ type: Directive,
174
+ args: [{
175
+ selector: '[brnCmdLoader]',
176
+ standalone: true,
177
+ providers: [
178
+ {
179
+ provide: LoaderDirective,
180
+ useExisting: forwardRef((() => BrnCommandLoaderDirective)),
181
+ },
182
+ ],
183
+ host: {
184
+ class: 'cmdk-loader',
185
+ },
186
+ }]
187
+ }] });
188
+
189
+ class BrnCommandSeparatorComponent extends SeparatorComponent {
190
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandSeparatorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
191
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandSeparatorComponent, isStandalone: true, selector: "brn-cmd-separator", host: { classAttribute: "cmdk-separator" }, providers: [
192
+ {
193
+ provide: SeparatorComponent,
194
+ useExisting: forwardRef((() => BrnCommandSeparatorComponent)),
195
+ },
196
+ ], usesInheritance: true, ngImport: i0, template: '<hr>', isInline: true });
197
+ }
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandSeparatorComponent, decorators: [{
199
+ type: Component,
200
+ args: [{
201
+ selector: 'brn-cmd-separator',
202
+ standalone: true,
203
+ template: '<hr>',
204
+ providers: [
205
+ {
206
+ provide: SeparatorComponent,
207
+ useExisting: forwardRef((() => BrnCommandSeparatorComponent)),
208
+ },
209
+ ],
210
+ host: {
211
+ class: 'cmdk-separator',
212
+ },
213
+ }]
214
+ }] });
215
+
216
+ class BrnCommandComponent extends CommandComponent {
217
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
218
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.5", type: BrnCommandComponent, isStandalone: true, selector: "brn-cmd", providers: [CmdkService], usesInheritance: true, ngImport: i0, template: `
219
+ <ng-content />
220
+ `, isInline: true });
221
+ }
222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandComponent, decorators: [{
223
+ type: Component,
224
+ args: [{
225
+ selector: 'brn-cmd',
226
+ standalone: true,
227
+ providers: [CmdkService],
228
+ template: `
229
+ <ng-content />
230
+ `,
231
+ }]
232
+ }] });
233
+
234
+ const BrnCommandImports = [
235
+ CmdkModule,
236
+ BrnCommandComponent,
237
+ BrnCommandEmptyDirective,
238
+ BrnCommandGroupComponent,
239
+ BrnCommandInputDirective,
240
+ BrnCommandItemDirective,
241
+ BrnCommandListComponent,
242
+ BrnCommandLoaderDirective,
243
+ BrnCommandSeparatorComponent,
244
+ BrnCommandSeparatorComponent,
245
+ ];
246
+ class BrnCommandModule {
247
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
248
+ /** @nocollapse */ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandModule, imports: [CmdkModule,
249
+ BrnCommandComponent,
250
+ BrnCommandEmptyDirective,
251
+ BrnCommandGroupComponent,
252
+ BrnCommandInputDirective,
253
+ BrnCommandItemDirective,
254
+ BrnCommandListComponent,
255
+ BrnCommandLoaderDirective,
256
+ BrnCommandSeparatorComponent,
257
+ BrnCommandSeparatorComponent], exports: [CmdkModule,
258
+ BrnCommandComponent,
259
+ BrnCommandEmptyDirective,
260
+ BrnCommandGroupComponent,
261
+ BrnCommandInputDirective,
262
+ BrnCommandItemDirective,
263
+ BrnCommandListComponent,
264
+ BrnCommandLoaderDirective,
265
+ BrnCommandSeparatorComponent,
266
+ BrnCommandSeparatorComponent] });
267
+ /** @nocollapse */ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandModule, imports: [CmdkModule,
268
+ BrnCommandGroupComponent,
269
+ CmdkModule] });
270
+ }
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: BrnCommandModule, decorators: [{
272
+ type: NgModule,
273
+ args: [{
274
+ imports: [...BrnCommandImports],
275
+ exports: [...BrnCommandImports],
276
+ }]
277
+ }] });
278
+
279
+ /**
280
+ * Generated bundle index. Do not edit.
281
+ */
282
+
283
+ export { BrnCommandComponent, BrnCommandEmptyDirective, BrnCommandGroupComponent, BrnCommandImports, BrnCommandInputDirective, BrnCommandItemDirective, BrnCommandListComponent, BrnCommandLoaderDirective, BrnCommandModule, BrnCommandSeparatorComponent };
284
+ //# sourceMappingURL=spartan-ng-brain-command.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spartan-ng-brain-command.mjs","sources":["../../../../libs/brain/command/src/lib/brn-command-empty.directive.ts","../../../../libs/brain/command/src/lib/brn-command-group.component.ts","../../../../libs/brain/command/src/lib/brn-command-input.directive.ts","../../../../libs/brain/command/src/lib/brn-command-item.directive.ts","../../../../libs/brain/command/src/lib/brn-command-list.component.ts","../../../../libs/brain/command/src/lib/brn-command-loader.directive.ts","../../../../libs/brain/command/src/lib/brn-command-separator.component.ts","../../../../libs/brain/command/src/lib/brn-command.component.ts","../../../../libs/brain/command/src/index.ts","../../../../libs/brain/command/src/spartan-ng-brain-command.ts"],"sourcesContent":["import { Directive, forwardRef } from '@angular/core';\nimport { EmptyDirective } from '@ngxpert/cmdk';\n\n@Directive({\n\tselector: '[brnCmdEmpty]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: EmptyDirective,\n\t\t\tuseExisting: forwardRef(() => BrnCommandEmptyDirective),\n\t\t},\n\t],\n\thost: {\n\t\tclass: 'cmdk-empty',\n\t},\n})\nexport class BrnCommandEmptyDirective extends EmptyDirective {}\n","import { NgIf } from '@angular/common';\nimport { Component, forwardRef } from '@angular/core';\nimport { DynamicViewModule } from '@ngneat/overview';\nimport { GroupComponent } from '@ngxpert/cmdk';\n\n@Component({\n\tselector: 'brn-cmd-group',\n\tstandalone: true,\n\timports: [NgIf, DynamicViewModule],\n\tproviders: [\n\t\t{\n\t\t\tprovide: GroupComponent,\n\t\t\tuseExisting: forwardRef(() => BrnCommandGroupComponent),\n\t\t},\n\t],\n\ttemplate: `\n\t\t<div role=\"presentation\" *ngIf=\"label\" class=\"cmdk-group-label\">\n\t\t\t<ng-container *dynamicView=\"label\"></ng-container>\n\t\t</div>\n\t\t<div class=\"cmdk-group-content\" role=\"group\" [attr.aria-label]=\"ariaLabel\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n})\nexport class BrnCommandGroupComponent extends GroupComponent {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { InputDirective } from '@ngxpert/cmdk';\n\n@Directive({\n\tselector: 'input[brnCmdInput]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: InputDirective,\n\t\t\tuseExisting: forwardRef(() => BrnCommandInputDirective),\n\t\t},\n\t],\n\thost: {\n\t\tclass: 'cmdk-input',\n\t},\n})\nexport class BrnCommandInputDirective extends InputDirective {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { UntilDestroy } from '@ngneat/until-destroy';\nimport { ItemDirective } from '@ngxpert/cmdk';\n\n@UntilDestroy()\n@Directive({\n\tselector: '[brnCmdItem]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: ItemDirective,\n\t\t\tuseExisting: forwardRef(() => BrnCommandItemDirective),\n\t\t},\n\t],\n\thost: {\n\t\ttabindex: '-1',\n\t\tclass: 'cmdk-item',\n\t},\n})\nexport class BrnCommandItemDirective extends ItemDirective {}\n","import { Component, forwardRef } from '@angular/core';\nimport { ListComponent } from '@ngxpert/cmdk';\n\n@Component({\n\tselector: 'brn-cmd-list',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: ListComponent,\n\t\t\tuseExisting: forwardRef(() => BrnCommandListComponent),\n\t\t},\n\t],\n\ttemplate: `\n\t\t<div class=\"cmdk-list-content\" role=\"listbox\" [attr.aria-label]=\"ariaLabel\" #height>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n})\nexport class BrnCommandListComponent extends ListComponent {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { LoaderDirective } from '@ngxpert/cmdk';\n\n@Directive({\n\tselector: '[brnCmdLoader]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: LoaderDirective,\n\t\t\tuseExisting: forwardRef(() => BrnCommandLoaderDirective),\n\t\t},\n\t],\n\thost: {\n\t\tclass: 'cmdk-loader',\n\t},\n})\nexport class BrnCommandLoaderDirective extends LoaderDirective {}\n","import { Component, forwardRef } from '@angular/core';\nimport { SeparatorComponent } from '@ngxpert/cmdk';\n\n@Component({\n\tselector: 'brn-cmd-separator',\n\tstandalone: true,\n\ttemplate: '<hr>',\n\tproviders: [\n\t\t{\n\t\t\tprovide: SeparatorComponent,\n\t\t\tuseExisting: forwardRef(() => BrnCommandSeparatorComponent),\n\t\t},\n\t],\n\thost: {\n\t\tclass: 'cmdk-separator',\n\t},\n})\nexport class BrnCommandSeparatorComponent extends SeparatorComponent {}\n","import { Component } from '@angular/core';\nimport { CmdkService, CommandComponent } from '@ngxpert/cmdk';\n\n@Component({\n\tselector: 'brn-cmd',\n\tstandalone: true,\n\tproviders: [CmdkService],\n\ttemplate: `\n\t\t<ng-content />\n\t`,\n})\nexport class BrnCommandComponent extends CommandComponent {}\n","import { NgModule } from '@angular/core';\n\nimport { CmdkModule } from '@ngxpert/cmdk';\nimport { BrnCommandEmptyDirective } from './lib/brn-command-empty.directive';\nimport { BrnCommandGroupComponent } from './lib/brn-command-group.component';\nimport { BrnCommandInputDirective } from './lib/brn-command-input.directive';\nimport { BrnCommandItemDirective } from './lib/brn-command-item.directive';\nimport { BrnCommandListComponent } from './lib/brn-command-list.component';\nimport { BrnCommandLoaderDirective } from './lib/brn-command-loader.directive';\nimport { BrnCommandSeparatorComponent } from './lib/brn-command-separator.component';\nimport { BrnCommandComponent } from './lib/brn-command.component';\n\nexport * from './lib/brn-command-empty.directive';\nexport * from './lib/brn-command-group.component';\nexport * from './lib/brn-command-input.directive';\nexport * from './lib/brn-command-item.directive';\nexport * from './lib/brn-command-list.component';\nexport * from './lib/brn-command-loader.directive';\nexport * from './lib/brn-command-separator.component';\nexport * from './lib/brn-command.component';\n\nexport const BrnCommandImports = [\n\tCmdkModule,\n\tBrnCommandComponent,\n\tBrnCommandEmptyDirective,\n\tBrnCommandGroupComponent,\n\tBrnCommandInputDirective,\n\tBrnCommandItemDirective,\n\tBrnCommandListComponent,\n\tBrnCommandLoaderDirective,\n\tBrnCommandSeparatorComponent,\n\tBrnCommandSeparatorComponent,\n] as const;\n\n@NgModule({\n\timports: [...BrnCommandImports],\n\texports: [...BrnCommandImports],\n})\nexport class BrnCommandModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAgBM,MAAO,wBAAyB,SAAQ,cAAc,CAAA;0HAA/C,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,uBAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,EAVzB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,YAAA,EAAA,EAAA,SAAA,EAAA;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,EAAC;AACvD,aAAA;AACD,SAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAKW,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAbpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,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0HAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,uBAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAhB5B,UAAU;YACV,mBAAmB;YACnB,wBAAwB;YACxB,wBAAwB;YACxB,wBAAwB;YACxB,uBAAuB;YACvB,uBAAuB;YACvB,yBAAyB;YACzB,4BAA4B;AAC5B,YAAA,4BAA4B,aAT5B,UAAU;YACV,mBAAmB;YACnB,wBAAwB;YACxB,wBAAwB;YACxB,wBAAwB;YACxB,uBAAuB;YACvB,uBAAuB;YACvB,yBAAyB;YACzB,4BAA4B;YAC5B,4BAA4B,CAAA,EAAA,CAAA;AAOhB,uBAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAhB5B,UAAU;YAGV,wBAAwB;YAHxB,UAAU,CAAA,EAAA,CAAA;;2FAgBE,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,OAAO,EAAE,CAAC,GAAG,iBAAiB,CAAC;AAC/B,oBAAA,OAAO,EAAE,CAAC,GAAG,iBAAiB,CAAC;AAC/B,iBAAA;;;ACrCD;;AAEG;;;;"}
@@ -0,0 +1,92 @@
1
+ import { DateTime } from 'luxon';
2
+
3
+ class BrnLuxonDateAdapter {
4
+ now() {
5
+ return DateTime.now();
6
+ }
7
+ set(date, values) {
8
+ return date.set(values);
9
+ }
10
+ add(date, duration) {
11
+ return date.plus(duration);
12
+ }
13
+ subtract(date, duration) {
14
+ return date.minus(duration);
15
+ }
16
+ compare(a, b) {
17
+ if (a < b) {
18
+ return -1;
19
+ }
20
+ if (a > b) {
21
+ return 1;
22
+ }
23
+ return 0;
24
+ }
25
+ isEqual(a, b) {
26
+ return a.equals(b);
27
+ }
28
+ isBefore(a, b) {
29
+ return a < b;
30
+ }
31
+ isAfter(a, b) {
32
+ return a > b;
33
+ }
34
+ isSameDay(a, b) {
35
+ return a.hasSame(b, 'day') && a.hasSame(b, 'month') && a.hasSame(b, 'year');
36
+ }
37
+ isSameMonth(a, b) {
38
+ return a.hasSame(b, 'month') && a.hasSame(b, 'year');
39
+ }
40
+ isSameYear(a, b) {
41
+ return a.hasSame(b, 'year');
42
+ }
43
+ getYear(date) {
44
+ return date.year;
45
+ }
46
+ getMonth(date) {
47
+ return date.month;
48
+ }
49
+ getDate(date) {
50
+ return date.day;
51
+ }
52
+ getDay(date) {
53
+ return date.weekday;
54
+ }
55
+ getHours(date) {
56
+ return date.hour;
57
+ }
58
+ getMinutes(date) {
59
+ return date.minute;
60
+ }
61
+ getSeconds(date) {
62
+ return date.second;
63
+ }
64
+ getMilliseconds(date) {
65
+ return date.millisecond;
66
+ }
67
+ getTime(date) {
68
+ return date.toMillis();
69
+ }
70
+ startOfMonth(date) {
71
+ return date.startOf('month');
72
+ }
73
+ endOfMonth(date) {
74
+ return date.endOf('month');
75
+ }
76
+ startOfDay(date) {
77
+ return date.startOf('day');
78
+ }
79
+ endOfDay(date) {
80
+ return date.endOf('day');
81
+ }
82
+ create(values) {
83
+ return DateTime.fromObject(values);
84
+ }
85
+ }
86
+
87
+ /**
88
+ * Generated bundle index. Do not edit.
89
+ */
90
+
91
+ export { BrnLuxonDateAdapter };
92
+ //# sourceMappingURL=spartan-ng-brain-date-time-luxon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spartan-ng-brain-date-time-luxon.mjs","sources":["../../../../libs/brain/date-time-luxon/src/lib/date-adapter.ts","../../../../libs/brain/date-time-luxon/src/spartan-ng-brain-date-time-luxon.ts"],"sourcesContent":["import { BrnDateAdapter, BrnDateUnits, BrnDuration } from '@spartan-ng/brain/date-time';\nimport { DateTime } from 'luxon';\n\nexport class BrnLuxonDateAdapter implements BrnDateAdapter<DateTime> {\n\tnow() {\n\t\treturn DateTime.now();\n\t}\n\n\tset(date: DateTime, values: BrnDateUnits) {\n\t\treturn date.set(values);\n\t}\n\n\tadd(date: DateTime, duration: BrnDuration) {\n\t\treturn date.plus(duration);\n\t}\n\n\tsubtract(date: DateTime, duration: BrnDuration) {\n\t\treturn date.minus(duration);\n\t}\n\n\tcompare(a: DateTime, b: DateTime): number {\n\t\tif (a < b) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tif (a > b) {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn 0;\n\t}\n\n\tisEqual(a: DateTime, b: DateTime): boolean {\n\t\treturn a.equals(b);\n\t}\n\n\tisBefore(a: DateTime, b: DateTime): boolean {\n\t\treturn a < b;\n\t}\n\n\tisAfter(a: DateTime, b: DateTime): boolean {\n\t\treturn a > b;\n\t}\n\n\tisSameDay(a: DateTime, b: DateTime): boolean {\n\t\treturn a.hasSame(b, 'day') && a.hasSame(b, 'month') && a.hasSame(b, 'year');\n\t}\n\n\tisSameMonth(a: DateTime, b: DateTime): boolean {\n\t\treturn a.hasSame(b, 'month') && a.hasSame(b, 'year');\n\t}\n\n\tisSameYear(a: DateTime, b: DateTime): boolean {\n\t\treturn a.hasSame(b, 'year');\n\t}\n\n\tgetYear(date: DateTime): number {\n\t\treturn date.year;\n\t}\n\n\tgetMonth(date: DateTime): number {\n\t\treturn date.month;\n\t}\n\n\tgetDate(date: DateTime): number {\n\t\treturn date.day;\n\t}\n\n\tgetDay(date: DateTime): number {\n\t\treturn date.weekday;\n\t}\n\n\tgetHours(date: DateTime): number {\n\t\treturn date.hour;\n\t}\n\n\tgetMinutes(date: DateTime): number {\n\t\treturn date.minute;\n\t}\n\n\tgetSeconds(date: DateTime): number {\n\t\treturn date.second;\n\t}\n\n\tgetMilliseconds(date: DateTime): number {\n\t\treturn date.millisecond;\n\t}\n\n\tgetTime(date: DateTime<boolean>): number {\n\t\treturn date.toMillis();\n\t}\n\n\tstartOfMonth(date: DateTime) {\n\t\treturn date.startOf('month');\n\t}\n\n\tendOfMonth(date: DateTime) {\n\t\treturn date.endOf('month');\n\t}\n\n\tstartOfDay(date: DateTime) {\n\t\treturn date.startOf('day');\n\t}\n\n\tendOfDay(date: DateTime) {\n\t\treturn date.endOf('day');\n\t}\n\n\tcreate(values: BrnDateUnits) {\n\t\treturn DateTime.fromObject(values);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAGa,mBAAmB,CAAA;IAC/B,GAAG,GAAA;AACF,QAAA,OAAO,QAAQ,CAAC,GAAG,EAAE;;IAGtB,GAAG,CAAC,IAAc,EAAE,MAAoB,EAAA;AACvC,QAAA,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;;IAGxB,GAAG,CAAC,IAAc,EAAE,QAAqB,EAAA;AACxC,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;IAG3B,QAAQ,CAAC,IAAc,EAAE,QAAqB,EAAA;AAC7C,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;;IAG5B,OAAO,CAAC,CAAW,EAAE,CAAW,EAAA;AAC/B,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE;YACV,OAAO,CAAC,CAAC;;AAGV,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE;AACV,YAAA,OAAO,CAAC;;AAGT,QAAA,OAAO,CAAC;;IAGT,OAAO,CAAC,CAAW,EAAE,CAAW,EAAA;AAC/B,QAAA,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;;IAGnB,QAAQ,CAAC,CAAW,EAAE,CAAW,EAAA;QAChC,OAAO,CAAC,GAAG,CAAC;;IAGb,OAAO,CAAC,CAAW,EAAE,CAAW,EAAA;QAC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,CAAC;;AAG7B,IAAA,UAAU,CAAC,IAAc,EAAA;AACxB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;;AAG3B,IAAA,UAAU,CAAC,IAAc,EAAA;AACxB,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;;AAG3B,IAAA,QAAQ,CAAC,IAAc,EAAA;AACtB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;;AAGzB,IAAA,MAAM,CAAC,MAAoB,EAAA;AAC1B,QAAA,OAAO,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC;;AAEnC;;AC/GD;;AAEG;;;;"}
@@ -0,0 +1,177 @@
1
+ import { InjectionToken, inject } from '@angular/core';
2
+
3
+ class BrnNativeDateAdapter {
4
+ /**
5
+ * Create a new date time object.
6
+ */
7
+ create({ day, hour, minute, month, second, year, millisecond }) {
8
+ const now = new Date();
9
+ return new Date(year ?? now.getFullYear(), month ?? now.getMonth(), day ?? now.getDate(), hour ?? now.getHours(), minute ?? now.getMinutes(), second ?? now.getSeconds(), millisecond ?? now.getMilliseconds());
10
+ }
11
+ /**
12
+ * Create a new date with the current date and time.
13
+ */
14
+ now() {
15
+ return new Date();
16
+ }
17
+ /**
18
+ * Set the year of the date time object based on a duration.
19
+ */
20
+ set(date, values) {
21
+ return new Date(values.year ?? date.getFullYear(), values.month ?? date.getMonth(), values.day ?? date.getDate(), values.hour ?? date.getHours(), values.minute ?? date.getMinutes(), values.second ?? date.getSeconds(), values.millisecond ?? date.getMilliseconds());
22
+ }
23
+ /**
24
+ * Add a duration to the date time object.
25
+ */
26
+ add(date, duration) {
27
+ return new Date(date.getFullYear() + (duration.years ?? 0), date.getMonth() + (duration.months ?? 0), date.getDate() + (duration.days ?? 0), date.getHours() + (duration.hours ?? 0), date.getMinutes() + (duration.minutes ?? 0), date.getSeconds() + (duration.seconds ?? 0), date.getMilliseconds() + (duration.milliseconds ?? 0));
28
+ }
29
+ /**
30
+ * Subtract a duration from the date time object
31
+ */
32
+ subtract(date, duration) {
33
+ return new Date(date.getFullYear() - (duration.years ?? 0), date.getMonth() - (duration.months ?? 0), date.getDate() - (duration.days ?? 0), date.getHours() - (duration.hours ?? 0), date.getMinutes() - (duration.minutes ?? 0), date.getSeconds() - (duration.seconds ?? 0), date.getMilliseconds() - (duration.milliseconds ?? 0));
34
+ }
35
+ /**
36
+ * Compare two date time objects
37
+ */
38
+ compare(a, b) {
39
+ const diff = a.getTime() - b.getTime();
40
+ return diff === 0 ? 0 : diff > 0 ? 1 : -1;
41
+ }
42
+ /**
43
+ * Determine if two date time objects are equal.
44
+ */
45
+ isEqual(a, b) {
46
+ return a.getTime() === b.getTime();
47
+ }
48
+ /**
49
+ * Determine if a date time object is before another.
50
+ */
51
+ isBefore(a, b) {
52
+ return a.getTime() < b.getTime();
53
+ }
54
+ /**
55
+ * Determine if a date time object is after another.
56
+ */
57
+ isAfter(a, b) {
58
+ return a.getTime() > b.getTime();
59
+ }
60
+ /**
61
+ * Determine if two date objects are on the same day.
62
+ */
63
+ isSameDay(a, b) {
64
+ return this.isSameYear(a, b) && this.isSameMonth(a, b) && a.getDate() === b.getDate();
65
+ }
66
+ /**
67
+ * Determine if two date objects are on the same month.
68
+ */
69
+ isSameMonth(a, b) {
70
+ return this.isSameYear(a, b) && a.getMonth() === b.getMonth();
71
+ }
72
+ /**
73
+ * Determine if two date objects are on the same year.
74
+ */
75
+ isSameYear(a, b) {
76
+ return a.getFullYear() === b.getFullYear();
77
+ }
78
+ /**
79
+ * Get the year.
80
+ */
81
+ getYear(date) {
82
+ return date.getFullYear();
83
+ }
84
+ /**
85
+ * Get the month.
86
+ */
87
+ getMonth(date) {
88
+ return date.getMonth();
89
+ }
90
+ /**
91
+ * Get the day.
92
+ */
93
+ getDay(date) {
94
+ return date.getDay();
95
+ }
96
+ /**
97
+ * Get the date.
98
+ */
99
+ getDate(date) {
100
+ return date.getDate();
101
+ }
102
+ /**
103
+ * Get the hours.
104
+ */
105
+ getHours(date) {
106
+ return date.getHours();
107
+ }
108
+ /**
109
+ * Get the minutes.
110
+ */
111
+ getMinutes(date) {
112
+ return date.getMinutes();
113
+ }
114
+ /**
115
+ * Get the seconds.
116
+ */
117
+ getSeconds(date) {
118
+ return date.getSeconds();
119
+ }
120
+ /**
121
+ * Get the milliseconds.
122
+ */
123
+ getMilliseconds(date) {
124
+ return date.getMilliseconds();
125
+ }
126
+ /**
127
+ * Get the first day of the month.
128
+ */
129
+ startOfMonth(date) {
130
+ return new Date(date.getFullYear(), date.getMonth(), 1);
131
+ }
132
+ /**
133
+ * Get the last day of the month.
134
+ */
135
+ endOfMonth(date) {
136
+ return new Date(date.getFullYear(), date.getMonth() + 1, 0);
137
+ }
138
+ /**
139
+ * Get the start of the day.
140
+ */
141
+ startOfDay(date) {
142
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
143
+ }
144
+ /**
145
+ * Get the end of the day.
146
+ */
147
+ endOfDay(date) {
148
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59, 999);
149
+ }
150
+ /**
151
+ * Get the time.
152
+ */
153
+ getTime(date) {
154
+ return date.getTime();
155
+ }
156
+ }
157
+
158
+ const BrnDateAdapterToken = new InjectionToken('BrnDateAdapterToken');
159
+ /**
160
+ * Inject the DateAdapter instance
161
+ */
162
+ function injectDateAdapter() {
163
+ return inject(BrnDateAdapterToken, { optional: true }) ?? new BrnNativeDateAdapter();
164
+ }
165
+ /**
166
+ * Provide the DateAdapter instance
167
+ */
168
+ function provideDateAdapter(adapter) {
169
+ return { provide: BrnDateAdapterToken, useClass: adapter };
170
+ }
171
+
172
+ /**
173
+ * Generated bundle index. Do not edit.
174
+ */
175
+
176
+ export { BrnDateAdapterToken, BrnNativeDateAdapter, injectDateAdapter, provideDateAdapter };
177
+ //# sourceMappingURL=spartan-ng-brain-date-time.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spartan-ng-brain-date-time.mjs","sources":["../../../../libs/brain/date-time/src/lib/native-date-adapter.ts","../../../../libs/brain/date-time/src/lib/date-adapter.ts","../../../../libs/brain/date-time/src/spartan-ng-brain-date-time.ts"],"sourcesContent":["import type { BrnDateAdapter, BrnDateUnits, BrnDuration } from './date-adapter';\n\nexport class BrnNativeDateAdapter implements BrnDateAdapter<Date> {\n\t/**\n\t * Create a new date time object.\n\t */\n\tcreate({ day, hour, minute, month, second, year, millisecond }: BrnDateUnits): Date {\n\t\tconst now = new Date();\n\n\t\treturn new Date(\n\t\t\tyear ?? now.getFullYear(),\n\t\t\tmonth ?? now.getMonth(),\n\t\t\tday ?? now.getDate(),\n\t\t\thour ?? now.getHours(),\n\t\t\tminute ?? now.getMinutes(),\n\t\t\tsecond ?? now.getSeconds(),\n\t\t\tmillisecond ?? now.getMilliseconds(),\n\t\t);\n\t}\n\n\t/**\n\t * Create a new date with the current date and time.\n\t */\n\tnow(): Date {\n\t\treturn new Date();\n\t}\n\n\t/**\n\t * Set the year of the date time object based on a duration.\n\t */\n\tset(date: Date, values: BrnDateUnits): Date {\n\t\treturn new Date(\n\t\t\tvalues.year ?? date.getFullYear(),\n\t\t\tvalues.month ?? date.getMonth(),\n\t\t\tvalues.day ?? date.getDate(),\n\t\t\tvalues.hour ?? date.getHours(),\n\t\t\tvalues.minute ?? date.getMinutes(),\n\t\t\tvalues.second ?? date.getSeconds(),\n\t\t\tvalues.millisecond ?? date.getMilliseconds(),\n\t\t);\n\t}\n\n\t/**\n\t * Add a duration to the date time object.\n\t */\n\tadd(date: Date, duration: BrnDuration): Date {\n\t\treturn new Date(\n\t\t\tdate.getFullYear() + (duration.years ?? 0),\n\t\t\tdate.getMonth() + (duration.months ?? 0),\n\t\t\tdate.getDate() + (duration.days ?? 0),\n\t\t\tdate.getHours() + (duration.hours ?? 0),\n\t\t\tdate.getMinutes() + (duration.minutes ?? 0),\n\t\t\tdate.getSeconds() + (duration.seconds ?? 0),\n\t\t\tdate.getMilliseconds() + (duration.milliseconds ?? 0),\n\t\t);\n\t}\n\n\t/**\n\t * Subtract a duration from the date time object\n\t */\n\tsubtract(date: Date, duration: BrnDuration): Date {\n\t\treturn new Date(\n\t\t\tdate.getFullYear() - (duration.years ?? 0),\n\t\t\tdate.getMonth() - (duration.months ?? 0),\n\t\t\tdate.getDate() - (duration.days ?? 0),\n\t\t\tdate.getHours() - (duration.hours ?? 0),\n\t\t\tdate.getMinutes() - (duration.minutes ?? 0),\n\t\t\tdate.getSeconds() - (duration.seconds ?? 0),\n\t\t\tdate.getMilliseconds() - (duration.milliseconds ?? 0),\n\t\t);\n\t}\n\n\t/**\n\t * Compare two date time objects\n\t */\n\tcompare(a: Date, b: Date): number {\n\t\tconst diff = a.getTime() - b.getTime();\n\t\treturn diff === 0 ? 0 : diff > 0 ? 1 : -1;\n\t}\n\n\t/**\n\t * Determine if two date time objects are equal.\n\t */\n\tisEqual(a: Date, b: Date): boolean {\n\t\treturn a.getTime() === b.getTime();\n\t}\n\n\t/**\n\t * Determine if a date time object is before another.\n\t */\n\tisBefore(a: Date, b: Date): boolean {\n\t\treturn a.getTime() < b.getTime();\n\t}\n\n\t/**\n\t * Determine if a date time object is after another.\n\t */\n\tisAfter(a: Date, b: Date): boolean {\n\t\treturn a.getTime() > b.getTime();\n\t}\n\n\t/**\n\t * Determine if two date objects are on the same day.\n\t */\n\tisSameDay(a: Date, b: Date): boolean {\n\t\treturn this.isSameYear(a, b) && this.isSameMonth(a, b) && a.getDate() === b.getDate();\n\t}\n\n\t/**\n\t * Determine if two date objects are on the same month.\n\t */\n\tisSameMonth(a: Date, b: Date): boolean {\n\t\treturn this.isSameYear(a, b) && a.getMonth() === b.getMonth();\n\t}\n\n\t/**\n\t * Determine if two date objects are on the same year.\n\t */\n\tisSameYear(a: Date, b: Date): boolean {\n\t\treturn a.getFullYear() === b.getFullYear();\n\t}\n\n\t/**\n\t * Get the year.\n\t */\n\tgetYear(date: Date): number {\n\t\treturn date.getFullYear();\n\t}\n\n\t/**\n\t * Get the month.\n\t */\n\tgetMonth(date: Date): number {\n\t\treturn date.getMonth();\n\t}\n\n\t/**\n\t * Get the day.\n\t */\n\tgetDay(date: Date): number {\n\t\treturn date.getDay();\n\t}\n\n\t/**\n\t * Get the date.\n\t */\n\tgetDate(date: Date): number {\n\t\treturn date.getDate();\n\t}\n\n\t/**\n\t * Get the hours.\n\t */\n\tgetHours(date: Date): number {\n\t\treturn date.getHours();\n\t}\n\n\t/**\n\t * Get the minutes.\n\t */\n\tgetMinutes(date: Date): number {\n\t\treturn date.getMinutes();\n\t}\n\n\t/**\n\t * Get the seconds.\n\t */\n\tgetSeconds(date: Date): number {\n\t\treturn date.getSeconds();\n\t}\n\n\t/**\n\t * Get the milliseconds.\n\t */\n\tgetMilliseconds(date: Date): number {\n\t\treturn date.getMilliseconds();\n\t}\n\n\t/**\n\t * Get the first day of the month.\n\t */\n\tstartOfMonth(date: Date): Date {\n\t\treturn new Date(date.getFullYear(), date.getMonth(), 1);\n\t}\n\n\t/**\n\t * Get the last day of the month.\n\t */\n\tendOfMonth(date: Date): Date {\n\t\treturn new Date(date.getFullYear(), date.getMonth() + 1, 0);\n\t}\n\n\t/**\n\t * Get the start of the day.\n\t */\n\tstartOfDay(date: Date): Date {\n\t\treturn new Date(date.getFullYear(), date.getMonth(), date.getDate());\n\t}\n\n\t/**\n\t * Get the end of the day.\n\t */\n\tendOfDay(date: Date): Date {\n\t\treturn new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59, 999);\n\t}\n\n\t/**\n\t * Get the time.\n\t */\n\tgetTime(date: Date): number {\n\t\treturn date.getTime();\n\t}\n}\n","import { ClassProvider, InjectionToken, Type, inject } from '@angular/core';\nimport { BrnNativeDateAdapter } from './native-date-adapter';\n\n/**\n * An abstraction that can be used to create and modify date time objects\n * immutably regardless of the underlying implementation.\n */\nexport interface BrnDateAdapter<T> {\n\t/**\n\t * Create a new date time object.\n\t */\n\tcreate(values: BrnDateUnits): T;\n\n\t/**\n\t * Create a new date with the current date and time.\n\t */\n\tnow(): T;\n\n\t/**\n\t * Set the year of the date time object based on a duration.\n\t */\n\tset(date: T, values: BrnDateUnits): T;\n\n\t/**\n\t * Add a duration to the date time object.\n\t */\n\tadd(date: T, duration: BrnDuration): T;\n\n\t/**\n\t * Subtract a duration from the date time object.\n\t */\n\tsubtract(date: T, duration: BrnDuration): T;\n\n\t/**\n\t * Compare two date time objects.\n\t */\n\tcompare(a: T, b: T): number;\n\n\t/**\n\t * Determine if two date time objects are equal.\n\t */\n\tisEqual(a: T, b: T): boolean;\n\n\t/**\n\t * Determine if a date time object is before another.\n\t */\n\tisBefore(a: T, b: T): boolean;\n\n\t/**\n\t * Determine if a date time object is after another.\n\t */\n\tisAfter(a: T, b: T): boolean;\n\n\t/**\n\t * Determine if two date objects are on the same day.\n\t */\n\tisSameDay(a: T, b: T): boolean;\n\n\t/**\n\t * Determine if two date objects are on the same month.\n\t */\n\tisSameMonth(a: T, b: T): boolean;\n\n\t/**\n\t * Determine if two date objects are on the same year.\n\t */\n\tisSameYear(a: T, b: T): boolean;\n\n\t/**\n\t * Get the year.\n\t */\n\tgetYear(date: T): number;\n\n\t/**\n\t * Get the month.\n\t */\n\tgetMonth(date: T): number;\n\n\t/**\n\t * Get the date.\n\t */\n\tgetDate(date: T): number;\n\n\t/**\n\t * Get the day.\n\t */\n\tgetDay(date: T): number;\n\n\t/**\n\t * Get the hours.\n\t */\n\tgetHours(date: T): number;\n\n\t/**\n\t * Get the minutes.\n\t */\n\tgetMinutes(date: T): number;\n\n\t/**\n\t * Get the seconds.\n\t */\n\tgetSeconds(date: T): number;\n\n\t/**\n\t * Get the milliseconds.\n\t */\n\tgetMilliseconds(date: T): number;\n\n\t/**\n\t * Get the time.\n\t */\n\tgetTime(date: T): number;\n\n\t/**\n\t * Get the first day of the month.\n\t */\n\tstartOfMonth(date: T): T;\n\n\t/**\n\t * Get the last day of the month.\n\t */\n\tendOfMonth(date: T): T;\n\n\t/**\n\t * Get the start of the day.\n\t */\n\tstartOfDay(date: T): T;\n\n\t/**\n\t * Get the end of the day.\n\t */\n\tendOfDay(date: T): T;\n}\n\nexport interface BrnDateUnits {\n\t/**\n\t * The year.\n\t */\n\tyear?: number;\n\n\t/**\n\t * The month.\n\t */\n\tmonth?: number;\n\n\t/**\n\t * The day.\n\t */\n\tday?: number;\n\n\t/**\n\t * The hour.\n\t */\n\thour?: number;\n\n\t/**\n\t * The minute.\n\t */\n\tminute?: number;\n\n\t/**\n\t * The second.\n\t */\n\tsecond?: number;\n\n\t/**\n\t * The millisecond.\n\t */\n\tmillisecond?: number;\n}\n\nexport interface BrnDuration {\n\t/**\n\t * The years.\n\t */\n\tyears?: number;\n\n\t/**\n\t * The months.\n\t */\n\tmonths?: number;\n\n\t/**\n\t * The days.\n\t */\n\tdays?: number;\n\n\t/**\n\t * The hours.\n\t */\n\thours?: number;\n\n\t/**\n\t * The minutes.\n\t */\n\tminutes?: number;\n\n\t/**\n\t * The seconds.\n\t */\n\tseconds?: number;\n\n\t/**\n\t * The milliseconds.\n\t */\n\tmilliseconds?: number;\n}\n\nexport const BrnDateAdapterToken = new InjectionToken<BrnDateAdapter<unknown>>('BrnDateAdapterToken');\n\n/**\n * Inject the DateAdapter instance\n */\nexport function injectDateAdapter<T>(): BrnDateAdapter<T> {\n\treturn (inject(BrnDateAdapterToken, { optional: true }) as BrnDateAdapter<T>) ?? new BrnNativeDateAdapter();\n}\n\n/**\n * Provide the DateAdapter instance\n */\nexport function provideDateAdapter<T>(adapter: Type<BrnDateAdapter<T>>): ClassProvider {\n\treturn { provide: BrnDateAdapterToken, useClass: adapter };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAEa,oBAAoB,CAAA;AAChC;;AAEG;AACH,IAAA,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAgB,EAAA;AAC3E,QAAA,MAAM,GAAG,GAAG,IAAI,IAAI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