ngwr 3.0.0 → 4.0.1

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 (396) hide show
  1. package/README.md +10 -7
  2. package/alert/alert-type.d.ts +7 -0
  3. package/alert/alert.component.d.ts +21 -0
  4. package/alert/alert.module.d.ts +7 -0
  5. package/alert/index.d.ts +5 -0
  6. package/alert/public-api.d.ts +9 -0
  7. package/alert/styles/_index.scss +58 -0
  8. package/alert/styles/theming.scss +26 -0
  9. package/alert/styles/vars.scss +11 -0
  10. package/avatar/avatar.component.d.ts +27 -0
  11. package/avatar/avatar.module.d.ts +7 -0
  12. package/avatar/index.d.ts +5 -0
  13. package/avatar/public-api.d.ts +8 -0
  14. package/avatar/styles/_index.scss +39 -0
  15. package/button/button-group.component.d.ts +12 -0
  16. package/button/button.component.d.ts +26 -58
  17. package/button/button.module.d.ts +2 -1
  18. package/button/index.d.ts +5 -2
  19. package/button/public-api.d.ts +9 -0
  20. package/button/styles/_index.scss +187 -0
  21. package/button/styles/vars.scss +13 -0
  22. package/{core/abstract/base.d.ts → cdk/base.directive.d.ts} +7 -1
  23. package/cdk/index.d.ts +5 -0
  24. package/cdk/public-api.d.ts +7 -0
  25. package/cdk/rxjs/index.d.ts +5 -0
  26. package/cdk/rxjs/is-array.d.ts +8 -0
  27. package/cdk/rxjs/is-defined.d.ts +8 -0
  28. package/cdk/rxjs/is-not-empty-array.d.ts +8 -0
  29. package/cdk/rxjs/is-observable.d.ts +9 -0
  30. package/cdk/rxjs/public-api.d.ts +10 -0
  31. package/cdk/types/index.d.ts +5 -0
  32. package/cdk/types/maybe.d.ts +7 -0
  33. package/cdk/types/public-api.d.ts +9 -0
  34. package/cdk/types/safe-any.d.ts +7 -0
  35. package/{core/color/color.d.ts → cdk/types/theme-color.d.ts} +6 -0
  36. package/cdk/utils/generate-random-id.d.ts +12 -0
  37. package/cdk/utils/index.d.ts +5 -0
  38. package/cdk/utils/public-api.d.ts +7 -0
  39. package/checkbox/checkbox.component.d.ts +24 -45
  40. package/checkbox/checkbox.module.d.ts +1 -1
  41. package/checkbox/index.d.ts +5 -2
  42. package/checkbox/public-api.d.ts +8 -0
  43. package/checkbox/styles/_index.scss +86 -0
  44. package/checkbox/styles/vars.scss +16 -0
  45. package/dialog/dialog-animations.d.ts +7 -1
  46. package/dialog/{dialog-base.d.ts → dialog-base.directive.d.ts} +13 -7
  47. package/dialog/dialog-close.directive.d.ts +9 -0
  48. package/dialog/dialog-content.directive.d.ts +6 -0
  49. package/dialog/dialog-data.token.d.ts +8 -0
  50. package/dialog/dialog-footer.directive.d.ts +8 -0
  51. package/dialog/dialog-options.d.ts +19 -0
  52. package/dialog/dialog-ref.d.ts +19 -13
  53. package/dialog/dialog-title.directive.d.ts +6 -0
  54. package/dialog/dialog.component.d.ts +28 -0
  55. package/dialog/dialog.module.d.ts +11 -0
  56. package/dialog/dialog.service.d.ts +28 -0
  57. package/dialog/index.d.ts +5 -9
  58. package/dialog/public-api.d.ts +18 -0
  59. package/dialog/{dialog.scss → styles/_index.scss} +2 -0
  60. package/dialog/styles/vars.scss +7 -0
  61. package/divider/divider.component.d.ts +8 -35
  62. package/divider/divider.module.d.ts +1 -1
  63. package/divider/index.d.ts +5 -2
  64. package/divider/public-api.d.ts +8 -0
  65. package/divider/{divider.scss → styles/_index.scss} +1 -1
  66. package/esm2022/alert/alert-type.mjs +8 -0
  67. package/esm2022/alert/alert.component.mjs +54 -0
  68. package/esm2022/alert/alert.module.mjs +22 -0
  69. package/esm2022/alert/ngwr-alert.mjs +5 -0
  70. package/esm2022/alert/public-api.mjs +10 -0
  71. package/esm2022/avatar/avatar.component.mjs +77 -0
  72. package/esm2022/avatar/avatar.module.mjs +22 -0
  73. package/esm2022/avatar/ngwr-avatar.mjs +5 -0
  74. package/esm2022/avatar/public-api.mjs +9 -0
  75. package/esm2022/button/button-group.component.mjs +36 -0
  76. package/esm2022/button/button.component.mjs +55 -163
  77. package/esm2022/button/button.module.mjs +15 -8
  78. package/esm2022/button/ngwr-button.mjs +2 -2
  79. package/esm2022/button/public-api.mjs +10 -0
  80. package/esm2022/cdk/base.directive.mjs +27 -0
  81. package/esm2022/cdk/ngwr-cdk.mjs +5 -0
  82. package/esm2022/cdk/public-api.mjs +8 -0
  83. package/esm2022/cdk/rxjs/is-array.mjs +10 -0
  84. package/esm2022/cdk/rxjs/is-defined.mjs +10 -0
  85. package/esm2022/cdk/rxjs/is-not-empty-array.mjs +10 -0
  86. package/esm2022/cdk/rxjs/is-observable.mjs +10 -0
  87. package/esm2022/cdk/rxjs/ngwr-cdk-rxjs.mjs +5 -0
  88. package/esm2022/cdk/rxjs/public-api.mjs +11 -0
  89. package/esm2022/cdk/types/maybe.mjs +8 -0
  90. package/esm2022/cdk/types/ngwr-cdk-types.mjs +5 -0
  91. package/esm2022/cdk/types/public-api.mjs +10 -0
  92. package/esm2022/cdk/types/safe-any.mjs +8 -0
  93. package/esm2022/cdk/types/theme-color.mjs +17 -0
  94. package/esm2022/cdk/utils/generate-random-id.mjs +17 -0
  95. package/esm2022/cdk/utils/ngwr-cdk-utils.mjs +5 -0
  96. package/esm2022/cdk/utils/public-api.mjs +8 -0
  97. package/esm2022/checkbox/checkbox.component.mjs +54 -120
  98. package/esm2022/checkbox/checkbox.module.mjs +14 -8
  99. package/esm2022/checkbox/ngwr-checkbox.mjs +2 -2
  100. package/esm2022/checkbox/public-api.mjs +9 -0
  101. package/esm2022/dialog/dialog-animations.mjs +8 -2
  102. package/esm2022/dialog/dialog-base.directive.mjs +95 -0
  103. package/esm2022/dialog/dialog-close.directive.mjs +33 -0
  104. package/esm2022/dialog/dialog-content.directive.mjs +25 -0
  105. package/esm2022/dialog/dialog-data.token.mjs +9 -0
  106. package/esm2022/dialog/dialog-footer.directive.mjs +36 -0
  107. package/esm2022/dialog/dialog-options.mjs +9 -0
  108. package/esm2022/dialog/dialog-ref.mjs +22 -16
  109. package/esm2022/dialog/dialog-title.directive.mjs +25 -0
  110. package/esm2022/dialog/dialog.component.mjs +57 -0
  111. package/esm2022/dialog/dialog.module.mjs +38 -0
  112. package/esm2022/dialog/dialog.service.mjs +107 -0
  113. package/esm2022/dialog/ngwr-dialog.mjs +2 -2
  114. package/esm2022/dialog/public-api.mjs +19 -0
  115. package/esm2022/divider/divider.component.mjs +16 -57
  116. package/esm2022/divider/divider.module.mjs +8 -8
  117. package/esm2022/divider/ngwr-divider.mjs +2 -2
  118. package/esm2022/divider/public-api.mjs +9 -0
  119. package/esm2022/form/form-error.component.mjs +33 -0
  120. package/esm2022/form/form-item.component.mjs +43 -0
  121. package/esm2022/form/form.module.mjs +23 -0
  122. package/esm2022/form/ngwr-form.mjs +2 -2
  123. package/esm2022/form/public-api.mjs +10 -0
  124. package/esm2022/icon/icon.component.mjs +82 -0
  125. package/esm2022/icon/icon.module.mjs +22 -0
  126. package/esm2022/icon/icon.service.mjs +40 -0
  127. package/esm2022/icon/icons.mjs +289 -279
  128. package/esm2022/icon/ngwr-icon.mjs +2 -2
  129. package/esm2022/icon/provide-wr-icons.mjs +17 -0
  130. package/esm2022/icon/public-api.mjs +12 -0
  131. package/esm2022/input/input-types.mjs +1 -1
  132. package/esm2022/input/input.component.mjs +123 -0
  133. package/esm2022/input/input.module.mjs +22 -0
  134. package/esm2022/input/ngwr-input.mjs +2 -2
  135. package/esm2022/input/public-api.mjs +10 -0
  136. package/esm2022/ngwr.mjs +2 -2
  137. package/esm2022/pipes/new-array.pipe.mjs +23 -0
  138. package/esm2022/pipes/ngwr-pipes.mjs +5 -0
  139. package/esm2022/pipes/pipes.module.mjs +22 -0
  140. package/esm2022/pipes/public-api.mjs +9 -0
  141. package/esm2022/progress/ngwr-progress.mjs +5 -0
  142. package/esm2022/progress/progress.component.mjs +42 -0
  143. package/esm2022/progress/progress.module.mjs +22 -0
  144. package/esm2022/progress/public-api.mjs +9 -0
  145. package/esm2022/public-api.mjs +3 -0
  146. package/esm2022/qr/generator.mjs +84 -0
  147. package/esm2022/qr/ngwr-qr.mjs +5 -0
  148. package/esm2022/qr/public-api.mjs +9 -0
  149. package/esm2022/qr/qr.component.mjs +90 -0
  150. package/esm2022/qr/qr.module.mjs +22 -0
  151. package/esm2022/qr/qrcodegen.mjs +872 -0
  152. package/esm2022/skeleton/index.mjs +3 -3
  153. package/esm2022/skeleton/skeleton.component.mjs +43 -0
  154. package/esm2022/skeleton/skeleton.module.mjs +16 -0
  155. package/esm2022/spinner/index.mjs +3 -3
  156. package/esm2022/spinner/spinner.component.mjs +33 -0
  157. package/esm2022/spinner/spinner.module.mjs +22 -0
  158. package/esm2022/tag/ngwr-tag.mjs +2 -2
  159. package/esm2022/tag/public-api.mjs +9 -0
  160. package/esm2022/tag/tag.component.mjs +74 -0
  161. package/esm2022/tag/tag.module.mjs +16 -0
  162. package/fesm2022/ngwr-alert.mjs +94 -0
  163. package/fesm2022/ngwr-alert.mjs.map +1 -0
  164. package/fesm2022/ngwr-avatar.mjs +110 -0
  165. package/fesm2022/ngwr-avatar.mjs.map +1 -0
  166. package/fesm2022/ngwr-button.mjs +108 -169
  167. package/fesm2022/ngwr-button.mjs.map +1 -1
  168. package/fesm2022/ngwr-cdk-rxjs.mjs +53 -0
  169. package/fesm2022/ngwr-cdk-rxjs.mjs.map +1 -0
  170. package/fesm2022/ngwr-cdk-types.mjs +44 -0
  171. package/fesm2022/ngwr-cdk-types.mjs.map +1 -0
  172. package/fesm2022/ngwr-cdk-utils.mjs +30 -0
  173. package/fesm2022/ngwr-cdk-utils.mjs.map +1 -0
  174. package/fesm2022/ngwr-cdk.mjs +41 -0
  175. package/fesm2022/ngwr-cdk.mjs.map +1 -0
  176. package/fesm2022/ngwr-checkbox.mjs +73 -126
  177. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  178. package/fesm2022/ngwr-dialog.mjs +225 -165
  179. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  180. package/fesm2022/ngwr-divider.mjs +29 -63
  181. package/fesm2022/ngwr-divider.mjs.map +1 -1
  182. package/fesm2022/ngwr-form.mjs +72 -54
  183. package/fesm2022/ngwr-form.mjs.map +1 -1
  184. package/fesm2022/ngwr-icon.mjs +445 -368
  185. package/fesm2022/ngwr-icon.mjs.map +1 -1
  186. package/fesm2022/ngwr-input.mjs +101 -208
  187. package/fesm2022/ngwr-input.mjs.map +1 -1
  188. package/fesm2022/ngwr-pipes.mjs +56 -0
  189. package/fesm2022/ngwr-pipes.mjs.map +1 -0
  190. package/fesm2022/ngwr-progress.mjs +75 -0
  191. package/fesm2022/ngwr-progress.mjs.map +1 -0
  192. package/fesm2022/{ngwr-qrcode.mjs → ngwr-qr.mjs} +72 -113
  193. package/fesm2022/ngwr-qr.mjs.map +1 -0
  194. package/fesm2022/ngwr-skeleton.mjs +19 -22
  195. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  196. package/fesm2022/ngwr-spinner.mjs +35 -19
  197. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  198. package/fesm2022/ngwr-tag.mjs +46 -49
  199. package/fesm2022/ngwr-tag.mjs.map +1 -1
  200. package/fesm2022/ngwr.mjs +1 -1
  201. package/fesm2022/ngwr.mjs.map +1 -1
  202. package/form/form-error.component.d.ts +11 -0
  203. package/form/form-item.component.d.ts +14 -0
  204. package/form/form.module.d.ts +8 -0
  205. package/form/index.d.ts +5 -3
  206. package/form/public-api.d.ts +9 -0
  207. package/icon/icon.component.d.ts +19 -0
  208. package/icon/icon.module.d.ts +7 -0
  209. package/icon/icon.service.d.ts +23 -0
  210. package/icon/icons.d.ts +115 -101
  211. package/icon/index.d.ts +5 -4
  212. package/icon/provide-wr-icons.d.ts +9 -0
  213. package/icon/public-api.d.ts +11 -0
  214. package/icon/{icon.scss → styles/_index.scss} +4 -2
  215. package/icon/styles/vars.scss +3 -0
  216. package/index.d.ts +5 -2
  217. package/input/index.d.ts +5 -2
  218. package/input/input-types.d.ts +0 -2
  219. package/input/input.component.d.ts +43 -0
  220. package/input/input.module.d.ts +7 -0
  221. package/input/public-api.d.ts +9 -0
  222. package/input/styles/_index.scss +107 -0
  223. package/input/styles/vars.scss +16 -0
  224. package/package.json +110 -57
  225. package/pipes/index.d.ts +5 -0
  226. package/pipes/new-array.pipe.d.ts +13 -0
  227. package/pipes/pipes.module.d.ts +7 -0
  228. package/pipes/public-api.d.ts +8 -0
  229. package/progress/index.d.ts +5 -0
  230. package/progress/progress.component.d.ts +10 -0
  231. package/progress/progress.module.d.ts +7 -0
  232. package/progress/public-api.d.ts +8 -0
  233. package/progress/styles/_index.scss +24 -0
  234. package/progress/styles/theming.scss +8 -0
  235. package/progress/styles/vars.scss +6 -0
  236. package/public-api.d.ts +2 -0
  237. package/qr/index.d.ts +5 -0
  238. package/qr/public-api.d.ts +8 -0
  239. package/qr/qr.component.d.ts +31 -0
  240. package/qr/qr.module.d.ts +7 -0
  241. package/skeleton/index.d.ts +2 -2
  242. package/skeleton/skeleton.component.d.ts +10 -0
  243. package/skeleton/{skeleton-module.d.ts → skeleton.module.d.ts} +2 -3
  244. package/skeleton/{skeleton.scss → styles/_index.scss} +1 -1
  245. package/spinner/index.d.ts +2 -2
  246. package/spinner/spinner.component.d.ts +11 -0
  247. package/spinner/{spinner-module.d.ts → spinner.module.d.ts} +2 -2
  248. package/spinner/{spinner.scss → styles/_index.scss} +2 -1
  249. package/styles/animations.scss +4 -4
  250. package/styles/cdk.scss +4 -0
  251. package/styles/colors.scss +72 -0
  252. package/styles/grid.scss +1 -2
  253. package/styles/reset.scss +2 -2
  254. package/styles/variables.scss +78 -0
  255. package/styles.scss +23 -0
  256. package/tag/index.d.ts +5 -2
  257. package/tag/public-api.d.ts +8 -0
  258. package/tag/styles/_index.scss +32 -0
  259. package/tag/styles/theming.scss +21 -0
  260. package/tag/styles/vars.scss +12 -0
  261. package/tag/tag.component.d.ts +21 -0
  262. package/tag/tag.module.d.ts +7 -0
  263. package/_grid.scss +0 -2
  264. package/_index.scss +0 -31
  265. package/backdrop/backdrop.scss +0 -3
  266. package/button/button.scss +0 -160
  267. package/checkbox/checkbox.scss +0 -103
  268. package/core/abstract/index.d.ts +0 -1
  269. package/core/color/index.d.ts +0 -2
  270. package/core/color/is-theme-color.d.ts +0 -2
  271. package/core/decorators/index.d.ts +0 -1
  272. package/core/decorators/input-boolean.d.ts +0 -1
  273. package/core/overlay/connected-overlay-directive.d.ts +0 -16
  274. package/core/overlay/get-placement-name.d.ts +0 -2
  275. package/core/overlay/index.d.ts +0 -5
  276. package/core/overlay/overlay-module.d.ts +0 -7
  277. package/core/overlay/overlay.scss +0 -9
  278. package/core/overlay/position-map.d.ts +0 -17
  279. package/core/overlay/position-type.d.ts +0 -2
  280. package/core/types/index.d.ts +0 -3
  281. package/core/types/on-change-type.d.ts +0 -2
  282. package/core/types/on-touched-type.d.ts +0 -2
  283. package/core/types/safe-any.d.ts +0 -1
  284. package/dialog/dialog-config.d.ts +0 -11
  285. package/dialog/dialog-container.d.ts +0 -22
  286. package/dialog/dialog-content-directives.d.ts +0 -31
  287. package/dialog/dialog-module.d.ts +0 -12
  288. package/dialog/dialog-service.d.ts +0 -27
  289. package/dialog/dialog-tokens.d.ts +0 -2
  290. package/esm2022/button/index.mjs +0 -3
  291. package/esm2022/checkbox/index.mjs +0 -3
  292. package/esm2022/core/abstract/base.mjs +0 -18
  293. package/esm2022/core/abstract/index.mjs +0 -2
  294. package/esm2022/core/abstract/ngwr-core-abstract.mjs +0 -5
  295. package/esm2022/core/color/color.mjs +0 -11
  296. package/esm2022/core/color/index.mjs +0 -3
  297. package/esm2022/core/color/is-theme-color.mjs +0 -9
  298. package/esm2022/core/color/ngwr-core-color.mjs +0 -5
  299. package/esm2022/core/decorators/index.mjs +0 -2
  300. package/esm2022/core/decorators/input-boolean.mjs +0 -15
  301. package/esm2022/core/decorators/ngwr-core-decorators.mjs +0 -5
  302. package/esm2022/core/overlay/connected-overlay-directive.mjs +0 -98
  303. package/esm2022/core/overlay/get-placement-name.mjs +0 -13
  304. package/esm2022/core/overlay/index.mjs +0 -5
  305. package/esm2022/core/overlay/ngwr-core-overlay.mjs +0 -5
  306. package/esm2022/core/overlay/overlay-module.mjs +0 -16
  307. package/esm2022/core/overlay/position-map.mjs +0 -18
  308. package/esm2022/core/overlay/position-type.mjs +0 -2
  309. package/esm2022/core/types/index.mjs +0 -4
  310. package/esm2022/core/types/ngwr-core-types.mjs +0 -5
  311. package/esm2022/core/types/on-change-type.mjs +0 -2
  312. package/esm2022/core/types/on-touched-type.mjs +0 -2
  313. package/esm2022/core/types/safe-any.mjs +0 -2
  314. package/esm2022/dialog/dialog-base.mjs +0 -92
  315. package/esm2022/dialog/dialog-config.mjs +0 -3
  316. package/esm2022/dialog/dialog-container.mjs +0 -58
  317. package/esm2022/dialog/dialog-content-directives.mjs +0 -98
  318. package/esm2022/dialog/dialog-module.mjs +0 -24
  319. package/esm2022/dialog/dialog-service.mjs +0 -109
  320. package/esm2022/dialog/dialog-tokens.mjs +0 -3
  321. package/esm2022/dialog/index.mjs +0 -10
  322. package/esm2022/divider/index.mjs +0 -3
  323. package/esm2022/form/form-error.mjs +0 -23
  324. package/esm2022/form/form-item.mjs +0 -46
  325. package/esm2022/form/form-module.mjs +0 -19
  326. package/esm2022/form/index.mjs +0 -4
  327. package/esm2022/icon/icon-module.mjs +0 -21
  328. package/esm2022/icon/icon-service.mjs +0 -21
  329. package/esm2022/icon/icon.mjs +0 -60
  330. package/esm2022/icon/index.mjs +0 -5
  331. package/esm2022/index.mjs +0 -3
  332. package/esm2022/input/index.mjs +0 -3
  333. package/esm2022/input/input-module.mjs +0 -20
  334. package/esm2022/input/input.mjs +0 -240
  335. package/esm2022/qrcode/generator.mjs +0 -84
  336. package/esm2022/qrcode/index.mjs +0 -3
  337. package/esm2022/qrcode/ngwr-qrcode.mjs +0 -5
  338. package/esm2022/qrcode/qrcode-module.mjs +0 -19
  339. package/esm2022/qrcode/qrcode.mjs +0 -142
  340. package/esm2022/qrcode/qrcodegen.mjs +0 -872
  341. package/esm2022/skeleton/skeleton-module.mjs +0 -18
  342. package/esm2022/skeleton/skeleton.mjs +0 -44
  343. package/esm2022/spinner/spinner-module.mjs +0 -16
  344. package/esm2022/spinner/spinner.mjs +0 -23
  345. package/esm2022/tag/index.mjs +0 -3
  346. package/esm2022/tag/tag-module.mjs +0 -20
  347. package/esm2022/tag/tag.mjs +0 -80
  348. package/esm2022/tooltip/index.mjs +0 -5
  349. package/esm2022/tooltip/ngwr-tooltip.mjs +0 -5
  350. package/esm2022/tooltip/tooltip-component.mjs +0 -93
  351. package/esm2022/tooltip/tooltip-default-positions.mjs +0 -8
  352. package/esm2022/tooltip/tooltip-directive.mjs +0 -85
  353. package/esm2022/tooltip/tooltip-module.mjs +0 -21
  354. package/esm2022/tooltip/tooltip-trigger.mjs +0 -2
  355. package/fesm2022/ngwr-core-abstract.mjs +0 -25
  356. package/fesm2022/ngwr-core-abstract.mjs.map +0 -1
  357. package/fesm2022/ngwr-core-color.mjs +0 -25
  358. package/fesm2022/ngwr-core-color.mjs.map +0 -1
  359. package/fesm2022/ngwr-core-decorators.mjs +0 -22
  360. package/fesm2022/ngwr-core-decorators.mjs.map +0 -1
  361. package/fesm2022/ngwr-core-overlay.mjs +0 -146
  362. package/fesm2022/ngwr-core-overlay.mjs.map +0 -1
  363. package/fesm2022/ngwr-core-types.mjs +0 -4
  364. package/fesm2022/ngwr-core-types.mjs.map +0 -1
  365. package/fesm2022/ngwr-qrcode.mjs.map +0 -1
  366. package/fesm2022/ngwr-tooltip.mjs +0 -204
  367. package/fesm2022/ngwr-tooltip.mjs.map +0 -1
  368. package/form/form-error.d.ts +0 -6
  369. package/form/form-item.d.ts +0 -15
  370. package/form/form-module.d.ts +0 -9
  371. package/icon/icon-module.d.ts +0 -9
  372. package/icon/icon-service.d.ts +0 -8
  373. package/icon/icon.d.ts +0 -20
  374. package/input/input-module.d.ts +0 -10
  375. package/input/input.d.ts +0 -65
  376. package/input/input.scss +0 -163
  377. package/qrcode/index.d.ts +0 -2
  378. package/qrcode/qrcode-module.d.ts +0 -9
  379. package/qrcode/qrcode.d.ts +0 -46
  380. package/skeleton/skeleton.d.ts +0 -11
  381. package/spinner/spinner.d.ts +0 -6
  382. package/styles/root.scss +0 -172
  383. package/tag/tag-module.d.ts +0 -10
  384. package/tag/tag.d.ts +0 -18
  385. package/tag/tag.scss +0 -106
  386. package/tooltip/index.d.ts +0 -5
  387. package/tooltip/tooltip-component.d.ts +0 -31
  388. package/tooltip/tooltip-default-positions.d.ts +0 -1
  389. package/tooltip/tooltip-directive.d.ts +0 -22
  390. package/tooltip/tooltip-module.d.ts +0 -11
  391. package/tooltip/tooltip-trigger.d.ts +0 -1
  392. package/tooltip/tooltip.scss +0 -67
  393. /package/form/{form.scss → styles/_index.scss} +0 -0
  394. /package/{qrcode → qr}/generator.d.ts +0 -0
  395. /package/{qrcode → qr}/qrcodegen.d.ts +0 -0
  396. /package/{qrcode/qrcode.scss → qr/styles/_index.scss} +0 -0
