@lluc_llull/ui-lib 0.33.9 → 0.34.0

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 (262) hide show
  1. package/README.md +1 -1
  2. package/fesm2022/lluc_llull-ui-lib-content-asymmetric-media.mjs +85 -28
  3. package/fesm2022/lluc_llull-ui-lib-content-asymmetric-media.mjs.map +1 -1
  4. package/fesm2022/lluc_llull-ui-lib-content-category-progress.mjs +81 -30
  5. package/fesm2022/lluc_llull-ui-lib-content-category-progress.mjs.map +1 -1
  6. package/fesm2022/lluc_llull-ui-lib-content-columns-media-stacked.mjs +90 -34
  7. package/fesm2022/lluc_llull-ui-lib-content-columns-media-stacked.mjs.map +1 -1
  8. package/fesm2022/lluc_llull-ui-lib-content-contact-minimal.mjs +109 -37
  9. package/fesm2022/lluc_llull-ui-lib-content-contact-minimal.mjs.map +1 -1
  10. package/fesm2022/lluc_llull-ui-lib-content-content-document.mjs +58 -26
  11. package/fesm2022/lluc_llull-ui-lib-content-content-document.mjs.map +1 -1
  12. package/fesm2022/lluc_llull-ui-lib-content-hero-section.mjs +139 -110
  13. package/fesm2022/lluc_llull-ui-lib-content-hero-section.mjs.map +1 -1
  14. package/fesm2022/lluc_llull-ui-lib-content-media-intro.mjs +91 -34
  15. package/fesm2022/lluc_llull-ui-lib-content-media-intro.mjs.map +1 -1
  16. package/fesm2022/lluc_llull-ui-lib-content-media-split.mjs +118 -76
  17. package/fesm2022/lluc_llull-ui-lib-content-media-split.mjs.map +1 -1
  18. package/fesm2022/lluc_llull-ui-lib-content-mosaic-grid.mjs +99 -44
  19. package/fesm2022/lluc_llull-ui-lib-content-mosaic-grid.mjs.map +1 -1
  20. package/fesm2022/lluc_llull-ui-lib-content-mosaic-parallax.mjs +109 -57
  21. package/fesm2022/lluc_llull-ui-lib-content-mosaic-parallax.mjs.map +1 -1
  22. package/fesm2022/lluc_llull-ui-lib-content-section-intro.mjs +100 -37
  23. package/fesm2022/lluc_llull-ui-lib-content-section-intro.mjs.map +1 -1
  24. package/fesm2022/lluc_llull-ui-lib-content-split-previewer.mjs +133 -61
  25. package/fesm2022/lluc_llull-ui-lib-content-split-previewer.mjs.map +1 -1
  26. package/fesm2022/lluc_llull-ui-lib-content-split-showcase.mjs +99 -37
  27. package/fesm2022/lluc_llull-ui-lib-content-split-showcase.mjs.map +1 -1
  28. package/fesm2022/lluc_llull-ui-lib-content-stacked-rows.mjs +61 -29
  29. package/fesm2022/lluc_llull-ui-lib-content-stacked-rows.mjs.map +1 -1
  30. package/fesm2022/lluc_llull-ui-lib-content.mjs +1286 -502
  31. package/fesm2022/lluc_llull-ui-lib-content.mjs.map +1 -1
  32. package/fesm2022/lluc_llull-ui-lib-directives.mjs +383 -262
  33. package/fesm2022/lluc_llull-ui-lib-directives.mjs.map +1 -1
  34. package/fesm2022/lluc_llull-ui-lib-effects.mjs +187 -150
  35. package/fesm2022/lluc_llull-ui-lib-effects.mjs.map +1 -1
  36. package/fesm2022/lluc_llull-ui-lib-enums.mjs +8 -12
  37. package/fesm2022/lluc_llull-ui-lib-enums.mjs.map +1 -1
  38. package/fesm2022/lluc_llull-ui-lib-feedback-404.mjs +97 -34
  39. package/fesm2022/lluc_llull-ui-lib-feedback-404.mjs.map +1 -1
  40. package/fesm2022/lluc_llull-ui-lib-feedback.mjs +97 -34
  41. package/fesm2022/lluc_llull-ui-lib-feedback.mjs.map +1 -1
  42. package/fesm2022/lluc_llull-ui-lib-footers-columns-footer.mjs +65 -27
  43. package/fesm2022/lluc_llull-ui-lib-footers-columns-footer.mjs.map +1 -1
  44. package/fesm2022/lluc_llull-ui-lib-footers-legal-footer.mjs +74 -37
  45. package/fesm2022/lluc_llull-ui-lib-footers-legal-footer.mjs.map +1 -1
  46. package/fesm2022/lluc_llull-ui-lib-footers-links-footer.mjs +59 -24
  47. package/fesm2022/lluc_llull-ui-lib-footers-links-footer.mjs.map +1 -1
  48. package/fesm2022/lluc_llull-ui-lib-footers-social-footer.mjs +95 -32
  49. package/fesm2022/lluc_llull-ui-lib-footers-social-footer.mjs.map +1 -1
  50. package/fesm2022/lluc_llull-ui-lib-footers-visual-footer.mjs +84 -45
  51. package/fesm2022/lluc_llull-ui-lib-footers-visual-footer.mjs.map +1 -1
  52. package/fesm2022/lluc_llull-ui-lib-footers.mjs +354 -125
  53. package/fesm2022/lluc_llull-ui-lib-footers.mjs.map +1 -1
  54. package/fesm2022/lluc_llull-ui-lib-headers-header-clear.mjs +153 -78
  55. package/fesm2022/lluc_llull-ui-lib-headers-header-clear.mjs.map +1 -1
  56. package/fesm2022/lluc_llull-ui-lib-headers-header-mobile.mjs +153 -78
  57. package/fesm2022/lluc_llull-ui-lib-headers-header-mobile.mjs.map +1 -1
  58. package/fesm2022/lluc_llull-ui-lib-headers.mjs +296 -142
  59. package/fesm2022/lluc_llull-ui-lib-headers.mjs.map +1 -1
  60. package/fesm2022/lluc_llull-ui-lib-interfaces.mjs +0 -4
  61. package/fesm2022/lluc_llull-ui-lib-mapper.mjs +242 -264
  62. package/fesm2022/lluc_llull-ui-lib-mapper.mjs.map +1 -1
  63. package/fesm2022/lluc_llull-ui-lib-modals.mjs +163 -65
  64. package/fesm2022/lluc_llull-ui-lib-modals.mjs.map +1 -1
  65. package/fesm2022/lluc_llull-ui-lib-screen-sizer.mjs +106 -97
  66. package/fesm2022/lluc_llull-ui-lib-screen-sizer.mjs.map +1 -1
  67. package/fesm2022/lluc_llull-ui-lib-shared.mjs +279 -148
  68. package/fesm2022/lluc_llull-ui-lib-shared.mjs.map +1 -1
  69. package/fesm2022/lluc_llull-ui-lib-sliders.mjs +72 -52
  70. package/fesm2022/lluc_llull-ui-lib-sliders.mjs.map +1 -1
  71. package/fesm2022/lluc_llull-ui-lib-theme.mjs +78 -80
  72. package/fesm2022/lluc_llull-ui-lib-theme.mjs.map +1 -1
  73. package/fesm2022/lluc_llull-ui-lib-utils.mjs +42 -64
  74. package/fesm2022/lluc_llull-ui-lib-utils.mjs.map +1 -1
  75. package/fesm2022/lluc_llull-ui-lib.mjs +42 -27
  76. package/fesm2022/lluc_llull-ui-lib.mjs.map +1 -1
  77. package/package.json +88 -87
  78. package/types/lluc_llull-ui-lib-content-asymmetric-media.d.ts +21 -0
  79. package/types/lluc_llull-ui-lib-content-category-progress.d.ts +34 -0
  80. package/types/lluc_llull-ui-lib-content-columns-media-stacked.d.ts +33 -0
  81. package/types/lluc_llull-ui-lib-content-contact-minimal.d.ts +39 -0
  82. package/types/lluc_llull-ui-lib-content-content-document.d.ts +24 -0
  83. package/types/lluc_llull-ui-lib-content-hero-section.d.ts +62 -0
  84. package/types/lluc_llull-ui-lib-content-media-intro.d.ts +33 -0
  85. package/types/lluc_llull-ui-lib-content-media-split.d.ts +36 -0
  86. package/types/lluc_llull-ui-lib-content-mosaic-grid.d.ts +27 -0
  87. package/types/lluc_llull-ui-lib-content-mosaic-parallax.d.ts +35 -0
  88. package/types/lluc_llull-ui-lib-content-section-intro.d.ts +33 -0
  89. package/types/lluc_llull-ui-lib-content-split-previewer.d.ts +47 -0
  90. package/types/lluc_llull-ui-lib-content-split-showcase.d.ts +43 -0
  91. package/types/lluc_llull-ui-lib-content-stacked-rows.d.ts +30 -0
  92. package/types/lluc_llull-ui-lib-content.d.ts +471 -0
  93. package/types/lluc_llull-ui-lib-directives.d.ts +93 -0
  94. package/types/lluc_llull-ui-lib-effects.d.ts +50 -0
  95. package/types/lluc_llull-ui-lib-enums.d.ts +7 -0
  96. package/types/lluc_llull-ui-lib-feedback-404.d.ts +33 -0
  97. package/types/lluc_llull-ui-lib-feedback.d.ts +33 -0
  98. package/types/lluc_llull-ui-lib-footers-columns-footer.d.ts +30 -0
  99. package/types/lluc_llull-ui-lib-footers-legal-footer.d.ts +40 -0
  100. package/types/lluc_llull-ui-lib-footers-links-footer.d.ts +15 -0
  101. package/types/lluc_llull-ui-lib-footers-social-footer.d.ts +27 -0
  102. package/types/lluc_llull-ui-lib-footers-visual-footer.d.ts +57 -0
  103. package/types/lluc_llull-ui-lib-footers.d.ts +161 -0
  104. package/types/lluc_llull-ui-lib-headers-header-clear.d.ts +68 -0
  105. package/types/lluc_llull-ui-lib-headers-header-mobile.d.ts +68 -0
  106. package/types/lluc_llull-ui-lib-headers.d.ts +132 -0
  107. package/types/lluc_llull-ui-lib-interfaces.d.ts +92 -0
  108. package/types/lluc_llull-ui-lib-mapper.d.ts +40 -0
  109. package/types/lluc_llull-ui-lib-modals.d.ts +47 -0
  110. package/types/lluc_llull-ui-lib-screen-sizer.d.ts +34 -0
  111. package/types/lluc_llull-ui-lib-shared.d.ts +99 -0
  112. package/types/lluc_llull-ui-lib-sliders.d.ts +17 -0
  113. package/types/lluc_llull-ui-lib-theme.d.ts +16 -0
  114. package/{utils/utils.d.ts → types/lluc_llull-ui-lib-utils.d.ts} +2 -2
  115. package/types/lluc_llull-ui-lib.d.ts +5 -0
  116. package/content/asymmetric-media/asymmetric-media.component.d.ts +0 -8
  117. package/content/asymmetric-media/asymmetric-media.interface.d.ts +0 -5
  118. package/content/asymmetric-media/index.d.ts +0 -2
  119. package/content/category-progress/category-progress.component.d.ts +0 -16
  120. package/content/category-progress/category-progress.interface.d.ts +0 -6
  121. package/content/category-progress/index.d.ts +0 -2
  122. package/content/columns-media-stacked/columns-media-stacked.component.d.ts +0 -10
  123. package/content/columns-media-stacked/columns-media-stacked.interface.d.ts +0 -7
  124. package/content/columns-media-stacked/index.d.ts +0 -2
  125. package/content/contact-minimal/contact-minimal.component.d.ts +0 -11
  126. package/content/contact-minimal/contact-minimal.interface.d.ts +0 -8
  127. package/content/contact-minimal/index.d.ts +0 -2
  128. package/content/content-document/content-document.component.d.ts +0 -11
  129. package/content/content-document/content-document.interface.d.ts +0 -5
  130. package/content/content-document/index.d.ts +0 -2
  131. package/content/hero-section/hero-section.component.d.ts +0 -19
  132. package/content/hero-section/hero-section.interface.d.ts +0 -11
  133. package/content/hero-section/hero-section.stories.d.ts +0 -7
  134. package/content/hero-section/index.d.ts +0 -3
  135. package/content/index.d.ts +0 -14
  136. package/content/media-intro/index.d.ts +0 -2
  137. package/content/media-intro/media-intro.component.d.ts +0 -10
  138. package/content/media-intro/media-intro.interface.d.ts +0 -7
  139. package/content/media-split/index.d.ts +0 -2
  140. package/content/media-split/media-split.component.d.ts +0 -18
  141. package/content/media-split/media-split.interface.d.ts +0 -6
  142. package/content/mosaic-grid/index.d.ts +0 -2
  143. package/content/mosaic-grid/mosaic-grid.component.d.ts +0 -14
  144. package/content/mosaic-grid/mosaic-grid.interface.d.ts +0 -5
  145. package/content/mosaic-parallax/index.d.ts +0 -2
  146. package/content/mosaic-parallax/mosaic-parallax.component.d.ts +0 -17
  147. package/content/mosaic-parallax/mosaic-parallax.interface.d.ts +0 -6
  148. package/content/section-intro/index.d.ts +0 -2
  149. package/content/section-intro/section-intro.component.d.ts +0 -11
  150. package/content/section-intro/section-intro.interface.d.ts +0 -2
  151. package/content/split-previewer/index.d.ts +0 -2
  152. package/content/split-previewer/split-previewer.component.d.ts +0 -24
  153. package/content/split-previewer/split-previewer.interface.d.ts +0 -8
  154. package/content/split-showcase/index.d.ts +0 -2
  155. package/content/split-showcase/split-showcase.component.d.ts +0 -15
  156. package/content/split-showcase/split-showcase.interface.d.ts +0 -9
  157. package/content/stacked-rows/index.d.ts +0 -2
  158. package/content/stacked-rows/stacked-rows.component.d.ts +0 -12
  159. package/content/stacked-rows/stacked-rows.interface.d.ts +0 -6
  160. package/directives/header-scroll.directive.d.ts +0 -8
  161. package/directives/highlight.directive.d.ts +0 -14
  162. package/directives/index.d.ts +0 -4
  163. package/directives/link-type.directive.d.ts +0 -26
  164. package/directives/scroll-reveal.directive.d.ts +0 -15
  165. package/effects/dynamic-background/dynamic-background.component.d.ts +0 -27
  166. package/effects/dynamic-background/effects/dynamic-effect.interface.d.ts +0 -6
  167. package/effects/dynamic-background/effects/effect-registry.d.ts +0 -3
  168. package/effects/dynamic-background/effects/sphere-deform/sphere-deform.effect.d.ts +0 -13
  169. package/effects/dynamic-background/index.d.ts +0 -1
  170. package/effects/index.d.ts +0 -1
  171. package/enums/index.d.ts +0 -1
  172. package/enums/link-type.enum.d.ts +0 -7
  173. package/feedback/404/404.component.d.ts +0 -10
  174. package/feedback/404/404.inteface.d.ts +0 -7
  175. package/feedback/404/index.d.ts +0 -2
  176. package/feedback/index.d.ts +0 -1
  177. package/fesm2022/lluc_llull-ui-lib-interfaces.mjs.map +0 -1
  178. package/footers/columns-footer/columns-footer.component.d.ts +0 -17
  179. package/footers/columns-footer/columns-footer.interface.d.ts +0 -5
  180. package/footers/columns-footer/index.d.ts +0 -2
  181. package/footers/index.d.ts +0 -5
  182. package/footers/legal-footer/index.d.ts +0 -2
  183. package/footers/legal-footer/legal-footer.component.d.ts +0 -12
  184. package/footers/legal-footer/legal-footer.interface.d.ts +0 -9
  185. package/footers/links-footer/index.d.ts +0 -2
  186. package/footers/links-footer/links-footer.component.d.ts +0 -7
  187. package/footers/links-footer/links-footer.interface.d.ts +0 -4
  188. package/footers/social-footer/index.d.ts +0 -2
  189. package/footers/social-footer/social-footer.component.d.ts +0 -9
  190. package/footers/social-footer/social-footer.interface.d.ts +0 -6
  191. package/footers/visual-footer/index.d.ts +0 -2
  192. package/footers/visual-footer/visual-footer.component.d.ts +0 -14
  193. package/footers/visual-footer/visual-footer.interface.d.ts +0 -11
  194. package/headers/header-clear/header-clear.component.d.ts +0 -28
  195. package/headers/header-clear/header-clear.interface.d.ts +0 -9
  196. package/headers/header-clear/index.d.ts +0 -2
  197. package/headers/header-mobile/header-mobile.component.d.ts +0 -28
  198. package/headers/header-mobile/header-mobile.interface.d.ts +0 -9
  199. package/headers/header-mobile/index.d.ts +0 -2
  200. package/headers/index.d.ts +0 -2
  201. package/index.d.ts +0 -5
  202. package/interfaces/index.d.ts +0 -8
  203. package/interfaces/page-config.interface.d.ts +0 -22
  204. package/interfaces/site-config.interface.d.ts +0 -21
  205. package/interfaces/ui-lib-address.interface.d.ts +0 -7
  206. package/interfaces/ui-lib-button.interface.d.ts +0 -7
  207. package/interfaces/ui-lib-image.interface.d.ts +0 -10
  208. package/interfaces/ui-lib-lang-item.interface.d.ts +0 -5
  209. package/interfaces/ui-lib-nav-items.interface.d.ts +0 -17
  210. package/interfaces/ui-lib-texts.interface.d.ts +0 -6
  211. package/lib/ui-lib.component.d.ts +0 -5
  212. package/mapper/cdn.token.d.ts +0 -2
  213. package/mapper/cloudinary.token.d.ts +0 -2
  214. package/mapper/component-mappers/404.mapper.d.ts +0 -2
  215. package/mapper/component-mappers/asymmetric-media.mapper.d.ts +0 -2
  216. package/mapper/component-mappers/category-progress.mapper.d.ts +0 -2
  217. package/mapper/component-mappers/columns-footer.mapper.d.ts +0 -2
  218. package/mapper/component-mappers/columns-media-stacked.mapper.d.ts +0 -2
  219. package/mapper/component-mappers/contact-minimal.mapper.d.ts +0 -2
  220. package/mapper/component-mappers/content-document.mapper.d.ts +0 -2
  221. package/mapper/component-mappers/header-clear.mapper.d.ts +0 -2
  222. package/mapper/component-mappers/hero-section.mapper.d.ts +0 -2
  223. package/mapper/component-mappers/index.d.ts +0 -24
  224. package/mapper/component-mappers/lang-modal.mapper.d.ts +0 -2
  225. package/mapper/component-mappers/legal-footer.mapper.d.ts +0 -2
  226. package/mapper/component-mappers/links-footer.mapper.d.ts +0 -2
  227. package/mapper/component-mappers/media-intro.mapper.d.ts +0 -2
  228. package/mapper/component-mappers/media-split.mapper.d.ts +0 -2
  229. package/mapper/component-mappers/mosaic-grid.mapper.d.ts +0 -2
  230. package/mapper/component-mappers/mosaic-parallax.mapper.d.ts +0 -2
  231. package/mapper/component-mappers/nav-modal.mapper.d.ts +0 -3
  232. package/mapper/component-mappers/section-intro.mapper.d.ts +0 -2
  233. package/mapper/component-mappers/social-footer.mapper.d.ts +0 -2
  234. package/mapper/component-mappers/split-previewer.mapper.d.ts +0 -2
  235. package/mapper/component-mappers/split-showcase.mapper.d.ts +0 -2
  236. package/mapper/component-mappers/stacked-rows.mapper.d.ts +0 -2
  237. package/mapper/component-mappers/types.d.ts +0 -1
  238. package/mapper/component-mappers/visual-footer.mapper.d.ts +0 -2
  239. package/mapper/index.d.ts +0 -4
  240. package/mapper/mapper.service.d.ts +0 -10
  241. package/modals/index.d.ts +0 -2
  242. package/modals/lang-modal/index.d.ts +0 -2
  243. package/modals/lang-modal/lang-modal.component.d.ts +0 -18
  244. package/modals/lang-modal/lang-modal.interface.d.ts +0 -2
  245. package/modals/nav-modal/index.d.ts +0 -2
  246. package/modals/nav-modal/nav-modal.component.d.ts +0 -11
  247. package/modals/nav-modal/nav-modal.interface.d.ts +0 -5
  248. package/public-api.d.ts +0 -1
  249. package/screen-sizer/index.d.ts +0 -1
  250. package/screen-sizer/screen-sizer.service.d.ts +0 -34
  251. package/shared/index.d.ts +0 -2
  252. package/shared/ui-icon/index.d.ts +0 -3
  253. package/shared/ui-icon/ui-icon.component.d.ts +0 -15
  254. package/shared/ui-icon/ui-icon.interface.d.ts +0 -5
  255. package/shared/ui-icon/ui-icon.mock.d.ts +0 -8
  256. package/shared/ui-image/index.d.ts +0 -1
  257. package/shared/ui-image/ui-image.component.d.ts +0 -21
  258. package/sliders/index.d.ts +0 -1
  259. package/sliders/swiper.directive.d.ts +0 -12
  260. package/theme/index.d.ts +0 -1
  261. package/theme/theme.service.d.ts +0 -16
  262. package/utils/index.d.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"lluc_llull-ui-lib-sliders.mjs","sources":["../../../projects/ui-lib/sliders/swiper.directive.ts","../../../projects/ui-lib/sliders/lluc_llull-ui-lib-sliders.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef, Input, OnDestroy } from '@angular/core';\nimport Swiper from 'swiper';\nimport { Autoplay, Navigation, Pagination } from 'swiper/modules';\n\nSwiper.use([Navigation, Pagination, Autoplay]);\n\n@Directive({\n selector: '[appSwiper]',\n standalone: true,\n})\nexport class SwiperDirective implements AfterViewInit, OnDestroy {\n @Input() swiperConfig: any;\n\n private swiperInstance?: Swiper;\n\n constructor(private el: ElementRef) {}\n\n ngAfterViewInit(): void {\n this.swiperInstance = new Swiper(this.el.nativeElement, {\n spaceBetween: 16,\n navigation: {\n nextEl: '.swiper-button-next',\n prevEl: '.swiper-button-prev',\n },\n pagination: { clickable: true },\n breakpoints: {\n 0: { slidesPerView: 1 }, // móviles\n 480: { slidesPerView: 1 }, // small tablets\n 768: { slidesPerView: 3 }, // tablets\n 1024: { slidesPerView: 4 }, // laptops\n 1280: { slidesPerView: 7 }, // desktop → máximo 7\n },\n ...this.swiperConfig,\n });\n }\n\n ngOnDestroy(): void {\n this.swiperInstance?.destroy(true, true);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;MAMjC,eAAe,CAAA;AAKJ,IAAA,EAAA;AAJX,IAAA,YAAY;AAEb,IAAA,cAAc;AAEtB,IAAA,WAAA,CAAoB,EAAc,EAAA;QAAd,IAAA,CAAA,EAAE,GAAF,EAAE;IAAe;IAErC,eAAe,GAAA;QACX,IAAI,CAAC,cAAc,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE;AACpD,YAAA,YAAY,EAAE,EAAE;AAChB,YAAA,UAAU,EAAE;AACR,gBAAA,MAAM,EAAE,qBAAqB;AAC7B,gBAAA,MAAM,EAAE,qBAAqB;AAChC,aAAA;AACD,YAAA,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC/B,YAAA,WAAW,EAAE;AACT,gBAAA,CAAC,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE;AACvB,gBAAA,GAAG,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE;AACzB,gBAAA,GAAG,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE;AACzB,gBAAA,IAAI,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE;AAC1B,gBAAA,IAAI,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE;AAC7B,aAAA;YACD,GAAG,IAAI,CAAC,YAAY;AACvB,SAAA,CAAC;IACN;IAEA,WAAW,GAAA;QACP,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;IAC5C;wGA5BS,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA;+EAEY,YAAY,EAAA,CAAA;sBAApB;;;ACXL;;AAEG;;;;"}
