@elementar-rt/components 0.6.55

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 (259) hide show
  1. package/README.md +49 -0
  2. package/action-required/index.d.ts +13 -0
  3. package/alert/index.d.ts +51 -0
  4. package/announcement/index.d.ts +45 -0
  5. package/avatar/index.d.ts +67 -0
  6. package/block-loader/index.d.ts +21 -0
  7. package/block-state/index.d.ts +33 -0
  8. package/brand-colors/index.d.ts +27 -0
  9. package/breadcrumbs/index.d.ts +104 -0
  10. package/card-overlay/index.d.ts +20 -0
  11. package/carousel/index.d.ts +75 -0
  12. package/code-highlighter/index.d.ts +18 -0
  13. package/color-picker/index.d.ts +92 -0
  14. package/color-scheme/index.d.ts +44 -0
  15. package/command-bar/index.d.ts +28 -0
  16. package/comment-editor/index.d.ts +194 -0
  17. package/comparison-slider/index.d.ts +51 -0
  18. package/confirm/index.d.ts +35 -0
  19. package/content-fade/index.d.ts +17 -0
  20. package/cookie-popup/index.d.ts +41 -0
  21. package/core/index.d.ts +252 -0
  22. package/country-select/index.d.ts +76 -0
  23. package/crop/index.d.ts +59 -0
  24. package/currency-select/index.d.ts +78 -0
  25. package/dashboard/index.d.ts +48 -0
  26. package/data-view/index.d.ts +127 -0
  27. package/date-format-select/index.d.ts +56 -0
  28. package/divider/index.d.ts +13 -0
  29. package/drawer/index.d.ts +35 -0
  30. package/emoji-picker/index.d.ts +49 -0
  31. package/expand/index.d.ts +26 -0
  32. package/fesm2022/elementar-rt-components-action-required.mjs +30 -0
  33. package/fesm2022/elementar-rt-components-action-required.mjs.map +1 -0
  34. package/fesm2022/elementar-rt-components-alert.mjs +139 -0
  35. package/fesm2022/elementar-rt-components-alert.mjs.map +1 -0
  36. package/fesm2022/elementar-rt-components-announcement.mjs +73 -0
  37. package/fesm2022/elementar-rt-components-announcement.mjs.map +1 -0
  38. package/fesm2022/elementar-rt-components-avatar.mjs +234 -0
  39. package/fesm2022/elementar-rt-components-avatar.mjs.map +1 -0
  40. package/fesm2022/elementar-rt-components-block-loader.mjs +54 -0
  41. package/fesm2022/elementar-rt-components-block-loader.mjs.map +1 -0
  42. package/fesm2022/elementar-rt-components-block-state.mjs +75 -0
  43. package/fesm2022/elementar-rt-components-block-state.mjs.map +1 -0
  44. package/fesm2022/elementar-rt-components-brand-colors.mjs +78 -0
  45. package/fesm2022/elementar-rt-components-brand-colors.mjs.map +1 -0
  46. package/fesm2022/elementar-rt-components-breadcrumbs.mjs +213 -0
  47. package/fesm2022/elementar-rt-components-breadcrumbs.mjs.map +1 -0
  48. package/fesm2022/elementar-rt-components-card-overlay.mjs +55 -0
  49. package/fesm2022/elementar-rt-components-card-overlay.mjs.map +1 -0
  50. package/fesm2022/elementar-rt-components-carousel.mjs +605 -0
  51. package/fesm2022/elementar-rt-components-carousel.mjs.map +1 -0
  52. package/fesm2022/elementar-rt-components-code-highlighter.mjs +57 -0
  53. package/fesm2022/elementar-rt-components-code-highlighter.mjs.map +1 -0
  54. package/fesm2022/elementar-rt-components-color-picker.mjs +708 -0
  55. package/fesm2022/elementar-rt-components-color-picker.mjs.map +1 -0
  56. package/fesm2022/elementar-rt-components-color-scheme.mjs +106 -0
  57. package/fesm2022/elementar-rt-components-color-scheme.mjs.map +1 -0
  58. package/fesm2022/elementar-rt-components-command-bar.mjs +59 -0
  59. package/fesm2022/elementar-rt-components-command-bar.mjs.map +1 -0
  60. package/fesm2022/elementar-rt-components-comment-editor.mjs +1039 -0
  61. package/fesm2022/elementar-rt-components-comment-editor.mjs.map +1 -0
  62. package/fesm2022/elementar-rt-components-comparison-slider.mjs +193 -0
  63. package/fesm2022/elementar-rt-components-comparison-slider.mjs.map +1 -0
  64. package/fesm2022/elementar-rt-components-confirm.mjs +86 -0
  65. package/fesm2022/elementar-rt-components-confirm.mjs.map +1 -0
  66. package/fesm2022/elementar-rt-components-content-fade.mjs +35 -0
  67. package/fesm2022/elementar-rt-components-content-fade.mjs.map +1 -0
  68. package/fesm2022/elementar-rt-components-cookie-popup.mjs +109 -0
  69. package/fesm2022/elementar-rt-components-cookie-popup.mjs.map +1 -0
  70. package/fesm2022/elementar-rt-components-core.mjs +837 -0
  71. package/fesm2022/elementar-rt-components-core.mjs.map +1 -0
  72. package/fesm2022/elementar-rt-components-country-select.mjs +477 -0
  73. package/fesm2022/elementar-rt-components-country-select.mjs.map +1 -0
  74. package/fesm2022/elementar-rt-components-crop.mjs +183 -0
  75. package/fesm2022/elementar-rt-components-crop.mjs.map +1 -0
  76. package/fesm2022/elementar-rt-components-currency-select.mjs +384 -0
  77. package/fesm2022/elementar-rt-components-currency-select.mjs.map +1 -0
  78. package/fesm2022/elementar-rt-components-dashboard.mjs +96 -0
  79. package/fesm2022/elementar-rt-components-dashboard.mjs.map +1 -0
  80. package/fesm2022/elementar-rt-components-data-view.mjs +302 -0
  81. package/fesm2022/elementar-rt-components-data-view.mjs.map +1 -0
  82. package/fesm2022/elementar-rt-components-date-format-select.mjs +136 -0
  83. package/fesm2022/elementar-rt-components-date-format-select.mjs.map +1 -0
  84. package/fesm2022/elementar-rt-components-divider.mjs +31 -0
  85. package/fesm2022/elementar-rt-components-divider.mjs.map +1 -0
  86. package/fesm2022/elementar-rt-components-drawer.mjs +131 -0
  87. package/fesm2022/elementar-rt-components-drawer.mjs.map +1 -0
  88. package/fesm2022/elementar-rt-components-emoji-picker.mjs +249 -0
  89. package/fesm2022/elementar-rt-components-emoji-picker.mjs.map +1 -0
  90. package/fesm2022/elementar-rt-components-expand.mjs +60 -0
  91. package/fesm2022/elementar-rt-components-expand.mjs.map +1 -0
  92. package/fesm2022/elementar-rt-components-filter-builder.mjs +333 -0
  93. package/fesm2022/elementar-rt-components-filter-builder.mjs.map +1 -0
  94. package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs +123 -0
  95. package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs.map +1 -0
  96. package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs +22 -0
  97. package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs.map +1 -0
  98. package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs +40 -0
  99. package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs.map +1 -0
  100. package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs +17 -0
  101. package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs.map +1 -0
  102. package/fesm2022/elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs +17 -0
  103. package/fesm2022/elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs.map +1 -0
  104. package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs +33 -0
  105. package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs.map +1 -0
  106. package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs +38 -0
  107. package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs.map +1 -0
  108. package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs +39 -0
  109. package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs.map +1 -0
  110. package/fesm2022/elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs +24 -0
  111. package/fesm2022/elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs.map +1 -0
  112. package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs +37 -0
  113. package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs.map +1 -0
  114. package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs +35 -0
  115. package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs.map +1 -0
  116. package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs +22 -0
  117. package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs.map +1 -0
  118. package/fesm2022/elementar-rt-components-form-renderer.mjs +321 -0
  119. package/fesm2022/elementar-rt-components-form-renderer.mjs.map +1 -0
  120. package/fesm2022/elementar-rt-components-gauge.mjs +50 -0
  121. package/fesm2022/elementar-rt-components-gauge.mjs.map +1 -0
  122. package/fesm2022/elementar-rt-components-icon.mjs +62 -0
  123. package/fesm2022/elementar-rt-components-icon.mjs.map +1 -0
  124. package/fesm2022/elementar-rt-components-image-resizer.mjs +159 -0
  125. package/fesm2022/elementar-rt-components-image-resizer.mjs.map +1 -0
  126. package/fesm2022/elementar-rt-components-image-viewer.mjs +349 -0
  127. package/fesm2022/elementar-rt-components-image-viewer.mjs.map +1 -0
  128. package/fesm2022/elementar-rt-components-incidents.mjs +259 -0
  129. package/fesm2022/elementar-rt-components-incidents.mjs.map +1 -0
  130. package/fesm2022/elementar-rt-components-inline-text-edit.mjs +181 -0
  131. package/fesm2022/elementar-rt-components-inline-text-edit.mjs.map +1 -0
  132. package/fesm2022/elementar-rt-components-input-mask.mjs +180 -0
  133. package/fesm2022/elementar-rt-components-input-mask.mjs.map +1 -0
  134. package/fesm2022/elementar-rt-components-input-validator.mjs +24 -0
  135. package/fesm2022/elementar-rt-components-input-validator.mjs.map +1 -0
  136. package/fesm2022/elementar-rt-components-kanban-board.mjs +156 -0
  137. package/fesm2022/elementar-rt-components-kanban-board.mjs.map +1 -0
  138. package/fesm2022/elementar-rt-components-layout.mjs +188 -0
  139. package/fesm2022/elementar-rt-components-layout.mjs.map +1 -0
  140. package/fesm2022/elementar-rt-components-logo.mjs +43 -0
  141. package/fesm2022/elementar-rt-components-logo.mjs.map +1 -0
  142. package/fesm2022/elementar-rt-components-marquee.mjs +79 -0
  143. package/fesm2022/elementar-rt-components-marquee.mjs.map +1 -0
  144. package/fesm2022/elementar-rt-components-micro-chart.mjs +950 -0
  145. package/fesm2022/elementar-rt-components-micro-chart.mjs.map +1 -0
  146. package/fesm2022/elementar-rt-components-navigation.mjs +379 -0
  147. package/fesm2022/elementar-rt-components-navigation.mjs.map +1 -0
  148. package/fesm2022/elementar-rt-components-notifications.mjs +190 -0
  149. package/fesm2022/elementar-rt-components-notifications.mjs.map +1 -0
  150. package/fesm2022/elementar-rt-components-number-input.mjs +288 -0
  151. package/fesm2022/elementar-rt-components-number-input.mjs.map +1 -0
  152. package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs +455 -0
  153. package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs.map +1 -0
  154. package/fesm2022/elementar-rt-components-overlay.mjs +112 -0
  155. package/fesm2022/elementar-rt-components-overlay.mjs.map +1 -0
  156. package/fesm2022/elementar-rt-components-page-loading-bar.mjs +79 -0
  157. package/fesm2022/elementar-rt-components-page-loading-bar.mjs.map +1 -0
  158. package/fesm2022/elementar-rt-components-panel.mjs +105 -0
  159. package/fesm2022/elementar-rt-components-panel.mjs.map +1 -0
  160. package/fesm2022/elementar-rt-components-password-strength.mjs +474 -0
  161. package/fesm2022/elementar-rt-components-password-strength.mjs.map +1 -0
  162. package/fesm2022/elementar-rt-components-phone-input.mjs +637 -0
  163. package/fesm2022/elementar-rt-components-phone-input.mjs.map +1 -0
  164. package/fesm2022/elementar-rt-components-pin-input.mjs +197 -0
  165. package/fesm2022/elementar-rt-components-pin-input.mjs.map +1 -0
  166. package/fesm2022/elementar-rt-components-popover.mjs +262 -0
  167. package/fesm2022/elementar-rt-components-popover.mjs.map +1 -0
  168. package/fesm2022/elementar-rt-components-radio-card.mjs +102 -0
  169. package/fesm2022/elementar-rt-components-radio-card.mjs.map +1 -0
  170. package/fesm2022/elementar-rt-components-rail-nav.mjs +84 -0
  171. package/fesm2022/elementar-rt-components-rail-nav.mjs.map +1 -0
  172. package/fesm2022/elementar-rt-components-resizable-container.mjs +69 -0
  173. package/fesm2022/elementar-rt-components-resizable-container.mjs.map +1 -0
  174. package/fesm2022/elementar-rt-components-screen-loader.mjs +27 -0
  175. package/fesm2022/elementar-rt-components-screen-loader.mjs.map +1 -0
  176. package/fesm2022/elementar-rt-components-scroll-spy.mjs +165 -0
  177. package/fesm2022/elementar-rt-components-scroll-spy.mjs.map +1 -0
  178. package/fesm2022/elementar-rt-components-segmented.mjs +153 -0
  179. package/fesm2022/elementar-rt-components-segmented.mjs.map +1 -0
  180. package/fesm2022/elementar-rt-components-side-panel.mjs +110 -0
  181. package/fesm2022/elementar-rt-components-side-panel.mjs.map +1 -0
  182. package/fesm2022/elementar-rt-components-sidebar.mjs +423 -0
  183. package/fesm2022/elementar-rt-components-sidebar.mjs.map +1 -0
  184. package/fesm2022/elementar-rt-components-signature-pad.mjs +452 -0
  185. package/fesm2022/elementar-rt-components-signature-pad.mjs.map +1 -0
  186. package/fesm2022/elementar-rt-components-skeleton.mjs +56 -0
  187. package/fesm2022/elementar-rt-components-skeleton.mjs.map +1 -0
  188. package/fesm2022/elementar-rt-components-splash-screen.mjs +91 -0
  189. package/fesm2022/elementar-rt-components-splash-screen.mjs.map +1 -0
  190. package/fesm2022/elementar-rt-components-stepper.mjs +194 -0
  191. package/fesm2022/elementar-rt-components-stepper.mjs.map +1 -0
  192. package/fesm2022/elementar-rt-components-suggestions.mjs +76 -0
  193. package/fesm2022/elementar-rt-components-suggestions.mjs.map +1 -0
  194. package/fesm2022/elementar-rt-components-tab-panel.mjs +270 -0
  195. package/fesm2022/elementar-rt-components-tab-panel.mjs.map +1 -0
  196. package/fesm2022/elementar-rt-components-text-editor.mjs +1025 -0
  197. package/fesm2022/elementar-rt-components-text-editor.mjs.map +1 -0
  198. package/fesm2022/elementar-rt-components-thumbnail-maker.mjs +214 -0
  199. package/fesm2022/elementar-rt-components-thumbnail-maker.mjs.map +1 -0
  200. package/fesm2022/elementar-rt-components-timeline.mjs +122 -0
  201. package/fesm2022/elementar-rt-components-timeline.mjs.map +1 -0
  202. package/fesm2022/elementar-rt-components-timezone-select.mjs +351 -0
  203. package/fesm2022/elementar-rt-components-timezone-select.mjs.map +1 -0
  204. package/fesm2022/elementar-rt-components-upload.mjs +340 -0
  205. package/fesm2022/elementar-rt-components-upload.mjs.map +1 -0
  206. package/fesm2022/elementar-rt-components.mjs +6 -0
  207. package/fesm2022/elementar-rt-components.mjs.map +1 -0
  208. package/filter-builder/index.d.ts +107 -0
  209. package/form-renderer/index.d.ts +121 -0
  210. package/gauge/index.d.ts +21 -0
  211. package/icon/index.d.ts +17 -0
  212. package/image-resizer/index.d.ts +35 -0
  213. package/image-viewer/index.d.ts +63 -0
  214. package/incidents/index.d.ts +119 -0
  215. package/index.d.ts +2 -0
  216. package/inline-text-edit/index.d.ts +39 -0
  217. package/input-mask/index.d.ts +36 -0
  218. package/input-validator/index.d.ts +5 -0
  219. package/kanban-board/index.d.ts +68 -0
  220. package/layout/index.d.ts +75 -0
  221. package/logo/index.d.ts +21 -0
  222. package/marquee/index.d.ts +26 -0
  223. package/micro-chart/index.d.ts +193 -0
  224. package/navigation/index.d.ts +119 -0
  225. package/notifications/index.d.ts +84 -0
  226. package/number-input/index.d.ts +93 -0
  227. package/overlay/index.d.ts +12 -0
  228. package/overlay-scrollbar/index.d.ts +66 -0
  229. package/package.json +356 -0
  230. package/page-loading-bar/index.d.ts +20 -0
  231. package/panel/index.d.ts +43 -0
  232. package/password-strength/index.d.ts +109 -0
  233. package/phone-input/index.d.ts +94 -0
  234. package/pin-input/index.d.ts +48 -0
  235. package/popover/index.d.ts +75 -0
  236. package/radio-card/index.d.ts +37 -0
  237. package/rail-nav/index.d.ts +36 -0
  238. package/resizable-container/index.d.ts +21 -0
  239. package/screen-loader/index.d.ts +9 -0
  240. package/scroll-spy/index.d.ts +48 -0
  241. package/segmented/index.d.ts +54 -0
  242. package/side-panel/index.d.ts +42 -0
  243. package/sidebar/index.d.ts +143 -0
  244. package/signature-pad/index.d.ts +49 -0
  245. package/skeleton/index.d.ts +24 -0
  246. package/splash-screen/index.d.ts +31 -0
  247. package/stepper/index.d.ts +65 -0
  248. package/styles/_common.scss +776 -0
  249. package/styles/themes/cyan-orange.scss +41 -0
  250. package/styles/themes/default.scss +5 -0
  251. package/styles/themes/magenta-violet.scss +41 -0
  252. package/styles/themes/rose-red.scss +41 -0
  253. package/suggestions/index.d.ts +32 -0
  254. package/tab-panel/index.d.ts +96 -0
  255. package/text-editor/index.d.ts +191 -0
  256. package/thumbnail-maker/index.d.ts +35 -0
  257. package/timeline/index.d.ts +57 -0
  258. package/timezone-select/index.d.ts +72 -0
  259. package/upload/index.d.ts +134 -0