@@ -1,103 +1,36 @@
1
- import { __decorate } from 'tslib';
2
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
3
1
  import * as i0 from '@angular/core';
4
- import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, HostBinding, NgModule } from '@angular/core';
5
- import { WrAbstractBase } from 'ngwr/core/abstract';
6
- import { isThemeColor } from 'ngwr/core/color';
7
- import { InputBoolean } from 'ngwr/core/decorators';
8
- import * as i1 from 'ngwr/icon';
9
- import { WrIconModule } from 'ngwr/icon';
10
- import * as i2 from 'ngwr/spinner';
2
+ import { booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, HostBinding, NgModule } from '@angular/core';
3
+ import { WrIconComponent } from 'ngwr/icon';
4
+ import * as i1 from 'ngwr/spinner';
11
5
  import { WrSpinnerModule } from 'ngwr/spinner';
12
6
 
13
- class WrButton extends WrAbstractBase {
14
- /** Set color of `wr-btn`; */
15
- get color() {
16
- return this._color;
17
- }
18
- set color(value) {
19
- this._color = isThemeColor(value) ? value : 'primary';
20
- this.cdr.markForCheck();
21
- }
22
- /** Set size of `wr-btn`; */
23
- get size() {
24
- return this._size;
25
- }
26
- set size(value) {
27
- this._size = value;
28
- this.cdr.markForCheck();
29
- }
30
- /** Set outlined state of `wr-btn`; */
31
- get outlined() {
32
- return this._outlined;
33
- }
34
- set outlined(value) {
35
- this._outlined = coerceBooleanProperty(value);
36
- this.cdr.markForCheck();
37
- }
38
- /** Set rounded state of `wr-btn`; */
39
- get rounded() {
40
- return this._rounded;
41
- }
42
- set rounded(value) {
43
- this._rounded = coerceBooleanProperty(value);
44
- this.cdr.markForCheck();
45
- }
46
- /** Set fullwidth state of `wr-btn`; */
47
- get fullWidth() {
48
- return this._fullWidth;
49
- }
50
- set fullWidth(value) {
51
- this._fullWidth = coerceBooleanProperty(value);
52
- this.cdr.markForCheck();
53
- }
54
- /**
55
- * @deprecated use fullWidth instead
56
- */
57
- get fullwidth() {
58
- return this._fullWidth;
59
- }
60
- set fullwidth(value) {
61
- this._fullWidth = coerceBooleanProperty(value);
62
- this.cdr.markForCheck();
63
- }
64
- /** Set loading state of `wr-btn`; */
65
- get loading() {
66
- return this._loading;
67
- }
68
- set loading(value) {
69
- this._loading = coerceBooleanProperty(value);
70
- this.cdr.markForCheck();
71
- }
72
- /** Set disabled state of `wr-btn`; */
73
- get disabled() {
74
- return this._disabled;
75
- }
76
- set disabled(value) {
77
- this._disabled = coerceBooleanProperty(value);
78
- this.cdr.markForCheck();
79
- }
80
- /** Set icon of `wr-btn`; */
81
- get icon() {
82
- return this._icon;
83
- }
84
- set icon(value) {
85
- this._icon = value;
86
- this.cdr.markForCheck();
87
- }
88
- /** Set icon position of `wr-btn`; */
89
- get iconPosition() {
90
- return this._iconPosition;
91
- }
92
- set iconPosition(value) {
93
- this._iconPosition = value;
94
- this.cdr.markForCheck();
7
+ /**
8
+ * @license
9
+ *
10
+ * Use of this source code is governed by an MIT-style license that can be
11
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
12
+ */
13
+ /**
14
+ * NGWR button component.
15
+ * Trigger an operation or perform an action.
16
+ *
17
+ * {@tutorial} [How to use wr-btn]{@link http://ngwr.dev/docs/components/button}
18
+ */
19
+ class WrButtonComponent {
20
+ constructor() {
21
+ this.size = 'default';
22
+ this.icon = null;
23
+ this.iconPosition = 'start';
24
+ this.disabled = false;
25
+ this.outlined = false;
26
+ this.rounded = false;
27
+ this.block = false;
28
+ this.loading = false;
29
+ this.isDisabledWhenLoading = true;
95
30
  }
96
- /** Set element disabled attribute */
97
31
  get nativeDisabled() {
98
- return this._disabled ? '' : null;
32
+ return this.disabled ? '' : null;
99
33
  }
100
- /** Set element classes */
101
34
  get elClasses() {
102
35
  return {
103
36
  'wr-btn': true,
@@ -109,90 +42,49 @@ class WrButton extends WrAbstractBase {
109
42
  'wr-btn--color-light': this.color === 'light',
110
43
  'wr-btn--color-medium': this.color === 'medium',
111
44
  'wr-btn--color-dark': this.color === 'dark',
112
- 'wr-btn--size-small': this.size === 'small',
45
+ 'wr-btn--small': this.size === 'small',
46
+ 'wr-btn--block': this.block,
113
47
  'wr-btn--rounded': this.rounded,
48
+ 'wr-btn--icon': this.icon,
114
49
  'wr-btn--icon-start': this.icon && this.iconPosition === 'start',
115
50
  'wr-btn--icon-end': this.icon && this.iconPosition === 'end',
116
51
  'wr-btn--outlined': this.outlined,
117
52
  'wr-btn--loading': this.loading,
118
- 'wr-btn--full-width': this.fullWidth,
53
+ 'wr-btn--loading--disabled': this.loading && this.isDisabledWhenLoading,
119
54
  };
120
55
  }
121
- constructor(cdr, elRef, ngZone) {
122
- super();
123
- this.cdr = cdr;
124
- this.elRef = elRef;
125
- this.ngZone = ngZone;
126
- this._color = 'primary';
127
- this._size = 'default';
128
- this._outlined = false;
129
- this._rounded = false;
130
- this._fullWidth = false;
131
- this._loading = false;
132
- this._disabled = false;
133
- this._icon = null;
134
- this._iconPosition = 'start';
135
- /* A disabled button shouldn't apply any actions */
136
- this.preventEventsWhenDisabled = (event) => {
137
- if (this.disabled) {
138
- event.preventDefault();
139
- event.stopImmediatePropagation();
140
- }
141
- };
142
- }
143
- ngOnInit() {
144
- this.ngZone.runOutsideAngular(() => {
145
- this.elRef.nativeElement.addEventListener('click', this.preventEventsWhenDisabled);
146
- });
147
- }
148
- ngOnDestroy() {
149
- super.ngOnDestroy();
150
- this.elRef.nativeElement.removeEventListener('click', this.preventEventsWhenDisabled);
151
- }
152
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WrButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
153
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.3", type: WrButton, isStandalone: true, selector: "wr-btn, button[wr-btn], a[wr-btn]", inputs: { color: "color", size: "size", outlined: "outlined", rounded: "rounded", fullWidth: "fullWidth", fullwidth: "fullwidth", loading: "loading", disabled: "disabled", icon: "icon", iconPosition: "iconPosition" }, host: { properties: { "attr.disabled": "this.nativeDisabled", "class": "this.elClasses" } }, exportAs: ["wrBtn"], usesInheritance: true, ngImport: i0, template: "@if (loading) {\n <wr-spin class=\"wr-btn__spin\"></wr-spin>\n}\n@if (icon && iconPosition === 'start') {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\"></wr-icon>\n}\n<span class=\"wr-btn__text\"><ng-content></ng-content></span>\n@if (icon && iconPosition === 'end') {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\"></wr-icon>\n}\n", dependencies: [{ kind: "ngmodule", type: WrIconModule }, { kind: "directive", type: i1.WrIcon, selector: "wr-icon[name]", inputs: ["name"], exportAs: ["wrIcon"] }, { kind: "ngmodule", type: WrSpinnerModule }, { kind: "component", type: i2.WrSpinner, selector: "wr-spin", exportAs: ["wrSpin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.4", type: WrButtonComponent, isStandalone: true, selector: "wr-btn, button[wr-btn], a[wr-btn]", inputs: { color: "color", size: "size", icon: "icon", iconPosition: "iconPosition", disabled: ["disabled", "disabled", booleanAttribute], outlined: ["outlined", "outlined", booleanAttribute], rounded: ["rounded", "rounded", booleanAttribute], block: ["block", "block", booleanAttribute], loading: ["loading", "loading", booleanAttribute], isDisabledWhenLoading: ["isDisabledWhenLoading", "isDisabledWhenLoading", booleanAttribute] }, host: { properties: { "attr.disabled": "this.nativeDisabled", "class": "this.elClasses" } }, ngImport: i0, template: "@if (loading) {\n <wr-spinner class=\"wr-btn__spin\" />\n}\n@if (icon) {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\" />\n}\n<span class=\"wr-btn__text\">\n <ng-content />\n</span>\n", dependencies: [{ kind: "component", type: WrIconComponent, selector: "wr-icon", inputs: ["name"] }, { kind: "ngmodule", type: WrSpinnerModule }, { kind: "component", type: i1.WrSpinnerComponent, selector: "wr-spinner" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
154
58
  }
155
- __decorate([
156
- InputBoolean()
157
- ], WrButton.prototype, "outlined", null);
158
- __decorate([
159
- InputBoolean()
160
- ], WrButton.prototype, "rounded", null);
161
- __decorate([
162
- InputBoolean()
163
- ], WrButton.prototype, "fullWidth", null);
164
- __decorate([
165
- InputBoolean()
166
- ], WrButton.prototype, "fullwidth", null);
167
- __decorate([
168
- InputBoolean()
169
- ], WrButton.prototype, "loading", null);
170
- __decorate([
171
- InputBoolean()
172
- ], WrButton.prototype, "disabled", null);
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WrButton, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrButtonComponent, decorators: [{
174
60
  type: Component,
175
- args: [{ selector: 'wr-btn, button[wr-btn], a[wr-btn]', exportAs: 'wrBtn', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [WrIconModule, WrSpinnerModule], template: "@if (loading) {\n <wr-spin class=\"wr-btn__spin\"></wr-spin>\n}\n@if (icon && iconPosition === 'start') {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\"></wr-icon>\n}\n<span class=\"wr-btn__text\"><ng-content></ng-content></span>\n@if (icon && iconPosition === 'end') {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\"></wr-icon>\n}\n" }]
176
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { color: [{
61
+ args: [{ standalone: true, selector: 'wr-btn, button[wr-btn], a[wr-btn]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [WrIconComponent, WrSpinnerModule], template: "@if (loading) {\n <wr-spinner class=\"wr-btn__spin\" />\n}\n@if (icon) {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\" />\n}\n<span class=\"wr-btn__text\">\n <ng-content />\n</span>\n" }]
62
+ }], propDecorators: { color: [{
177
63
  type: Input
178
64
  }], size: [{
179
65
  type: Input
180
- }], outlined: [{
181
- type: Input
182
- }], rounded: [{
183
- type: Input
184
- }], fullWidth: [{
185
- type: Input
186
- }], fullwidth: [{
187
- type: Input
188
- }], loading: [{
189
- type: Input
190
- }], disabled: [{
191
- type: Input
192
66
  }], icon: [{
193
67
  type: Input
194
68
  }], iconPosition: [{
195
69
  type: Input
70
+ }], disabled: [{
71
+ type: Input,
72
+ args: [{ transform: booleanAttribute }]
73
+ }], outlined: [{
74
+ type: Input,
75
+ args: [{ transform: booleanAttribute }]
76
+ }], rounded: [{
77
+ type: Input,
78
+ args: [{ transform: booleanAttribute }]
79
+ }], block: [{
80
+ type: Input,
81
+ args: [{ transform: booleanAttribute }]
82
+ }], loading: [{
83
+ type: Input,
84
+ args: [{ transform: booleanAttribute }]
85
+ }], isDisabledWhenLoading: [{
86
+ type: Input,
87
+ args: [{ transform: booleanAttribute }]
196
88
  }], nativeDisabled: [{
197
89
  type: HostBinding,
198
90
  args: ['attr.disabled']
@@ -201,22 +93,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
201
93
  args: ['class']
202
94
  }] } });
203
95
 
96
+ /**
97
+ * @license
98
+ *
99
+ * Use of this source code is governed by an MIT-style license that can be
100
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
101
+ */
102
+ /**
103
+ * NGWR button group.
104
+ *
105
+ * {@tutorial} [How to use wr-btn-group]{@link http://ngwr.dev/docs/components/button-group}
106
+ */
107
+ class WrButtonGroupComponent {
108
+ get classes() {
109
+ return {
110
+ 'wr-btn-group': true,
111
+ };
112
+ }
113
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
114
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", type: WrButtonGroupComponent, isStandalone: true, selector: "wr-btn-group", host: { properties: { "class": "this.classes" } }, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
115
+ }
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrButtonGroupComponent, decorators: [{
117
+ type: Component,
118
+ args: [{
119
+ standalone: true,
120
+ selector: 'wr-btn-group',
121
+ template: '<ng-content />',
122
+ changeDetection: ChangeDetectionStrategy.OnPush,
123
+ encapsulation: ViewEncapsulation.None,
124
+ }]
125
+ }], propDecorators: { classes: [{
126
+ type: HostBinding,
127
+ args: ['class']
128
+ }] } });
129
+
130
+ /**
131
+ * @license
132
+ *
133
+ * Use of this source code is governed by an MIT-style license that can be
134
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
135
+ */
204
136
  class WrButtonModule {
205
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WrButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
206
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: WrButtonModule, imports: [WrButton], exports: [WrButton] }); }
207
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WrButtonModule, imports: [WrButton] }); }
137
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
138
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: WrButtonModule, imports: [WrButtonComponent, WrButtonGroupComponent], exports: [WrButtonComponent, WrButtonGroupComponent] }); }
139
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrButtonModule, imports: [WrButtonComponent] }); }
208
140
  }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WrButtonModule, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrButtonModule, decorators: [{
210
142
  type: NgModule,
211
143
  args: [{
212
- imports: [WrButton],
213
- exports: [WrButton],
144
+ imports: [WrButtonComponent, WrButtonGroupComponent],
145
+ exports: [WrButtonComponent, WrButtonGroupComponent],
214
146
  }]
215
147
  }] });