1
+ {"version":3,"file":"lluc_llull-ui-lib-sliders.mjs","names":[],"sources":["../../../projects/ui-lib/sliders/swiper.directive.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef, Input, OnDestroy } from '@angular/core';\nimport Swiper from 'swiper';\nimport { Autoplay, Navigation, Pagination } from 'swiper/modules';\n\nSwiper.use([Navigation, Pagination, Autoplay]);\n\n@Directive({\n selector: '[appSwiper]',\n standalone: true,\n})\nexport class SwiperDirective implements AfterViewInit, OnDestroy {\n @Input() swiperConfig: any;\n\n private swiperInstance?: Swiper;\n\n constructor(private el: ElementRef) {}\n\n ngAfterViewInit(): void {\n this.swiperInstance = new Swiper(this.el.nativeElement, {\n spaceBetween: 16,\n navigation: {\n nextEl: '.swiper-button-next',\n prevEl: '.swiper-button-prev',\n },\n pagination: { clickable: true },\n breakpoints: {\n 0: { slidesPerView: 1 }, // móviles\n 480: { slidesPerView: 1 }, // small tablets\n 768: { slidesPerView: 3 }, // tablets\n 1024: { slidesPerView: 4 }, // laptops\n 1280: { slidesPerView: 7 }, // desktop → máximo 7\n },\n ...this.swiperConfig,\n });\n }\n\n ngOnDestroy(): void {\n this.swiperInstance?.destroy(true, true);\n }\n}\n"],"mappings":";;;;AAIA,OAAO,IAAI;CAAC;CAAY;CAAY;AAAQ,CAAC;AAM7C,IAAa,kBAAb,MAAa,gBAAe;CAKJ;CAJX;CAED;CAER,YAAoB,IAAc;EAAd,KAAA,KAAA;CAAiB;CAErC,kBAAe;EACX,KAAK,iBAAiB,IAAI,OAAO,KAAK,GAAG,eAAe;GACpD,cAAc;GACd,YAAY;IACR,QAAQ;IACR,QAAQ;GACX;GACD,YAAY,EAAE,WAAW,KAAI;GAC7B,aAAa;IACT,GAAG,EAAE,eAAe,EAAC;IACrB,KAAK,EAAE,eAAe,EAAC;IACvB,KAAK,EAAE,eAAe,EAAC;IACvB,MAAM,EAAE,eAAe,EAAC;IACxB,MAAM,EAAE,eAAe,EAAC;GAC3B;GACD,GAAG,KAAK;EACX,CAAA;CACL;CAEA,cAAW;EACP,KAAK,gBAAgB,QAAQ,MAAM,IAAI;CAC3C;CA5BS,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAe,MAAA,CAAA,EAAA,OAAA,GAAA,WAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAf,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAe,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,cAAA,eAAA;EAAA,UAAA;CAAA,CAAA;;AAAf,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA;EAJ3B,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,YAAY;EACf,CAAA;;;C,mCAEI,MAAA,M"}
@@ -1,81 +1,79 @@
1
- import { isPlatformBrowser } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { PLATFORM_ID, Inject, Injectable } from '@angular/core';
4
- import { BehaviorSubject } from 'rxjs';
5
-
6
- class ThemeService {
7
- platformId;
8
- currentThemeSubject = new BehaviorSubject('light');
9
- currentTheme$ = this.currentThemeSubject.asObservable();
10
- constructor(platformId) {
11
- this.platformId = platformId;
12
- // Aplicar tema por defecto al inicio
13
- if (isPlatformBrowser(this.platformId)) {
14
- this.applyTheme('light');
15
- }
16
- }
17
- getCurrentTheme() {
18
- return this.currentThemeSubject.value;
19
- }
20
- setTheme(theme) {
21
- this.currentThemeSubject.next(theme);
22
- this.applyTheme(theme);
23
- // NO guardar automáticamente en localStorage - solo cuando el usuario hace toggle
24
- }
25
- toggleTheme() {
26
- const currentTheme = this.getCurrentTheme();
27
- const newTheme = currentTheme === 'light' ? 'dark' : 'light';
28
- // Guardar en localStorage solo cuando el usuario hace toggle
29
- if (isPlatformBrowser(this.platformId)) {
30
- localStorage.setItem('theme', newTheme);
31
- }
32
- this.setTheme(newTheme);
33
- }
34
- resetTheme() {
35
- if (isPlatformBrowser(this.platformId)) {
36
- localStorage.removeItem('theme');
37
- this.currentThemeSubject.next('light');
38
- this.applyTheme('light');
39
- }
40
- }
41
- // Método para cargar el tema guardado (opcional)
42
- loadSavedTheme() {
43
- if (isPlatformBrowser(this.platformId)) {
44
- const savedTheme = localStorage.getItem('theme');
45
- if (savedTheme) {
46
- this.setTheme(savedTheme);
47
- }
48
- }
49
- }
50
- applyTheme(theme) {
51
- // Solo aplicar en el navegador
52
- if (!isPlatformBrowser(this.platformId)) {
53
- return;
54
- }
55
- const root = document.documentElement;
56
- if (theme === 'dark') {
57
- root.setAttribute('data-theme', 'dark');
58
- }
59
- else {
60
- root.setAttribute('data-theme', 'light');
61
- }
62
- }
63
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ThemeService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
64
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ThemeService, providedIn: 'root' });
65
- }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ThemeService, decorators: [{
67
- type: Injectable,
68
- args: [{
69
- providedIn: 'root',
70
- }]
71
- }], ctorParameters: () => [{ type: Object, decorators: [{
72
- type: Inject,
73
- args: [PLATFORM_ID]
74
- }] }] });
75
-
76
- /**
77
- * Generated bundle index. Do not edit.
78
- */
79
-
1
+ import { isPlatformBrowser } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Inject, Injectable, PLATFORM_ID } from "@angular/core";
4
+ import { BehaviorSubject } from "rxjs";
5
+ var ThemeService = class ThemeService {
6
+ platformId;
7
+ currentThemeSubject = new BehaviorSubject("light");
8
+ currentTheme$ = this.currentThemeSubject.asObservable();
9
+ constructor(platformId) {
10
+ this.platformId = platformId;
11
+ if (isPlatformBrowser(this.platformId)) this.applyTheme("light");
12
+ }
13
+ getCurrentTheme() {
14
+ return this.currentThemeSubject.value;
15
+ }
16
+ setTheme(theme) {
17
+ this.currentThemeSubject.next(theme);
18
+ this.applyTheme(theme);
19
+ }
20
+ toggleTheme() {
21
+ const newTheme = this.getCurrentTheme() === "light" ? "dark" : "light";
22
+ if (isPlatformBrowser(this.platformId)) localStorage.setItem("theme", newTheme);
23
+ this.setTheme(newTheme);
24
+ }
25
+ resetTheme() {
26
+ if (isPlatformBrowser(this.platformId)) {
27
+ localStorage.removeItem("theme");
28
+ this.currentThemeSubject.next("light");
29
+ this.applyTheme("light");
30
+ }
31
+ }
32
+ loadSavedTheme() {
33
+ if (isPlatformBrowser(this.platformId)) {
34
+ const savedTheme = localStorage.getItem("theme");
35
+ if (savedTheme) this.setTheme(savedTheme);
36
+ }
37
+ }
38
+ applyTheme(theme) {
39
+ if (!isPlatformBrowser(this.platformId)) return;
40
+ const root = document.documentElement;
41
+ if (theme === "dark") root.setAttribute("data-theme", "dark");
42
+ else root.setAttribute("data-theme", "light");
43
+ }
44
+ static ɵfac = i0.ɵɵngDeclareFactory({
45
+ minVersion: "12.0.0",
46
+ version: "22.2.4",
47
+ ngImport: i0,
48
+ type: ThemeService,
49
+ deps: [{ token: PLATFORM_ID }],
50
+ target: i0.ɵɵFactoryTarget.Injectable
51
+ });
52
+ static ɵprov = i0.ɵɵngDeclareInjectable({
53
+ minVersion: "12.0.0",
54
+ version: "22.2.4",
55
+ ngImport: i0,
56
+ type: ThemeService,
57
+ providedIn: "root"
58
+ });
59
+ };
60
+ i0.ɵɵngDeclareClassMetadata({
61
+ minVersion: "12.0.0",
62
+ version: "22.2.4",
63
+ ngImport: i0,
64
+ type: ThemeService,
65
+ decorators: [{
66
+ type: Injectable,
67
+ args: [{ providedIn: "root" }]
68
+ }],
69
+ ctorParameters: () => [{
70
+ type: Object,
71
+ decorators: [{
72
+ type: Inject,
73
+ args: [PLATFORM_ID]
74
+ }]
75
+ }]
76
+ });
80
77
  export { ThemeService };
