@rededor/site-front-end-lib 20.0.26 → 20.0.27

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 (915) hide show
  1. package/CHANGELOG.md +828 -0
  2. package/components/algolia-dropdown/algolia-dropdown.component.html +19 -0
  3. package/components/algolia-dropdown/algolia-dropdown.component.scss +0 -0
  4. package/components/algolia-dropdown/algolia-dropdown.component.spec.ts +22 -0
  5. package/components/algolia-dropdown/algolia-dropdown.component.ts +103 -0
  6. package/components/algolia-dropdown/index.ts +1 -0
  7. package/components/algolia-dropdown/ng-package.json +6 -0
  8. package/components/algolia-dropdown/public-api.ts +1 -0
  9. package/components/algolia-search/components/algolia-search/algolia-search.component.html +96 -0
  10. package/components/algolia-search/components/algolia-search/algolia-search.component.scss +588 -0
  11. package/components/algolia-search/components/algolia-search/algolia-search.component.spec.ts +21 -0
  12. package/components/algolia-search/components/algolia-search/algolia-search.component.ts +415 -0
  13. package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.html +23 -0
  14. package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.scss +5 -0
  15. package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.spec.ts +22 -0
  16. package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.ts +90 -0
  17. package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.html +70 -0
  18. package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.scss +27 -0
  19. package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.spec.ts +21 -0
  20. package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.ts +77 -0
  21. package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.html +6 -0
  22. package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.scss +0 -0
  23. package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.spec.ts +21 -0
  24. package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.ts +90 -0
  25. package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.html +1 -0
  26. package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.scss +0 -0
  27. package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.spec.ts +21 -0
  28. package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.ts +9 -0
  29. package/components/algolia-search/index.ts +1 -0
  30. package/components/algolia-search/models/algolia-component-style.enum.ts +4 -0
  31. package/components/algolia-search/models/algolia-config.model.ts +8 -0
  32. package/components/algolia-search/models/algolia-hint.model.ts +4 -0
  33. package/components/algolia-search/models/algolia-hit-description.model.ts +6 -0
  34. package/components/algolia-search/models/algolia-multiple-index.model.ts +7 -0
  35. package/components/algolia-search/models/algolia-results-item.model.ts +8 -0
  36. package/components/algolia-search/models/algolia-results-multiple.model.ts +6 -0
  37. package/components/algolia-search/models/algolia-search-params.model.ts +83 -0
  38. package/components/algolia-search/ng-package.json +6 -0
  39. package/components/algolia-search/public-api.ts +13 -0
  40. package/components/banner/content-banner/content-banner.component.html +51 -0
  41. package/components/banner/content-banner/content-banner.component.scss +91 -0
  42. package/components/banner/content-banner/content-banner.component.spec.ts +27 -0
  43. package/components/banner/content-banner/content-banner.component.ts +36 -0
  44. package/components/banner/index.ts +1 -0
  45. package/components/banner/ng-package.json +6 -0
  46. package/components/banner/public-api.ts +1 -0
  47. package/components/breadcrumbs/breadcrumbs.component.html +56 -0
  48. package/components/breadcrumbs/breadcrumbs.component.scss +55 -0
  49. package/components/breadcrumbs/breadcrumbs.component.spec.ts +22 -0
  50. package/components/breadcrumbs/breadcrumbs.component.ts +142 -0
  51. package/components/breadcrumbs/index.ts +1 -0
  52. package/components/breadcrumbs/ng-package.json +6 -0
  53. package/components/breadcrumbs/public-api.ts +1 -0
  54. package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.html +91 -0
  55. package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.scss +143 -0
  56. package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.spec.ts +22 -0
  57. package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.ts +66 -0
  58. package/components/cards/expandable-card/expandable-card.component.html +30 -0
  59. package/components/cards/expandable-card/expandable-card.component.scss +100 -0
  60. package/components/cards/expandable-card/expandable-card.component.spec.ts +27 -0
  61. package/components/cards/expandable-card/expandable-card.component.ts +60 -0
  62. package/components/cards/index.ts +1 -0
  63. package/components/cards/ng-package.json +6 -0
  64. package/components/cards/public-api.ts +3 -0
  65. package/components/cards/testimonial-card/testimonial-card.component.html +41 -0
  66. package/components/cards/testimonial-card/testimonial-card.component.scss +96 -0
  67. package/components/cards/testimonial-card/testimonial-card.component.spec.ts +27 -0
  68. package/components/cards/testimonial-card/testimonial-card.component.ts +65 -0
  69. package/components/carousels/index.ts +1 -0
  70. package/components/carousels/ng-package.json +6 -0
  71. package/components/carousels/public-api.ts +1 -0
  72. package/components/carousels/testimonials-carousel/testimonials-carousel.component.html +30 -0
  73. package/components/carousels/testimonials-carousel/testimonials-carousel.component.scss +91 -0
  74. package/components/carousels/testimonials-carousel/testimonials-carousel.component.spec.ts +27 -0
  75. package/components/carousels/testimonials-carousel/testimonials-carousel.component.ts +73 -0
  76. package/components/cta-wrapper/cta-wrapper.component.html +54 -0
  77. package/components/cta-wrapper/cta-wrapper.component.scss +123 -0
  78. package/components/cta-wrapper/cta-wrapper.component.spec.ts +22 -0
  79. package/components/cta-wrapper/cta-wrapper.component.ts +77 -0
  80. package/components/cta-wrapper/index.ts +1 -0
  81. package/components/cta-wrapper/ng-package.json +6 -0
  82. package/components/cta-wrapper/public-api.ts +1 -0
  83. package/components/error/error.component.html +65 -0
  84. package/components/error/error.component.scss +26 -0
  85. package/components/error/error.component.spec.ts +22 -0
  86. package/components/error/error.component.ts +182 -0
  87. package/components/error/index.ts +1 -0
  88. package/components/error/ng-package.json +6 -0
  89. package/components/error/public-api.ts +1 -0
  90. package/components/filter-letter-and-terms/filter-letter-and-terms.component.html +33 -0
  91. package/components/filter-letter-and-terms/filter-letter-and-terms.component.scss +98 -0
  92. package/components/filter-letter-and-terms/filter-letter-and-terms.component.spec.ts +22 -0
  93. package/components/filter-letter-and-terms/filter-letter-and-terms.component.ts +87 -0
  94. package/components/filter-letter-and-terms/index.ts +1 -0
  95. package/components/filter-letter-and-terms/ng-package.json +6 -0
  96. package/components/filter-letter-and-terms/public-api.ts +1 -0
  97. package/components/filters/filter-generic/USAGE.md +147 -0
  98. package/components/filters/filter-generic/filter-generic.component.html +174 -0
  99. package/components/filters/filter-generic/filter-generic.component.scss +266 -0
  100. package/components/filters/filter-generic/filter-generic.component.spec.ts +21 -0
  101. package/components/filters/filter-generic/filter-generic.component.ts +266 -0
  102. package/components/filters/filter-generic/index.ts +1 -0
  103. package/components/filters/filter-generic/ng-package.json +6 -0
  104. package/components/filters/filter-generic/public-api.ts +1 -0
  105. package/components/filters/filter-planos-convenios/filter-planos-convenios.component.html +76 -0
  106. package/components/filters/filter-planos-convenios/filter-planos-convenios.component.scss +84 -0
  107. package/components/filters/filter-planos-convenios/filter-planos-convenios.component.spec.ts +21 -0
  108. package/components/filters/filter-planos-convenios/filter-planos-convenios.component.ts +149 -0
  109. package/components/filters/filter-planos-convenios/index.ts +1 -0
  110. package/components/filters/filter-planos-convenios/ng-package.json +6 -0
  111. package/components/filters/filter-planos-convenios/public-api.ts +1 -0
  112. package/components/footer/footer.component.html +125 -0
  113. package/components/footer/footer.component.scss +451 -0
  114. package/components/footer/footer.component.spec.ts +22 -0
  115. package/components/footer/footer.component.ts +94 -0
  116. package/components/footer/helpers/footerTheme.func.ts +119 -0
  117. package/components/footer/index.ts +1 -0
  118. package/components/footer/models/FooterTheme.model.ts +8 -0
  119. package/components/footer/ng-package.json +6 -0
  120. package/components/footer/public-api.ts +1 -0
  121. package/components/header/components/action/header-action-menu/header-action-menu.component.html +41 -0
  122. package/components/header/components/action/header-action-menu/header-action-menu.component.scss +158 -0
  123. package/components/header/components/action/header-action-menu/header-action-menu.component.spec.ts +22 -0
  124. package/components/header/components/action/header-action-menu/header-action-menu.component.ts +30 -0
  125. package/components/header/components/action/index.ts +1 -0
  126. package/components/header/components/action/ng-package.json +6 -0
  127. package/components/header/components/action/public-api.ts +1 -0
  128. package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.html +33 -0
  129. package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.scss +60 -0
  130. package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.spec.ts +22 -0
  131. package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.ts +46 -0
  132. package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.html +7 -0
  133. package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.scss +27 -0
  134. package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.spec.ts +22 -0
  135. package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.ts +19 -0
  136. package/components/header/components/auxiliar/index.ts +1 -0
  137. package/components/header/components/auxiliar/ng-package.json +6 -0
  138. package/components/header/components/auxiliar/public-api.ts +2 -0
  139. package/components/header/components/header-logo/header-logo.component.html +5 -0
  140. package/components/header/components/header-logo/header-logo.component.scss +20 -0
  141. package/components/header/components/header-logo/header-logo.component.spec.ts +22 -0
  142. package/components/header/components/header-logo/header-logo.component.ts +23 -0
  143. package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.html +30 -0
  144. package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.scss +53 -0
  145. package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.spec.ts +22 -0
  146. package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.ts +88 -0
  147. package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.html +112 -0
  148. package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.scss +259 -0
  149. package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.spec.ts +22 -0
  150. package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.ts +107 -0
  151. package/components/header/components/main/index.ts +1 -0
  152. package/components/header/components/main/ng-package.json +6 -0
  153. package/components/header/components/main/public-api.ts +2 -0
  154. package/components/header/components/side/header-side-menu/header-side-menu.component.html +32 -0
  155. package/components/header/components/side/header-side-menu/header-side-menu.component.scss +81 -0
  156. package/components/header/components/side/header-side-menu/header-side-menu.component.spec.ts +22 -0
  157. package/components/header/components/side/header-side-menu/header-side-menu.component.ts +29 -0
  158. package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.html +26 -0
  159. package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.scss +104 -0
  160. package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.spec.ts +22 -0
  161. package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.ts +45 -0
  162. package/components/header/components/side/index.ts +1 -0
  163. package/components/header/components/side/ng-package.json +6 -0
  164. package/components/header/components/side/public-api.ts +2 -0
  165. package/components/header/header.component.html +81 -0
  166. package/components/header/header.component.scss +171 -0
  167. package/components/header/header.component.spec.ts +22 -0
  168. package/components/header/header.component.ts +135 -0
  169. package/components/header/helpers/headerTheme.func.ts +288 -0
  170. package/components/header/index.ts +1 -0
  171. package/components/header/models/HeaderTheme.model.ts +9 -0
  172. package/components/header/ng-package.json +6 -0
  173. package/components/header/public-api.ts +2 -0
  174. package/components/header/services/header.service.spec.ts +16 -0
  175. package/components/header/services/header.service.ts +40 -0
  176. package/components/header/services/index.ts +1 -0
  177. package/components/header/services/ng-package.json +6 -0
  178. package/components/header/services/public-api.ts +1 -0
  179. package/components/image/image.component.html +9 -0
  180. package/components/image/image.component.scss +12 -0
  181. package/components/image/image.component.spec.ts +22 -0
  182. package/components/image/image.component.ts +43 -0
  183. package/components/image/index.ts +1 -0
  184. package/components/image/ng-package.json +6 -0
  185. package/components/image/public-api.ts +1 -0
  186. package/components/load-screen/index.ts +1 -0
  187. package/components/load-screen/load-screen.component.html +128 -0
  188. package/components/load-screen/load-screen.component.scss +46 -0
  189. package/components/load-screen/load-screen.component.spec.ts +27 -0
  190. package/components/load-screen/load-screen.component.ts +18 -0
  191. package/components/load-screen/ng-package.json +6 -0
  192. package/components/load-screen/public-api.ts +1 -0
  193. package/components/modal/index.ts +1 -0
  194. package/components/modal/modal.component.html +12 -0
  195. package/components/modal/modal.component.scss +34 -0
  196. package/components/modal/modal.component.spec.ts +22 -0
  197. package/components/modal/modal.component.ts +74 -0
  198. package/components/modal/ng-package.json +6 -0
  199. package/components/modal/public-api.ts +1 -0
  200. package/components/modal-drawer/index.ts +1 -0
  201. package/components/modal-drawer/modal-drawer.component.html +22 -0
  202. package/components/modal-drawer/modal-drawer.component.scss +250 -0
  203. package/components/modal-drawer/modal-drawer.component.spec.ts +22 -0
  204. package/components/modal-drawer/modal-drawer.component.ts +148 -0
  205. package/components/modal-drawer/ng-package.json +6 -0
  206. package/components/modal-drawer/public-api.ts +1 -0
  207. package/components/overlay/index.ts +1 -0
  208. package/components/overlay/ng-package.json +6 -0
  209. package/components/overlay/overlay.component.html +1 -0
  210. package/components/overlay/overlay.component.scss +13 -0
  211. package/components/overlay/overlay.component.spec.ts +22 -0
  212. package/components/overlay/overlay.component.ts +15 -0
  213. package/components/overlay/public-api.ts +1 -0
  214. package/components/page-header/index.ts +1 -0
  215. package/components/page-header/ng-package.json +6 -0
  216. package/components/page-header/page-header.component.html +25 -0
  217. package/components/page-header/page-header.component.scss +110 -0
  218. package/components/page-header/page-header.component.spec.ts +22 -0
  219. package/components/page-header/page-header.component.ts +41 -0
  220. package/components/page-header/public-api.ts +1 -0
  221. package/components/page-template-fullcontent/index.ts +1 -0
  222. package/components/page-template-fullcontent/ng-package.json +6 -0
  223. package/components/page-template-fullcontent/page-template-fullcontent.component.html +37 -0
  224. package/components/page-template-fullcontent/page-template-fullcontent.component.scss +41 -0
  225. package/components/page-template-fullcontent/page-template-fullcontent.component.ts +22 -0
  226. package/components/page-template-fullcontent/public-api.ts +1 -0
  227. package/components/page-template-sidebar/index.ts +1 -0
  228. package/components/page-template-sidebar/ng-package.json +6 -0
  229. package/components/page-template-sidebar/page-template-sidebar.component.html +50 -0
  230. package/components/page-template-sidebar/page-template-sidebar.component.scss +80 -0
  231. package/components/page-template-sidebar/page-template-sidebar.component.spec.ts +22 -0
  232. package/components/page-template-sidebar/page-template-sidebar.component.ts +25 -0
  233. package/components/page-template-sidebar/public-api.ts +1 -0
  234. package/components/pagination/index.ts +1 -0
  235. package/components/pagination/ng-package.json +6 -0
  236. package/components/pagination/pagination.component.html +53 -0
  237. package/components/pagination/pagination.component.scss +124 -0
  238. package/components/pagination/pagination.component.spec.ts +22 -0
  239. package/components/pagination/pagination.component.ts +48 -0
  240. package/components/pagination/public-api.ts +1 -0
  241. package/components/search/index.ts +1 -0
  242. package/components/search/ng-package.json +6 -0
  243. package/components/search/public-api.ts +1 -0
  244. package/components/search/search.component.html +32 -0
  245. package/components/search/search.component.scss +59 -0
  246. package/components/search/search.component.spec.ts +22 -0
  247. package/components/search/search.component.ts +122 -0
  248. package/components/section-navigation/index.ts +1 -0
  249. package/components/section-navigation/ng-package.json +6 -0
  250. package/components/section-navigation/public-api.ts +1 -0
  251. package/components/section-navigation/section-navigation.component.html +23 -0
  252. package/components/section-navigation/section-navigation.component.scss +50 -0
  253. package/components/section-navigation/section-navigation.component.spec.ts +22 -0
  254. package/components/section-navigation/section-navigation.component.ts +159 -0
  255. package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.html +8 -0
  256. package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.scss +56 -0
  257. package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.spec.ts +22 -0
  258. package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.ts +31 -0
  259. package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.html +11 -0
  260. package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.scss +0 -0
  261. package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.spec.ts +22 -0
  262. package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.ts +23 -0
  263. package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.html +10 -0
  264. package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.scss +54 -0
  265. package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.spec.ts +22 -0
  266. package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.ts +30 -0
  267. package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.html +1 -0
  268. package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.scss +11 -0
  269. package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.spec.ts +22 -0
  270. package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.ts +9 -0
  271. package/components/side-ctas/index.ts +1 -0
  272. package/components/side-ctas/models/SideCta.model.ts +5 -0
  273. package/components/side-ctas/ng-package.json +6 -0
  274. package/components/side-ctas/public-api.ts +6 -0
  275. package/components/side-ctas/side-ctas.component.html +28 -0
  276. package/components/side-ctas/side-ctas.component.scss +62 -0
  277. package/components/side-ctas/side-ctas.component.spec.ts +22 -0
  278. package/components/side-ctas/side-ctas.component.ts +17 -0
  279. package/components/sidebar-navigation/index.ts +1 -0
  280. package/components/sidebar-navigation/ng-package.json +6 -0
  281. package/components/sidebar-navigation/public-api.ts +1 -0
  282. package/components/sidebar-navigation/sidebar-navigation.component.html +42 -0
  283. package/components/sidebar-navigation/sidebar-navigation.component.scss +25 -0
  284. package/components/sidebar-navigation/sidebar-navigation.component.ts +122 -0
  285. package/components/sticky-navigation/index.ts +1 -0
  286. package/components/sticky-navigation/ng-package.json +6 -0
  287. package/components/sticky-navigation/public-api.ts +1 -0
  288. package/components/sticky-navigation/sticky-navigation.component.html +39 -0
  289. package/components/sticky-navigation/sticky-navigation.component.scss +48 -0
  290. package/components/sticky-navigation/sticky-navigation.component.ts +134 -0
  291. package/components/whatsapp/index.ts +1 -0
  292. package/components/whatsapp/ng-package.json +6 -0
  293. package/components/whatsapp/public-api.ts +1 -0
  294. package/components/whatsapp/whatsapp.component.html +23 -0
  295. package/components/whatsapp/whatsapp.component.scss +113 -0
  296. package/components/whatsapp/whatsapp.component.spec.ts +22 -0
  297. package/components/whatsapp/whatsapp.component.ts +40 -0
  298. package/core/directives/rdsite-link/rdsite-link.directive.spec.ts +8 -0
  299. package/core/directives/rdsite-link/rdsite-link.directive.ts +200 -0
  300. package/core/directives/rdsite-phone-modal/rdsite-phone-modal.directive.spec.ts +8 -0
  301. package/core/directives/rdsite-phone-modal/rdsite-phone-modal.directive.ts +41 -0
  302. package/core/enums/RdsiteModalComponentStyle.enum.ts +13 -0
  303. package/core/enums/RdsiteModalDrawerComponentStyle.enum.ts +7 -0
  304. package/core/helpers/check-safari-agent.func.ts +6 -0
  305. package/core/helpers/djb2Hash.func.ts +18 -0
  306. package/core/helpers/executeWithRetry.func.ts +25 -0
  307. package/core/helpers/formatPhone.func.ts +22 -0
  308. package/core/helpers/getCircularReplacer.func.ts +45 -0
  309. package/core/helpers/getSiteUrl.func.ts +7 -0
  310. package/core/helpers/removeHtmlTags.func.ts +6 -0
  311. package/core/helpers/toQueryParams.func.ts +11 -0
  312. package/core/index.ts +1 -0
  313. package/core/interceptors/error.interceptor.ts +39 -0
  314. package/core/interceptors/log.interceptor.ts +35 -0
  315. package/core/interceptors/transfer-state-url.interceptor.ts +137 -0
  316. package/core/models/algolia-search-api.model.ts +213 -0
  317. package/core/models/breadcrumbs/breadcrumbs-items.model.ts +10 -0
  318. package/core/models/breadcrumbs/breadcrumbs-json-item.model.ts +8 -0
  319. package/core/models/centro-estudos-backend.model.ts +8 -0
  320. package/core/models/centro-medico.model.ts +33 -0
  321. package/core/models/content-banner.model.ts +7 -0
  322. package/core/models/cta-wrapper.model.ts +9 -0
  323. package/core/models/doenca-backend.model.ts +27 -0
  324. package/core/models/doenca-taxonomy.model.ts +21 -0
  325. package/core/models/especialidade-backend.model.ts +25 -0
  326. package/core/models/exame-backend.model.ts +26 -0
  327. package/core/models/filters/filter-planos-convenios.model.ts +34 -0
  328. package/core/models/filters/filter-section.type.ts +18 -0
  329. package/core/models/filters/filter-sections.model.ts +66 -0
  330. package/core/models/images/rdsite-image.model.ts +5 -0
  331. package/core/models/index.ts +1 -0
  332. package/core/models/medico-cv.model.ts +10 -0
  333. package/core/models/menu-de-unidade.model.ts +16 -0
  334. package/core/models/menu-item.model.ts +71 -0
  335. package/core/models/privacy-tools/privacy-tools.model.ts +9 -0
  336. package/core/models/rdsl-cobertura.model.ts +72 -0
  337. package/core/models/rdsl-convenio.model.ts +18 -0
  338. package/core/models/rdsl-especialidade.model.ts +36 -0
  339. package/core/models/rdsl-planos.model.ts +14 -0
  340. package/core/models/rdsl-post-category.model.ts +8 -0
  341. package/core/models/rdsl-unidade.model.ts +52 -0
  342. package/core/models/section-navigation.model.ts +10 -0
  343. package/core/models/seo/seo-data.model.ts +11 -0
  344. package/core/models/seo/seo-unidade.model.ts +6 -0
  345. package/core/models/social-meta-properties.model.ts +9 -0
  346. package/core/models/wordpress/WpEnvelopeResponse.model.ts +12 -0
  347. package/core/models/wordpress/WpHttpParams.model.ts +5 -0
  348. package/core/models/wordpress/WpQueryParams.model.ts +32 -0
  349. package/core/models/wordpress/WpResponse.model.ts +35 -0
  350. package/core/models/wordpress/category/wpCategory.model.ts +15 -0
  351. package/core/models/wordpress/category/wpCategoryRequestParams.model.ts +9 -0
  352. package/core/models/wordpress/flexiblecontent/flexiblecontent.model.ts +4 -0
  353. package/core/models/wordpress/general/content.model.ts +4 -0
  354. package/core/models/wordpress/general/excerpt.model.ts +4 -0
  355. package/core/models/wordpress/general/featuredMedia.model.ts +27 -0
  356. package/core/models/wordpress/general/guid.model.ts +3 -0
  357. package/core/models/wordpress/general/index.ts +10 -0
  358. package/core/models/wordpress/general/links.model.ts +47 -0
  359. package/core/models/wordpress/general/meta.model.ts +3 -0
  360. package/core/models/wordpress/general/title.model.ts +3 -0
  361. package/core/models/wordpress/general/yoastData.model.ts +4 -0
  362. package/core/models/wordpress/general/yoastHeadJson.model.ts +55 -0
  363. package/core/models/wordpress/general/yoastMeta.model.ts +5 -0
  364. package/core/models/wordpress/page/page.model.ts +11 -0
  365. package/core/models/wordpress/page/pageRequestParams.model.ts +11 -0
  366. package/core/models/wordpress/post/post.model.ts +37 -0
  367. package/core/models/wordpress/post/postRequestParams.model.ts +23 -0
  368. package/core/models/wordpress/unidade/wp-unidade-onco.model.ts +62 -0
  369. package/core/models/wordpress/unidade/wp-unidade-site-detalhe.model.ts +173 -0
  370. package/core/models/wordpress/unidade/wp-unidade-site.model.ts +48 -0
  371. package/core/ng-package.json +6 -0
  372. package/core/public-api.ts +79 -0
  373. package/core/services/error/error.service.spec.ts +16 -0
  374. package/core/services/error/error.service.ts +10 -0
  375. package/core/services/geoloc/geoloc.service.spec.ts +16 -0
  376. package/core/services/geoloc/geoloc.service.ts +225 -0
  377. package/core/services/http-client/http-client.service.spec.ts +16 -0
  378. package/core/services/http-client/http-client.service.ts +49 -0
  379. package/core/services/log/log.service.spec.ts +16 -0
  380. package/core/services/log/log.service.ts +36 -0
  381. package/core/services/mapbox/mapbox.service.spec.ts +16 -0
  382. package/core/services/mapbox/mapbox.service.ts +84 -0
  383. package/core/services/modal/modal.service.spec.ts +16 -0
  384. package/core/services/modal/modal.service.ts +124 -0
  385. package/core/services/modal-drawer/modal-drawer.service.spec.ts +16 -0
  386. package/core/services/modal-drawer/modal-drawer.service.ts +104 -0
  387. package/core/services/phone/phone.service.spec.ts +16 -0
  388. package/core/services/phone/phone.service.ts +19 -0
  389. package/core/services/privacy-tools/privacy-tools.service.spec.ts +16 -0
  390. package/core/services/privacy-tools/privacy-tools.service.ts +96 -0
  391. package/core/services/seo/seo.service.spec.ts +16 -0
  392. package/core/services/seo/seo.service.ts +537 -0
  393. package/core/services/server-response/server-response.service.spec.ts +16 -0
  394. package/core/services/server-response/server-response.service.ts +107 -0
  395. package/core/services/site-back-end/site-back-end.service.spec.ts +16 -0
  396. package/core/services/site-back-end/site-back-end.service.ts +48 -0
  397. package/core/services/ssr-response/ssr-response.service.spec.ts +16 -0
  398. package/core/services/ssr-response/ssr-response.service.ts +57 -0
  399. package/core/tokens/LibConfig.ts +64 -0
  400. package/core/tokens/express.tokens.ts +5 -0
  401. package/cura/accordion/cura-accordion/cura-accordion.component.html +1 -0
  402. package/cura/accordion/cura-accordion/cura-accordion.component.scss +7 -0
  403. package/cura/accordion/cura-accordion/cura-accordion.component.ts +203 -0
  404. package/cura/accordion/cura-accordion-item/cura-accordion-item.component.html +20 -0
  405. package/cura/accordion/cura-accordion-item/cura-accordion-item.component.scss +139 -0
  406. package/cura/accordion/cura-accordion-item/cura-accordion-item.component.ts +75 -0
  407. package/cura/accordion/cura-accordion.definitions.ts +5 -0
  408. package/cura/accordion/index.ts +1 -0
  409. package/cura/accordion/ng-package.json +6 -0
  410. package/cura/accordion/public-api.ts +3 -0
  411. package/cura/api/CuraConfig.ts +5 -0
  412. package/cura/api/cura-api.service.spec.ts +138 -0
  413. package/cura/api/cura-api.service.ts +104 -0
  414. package/cura/api/cura-api.types.ts +79 -0
  415. package/cura/api/index.ts +1 -0
  416. package/cura/api/modules/cura-theme-breakpoints.module.ts +22 -0
  417. package/cura/api/modules/cura-theme-colors.module.ts +89 -0
  418. package/cura/api/modules/cura-theme-fonts.module.ts +54 -0
  419. package/cura/api/modules/cura-theme-spacing.module.ts +23 -0
  420. package/cura/api/modules/cura-theme.module.ts +116 -0
  421. package/cura/api/ng-package.json +6 -0
  422. package/cura/api/public-api.ts +11 -0
  423. package/cura/api/theme-presets/static.ts +70 -0
  424. package/cura/api/theme-presets/theme-default.ts +49 -0
  425. package/cura/api/theme-presets/theme-maternidade-star.ts +49 -0
  426. package/cura/api/theme-presets/theme-presets.ts +13 -0
  427. package/cura/api/theme-presets/theme-star.ts +49 -0
  428. package/cura/badges/cura-badge-counter/cura-badge-counter.component.html +7 -0
  429. package/cura/badges/cura-badge-counter/cura-badge-counter.component.scss +41 -0
  430. package/cura/badges/cura-badge-counter/cura-badge-counter.component.ts +94 -0
  431. package/cura/badges/cura-badge-counter/index.ts +1 -0
  432. package/cura/badges/cura-badge-counter/ng-package.json +6 -0
  433. package/cura/badges/cura-badge-counter/public-api.ts +1 -0
  434. package/cura/badges/cura-badge-distance/cura-badge-distance.component.html +8 -0
  435. package/cura/badges/cura-badge-distance/cura-badge-distance.component.scss +16 -0
  436. package/cura/badges/cura-badge-distance/cura-badge-distance.component.ts +53 -0
  437. package/cura/badges/cura-badge-distance/index.ts +1 -0
  438. package/cura/badges/cura-badge-distance/ng-package.json +6 -0
  439. package/cura/badges/cura-badge-distance/public-api.ts +1 -0
  440. package/cura/badges/cura-badge-dot/cura-badge-dot.component.html +1 -0
  441. package/cura/badges/cura-badge-dot/cura-badge-dot.component.scss +50 -0
  442. package/cura/badges/cura-badge-dot/cura-badge-dot.component.ts +69 -0
  443. package/cura/badges/cura-badge-dot/index.ts +1 -0
  444. package/cura/badges/cura-badge-dot/ng-package.json +6 -0
  445. package/cura/badges/cura-badge-dot/public-api.ts +1 -0
  446. package/cura/badges/cura-badge-pill/cura-badge-pill.component.html +8 -0
  447. package/cura/badges/cura-badge-pill/cura-badge-pill.component.scss +74 -0
  448. package/cura/badges/cura-badge-pill/cura-badge-pill.component.ts +105 -0
  449. package/cura/badges/cura-badge-pill/index.ts +1 -0
  450. package/cura/badges/cura-badge-pill/ng-package.json +6 -0
  451. package/cura/badges/cura-badge-pill/public-api.ts +1 -0
  452. package/cura/badges/cura-badges.definitions.ts +5 -0
  453. package/cura/badges/index.ts +1 -0
  454. package/cura/badges/ng-package.json +6 -0
  455. package/cura/badges/public-api.ts +1 -0
  456. package/cura/buttons/cura-button/cura-button.component.html +47 -0
  457. package/cura/buttons/cura-button/cura-button.component.scss +66 -0
  458. package/cura/buttons/cura-button/cura-button.component.spec.ts +105 -0
  459. package/cura/buttons/cura-button/cura-button.component.ts +184 -0
  460. package/cura/buttons/cura-button/index.ts +1 -0
  461. package/cura/buttons/cura-button/ng-package.json +6 -0
  462. package/cura/buttons/cura-button/public-api.ts +1 -0
  463. package/cura/buttons/cura-button-outline/cura-button-outline.component.html +47 -0
  464. package/cura/buttons/cura-button-outline/cura-button-outline.component.scss +55 -0
  465. package/cura/buttons/cura-button-outline/cura-button-outline.component.spec.ts +57 -0
  466. package/cura/buttons/cura-button-outline/cura-button-outline.component.ts +184 -0
  467. package/cura/buttons/cura-button-outline/index.ts +1 -0
  468. package/cura/buttons/cura-button-outline/ng-package.json +6 -0
  469. package/cura/buttons/cura-button-outline/public-api.ts +1 -0
  470. package/cura/buttons/cura-button-select/cura-button-select.component.html +27 -0
  471. package/cura/buttons/cura-button-select/cura-button-select.component.scss +76 -0
  472. package/cura/buttons/cura-button-select/cura-button-select.component.spec.ts +96 -0
  473. package/cura/buttons/cura-button-select/cura-button-select.component.ts +140 -0
  474. package/cura/buttons/cura-button-select/index.ts +1 -0
  475. package/cura/buttons/cura-button-select/ng-package.json +6 -0
  476. package/cura/buttons/cura-button-select/public-api.ts +1 -0
  477. package/cura/buttons/cura-button-transparent/cura-button-transparent.component.html +47 -0
  478. package/cura/buttons/cura-button-transparent/cura-button-transparent.component.scss +29 -0
  479. package/cura/buttons/cura-button-transparent/cura-button-transparent.component.spec.ts +63 -0
  480. package/cura/buttons/cura-button-transparent/cura-button-transparent.component.ts +172 -0
  481. package/cura/buttons/cura-button-transparent/index.ts +1 -0
  482. package/cura/buttons/cura-button-transparent/ng-package.json +6 -0
  483. package/cura/buttons/cura-button-transparent/public-api.ts +1 -0
  484. package/cura/buttons/cura-button.definitions.ts +13 -0
  485. package/cura/buttons/index.ts +1 -0
  486. package/cura/buttons/ng-package.json +6 -0
  487. package/cura/buttons/public-api.ts +1 -0
  488. package/cura/cards/cura-card/cura-card.component.html +11 -0
  489. package/cura/cards/cura-card/cura-card.component.scss +167 -0
  490. package/cura/cards/cura-card/cura-card.component.ts +89 -0
  491. package/cura/cards/cura-card/cura-cards.definitions.ts +5 -0
  492. package/cura/cards/cura-card/index.ts +1 -0
  493. package/cura/cards/cura-card/ng-package.json +6 -0
  494. package/cura/cards/cura-card/public-api.ts +1 -0
  495. package/cura/feedback/cura-alert/cura-alert.component.html +21 -0
  496. package/cura/feedback/cura-alert/cura-alert.component.scss +32 -0
  497. package/cura/feedback/cura-alert/cura-alert.component.ts +94 -0
  498. package/cura/feedback/cura-alert/cura-alert.definitions.ts +15 -0
  499. package/cura/feedback/cura-alert/index.ts +1 -0
  500. package/cura/feedback/cura-alert/ng-package.json +6 -0
  501. package/cura/feedback/cura-alert/public-api.ts +2 -0
  502. package/cura/feedback/cura-modal/cura-modal.component.html +20 -0
  503. package/cura/feedback/cura-modal/cura-modal.component.scss +149 -0
  504. package/cura/feedback/cura-modal/cura-modal.component.ts +112 -0
  505. package/cura/feedback/cura-modal/cura-modal.definitions.ts +36 -0
  506. package/cura/feedback/cura-modal/index.ts +1 -0
  507. package/cura/feedback/cura-modal/ng-package.json +6 -0
  508. package/cura/feedback/cura-modal/public-api.ts +2 -0
  509. package/cura/feedback/cura-toast/cura-toast.component.html +23 -0
  510. package/cura/feedback/cura-toast/cura-toast.component.scss +96 -0
  511. package/cura/feedback/cura-toast/cura-toast.component.ts +213 -0
  512. package/cura/feedback/cura-toast/cura-toast.definitions.ts +22 -0
  513. package/cura/feedback/cura-toast/index.ts +1 -0
  514. package/cura/feedback/cura-toast/ng-package.json +6 -0
  515. package/cura/feedback/cura-toast/public-api.ts +2 -0
  516. package/cura/forms/cura-checkbox/cura-checkbox.component.html +35 -0
  517. package/cura/forms/cura-checkbox/cura-checkbox.component.scss +219 -0
  518. package/cura/forms/cura-checkbox/cura-checkbox.component.ts +284 -0
  519. package/cura/forms/cura-checkbox/cura-checkbox.definitions.ts +44 -0
  520. package/cura/forms/cura-checkbox/index.ts +1 -0
  521. package/cura/forms/cura-checkbox/ng-package.json +6 -0
  522. package/cura/forms/cura-checkbox/public-api.ts +2 -0
  523. package/cura/forms/cura-forms.definitions.ts +18 -0
  524. package/cura/forms/cura-input-text/cura-input-text.component.html +65 -0
  525. package/cura/forms/cura-input-text/cura-input-text.component.scss +165 -0
  526. package/cura/forms/cura-input-text/cura-input-text.component.ts +621 -0
  527. package/cura/forms/cura-input-text/cura-input-text.definitions.ts +104 -0
  528. package/cura/forms/cura-input-text/index.ts +1 -0
  529. package/cura/forms/cura-input-text/ng-package.json +6 -0
  530. package/cura/forms/cura-input-text/public-api.ts +2 -0
  531. package/cura/forms/cura-label/cura-label.component.html +3 -0
  532. package/cura/forms/cura-label/cura-label.component.scss +68 -0
  533. package/cura/forms/cura-label/cura-label.component.ts +93 -0
  534. package/cura/forms/cura-label/index.ts +1 -0
  535. package/cura/forms/cura-label/ng-package.json +6 -0
  536. package/cura/forms/cura-label/public-api.ts +1 -0
  537. package/cura/forms/cura-radio/cura-radio.component.html +28 -0
  538. package/cura/forms/cura-radio/cura-radio.component.scss +232 -0
  539. package/cura/forms/cura-radio/cura-radio.component.ts +261 -0
  540. package/cura/forms/cura-radio/cura-radio.definitions.ts +46 -0
  541. package/cura/forms/cura-radio/index.ts +1 -0
  542. package/cura/forms/cura-radio/ng-package.json +6 -0
  543. package/cura/forms/cura-radio/public-api.ts +2 -0
  544. package/cura/forms/cura-select/cura-select.component.html +88 -0
  545. package/cura/forms/cura-select/cura-select.component.scss +112 -0
  546. package/cura/forms/cura-select/cura-select.component.ts +459 -0
  547. package/cura/forms/cura-select/cura-select.definitions.ts +34 -0
  548. package/cura/forms/cura-select/index.ts +1 -0
  549. package/cura/forms/cura-select/ng-package.json +6 -0
  550. package/cura/forms/cura-select/public-api.ts +2 -0
  551. package/cura/forms/cura-select-option/cura-select-option.component.html +9 -0
  552. package/cura/forms/cura-select-option/cura-select-option.component.scss +33 -0
  553. package/cura/forms/cura-select-option/cura-select-option.component.ts +93 -0
  554. package/cura/forms/cura-select-option/cura-select-option.definitions.ts +12 -0
  555. package/cura/forms/cura-select-option/index.ts +1 -0
  556. package/cura/forms/cura-select-option/ng-package.json +6 -0
  557. package/cura/forms/cura-select-option/public-api.ts +2 -0
  558. package/cura/forms/cura-select-state/cura-select-state.component.html +14 -0
  559. package/cura/forms/cura-select-state/cura-select-state.component.ts +125 -0
  560. package/cura/forms/cura-select-state/cura-select-state.definitions.ts +19 -0
  561. package/cura/forms/cura-select-state/index.ts +1 -0
  562. package/cura/forms/cura-select-state/ng-package.json +6 -0
  563. package/cura/forms/cura-select-state/public-api.ts +2 -0
  564. package/cura/forms/cura-switch/cura-switch.component.html +25 -0
  565. package/cura/forms/cura-switch/cura-switch.component.scss +134 -0
  566. package/cura/forms/cura-switch/cura-switch.component.ts +196 -0
  567. package/cura/forms/cura-switch/cura-switch.definitions.ts +35 -0
  568. package/cura/forms/cura-switch/index.ts +1 -0
  569. package/cura/forms/cura-switch/ng-package.json +6 -0
  570. package/cura/forms/cura-switch/public-api.ts +2 -0
  571. package/cura/forms/cura-textarea/cura-textarea.component.html +44 -0
  572. package/cura/forms/cura-textarea/cura-textarea.component.scss +173 -0
  573. package/cura/forms/cura-textarea/cura-textarea.component.ts +226 -0
  574. package/cura/forms/cura-textarea/cura-textarea.definitions.ts +24 -0
  575. package/cura/forms/cura-textarea/index.ts +1 -0
  576. package/cura/forms/cura-textarea/ng-package.json +6 -0
  577. package/cura/forms/cura-textarea/public-api.ts +2 -0
  578. package/cura/forms/index.ts +1 -0
  579. package/cura/forms/ng-package.json +6 -0
  580. package/cura/forms/public-api.ts +1 -0
  581. package/cura/icons/cura-icon/cura-icon.component.html +3 -0
  582. package/cura/icons/cura-icon/cura-icon.component.scss +14 -0
  583. package/cura/icons/cura-icon/cura-icon.component.spec.ts +89 -0
  584. package/cura/icons/cura-icon/cura-icon.component.ts +79 -0
  585. package/cura/icons/cura-icon/cura-icon.definitions.ts +20 -0
  586. package/cura/icons/cura-icon/index.ts +1 -0
  587. package/cura/icons/cura-icon/ng-package.json +6 -0
  588. package/cura/icons/cura-icon/public-api.ts +2 -0
  589. package/cura/loaders/cura-loader-bar/cura-loader-bar.component.html +3 -0
  590. package/cura/loaders/cura-loader-bar/cura-loader-bar.component.scss +23 -0
  591. package/cura/loaders/cura-loader-bar/cura-loader-bar.component.ts +37 -0
  592. package/cura/loaders/cura-loader-bar/index.ts +1 -0
  593. package/cura/loaders/cura-loader-bar/ng-package.json +6 -0
  594. package/cura/loaders/cura-loader-bar/public-api.ts +1 -0
  595. package/cura/loaders/cura-loader-circle/cura-loader-circle.component.html +12 -0
  596. package/cura/loaders/cura-loader-circle/cura-loader-circle.component.scss +39 -0
  597. package/cura/loaders/cura-loader-circle/cura-loader-circle.component.ts +45 -0
  598. package/cura/loaders/cura-loader-circle/index.ts +1 -0
  599. package/cura/loaders/cura-loader-circle/ng-package.json +6 -0
  600. package/cura/loaders/cura-loader-circle/public-api.ts +1 -0
  601. package/cura/scss/mixins/buttons.scss +244 -0
  602. package/cura/scss/mixins/forms.scss +298 -0
  603. package/cura/scss/mixins/responsive.scss +69 -0
  604. package/cura/scss/mixins/shadows.scss +71 -0
  605. package/cura/scss/mixins/spacing.scss +33 -0
  606. package/cura/scss/mixins/text.scss +11 -0
  607. package/cura/texts/cura-display/cura-display.component.html +41 -0
  608. package/cura/texts/cura-display/cura-display.component.scss +91 -0
  609. package/cura/texts/cura-display/cura-display.component.ts +85 -0
  610. package/cura/texts/cura-display/index.ts +1 -0
  611. package/cura/texts/cura-display/ng-package.json +6 -0
  612. package/cura/texts/cura-display/public-api.ts +1 -0
  613. package/cura/texts/cura-heading/cura-heading.component.html +41 -0
  614. package/cura/texts/cura-heading/cura-heading.component.scss +160 -0
  615. package/cura/texts/cura-heading/cura-heading.component.ts +111 -0
  616. package/cura/texts/cura-heading/index.ts +1 -0
  617. package/cura/texts/cura-heading/ng-package.json +6 -0
  618. package/cura/texts/cura-heading/public-api.ts +1 -0
  619. package/cura/texts/cura-paragraph/cura-paragraph.component.html +3 -0
  620. package/cura/texts/cura-paragraph/cura-paragraph.component.scss +130 -0
  621. package/cura/texts/cura-paragraph/cura-paragraph.component.ts +94 -0
  622. package/cura/texts/cura-paragraph/index.ts +1 -0
  623. package/cura/texts/cura-paragraph/ng-package.json +6 -0
  624. package/cura/texts/cura-paragraph/public-api.ts +1 -0
  625. package/cura/texts/cura-texts.definitions.ts +9 -0
  626. package/cura/texts/index.ts +1 -0
  627. package/cura/texts/ng-package.json +6 -0
  628. package/cura/texts/public-api.ts +1 -0
  629. package/enums/EnumError.enum.ts +4 -0
  630. package/enums/EnumThemes.enum.ts +8 -0
  631. package/enums/Estados.enum.ts +29 -0
  632. package/enums/IconCuraDefaultType.enum.ts +119 -0
  633. package/enums/ImageMimeType.enum.ts +5 -0
  634. package/enums/UnidadeCoverageType.enum.ts +5 -0
  635. package/enums/index.ts +1 -0
  636. package/enums/ng-package.json +6 -0
  637. package/enums/public-api.ts +6 -0
  638. package/ng-package.json +8 -0
  639. package/package.json +9 -312
  640. package/services/algolia/algolia.service.spec.ts +16 -0
  641. package/services/algolia/algolia.service.ts +36 -0
  642. package/services/algolia/index.ts +1 -0
  643. package/services/algolia/ng-package.json +6 -0
  644. package/services/algolia/public-api.ts +1 -0
  645. package/services/algolia-search-api/algolia-search-api.service.spec.ts +16 -0
  646. package/services/algolia-search-api/algolia-search-api.service.ts +72 -0
  647. package/services/algolia-search-api/index.ts +1 -0
  648. package/services/algolia-search-api/ng-package.json +6 -0
  649. package/services/algolia-search-api/public-api.ts +1 -0
  650. package/services/ngu-carousel/index.ts +1 -0
  651. package/services/ngu-carousel/ng-package.json +6 -0
  652. package/services/ngu-carousel/ngu-carousel.service.spec.ts +16 -0
  653. package/services/ngu-carousel/ngu-carousel.service.ts +80 -0
  654. package/services/ngu-carousel/public-api.ts +1 -0
  655. package/services/ssr-loading/index.ts +1 -0
  656. package/services/ssr-loading/ng-package.json +6 -0
  657. package/services/ssr-loading/public-api.ts +1 -0
  658. package/services/ssr-loading/ssr-loading.service.spec.ts +16 -0
  659. package/services/ssr-loading/ssr-loading.service.ts +41 -0
  660. package/services/transfer-state/index.ts +1 -0
  661. package/services/transfer-state/ng-package.json +6 -0
  662. package/services/transfer-state/public-api.ts +1 -0
  663. package/services/transfer-state/transfer-state.service.spec.ts +16 -0
  664. package/services/transfer-state/transfer-state.service.ts +38 -0
  665. package/services/youtube/index.ts +1 -0
  666. package/services/youtube/ng-package.json +6 -0
  667. package/services/youtube/public-api.ts +1 -0
  668. package/services/youtube/youtube.service.spec.ts +16 -0
  669. package/services/youtube/youtube.service.ts +28 -0
  670. package/shared/directives/rdsite-click-outside/rdsite-click-outside.directive.spec.ts +8 -0
  671. package/shared/directives/rdsite-click-outside/rdsite-click-outside.directive.ts +18 -0
  672. package/shared/helpers/clean-text.func.ts +15 -0
  673. package/shared/helpers/mediaQueries.ts +11 -0
  674. package/shared/helpers/removeDuplicateObjectsFromArray.func.ts +5 -0
  675. package/shared/helpers/removeDuplicateValuesFromArray.func.ts +5 -0
  676. package/shared/helpers/stringToSlug.func.ts +32 -0
  677. package/shared/index.ts +1 -0
  678. package/shared/ng-package.json +6 -0
  679. package/shared/pipes/phone/phone.pipe.spec.ts +8 -0
  680. package/shared/pipes/phone/phone.pipe.ts +11 -0
  681. package/shared/public-api.ts +9 -0
  682. package/src/public-api.ts +5 -0
  683. package/styles/_mixins.scss +49 -0
  684. package/styles/_utilities.scss +22 -0
  685. package/tsconfig.lib.json +13 -0
  686. package/tsconfig.lib.prod.json +10 -0
  687. package/tsconfig.spec.json +14 -0
  688. package/components/algolia-dropdown/index.d.ts +0 -38
  689. package/components/algolia-search/index.d.ts +0 -304
  690. package/components/banner/index.d.ts +0 -20
  691. package/components/breadcrumbs/index.d.ts +0 -42
  692. package/components/cards/index.d.ts +0 -102
  693. package/components/carousels/index.d.ts +0 -28
  694. package/components/cta-wrapper/index.d.ts +0 -33
  695. package/components/error/index.d.ts +0 -47
  696. package/components/filter-letter-and-terms/index.d.ts +0 -38
  697. package/components/filters/filter-generic/index.d.ts +0 -70
  698. package/components/filters/filter-planos-convenios/index.d.ts +0 -41
  699. package/components/footer/index.d.ts +0 -44
  700. package/components/header/components/action/index.d.ts +0 -17
  701. package/components/header/components/auxiliar/index.d.ts +0 -31
  702. package/components/header/components/main/index.d.ts +0 -72
  703. package/components/header/components/side/index.d.ts +0 -35
  704. package/components/header/index.d.ts +0 -63
  705. package/components/header/services/index.d.ts +0 -14
  706. package/components/image/index.d.ts +0 -23
  707. package/components/load-screen/index.d.ts +0 -14
  708. package/components/modal/index.d.ts +0 -28
  709. package/components/modal-drawer/index.d.ts +0 -46
  710. package/components/overlay/index.d.ts +0 -10
  711. package/components/page-header/index.d.ts +0 -30
  712. package/components/page-template-fullcontent/index.d.ts +0 -17
  713. package/components/page-template-sidebar/index.d.ts +0 -20
  714. package/components/pagination/index.d.ts +0 -30
  715. package/components/search/index.d.ts +0 -45
  716. package/components/section-navigation/index.d.ts +0 -45
  717. package/components/side-ctas/index.d.ts +0 -70
  718. package/components/sidebar-navigation/index.d.ts +0 -40
  719. package/components/sticky-navigation/index.d.ts +0 -42
  720. package/components/whatsapp/index.d.ts +0 -27
  721. package/core/index.d.ts +0 -2049
  722. package/cura/accordion/index.d.ts +0 -120
  723. package/cura/api/index.d.ts +0 -359
  724. package/cura/badges/cura-badge-counter/index.d.ts +0 -38
  725. package/cura/badges/cura-badge-distance/index.d.ts +0 -21
  726. package/cura/badges/cura-badge-dot/index.d.ts +0 -29
  727. package/cura/badges/cura-badge-pill/index.d.ts +0 -42
  728. package/cura/badges/index.d.ts +0 -5
  729. package/cura/buttons/cura-button/index.d.ts +0 -90
  730. package/cura/buttons/cura-button-outline/index.d.ts +0 -90
  731. package/cura/buttons/cura-button-select/index.d.ts +0 -39
  732. package/cura/buttons/cura-button-transparent/index.d.ts +0 -87
  733. package/cura/buttons/index.d.ts +0 -15
  734. package/cura/cards/cura-card/index.d.ts +0 -49
  735. package/cura/feedback/cura-alert/index.d.ts +0 -55
  736. package/cura/feedback/cura-modal/index.d.ts +0 -97
  737. package/cura/feedback/cura-toast/index.d.ts +0 -104
  738. package/cura/forms/cura-checkbox/index.d.ts +0 -157
  739. package/cura/forms/cura-input-text/index.d.ts +0 -236
  740. package/cura/forms/cura-label/index.d.ts +0 -47
  741. package/cura/forms/cura-radio/index.d.ts +0 -148
  742. package/cura/forms/cura-select/index.d.ts +0 -155
  743. package/cura/forms/cura-select-option/index.d.ts +0 -54
  744. package/cura/forms/cura-select-state/index.d.ts +0 -72
  745. package/cura/forms/cura-switch/index.d.ts +0 -113
  746. package/cura/forms/cura-textarea/index.d.ts +0 -113
  747. package/cura/forms/index.d.ts +0 -20
  748. package/cura/icons/cura-icon/index.d.ts +0 -46
  749. package/cura/loaders/cura-loader-bar/index.d.ts +0 -22
  750. package/cura/loaders/cura-loader-circle/index.d.ts +0 -24
  751. package/cura/texts/cura-display/index.d.ts +0 -54
  752. package/cura/texts/cura-heading/index.d.ts +0 -65
  753. package/cura/texts/cura-paragraph/index.d.ts +0 -54
  754. package/cura/texts/index.d.ts +0 -7
  755. package/enums/index.d.ts +0 -177
  756. package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs +0 -108
  757. package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs.map +0 -1
  758. package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +0 -604
  759. package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +0 -1
  760. package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +0 -44
  761. package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +0 -1
  762. package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +0 -120
  763. package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +0 -1
  764. package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +0 -178
  765. package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +0 -1
  766. package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +0 -75
  767. package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +0 -1
  768. package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +0 -78
  769. package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +0 -1
  770. package/fesm2022/rededor-site-front-end-lib-components-error.mjs +0 -176
  771. package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +0 -1
  772. package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +0 -93
  773. package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +0 -1
  774. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +0 -245
  775. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +0 -1
  776. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +0 -139
  777. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +0 -1
  778. package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +0 -199
  779. package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +0 -1
  780. package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +0 -34
  781. package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +0 -1
  782. package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +0 -62
  783. package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +0 -1
  784. package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +0 -167
  785. package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +0 -1
  786. package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +0 -71
  787. package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +0 -1
  788. package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs +0 -50
  789. package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs.map +0 -1
  790. package/fesm2022/rededor-site-front-end-lib-components-header.mjs +0 -416
  791. package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +0 -1
  792. package/fesm2022/rededor-site-front-end-lib-components-image.mjs +0 -48
  793. package/fesm2022/rededor-site-front-end-lib-components-image.mjs.map +0 -1
  794. package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +0 -30
  795. package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +0 -1
  796. package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +0 -145
  797. package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +0 -1
  798. package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +0 -82
  799. package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +0 -1
  800. package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs +0 -24
  801. package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs.map +0 -1
  802. package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +0 -52
  803. package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +0 -1
  804. package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs +0 -27
  805. package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs.map +0 -1
  806. package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs +0 -30
  807. package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs.map +0 -1
  808. package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +0 -55
  809. package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +0 -1
  810. package/fesm2022/rededor-site-front-end-lib-components-search.mjs +0 -119
  811. package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +0 -1
  812. package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +0 -141
  813. package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +0 -1
  814. package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +0 -118
  815. package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +0 -1
  816. package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs +0 -109
  817. package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs.map +0 -1
  818. package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs +0 -120
  819. package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs.map +0 -1
  820. package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +0 -49
  821. package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +0 -1
  822. package/fesm2022/rededor-site-front-end-lib-core.mjs +0 -1812
  823. package/fesm2022/rededor-site-front-end-lib-core.mjs.map +0 -1
  824. package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +0 -252
  825. package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +0 -1
  826. package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +0 -643
  827. package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +0 -1
  828. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +0 -90
  829. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +0 -1
  830. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +0 -55
  831. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +0 -1
  832. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +0 -66
  833. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +0 -1
  834. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +0 -91
  835. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +0 -1
  836. package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs +0 -4
  837. package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs.map +0 -1
  838. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +0 -170
  839. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +0 -1
  840. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +0 -135
  841. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +0 -1
  842. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +0 -161
  843. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +0 -1
  844. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +0 -170
  845. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +0 -1
  846. package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs +0 -13
  847. package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs.map +0 -1
  848. package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +0 -72
  849. package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +0 -1
  850. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +0 -90
  851. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +0 -1
  852. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +0 -105
  853. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +0 -1
  854. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs +0 -198
  855. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs.map +0 -1
  856. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +0 -258
  857. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +0 -1
  858. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +0 -587
  859. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +0 -1
  860. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +0 -82
  861. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +0 -1
  862. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +0 -243
  863. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +0 -1
  864. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +0 -89
  865. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +0 -1
  866. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs +0 -123
  867. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs.map +0 -1
  868. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +0 -389
  869. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +0 -1
  870. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +0 -182
  871. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +0 -1
  872. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs +0 -209
  873. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs.map +0 -1
  874. package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs +0 -21
  875. package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs.map +0 -1
  876. package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +0 -88
  877. package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +0 -1
  878. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +0 -44
  879. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +0 -1
  880. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +0 -49
  881. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +0 -1
  882. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +0 -84
  883. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +0 -1
  884. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +0 -104
  885. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +0 -1
  886. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +0 -89
  887. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +0 -1
  888. package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs +0 -4
  889. package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs.map +0 -1
  890. package/fesm2022/rededor-site-front-end-lib-enums.mjs +0 -188
  891. package/fesm2022/rededor-site-front-end-lib-enums.mjs.map +0 -1
  892. package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs +0 -74
  893. package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs.map +0 -1
  894. package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs +0 -41
  895. package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs.map +0 -1
  896. package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs +0 -88
  897. package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs.map +0 -1
  898. package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs +0 -52
  899. package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs.map +0 -1
  900. package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs +0 -49
  901. package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs.map +0 -1
  902. package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs +0 -40
  903. package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs.map +0 -1
  904. package/fesm2022/rededor-site-front-end-lib-shared.mjs +0 -110
  905. package/fesm2022/rededor-site-front-end-lib-shared.mjs.map +0 -1
  906. package/fesm2022/rededor-site-front-end-lib.mjs +0 -11
  907. package/fesm2022/rededor-site-front-end-lib.mjs.map +0 -1
  908. package/index.d.ts +0 -3
  909. package/services/algolia/index.d.ts +0 -18
  910. package/services/algolia-search-api/index.d.ts +0 -17
  911. package/services/ngu-carousel/index.d.ts +0 -16
  912. package/services/ssr-loading/index.d.ts +0 -14
  913. package/services/transfer-state/index.d.ts +0 -13
  914. package/services/youtube/index.d.ts +0 -13
  915. package/shared/index.d.ts +0 -40
