@lluc_llull/ui-lib 0.33.10 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-asymmetric-media.mjs +85 -28
- package/fesm2022/lluc_llull-ui-lib-content-asymmetric-media.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-category-progress.mjs +81 -30
- package/fesm2022/lluc_llull-ui-lib-content-category-progress.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-columns-media-stacked.mjs +90 -34
- package/fesm2022/lluc_llull-ui-lib-content-columns-media-stacked.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-contact-minimal.mjs +109 -37
- package/fesm2022/lluc_llull-ui-lib-content-contact-minimal.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-content-document.mjs +58 -26
- package/fesm2022/lluc_llull-ui-lib-content-content-document.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-hero-section.mjs +139 -110
- package/fesm2022/lluc_llull-ui-lib-content-hero-section.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-media-intro.mjs +91 -34
- package/fesm2022/lluc_llull-ui-lib-content-media-intro.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-media-split.mjs +118 -76
- package/fesm2022/lluc_llull-ui-lib-content-media-split.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-mosaic-grid.mjs +99 -44
- package/fesm2022/lluc_llull-ui-lib-content-mosaic-grid.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-mosaic-parallax.mjs +109 -57
- package/fesm2022/lluc_llull-ui-lib-content-mosaic-parallax.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-section-intro.mjs +100 -37
- package/fesm2022/lluc_llull-ui-lib-content-section-intro.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-split-previewer.mjs +133 -61
- package/fesm2022/lluc_llull-ui-lib-content-split-previewer.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-split-showcase.mjs +99 -37
- package/fesm2022/lluc_llull-ui-lib-content-split-showcase.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content-stacked-rows.mjs +61 -29
- package/fesm2022/lluc_llull-ui-lib-content-stacked-rows.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-content.mjs +1286 -502
- package/fesm2022/lluc_llull-ui-lib-content.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-directives.mjs +383 -262
- package/fesm2022/lluc_llull-ui-lib-directives.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-effects.mjs +187 -150
- package/fesm2022/lluc_llull-ui-lib-effects.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-enums.mjs +8 -12
- package/fesm2022/lluc_llull-ui-lib-enums.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-feedback-404.mjs +97 -34
- package/fesm2022/lluc_llull-ui-lib-feedback-404.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-feedback.mjs +97 -34
- package/fesm2022/lluc_llull-ui-lib-feedback.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-footers-columns-footer.mjs +65 -27
- package/fesm2022/lluc_llull-ui-lib-footers-columns-footer.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-footers-legal-footer.mjs +74 -37
- package/fesm2022/lluc_llull-ui-lib-footers-legal-footer.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-footers-links-footer.mjs +59 -24
- package/fesm2022/lluc_llull-ui-lib-footers-links-footer.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-footers-social-footer.mjs +95 -32
- package/fesm2022/lluc_llull-ui-lib-footers-social-footer.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-footers-visual-footer.mjs +84 -45
- package/fesm2022/lluc_llull-ui-lib-footers-visual-footer.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-footers.mjs +354 -125
- package/fesm2022/lluc_llull-ui-lib-footers.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-headers-header-clear.mjs +153 -78
- package/fesm2022/lluc_llull-ui-lib-headers-header-clear.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-headers-header-mobile.mjs +153 -78
- package/fesm2022/lluc_llull-ui-lib-headers-header-mobile.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-headers.mjs +296 -142
- package/fesm2022/lluc_llull-ui-lib-headers.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-interfaces.mjs +0 -4
- package/fesm2022/lluc_llull-ui-lib-mapper.mjs +242 -264
- package/fesm2022/lluc_llull-ui-lib-mapper.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-modals.mjs +163 -65
- package/fesm2022/lluc_llull-ui-lib-modals.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-screen-sizer.mjs +106 -97
- package/fesm2022/lluc_llull-ui-lib-screen-sizer.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-shared.mjs +303 -148
- package/fesm2022/lluc_llull-ui-lib-shared.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-sliders.mjs +72 -52
- package/fesm2022/lluc_llull-ui-lib-sliders.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-theme.mjs +78 -80
- package/fesm2022/lluc_llull-ui-lib-theme.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib-utils.mjs +42 -64
- package/fesm2022/lluc_llull-ui-lib-utils.mjs.map +1 -1
- package/fesm2022/lluc_llull-ui-lib.mjs +42 -27
- package/fesm2022/lluc_llull-ui-lib.mjs.map +1 -1
- package/package.json +86 -85
- package/types/lluc_llull-ui-lib-content-asymmetric-media.d.ts +21 -0
- package/types/lluc_llull-ui-lib-content-category-progress.d.ts +34 -0
- package/types/lluc_llull-ui-lib-content-columns-media-stacked.d.ts +33 -0
- package/types/lluc_llull-ui-lib-content-contact-minimal.d.ts +39 -0
- package/types/lluc_llull-ui-lib-content-content-document.d.ts +24 -0
- package/types/lluc_llull-ui-lib-content-hero-section.d.ts +62 -0
- package/types/lluc_llull-ui-lib-content-media-intro.d.ts +33 -0
- package/types/lluc_llull-ui-lib-content-media-split.d.ts +36 -0
- package/types/lluc_llull-ui-lib-content-mosaic-grid.d.ts +27 -0
- package/types/lluc_llull-ui-lib-content-mosaic-parallax.d.ts +35 -0
- package/types/lluc_llull-ui-lib-content-section-intro.d.ts +33 -0
- package/types/lluc_llull-ui-lib-content-split-previewer.d.ts +47 -0
- package/types/lluc_llull-ui-lib-content-split-showcase.d.ts +43 -0
- package/types/lluc_llull-ui-lib-content-stacked-rows.d.ts +30 -0
- package/types/lluc_llull-ui-lib-content.d.ts +471 -0
- package/types/lluc_llull-ui-lib-directives.d.ts +93 -0
- package/types/lluc_llull-ui-lib-effects.d.ts +50 -0
- package/types/lluc_llull-ui-lib-enums.d.ts +7 -0
- package/types/lluc_llull-ui-lib-feedback-404.d.ts +33 -0
- package/types/lluc_llull-ui-lib-feedback.d.ts +33 -0
- package/types/lluc_llull-ui-lib-footers-columns-footer.d.ts +30 -0
- package/types/lluc_llull-ui-lib-footers-legal-footer.d.ts +40 -0
- package/types/lluc_llull-ui-lib-footers-links-footer.d.ts +15 -0
- package/types/lluc_llull-ui-lib-footers-social-footer.d.ts +27 -0
- package/types/lluc_llull-ui-lib-footers-visual-footer.d.ts +57 -0
- package/types/lluc_llull-ui-lib-footers.d.ts +161 -0
- package/types/lluc_llull-ui-lib-headers-header-clear.d.ts +68 -0
- package/types/lluc_llull-ui-lib-headers-header-mobile.d.ts +68 -0
- package/types/lluc_llull-ui-lib-headers.d.ts +132 -0
- package/types/lluc_llull-ui-lib-interfaces.d.ts +92 -0
- package/types/lluc_llull-ui-lib-mapper.d.ts +40 -0
- package/types/lluc_llull-ui-lib-modals.d.ts +47 -0
- package/types/lluc_llull-ui-lib-screen-sizer.d.ts +34 -0
- package/types/lluc_llull-ui-lib-shared.d.ts +99 -0
- package/types/lluc_llull-ui-lib-sliders.d.ts +17 -0
- package/types/lluc_llull-ui-lib-theme.d.ts +16 -0
- package/{utils/utils.d.ts → types/lluc_llull-ui-lib-utils.d.ts} +2 -2
- package/types/lluc_llull-ui-lib.d.ts +5 -0
- package/content/asymmetric-media/asymmetric-media.component.d.ts +0 -8
- package/content/asymmetric-media/asymmetric-media.interface.d.ts +0 -5
- package/content/asymmetric-media/index.d.ts +0 -2
- package/content/category-progress/category-progress.component.d.ts +0 -16
- package/content/category-progress/category-progress.interface.d.ts +0 -6
- package/content/category-progress/index.d.ts +0 -2
- package/content/columns-media-stacked/columns-media-stacked.component.d.ts +0 -10
- package/content/columns-media-stacked/columns-media-stacked.interface.d.ts +0 -7
- package/content/columns-media-stacked/index.d.ts +0 -2
- package/content/contact-minimal/contact-minimal.component.d.ts +0 -11
- package/content/contact-minimal/contact-minimal.interface.d.ts +0 -8
- package/content/contact-minimal/index.d.ts +0 -2
- package/content/content-document/content-document.component.d.ts +0 -11
- package/content/content-document/content-document.interface.d.ts +0 -5
- package/content/content-document/index.d.ts +0 -2
- package/content/hero-section/hero-section.component.d.ts +0 -19
- package/content/hero-section/hero-section.interface.d.ts +0 -11
- package/content/hero-section/hero-section.stories.d.ts +0 -7
- package/content/hero-section/index.d.ts +0 -3
- package/content/index.d.ts +0 -14
- package/content/media-intro/index.d.ts +0 -2
- package/content/media-intro/media-intro.component.d.ts +0 -10
- package/content/media-intro/media-intro.interface.d.ts +0 -7
- package/content/media-split/index.d.ts +0 -2
- package/content/media-split/media-split.component.d.ts +0 -18
- package/content/media-split/media-split.interface.d.ts +0 -6
- package/content/mosaic-grid/index.d.ts +0 -2
- package/content/mosaic-grid/mosaic-grid.component.d.ts +0 -14
- package/content/mosaic-grid/mosaic-grid.interface.d.ts +0 -5
- package/content/mosaic-parallax/index.d.ts +0 -2
- package/content/mosaic-parallax/mosaic-parallax.component.d.ts +0 -17
- package/content/mosaic-parallax/mosaic-parallax.interface.d.ts +0 -6
- package/content/section-intro/index.d.ts +0 -2
- package/content/section-intro/section-intro.component.d.ts +0 -11
- package/content/section-intro/section-intro.interface.d.ts +0 -2
- package/content/split-previewer/index.d.ts +0 -2
- package/content/split-previewer/split-previewer.component.d.ts +0 -24
- package/content/split-previewer/split-previewer.interface.d.ts +0 -8
- package/content/split-showcase/index.d.ts +0 -2
- package/content/split-showcase/split-showcase.component.d.ts +0 -15
- package/content/split-showcase/split-showcase.interface.d.ts +0 -9
- package/content/stacked-rows/index.d.ts +0 -2
- package/content/stacked-rows/stacked-rows.component.d.ts +0 -12
- package/content/stacked-rows/stacked-rows.interface.d.ts +0 -6
- package/directives/header-scroll.directive.d.ts +0 -8
- package/directives/highlight.directive.d.ts +0 -14
- package/directives/index.d.ts +0 -4
- package/directives/link-type.directive.d.ts +0 -26
- package/directives/scroll-reveal.directive.d.ts +0 -15
- package/effects/dynamic-background/dynamic-background.component.d.ts +0 -27
- package/effects/dynamic-background/effects/dynamic-effect.interface.d.ts +0 -6
- package/effects/dynamic-background/effects/effect-registry.d.ts +0 -3
- package/effects/dynamic-background/effects/sphere-deform/sphere-deform.effect.d.ts +0 -13
- package/effects/dynamic-background/index.d.ts +0 -1
- package/effects/index.d.ts +0 -1
- package/enums/index.d.ts +0 -1
- package/enums/link-type.enum.d.ts +0 -7
- package/feedback/404/404.component.d.ts +0 -10
- package/feedback/404/404.inteface.d.ts +0 -7
- package/feedback/404/index.d.ts +0 -2
- package/feedback/index.d.ts +0 -1
- package/fesm2022/lluc_llull-ui-lib-interfaces.mjs.map +0 -1
- package/footers/columns-footer/columns-footer.component.d.ts +0 -17
- package/footers/columns-footer/columns-footer.interface.d.ts +0 -5
- package/footers/columns-footer/index.d.ts +0 -2
- package/footers/index.d.ts +0 -5
- package/footers/legal-footer/index.d.ts +0 -2
- package/footers/legal-footer/legal-footer.component.d.ts +0 -12
- package/footers/legal-footer/legal-footer.interface.d.ts +0 -9
- package/footers/links-footer/index.d.ts +0 -2
- package/footers/links-footer/links-footer.component.d.ts +0 -7
- package/footers/links-footer/links-footer.interface.d.ts +0 -4
- package/footers/social-footer/index.d.ts +0 -2
- package/footers/social-footer/social-footer.component.d.ts +0 -9
- package/footers/social-footer/social-footer.interface.d.ts +0 -6
- package/footers/visual-footer/index.d.ts +0 -2
- package/footers/visual-footer/visual-footer.component.d.ts +0 -14
- package/footers/visual-footer/visual-footer.interface.d.ts +0 -11
- package/headers/header-clear/header-clear.component.d.ts +0 -28
- package/headers/header-clear/header-clear.interface.d.ts +0 -9
- package/headers/header-clear/index.d.ts +0 -2
- package/headers/header-mobile/header-mobile.component.d.ts +0 -28
- package/headers/header-mobile/header-mobile.interface.d.ts +0 -9
- package/headers/header-mobile/index.d.ts +0 -2
- package/headers/index.d.ts +0 -2
- package/index.d.ts +0 -5
- package/interfaces/index.d.ts +0 -8
- package/interfaces/page-config.interface.d.ts +0 -22
- package/interfaces/site-config.interface.d.ts +0 -21
- package/interfaces/ui-lib-address.interface.d.ts +0 -7
- package/interfaces/ui-lib-button.interface.d.ts +0 -7
- package/interfaces/ui-lib-image.interface.d.ts +0 -10
- package/interfaces/ui-lib-lang-item.interface.d.ts +0 -5
- package/interfaces/ui-lib-nav-items.interface.d.ts +0 -17
- package/interfaces/ui-lib-texts.interface.d.ts +0 -6
- package/lib/ui-lib.component.d.ts +0 -5
- package/mapper/cdn.token.d.ts +0 -2
- package/mapper/cloudinary.token.d.ts +0 -2
- package/mapper/component-mappers/404.mapper.d.ts +0 -2
- package/mapper/component-mappers/asymmetric-media.mapper.d.ts +0 -2
- package/mapper/component-mappers/category-progress.mapper.d.ts +0 -2
- package/mapper/component-mappers/columns-footer.mapper.d.ts +0 -2
- package/mapper/component-mappers/columns-media-stacked.mapper.d.ts +0 -2
- package/mapper/component-mappers/contact-minimal.mapper.d.ts +0 -2
- package/mapper/component-mappers/content-document.mapper.d.ts +0 -2
- package/mapper/component-mappers/header-clear.mapper.d.ts +0 -2
- package/mapper/component-mappers/hero-section.mapper.d.ts +0 -2
- package/mapper/component-mappers/index.d.ts +0 -24
- package/mapper/component-mappers/lang-modal.mapper.d.ts +0 -2
- package/mapper/component-mappers/legal-footer.mapper.d.ts +0 -2
- package/mapper/component-mappers/links-footer.mapper.d.ts +0 -2
- package/mapper/component-mappers/media-intro.mapper.d.ts +0 -2
- package/mapper/component-mappers/media-split.mapper.d.ts +0 -2
- package/mapper/component-mappers/mosaic-grid.mapper.d.ts +0 -2
- package/mapper/component-mappers/mosaic-parallax.mapper.d.ts +0 -2
- package/mapper/component-mappers/nav-modal.mapper.d.ts +0 -3
- package/mapper/component-mappers/section-intro.mapper.d.ts +0 -2
- package/mapper/component-mappers/social-footer.mapper.d.ts +0 -2
- package/mapper/component-mappers/split-previewer.mapper.d.ts +0 -2
- package/mapper/component-mappers/split-showcase.mapper.d.ts +0 -2
- package/mapper/component-mappers/stacked-rows.mapper.d.ts +0 -2
- package/mapper/component-mappers/types.d.ts +0 -1
- package/mapper/component-mappers/visual-footer.mapper.d.ts +0 -2
- package/mapper/index.d.ts +0 -4
- package/mapper/mapper.service.d.ts +0 -10
- package/modals/index.d.ts +0 -2
- package/modals/lang-modal/index.d.ts +0 -2
- package/modals/lang-modal/lang-modal.component.d.ts +0 -18
- package/modals/lang-modal/lang-modal.interface.d.ts +0 -2
- package/modals/nav-modal/index.d.ts +0 -2
- package/modals/nav-modal/nav-modal.component.d.ts +0 -11
- package/modals/nav-modal/nav-modal.interface.d.ts +0 -5
- package/public-api.d.ts +0 -1
- package/screen-sizer/index.d.ts +0 -1
- package/screen-sizer/screen-sizer.service.d.ts +0 -34
- package/shared/index.d.ts +0 -2
- package/shared/ui-icon/index.d.ts +0 -3
- package/shared/ui-icon/ui-icon.component.d.ts +0 -15
- package/shared/ui-icon/ui-icon.interface.d.ts +0 -5
- package/shared/ui-icon/ui-icon.mock.d.ts +0 -8
- package/shared/ui-image/index.d.ts +0 -1
- package/shared/ui-image/ui-image.component.d.ts +0 -21
- package/sliders/index.d.ts +0 -1
- package/sliders/swiper.directive.d.ts +0 -12
- package/theme/index.d.ts +0 -1
- package/theme/theme.service.d.ts +0 -16
- package/utils/index.d.ts +0 -1
|
@@ -1,267 +1,388 @@
|
|
|
1
|
-
import { isPlatformBrowser } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import { EventEmitter,
|
|
4
|
-
|
|
5
|
-
import * as i1 from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
1
|
+
import { isPlatformBrowser } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Directive, EventEmitter, HostBinding, HostListener, Inject, Input, Output, PLATFORM_ID } from "@angular/core";
|
|
4
|
+
import { LinkType } from "@lluc_llull/ui-lib/enums";
|
|
5
|
+
import * as i1 from "@angular/router";
|
|
6
|
+
var LinkTypeDirective = class LinkTypeDirective {
|
|
7
|
+
router;
|
|
8
|
+
elRef;
|
|
9
|
+
platformId;
|
|
10
|
+
_linkType;
|
|
11
|
+
_href;
|
|
12
|
+
set linkType(value) {
|
|
13
|
+
this._linkType = value;
|
|
14
|
+
this.updateElementAttributes();
|
|
15
|
+
}
|
|
16
|
+
get linkType() {
|
|
17
|
+
return this._linkType;
|
|
18
|
+
}
|
|
19
|
+
set href(value) {
|
|
20
|
+
this._href = value;
|
|
21
|
+
this.updateElementAttributes();
|
|
22
|
+
}
|
|
23
|
+
get href() {
|
|
24
|
+
return this._href ?? "";
|
|
25
|
+
}
|
|
26
|
+
anchorClicked = new EventEmitter();
|
|
27
|
+
constructor(router, elRef, platformId) {
|
|
28
|
+
this.router = router;
|
|
29
|
+
this.elRef = elRef;
|
|
30
|
+
this.platformId = platformId;
|
|
31
|
+
}
|
|
32
|
+
get isBrowser() {
|
|
33
|
+
return isPlatformBrowser(this.platformId);
|
|
34
|
+
}
|
|
35
|
+
onClick(event) {
|
|
36
|
+
if (!this.linkType || !this.href) return;
|
|
37
|
+
switch (this.linkType) {
|
|
38
|
+
case "internal":
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
const targetUrl = this.elRef.nativeElement.getAttribute("href") ?? this.href;
|
|
41
|
+
this.router.navigateByUrl(targetUrl);
|
|
42
|
+
this.anchorClicked.emit();
|
|
43
|
+
break;
|
|
44
|
+
case "anchor":
|
|
45
|
+
event.preventDefault();
|
|
46
|
+
this.scrollToAnchor(this.href);
|
|
47
|
+
break;
|
|
48
|
+
case "nolink": event.preventDefault();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
updateElementAttributes() {
|
|
52
|
+
const element = this.elRef.nativeElement;
|
|
53
|
+
if (!this.href) {
|
|
54
|
+
element.removeAttribute("href");
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const resolvedHref = this.resolveHref();
|
|
58
|
+
element.setAttribute("href", resolvedHref);
|
|
59
|
+
if (this.linkType === "external" || this.linkType === "pdf") {
|
|
60
|
+
element.setAttribute("target", "_blank");
|
|
61
|
+
element.setAttribute("rel", "noopener noreferrer nofollow");
|
|
62
|
+
} else {
|
|
63
|
+
element.removeAttribute("target");
|
|
64
|
+
element.removeAttribute("rel");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
resolveHref() {
|
|
68
|
+
if (this.href.startsWith("/") || this.href.startsWith("http") || this.href.startsWith("#")) return this.href;
|
|
69
|
+
if (this.linkType === "internal") return `/${this.getCurrentLang()}/${this.href}`;
|
|
70
|
+
return this.href;
|
|
71
|
+
}
|
|
72
|
+
getCurrentLang() {
|
|
73
|
+
return (this.router.url || "").split("?")[0].split("#")[0].split("/")[1] || "es";
|
|
74
|
+
}
|
|
75
|
+
scrollToAnchor(id) {
|
|
76
|
+
if (!this.isBrowser) return;
|
|
77
|
+
const cleanId = id.replace(/^#/, "");
|
|
78
|
+
const el = document.getElementById(cleanId);
|
|
79
|
+
if (!el) return;
|
|
80
|
+
const y = el.getBoundingClientRect().top + window.scrollY + -160;
|
|
81
|
+
window.scrollTo({
|
|
82
|
+
top: y,
|
|
83
|
+
behavior: "smooth"
|
|
84
|
+
});
|
|
85
|
+
this.anchorClicked.emit();
|
|
86
|
+
}
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
88
|
+
minVersion: "12.0.0",
|
|
89
|
+
version: "22.2.4",
|
|
90
|
+
ngImport: i0,
|
|
91
|
+
type: LinkTypeDirective,
|
|
92
|
+
deps: [
|
|
93
|
+
{ token: i1.Router },
|
|
94
|
+
{ token: i0.ElementRef },
|
|
95
|
+
{ token: PLATFORM_ID }
|
|
96
|
+
],
|
|
97
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
98
|
+
});
|
|
99
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
100
|
+
minVersion: "14.0.0",
|
|
101
|
+
version: "22.2.4",
|
|
102
|
+
type: LinkTypeDirective,
|
|
103
|
+
isStandalone: true,
|
|
104
|
+
selector: "[linkType]",
|
|
105
|
+
inputs: {
|
|
106
|
+
linkType: "linkType",
|
|
107
|
+
href: "href"
|
|
108
|
+
},
|
|
109
|
+
outputs: { anchorClicked: "anchorClicked" },
|
|
110
|
+
host: { listeners: { "click": "onClick($event)" } },
|
|
111
|
+
ngImport: i0
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
115
|
+
minVersion: "12.0.0",
|
|
116
|
+
version: "22.2.4",
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
type: LinkTypeDirective,
|
|
119
|
+
decorators: [{
|
|
120
|
+
type: Directive,
|
|
121
|
+
args: [{
|
|
122
|
+
selector: "[linkType]",
|
|
123
|
+
standalone: true
|
|
124
|
+
}]
|
|
125
|
+
}],
|
|
126
|
+
ctorParameters: () => [
|
|
127
|
+
{ type: i1.Router },
|
|
128
|
+
{ type: i0.ElementRef },
|
|
129
|
+
{
|
|
130
|
+
type: Object,
|
|
131
|
+
decorators: [{
|
|
132
|
+
type: Inject,
|
|
133
|
+
args: [PLATFORM_ID]
|
|
134
|
+
}]
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
propDecorators: {
|
|
138
|
+
linkType: [{ type: Input }],
|
|
139
|
+
href: [{ type: Input }],
|
|
140
|
+
anchorClicked: [{ type: Output }],
|
|
141
|
+
onClick: [{
|
|
142
|
+
type: HostListener,
|
|
143
|
+
args: ["click", ["$event"]]
|
|
144
|
+
}]
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
var HighlightDirective = class HighlightDirective {
|
|
148
|
+
highlightColor = "#FFFFFF";
|
|
149
|
+
highlightThickness = 20;
|
|
150
|
+
get background() {
|
|
151
|
+
const start = 65;
|
|
152
|
+
const end = start + this.highlightThickness;
|
|
153
|
+
return `linear-gradient(to bottom,
|
|
132
154
|
transparent ${start}%,
|
|
133
155
|
${this.highlightColor} ${start}%,
|
|
134
156
|
${this.highlightColor} ${end}%,
|
|
135
157
|
transparent ${end}%)`;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
158
|
+
}
|
|
159
|
+
size = "100% 100%";
|
|
160
|
+
display = "inline";
|
|
161
|
+
padding = "0 10px";
|
|
162
|
+
margin = "0 -10px";
|
|
163
|
+
break = "clone";
|
|
164
|
+
wBreak = "clone";
|
|
165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
166
|
+
minVersion: "12.0.0",
|
|
167
|
+
version: "22.2.4",
|
|
168
|
+
ngImport: i0,
|
|
169
|
+
type: HighlightDirective,
|
|
170
|
+
deps: [],
|
|
171
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
172
|
+
});
|
|
173
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
174
|
+
minVersion: "14.0.0",
|
|
175
|
+
version: "22.2.4",
|
|
176
|
+
type: HighlightDirective,
|
|
177
|
+
isStandalone: true,
|
|
178
|
+
selector: "[highlight]",
|
|
179
|
+
inputs: {
|
|
180
|
+
highlightColor: ["highlight", "highlightColor"],
|
|
181
|
+
highlightThickness: "highlightThickness"
|
|
182
|
+
},
|
|
183
|
+
host: { properties: {
|
|
184
|
+
"style.background-image": "this.background",
|
|
185
|
+
"style.background-size": "this.size",
|
|
186
|
+
"style.display": "this.display",
|
|
187
|
+
"style.padding": "this.padding",
|
|
188
|
+
"style.margin": "this.margin",
|
|
189
|
+
"style.box-decoration-break": "this.break",
|
|
190
|
+
"style.-webkit-box-decoration-break": "this.wBreak"
|
|
191
|
+
} },
|
|
192
|
+
ngImport: i0
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
196
|
+
minVersion: "12.0.0",
|
|
197
|
+
version: "22.2.4",
|
|
198
|
+
ngImport: i0,
|
|
199
|
+
type: HighlightDirective,
|
|
200
|
+
decorators: [{
|
|
201
|
+
type: Directive,
|
|
202
|
+
args: [{
|
|
203
|
+
selector: "[highlight]",
|
|
204
|
+
standalone: true
|
|
205
|
+
}]
|
|
206
|
+
}],
|
|
207
|
+
propDecorators: {
|
|
208
|
+
highlightColor: [{
|
|
209
|
+
type: Input,
|
|
210
|
+
args: ["highlight"]
|
|
211
|
+
}],
|
|
212
|
+
highlightThickness: [{ type: Input }],
|
|
213
|
+
background: [{
|
|
214
|
+
type: HostBinding,
|
|
215
|
+
args: ["style.background-image"]
|
|
216
|
+
}],
|
|
217
|
+
size: [{
|
|
218
|
+
type: HostBinding,
|
|
219
|
+
args: ["style.background-size"]
|
|
220
|
+
}],
|
|
221
|
+
display: [{
|
|
222
|
+
type: HostBinding,
|
|
223
|
+
args: ["style.display"]
|
|
224
|
+
}],
|
|
225
|
+
padding: [{
|
|
226
|
+
type: HostBinding,
|
|
227
|
+
args: ["style.padding"]
|
|
228
|
+
}],
|
|
229
|
+
margin: [{
|
|
230
|
+
type: HostBinding,
|
|
231
|
+
args: ["style.margin"]
|
|
232
|
+
}],
|
|
233
|
+
break: [{
|
|
234
|
+
type: HostBinding,
|
|
235
|
+
args: ["style.box-decoration-break"]
|
|
236
|
+
}],
|
|
237
|
+
wBreak: [{
|
|
238
|
+
type: HostBinding,
|
|
239
|
+
args: ["style.-webkit-box-decoration-break"]
|
|
240
|
+
}]
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
var ScrollRevealDirective = class ScrollRevealDirective {
|
|
244
|
+
el;
|
|
245
|
+
renderer;
|
|
246
|
+
platformId;
|
|
247
|
+
distance = "30px";
|
|
248
|
+
duration = "0.8s";
|
|
249
|
+
constructor(el, renderer, platformId) {
|
|
250
|
+
this.el = el;
|
|
251
|
+
this.renderer = renderer;
|
|
252
|
+
this.platformId = platformId;
|
|
253
|
+
}
|
|
254
|
+
ngOnInit() {
|
|
255
|
+
this.setupInitialStyles();
|
|
256
|
+
const isBrowser = isPlatformBrowser(this.platformId);
|
|
257
|
+
const hasIntersectionObserver = typeof globalThis !== "undefined" && "IntersectionObserver" in globalThis;
|
|
258
|
+
if (!isBrowser || !hasIntersectionObserver) {
|
|
259
|
+
this.reveal();
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const observer = new IntersectionObserver((entries) => {
|
|
263
|
+
entries.forEach((entry) => {
|
|
264
|
+
if (entry.isIntersecting) {
|
|
265
|
+
this.reveal();
|
|
266
|
+
observer.unobserve(this.el.nativeElement);
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
}, { threshold: .1 });
|
|
270
|
+
observer.observe(this.el.nativeElement);
|
|
271
|
+
}
|
|
272
|
+
setupInitialStyles() {
|
|
273
|
+
this.renderer.setStyle(this.el.nativeElement, "opacity", "0");
|
|
274
|
+
this.renderer.setStyle(this.el.nativeElement, "transform", `translateY(-${this.distance})`);
|
|
275
|
+
this.renderer.setStyle(this.el.nativeElement, "transition", `all ${this.duration} ease-out`);
|
|
276
|
+
}
|
|
277
|
+
reveal() {
|
|
278
|
+
this.renderer.setStyle(this.el.nativeElement, "opacity", "1");
|
|
279
|
+
this.renderer.setStyle(this.el.nativeElement, "transform", "translateY(0)");
|
|
280
|
+
}
|
|
281
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
282
|
+
minVersion: "12.0.0",
|
|
283
|
+
version: "22.2.4",
|
|
284
|
+
ngImport: i0,
|
|
285
|
+
type: ScrollRevealDirective,
|
|
286
|
+
deps: [
|
|
287
|
+
{ token: i0.ElementRef },
|
|
288
|
+
{ token: i0.Renderer2 },
|
|
289
|
+
{ token: PLATFORM_ID }
|
|
290
|
+
],
|
|
291
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
292
|
+
});
|
|
293
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
294
|
+
minVersion: "14.0.0",
|
|
295
|
+
version: "22.2.4",
|
|
296
|
+
type: ScrollRevealDirective,
|
|
297
|
+
isStandalone: true,
|
|
298
|
+
selector: "[scrollReveal]",
|
|
299
|
+
inputs: {
|
|
300
|
+
distance: "distance",
|
|
301
|
+
duration: "duration"
|
|
302
|
+
},
|
|
303
|
+
ngImport: i0
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
307
|
+
minVersion: "12.0.0",
|
|
308
|
+
version: "22.2.4",
|
|
309
|
+
ngImport: i0,
|
|
310
|
+
type: ScrollRevealDirective,
|
|
311
|
+
decorators: [{
|
|
312
|
+
type: Directive,
|
|
313
|
+
args: [{
|
|
314
|
+
selector: "[scrollReveal]",
|
|
315
|
+
standalone: true
|
|
316
|
+
}]
|
|
317
|
+
}],
|
|
318
|
+
ctorParameters: () => [
|
|
319
|
+
{ type: i0.ElementRef },
|
|
320
|
+
{ type: i0.Renderer2 },
|
|
321
|
+
{
|
|
322
|
+
type: Object,
|
|
323
|
+
decorators: [{
|
|
324
|
+
type: Inject,
|
|
325
|
+
args: [PLATFORM_ID]
|
|
326
|
+
}]
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
propDecorators: {
|
|
330
|
+
distance: [{ type: Input }],
|
|
331
|
+
duration: [{ type: Input }]
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
var HeaderScrollDirective = class HeaderScrollDirective {
|
|
335
|
+
scrollThreshold = 60;
|
|
336
|
+
isScrolled = false;
|
|
337
|
+
onScroll() {
|
|
338
|
+
this.isScrolled = window.scrollY > this.scrollThreshold;
|
|
339
|
+
}
|
|
340
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
341
|
+
minVersion: "12.0.0",
|
|
342
|
+
version: "22.2.4",
|
|
343
|
+
ngImport: i0,
|
|
344
|
+
type: HeaderScrollDirective,
|
|
345
|
+
deps: [],
|
|
346
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
347
|
+
});
|
|
348
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
349
|
+
minVersion: "14.0.0",
|
|
350
|
+
version: "22.2.4",
|
|
351
|
+
type: HeaderScrollDirective,
|
|
352
|
+
isStandalone: true,
|
|
353
|
+
selector: "[headerScroll]",
|
|
354
|
+
inputs: { scrollThreshold: "scrollThreshold" },
|
|
355
|
+
host: {
|
|
356
|
+
listeners: { "window:scroll": "onScroll()" },
|
|
357
|
+
properties: { "class.is-scrolled": "this.isScrolled" }
|
|
358
|
+
},
|
|
359
|
+
ngImport: i0
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
363
|
+
minVersion: "12.0.0",
|
|
364
|
+
version: "22.2.4",
|
|
365
|
+
ngImport: i0,
|
|
366
|
+
type: HeaderScrollDirective,
|
|
367
|
+
decorators: [{
|
|
368
|
+
type: Directive,
|
|
369
|
+
args: [{
|
|
370
|
+
selector: "[headerScroll]",
|
|
371
|
+
standalone: true
|
|
372
|
+
}]
|
|
373
|
+
}],
|
|
374
|
+
propDecorators: {
|
|
375
|
+
scrollThreshold: [{ type: Input }],
|
|
376
|
+
isScrolled: [{
|
|
377
|
+
type: HostBinding,
|
|
378
|
+
args: ["class.is-scrolled"]
|
|
379
|
+
}],
|
|
380
|
+
onScroll: [{
|
|
381
|
+
type: HostListener,
|
|
382
|
+
args: ["window:scroll", []]
|
|
383
|
+
}]
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
export { HeaderScrollDirective, HighlightDirective, LinkType, LinkTypeDirective, ScrollRevealDirective };
|
|
265
387
|
|
|
266
|
-
|
|
267
|
-
//# sourceMappingURL=lluc_llull-ui-lib-directives.mjs.map
|
|
388
|
+
//# sourceMappingURL=lluc_llull-ui-lib-directives.mjs.map
|