@@ -0,0 +1,190 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, TemplateRef, input, Directive, contentChildren, contentChild, booleanAttribute, Component, ElementRef } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { SkeletonComponent, SkeletonCircleComponent, SkeletonLineComponent, SkeletonBlockComponent } from '@elementar-rt/components/skeleton';
5
+
6
+ class NotificationDefDirective {
7
+ templateRef = inject(TemplateRef);
8
+ emrNotificationDef = input.required(...(ngDevMode ? [{ debugName: "emrNotificationDef" }] : []));
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.10", type: NotificationDefDirective, isStandalone: true, selector: "[emrNotificationDef]", inputs: { emrNotificationDef: { classPropertyName: "emrNotificationDef", publicName: "emrNotificationDef", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
11
+ }
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationDefDirective, decorators: [{
13
+ type: Directive,
14
+ args: [{
15
+ selector: '[emrNotificationDef]',
16
+ standalone: true
17
+ }]
18
+ }], propDecorators: { emrNotificationDef: [{ type: i0.Input, args: [{ isSignal: true, alias: "emrNotificationDef", required: true }] }] } });
19
+
20
+ class NotificationControlsDefDirective {
21
+ templateRef = inject(TemplateRef);
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationControlsDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
23
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: NotificationControlsDefDirective, isStandalone: true, selector: "[emrNotificationControlsDef]", ngImport: i0 });
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationControlsDefDirective, decorators: [{
26
+ type: Directive,
27
+ args: [{
28
+ selector: '[emrNotificationControlsDef]',
29
+ standalone: true
30
+ }]
31
+ }] });
32
+
33
+ class NotificationListComponent {
34
+ defs = contentChildren(NotificationDefDirective, ...(ngDevMode ? [{ debugName: "defs" }] : []));
35
+ controlsDef = contentChild(NotificationControlsDefDirective, ...(ngDevMode ? [{ debugName: "controlsDef" }] : []));
36
+ notifications = input([], ...(ngDevMode ? [{ debugName: "notifications" }] : []));
37
+ static = input(true, ...(ngDevMode ? [{ debugName: "static", transform: booleanAttribute }] : [{
38
+ transform: booleanAttribute
39
+ }]));
40
+ _initialized = false;
41
+ _defsMap = new Map();
42
+ get controlsTpl() {
43
+ return this.controlsDef()?.templateRef;
44
+ }
45
+ ngAfterContentInit() {
46
+ this.defs().forEach((def) => {
47
+ this._defsMap.set(def.emrNotificationDef(), def.templateRef);
48
+ });
49
+ this._initialized = true;
50
+ }
51
+ getNotificationTemplate(type) {
52
+ if (!this._defsMap.has(type)) {
53
+ throw new Error(`Invalid type "${type}" for notification def`);
54
+ }
55
+ return this._defsMap.get(type);
56
+ }
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: NotificationListComponent, isStandalone: true, selector: "emr-notification-list", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, static: { classPropertyName: "static", publicName: "static", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-static": "static()" }, classAttribute: "emr-notification-list" }, queries: [{ propertyName: "defs", predicate: NotificationDefDirective, isSignal: true }, { propertyName: "controlsDef", first: true, predicate: NotificationControlsDefDirective, descendants: true, isSignal: true }], exportAs: ["emrNotificationList"], ngImport: i0, template: "@if (_initialized) {\r\n @for (notification of notifications(); track notification) {\r\n <div class=\"notification\">\r\n <ng-container [ngTemplateOutlet]=\"getNotificationTemplate(notification.type)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: notification }\" />\r\n @if (controlsDef()) {\r\n <div class=\"controls\">\r\n <ng-container [ngTemplateOutlet]=\"controlsTpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: notification }\" />\r\n </div>\r\n }\r\n </div>\r\n }\r\n}\r\n", styles: [":host{--emr-notification-list-gap: calc(var(--spacing, .25rem) * 6);display:flex;flex-direction:column;gap:var(--emr-notification-list-gap)}:host .notification{position:relative}:host .controls{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 1);top:calc(var(--spacing, .25rem) * 1)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationListComponent, decorators: [{
61
+ type: Component,
62
+ args: [{ selector: 'emr-notification-list', exportAs: 'emrNotificationList', imports: [
63
+ NgTemplateOutlet
64
+ ], host: {
65
+ 'class': 'emr-notification-list',
66
+ '[class.is-static]': 'static()'
67
+ }, template: "@if (_initialized) {\r\n @for (notification of notifications(); track notification) {\r\n <div class=\"notification\">\r\n <ng-container [ngTemplateOutlet]=\"getNotificationTemplate(notification.type)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: notification }\" />\r\n @if (controlsDef()) {\r\n <div class=\"controls\">\r\n <ng-container [ngTemplateOutlet]=\"controlsTpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: notification }\" />\r\n </div>\r\n }\r\n </div>\r\n }\r\n}\r\n", styles: [":host{--emr-notification-list-gap: calc(var(--spacing, .25rem) * 6);display:flex;flex-direction:column;gap:var(--emr-notification-list-gap)}:host .notification{position:relative}:host .controls{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 1);top:calc(var(--spacing, .25rem) * 1)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
68
+ }], propDecorators: { defs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NotificationDefDirective), { isSignal: true }] }], controlsDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NotificationControlsDefDirective), { isSignal: true }] }], notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], static: [{ type: i0.Input, args: [{ isSignal: true, alias: "static", required: false }] }] } });
69
+
70
+ class NotificationSkeletonComponent {
71
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationSkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
72
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NotificationSkeletonComponent, isStandalone: true, selector: "emr-notification-skeleton", host: { classAttribute: "emr-notification-skeleton" }, exportAs: ["emrNotificationSkeleton"], ngImport: i0, template: "<emr-skeleton class=\"flex gap-3\">\r\n <emr-skeleton-circle class=\"size-11\"/>\r\n <div class=\"grow flex flex-col gap-2\">\r\n <emr-skeleton-block class=\"h-16\"/>\r\n <emr-skeleton-line class=\"w-20 h-3\"/>\r\n </div>\r\n</emr-skeleton>\r\n", styles: [":host{display:contents}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "emr-skeleton", inputs: ["direction"], exportAs: ["emrSkeleton"] }, { kind: "component", type: SkeletonCircleComponent, selector: "emr-skeleton-circle", exportAs: ["emrSkeletonCircle"] }, { kind: "component", type: SkeletonLineComponent, selector: "emr-skeleton-line", exportAs: ["emrSkeletonLine"] }, { kind: "component", type: SkeletonBlockComponent, selector: "emr-skeleton-block", exportAs: ["emrSkeletonBlock"] }] });
73
+ }
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationSkeletonComponent, decorators: [{
75
+ type: Component,
76
+ args: [{ selector: 'emr-notification-skeleton', exportAs: 'emrNotificationSkeleton', imports: [
77
+ SkeletonComponent,
78
+ SkeletonCircleComponent,
79
+ SkeletonLineComponent,
80
+ SkeletonBlockComponent
81
+ ], host: {
82
+ 'class': 'emr-notification-skeleton',
83
+ }, template: "<emr-skeleton class=\"flex gap-3\">\r\n <emr-skeleton-circle class=\"size-11\"/>\r\n <div class=\"grow flex flex-col gap-2\">\r\n <emr-skeleton-block class=\"h-16\"/>\r\n <emr-skeleton-line class=\"w-20 h-3\"/>\r\n </div>\r\n</emr-skeleton>\r\n", styles: [":host{display:contents}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
84
+ }] });
85
+
86
+ class NotificationTimeComponent {
87
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
88
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NotificationTimeComponent, isStandalone: true, selector: "emr-notification-time,[emr-notification-time]", host: { classAttribute: "emr-notification-time" }, exportAs: ["emrNotificationTime"], ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{font-size:.75rem;color:var(--color-on-surface-variant)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
89
+ }
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationTimeComponent, decorators: [{
91
+ type: Component,
92
+ args: [{ selector: 'emr-notification-time,[emr-notification-time]', exportAs: 'emrNotificationTime', imports: [], host: {
93
+ 'class': 'emr-notification-time'
94
+ }, template: "<ng-content/>\r\n", styles: [":host{font-size:.75rem;color:var(--color-on-surface-variant)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
95
+ }] });
96
+
97
+ class NotificationActorComponent {
98
+ elementRef = inject(ElementRef);
99
+ get asLink() {
100
+ return this.elementRef.nativeElement.tagName === 'A';
101
+ }
102
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationActorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
103
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NotificationActorComponent, isStandalone: true, selector: "emr-notification-actor,[emr-notification-actor]", host: { properties: { "class.as-link": "asLink" }, classAttribute: "emr-notification-actor" }, ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{display:inline-block;font-weight:600;color:var(--color-on-surface);font-size:.875rem}:host.as-link:hover{cursor:pointer;text-decoration:underline}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
104
+ }
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationActorComponent, decorators: [{
106
+ type: Component,
107
+ args: [{ selector: 'emr-notification-actor,[emr-notification-actor]', imports: [], host: {
108
+ 'class': 'emr-notification-actor',
109
+ '[class.as-link]': 'asLink'
110
+ }, template: "<ng-content/>\r\n", styles: [":host{display:inline-block;font-weight:600;color:var(--color-on-surface);font-size:.875rem}:host.as-link:hover{cursor:pointer;text-decoration:underline}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
111
+ }] });
112
+
113
+ class NotificationMessageComponent {
114
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
115
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NotificationMessageComponent, isStandalone: true, selector: "emr-notification-message", host: { classAttribute: "emr-notification-message" }, exportAs: ["emrNotificationMessage"], ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{font-size:.875rem}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
116
+ }
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationMessageComponent, decorators: [{
118
+ type: Component,
119
+ args: [{ selector: 'emr-notification-message', exportAs: 'emrNotificationMessage', imports: [], host: {
120
+ 'class': 'emr-notification-message'
121
+ }, template: "<ng-content/>\r\n", styles: [":host{font-size:.875rem}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
122
+ }] });
123
+
124
+ class NotificationComponent {
125
+ isUnread = input(false, ...(ngDevMode ? [{ debugName: "isUnread", transform: booleanAttribute }] : [{
126
+ transform: booleanAttribute
127
+ }]));
128
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
129
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: NotificationComponent, isStandalone: true, selector: "emr-notification,[emr-notification]", inputs: { isUnread: { classPropertyName: "isUnread", publicName: "isUnread", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-unread": "isUnread()" }, classAttribute: "emr-notification" }, exportAs: ["emrNotification"], ngImport: i0, template: "<div class=\"avatar\">\r\n <ng-content select=\"[emrNotificationAvatar]\"/>\r\n</div>\r\n<div class=\"grow\">\r\n <span class=\"message\">\r\n <ng-content select=\"emr-notification-message,[emr-notification-message]\"/>\r\n </span>\r\n <div class=\"content\">\r\n <ng-content select=\"emr-notification-content,[emr-notification-content]\"/>\r\n </div>\r\n <ng-content select=\"emr-notification-time,[emr-notification-time]\"/>\r\n</div>\r\n", styles: [":host{--emr-notification-padding: calc(var(--spacing, .25rem) * 5);--emr-notification-gap: calc(var(--spacing, .25rem) * 4);--emr-notification-bg: var(--color-surface-container-low);--emr-notification-hover-bg: var(--color-surface-container);--emr-notification-is-unread-bg: var(--color-primary-200);--emr-notification-is-unread-hover-bg: var(--color-primary-300);display:flex;width:100%;position:relative;border-radius:.75rem;gap:var(--emr-notification-gap);padding:var(--emr-notification-padding)}:host .avatar{position:relative}:host .avatar:empty{display:none}:host .actor:empty{display:none}:host .message:empty{display:none}:host-context(emr-notification-list.is-static){cursor:auto}:host-context(emr-notification-list){background:var(--emr-notification-bg);cursor:pointer}:host-context(emr-notification-list).is-unread{background:var(--emr-notification-is-unread-bg)}:host-context(emr-notification-list:not(.is-static)):hover{background:var(--emr-notification-hover-bg)}:host-context(emr-notification-list:not(.is-static)).is-unread:hover{background:var(--emr-notification-is-unread-hover-bg)}:host-context(html.dark){--emr-notification-is-unread-bg: var(--color-neutral-950);--emr-notification-is-unread-hover-bg: var(--color-neutral-900)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
130
+ }
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationComponent, decorators: [{
132
+ type: Component,
133
+ args: [{ selector: 'emr-notification,[emr-notification]', exportAs: 'emrNotification', imports: [], host: {
134
+ 'class': 'emr-notification',
135
+ '[class.is-unread]': 'isUnread()'
136
+ }, template: "<div class=\"avatar\">\r\n <ng-content select=\"[emrNotificationAvatar]\"/>\r\n</div>\r\n<div class=\"grow\">\r\n <span class=\"message\">\r\n <ng-content select=\"emr-notification-message,[emr-notification-message]\"/>\r\n </span>\r\n <div class=\"content\">\r\n <ng-content select=\"emr-notification-content,[emr-notification-content]\"/>\r\n </div>\r\n <ng-content select=\"emr-notification-time,[emr-notification-time]\"/>\r\n</div>\r\n", styles: [":host{--emr-notification-padding: calc(var(--spacing, .25rem) * 5);--emr-notification-gap: calc(var(--spacing, .25rem) * 4);--emr-notification-bg: var(--color-surface-container-low);--emr-notification-hover-bg: var(--color-surface-container);--emr-notification-is-unread-bg: var(--color-primary-200);--emr-notification-is-unread-hover-bg: var(--color-primary-300);display:flex;width:100%;position:relative;border-radius:.75rem;gap:var(--emr-notification-gap);padding:var(--emr-notification-padding)}:host .avatar{position:relative}:host .avatar:empty{display:none}:host .actor:empty{display:none}:host .message:empty{display:none}:host-context(emr-notification-list.is-static){cursor:auto}:host-context(emr-notification-list){background:var(--emr-notification-bg);cursor:pointer}:host-context(emr-notification-list).is-unread{background:var(--emr-notification-is-unread-bg)}:host-context(emr-notification-list:not(.is-static)):hover{background:var(--emr-notification-hover-bg)}:host-context(emr-notification-list:not(.is-static)).is-unread:hover{background:var(--emr-notification-is-unread-hover-bg)}:host-context(html.dark){--emr-notification-is-unread-bg: var(--color-neutral-950);--emr-notification-is-unread-hover-bg: var(--color-neutral-900)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
137
+ }], propDecorators: { isUnread: [{ type: i0.Input, args: [{ isSignal: true, alias: "isUnread", required: false }] }] } });
138
+
139
+ class NotificationContentComponent {
140
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
141
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NotificationContentComponent, isStandalone: true, selector: "emr-notification-content,[emr-notification-content]", host: { classAttribute: "emr-notification-content" }, exportAs: ["emrNotificationContent"], ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{display:block;margin:calc(var(--spacing, .25rem) * 1) 0 calc(var(--spacing, .25rem) * 1) 0}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
142
+ }
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationContentComponent, decorators: [{
144
+ type: Component,
145
+ args: [{ selector: 'emr-notification-content,[emr-notification-content]', exportAs: 'emrNotificationContent', imports: [], host: {
146
+ 'class': 'emr-notification-content'
147
+ }, template: "<ng-content/>\r\n", styles: [":host{display:block;margin:calc(var(--spacing, .25rem) * 1) 0 calc(var(--spacing, .25rem) * 1) 0}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
148
+ }] });
149
+
150
+ class NotificationPropsDirective {
151
+ isUnread = input(false, ...(ngDevMode ? [{ debugName: "isUnread", transform: booleanAttribute }] : [{
152
+ transform: booleanAttribute
153
+ }]));
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationPropsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
155
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.10", type: NotificationPropsDirective, isStandalone: true, selector: "[emrNotificationProps]", inputs: { isUnread: { classPropertyName: "isUnread", publicName: "isUnread", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-unread": "isUnread()" }, classAttribute: "emr-notification-props" }, exportAs: ["emrNotificationProps"], ngImport: i0 });
156
+ }
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationPropsDirective, decorators: [{
158
+ type: Directive,
159
+ args: [{
160
+ selector: '[emrNotificationProps]',
161
+ exportAs: 'emrNotificationProps',
162
+ standalone: true,
163
+ host: {
164
+ 'class': 'emr-notification-props',
165
+ '[class.is-unread]': 'isUnread()',
166
+ }
167
+ }]
168
+ }], propDecorators: { isUnread: [{ type: i0.Input, args: [{ isSignal: true, alias: "isUnread", required: false }] }] } });
169
+
170
+ class NotificationAvatarDirective {
171
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationAvatarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
172
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: NotificationAvatarDirective, isStandalone: true, selector: "[emrNotificationAvatar]", host: { classAttribute: "emr-notification-avatar" }, exportAs: ["emrNotificationAvatar"], ngImport: i0 });
173
+ }
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NotificationAvatarDirective, decorators: [{
175
+ type: Directive,
176
+ args: [{
177
+ selector: '[emrNotificationAvatar]',
178
+ exportAs: 'emrNotificationAvatar',
179
+ host: {
180
+ 'class': 'emr-notification-avatar'
181
+ }
182
+ }]
183
+ }] });
184
+
185
+ /**
186
+ * Generated bundle index. Do not edit.
187
+ */
188
+
189
+ export { NotificationActorComponent, NotificationAvatarDirective, NotificationComponent, NotificationContentComponent, NotificationControlsDefDirective, NotificationDefDirective, NotificationListComponent, NotificationMessageComponent, NotificationPropsDirective, NotificationSkeletonComponent, NotificationTimeComponent };
190
+ //# sourceMappingURL=elementar-rt-components-notifications.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elementar-rt-components-notifications.mjs","sources":["../../../projects/components/notifications/src/notification-def.directive.ts","../../../projects/components/notifications/src/notification-controls-def.directive.ts","../../../projects/components/notifications/src/notification-list/notification-list.component.ts","../../../projects/components/notifications/src/notification-list/notification-list.component.html","../../../projects/components/notifications/src/notification-skeleton/notification-skeleton.component.ts","../../../projects/components/notifications/src/notification-skeleton/notification-skeleton.component.html","../../../projects/components/notifications/src/notification-time/notification-time.component.ts","../../../projects/components/notifications/src/notification-time/notification-time.component.html","../../../projects/components/notifications/src/notification-actor/notification-actor.component.ts","../../../projects/components/notifications/src/notification-actor/notification-actor.component.html","../../../projects/components/notifications/src/notification-message/notification-message.component.ts","../../../projects/components/notifications/src/notification-message/notification-message.component.html","../../../projects/components/notifications/src/notification/notification.component.ts","../../../projects/components/notifications/src/notification/notification.component.html","../../../projects/components/notifications/src/notification-content/notification-content.component.ts","../../../projects/components/notifications/src/notification-content/notification-content.component.html","../../../projects/components/notifications/src/notification-props.directive.ts","../../../projects/components/notifications/src/notification-avatar.directive.ts","../../../projects/components/notifications/elementar-rt-components-notifications.ts"],"sourcesContent":["import { Directive, inject, input, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNotificationDef]',\r\n standalone: true\r\n})\r\nexport class NotificationDefDirective {\r\n readonly templateRef = inject(TemplateRef);\r\n emrNotificationDef = input.required<string>();\r\n}\r\n","import { Directive, inject, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNotificationControlsDef]',\r\n standalone: true\r\n})\r\nexport class NotificationControlsDefDirective {\r\n readonly templateRef = inject(TemplateRef);\r\n}\r\n","import {\r\n AfterContentInit, booleanAttribute,\r\n Component,\r\n contentChild,\r\n contentChildren,\r\n input,\r\n TemplateRef\r\n} from '@angular/core';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\nimport { NotificationDefDirective } from '../notification-def.directive';\r\nimport { NotificationControlsDefDirective } from '../notification-controls-def.directive';\r\nimport { Notification } from '../types';\r\n\r\n@Component({\r\n selector: 'emr-notification-list',\r\n exportAs: 'emrNotificationList',\r\n imports: [\r\n NgTemplateOutlet\r\n ],\r\n templateUrl: './notification-list.component.html',\r\n styleUrl: './notification-list.component.scss',\r\n host: {\r\n 'class': 'emr-notification-list',\r\n '[class.is-static]': 'static()'\r\n }\r\n})\r\nexport class NotificationListComponent<T extends Notification> implements AfterContentInit {\r\n readonly defs = contentChildren(NotificationDefDirective);\r\n readonly controlsDef = contentChild(NotificationControlsDefDirective);\r\n\r\n notifications = input<T[]>([]);\r\n static = input(true, {\r\n transform: booleanAttribute\r\n });\r\n\r\n protected _initialized = false;\r\n protected _defsMap = new Map<string, TemplateRef<any>>();\r\n\r\n get controlsTpl(): TemplateRef<any> {\r\n return this.controlsDef()?.templateRef as TemplateRef<any>;\r\n }\r\n\r\n ngAfterContentInit() {\r\n this.defs().forEach((def: NotificationDefDirective) => {\r\n this._defsMap.set(def.emrNotificationDef(), def.templateRef);\r\n });\r\n this._initialized = true;\r\n }\r\n\r\n getNotificationTemplate(type: string): TemplateRef<any> {\r\n if (!this._defsMap.has(type)) {\r\n throw new Error(`Invalid type \"${type}\" for notification def`);\r\n }\r\n\r\n return this._defsMap.get(type) as TemplateRef<any>;\r\n }\r\n}\r\n","@if (_initialized) {\r\n @for (notification of notifications(); track notification) {\r\n <div class=\"notification\">\r\n <ng-container [ngTemplateOutlet]=\"getNotificationTemplate(notification.type)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: notification }\" />\r\n @if (controlsDef()) {\r\n <div class=\"controls\">\r\n <ng-container [ngTemplateOutlet]=\"controlsTpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: notification }\" />\r\n </div>\r\n }\r\n </div>\r\n }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport {\r\n SkeletonBlockComponent,\r\n SkeletonCircleComponent,\r\n SkeletonComponent,\r\n SkeletonLineComponent\r\n} from '@elementar-rt/components/skeleton';\r\n\r\n@Component({\r\n selector: 'emr-notification-skeleton',\r\n exportAs: 'emrNotificationSkeleton',\r\n imports: [\r\n SkeletonComponent,\r\n SkeletonCircleComponent,\r\n SkeletonLineComponent,\r\n SkeletonBlockComponent\r\n ],\r\n templateUrl: './notification-skeleton.component.html',\r\n styleUrl: './notification-skeleton.component.scss',\r\n host: {\r\n 'class': 'emr-notification-skeleton',\r\n }\r\n})\r\nexport class NotificationSkeletonComponent {\r\n\r\n}\r\n","<emr-skeleton class=\"flex gap-3\">\r\n <emr-skeleton-circle class=\"size-11\"/>\r\n <div class=\"grow flex flex-col gap-2\">\r\n <emr-skeleton-block class=\"h-16\"/>\r\n <emr-skeleton-line class=\"w-20 h-3\"/>\r\n </div>\r\n</emr-skeleton>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-notification-time,[emr-notification-time]',\r\n exportAs: 'emrNotificationTime',\r\n imports: [],\r\n templateUrl: './notification-time.component.html',\r\n styleUrl: './notification-time.component.scss',\r\n host: {\r\n 'class': 'emr-notification-time'\r\n }\r\n})\r\nexport class NotificationTimeComponent {\r\n\r\n}\r\n","<ng-content/>\r\n","import { Component, ElementRef, inject } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-notification-actor,[emr-notification-actor]',\r\n imports: [],\r\n templateUrl: './notification-actor.component.html',\r\n styleUrl: './notification-actor.component.scss',\r\n host: {\r\n 'class': 'emr-notification-actor',\r\n '[class.as-link]': 'asLink'\r\n }\r\n})\r\nexport class NotificationActorComponent {\r\n private elementRef = inject(ElementRef);\r\n\r\n protected get asLink() {\r\n return (this.elementRef.nativeElement as HTMLElement).tagName === 'A';\r\n }\r\n}\r\n","<ng-content/>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-notification-message',\r\n exportAs: 'emrNotificationMessage',\r\n imports: [],\r\n templateUrl: './notification-message.component.html',\r\n styleUrl: './notification-message.component.scss',\r\n host: {\r\n 'class': 'emr-notification-message'\r\n }\r\n})\r\nexport class NotificationMessageComponent {\r\n\r\n}\r\n","<ng-content/>\r\n","import { booleanAttribute, Component, input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-notification,[emr-notification]',\r\n exportAs: 'emrNotification',\r\n imports: [],\r\n templateUrl: './notification.component.html',\r\n styleUrl: './notification.component.scss',\r\n host: {\r\n 'class': 'emr-notification',\r\n '[class.is-unread]': 'isUnread()'\r\n }\r\n})\r\nexport class NotificationComponent {\r\n isUnread = input(false, {\r\n transform: booleanAttribute\r\n });\r\n}\r\n","<div class=\"avatar\">\r\n <ng-content select=\"[emrNotificationAvatar]\"/>\r\n</div>\r\n<div class=\"grow\">\r\n <span class=\"message\">\r\n <ng-content select=\"emr-notification-message,[emr-notification-message]\"/>\r\n </span>\r\n <div class=\"content\">\r\n <ng-content select=\"emr-notification-content,[emr-notification-content]\"/>\r\n </div>\r\n <ng-content select=\"emr-notification-time,[emr-notification-time]\"/>\r\n</div>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-notification-content,[emr-notification-content]',\r\n exportAs: 'emrNotificationContent',\r\n imports: [],\r\n templateUrl: './notification-content.component.html',\r\n styleUrl: './notification-content.component.scss',\r\n host: {\r\n 'class': 'emr-notification-content'\r\n }\r\n})\r\nexport class NotificationContentComponent {\r\n\r\n}\r\n","<ng-content/>\r\n","import { booleanAttribute, Directive, input } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNotificationProps]',\r\n exportAs: 'emrNotificationProps',\r\n standalone: true,\r\n host: {\r\n 'class': 'emr-notification-props',\r\n '[class.is-unread]': 'isUnread()',\r\n }\r\n})\r\nexport class NotificationPropsDirective {\r\n isUnread = input(false, {\r\n transform: booleanAttribute\r\n });\r\n}\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNotificationAvatar]',\r\n exportAs: 'emrNotificationAvatar',\r\n host: {\r\n 'class': 'emr-notification-avatar'\r\n }\r\n})\r\nexport class NotificationAvatarDirective {\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAMa,wBAAwB,CAAA;AAC1B,IAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AAC1C,IAAA,kBAAkB,GAAG,KAAK,CAAC,QAAQ,6DAAU;wGAFlC,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,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AAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE,wBAAwB;AACjC,wBAAA,mBAAmB,EAAE,YAAY;AAClC;AACF,iBAAA;;;MCDY,2BAA2B,CAAA;wGAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,yBAAA,EAAA,EAAA,QAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE;AACV;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -0,0 +1,288 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, TemplateRef, Directive, ElementRef, viewChild, contentChild, input, numberAttribute, booleanAttribute, output, forwardRef, Input, Optional, Self, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { NgForm, FormGroupDirective } from '@angular/forms';
5
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
6
+ import { MatFormFieldControl } from '@angular/material/form-field';
7
+ import { Subject } from 'rxjs';
8
+ import { MatRipple } from '@angular/material/core';
9
+ import { NgTemplateOutlet } from '@angular/common';
10
+
11
+ class DecreaseControlDirective {
12
+ templateRef = inject(TemplateRef);
13
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: DecreaseControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
14
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: DecreaseControlDirective, isStandalone: true, selector: "[emrDecreaseControl]", exportAs: ["emrDecreaseControl"], ngImport: i0 });
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: DecreaseControlDirective, decorators: [{
17
+ type: Directive,
18
+ args: [{
19
+ selector: '[emrDecreaseControl]',
20
+ exportAs: 'emrDecreaseControl'
21
+ }]
22
+ }] });
23
+
24
+ class IncreaseControlDirective {
25
+ templateRef = inject(TemplateRef);
26
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncreaseControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
27
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: IncreaseControlDirective, isStandalone: true, selector: "[emrIncreaseControl]", exportAs: ["emrIncreaseControl"], ngImport: i0 });
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncreaseControlDirective, decorators: [{
30
+ type: Directive,
31
+ args: [{
32
+ selector: '[emrIncreaseControl]',
33
+ exportAs: 'emrIncreaseControl'
34
+ }]
35
+ }] });
36
+
37
+ class NumberInputComponent {
38
+ ngControl;
39
+ _parentForm = inject(NgForm, {
40
+ optional: true,
41
+ });
42
+ _parentFormGroup = inject(FormGroupDirective, {
43
+ optional: true,
44
+ });
45
+ _elementRef = inject(ElementRef);
46
+ disableAutomaticLabeling;
47
+ placeholder;
48
+ _input = viewChild.required('input');
49
+ _decreaseControlRef = contentChild(DecreaseControlDirective, ...(ngDevMode ? [{ debugName: "_decreaseControlRef" }] : []));
50
+ _increaseControlRef = contentChild(IncreaseControlDirective, ...(ngDevMode ? [{ debugName: "_increaseControlRef" }] : []));
51
+ min = input(undefined, ...(ngDevMode ? [{ debugName: "min", transform: numberAttribute }] : [{
52
+ transform: numberAttribute
53
+ }]));
54
+ max = input(undefined, ...(ngDevMode ? [{ debugName: "max", transform: numberAttribute }] : [{
55
+ transform: numberAttribute
56
+ }]));
57
+ step = input(1, ...(ngDevMode ? [{ debugName: "step", transform: numberAttribute }] : [{
58
+ transform: numberAttribute
59
+ }]));
60
+ readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly", transform: booleanAttribute }] : [{
61
+ transform: booleanAttribute
62
+ }]));
63
+ set disabled(disabled) {
64
+ this._disabled = coerceBooleanProperty(disabled);
65
+ this.stateChanges.next();
66
+ }
67
+ get disabled() {
68
+ return this._disabled;
69
+ }
70
+ _disabled = false;
71
+ get required() {
72
+ return this._required;
73
+ }
74
+ set required(req) {
75
+ this._required = coerceBooleanProperty(req);
76
+ this.stateChanges.next();
77
+ }
78
+ _required = false;
79
+ valueChange = output();
80
+ static nextId = 0;
81
+ _value;
82
+ controlType;
83
+ autofilled;
84
+ userAriaDescribedBy;
85
+ stateChanges = new Subject();
86
+ focused = false;
87
+ touched = false;
88
+ errorState = false;
89
+ get id() {
90
+ return `emr-number-input${NumberInputComponent.nextId++}`;
91
+ }
92
+ get shouldLabelFloat() {
93
+ return this.focused || !this.empty;
94
+ }
95
+ get empty() {
96
+ if (this._value === 0) {
97
+ return false;
98
+ }
99
+ return typeof this._value !== 'number';
100
+ }
101
+ constructor(ngControl) {
102
+ this.ngControl = ngControl;
103
+ // Replace the provider from above with this.
104
+ if (this.ngControl != null) {
105
+ // Setting the value accessor directly (instead of using
106
+ // the providers) to avoid running into a circular import.
107
+ this.ngControl.valueAccessor = this;
108
+ }
109
+ }
110
+ setDescribedByIds(ids) {
111
+ const controlElement = this._elementRef.nativeElement;
112
+ controlElement.setAttribute('aria-describedby', ids.join(' '));
113
+ }
114
+ onFocusIn(event) {
115
+ if (!this.focused) {
116
+ this.focused = true;
117
+ this.stateChanges.next();
118
+ }
119
+ }
120
+ onFocusOut(event) {
121
+ if (!this._elementRef.nativeElement.contains(event.relatedTarget)) {
122
+ this.touched = true;
123
+ this.focused = false;
124
+ this.onTouched();
125
+ this.stateChanges.next();
126
+ }
127
+ }
128
+ set value(value) {
129
+ this._value = value;
130
+ this.stateChanges.next();
131
+ }
132
+ get value() {
133
+ return this._value;
134
+ }
135
+ ngOnDestroy() {
136
+ this.stateChanges.complete();
137
+ }
138
+ get _decreaseControlTemplateRef() {
139
+ return this._decreaseControlRef()?.templateRef;
140
+ }
141
+ get _increaseControlTemplateRef() {
142
+ return this._increaseControlRef()?.templateRef;
143
+ }
144
+ onChange = () => { };
145
+ onTouched = () => { };
146
+ registerOnChange(fn) {
147
+ this.onChange = fn;
148
+ }
149
+ registerOnTouched(fn) {
150
+ this.onTouched = fn;
151
+ }
152
+ setDisabledState(isDisabled) {
153
+ this.disabled = coerceBooleanProperty(isDisabled);
154
+ }
155
+ writeValue(value) {
156
+ this._input().nativeElement.value = value;
157
+ this.value = value;
158
+ }
159
+ decrease(event, input) {
160
+ event.preventDefault();
161
+ event.stopPropagation();
162
+ let value = +input.value;
163
+ value -= this.step();
164
+ input.value = value.toString();
165
+ this._emitEvent();
166
+ }
167
+ increase(event, input) {
168
+ event.preventDefault();
169
+ event.stopPropagation();
170
+ let value = +input.value;
171
+ value += this.step();
172
+ input.value = value.toString();
173
+ this._emitEvent();
174
+ }
175
+ isDecreaseDisabled() {
176
+ const value = this._input().nativeElement.value;
177
+ if (typeof this.min() === 'undefined') {
178
+ return false;
179
+ }
180
+ // @ts-ignore
181
+ return (typeof this.min() === 'number' && +value <= this.min()) || this.readonly() || this.disabled;
182
+ }
183
+ isIncreaseDisabled() {
184
+ const value = this._input().nativeElement.value;
185
+ if (typeof this.max() === 'undefined') {
186
+ return false;
187
+ }
188
+ // @ts-ignore
189
+ return ((typeof this.min() === 'number' && value) && +value >= this.max()) || this.readonly() || this.disabled;
190
+ }
191
+ inputChange(event) {
192
+ this._value = this._input().nativeElement.value ? +this._input().nativeElement.value : undefined;
193
+ this._emitEvent();
194
+ }
195
+ _emitEvent() {
196
+ const value = this._input().nativeElement.value ? +this._input().nativeElement.value : undefined;
197
+ this.value = value;
198
+ this.onChange(value);
199
+ this.valueChange.emit(value);
200
+ this.updateErrorState();
201
+ }
202
+ ngDoCheck() {
203
+ if (this.ngControl) {
204
+ this.updateErrorState();
205
+ }
206
+ }
207
+ onContainerClick(event) {
208
+ if (event.target.tagName.toLowerCase() != 'input') {
209
+ this._elementRef.nativeElement.querySelector('input').focus();
210
+ }
211
+ }
212
+ updateErrorState() {
213
+ const parent = this._parentFormGroup || this._parentForm;
214
+ let oldState = this.errorState;
215
+ let newState = !!(this.ngControl?.invalid) && this.touched;
216
+ if (parent) {
217
+ newState = !!(this.ngControl?.invalid) && (this.touched || parent.submitted);
218
+ }
219
+ if (oldState !== newState) {
220
+ this.errorState = newState;
221
+ this.stateChanges.next();
222
+ }
223
+ }
224
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
225
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: NumberInputComponent, isStandalone: true, selector: "emr-number-input", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { attributes: { "id": "id" }, properties: { "class.floating": "shouldLabelFloat" }, classAttribute: "emr-number-input" }, providers: [
226
+ {
227
+ provide: MatFormFieldControl,
228
+ useExisting: forwardRef(() => NumberInputComponent),
229
+ }
230
+ ], queries: [{ propertyName: "_decreaseControlRef", first: true, predicate: DecreaseControlDirective, descendants: true, isSignal: true }, { propertyName: "_increaseControlRef", first: true, predicate: IncreaseControlDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true, isSignal: true }], exportAs: ["emrNumberInput"], ngImport: i0, template: "<input #input type=\"number\" class=\"input\"\r\n (focusin)=\"onFocusIn($event)\"\r\n (focusout)=\"onFocusOut($event)\"\r\n [attr.min]=\"min()\"\r\n [attr.max]=\"max()\"\r\n [step]=\"step()\"\r\n (input)=\"inputChange($event)\">\r\n<div class=\"controls\">\r\n <button class=\"control control-decrease\" matRipple [disabled]=\"isDecreaseDisabled()\" (click)=\"decrease($event, input)\">\r\n @if (_decreaseControlRef()) {\r\n <ng-template [ngTemplateOutlet]=\"_decreaseControlTemplateRef\"/>\r\n } @else {\r\n <span>&minus;</span>\r\n }\r\n </button>\r\n <button class=\"control control-increase\" matRipple [disabled]=\"isIncreaseDisabled()\" (click)=\"increase($event, input)\">\r\n @if (_increaseControlRef()) {\r\n <ng-template [ngTemplateOutlet]=\"_increaseControlTemplateRef\"/>\r\n } @else {\r\n <span>&plus;</span>\r\n }\r\n </button>\r\n</div>\r\n", styles: [":host{--emr-number-input-gap: calc(var(--spacing) * 2);--emr-number-input-control-bg: none;--emr-number-input-control-color: var(--color-neutral-500);--emr-number-input-control-hover-color: var(--color-neutral-600);--emr-number-input-control-active-color: var(--color-neutral-700);--emr-number-input-control-hover-bg: var(--color-surface-container);--emr-number-input-control-active-bg: var(--color-surface-container-high);--emr-number-input-control-font-size: 1.5rem;--emr-number-input-control-border-radius: .375rem;--emr-number-input-suffix-gap: calc(var(--spacing) * 3);--emr-number-input-control-size: calc(var(--spacing) * 7);--emr-number-input-control-border: none;display:flex;gap:var(--emr-number-input-gap)}:host .input{width:auto;max-width:none;flex-grow:1;min-width:0}:host .input{background:none;outline:none;color:currentColor;font:inherit;border:none}:host .input::-webkit-outer-spin-button,:host .input::-webkit-inner-spin-button{appearance:none;margin:0}:host .controls{display:flex;height:100%;gap:.375rem;-webkit-user-select:none;user-select:none}:host .control{cursor:pointer;flex:none;display:flex;align-items:center;justify-content:center;width:var(--emr-number-input-control-size);height:var(--emr-number-input-control-size);background:var(--emr-number-input-control-bg);color:var(--emr-number-input-control-color);font-size:var(--emr-number-input-control-font-size);line-height:var(--emr-number-input-control-font-size);border-radius:var(--emr-number-input-control-border-radius);position:relative;border:var(--emr-number-input-control-border);top:1px}:host .control span{position:relative;top:-1px}:host .control ::ng-deep .mat-icon{line-height:24px}:host .control:hover{background:var(--emr-number-input-control-hover-bg);color:var(--emr-number-input-control-hover-color)}:host .control[disabled]{pointer-events:none;opacity:.65}:host-context(html.dark){--emr-number-input-control-color: var(--color-neutral-300);--emr-number-input-control-hover-color: var(--color-neutral-200);--emr-number-input-control-hover-bg: var(--color-neutral-500)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
231
+ }
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberInputComponent, decorators: [{
233
+ type: Component,
234
+ args: [{ selector: 'emr-number-input', exportAs: 'emrNumberInput', imports: [
235
+ MatRipple,
236
+ NgTemplateOutlet
237
+ ], providers: [
238
+ {
239
+ provide: MatFormFieldControl,
240
+ useExisting: forwardRef(() => NumberInputComponent),
241
+ }
242
+ ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
243
+ 'class': 'emr-number-input',
244
+ '[class.floating]': 'shouldLabelFloat',
245
+ 'id': 'id'
246
+ }, template: "<input #input type=\"number\" class=\"input\"\r\n (focusin)=\"onFocusIn($event)\"\r\n (focusout)=\"onFocusOut($event)\"\r\n [attr.min]=\"min()\"\r\n [attr.max]=\"max()\"\r\n [step]=\"step()\"\r\n (input)=\"inputChange($event)\">\r\n<div class=\"controls\">\r\n <button class=\"control control-decrease\" matRipple [disabled]=\"isDecreaseDisabled()\" (click)=\"decrease($event, input)\">\r\n @if (_decreaseControlRef()) {\r\n <ng-template [ngTemplateOutlet]=\"_decreaseControlTemplateRef\"/>\r\n } @else {\r\n <span>&minus;</span>\r\n }\r\n </button>\r\n <button class=\"control control-increase\" matRipple [disabled]=\"isIncreaseDisabled()\" (click)=\"increase($event, input)\">\r\n @if (_increaseControlRef()) {\r\n <ng-template [ngTemplateOutlet]=\"_increaseControlTemplateRef\"/>\r\n } @else {\r\n <span>&plus;</span>\r\n }\r\n </button>\r\n</div>\r\n", styles: [":host{--emr-number-input-gap: calc(var(--spacing) * 2);--emr-number-input-control-bg: none;--emr-number-input-control-color: var(--color-neutral-500);--emr-number-input-control-hover-color: var(--color-neutral-600);--emr-number-input-control-active-color: var(--color-neutral-700);--emr-number-input-control-hover-bg: var(--color-surface-container);--emr-number-input-control-active-bg: var(--color-surface-container-high);--emr-number-input-control-font-size: 1.5rem;--emr-number-input-control-border-radius: .375rem;--emr-number-input-suffix-gap: calc(var(--spacing) * 3);--emr-number-input-control-size: calc(var(--spacing) * 7);--emr-number-input-control-border: none;display:flex;gap:var(--emr-number-input-gap)}:host .input{width:auto;max-width:none;flex-grow:1;min-width:0}:host .input{background:none;outline:none;color:currentColor;font:inherit;border:none}:host .input::-webkit-outer-spin-button,:host .input::-webkit-inner-spin-button{appearance:none;margin:0}:host .controls{display:flex;height:100%;gap:.375rem;-webkit-user-select:none;user-select:none}:host .control{cursor:pointer;flex:none;display:flex;align-items:center;justify-content:center;width:var(--emr-number-input-control-size);height:var(--emr-number-input-control-size);background:var(--emr-number-input-control-bg);color:var(--emr-number-input-control-color);font-size:var(--emr-number-input-control-font-size);line-height:var(--emr-number-input-control-font-size);border-radius:var(--emr-number-input-control-border-radius);position:relative;border:var(--emr-number-input-control-border);top:1px}:host .control span{position:relative;top:-1px}:host .control ::ng-deep .mat-icon{line-height:24px}:host .control:hover{background:var(--emr-number-input-control-hover-bg);color:var(--emr-number-input-control-hover-color)}:host .control[disabled]{pointer-events:none;opacity:.65}:host-context(html.dark){--emr-number-input-control-color: var(--color-neutral-300);--emr-number-input-control-hover-color: var(--color-neutral-200);--emr-number-input-control-hover-bg: var(--color-neutral-500)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
247
+ }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
248
+ type: Optional
249
+ }, {
250
+ type: Self
251
+ }] }], propDecorators: { _input: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], _decreaseControlRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DecreaseControlDirective), { isSignal: true }] }], _increaseControlRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => IncreaseControlDirective), { isSignal: true }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], disabled: [{
252
+ type: Input
253
+ }], required: [{
254
+ type: Input
255
+ }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
256
+
257
+ class NumberInputPrefixDirective {
258
+ templateRef = inject(TemplateRef);
259
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberInputPrefixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
260
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: NumberInputPrefixDirective, isStandalone: true, selector: "[emrNumberInputPrefix]", exportAs: ["emrNumberInputPrefix"], ngImport: i0 });
261
+ }
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberInputPrefixDirective, decorators: [{
263
+ type: Directive,
264
+ args: [{
265
+ selector: '[emrNumberInputPrefix]',
266
+ exportAs: 'emrNumberInputPrefix'
267
+ }]
268
+ }] });
269
+
270
+ class NumberInputSuffixDirective {
271
+ templateRef = inject(TemplateRef);
272
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberInputSuffixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
273
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: NumberInputSuffixDirective, isStandalone: true, selector: "[emrNumberInputSuffix]", exportAs: ["emrNumberInputSuffix"], ngImport: i0 });
274
+ }
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberInputSuffixDirective, decorators: [{
276
+ type: Directive,
277
+ args: [{
278
+ selector: '[emrNumberInputSuffix]',
279
+ exportAs: 'emrNumberInputSuffix'
280
+ }]
281
+ }] });
282
+
283
+ /**
284
+ * Generated bundle index. Do not edit.
285
+ */
286
+
287
+ export { DecreaseControlDirective, IncreaseControlDirective, NumberInputComponent, NumberInputPrefixDirective, NumberInputSuffixDirective };
288
+ //# sourceMappingURL=elementar-rt-components-number-input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elementar-rt-components-number-input.mjs","sources":["../../../projects/components/number-input/src/decrease-control.directive.ts","../../../projects/components/number-input/src/increase-control.directive.ts","../../../projects/components/number-input/src/number-input/number-input.component.ts","../../../projects/components/number-input/src/number-input/number-input.component.html","../../../projects/components/number-input/src/number-input-prefix.directive.ts","../../../projects/components/number-input/src/number-input-suffix.directive.ts","../../../projects/components/number-input/elementar-rt-components-number-input.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrDecreaseControl]',\r\n exportAs: 'emrDecreaseControl'\r\n})\r\nexport class DecreaseControlDirective {\r\n readonly templateRef = inject(TemplateRef);\r\n}\r\n","import { Directive, inject, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrIncreaseControl]',\r\n exportAs: 'emrIncreaseControl'\r\n})\r\nexport class IncreaseControlDirective {\r\n readonly templateRef = inject(TemplateRef);\r\n}\r\n","import {\r\n booleanAttribute,\r\n ChangeDetectionStrategy,\r\n Component,\r\n contentChild,\r\n DoCheck,\r\n ElementRef, forwardRef,\r\n inject, Input, input,\r\n numberAttribute,\r\n OnDestroy, Optional,\r\n output, Self,\r\n TemplateRef,\r\n viewChild,\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';\r\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport { DecreaseControlDirective } from '../decrease-control.directive';\r\nimport { IncreaseControlDirective } from '../increase-control.directive';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { MatRipple } from '@angular/material/core';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'emr-number-input',\r\n exportAs: 'emrNumberInput',\r\n imports: [\r\n MatRipple,\r\n NgTemplateOutlet\r\n ],\r\n providers: [\r\n {\r\n provide: MatFormFieldControl,\r\n useExisting: forwardRef(() => NumberInputComponent),\r\n }\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n templateUrl: './number-input.component.html',\r\n styleUrl: './number-input.component.scss',\r\n host: {\r\n 'class': 'emr-number-input',\r\n '[class.floating]': 'shouldLabelFloat',\r\n 'id': 'id'\r\n }\r\n})\r\nexport class NumberInputComponent implements MatFormFieldControl<any>, ControlValueAccessor, OnDestroy, DoCheck {\r\n private _parentForm = inject(NgForm, {\r\n optional: true,\r\n });\r\n private _parentFormGroup = inject(FormGroupDirective, {\r\n optional: true,\r\n });\r\n private _elementRef = inject(ElementRef);\r\n readonly disableAutomaticLabeling: boolean;\r\n readonly placeholder: string;\r\n\r\n private _input = viewChild.required<ElementRef>('input');\r\n readonly _decreaseControlRef = contentChild<DecreaseControlDirective>(DecreaseControlDirective);\r\n readonly _increaseControlRef = contentChild<IncreaseControlDirective>(IncreaseControlDirective);\r\n\r\n min = input(undefined, {\r\n transform: numberAttribute\r\n });\r\n max = input(undefined, {\r\n transform: numberAttribute\r\n });\r\n step = input(1, {\r\n transform: numberAttribute\r\n });\r\n readonly = input(false, {\r\n transform: booleanAttribute\r\n });\r\n\r\n @Input()\r\n set disabled(disabled: any) {\r\n this._disabled = coerceBooleanProperty(disabled);\r\n this.stateChanges.next();\r\n }\r\n get disabled() {\r\n return this._disabled;\r\n }\r\n private _disabled = false;\r\n\r\n @Input()\r\n get required(): boolean {\r\n return this._required;\r\n }\r\n set required(req: BooleanInput) {\r\n this._required = coerceBooleanProperty(req);\r\n this.stateChanges.next();\r\n }\r\n private _required = false;\r\n\r\n readonly valueChange = output<number|undefined>();\r\n\r\n static nextId = 0;\r\n private _value: number | undefined;\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n stateChanges = new Subject<void>();\r\n focused = false;\r\n touched = false;\r\n errorState: boolean = false;\r\n\r\n get id(): string {\r\n return `emr-number-input${NumberInputComponent.nextId++}`;\r\n }\r\n\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get empty(): boolean {\r\n if (this._value === 0) {\r\n return false;\r\n }\r\n\r\n return typeof this._value !== 'number';\r\n }\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n ) {\r\n // Replace the provider from above with this.\r\n if (this.ngControl != null) {\r\n // Setting the value accessor directly (instead of using\r\n // the providers) to avoid running into a circular import.\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n setDescribedByIds(ids: string[]) {\r\n const controlElement = this._elementRef.nativeElement;\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n\r\n onFocusIn(event: FocusEvent) {\r\n if (!this.focused) {\r\n this.focused = true;\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n onFocusOut(event: FocusEvent) {\r\n if (!this._elementRef.nativeElement.contains(event.relatedTarget as Element)) {\r\n this.touched = true;\r\n this.focused = false;\r\n this.onTouched();\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n set value(value: number | undefined) {\r\n this._value = value;\r\n this.stateChanges.next();\r\n }\r\n get value(): number | undefined {\r\n return this._value;\r\n }\r\n\r\n ngOnDestroy() {\r\n this.stateChanges.complete();\r\n }\r\n\r\n protected get _decreaseControlTemplateRef() {\r\n return this._decreaseControlRef()?.templateRef as TemplateRef<any>;\r\n }\r\n\r\n protected get _increaseControlTemplateRef() {\r\n return this._increaseControlRef()?.templateRef as TemplateRef<any>;\r\n }\r\n\r\n onChange: any = () => {};\r\n onTouched: any = () => {};\r\n\r\n registerOnChange(fn: any): void {\r\n this.onChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState(isDisabled: boolean): void {\r\n this.disabled = coerceBooleanProperty(isDisabled);\r\n }\r\n\r\n writeValue(value: any): void {\r\n this._input().nativeElement.value = value;\r\n this.value = value;\r\n }\r\n\r\n decrease(event: MouseEvent, input: HTMLInputElement) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n let value = +input.value;\r\n value -= this.step();\r\n input.value = value.toString();\r\n this._emitEvent();\r\n }\r\n\r\n increase(event: MouseEvent, input: HTMLInputElement) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n let value = +input.value;\r\n value += this.step();\r\n input.value = value.toString();\r\n this._emitEvent();\r\n }\r\n\r\n isDecreaseDisabled() {\r\n const value = this._input().nativeElement.value;\r\n\r\n if (typeof this.min() === 'undefined') {\r\n return false;\r\n }\r\n\r\n // @ts-ignore\r\n return (typeof this.min() === 'number' && +value <= this.min()) || this.readonly() || this.disabled;\r\n }\r\n\r\n isIncreaseDisabled() {\r\n const value = this._input().nativeElement.value;\r\n\r\n if (typeof this.max() === 'undefined') {\r\n return false;\r\n }\r\n\r\n // @ts-ignore\r\n return ((typeof this.min() === 'number' && value) && +value >= this.max()) || this.readonly() || this.disabled;\r\n }\r\n\r\n inputChange(event: any) {\r\n this._value = this._input().nativeElement.value ? +this._input().nativeElement.value : undefined;\r\n this._emitEvent();\r\n }\r\n\r\n private _emitEvent() {\r\n const value = this._input().nativeElement.value ? +this._input().nativeElement.value : undefined;\r\n this.value = value;\r\n this.onChange(value);\r\n this.valueChange.emit(value);\r\n this.updateErrorState();\r\n }\r\n\r\n ngDoCheck() {\r\n if (this.ngControl) {\r\n this.updateErrorState();\r\n }\r\n }\r\n\r\n onContainerClick(event: MouseEvent) {\r\n if ((event.target as Element).tagName.toLowerCase() != 'input') {\r\n this._elementRef.nativeElement.querySelector('input').focus();\r\n }\r\n }\r\n\r\n private updateErrorState() {\r\n const parent = this._parentFormGroup || this._parentForm;\r\n let oldState = this.errorState;\r\n let newState = !!(this.ngControl?.invalid) && this.touched;\r\n\r\n if (parent) {\r\n newState = !!(this.ngControl?.invalid) && (this.touched || parent.submitted);\r\n }\r\n\r\n if (oldState !== newState) {\r\n this.errorState = newState;\r\n this.stateChanges.next();\r\n }\r\n }\r\n}\r\n","<input #input type=\"number\" class=\"input\"\r\n (focusin)=\"onFocusIn($event)\"\r\n (focusout)=\"onFocusOut($event)\"\r\n [attr.min]=\"min()\"\r\n [attr.max]=\"max()\"\r\n [step]=\"step()\"\r\n (input)=\"inputChange($event)\">\r\n<div class=\"controls\">\r\n <button class=\"control control-decrease\" matRipple [disabled]=\"isDecreaseDisabled()\" (click)=\"decrease($event, input)\">\r\n @if (_decreaseControlRef()) {\r\n <ng-template [ngTemplateOutlet]=\"_decreaseControlTemplateRef\"/>\r\n } @else {\r\n <span>&minus;</span>\r\n }\r\n </button>\r\n <button class=\"control control-increase\" matRipple [disabled]=\"isIncreaseDisabled()\" (click)=\"increase($event, input)\">\r\n @if (_increaseControlRef()) {\r\n <ng-template [ngTemplateOutlet]=\"_increaseControlTemplateRef\"/>\r\n } @else {\r\n <span>&plus;</span>\r\n }\r\n </button>\r\n</div>\r\n","import { Directive, inject, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNumberInputPrefix]',\r\n exportAs: 'emrNumberInputPrefix'\r\n})\r\nexport class NumberInputPrefixDirective {\r\n readonly templateRef = inject(TemplateRef);\r\n}\r\n","import { Directive, inject, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNumberInputSuffix]',\r\n exportAs: 'emrNumberInputSuffix'\r\n})\r\nexport class NumberInputSuffixDirective {\r\n readonly templateRef = inject(TemplateRef);\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAMa,wBAAwB,CAAA;AAC1B,IAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;wGAD/B,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,QAAQ,EAAE;AACX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