81
- //# sourceMappingURL=lluc_llull-ui-lib-theme.mjs.map
78
+
79
+ //# sourceMappingURL=lluc_llull-ui-lib-theme.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lluc_llull-ui-lib-theme.mjs","sources":["../../../projects/ui-lib/theme/theme.service.ts","../../../projects/ui-lib/theme/lluc_llull-ui-lib-theme.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { Inject, Injectable, PLATFORM_ID } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nexport type Theme = 'light' | 'dark';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ThemeService {\n private currentThemeSubject = new BehaviorSubject<Theme>('light');\n public currentTheme$ = this.currentThemeSubject.asObservable();\n\n constructor(@Inject(PLATFORM_ID) private platformId: Object) {\n // Aplicar tema por defecto al inicio\n if (isPlatformBrowser(this.platformId)) {\n this.applyTheme('light');\n }\n }\n\n public getCurrentTheme(): Theme {\n return this.currentThemeSubject.value;\n }\n\n public setTheme(theme: Theme): void {\n this.currentThemeSubject.next(theme);\n this.applyTheme(theme);\n // NO guardar automáticamente en localStorage - solo cuando el usuario hace toggle\n }\n\n public toggleTheme(): void {\n const currentTheme = this.getCurrentTheme();\n const newTheme: Theme = currentTheme === 'light' ? 'dark' : 'light';\n\n // Guardar en localStorage solo cuando el usuario hace toggle\n if (isPlatformBrowser(this.platformId)) {\n localStorage.setItem('theme', newTheme);\n }\n\n this.setTheme(newTheme);\n }\n\n public resetTheme(): void {\n if (isPlatformBrowser(this.platformId)) {\n localStorage.removeItem('theme');\n this.currentThemeSubject.next('light');\n this.applyTheme('light');\n }\n }\n\n // Método para cargar el tema guardado (opcional)\n public loadSavedTheme(): void {\n if (isPlatformBrowser(this.platformId)) {\n const savedTheme = localStorage.getItem('theme') as Theme;\n if (savedTheme) {\n this.setTheme(savedTheme);\n }\n }\n }\n\n private applyTheme(theme: Theme): void {\n // Solo aplicar en el navegador\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n const root = document.documentElement;\n\n if (theme === 'dark') {\n root.setAttribute('data-theme', 'dark');\n } else {\n root.setAttribute('data-theme', 'light');\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,YAAY,CAAA;AAIoB,IAAA,UAAA;AAHjC,IAAA,mBAAmB,GAAG,IAAI,eAAe,CAAQ,OAAO,CAAC;AAC1D,IAAA,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE;AAE9D,IAAA,WAAA,CAAyC,UAAkB,EAAA;QAAlB,IAAA,CAAA,UAAU,GAAV,UAAU;;AAE/C,QAAA,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;AACpC,YAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAC5B;IACJ;IAEO,eAAe,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK;IACzC;AAEO,IAAA,QAAQ,CAAC,KAAY,EAAA;AACxB,QAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC;AACpC,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;IAE1B;IAEO,WAAW,GAAA;AACd,QAAA,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE;AAC3C,QAAA,MAAM,QAAQ,GAAU,YAAY,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO;;AAGnE,QAAA,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;AACpC,YAAA,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC;QAC3C;AAEA,QAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAC3B;IAEO,UAAU,GAAA;AACb,QAAA,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;AACpC,YAAA,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC;AAChC,YAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC;AACtC,YAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAC5B;IACJ;;IAGO,cAAc,GAAA;AACjB,QAAA,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YACpC,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAU;YACzD,IAAI,UAAU,EAAE;AACZ,gBAAA,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;YAC7B;QACJ;IACJ;AAEQ,IAAA,UAAU,CAAC,KAAY,EAAA;;QAE3B,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YACrC;QACJ;AAEA,QAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe;AAErC,QAAA,IAAI,KAAK,KAAK,MAAM,EAAE;AAClB,YAAA,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC;QAC3C;aAAO;AACH,YAAA,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC;QAC5C;IACJ;AAhES,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,kBAID,WAAW,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAJtB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cAFT,MAAM,EAAA,CAAA;;4FAET,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;0BAKgB,MAAM;2BAAC,WAAW;;;ACbnC;;AAEG;;;;"}
1
+ {"version":3,"file":"lluc_llull-ui-lib-theme.mjs","names":[],"sources":["../../../projects/ui-lib/theme/theme.service.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { Inject, Injectable, PLATFORM_ID } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nexport type Theme = 'light' | 'dark';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ThemeService {\n private currentThemeSubject = new BehaviorSubject<Theme>('light');\n public currentTheme$ = this.currentThemeSubject.asObservable();\n\n constructor(@Inject(PLATFORM_ID) private platformId: Object) {\n // Aplicar tema por defecto al inicio\n if (isPlatformBrowser(this.platformId)) {\n this.applyTheme('light');\n }\n }\n\n public getCurrentTheme(): Theme {\n return this.currentThemeSubject.value;\n }\n\n public setTheme(theme: Theme): void {\n this.currentThemeSubject.next(theme);\n this.applyTheme(theme);\n // NO guardar automáticamente en localStorage - solo cuando el usuario hace toggle\n }\n\n public toggleTheme(): void {\n const currentTheme = this.getCurrentTheme();\n const newTheme: Theme = currentTheme === 'light' ? 'dark' : 'light';\n\n // Guardar en localStorage solo cuando el usuario hace toggle\n if (isPlatformBrowser(this.platformId)) {\n localStorage.setItem('theme', newTheme);\n }\n\n this.setTheme(newTheme);\n }\n\n public resetTheme(): void {\n if (isPlatformBrowser(this.platformId)) {\n localStorage.removeItem('theme');\n this.currentThemeSubject.next('light');\n this.applyTheme('light');\n }\n }\n\n // Método para cargar el tema guardado (opcional)\n public loadSavedTheme(): void {\n if (isPlatformBrowser(this.platformId)) {\n const savedTheme = localStorage.getItem('theme') as Theme;\n if (savedTheme) {\n this.setTheme(savedTheme);\n }\n }\n }\n\n private applyTheme(theme: Theme): void {\n // Solo aplicar en el navegador\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n const root = document.documentElement;\n\n if (theme === 'dark') {\n root.setAttribute('data-theme', 'dark');\n } else {\n root.setAttribute('data-theme', 'light');\n }\n }\n}\n"],"mappings":";;;;AASA,IAAa,eAAb,MAAa,aAAY;CAIoB;CAHjC,sBAAsB,IAAI,gBAAuB,OAAO;CACzD,gBAAgB,KAAK,oBAAoB,aAAY;CAE5D,YAAyC,YAAkB;EAAlB,KAAA,aAAA;EAErC,IAAI,kBAAkB,KAAK,UAAU,GACjC,KAAK,WAAW,OAAO;CAE/B;CAEO,kBAAe;EAClB,OAAO,KAAK,oBAAoB;CACpC;CAEO,SAAS,OAAY;EACxB,KAAK,oBAAoB,KAAK,KAAK;EACnC,KAAK,WAAW,KAAK;CAEzB;CAEO,cAAW;EAEd,MAAM,WADe,KAAK,gBACF,MAAiB,UAAU,SAAS;EAG5D,IAAI,kBAAkB,KAAK,UAAU,GACjC,aAAa,QAAQ,SAAS,QAAQ;EAG1C,KAAK,SAAS,QAAQ;CAC1B;CAEO,aAAU;EACb,IAAI,kBAAkB,KAAK,UAAU,GAAG;GACpC,aAAa,WAAW,OAAO;GAC/B,KAAK,oBAAoB,KAAK,OAAO;GACrC,KAAK,WAAW,OAAO;EAC3B;CACJ;CAGO,iBAAc;EACjB,IAAI,kBAAkB,KAAK,UAAU,GAAG;GACpC,MAAM,aAAa,aAAa,QAAQ,OAAO;GAC/C,IAAI,YACA,KAAK,SAAS,UAAU;EAEhC;CACJ;CAEQ,WAAW,OAAY;EAE3B,IAAI,CAAC,kBAAkB,KAAK,UAAU,GAClC;EAGJ,MAAM,OAAO,SAAS;EAEtB,IAAI,UAAU,QACV,KAAK,aAAa,cAAc,MAAM;OAEtC,KAAK,aAAa,cAAc,OAAO;CAE/C;CAhES,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,MAAA,CAAA,EAAA,OAID,YAAW,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAJtB,OAAA,QAAA,GAAA,sBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,YAFT;CAAM,CAAA;;AAET,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EAHxB,MAAA;EAAW,MAAA,CAAA,EACR,YAAY,OACf,CAAA;;;;;GAKgB,MAAA;GAAO,MAAA,CAAA,WAAW"}
@@ -1,71 +1,49 @@
1
1
  function mapButtons(data) {
2
- if (!Array.isArray(data))
3
- return [];
4
- return data
5
- .filter((item) => item && typeof item === 'object')
6
- .map((item) => {
7
- const labelValue = item.label ?? '';
8
- let finalUrl = '';
9
- if (item.link_type === 'internal') {
10
- finalUrl = item.page === 'home' ? '' : (item.page ?? '');
11
- }
12
- else {
13
- finalUrl = item.url ?? '';
14
- }
15
- return {
16
- label: labelValue,
17
- url: finalUrl,
18
- linkType: item.link_type ?? 'none',
19
- icon: item.icon,
20
- };
21
- });
2
+ if (!Array.isArray(data)) return [];
3
+ return data.filter((item) => item && typeof item === "object").map((item) => {
4
+ const labelValue = item.label ?? "";
5
+ let finalUrl = "";
6
+ if (item.link_type === "internal") finalUrl = item.page === "home" ? "" : item.page ?? "";
7
+ else finalUrl = item.url ?? "";
8
+ return {
9
+ label: labelValue,
10
+ url: finalUrl,
11
+ linkType: item.link_type ?? "none",
12
+ icon: item.icon
13
+ };
14
+ });
22
15
  }