216
148
 
149
+ /**
150
+ * @license
151
+ *
152
+ * Use of this source code is governed by an MIT-style license that can be
153
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
154
+ */
155
+
217
156
  /**
218
157
  * Generated bundle index. Do not edit.
219
158
  */
220
159
 
221
- export { WrButton, WrButtonModule };
160
+ export { WrButtonComponent, WrButtonGroupComponent, WrButtonModule };
222
161
  //# sourceMappingURL=ngwr-button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-button.mjs","sources":["../../../projects/lib/button/button.component.ts","../../../projects/lib/button/button.template.html","../../../projects/lib/button/button.module.ts","../../../projects/lib/button/ngwr-button.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { WrAbstractBase } from 'ngwr/core/abstract';\nimport { isThemeColor, WrThemeColor } from 'ngwr/core/color';\nimport { InputBoolean } from 'ngwr/core/decorators';\nimport { SafeAny } from 'ngwr/core/types';\nimport { WrIconModule, wrIconName } from 'ngwr/icon';\nimport { WrSpinnerModule } from 'ngwr/spinner';\n\n@Component({\n selector: 'wr-btn, button[wr-btn], a[wr-btn]',\n exportAs: 'wrBtn',\n templateUrl: 'button.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [WrIconModule, WrSpinnerModule],\n})\nexport class WrButton extends WrAbstractBase implements OnInit, OnDestroy {\n /** Set color of `wr-btn`; */\n @Input()\n get color(): WrThemeColor {\n return this._color;\n }\n set color(value: WrThemeColor) {\n this._color = isThemeColor(value) ? value : 'primary';\n this.cdr.markForCheck();\n }\n private _color: WrThemeColor = 'primary';\n\n /** Set size of `wr-btn`; */\n @Input()\n get size(): 'default' | 'small' {\n return this._size;\n }\n set size(value: 'default' | 'small') {\n this._size = value;\n this.cdr.markForCheck();\n }\n private _size: 'default' | 'small' = 'default';\n\n /** Set outlined state of `wr-btn`; */\n @Input()\n @InputBoolean()\n get outlined(): boolean {\n return this._outlined;\n }\n set outlined(value: BooleanInput) {\n this._outlined = coerceBooleanProperty(value);\n this.cdr.markForCheck();\n }\n private _outlined: boolean = false;\n\n /** Set rounded state of `wr-btn`; */\n @Input()\n @InputBoolean()\n get rounded(): boolean {\n return this._rounded;\n }\n set rounded(value: BooleanInput) {\n this._rounded = coerceBooleanProperty(value);\n this.cdr.markForCheck();\n }\n private _rounded: boolean = false;\n\n /** Set fullwidth state of `wr-btn`; */\n @Input()\n @InputBoolean()\n get fullWidth(): boolean {\n return this._fullWidth;\n }\n set fullWidth(value: BooleanInput) {\n this._fullWidth = coerceBooleanProperty(value);\n this.cdr.markForCheck();\n }\n\n /**\n * @deprecated use fullWidth instead\n */\n @Input()\n @InputBoolean()\n get fullwidth(): boolean {\n return this._fullWidth;\n }\n set fullwidth(value: BooleanInput) {\n this._fullWidth = coerceBooleanProperty(value);\n this.cdr.markForCheck();\n }\n\n private _fullWidth: boolean = false;\n\n /** Set loading state of `wr-btn`; */\n @Input()\n @InputBoolean()\n get loading(): boolean {\n return this._loading;\n }\n set loading(value: BooleanInput) {\n this._loading = coerceBooleanProperty(value);\n this.cdr.markForCheck();\n }\n private _loading: boolean = false;\n\n /** Set disabled state of `wr-btn`; */\n @Input()\n @InputBoolean()\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: BooleanInput) {\n this._disabled = coerceBooleanProperty(value);\n this.cdr.markForCheck();\n }\n private _disabled: boolean = false;\n\n /** Set icon of `wr-btn`; */\n @Input()\n get icon(): wrIconName | null {\n return this._icon;\n }\n set icon(value: wrIconName | null) {\n this._icon = value;\n this.cdr.markForCheck();\n }\n private _icon: wrIconName | null = null;\n\n /** Set icon position of `wr-btn`; */\n @Input()\n get iconPosition(): 'start' | 'end' {\n return this._iconPosition;\n }\n set iconPosition(value: 'start' | 'end') {\n this._iconPosition = value;\n this.cdr.markForCheck();\n }\n private _iconPosition: 'start' | 'end' = 'start';\n\n /** Set element disabled attribute */\n @HostBinding('attr.disabled')\n get nativeDisabled(): '' | null {\n return this._disabled ? '' : null;\n }\n\n /** Set element classes */\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-btn': true,\n 'wr-btn--color-primary': this.color === 'primary',\n 'wr-btn--color-secondary': this.color === 'secondary',\n 'wr-btn--color-success': this.color === 'success',\n 'wr-btn--color-warning': this.color === 'warning',\n 'wr-btn--color-danger': this.color === 'danger',\n 'wr-btn--color-light': this.color === 'light',\n 'wr-btn--color-medium': this.color === 'medium',\n 'wr-btn--color-dark': this.color === 'dark',\n 'wr-btn--size-small': this.size === 'small',\n 'wr-btn--rounded': this.rounded,\n 'wr-btn--icon-start': this.icon && this.iconPosition === 'start',\n 'wr-btn--icon-end': this.icon && this.iconPosition === 'end',\n 'wr-btn--outlined': this.outlined,\n 'wr-btn--loading': this.loading,\n 'wr-btn--full-width': this.fullWidth,\n };\n }\n\n constructor(\n private readonly cdr: ChangeDetectorRef,\n private readonly elRef: ElementRef<HTMLButtonElement | HTMLLinkElement | HTMLAnchorElement | HTMLElement>,\n private readonly ngZone: NgZone\n ) {\n super();\n }\n\n ngOnInit(): void {\n this.ngZone.runOutsideAngular(() => {\n this.elRef.nativeElement.addEventListener('click', this.preventEventsWhenDisabled);\n });\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.elRef.nativeElement.removeEventListener('click', this.preventEventsWhenDisabled);\n }\n\n /* A disabled button shouldn't apply any actions */\n private preventEventsWhenDisabled = (event: Event): void => {\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n}\n","@if (loading) {\n <wr-spin class=\"wr-btn__spin\"></wr-spin>\n}\n@if (icon && iconPosition === 'start') {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\"></wr-icon>\n}\n<span class=\"wr-btn__text\"><ng-content></ng-content></span>\n@if (icon && iconPosition === 'end') {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\"></wr-icon>\n}\n","import { NgModule } from '@angular/core';\n\nimport { WrButton } from './button.component';\n\n@NgModule({\n imports: [WrButton],\n exports: [WrButton],\n})\nexport class WrButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA8BM,MAAO,QAAS,SAAQ,cAAc,CAAA;;AAE1C,IAAA,IACI,KAAK,GAAA;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;IACD,IAAI,KAAK,CAAC,KAAmB,EAAA;AAC3B,QAAA,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,SAAS,CAAC;AACtD,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;KACzB;;AAID,IAAA,IACI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;KACnB;IACD,IAAI,IAAI,CAAC,KAA0B,EAAA;AACjC,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;KACzB;;AAMD,IAAA,IAAI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAI,QAAQ,CAAC,KAAmB,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAC9C,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;KACzB;;AAMD,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;KACtB;IACD,IAAI,OAAO,CAAC,KAAmB,EAAA;AAC7B,QAAA,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAC7C,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE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gBAcF,QAAQ,EAAA,CAAA;sBAFX,KAAK;gBAaF,IAAI,EAAA,CAAA;sBADP,KAAK;gBAYF,YAAY,EAAA,CAAA;sBADf,KAAK;gBAYF,cAAc,EAAA,CAAA;sBADjB,WAAW;uBAAC,eAAe,CAAA;gBAOxB,SAAS,EAAA,CAAA;sBADZ,WAAW;uBAAC,OAAO,CAAA;;;MEpJT,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAd,cAAc,EAAA,OAAA,EAAA,CAHf,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA,CAAA,EAAA;AAEP,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAHf,QAAQ,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ,CAAC;AACpB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngwr-button.mjs","sources":["../../../projects/lib/button/button.component.ts","../../../projects/lib/button/button.component.html","../../../projects/lib/button/button-group.component.ts","../../../projects/lib/button/button.module.ts","../../../projects/lib/button/public-api.ts","../../../projects/lib/button/ngwr-button.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SafeAny, WrThemeColor } from 'ngwr/cdk/types';\nimport { WrIconComponent, wrIconName } from 'ngwr/icon';\nimport { WrSpinnerModule } from 'ngwr/spinner';\n\n/**\n * NGWR button component.\n * Trigger an operation or perform an action.\n *\n * {@tutorial} [How to use wr-btn]{@link http://ngwr.dev/docs/components/button}\n */\n@Component({\n standalone: true,\n selector: 'wr-btn, button[wr-btn], a[wr-btn]',\n templateUrl: './button.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [WrIconComponent, WrSpinnerModule],\n})\nexport class WrButtonComponent {\n @Input() color?: WrThemeColor | null;\n @Input() size: 'default' | 'small' = 'default';\n @Input() icon: wrIconName | null = null;\n @Input() iconPosition: 'start' | 'end' = 'start';\n @Input({ transform: booleanAttribute }) disabled = false;\n @Input({ transform: booleanAttribute }) outlined = false;\n @Input({ transform: booleanAttribute }) rounded = false;\n @Input({ transform: booleanAttribute }) block = false;\n @Input({ transform: booleanAttribute }) loading = false;\n @Input({ transform: booleanAttribute }) isDisabledWhenLoading = true;\n\n @HostBinding('attr.disabled')\n get nativeDisabled(): '' | null {\n return this.disabled ? '' : null;\n }\n\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-btn': true,\n 'wr-btn--color-primary': this.color === 'primary',\n 'wr-btn--color-secondary': this.color === 'secondary',\n 'wr-btn--color-success': this.color === 'success',\n 'wr-btn--color-warning': this.color === 'warning',\n 'wr-btn--color-danger': this.color === 'danger',\n 'wr-btn--color-light': this.color === 'light',\n 'wr-btn--color-medium': this.color === 'medium',\n 'wr-btn--color-dark': this.color === 'dark',\n 'wr-btn--small': this.size === 'small',\n 'wr-btn--block': this.block,\n 'wr-btn--rounded': this.rounded,\n 'wr-btn--icon': this.icon,\n 'wr-btn--icon-start': this.icon && this.iconPosition === 'start',\n 'wr-btn--icon-end': this.icon && this.iconPosition === 'end',\n 'wr-btn--outlined': this.outlined,\n 'wr-btn--loading': this.loading,\n 'wr-btn--loading--disabled': this.loading && this.isDisabledWhenLoading,\n };\n }\n}\n","@if (loading) {\n <wr-spinner class=\"wr-btn__spin\" />\n}\n@if (icon) {\n <wr-icon class=\"wr-btn__icon\" [name]=\"icon\" />\n}\n<span class=\"wr-btn__text\">\n <ng-content />\n</span>\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation } from '@angular/core';\n\nimport { SafeAny } from 'ngwr/cdk/types';\n\n/**\n * NGWR button group.\n *\n * {@tutorial} [How to use wr-btn-group]{@link http://ngwr.dev/docs/components/button-group}\n */\n@Component({\n standalone: true,\n selector: 'wr-btn-group',\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrButtonGroupComponent {\n @HostBinding('class')\n get classes(): SafeAny {\n return {\n 'wr-btn-group': true,\n };\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { WrButtonGroupComponent } from './button-group.component';\nimport { WrButtonComponent } from './button.component';\n\n@NgModule({\n imports: [WrButtonComponent, WrButtonGroupComponent],\n exports: [WrButtonComponent, WrButtonGroupComponent],\n})\nexport class WrButtonModule {}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nexport * from './button.component';\nexport * from './button-group.component';\nexport * from './button.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;AAKG;AAeH;;;;;AAKG;MASU,iBAAiB,CAAA;AAR9B,IAAA,WAAA,GAAA;QAUW,IAAI,CAAA,IAA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AAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAHf,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGhB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;AACpD,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;AACrD,iBAAA,CAAA;;;ACfD;;;;;AAKG;;ACLH;;AAEG;;;;"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Use of this source code is governed by an MIT-style license that can be