@@ -1,161 +0,0 @@
1
- import * as i1 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
- import * as i0 from '@angular/core';
4
- import { inject, input, output, computed, HostListener, Component } from '@angular/core';
5
- import { labelSizes } from '@rededor/site-front-end-lib/cura/buttons';
6
- import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
7
- import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
8
- import { CuraLoaderCircleComponent } from '@rededor/site-front-end-lib/cura/loaders/cura-loader-circle';
9
- import { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';
10
-
11
- class CuraButtonTransparentComponent {
12
- constructor() {
13
- this.curaApi = inject(CuraApiService);
14
- /**
15
- * Button type: button (default) | submit | reset
16
- */
17
- this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : []));
18
- /**
19
- * Button size: small | medium | large (default)
20
- */
21
- this.size = input('large', ...(ngDevMode ? [{ debugName: "size" }] : []));
22
- /**
23
- * Disabled state. Boolean.
24
- */
25
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
26
- /**
27
- * Loading state. Boolean.
28
- */
29
- this.isLoading = input(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
30
- /**
31
- * Name of the icon to be used from iconset.
32
- */
33
- this.iconName = input('', ...(ngDevMode ? [{ debugName: "iconName" }] : []));
34
- /**
35
- * Custom iconset if needed.
36
- */
37
- this.iconset = input('default', ...(ngDevMode ? [{ debugName: "iconset" }] : []));
38
- /**
39
- * Icon position: left (default) | right.
40
- */
41
- this.iconPosition = input('left', ...(ngDevMode ? [{ debugName: "iconPosition" }] : []));
42
- /**
43
- * Set button to FAB/icon only.
44
- */
45
- this.iconOnly = input(false, ...(ngDevMode ? [{ debugName: "iconOnly" }] : []));
46
- /**
47
- * Property href switch button to link.
48
- */
49
- this.href = input('', ...(ngDevMode ? [{ debugName: "href" }] : []));
50
- /**
51
- * Set target if link.
52
- */
53
- this.target = input('_self', ...(ngDevMode ? [{ debugName: "target" }] : []));
54
- /**
55
- * Color base from color scheme. Default: primary.
56
- */
57
- this.color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : []));
58
- /**
59
- * Set the font color to dark or light.
60
- * Default: dark.
61
- */
62
- this.fontColor = input('dark', ...(ngDevMode ? [{ debugName: "fontColor" }] : []));
63
- /**
64
- * Set text alignment for the button label.
65
- * Values: left (default) | center | right.
66
- */
67
- this.textAlign = input('left', ...(ngDevMode ? [{ debugName: "textAlign" }] : []));
68
- /**
69
- * Justify icons and label inside the button.
70
- * Values: false (default) | true.
71
- */
72
- this.justify = input(false, ...(ngDevMode ? [{ debugName: "justify" }] : []));
73
- /**
74
- * Accessible name for the button (aria-label).
75
- * Required for icon-only buttons or when button text is not descriptive enough.
76
- */
77
- this.ariaLabel = input('', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
78
- this.buttonClick = output();
79
- this.hovered = false;
80
- // Computed signal
81
- this.buttonStyles = computed(() => {
82
- const styles = {};
83
- styles['--base-spacing'] = this.curaApi.theme.spacing.getSpacing();
84
- styles['--neutral-white'] = this.curaApi.theme.colors.getColor('neutral-white');
85
- styles['--neutral-base'] = this.curaApi.theme.colors.getColor('neutral-base');
86
- styles['--neutral-dark'] = this.curaApi.theme.colors.getColor('neutral-dark');
87
- styles['--font-size'] = this.curaApi.theme.fonts.getSize();
88
- styles['--font-family'] = this.curaApi.theme.fonts.getFamily();
89
- const weights = this.curaApi.theme.fonts.getWeights();
90
- styles['--font-weight-medium'] = weights.medium;
91
- styles['--text-align'] = this.textAlign();
92
- return styles;
93
- }, ...(ngDevMode ? [{ debugName: "buttonStyles" }] : []));
94
- this.containerClasses = computed(() => {
95
- const classes = [];
96
- classes.push(this.size()?.toLowerCase());
97
- classes.push(`icon-${this.iconPosition()?.toLowerCase()}`);
98
- if (this.iconOnly())
99
- classes.push('icon-only');
100
- if (this.disabled())
101
- classes.push('disabled');
102
- if (this.isLoading())
103
- classes.push('isLoading');
104
- if (this.justify())
105
- classes.push('justify');
106
- return classes.join(' ');
107
- }, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
108
- this.iconSize = computed(() => {
109
- return this.size() === 'large' ? '20' : '16';
110
- }, ...(ngDevMode ? [{ debugName: "iconSize" }] : []));
111
- this.symbolColor = computed(() => {
112
- if (this.disabled())
113
- return 'neutral-dark';
114
- if (this.hovered && !this.isLoading()) {
115
- return this.fontColor() === 'light' ? `${this.color()}-light` : `${this.color()}-darker`;
116
- }
117
- return this.fontColor() === 'light' ? 'neutral-white' : `${this.color()}-dark`;
118
- }, ...(ngDevMode ? [{ debugName: "symbolColor" }] : []));
119
- this.labelSize = computed(() => {
120
- return (labelSizes[this.size()] || labelSizes['default']);
121
- }, ...(ngDevMode ? [{ debugName: "labelSize" }] : []));
122
- }
123
- handleMouseEnter() {
124
- if (this.disabled())
125
- return;
126
- this.hovered = true;
127
- }
128
- handleMouseLeave() {
129
- this.hovered = false;
130
- }
131
- handleClick(event) {
132
- if (this.disabled() || this.isLoading()) {
133
- event.preventDefault();
134
- return;
135
- }
136
- this.buttonClick.emit(event);
137
- }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraButtonTransparentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
139
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraButtonTransparentComponent, isStandalone: true, selector: "cura-button-transparent", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, iconset: { classPropertyName: "iconset", publicName: "iconset", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, fontColor: { classPropertyName: "fontColor", publicName: "fontColor", isSignal: true, isRequired: false, transformFunction: null }, textAlign: { classPropertyName: "textAlign", publicName: "textAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()" }, properties: { "attr.role": "href() ? \"link\" : type()", "attr.aria-disabled": "disabled()", "attr.href": "href()" } }, ngImport: i0, template: "<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n", styles: [":host{--border-radius: 4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none!important;font-size:var(--font-size);cursor:pointer;transition:background-color .07s linear,box-shadow .07s linear,border-color .07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;border:none}:host button:focus,:host a:focus{outline:2px solid #6ea8ff}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity .2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0!important;margin-right:0!important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraLoaderCircleComponent, selector: "cura-loader-circle", inputs: ["size", "color"] }, { kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
140
- }
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraButtonTransparentComponent, decorators: [{
142
- type: Component,
143
- args: [{ selector: 'cura-button-transparent', imports: [CommonModule, CuraIconComponent, CuraLoaderCircleComponent, CuraLabelComponent], host: {
144
- '[attr.role]': 'href() ? "link" : type()',
145
- '[attr.aria-disabled]': 'disabled()',
146
- '[attr.href]': 'href()',
147
- }, template: "<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n", styles: [":host{--border-radius: 4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none!important;font-size:var(--font-size);cursor:pointer;transition:background-color .07s linear,box-shadow .07s linear,border-color .07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;border:none}:host button:focus,:host a:focus{outline:2px solid #6ea8ff}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity .2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0!important;margin-right:0!important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}\n"] }]
148
- }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], iconName: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconName", required: false }] }], iconset: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconset", required: false }] }], iconPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPosition", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], fontColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontColor", required: false }] }], textAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "textAlign", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], handleMouseEnter: [{
149
- type: HostListener,
150
- args: ['mouseenter']
151
- }], handleMouseLeave: [{
152
- type: HostListener,
153
- args: ['mouseleave']
154
- }] } });
155
-
156
- /**
157
- * Generated bundle index. Do not edit.
158
- */
159
-
160
- export { CuraButtonTransparentComponent };
161
- //# sourceMappingURL=rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs","sources":["../../../projects/site-front-end-lib/cura/buttons/cura-button-transparent/cura-button-transparent.component.ts","../../../projects/site-front-end-lib/cura/buttons/cura-button-transparent/cura-button-transparent.component.html","../../../projects/site-front-end-lib/cura/buttons/cura-button-transparent/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, input, output, HostListener, computed, inject } from '@angular/core';\nimport { labelSizes, ButtonType, ButtonSize, IconPosition, FontColor, TextAlign } from '@rededor/site-front-end-lib/cura/buttons';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\nimport { CuraLoaderCircleComponent } from '@rededor/site-front-end-lib/cura/loaders/cura-loader-circle';\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\nimport { LabelSize } from '@rededor/site-front-end-lib/cura/forms';\n\n@Component({\n selector: 'cura-button-transparent',\n imports: [CommonModule, CuraIconComponent, CuraLoaderCircleComponent, CuraLabelComponent],\n templateUrl: './cura-button-transparent.component.html',\n styleUrls: ['./cura-button-transparent.component.scss'],\n host: {\n '[attr.role]': 'href() ? \"link\" : type()',\n '[attr.aria-disabled]': 'disabled()',\n '[attr.href]': 'href()',\n },\n})\nexport class CuraButtonTransparentComponent {\n private curaApi: CuraApiService = inject(CuraApiService);\n\n /**\n * Button type: button (default) | submit | reset\n */\n type = input<ButtonType>('button');\n\n /**\n * Button size: small | medium | large (default)\n */\n size = input<ButtonSize>('large');\n\n /**\n * Disabled state. Boolean.\n */\n disabled = input<boolean>(false);\n\n /**\n * Loading state. Boolean.\n */\n isLoading = input<boolean>(false);\n\n /**\n * Name of the icon to be used from iconset.\n */\n iconName = input<string>('');\n\n /**\n * Custom iconset if needed.\n */\n iconset = input<string>('default');\n\n /**\n * Icon position: left (default) | right.\n */\n iconPosition = input<IconPosition>('left');\n\n /**\n * Set button to FAB/icon only.\n */\n iconOnly = input<boolean>(false);\n\n /**\n * Property href switch button to link.\n */\n href = input<string>('');\n\n /**\n * Set target if link.\n */\n target = input<string>('_self');\n\n /**\n * Color base from color scheme. Default: primary.\n */\n color = input<string>('primary');\n\n /**\n * Set the font color to dark or light.\n * Default: dark.\n */\n fontColor = input<FontColor>('dark');\n\n /**\n * Set text alignment for the button label.\n * Values: left (default) | center | right.\n */\n textAlign = input<TextAlign>('left');\n\n /**\n * Justify icons and label inside the button.\n * Values: false (default) | true.\n */\n justify = input<boolean>(false);\n\n /**\n * Accessible name for the button (aria-label).\n * Required for icon-only buttons or when button text is not descriptive enough.\n */\n ariaLabel = input<string>('');\n\n buttonClick = output<Event>();\n\n hovered = false;\n\n // Computed signal\n buttonStyles = computed(() => {\n const styles: { [key: string]: string } = {};\n\n styles['--base-spacing'] = this.curaApi.theme.spacing.getSpacing();\n styles['--neutral-white'] = this.curaApi.theme.colors.getColor('neutral-white');\n styles['--neutral-base'] = this.curaApi.theme.colors.getColor('neutral-base');\n styles['--neutral-dark'] = this.curaApi.theme.colors.getColor('neutral-dark');\n styles['--font-size'] = this.curaApi.theme.fonts.getSize();\n styles['--font-family'] = this.curaApi.theme.fonts.getFamily();\n const weights = this.curaApi.theme.fonts.getWeights();\n styles['--font-weight-medium'] = weights.medium;\n styles['--text-align'] = this.textAlign();\n\n return styles;\n });\n\n containerClasses = computed(() => {\n const classes = [];\n classes.push(this.size()?.toLowerCase());\n classes.push(`icon-${this.iconPosition()?.toLowerCase()}`);\n\n if (this.iconOnly()) classes.push('icon-only');\n if (this.disabled()) classes.push('disabled');\n if (this.isLoading()) classes.push('isLoading');\n if (this.justify()) classes.push('justify');\n\n return classes.join(' ');\n });\n\n iconSize = computed(() => {\n return this.size() === 'large' ? '20' : '16';\n });\n\n symbolColor = computed(() => {\n if (this.disabled()) return 'neutral-dark';\n if (this.hovered && !this.isLoading()) {\n return this.fontColor() === 'light' ? `${this.color()}-light` : `${this.color()}-darker`;\n }\n return this.fontColor() === 'light' ? 'neutral-white' : `${this.color()}-dark`;\n });\n\n labelSize = computed(() => {\n return (labelSizes[this.size()] || labelSizes['default']) as LabelSize;\n });\n\n @HostListener('mouseenter')\n handleMouseEnter() {\n if (this.disabled()) return;\n this.hovered = true;\n }\n\n @HostListener('mouseleave')\n handleMouseLeave() {\n this.hovered = false;\n }\n\n handleClick(event: Event) {\n if (this.disabled() || this.isLoading()) {\n event.preventDefault();\n return;\n }\n\n this.buttonClick.emit(event);\n }\n}\n","<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAoBa,8BAA8B,CAAA;AAX3C,IAAA,WAAA,GAAA;AAYU,QAAA,IAAA,CAAA,OAAO,GAAmB,MAAM,CAAC,cAAc,CAAC;AAExD;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,QAAQ,gDAAC;AAElC;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,OAAO,gDAAC;AAEjC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAU,KAAK,qDAAC;AAEjC;;AAEG;AACH,QAAA,IAAA,CAAA,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AACpC,wBAAA,aAAa,EAAE,QAAQ;AACxB,qBAAA,EAAA,QAAA,EAAA,0vDAAA,EAAA,MAAA,EAAA,CAAA,m1FAAA,CAAA,EAAA;;sBAsIA,YAAY;uBAAC,YAAY;;sBAMzB,YAAY;uBAAC,YAAY;;;AE9J5B;;AAEG;;;;"}
@@ -1,170 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, input, output, computed, HostListener, Component } from '@angular/core';
3
- import { labelSizes } from '@rededor/site-front-end-lib/cura/buttons';
4
- import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
5
- import * as i1 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
8
- import { CuraLoaderCircleComponent } from '@rededor/site-front-end-lib/cura/loaders/cura-loader-circle';
9
- import { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';
10
-
11
- class CuraButtonComponent {
12
- constructor() {
13
- this.curaApi = inject(CuraApiService);
14
- /**
15
- * Button type: button (default) | submit | reset
16
- */
17
- this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : []));
18
- /**
19
- * Button size: small | medium | large (default)
20
- */
21
- this.size = input('large', ...(ngDevMode ? [{ debugName: "size" }] : []));
22
- /**
23
- * Disabled state. Boolean.
24
- */
25
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
26
- /**
27
- * Loading state. Boolean.
28
- */
29
- this.isLoading = input(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
30
- /**
31
- * Name of the icon to be used from iconset.
32
- */
33
- this.iconName = input('', ...(ngDevMode ? [{ debugName: "iconName" }] : []));
34
- /**
35
- * Custom iconset if needed.
36
- */
37
- this.iconset = input('default', ...(ngDevMode ? [{ debugName: "iconset" }] : []));
38
- /**
39
- * Icon position: left (default) | right.
40
- */
41
- this.iconPosition = input('left', ...(ngDevMode ? [{ debugName: "iconPosition" }] : []));
42
- /**
43
- * Set button to FAB/icon only.
44
- */
45
- this.iconOnly = input(false, ...(ngDevMode ? [{ debugName: "iconOnly" }] : []));
46
- /**
47
- * Property href switch button to link.
48
- */
49
- this.href = input('', ...(ngDevMode ? [{ debugName: "href" }] : []));
50
- /**
51
- * Set target if link.
52
- */
53
- this.target = input('_self', ...(ngDevMode ? [{ debugName: "target" }] : []));
54
- /**
55
- * Color base from color scheme. Default: accent.
56
- */
57
- this.color = input('accent', ...(ngDevMode ? [{ debugName: "color" }] : []));
58
- /**
59
- * Set the background color to dark or light.
60
- */
61
- this.background = input('light', ...(ngDevMode ? [{ debugName: "background" }] : []));
62
- /**
63
- * Set the font color to dark or light.
64
- */
65
- this.fontColor = input('dark', ...(ngDevMode ? [{ debugName: "fontColor" }] : []));
66
- /**
67
- * Set text alignment for the button label.
68
- * Values: left (default) | center | right.
69
- */
70
- this.textAlign = input('left', ...(ngDevMode ? [{ debugName: "textAlign" }] : []));
71
- /**
72
- * Justify icons and label inside the button.
73
- * Values: false (default) | true.
74
- */
75
- this.justify = input(false, ...(ngDevMode ? [{ debugName: "justify" }] : []));
76
- /**
77
- * Accessible name for the button (aria-label).
78
- * Required for icon-only buttons or when button text is not descriptive enough.
79
- */
80
- this.ariaLabel = input('', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
81
- this.buttonClick = output();
82
- this.hovered = false;
83
- // Computed signal
84
- this.buttonStyles = computed(() => {
85
- const styles = {};
86
- styles['--base-spacing'] = this.curaApi.theme.spacing.getSpacing();
87
- styles['--font-size'] = this.curaApi.theme.fonts.getSize();
88
- styles['--font-family'] = this.curaApi.theme.fonts.getFamily();
89
- const weights = this.curaApi.theme.fonts.getWeights();
90
- styles['--font-weight-medium'] = weights.medium;
91
- styles['--text-align'] = this.textAlign();
92
- const colorMappings = [
93
- { name: '--color-base-neutral-purewhite', theme: this.background() === 'light' ? `${this.color()}-base` : 'neutral-pale' },
94
- { name: '--color-base-color-light', theme: this.background() === 'light' ? `${this.color()}-base` : `${this.color()}-lighter` },
95
- { name: '--color-dark-color-light', theme: this.background() === 'light' ? `${this.color()}-dark` : `${this.color()}-light` },
96
- { name: '--color-dark-color-base', theme: this.background() === 'light' ? `${this.color()}-dark` : `${this.color()}-base` },
97
- { name: '--neutral-pale-neutral-black', theme: this.background() === 'light' ? 'neutral-pale' : 'neutral-black' },
98
- ];
99
- colorMappings.forEach((mapping) => {
100
- styles[mapping.name] = this.curaApi.theme.colors.getColor(mapping.theme);
101
- });
102
- return styles;
103
- }, ...(ngDevMode ? [{ debugName: "buttonStyles" }] : []));
104
- this.containerClasses = computed(() => {
105
- const classes = [];
106
- classes.push(this.size()?.toLowerCase());
107
- classes.push(`icon-${this.iconPosition()?.toLowerCase()}`);
108
- if (this.iconOnly())
109
- classes.push('icon-only');
110
- if (this.disabled())
111
- classes.push('disabled');
112
- if (this.isLoading())
113
- classes.push('isLoading');
114
- if (this.justify())
115
- classes.push('justify');
116
- return classes.join(' ');
117
- }, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
118
- this.iconSize = computed(() => {
119
- return this.size() === 'large' ? '20' : '16';
120
- }, ...(ngDevMode ? [{ debugName: "iconSize" }] : []));
121
- this.symbolColor = computed(() => {
122
- if (this.isLoading() && this.fontColor() === 'light')
123
- return 'neutral-white';
124
- if (this.isLoading() && this.fontColor() === 'dark')
125
- return 'neutral-black';
126
- return this.disabled() ? 'neutral-dark' : this.fontColor() === 'light' ? 'neutral-white' : 'neutral-black';
127
- }, ...(ngDevMode ? [{ debugName: "symbolColor" }] : []));
128
- this.labelSize = computed(() => {
129
- return (labelSizes[this.size()] || labelSizes['default']);
130
- }, ...(ngDevMode ? [{ debugName: "labelSize" }] : []));
131
- }
132
- handleMouseEnter() {
133
- if (this.disabled())
134
- return;
135
- this.hovered = true;
136
- }
137
- handleMouseLeave() {
138
- this.hovered = false;
139
- }
140
- handleClick(event) {
141
- if (this.disabled() || this.isLoading()) {
142
- event.preventDefault();
143
- return;
144
- }
145
- this.buttonClick.emit(event);
146
- }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
148
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraButtonComponent, isStandalone: true, selector: "cura-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, iconset: { classPropertyName: "iconset", publicName: "iconset", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, background: { classPropertyName: "background", publicName: "background", isSignal: true, isRequired: false, transformFunction: null }, fontColor: { classPropertyName: "fontColor", publicName: "fontColor", isSignal: true, isRequired: false, transformFunction: null }, textAlign: { classPropertyName: "textAlign", publicName: "textAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()" }, properties: { "attr.role": "href() ? \"link\" : type()", "attr.aria-disabled": "disabled()", "attr.href": "href()" } }, ngImport: i0, template: "<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n", styles: [":host{--border-radius: 4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none!important;font-size:var(--font-size);cursor:pointer;transition:background-color .07s linear,box-shadow .07s linear,border-color .07s linear;border-radius:var(--border-radius);position:relative;background-color:var(--color-base-neutral-purewhite);box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6ea8ff}:host button:before,:host a:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:2px solid transparent;border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):before,:host a:not(.disabled):not(.isLoading):before{border:2px solid var(--color-base-color-light)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{background:var(--color-base-color-light);box-shadow:0 4px 8px #26262629}:host button:not(.disabled):not(.isLoading):hover:before,:host a:not(.disabled):not(.isLoading):hover:before{border-color:var(--color-dark-color-base)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark-color-light)}:host button:not(.isLoading):not(.disabled):active:before,:host a:not(.isLoading):not(.disabled):active:before{border-color:var(--color-dark-color-light)}:host button:hover,:host a:hover{box-shadow:0 4px 8px #26262629}:host button.medium:hover,:host a.medium:hover{box-shadow:0 3px 6px #26262629}:host button.small:hover,:host a.small:hover{box-shadow:0 2px 5px #26262629}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{box-shadow:none!important}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity .2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-pale-neutral-black)}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0!important;margin-right:0!important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraLoaderCircleComponent, selector: "cura-loader-circle", inputs: ["size", "color"] }, { kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
149
- }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraButtonComponent, decorators: [{
151
- type: Component,
152
- args: [{ selector: 'cura-button', imports: [CommonModule, CuraIconComponent, CuraLoaderCircleComponent, CuraLabelComponent], host: {
153
- '[attr.role]': 'href() ? "link" : type()',
154
- '[attr.aria-disabled]': 'disabled()',
155
- '[attr.href]': 'href()',
156
- }, template: "<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n", styles: [":host{--border-radius: 4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none!important;font-size:var(--font-size);cursor:pointer;transition:background-color .07s linear,box-shadow .07s linear,border-color .07s linear;border-radius:var(--border-radius);position:relative;background-color:var(--color-base-neutral-purewhite);box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6ea8ff}:host button:before,:host a:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:2px solid transparent;border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):before,:host a:not(.disabled):not(.isLoading):before{border:2px solid var(--color-base-color-light)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{background:var(--color-base-color-light);box-shadow:0 4px 8px #26262629}:host button:not(.disabled):not(.isLoading):hover:before,:host a:not(.disabled):not(.isLoading):hover:before{border-color:var(--color-dark-color-base)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark-color-light)}:host button:not(.isLoading):not(.disabled):active:before,:host a:not(.isLoading):not(.disabled):active:before{border-color:var(--color-dark-color-light)}:host button:hover,:host a:hover{box-shadow:0 4px 8px #26262629}:host button.medium:hover,:host a.medium:hover{box-shadow:0 3px 6px #26262629}:host button.small:hover,:host a.small:hover{box-shadow:0 2px 5px #26262629}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{box-shadow:none!important}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity .2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-pale-neutral-black)}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0!important;margin-right:0!important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}\n"] }]
157
- }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], iconName: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconName", required: false }] }], iconset: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconset", required: false }] }], iconPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPosition", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], background: [{ type: i0.Input, args: [{ isSignal: true, alias: "background", required: false }] }], fontColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontColor", required: false }] }], textAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "textAlign", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], handleMouseEnter: [{
158
- type: HostListener,
159
- args: ['mouseenter']
160
- }], handleMouseLeave: [{
161
- type: HostListener,
162
- args: ['mouseleave']
163
- }] } });
164
-
165
- /**
166
- * Generated bundle index. Do not edit.
167
- */
168
-
169
- export { CuraButtonComponent };
170
- //# sourceMappingURL=rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-cura-buttons-cura-button.mjs","sources":["../../../projects/site-front-end-lib/cura/buttons/cura-button/cura-button.component.ts","../../../projects/site-front-end-lib/cura/buttons/cura-button/cura-button.component.html","../../../projects/site-front-end-lib/cura/buttons/cura-button/rededor-site-front-end-lib-cura-buttons-cura-button.ts"],"sourcesContent":["import { Component, HostListener, input, output, inject, computed } from '@angular/core';\nimport { labelSizes, ButtonType, ButtonSize, IconPosition, BackgroundType, FontColor, TextAlign } from '@rededor/site-front-end-lib/cura/buttons';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CommonModule } from '@angular/common';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\nimport { CuraLoaderCircleComponent } from '@rededor/site-front-end-lib/cura/loaders/cura-loader-circle';\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\nimport { LabelSize } from '@rededor/site-front-end-lib/cura/forms';\n\n@Component({\n selector: 'cura-button',\n imports: [CommonModule, CuraIconComponent, CuraLoaderCircleComponent, CuraLabelComponent],\n templateUrl: './cura-button.component.html',\n styleUrls: ['./cura-button.component.scss'],\n host: {\n '[attr.role]': 'href() ? \"link\" : type()',\n '[attr.aria-disabled]': 'disabled()',\n '[attr.href]': 'href()',\n },\n})\nexport class CuraButtonComponent {\n private curaApi: CuraApiService = inject(CuraApiService);\n\n /**\n * Button type: button (default) | submit | reset\n */\n type = input<ButtonType>('button');\n\n /**\n * Button size: small | medium | large (default)\n */\n size = input<ButtonSize>('large');\n\n /**\n * Disabled state. Boolean.\n */\n disabled = input<boolean>(false);\n\n /**\n * Loading state. Boolean.\n */\n isLoading = input<boolean>(false);\n\n /**\n * Name of the icon to be used from iconset.\n */\n iconName = input<string>('');\n\n /**\n * Custom iconset if needed.\n */\n iconset = input<string>('default');\n\n /**\n * Icon position: left (default) | right.\n */\n iconPosition = input<IconPosition>('left');\n\n /**\n * Set button to FAB/icon only.\n */\n iconOnly = input<boolean>(false);\n\n /**\n * Property href switch button to link.\n */\n href = input<string>('');\n\n /**\n * Set target if link.\n */\n target = input<string>('_self');\n\n /**\n * Color base from color scheme. Default: accent.\n */\n color = input<string>('accent');\n\n /**\n * Set the background color to dark or light.\n */\n background = input<BackgroundType>('light');\n\n /**\n * Set the font color to dark or light.\n */\n fontColor = input<FontColor>('dark');\n\n /**\n * Set text alignment for the button label.\n * Values: left (default) | center | right.\n */\n textAlign = input<TextAlign>('left');\n\n /**\n * Justify icons and label inside the button.\n * Values: false (default) | true.\n */\n justify = input<boolean>(false);\n\n /**\n * Accessible name for the button (aria-label).\n * Required for icon-only buttons or when button text is not descriptive enough.\n */\n ariaLabel = input<string>('');\n\n buttonClick = output<Event>();\n\n hovered = false;\n\n // Computed signal\n buttonStyles = computed(() => {\n const styles: { [key: string]: string } = {};\n\n styles['--base-spacing'] = this.curaApi.theme.spacing.getSpacing();\n styles['--font-size'] = this.curaApi.theme.fonts.getSize();\n styles['--font-family'] = this.curaApi.theme.fonts.getFamily();\n const weights = this.curaApi.theme.fonts.getWeights();\n styles['--font-weight-medium'] = weights.medium;\n styles['--text-align'] = this.textAlign();\n\n const colorMappings = [\n { name: '--color-base-neutral-purewhite', theme: this.background() === 'light' ? `${this.color()}-base` : 'neutral-pale' },\n { name: '--color-base-color-light', theme: this.background() === 'light' ? `${this.color()}-base` : `${this.color()}-lighter` },\n { name: '--color-dark-color-light', theme: this.background() === 'light' ? `${this.color()}-dark` : `${this.color()}-light` },\n { name: '--color-dark-color-base', theme: this.background() === 'light' ? `${this.color()}-dark` : `${this.color()}-base` },\n { name: '--neutral-pale-neutral-black', theme: this.background() === 'light' ? 'neutral-pale' : 'neutral-black' },\n ];\n\n colorMappings.forEach((mapping) => {\n styles[mapping.name] = this.curaApi.theme.colors.getColor(mapping.theme);\n });\n\n return styles;\n });\n\n containerClasses = computed(() => {\n const classes = [];\n classes.push(this.size()?.toLowerCase());\n classes.push(`icon-${this.iconPosition()?.toLowerCase()}`);\n\n if (this.iconOnly()) classes.push('icon-only');\n if (this.disabled()) classes.push('disabled');\n if (this.isLoading()) classes.push('isLoading');\n if (this.justify()) classes.push('justify');\n\n return classes.join(' ');\n });\n\n iconSize = computed(() => {\n return this.size() === 'large' ? '20' : '16';\n });\n\n symbolColor = computed(() => {\n if (this.isLoading() && this.fontColor() === 'light') return 'neutral-white';\n if (this.isLoading() && this.fontColor() === 'dark') return 'neutral-black';\n\n return this.disabled() ? 'neutral-dark' : this.fontColor() === 'light' ? 'neutral-white' : 'neutral-black';\n });\n\n labelSize = computed(() => {\n return (labelSizes[this.size()] || labelSizes['default']) as LabelSize;\n });\n\n @HostListener('mouseenter')\n handleMouseEnter() {\n if (this.disabled()) return;\n this.hovered = true;\n }\n\n @HostListener('mouseleave')\n handleMouseLeave() {\n this.hovered = false;\n }\n\n handleClick(event: Event) {\n if (this.disabled() || this.isLoading()) {\n event.preventDefault();\n return;\n }\n\n this.buttonClick.emit(event);\n }\n}\n","<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAoBa,mBAAmB,CAAA;AAXhC,IAAA,WAAA,GAAA;AAYU,QAAA,IAAA,CAAA,OAAO,GAAmB,MAAM,CAAC,cAAc,CAAC;AAExD;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,QAAQ,gDAAC;AAElC;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,OAAO,gDAAC;AAEjC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAU,KAAK,qDAAC;AAEjC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,oDAAC;AAE5B;;AAEG;AACH,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAS,SAAS,mDAAC;AAElC;;AAEG;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAe,MAAM,wDAAC;AAE1C;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE,gDAAC;AAExB;;AAEG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,OAAO,kDAAC;AAE/B;;AAEG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAA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AAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,QAAA,EAAA,WAAA,EAAA,OAAA,EAAA,aAAA,EAAA,YAAA,EAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAS7E,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,SAAS;+BACE,aAAa,EAAA,OAAA,EACd,CAAC,YAAY,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,kBAAkB,CAAC,EAAA,IAAA,EAGnF;AACJ,wBAAA,aAAa,EAAE,0BAA0B;AACzC,wBAAA,sBAAsB,EAAE,YAAY;AACpC,wBAAA,aAAa,EAAE,QAAQ;AACxB,qBAAA,EAAA,QAAA,EAAA,0vDAAA,EAAA,MAAA,EAAA,CAAA,irIAAA,CAAA,EAAA;;sBAkJA,YAAY;uBAAC,YAAY;;sBAMzB,YAAY;uBAAC,YAAY;;;AE1K5B;;AAEG;;;;"}
@@ -1,13 +0,0 @@
1
- const labelSizes = {
2
- small: 'xsmall',
3
- medium: 'small',
4
- large: 'medium',
5
- default: 'medium',
6
- };
7
-
8
- /**
9
- * Generated bundle index. Do not edit.
10
- */
11
-
12
- export { labelSizes };
13
- //# sourceMappingURL=rededor-site-front-end-lib-cura-buttons.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-cura-buttons.mjs","sources":["../../../projects/site-front-end-lib/cura/buttons/cura-button.definitions.ts","../../../projects/site-front-end-lib/cura/buttons/rededor-site-front-end-lib-cura-buttons.ts"],"sourcesContent":["export const labelSizes = {\n small: 'xsmall',\n medium: 'small',\n large: 'medium',\n default: 'medium',\n};\n\nexport type ButtonType = 'button' | 'reset' | 'submit';\nexport type ButtonSize = 'small' | 'medium' | 'large';\nexport type IconPosition = 'left' | 'right';\nexport type BackgroundType = 'dark' | 'light';\nexport type FontColor = 'dark' | 'light';\nexport type TextAlign = 'left' | 'center' | 'right';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,UAAU,GAAG;AACxB,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,QAAQ;;;ACJnB;;AAEG;;;;"}
@@ -1,72 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, Component } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
-
5
- class CuraCardComponent {
6
- constructor() {
7
- // private curaApi = inject(CuraApiService);
8
- /**
9
- * Determines whether the card should have padding.
10
- * @default true
11
- */
12
- this.hasPadding = input(true, ...(ngDevMode ? [{ debugName: "hasPadding" }] : []));
13
- /**
14
- * Determines whether the card should have a shadow effect.
15
- * @default false
16
- */
17
- this.hasShadow = input(false, ...(ngDevMode ? [{ debugName: "hasShadow" }] : []));
18
- /**
19
- * Sets the type of the card background.
20
- * - 'solid': A solid background.
21
- * - 'transparent': A transparent background.
22
- * @default 'solid'
23
- */
24
- this.type = input('solid', ...(ngDevMode ? [{ debugName: "type" }] : []));
25
- /**
26
- * Sets the color mode of the card.
27
- * - 'light': Light mode for the card.
28
- * - 'dark': Dark mode for the card.
29
- * @default 'light'
30
- */
31
- this.colorMode = input('light', ...(ngDevMode ? [{ debugName: "colorMode" }] : []));
32
- /**
33
- * The URL that the card should link to (if set).
34
- * If not set, the card acts as a normal card.
35
- */
36
- this.href = input('', ...(ngDevMode ? [{ debugName: "href" }] : []));
37
- /**
38
- * The target attribute for the link.
39
- * Applicable only if `href` is set.
40
- * @default '_self'
41
- */
42
- this.target = input('_self', ...(ngDevMode ? [{ debugName: "target" }] : []));
43
- this.containerClasses = computed(() => {
44
- const classes = [];
45
- classes.push(this.type());
46
- classes.push(this.colorMode());
47
- if (this.href())
48
- classes.push('cardLink');
49
- if (this.hasPadding())
50
- classes.push('hasPadding');
51
- if (this.hasShadow())
52
- classes.push('hasShadow');
53
- return classes.join(' ');
54
- }, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
55
- this.isLink = computed(() => {
56
- return !!this.href();
57
- }, ...(ngDevMode ? [{ debugName: "isLink" }] : []));
58
- }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
60
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraCardComponent, isStandalone: true, selector: "cura-card", inputs: { hasPadding: { classPropertyName: "hasPadding", publicName: "hasPadding", isSignal: true, isRequired: false, transformFunction: null }, hasShadow: { classPropertyName: "hasShadow", publicName: "hasShadow", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, colorMode: { classPropertyName: "colorMode", publicName: "colorMode", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isLink()) {\n <!-- <a [class]=\"containerClasses()\" [ngStyle]=\"cardStyles()\" [target]=\"target()\" [href]=\"href()\"> -->\n <a [class]=\"containerClasses()\" [target]=\"target()\" [href]=\"href()\">\n <ng-content></ng-content>\n </a>\n} @else {\n <!-- <div [class]=\"containerClasses()\" [ngStyle]=\"cardStyles()\"> -->\n <div [class]=\"containerClasses()\">\n <ng-content></ng-content>\n </div>\n}\n", styles: [":host{display:block;box-sizing:border-box;font-size:var(--cura-font-size);font-family:var(--cura-font-body)}a::ng-deep>*,div::ng-deep>*{display:flex;align-items:center;justify-content:center;font-size:var(--cura-font-size);font-family:var(--cura-font-body)}a{display:block;text-decoration:none!important;color:inherit}.solid{background-color:#fff;border:2px solid rgb(183,183,183);border-radius:12px;overflow:hidden;padding:0;box-shadow:none}.solid ::ng-deep>*{border-radius:0}.solid.hasPadding{padding:20px}.solid.hasPadding ::ng-deep>*{border-radius:4px!important}.solid.hasShadow{border:2px solid rgb(183,183,183);box-shadow:0 1px 4px 0 var(rgba(38, 38, 38, .16), rgba(38, 38, 38, .16))}.solid.cardLink{background-color:#fff;border:2px solid var(--cura-color-primary-500);border-radius:12px;padding:0;box-shadow:none;cursor:pointer}.solid.cardLink ::ng-deep>*{border-radius:0}.solid.cardLink:hover{border:2px solid var(--cura-color-primary-100)!important}.solid.cardLink.hasPadding{padding:20px}.solid.cardLink.hasPadding ::ng-deep>*{border-radius:4px!important}.solid.cardLink.hasPadding:hover{border:2px solid var(--cura-color-primary-100)!important}.solid.cardLink.hasShadow{border:2px solid var(--cura-color-primary-500);box-shadow:0 4px 8px 0 var(rgba(38, 38, 38, .16), rgba(38, 38, 38, .16))}.solid.cardLink:not(.hasPadding).hasShadow ::ng-deep>*{border-radius:12px!important}.solid.cardLink.dark{background-color:#fff;border:2px solid rgb(255,255,255)}.solid.cardLink.dark:hover{border:2px solid var(--cura-color-primary-100)}.transparent{background-color:transparent;border:0;border-radius:12px;padding:0;overflow:hidden}.transparent ::ng-deep>*{border-radius:12px}.transparent.hasPadding{padding:20px}.transparent.hasPadding ::ng-deep>*{border-radius:4px}.transparent.cardLink{background-color:transparent;border:2px solid var(--cura-color-primary-500);overflow:hidden;border-radius:12px;padding:0;box-shadow:none}.transparent.cardLink ::ng-deep>*{border-radius:0!important}.transparent.cardLink:hover{border:2px solid var(--cura-color-primary-100)!important}.transparent.cardLink.light{background-color:#fff;border:2px solid var(--cura-color-primary-500)}.transparent.cardLink.light ::ng-deep>*{border-radius:12px!important}.transparent.cardLink.light:hover{border-color:var(--cura-color-primary-100)!important}.transparent.cardLink.dark{background-color:transparent;border:2px solid rgb(255,255,255)}.transparent.cardLink.dark:hover{border:0}.transparent.cardLink.hasPadding{padding:20px}.transparent.cardLink.hasPadding ::ng-deep>*{border-radius:4px!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
61
- }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraCardComponent, decorators: [{
63
- type: Component,
64
- args: [{ selector: 'cura-card', imports: [CommonModule], template: "@if (isLink()) {\n <!-- <a [class]=\"containerClasses()\" [ngStyle]=\"cardStyles()\" [target]=\"target()\" [href]=\"href()\"> -->\n <a [class]=\"containerClasses()\" [target]=\"target()\" [href]=\"href()\">\n <ng-content></ng-content>\n </a>\n} @else {\n <!-- <div [class]=\"containerClasses()\" [ngStyle]=\"cardStyles()\"> -->\n <div [class]=\"containerClasses()\">\n <ng-content></ng-content>\n </div>\n}\n", styles: [":host{display:block;box-sizing:border-box;font-size:var(--cura-font-size);font-family:var(--cura-font-body)}a::ng-deep>*,div::ng-deep>*{display:flex;align-items:center;justify-content:center;font-size:var(--cura-font-size);font-family:var(--cura-font-body)}a{display:block;text-decoration:none!important;color:inherit}.solid{background-color:#fff;border:2px solid rgb(183,183,183);border-radius:12px;overflow:hidden;padding:0;box-shadow:none}.solid ::ng-deep>*{border-radius:0}.solid.hasPadding{padding:20px}.solid.hasPadding ::ng-deep>*{border-radius:4px!important}.solid.hasShadow{border:2px solid rgb(183,183,183);box-shadow:0 1px 4px 0 var(rgba(38, 38, 38, .16), rgba(38, 38, 38, .16))}.solid.cardLink{background-color:#fff;border:2px solid var(--cura-color-primary-500);border-radius:12px;padding:0;box-shadow:none;cursor:pointer}.solid.cardLink ::ng-deep>*{border-radius:0}.solid.cardLink:hover{border:2px solid var(--cura-color-primary-100)!important}.solid.cardLink.hasPadding{padding:20px}.solid.cardLink.hasPadding ::ng-deep>*{border-radius:4px!important}.solid.cardLink.hasPadding:hover{border:2px solid var(--cura-color-primary-100)!important}.solid.cardLink.hasShadow{border:2px solid var(--cura-color-primary-500);box-shadow:0 4px 8px 0 var(rgba(38, 38, 38, .16), rgba(38, 38, 38, .16))}.solid.cardLink:not(.hasPadding).hasShadow ::ng-deep>*{border-radius:12px!important}.solid.cardLink.dark{background-color:#fff;border:2px solid rgb(255,255,255)}.solid.cardLink.dark:hover{border:2px solid var(--cura-color-primary-100)}.transparent{background-color:transparent;border:0;border-radius:12px;padding:0;overflow:hidden}.transparent ::ng-deep>*{border-radius:12px}.transparent.hasPadding{padding:20px}.transparent.hasPadding ::ng-deep>*{border-radius:4px}.transparent.cardLink{background-color:transparent;border:2px solid var(--cura-color-primary-500);overflow:hidden;border-radius:12px;padding:0;box-shadow:none}.transparent.cardLink ::ng-deep>*{border-radius:0!important}.transparent.cardLink:hover{border:2px solid var(--cura-color-primary-100)!important}.transparent.cardLink.light{background-color:#fff;border:2px solid var(--cura-color-primary-500)}.transparent.cardLink.light ::ng-deep>*{border-radius:12px!important}.transparent.cardLink.light:hover{border-color:var(--cura-color-primary-100)!important}.transparent.cardLink.dark{background-color:transparent;border:2px solid rgb(255,255,255)}.transparent.cardLink.dark:hover{border:0}.transparent.cardLink.hasPadding{padding:20px}.transparent.cardLink.hasPadding ::ng-deep>*{border-radius:4px!important}\n"] }]
65
- }], propDecorators: { hasPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPadding", required: false }] }], hasShadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasShadow", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], colorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorMode", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }] } });
66
-
67
- /**
68
- * Generated bundle index. Do not edit.
69
- */
70
-
71
- export { CuraCardComponent };
72
- //# sourceMappingURL=rededor-site-front-end-lib-cura-cards-cura-card.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-cura-cards-cura-card.mjs","sources":["../../../projects/site-front-end-lib/cura/cards/cura-card/cura-card.component.ts","../../../projects/site-front-end-lib/cura/cards/cura-card/cura-card.component.html","../../../projects/site-front-end-lib/cura/cards/cura-card/rededor-site-front-end-lib-cura-cards-cura-card.ts"],"sourcesContent":["import { Component, input, computed } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n// import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CardType, CardColorMode, CardTarget } from './cura-cards.definitions';\n\n@Component({\n selector: 'cura-card',\n imports: [CommonModule],\n templateUrl: './cura-card.component.html',\n styleUrls: ['./cura-card.component.scss'],\n})\nexport class CuraCardComponent {\n // private curaApi = inject(CuraApiService);\n\n /**\n * Determines whether the card should have padding.\n * @default true\n */\n hasPadding = input<boolean>(true);\n\n /**\n * Determines whether the card should have a shadow effect.\n * @default false\n */\n hasShadow = input<boolean>(false);\n\n /**\n * Sets the type of the card background.\n * - 'solid': A solid background.\n * - 'transparent': A transparent background.\n * @default 'solid'\n */\n type = input<CardType>('solid');\n\n /**\n * Sets the color mode of the card.\n * - 'light': Light mode for the card.\n * - 'dark': Dark mode for the card.\n * @default 'light'\n */\n colorMode = input<CardColorMode>('light');\n\n /**\n * The URL that the card should link to (if set).\n * If not set, the card acts as a normal card.\n */\n href = input<string>('');\n\n /**\n * The target attribute for the link.\n * Applicable only if `href` is set.\n * @default '_self'\n */\n target = input<CardTarget>('_self');\n\n containerClasses = computed(() => {\n const classes = [];\n\n classes.push(this.type());\n classes.push(this.colorMode());\n\n if (this.href()) classes.push('cardLink');\n if (this.hasPadding()) classes.push('hasPadding');\n if (this.hasShadow()) classes.push('hasShadow');\n\n return classes.join(' ');\n });\n\n isLink = computed(() => {\n return !!this.href();\n });\n\n // // Computed signal\n // cardStyles = computed(() => {\n // const styles: { [key: string]: string } = {};\n\n // styles['--base-spacing'] = this.curaApi.theme.spacing.getSpacing();\n // styles['--neutral-purewhite'] = this.curaApi.theme.colors.getColor('neutral-purewhite');\n // styles['--neutral-base'] = this.curaApi.theme.colors.getColor('neutral-base');\n // styles['--neutral-black-shadow'] = this.curaApi.theme.colors.getColor('neutral-black', 0.16);\n // styles['--primary-lighter'] = this.curaApi.theme.colors.getColor('primary-lighter');\n // styles['--primary-base'] = this.curaApi.theme.colors.getColor('primary-base');\n // styles['--font-size'] = this.curaApi.theme.fonts.getSize();\n // styles['--font-family'] = this.curaApi.theme.fonts.getFamily();\n // styles['--font-weight-medium'] = this.curaApi.theme.fonts.getWeights().medium;\n\n // return styles;\n // });\n}\n","@if (isLink()) {\n <!-- <a [class]=\"containerClasses()\" [ngStyle]=\"cardStyles()\" [target]=\"target()\" [href]=\"href()\"> -->\n <a [class]=\"containerClasses()\" [target]=\"target()\" [href]=\"href()\">\n <ng-content></ng-content>\n </a>\n} @else {\n <!-- <div [class]=\"containerClasses()\" [ngStyle]=\"cardStyles()\"> -->\n <div [class]=\"containerClasses()\">\n <ng-content></ng-content>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,iBAAiB,CAAA;AAN9B,IAAA,WAAA,GAAA;;AASE;;;AAGG;AACH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,IAAI,sDAAC;AAEjC;;;AAGG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAU,KAAK,qDAAC;AAEjC;;;;;AAKG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAW,OAAO,gDAAC;AAE/B;;;;;AAKG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,OAAO,qDAAC;AAEzC;;;AAGG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE,gDAAC;AAExB;;;;AAIG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAa,OAAO,kDAAC;AAEnC,QAAA,IAAA,CAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAK;YAC/B,MAAM,OAAO,GAAG,EAAE;YAElB,OAAO,CAAC,IAAI,CA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