23
16
  function mapImage(data, cdn) {
24
- if (!data || typeof data !== 'object')
25
- return null;
26
- const src = data.url ?? data.src ?? '';
27
- const fullUrl = src.startsWith('http') ? src : (cdn ?? '') + src;
28
- let publicId = data.public_id ?? data.publicId;
29
- if (!publicId && fullUrl.includes('cloudinary.com')) {
30
- const match = fullUrl.match(/\/upload\/(?:v\d+\/)?([^\.]+)/);
31
- if (match) {
32
- publicId = match[1];
33
- }
34
- }
35
- return {
36
- url: fullUrl,
37
- publicId: publicId,
38
- alt: data.alt ?? '',
39
- width: data.width,
40
- height: data.height,
41
- format: data.format,
42
- texts: {
43
- pretitle: data.texts?.pretitle,
44
- title: data.texts?.title,
45
- subtitle: data.texts?.subtitle,
46
- text: data.texts?.text,
47
- },
48
- };
17
+ if (!data || typeof data !== "object") return null;
18
+ const src = data.url ?? data.src ?? "";
19
+ const fullUrl = src.startsWith("http") ? src : (cdn ?? "") + src;
20
+ let publicId = data.public_id ?? data.publicId;
21
+ if (!publicId && fullUrl.includes("cloudinary.com")) {
22
+ const match = fullUrl.match(/\/upload\/(?:v\d+\/)?([^\.]+)/);
23
+ if (match) publicId = match[1];
24
+ }
25
+ return {
26
+ url: fullUrl,
27
+ publicId,
28
+ alt: data.alt ?? "",
29
+ width: data.width,
30
+ height: data.height,
31
+ format: data.format,
32
+ texts: {
33
+ pretitle: data.texts?.pretitle,
34
+ title: data.texts?.title,
35
+ subtitle: data.texts?.subtitle,
36
+ text: data.texts?.text
37
+ }
38
+ };
49
39
  }