5
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
+ */
7
+ function isArray(val) {
8
+ return Array.isArray(val);
9
+ }
10
+
11
+ /**
12
+ * @license
13
+ *
14
+ * Use of this source code is governed by an MIT-style license that can be
15
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
16
+ */
17
+ function isDefined(value) {
18
+ return value != null;
19
+ }
20
+
21
+ /**
22
+ * @license
23
+ *
24
+ * Use of this source code is governed by an MIT-style license that can be
25
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
26
+ */
27
+ function isNotEmptyArray(val) {
28
+ return !Array.isArray(val) || val.length !== 0;
29
+ }
30
+
31
+ /**
32
+ * @license
33
+ *
34
+ * Use of this source code is governed by an MIT-style license that can be
35
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
36
+ */
37
+ function isObservable(obj) {
38
+ return !!obj && typeof obj.subscribe === 'function';
39
+ }
40
+
41
+ /**
42
+ * @license
43
+ *
44
+ * Use of this source code is governed by an MIT-style license that can be
45
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
46
+ */
47
+
48
+ /**
49
+ * Generated bundle index. Do not edit.
50
+ */
51
+
52
+ export { isArray, isDefined, isNotEmptyArray, isObservable };
53
+ //# sourceMappingURL=ngwr-cdk-rxjs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-cdk-rxjs.mjs","sources":["../../../projects/lib/cdk/rxjs/is-array.ts","../../../projects/lib/cdk/rxjs/is-defined.ts","../../../projects/lib/cdk/rxjs/is-not-empty-array.ts","../../../projects/lib/cdk/rxjs/is-observable.ts","../../../projects/lib/cdk/rxjs/public-api.ts","../../../projects/lib/cdk/rxjs/ngwr-cdk-rxjs.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Maybe } from 'ngwr/cdk/types';\n\nexport function isArray<T>(val: Maybe<T>): val is T {\n return Array.isArray(val);\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Maybe } from 'ngwr/cdk/types';\n\nexport function isDefined<T>(value: Maybe<T>): value is T {\n return value != null;\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Maybe } from 'ngwr/cdk/types';\n\nexport function isNotEmptyArray<T>(val: Maybe<T>): val is T {\n return !Array.isArray(val) || val.length !== 0;\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Observable } from 'rxjs';\n\nimport { SafeAny } from 'ngwr/cdk/types';\n\nexport function isObservable(obj: SafeAny | Observable<SafeAny>): obj is Observable<SafeAny> {\n return !!obj && typeof obj.subscribe === 'function';\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nexport * from './is-array';\nexport * from './is-defined';\nexport * from './is-not-empty-array';\nexport * from './is-observable';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;AAKG;AAIG,SAAU,OAAO,CAAI,GAAa,EAAA;AACtC,IAAA,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC5B;;ACXA;;;;;AAKG;AAIG,SAAU,SAAS,CAAI,KAAe,EAAA;IAC1C,OAAO,KAAK,IAAI,IAAI,CAAC;AACvB;;ACXA;;;;;AAKG;AAIG,SAAU,eAAe,CAAI,GAAa,EAAA;AAC9C,IAAA,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;AACjD;;ACXA;;;;;AAKG;AAMG,SAAU,YAAY,CAAC,GAAkC,EAAA;IAC7D,OAAO,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU,CAAC;AACtD;;ACbA;;;;;AAKG;;ACLH;;AAEG;;;;"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Use of this source code is governed by an MIT-style license that can be
5
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
+ */
7
+
8
+ /**
9
+ * @license
10
+ *
11
+ * Use of this source code is governed by an MIT-style license that can be
12
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
13
+ */
14
+
15
+ /**
16
+ * @license
17
+ *
18
+ * Use of this source code is governed by an MIT-style license that can be
19
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
20
+ */
21
+ const wrThemeColors = [
22
+ 'primary',
23
+ 'secondary',
24
+ 'success',
25
+ 'warning',
26
+ 'danger',
27
+ 'light',
28
+ 'medium',
29
+ 'dark',
30
+ ];
31
+
32
+ /**
33
+ * @license
34
+ *
35
+ * Use of this source code is governed by an MIT-style license that can be
36
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
37
+ */
38
+
39
+ /**
40
+ * Generated bundle index. Do not edit.
41
+ */
42
+
43
+ export { wrThemeColors };
44
+ //# sourceMappingURL=ngwr-cdk-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-cdk-types.mjs","sources":["../../../projects/lib/cdk/types/maybe.ts","../../../projects/lib/cdk/types/safe-any.ts","../../../projects/lib/cdk/types/theme-color.ts","../../../projects/lib/cdk/types/public-api.ts","../../../projects/lib/cdk/types/ngwr-cdk-types.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nexport type Maybe<T> = T | undefined | null;\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type SafeAny = any;\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nexport const wrThemeColors = [\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'light',\n 'medium',\n 'dark',\n] as const;\n\nexport type WrThemeColor = (typeof wrThemeColors)[number];\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nexport * from './maybe';\nexport * from './safe-any';\nexport * from './theme-color';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;AAKG;;ACLH;;;;;AAKG;;ACLH;;;;;AAKG;AAEU,MAAA,aAAa,GAAG;IAC3B,SAAS;IACT,WAAW;IACX,SAAS;IACT,SAAS;IACT,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;;;ACfR;;;;;AAKG;;ACLH;;AAEG;;;;"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Use of this source code is governed by an MIT-style license that can be
5
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
+ */
7
+ /**
8
+ * Generates random ID
9
+ *
10
+ * @return {string}
11
+ */
12
+ function generateRandomId() {
13
+ const dateRandomizer = Date.now().toString(36);
14
+ const mathRandomizer = Math.random().toString(36).substring(2);
15
+ return `${dateRandomizer}${mathRandomizer}`;
16
+ }
17
+
18
+ /**
19
+ * @license
20
+ *
21
+ * Use of this source code is governed by an MIT-style license that can be
22
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
23
+ */
24
+
25
+ /**
26
+ * Generated bundle index. Do not edit.
27
+ */
28
+
29
+ export { generateRandomId };
30
+ //# sourceMappingURL=ngwr-cdk-utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-cdk-utils.mjs","sources":["../../../projects/lib/cdk/utils/generate-random-id.ts","../../../projects/lib/cdk/utils/public-api.ts","../../../projects/lib/cdk/utils/ngwr-cdk-utils.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\n/**\n * Generates random ID\n *\n * @return {string}\n */\nexport function generateRandomId(): string {\n const dateRandomizer = Date.now().toString(36);\n const mathRandomizer = Math.random().toString(36).substring(2);\n return `${dateRandomizer}${mathRandomizer}`;\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nexport * from './generate-random-id';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;AAKG;AAEH;;;;AAIG;SACa,gBAAgB,GAAA;IAC9B,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC/C,IAAA,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAC/D,IAAA,OAAO,CAAG,EAAA,cAAc,CAAG,EAAA,cAAc,EAAE,CAAC;AAC9C;;AChBA;;;;;AAKG;;ACLH;;AAEG;;;;"}
@@ -0,0 +1,41 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive } from '@angular/core';
3
+ import { Subject } from 'rxjs';
4
+
5
+ /**
6
+ * @license
7
+ *
8
+ * Use of this source code is governed by an MIT-style license that can be
9
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
10
+ */
11
+ class WrAbstractBase {
12
+ constructor() {
13
+ this.destroyed$ = new Subject();
14
+ }
15
+ ngOnDestroy() {
16
+ this.destroyed$.next();
17
+ this.destroyed$.complete();
18
+ }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrAbstractBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: WrAbstractBase, isStandalone: true, ngImport: i0 }); }
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: WrAbstractBase, decorators: [{
23
+ type: Directive,
24
+ args: [{
25
+ standalone: true,
26
+ }]
27
+ }] });
28
+
29
+ /**
30
+ * @license
31
+ *
32
+ * Use of this source code is governed by an MIT-style license that can be
33
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
34
+ */
35
+
36
+ /**
37
+ * Generated bundle index. Do not edit.
38
+ */
39
+
40
+ export { WrAbstractBase };
41
+ //# sourceMappingURL=ngwr-cdk.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-cdk.mjs","sources":["../../../projects/lib/cdk/base.directive.ts","../../../projects/lib/cdk/public-api.ts","../../../projects/lib/cdk/ngwr-cdk.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directive, OnDestroy } from '@angular/core';\n\nimport { Subject } from 'rxjs';\n\n@Directive({\n standalone: true,\n})\nexport abstract class WrAbstractBase implements OnDestroy {\n protected readonly destroyed$: Subject<void> = new Subject<void>();\n\n ngOnDestroy(): void {\n this.destroyed$.next();\n this.destroyed$.complete();\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nexport * from './base.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAAA;;;;;AAKG;MASmB,cAAc,CAAA;AAHpC,IAAA,WAAA,GAAA;AAIqB,QAAA,IAAA,CAAA,UAAU,GAAkB,IAAI,OAAO,EAAQ,CAAC;AAMpE,KAAA;IAJC,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;AACvB,QAAA,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;KAC5B;8GANmB,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAHnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;;ACbD;;;;;AAKG;;ACLH;;AAEG;;;;"}