50
40
  function mapImageOrGallery(data, cdn) {
51
- if (!data)
52
- return [];
53
- if (data.images && Array.isArray(data.images)) {
54
- data = data.images;
55
- }
56
- if (Array.isArray(data)) {
57
- return data
58
- .filter((img) => img && typeof img === 'object')
59
- .map((img) => mapImage(img, cdn))
60
- .filter((img) => !!img);
61
- }
62
- const single = mapImage(data, cdn);
63
- return single ? [single] : [];
41
+ if (!data) return [];
42
+ if (data.images && Array.isArray(data.images)) data = data.images;
43
+ if (Array.isArray(data)) return data.filter((img) => img && typeof img === "object").map((img) => mapImage(img, cdn)).filter((img) => !!img);
44
+ const single = mapImage(data, cdn);
45
+ return single ? [single] : [];
64
46
  }
65
-
66
- /**
67
- * Generated bundle index. Do not edit.
68
- */
69
-
70
47
  export { mapButtons, mapImage, mapImageOrGallery };
71
- //# sourceMappingURL=lluc_llull-ui-lib-utils.mjs.map
48
+
49
+ //# sourceMappingURL=lluc_llull-ui-lib-utils.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lluc_llull-ui-lib-utils.mjs","sources":["../../../projects/ui-lib/utils/utils.ts","../../../projects/ui-lib/utils/lluc_llull-ui-lib-utils.ts"],"sourcesContent":["import { UiLibButtonI, UiLibImageI } from '@lluc_llull/ui-lib/interfaces';\n\nexport function mapButtons(data: any): UiLibButtonI[] {\n if (!Array.isArray(data)) return [];\n\n return data\n .filter((item) => item && typeof item === 'object')\n .map((item): UiLibButtonI => {\n const labelValue = item.label ?? '';\n\n let finalUrl = '';\n if (item.link_type === 'internal') {\n finalUrl = item.page === 'home' ? '' : (item.page ?? '');\n } else {\n finalUrl = item.url ?? '';\n }\n\n return {\n label: labelValue,\n url: finalUrl,\n linkType: item.link_type ?? 'none',\n icon: item.icon,\n };\n });\n}\n\nexport function mapImage(data: any, cdn?: string): UiLibImageI | null {\n if (!data || typeof data !== 'object') return null;\n\n const src = data.url ?? data.src ?? '';\n const fullUrl = src.startsWith('http') ? src : (cdn ?? '') + src;\n \n let publicId = data.public_id ?? data.publicId;\n\n if (!publicId && fullUrl.includes('cloudinary.com')) {\n const match = fullUrl.match(/\\/upload\\/(?:v\\d+\\/)?([^\\.]+)/);\n if (match) {\n publicId = match[1];\n }\n }\n\n return {\n url: fullUrl,\n publicId: publicId,\n alt: data.alt ?? '',\n width: data.width,\n height: data.height,\n format: data.format,\n texts: {\n pretitle: data.texts?.pretitle,\n title: data.texts?.title,\n subtitle: data.texts?.subtitle,\n text: data.texts?.text,\n },\n };\n}\n\nexport function mapImageOrGallery(data: any, cdn?: string): UiLibImageI[] {\n if (!data) return [];\n\n if (data.images && Array.isArray(data.images)) {\n data = data.images;\n }\n\n if (Array.isArray(data)) {\n return data\n .filter((img) => img && typeof img === 'object')\n .map((img) => mapImage(img, cdn))\n .filter((img): img is UiLibImageI => !!img);\n }\n\n const single = mapImage(data, cdn);\n return single ? [single] : [];\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"lluc_llull-ui-lib-utils.mjs","names":[],"sources":["../../../projects/ui-lib/utils/utils.ts"],"sourcesContent":["import { UiLibButtonI, UiLibImageI } from '@lluc_llull/ui-lib/interfaces';\n\nexport function mapButtons(data: any): UiLibButtonI[] {\n if (!Array.isArray(data)) return [];\n\n return data\n .filter((item) => item && typeof item === 'object')\n .map((item): UiLibButtonI => {\n const labelValue = item.label ?? '';\n\n let finalUrl = '';\n if (item.link_type === 'internal') {\n finalUrl = item.page === 'home' ? '' : (item.page ?? '');\n } else {\n finalUrl = item.url ?? '';\n }\n\n return {\n label: labelValue,\n url: finalUrl,\n linkType: item.link_type ?? 'none',\n icon: item.icon,\n };\n });\n}\n\nexport function mapImage(data: any, cdn?: string): UiLibImageI | null {\n if (!data || typeof data !== 'object') return null;\n\n const src = data.url ?? data.src ?? '';\n const fullUrl = src.startsWith('http') ? src : (cdn ?? '') + src;\n \n let publicId = data.public_id ?? data.publicId;\n\n if (!publicId && fullUrl.includes('cloudinary.com')) {\n const match = fullUrl.match(/\\/upload\\/(?:v\\d+\\/)?([^\\.]+)/);\n if (match) {\n publicId = match[1];\n }\n }\n\n return {\n url: fullUrl,\n publicId: publicId,\n alt: data.alt ?? '',\n width: data.width,\n height: data.height,\n format: data.format,\n texts: {\n pretitle: data.texts?.pretitle,\n title: data.texts?.title,\n subtitle: data.texts?.subtitle,\n text: data.texts?.text,\n },\n };\n}\n\nexport function mapImageOrGallery(data: any, cdn?: string): UiLibImageI[] {\n if (!data) return [];\n\n if (data.images && Array.isArray(data.images)) {\n data = data.images;\n }\n\n if (Array.isArray(data)) {\n return data\n .filter((img) => img && typeof img === 'object')\n .map((img) => mapImage(img, cdn))\n .filter((img): img is UiLibImageI => !!img);\n }\n\n const single = mapImage(data, cdn);\n return single ? [single] : [];\n}"],"mappings":"AAEA,SAAgB,WAAW,MAAS;CAChC,IAAI,CAAC,MAAM,QAAQ,IAAI,GAAG,OAAO,CAAA;CAEjC,OAAO,KACF,QAAQ,SAAS,QAAQ,OAAO,SAAS,QAAQ,CAAC,CAClD,KAAK,SAAsB;EACxB,MAAM,aAAa,KAAK,SAAS;EAEjC,IAAI,WAAW;EACf,IAAI,KAAK,cAAc,YACnB,WAAW,KAAK,SAAS,SAAS,KAAM,KAAK,QAAQ;OAErD,WAAW,KAAK,OAAO;EAG3B,OAAO;GACH,OAAO;GACP,KAAK;GACL,UAAU,KAAK,aAAa;GAC5B,MAAM,KAAK;EACd;CACL,CAAC;AACT;AAEA,SAAgB,SAAS,MAAW,KAAY;CAC5C,IAAI,CAAC,QAAQ,OAAO,SAAS,UAAU,OAAO;CAE9C,MAAM,MAAM,KAAK,OAAO,KAAK,OAAO;CACpC,MAAM,UAAU,IAAI,WAAW,MAAM,IAAI,OAAO,OAAO,MAAM;CAE7D,IAAI,WAAW,KAAK,aAAa,KAAK;CAEtC,IAAI,CAAC,YAAY,QAAQ,SAAS,gBAAgB,GAAG;EACjD,MAAM,QAAQ,QAAQ,MAAM,+BAA+B;EAC3D,IAAI,OACA,WAAW,MAAM;CAEzB;CAEA,OAAO;EACH,KAAK;EACK;EACV,KAAK,KAAK,OAAO;EACjB,OAAO,KAAK;EACZ,QAAQ,KAAK;EACb,QAAQ,KAAK;EACb,OAAO;GACH,UAAU,KAAK,OAAO;GACtB,OAAO,KAAK,OAAO;GACnB,UAAU,KAAK,OAAO;GACtB,MAAM,KAAK,OAAO;EACrB;CACJ;AACL;AAEA,SAAgB,kBAAkB,MAAW,KAAY;CACrD,IAAI,CAAC,MAAM,OAAO,CAAA;CAElB,IAAI,KAAK,UAAU,MAAM,QAAQ,KAAK,MAAM,GACxC,OAAO,KAAK;CAGhB,IAAI,MAAM,QAAQ,IAAI,GAClB,OAAO,KACF,QAAQ,QAAQ,OAAO,OAAO,QAAQ,QAAQ,CAAC,CAC/C,KAAK,QAAQ,SAAS,KAAK,GAAG,CAAC,CAAC,CAChC,QAAQ,QAA4B,CAAC,CAAC,GAAG;CAGlD,MAAM,SAAS,SAAS,MAAM,GAAG;CACjC,OAAO,SAAS,CAAC,MAAM,IAAI,CAAA;AAC/B"}
@@ -1,30 +1,45 @@
1
- import * as i0 from '@angular/core';
2
- import { Component } from '@angular/core';
3
-
4
- class UiLibComponent {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: UiLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: UiLibComponent, isStandalone: true, selector: "lib-ui-lib", ngImport: i0, template: `
1
+ import * as i0 from "@angular/core";
2
+ import { Component } from "@angular/core";
3
+ var UiLibComponent = class UiLibComponent {
4
+ static ɵfac = i0.ɵɵngDeclareFactory({
5
+ minVersion: "12.0.0",
6
+ version: "22.2.4",
7
+ ngImport: i0,
8
+ type: UiLibComponent,
9
+ deps: [],
10
+ target: i0.ɵɵFactoryTarget.Component
11
+ });
12
+ static ɵcmp = i0.ɵɵngDeclareComponent({
13
+ minVersion: "14.0.0",
14
+ version: "22.2.4",
15
+ type: UiLibComponent,
16
+ isStandalone: true,
17
+ selector: "lib-ui-lib",
18
+ ngImport: i0,
19
+ template: `
7
20
  <p>ui-lib works!</p>
8
- `, isInline: true, styles: [""] });
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: UiLibComponent, decorators: [{
11
- type: Component,
12
- args: [{ selector: 'lib-ui-lib', standalone: true, imports: [], template: `
21
+ `,
22
+ isInline: true,
23
+ styles: [""]
24
+ });
25
+ };
26
+ i0.ɵɵngDeclareClassMetadata({
27
+ minVersion: "12.0.0",
28
+ version: "22.2.4",
29
+ ngImport: i0,
30
+ type: UiLibComponent,
31
+ decorators: [{
32
+ type: Component,
33
+ args: [{
34
+ selector: "lib-ui-lib",
35
+ standalone: true,
36
+ imports: [],
37
+ template: `
13
38
  <p>ui-lib works!</p>
14
- ` }]
15
- }] });
16
-
17
- /*
18
- * Public API Surface of ui-lib
19
- */
20
- /* COMPONENTS */
21
- // export * from './lib/components/core/index';
22
- // export * from './lib/components/shared/index';
23
- // export * from './lib/pipes/index';
24
-
25
- /**
26
- * Generated bundle index. Do not edit.
27
- */
28
-
39
+ `
40
+ }]
41
+ }]
42
+ });
29
43
  export { UiLibComponent };
30
- //# sourceMappingURL=lluc_llull-ui-lib.mjs.map
44
+
45
+ //# sourceMappingURL=lluc_llull-ui-lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lluc_llull-ui-lib.mjs","sources":["../../../projects/ui-lib/src/lib/ui-lib.component.ts","../../../projects/ui-lib/src/public-api.ts","../../../projects/ui-lib/src/lluc_llull-ui-lib.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-ui-lib',\n standalone: true,\n imports: [],\n template: `\n <p>ui-lib works!</p>\n `,\n styles: ``,\n})\nexport class UiLibComponent {}\n","/*\n * Public API Surface of ui-lib\n */\n\n/* COMPONENTS */\n// export * from './lib/components/core/index';\n// export * from './lib/components/shared/index';\n\n// export * from './lib/pipes/index';\n\nexport * from './lib/ui-lib.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAWa,cAAc,CAAA;wGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EALb;;AAET,IAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAGQ,cAAc,EAAA,UAAA,EAAA,CAAA;kBAT1B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EACD;;AAET,IAAA,CAAA,EAAA;;;ACRL;;AAEG;AAEH;AACA;AACA;AAEA;;ACRA;;AAEG;;;;"}
1
+ {"version":3,"file":"lluc_llull-ui-lib.mjs","names":[],"sources":["../../../projects/ui-lib/src/lib/ui-lib.component.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-ui-lib',\n standalone: true,\n imports: [],\n template: `\n <p>ui-lib works!</p>\n `,\n styles: ``,\n})\nexport class UiLibComponent {}\n"],"mappings":";;AAWA,IAAa,iBAAb,MAAa,eAAc;CAAd,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAc,cAAA;EAAA,UAAA;EAAA,UAAA;EAAA,UALb;;;EAET,UAAA;EAAA,QAAA,CAAA,EAAA;CAAA,CAAA;;AAGQ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAT1B,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAAY,YACV;GAAI,SACP,CAAA;GAAE,UACD;;;EAET,CAAA"}