@hyalo/angular 0.0.0-stage → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/LICENSE +21 -0
  3. package/README.md +45 -2
  4. package/fesm2022/hyalo-angular-accordion.mjs +230 -0
  5. package/fesm2022/hyalo-angular-accordion.mjs.map +1 -0
  6. package/fesm2022/hyalo-angular-alert.mjs +171 -0
  7. package/fesm2022/hyalo-angular-alert.mjs.map +1 -0
  8. package/fesm2022/hyalo-angular-aspect-ratio.mjs +64 -0
  9. package/fesm2022/hyalo-angular-aspect-ratio.mjs.map +1 -0
  10. package/fesm2022/hyalo-angular-avatar.mjs +169 -0
  11. package/fesm2022/hyalo-angular-avatar.mjs.map +1 -0
  12. package/fesm2022/hyalo-angular-badge.mjs +268 -0
  13. package/fesm2022/hyalo-angular-badge.mjs.map +1 -0
  14. package/fesm2022/hyalo-angular-bento.mjs +132 -0
  15. package/fesm2022/hyalo-angular-bento.mjs.map +1 -0
  16. package/fesm2022/hyalo-angular-blocks.mjs +985 -0
  17. package/fesm2022/hyalo-angular-blocks.mjs.map +1 -0
  18. package/fesm2022/hyalo-angular-border-beam.mjs +73 -0
  19. package/fesm2022/hyalo-angular-border-beam.mjs.map +1 -0
  20. package/fesm2022/hyalo-angular-breadcrumb.mjs +77 -0
  21. package/fesm2022/hyalo-angular-breadcrumb.mjs.map +1 -0
  22. package/fesm2022/hyalo-angular-button-group.mjs +90 -0
  23. package/fesm2022/hyalo-angular-button-group.mjs.map +1 -0
  24. package/fesm2022/hyalo-angular-button.mjs +204 -0
  25. package/fesm2022/hyalo-angular-button.mjs.map +1 -0
  26. package/fesm2022/hyalo-angular-card.mjs +221 -0
  27. package/fesm2022/hyalo-angular-card.mjs.map +1 -0
  28. package/fesm2022/hyalo-angular-carousel.mjs +709 -0
  29. package/fesm2022/hyalo-angular-carousel.mjs.map +1 -0
  30. package/fesm2022/hyalo-angular-chapter-nav.mjs +336 -0
  31. package/fesm2022/hyalo-angular-chapter-nav.mjs.map +1 -0
  32. package/fesm2022/hyalo-angular-chart-engine-DSJop6He.mjs +5 -0
  33. package/fesm2022/hyalo-angular-chart-engine-DSJop6He.mjs.map +1 -0
  34. package/fesm2022/hyalo-angular-chart.mjs +391 -0
  35. package/fesm2022/hyalo-angular-chart.mjs.map +1 -0
  36. package/fesm2022/hyalo-angular-choice.mjs +789 -0
  37. package/fesm2022/hyalo-angular-choice.mjs.map +1 -0
  38. package/fesm2022/hyalo-angular-code-block-highlight-B20d5C76.mjs +40 -0
  39. package/fesm2022/hyalo-angular-code-block-highlight-B20d5C76.mjs.map +1 -0
  40. package/fesm2022/hyalo-angular-code-block.mjs +161 -0
  41. package/fesm2022/hyalo-angular-code-block.mjs.map +1 -0
  42. package/fesm2022/hyalo-angular-command.mjs +193 -0
  43. package/fesm2022/hyalo-angular-command.mjs.map +1 -0
  44. package/fesm2022/hyalo-angular-copy.mjs +138 -0
  45. package/fesm2022/hyalo-angular-copy.mjs.map +1 -0
  46. package/fesm2022/hyalo-angular-core.mjs +424 -0
  47. package/fesm2022/hyalo-angular-core.mjs.map +1 -0
  48. package/fesm2022/hyalo-angular-description-list.mjs +57 -0
  49. package/fesm2022/hyalo-angular-description-list.mjs.map +1 -0
  50. package/fesm2022/hyalo-angular-dialog.mjs +600 -0
  51. package/fesm2022/hyalo-angular-dialog.mjs.map +1 -0
  52. package/fesm2022/hyalo-angular-divider.mjs +66 -0
  53. package/fesm2022/hyalo-angular-divider.mjs.map +1 -0
  54. package/fesm2022/hyalo-angular-empty-state.mjs +123 -0
  55. package/fesm2022/hyalo-angular-empty-state.mjs.map +1 -0
  56. package/fesm2022/hyalo-angular-field.mjs +344 -0
  57. package/fesm2022/hyalo-angular-field.mjs.map +1 -0
  58. package/fesm2022/hyalo-angular-filter.mjs +309 -0
  59. package/fesm2022/hyalo-angular-filter.mjs.map +1 -0
  60. package/fesm2022/hyalo-angular-hotspot.mjs +225 -0
  61. package/fesm2022/hyalo-angular-hotspot.mjs.map +1 -0
  62. package/fesm2022/hyalo-angular-hover-card.mjs +233 -0
  63. package/fesm2022/hyalo-angular-hover-card.mjs.map +1 -0
  64. package/fesm2022/hyalo-angular-icon.mjs +385 -0
  65. package/fesm2022/hyalo-angular-icon.mjs.map +1 -0
  66. package/fesm2022/hyalo-angular-image-compare.mjs +168 -0
  67. package/fesm2022/hyalo-angular-image-compare.mjs.map +1 -0
  68. package/fesm2022/hyalo-angular-interaction.mjs +446 -0
  69. package/fesm2022/hyalo-angular-interaction.mjs.map +1 -0
  70. package/fesm2022/hyalo-angular-kbd.mjs +41 -0
  71. package/fesm2022/hyalo-angular-kbd.mjs.map +1 -0
  72. package/fesm2022/hyalo-angular-lightbox.mjs +228 -0
  73. package/fesm2022/hyalo-angular-lightbox.mjs.map +1 -0
  74. package/fesm2022/hyalo-angular-link.mjs +42 -0
  75. package/fesm2022/hyalo-angular-link.mjs.map +1 -0
  76. package/fesm2022/hyalo-angular-list.mjs +131 -0
  77. package/fesm2022/hyalo-angular-list.mjs.map +1 -0
  78. package/fesm2022/hyalo-angular-marquee.mjs +197 -0
  79. package/fesm2022/hyalo-angular-marquee.mjs.map +1 -0
  80. package/fesm2022/hyalo-angular-menu.mjs +423 -0
  81. package/fesm2022/hyalo-angular-menu.mjs.map +1 -0
  82. package/fesm2022/hyalo-angular-mesh.mjs +126 -0
  83. package/fesm2022/hyalo-angular-mesh.mjs.map +1 -0
  84. package/fesm2022/hyalo-angular-motion.mjs +620 -0
  85. package/fesm2022/hyalo-angular-motion.mjs.map +1 -0
  86. package/fesm2022/hyalo-angular-navbar.mjs +343 -0
  87. package/fesm2022/hyalo-angular-navbar.mjs.map +1 -0
  88. package/fesm2022/hyalo-angular-navigation-menu.mjs +222 -0
  89. package/fesm2022/hyalo-angular-navigation-menu.mjs.map +1 -0
  90. package/fesm2022/hyalo-angular-number-ticker.mjs +174 -0
  91. package/fesm2022/hyalo-angular-number-ticker.mjs.map +1 -0
  92. package/fesm2022/hyalo-angular-overlay.mjs +163 -0
  93. package/fesm2022/hyalo-angular-overlay.mjs.map +1 -0
  94. package/fesm2022/hyalo-angular-pagination.mjs +187 -0
  95. package/fesm2022/hyalo-angular-pagination.mjs.map +1 -0
  96. package/fesm2022/hyalo-angular-popover-overlay-kit-6wPwnxln.mjs +3 -0
  97. package/fesm2022/hyalo-angular-popover.mjs +516 -0
  98. package/fesm2022/hyalo-angular-popover.mjs.map +1 -0
  99. package/fesm2022/hyalo-angular-progress.mjs +209 -0
  100. package/fesm2022/hyalo-angular-progress.mjs.map +1 -0
  101. package/fesm2022/hyalo-angular-progressive-blur.mjs +73 -0
  102. package/fesm2022/hyalo-angular-progressive-blur.mjs.map +1 -0
  103. package/fesm2022/hyalo-angular-refraction-renderer-5ZA-kfsA.mjs +186 -0
  104. package/fesm2022/hyalo-angular-refraction-renderer-5ZA-kfsA.mjs.map +1 -0
  105. package/fesm2022/hyalo-angular-refraction.mjs +178 -0
  106. package/fesm2022/hyalo-angular-refraction.mjs.map +1 -0
  107. package/fesm2022/hyalo-angular-scroll-area.mjs +93 -0
  108. package/fesm2022/hyalo-angular-scroll-area.mjs.map +1 -0
  109. package/fesm2022/hyalo-angular-scroll-to-top.mjs +127 -0
  110. package/fesm2022/hyalo-angular-scroll-to-top.mjs.map +1 -0
  111. package/fesm2022/hyalo-angular-segmented.mjs +223 -0
  112. package/fesm2022/hyalo-angular-segmented.mjs.map +1 -0
  113. package/fesm2022/hyalo-angular-select.mjs +561 -0
  114. package/fesm2022/hyalo-angular-select.mjs.map +1 -0
  115. package/fesm2022/hyalo-angular-sidebar.mjs +241 -0
  116. package/fesm2022/hyalo-angular-sidebar.mjs.map +1 -0
  117. package/fesm2022/hyalo-angular-skeleton.mjs +131 -0
  118. package/fesm2022/hyalo-angular-skeleton.mjs.map +1 -0
  119. package/fesm2022/hyalo-angular-sparkline.mjs +110 -0
  120. package/fesm2022/hyalo-angular-sparkline.mjs.map +1 -0
  121. package/fesm2022/hyalo-angular-split-text.mjs +126 -0
  122. package/fesm2022/hyalo-angular-split-text.mjs.map +1 -0
  123. package/fesm2022/hyalo-angular-stat.mjs +193 -0
  124. package/fesm2022/hyalo-angular-stat.mjs.map +1 -0
  125. package/fesm2022/hyalo-angular-stepper.mjs +254 -0
  126. package/fesm2022/hyalo-angular-stepper.mjs.map +1 -0
  127. package/fesm2022/hyalo-angular-table.mjs +335 -0
  128. package/fesm2022/hyalo-angular-table.mjs.map +1 -0
  129. package/fesm2022/hyalo-angular-tabs.mjs +324 -0
  130. package/fesm2022/hyalo-angular-tabs.mjs.map +1 -0
  131. package/fesm2022/hyalo-angular-theme.mjs +94 -0
  132. package/fesm2022/hyalo-angular-theme.mjs.map +1 -0
  133. package/fesm2022/hyalo-angular-timeline.mjs +157 -0
  134. package/fesm2022/hyalo-angular-timeline.mjs.map +1 -0
  135. package/fesm2022/hyalo-angular-toast.mjs +323 -0
  136. package/fesm2022/hyalo-angular-toast.mjs.map +1 -0
  137. package/fesm2022/hyalo-angular.mjs +2 -0
  138. package/package.json +329 -3
  139. package/styles/hyalo-core.css +25 -0
  140. package/styles/hyalo.css +17 -0
  141. package/styles/overlays/dialog.css +9 -0
  142. package/styles/overlays/popover.css +9 -0
  143. package/styles/overlays/select.css +9 -0
  144. package/styles/overlays/toast.css +8 -0
  145. package/styles/palettes/aurora.css +47 -0
  146. package/styles/palettes/ember.css +47 -0
  147. package/styles/palettes/graphite.css +47 -0
  148. package/styles/palettes/ocean.css +47 -0
  149. package/styles/palettes/orchid.css +47 -0
  150. package/styles/palettes/rose.css +47 -0
  151. package/styles/parts/card.css +49 -0
  152. package/styles/parts/dialog.css +116 -0
  153. package/styles/parts/drawer.css +124 -0
  154. package/styles/parts/field.css +44 -0
  155. package/styles/parts/glass.css +139 -0
  156. package/styles/parts/motion.css +101 -0
  157. package/styles/parts/navbar.css +55 -0
  158. package/styles/parts/popover.css +27 -0
  159. package/styles/parts/presence.css +55 -0
  160. package/styles/parts/reset.css +42 -0
  161. package/styles/parts/select.css +46 -0
  162. package/styles/parts/themes.css +105 -0
  163. package/styles/parts/toast.css +128 -0
  164. package/styles/parts/tokens.css +151 -0
  165. package/styles/parts/typography.css +81 -0
  166. package/types/hyalo-angular-accordion.d.ts +74 -0
  167. package/types/hyalo-angular-alert.d.ts +47 -0
  168. package/types/hyalo-angular-aspect-ratio.d.ts +13 -0
  169. package/types/hyalo-angular-avatar.d.ts +39 -0
  170. package/types/hyalo-angular-badge.d.ts +82 -0
  171. package/types/hyalo-angular-bento.d.ts +25 -0
  172. package/types/hyalo-angular-blocks.d.ts +272 -0
  173. package/types/hyalo-angular-border-beam.d.ts +15 -0
  174. package/types/hyalo-angular-breadcrumb.d.ts +22 -0
  175. package/types/hyalo-angular-button-group.d.ts +19 -0
  176. package/types/hyalo-angular-button.d.ts +89 -0
  177. package/types/hyalo-angular-card.d.ts +61 -0
  178. package/types/hyalo-angular-carousel.d.ts +147 -0
  179. package/types/hyalo-angular-chapter-nav.d.ts +79 -0
  180. package/types/hyalo-angular-chart.d.ts +90 -0
  181. package/types/hyalo-angular-choice.d.ts +259 -0
  182. package/types/hyalo-angular-code-block.d.ts +46 -0
  183. package/types/hyalo-angular-command.d.ts +41 -0
  184. package/types/hyalo-angular-copy.d.ts +39 -0
  185. package/types/hyalo-angular-core.d.ts +210 -0
  186. package/types/hyalo-angular-description-list.d.ts +16 -0
  187. package/types/hyalo-angular-dialog.d.ts +171 -0
  188. package/types/hyalo-angular-divider.d.ts +12 -0
  189. package/types/hyalo-angular-empty-state.d.ts +30 -0
  190. package/types/hyalo-angular-field.d.ts +141 -0
  191. package/types/hyalo-angular-filter.d.ts +122 -0
  192. package/types/hyalo-angular-hotspot.d.ts +70 -0
  193. package/types/hyalo-angular-hover-card.d.ts +47 -0
  194. package/types/hyalo-angular-icon.d.ts +122 -0
  195. package/types/hyalo-angular-image-compare.d.ts +55 -0
  196. package/types/hyalo-angular-interaction.d.ts +131 -0
  197. package/types/hyalo-angular-kbd.d.ts +5 -0
  198. package/types/hyalo-angular-lightbox.d.ts +67 -0
  199. package/types/hyalo-angular-link.d.ts +5 -0
  200. package/types/hyalo-angular-list.d.ts +30 -0
  201. package/types/hyalo-angular-marquee.d.ts +48 -0
  202. package/types/hyalo-angular-menu.d.ts +105 -0
  203. package/types/hyalo-angular-mesh.d.ts +36 -0
  204. package/types/hyalo-angular-motion.d.ts +218 -0
  205. package/types/hyalo-angular-navbar.d.ts +110 -0
  206. package/types/hyalo-angular-navigation-menu.d.ts +47 -0
  207. package/types/hyalo-angular-number-ticker.d.ts +52 -0
  208. package/types/hyalo-angular-overlay.d.ts +40 -0
  209. package/types/hyalo-angular-pagination.d.ts +59 -0
  210. package/types/hyalo-angular-popover.d.ts +152 -0
  211. package/types/hyalo-angular-progress.d.ts +46 -0
  212. package/types/hyalo-angular-progressive-blur.d.ts +14 -0
  213. package/types/hyalo-angular-refraction.d.ts +46 -0
  214. package/types/hyalo-angular-scroll-area.d.ts +18 -0
  215. package/types/hyalo-angular-scroll-to-top.d.ts +31 -0
  216. package/types/hyalo-angular-segmented.d.ts +79 -0
  217. package/types/hyalo-angular-select.d.ts +176 -0
  218. package/types/hyalo-angular-sidebar.d.ts +57 -0
  219. package/types/hyalo-angular-skeleton.d.ts +34 -0
  220. package/types/hyalo-angular-sparkline.d.ts +19 -0
  221. package/types/hyalo-angular-split-text.d.ts +24 -0
  222. package/types/hyalo-angular-stat.d.ts +56 -0
  223. package/types/hyalo-angular-stepper.d.ts +63 -0
  224. package/types/hyalo-angular-table.d.ts +125 -0
  225. package/types/hyalo-angular-tabs.d.ts +102 -0
  226. package/types/hyalo-angular-theme.d.ts +46 -0
  227. package/types/hyalo-angular-timeline.d.ts +36 -0
  228. package/types/hyalo-angular-toast.d.ts +79 -0
  229. package/types/hyalo-angular.d.ts +2 -0
@@ -0,0 +1,168 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, input, model } from "@angular/core";
3
+ import { injectId } from "@hyalo/angular/core";
4
+ var HyImageCompare = class HyImageCompare {
5
+ before = input.required(...ngDevMode ? [{ debugName: "before" }] : /* istanbul ignore next */ []);
6
+ after = input.required(...ngDevMode ? [{ debugName: "after" }] : /* istanbul ignore next */ []);
7
+ beforeAlt = input.required(...ngDevMode ? [{ debugName: "beforeAlt" }] : /* istanbul ignore next */ []);
8
+ afterAlt = input.required(...ngDevMode ? [{ debugName: "afterAlt" }] : /* istanbul ignore next */ []);
9
+ label = input("Reveal before image", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
10
+ value = model(50, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
11
+ ratio = input("16 / 9", ...ngDevMode ? [{ debugName: "ratio" }] : /* istanbul ignore next */ []);
12
+ id = injectId("hy-compare");
13
+ position = computed(() => Math.max(0, Math.min(100, Number(this.value()) || 0)), ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
14
+ clip = computed(() => "inset(0 " + (100 - this.position()) + "% 0 0)", ...ngDevMode ? [{ debugName: "clip" }] : /* istanbul ignore next */ []);
15
+ change(event) {
16
+ this.value.set(event.target.valueAsNumber);
17
+ }
18
+ static ɵfac = i0.ɵɵngDeclareFactory({
19
+ minVersion: "12.0.0",
20
+ version: "22.2.3",
21
+ ngImport: i0,
22
+ type: HyImageCompare,
23
+ deps: [],
24
+ target: i0.ɵɵFactoryTarget.Component
25
+ });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({
27
+ minVersion: "17.1.0",
28
+ version: "22.2.3",
29
+ type: HyImageCompare,
30
+ isStandalone: true,
31
+ selector: "hy-image-compare",
32
+ inputs: {
33
+ before: {
34
+ classPropertyName: "before",
35
+ publicName: "before",
36
+ isSignal: true,
37
+ isRequired: true,
38
+ transformFunction: null
39
+ },
40
+ after: {
41
+ classPropertyName: "after",
42
+ publicName: "after",
43
+ isSignal: true,
44
+ isRequired: true,
45
+ transformFunction: null
46
+ },
47
+ beforeAlt: {
48
+ classPropertyName: "beforeAlt",
49
+ publicName: "beforeAlt",
50
+ isSignal: true,
51
+ isRequired: true,
52
+ transformFunction: null
53
+ },
54
+ afterAlt: {
55
+ classPropertyName: "afterAlt",
56
+ publicName: "afterAlt",
57
+ isSignal: true,
58
+ isRequired: true,
59
+ transformFunction: null
60
+ },
61
+ label: {
62
+ classPropertyName: "label",
63
+ publicName: "label",
64
+ isSignal: true,
65
+ isRequired: false,
66
+ transformFunction: null
67
+ },
68
+ value: {
69
+ classPropertyName: "value",
70
+ publicName: "value",
71
+ isSignal: true,
72
+ isRequired: false,
73
+ transformFunction: null
74
+ },
75
+ ratio: {
76
+ classPropertyName: "ratio",
77
+ publicName: "ratio",
78
+ isSignal: true,
79
+ isRequired: false,
80
+ transformFunction: null
81
+ }
82
+ },
83
+ outputs: { value: "valueChange" },
84
+ ngImport: i0,
85
+ template: "<div class=\"frame\" [style.aspect-ratio]=\"ratio()\">\r\n <img [src]=\"after()\" [alt]=\"afterAlt()\" draggable=\"false\" />\r\n <img\r\n class=\"before\"\r\n [src]=\"before()\"\r\n [alt]=\"beforeAlt()\"\r\n [style.clip-path]=\"clip()\"\r\n draggable=\"false\"\r\n />\r\n <span class=\"handle\" aria-hidden=\"true\" [style.left.%]=\"position()\">‖</span>\r\n</div>\r\n<label [for]=\"id\">{{ label() }}: {{ position() }}%</label>\r\n<input\r\n [id]=\"id\"\r\n type=\"range\"\r\n min=\"0\"\r\n max=\"100\"\r\n step=\"1\"\r\n [value]=\"position()\"\r\n (input)=\"change($event)\"\r\n/>\r\n",
86
+ styles: [":host{display:block;color:var(--hy-ink)}.frame{position:relative;overflow:clip;border-radius:var(--hy-radius-l);background:var(--hy-surface-3);direction:ltr}img{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:cover}.handle{position:absolute;inset-block:0;inline-size:2px;background:var(--hy-primary-ink);display:grid;place-items:center;color:var(--hy-ink);text-shadow:0 0 3px var(--hy-bg)}label{display:block;margin-block-start:var(--hy-space-3)}input{inline-size:100%;min-block-size:2rem;accent-color:var(--hy-primary);direction:ltr}input:focus-visible{outline:2px solid var(--hy-primary);outline-offset:2px}\n"],
87
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
88
+ });
89
+ };
90
+ i0.ɵɵngDeclareClassMetadata({
91
+ minVersion: "12.0.0",
92
+ version: "22.2.3",
93
+ ngImport: i0,
94
+ type: HyImageCompare,
95
+ decorators: [{
96
+ type: Component,
97
+ args: [{
98
+ selector: "hy-image-compare",
99
+ changeDetection: ChangeDetectionStrategy.OnPush,
100
+ template: "<div class=\"frame\" [style.aspect-ratio]=\"ratio()\">\r\n <img [src]=\"after()\" [alt]=\"afterAlt()\" draggable=\"false\" />\r\n <img\r\n class=\"before\"\r\n [src]=\"before()\"\r\n [alt]=\"beforeAlt()\"\r\n [style.clip-path]=\"clip()\"\r\n draggable=\"false\"\r\n />\r\n <span class=\"handle\" aria-hidden=\"true\" [style.left.%]=\"position()\">‖</span>\r\n</div>\r\n<label [for]=\"id\">{{ label() }}: {{ position() }}%</label>\r\n<input\r\n [id]=\"id\"\r\n type=\"range\"\r\n min=\"0\"\r\n max=\"100\"\r\n step=\"1\"\r\n [value]=\"position()\"\r\n (input)=\"change($event)\"\r\n/>\r\n",
101
+ styles: [":host{display:block;color:var(--hy-ink)}.frame{position:relative;overflow:clip;border-radius:var(--hy-radius-l);background:var(--hy-surface-3);direction:ltr}img{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:cover}.handle{position:absolute;inset-block:0;inline-size:2px;background:var(--hy-primary-ink);display:grid;place-items:center;color:var(--hy-ink);text-shadow:0 0 3px var(--hy-bg)}label{display:block;margin-block-start:var(--hy-space-3)}input{inline-size:100%;min-block-size:2rem;accent-color:var(--hy-primary);direction:ltr}input:focus-visible{outline:2px solid var(--hy-primary);outline-offset:2px}\n"]
102
+ }]
103
+ }],
104
+ propDecorators: {
105
+ before: [{
106
+ type: i0.Input,
107
+ args: [{
108
+ isSignal: true,
109
+ alias: "before",
110
+ required: true
111
+ }]
112
+ }],
113
+ after: [{
114
+ type: i0.Input,
115
+ args: [{
116
+ isSignal: true,
117
+ alias: "after",
118
+ required: true
119
+ }]
120
+ }],
121
+ beforeAlt: [{
122
+ type: i0.Input,
123
+ args: [{
124
+ isSignal: true,
125
+ alias: "beforeAlt",
126
+ required: true
127
+ }]
128
+ }],
129
+ afterAlt: [{
130
+ type: i0.Input,
131
+ args: [{
132
+ isSignal: true,
133
+ alias: "afterAlt",
134
+ required: true
135
+ }]
136
+ }],
137
+ label: [{
138
+ type: i0.Input,
139
+ args: [{
140
+ isSignal: true,
141
+ alias: "label",
142
+ required: false
143
+ }]
144
+ }],
145
+ value: [{
146
+ type: i0.Input,
147
+ args: [{
148
+ isSignal: true,
149
+ alias: "value",
150
+ required: false
151
+ }]
152
+ }, {
153
+ type: i0.Output,
154
+ args: ["valueChange"]
155
+ }],
156
+ ratio: [{
157
+ type: i0.Input,
158
+ args: [{
159
+ isSignal: true,
160
+ alias: "ratio",
161
+ required: false
162
+ }]
163
+ }]
164
+ }
165
+ });
166
+ export { HyImageCompare };
167
+
168
+ //# sourceMappingURL=hyalo-angular-image-compare.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hyalo-angular-image-compare.mjs","names":[],"sources":["../../../projects/hyalo/image-compare/image-compare.ts","../../../projects/hyalo/image-compare/image-compare.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, model } from '@angular/core';\r\nimport { injectId } from '@hyalo/angular/core';\r\n/** Native range input provides pointer, touch, keyboard and screen reader controls. */\r\n@Component({\r\n selector: 'hy-image-compare',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n templateUrl: './image-compare.html',\r\n styleUrl: './image-compare.css',\r\n})\r\nexport class HyImageCompare {\r\n readonly before = input.required<string>();\r\n readonly after = input.required<string>();\r\n readonly beforeAlt = input.required<string>();\r\n readonly afterAlt = input.required<string>();\r\n readonly label = input('Reveal before image');\r\n readonly value = model(50);\r\n readonly ratio = input('16 / 9');\r\n protected readonly id = injectId('hy-compare');\r\n protected readonly position = computed(() =>\r\n Math.max(0, Math.min(100, Number(this.value()) || 0)),\r\n );\r\n protected readonly clip = computed(() => 'inset(0 ' + (100 - this.position()) + '% 0 0)');\r\n protected change(event: Event): void {\r\n this.value.set((event.target as HTMLInputElement).valueAsNumber);\r\n }\r\n}\r\n","<div class=\"frame\" [style.aspect-ratio]=\"ratio()\">\r\n <img [src]=\"after()\" [alt]=\"afterAlt()\" draggable=\"false\" />\r\n <img\r\n class=\"before\"\r\n [src]=\"before()\"\r\n [alt]=\"beforeAlt()\"\r\n [style.clip-path]=\"clip()\"\r\n draggable=\"false\"\r\n />\r\n <span class=\"handle\" aria-hidden=\"true\" [style.left.%]=\"position()\">‖</span>\r\n</div>\r\n<label [for]=\"id\">{{ label() }}: {{ position() }}%</label>\r\n<input\r\n [id]=\"id\"\r\n type=\"range\"\r\n min=\"0\"\r\n max=\"100\"\r\n step=\"1\"\r\n [value]=\"position()\"\r\n (input)=\"change($event)\"\r\n/>\r\n"],"mappings":";;;AASA,IAAa,iBAAb,MAAa,eAAc;CAChB,SAAS,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,QAAQ,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,YAAY,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACpC,WAAW,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,QAAQ,MAAM,uBAAsB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACpC,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACjB,QAAQ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;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,OAAA,cAAA;EAAA,UAAA;EAAA,UCT3B;EAqBA,QAAA,CAAA,2nBAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;ADZa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAN1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,iBACX,wBAAwB;GAAM,UAAA;GAAA,QAAA,CAAA,2nBAAA;EAAA,CAAA"}
@@ -0,0 +1,446 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, ElementRef, afterNextRender, booleanAttribute, inject, input, numberAttribute } from "@angular/core";
3
+ import { HyMotion, HySceneLight, MOTION } from "@hyalo/angular/motion";
4
+ var HyReveal = class HyReveal {
5
+ el = inject(ElementRef).nativeElement;
6
+ motion = inject(HyMotion);
7
+ revealDelay = input(0, {
8
+ ...ngDevMode ? { debugName: "revealDelay" } : /* istanbul ignore next */ {},
9
+ transform: numberAttribute
10
+ });
11
+ revealFrom = input("up", ...ngDevMode ? [{ debugName: "revealFrom" }] : /* istanbul ignore next */ []);
12
+ revealRepeat = input(false, {
13
+ ...ngDevMode ? { debugName: "revealRepeat" } : /* istanbul ignore next */ {},
14
+ transform: booleanAttribute
15
+ });
16
+ constructor() {
17
+ const destroyRef = inject(DestroyRef);
18
+ afterNextRender(() => {
19
+ if (this.motion.reduced() || typeof IntersectionObserver !== "function") return;
20
+ let first = true;
21
+ const observer = new IntersectionObserver(([entry]) => {
22
+ if (!entry) return;
23
+ if (first) {
24
+ first = false;
25
+ if (entry.isIntersecting) {
26
+ if (!this.revealRepeat()) observer.disconnect();
27
+ return;
28
+ }
29
+ this.el.setAttribute("data-hy-reveal-from", this.revealFrom());
30
+ this.el.setAttribute("data-hy-reveal", "hidden");
31
+ return;
32
+ }
33
+ if (entry.isIntersecting) {
34
+ this.el.setAttribute("data-hy-reveal", "shown");
35
+ if (!this.revealRepeat()) observer.disconnect();
36
+ } else if (this.revealRepeat()) this.el.setAttribute("data-hy-reveal", "hidden");
37
+ }, { rootMargin: "0px 0px -8% 0px" });
38
+ observer.observe(this.el);
39
+ destroyRef.onDestroy(() => observer.disconnect());
40
+ });
41
+ }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({
43
+ minVersion: "12.0.0",
44
+ version: "22.2.3",
45
+ ngImport: i0,
46
+ type: HyReveal,
47
+ deps: [],
48
+ target: i0.ɵɵFactoryTarget.Directive
49
+ });
50
+ static ɵdir = i0.ɵɵngDeclareDirective({
51
+ minVersion: "17.1.0",
52
+ version: "22.2.3",
53
+ type: HyReveal,
54
+ isStandalone: true,
55
+ selector: "[hyReveal]",
56
+ inputs: {
57
+ revealDelay: {
58
+ classPropertyName: "revealDelay",
59
+ publicName: "revealDelay",
60
+ isSignal: true,
61
+ isRequired: false,
62
+ transformFunction: null
63
+ },
64
+ revealFrom: {
65
+ classPropertyName: "revealFrom",
66
+ publicName: "revealFrom",
67
+ isSignal: true,
68
+ isRequired: false,
69
+ transformFunction: null
70
+ },
71
+ revealRepeat: {
72
+ classPropertyName: "revealRepeat",
73
+ publicName: "revealRepeat",
74
+ isSignal: true,
75
+ isRequired: false,
76
+ transformFunction: null
77
+ }
78
+ },
79
+ host: { properties: { "style.--hy-reveal-delay.ms": "revealDelay()" } },
80
+ ngImport: i0
81
+ });
82
+ };
83
+ i0.ɵɵngDeclareClassMetadata({
84
+ minVersion: "12.0.0",
85
+ version: "22.2.3",
86
+ ngImport: i0,
87
+ type: HyReveal,
88
+ decorators: [{
89
+ type: Directive,
90
+ args: [{
91
+ selector: "[hyReveal]",
92
+ host: { "[style.--hy-reveal-delay.ms]": "revealDelay()" }
93
+ }]
94
+ }],
95
+ ctorParameters: () => [],
96
+ propDecorators: {
97
+ revealDelay: [{
98
+ type: i0.Input,
99
+ args: [{
100
+ isSignal: true,
101
+ alias: "revealDelay",
102
+ required: false
103
+ }]
104
+ }],
105
+ revealFrom: [{
106
+ type: i0.Input,
107
+ args: [{
108
+ isSignal: true,
109
+ alias: "revealFrom",
110
+ required: false
111
+ }]
112
+ }],
113
+ revealRepeat: [{
114
+ type: i0.Input,
115
+ args: [{
116
+ isSignal: true,
117
+ alias: "revealRepeat",
118
+ required: false
119
+ }]
120
+ }]
121
+ }
122
+ });
123
+ function bindPointer(handlers) {
124
+ const host = inject(ElementRef).nativeElement;
125
+ const scene = inject(HySceneLight), destroy = inject(DestroyRef);
126
+ afterNextRender(() => {
127
+ const unregister = scene.register(host, handlers());
128
+ destroy.onDestroy(unregister);
129
+ });
130
+ }
131
+ function cssVarSetter(el, name, unit, motion, vars) {
132
+ let quick;
133
+ let engine;
134
+ let disposed = false;
135
+ motion.gsap().then((gsap) => {
136
+ if (!gsap || disposed) return;
137
+ engine = gsap;
138
+ el.classList.add("hy-gsap");
139
+ if (!el.style.getPropertyValue(name)) el.style.setProperty(name, `0${unit}`);
140
+ quick = gsap.quickTo(el, name, vars);
141
+ });
142
+ const set = ((value) => {
143
+ if (disposed) return;
144
+ if (quick && motion.enabled()) quick(value);
145
+ else {
146
+ engine?.killTweensOf(el);
147
+ el.style.setProperty(name, `${value}${unit}`);
148
+ }
149
+ });
150
+ set.destroy = () => {
151
+ disposed = true;
152
+ engine?.killTweensOf(el);
153
+ quick = void 0;
154
+ };
155
+ return set;
156
+ }
157
+ var HyTilt = class HyTilt {
158
+ el = inject(ElementRef).nativeElement;
159
+ motion = inject(HyMotion);
160
+ tiltMax = input(6, {
161
+ ...ngDevMode ? { debugName: "tiltMax" } : /* istanbul ignore next */ {},
162
+ transform: numberAttribute
163
+ });
164
+ tiltGlow = input(true, {
165
+ ...ngDevMode ? { debugName: "tiltGlow" } : /* istanbul ignore next */ {},
166
+ transform: booleanAttribute
167
+ });
168
+ constructor() {
169
+ bindPointer(() => {
170
+ const vars = {
171
+ duration: MOTION.settle.duration,
172
+ ease: MOTION.settle.ease
173
+ };
174
+ const rx = cssVarSetter(this.el, "--hy-rx", "deg", this.motion, vars);
175
+ const ry = cssVarSetter(this.el, "--hy-ry", "deg", this.motion, vars);
176
+ return {
177
+ destroy: () => {
178
+ rx.destroy();
179
+ ry.destroy();
180
+ },
181
+ enter: () => {
182
+ if (this.tiltGlow()) this.el.style.setProperty("--hy-glow", "0.32");
183
+ },
184
+ move: (event, rect) => {
185
+ const x = (event.clientX - rect.left) / rect.width;
186
+ const y = (event.clientY - rect.top) / rect.height;
187
+ const max = this.tiltMax();
188
+ ry((x - .5) * 2 * max);
189
+ rx((.5 - y) * 2 * max);
190
+ this.el.style.setProperty("--hy-px", `${(x * 100).toFixed(1)}%`);
191
+ this.el.style.setProperty("--hy-py", `${(y * 100).toFixed(1)}%`);
192
+ },
193
+ leave: () => {
194
+ rx(0);
195
+ ry(0);
196
+ this.el.style.setProperty("--hy-glow", "0");
197
+ }
198
+ };
199
+ });
200
+ }
201
+ static ɵfac = i0.ɵɵngDeclareFactory({
202
+ minVersion: "12.0.0",
203
+ version: "22.2.3",
204
+ ngImport: i0,
205
+ type: HyTilt,
206
+ deps: [],
207
+ target: i0.ɵɵFactoryTarget.Directive
208
+ });
209
+ static ɵdir = i0.ɵɵngDeclareDirective({
210
+ minVersion: "17.1.0",
211
+ version: "22.2.3",
212
+ type: HyTilt,
213
+ isStandalone: true,
214
+ selector: "[hyTilt]",
215
+ inputs: {
216
+ tiltMax: {
217
+ classPropertyName: "tiltMax",
218
+ publicName: "tiltMax",
219
+ isSignal: true,
220
+ isRequired: false,
221
+ transformFunction: null
222
+ },
223
+ tiltGlow: {
224
+ classPropertyName: "tiltGlow",
225
+ publicName: "tiltGlow",
226
+ isSignal: true,
227
+ isRequired: false,
228
+ transformFunction: null
229
+ }
230
+ },
231
+ host: { classAttribute: "hy-tilt" },
232
+ ngImport: i0
233
+ });
234
+ };
235
+ i0.ɵɵngDeclareClassMetadata({
236
+ minVersion: "12.0.0",
237
+ version: "22.2.3",
238
+ ngImport: i0,
239
+ type: HyTilt,
240
+ decorators: [{
241
+ type: Directive,
242
+ args: [{
243
+ selector: "[hyTilt]",
244
+ host: { class: "hy-tilt" }
245
+ }]
246
+ }],
247
+ ctorParameters: () => [],
248
+ propDecorators: {
249
+ tiltMax: [{
250
+ type: i0.Input,
251
+ args: [{
252
+ isSignal: true,
253
+ alias: "tiltMax",
254
+ required: false
255
+ }]
256
+ }],
257
+ tiltGlow: [{
258
+ type: i0.Input,
259
+ args: [{
260
+ isSignal: true,
261
+ alias: "tiltGlow",
262
+ required: false
263
+ }]
264
+ }]
265
+ }
266
+ });
267
+ var HyMagnetic = class HyMagnetic {
268
+ el = inject(ElementRef).nativeElement;
269
+ motion = inject(HyMotion);
270
+ magneticStrength = input(.3, {
271
+ ...ngDevMode ? { debugName: "magneticStrength" } : /* istanbul ignore next */ {},
272
+ transform: numberAttribute
273
+ });
274
+ magneticMax = input(10, {
275
+ ...ngDevMode ? { debugName: "magneticMax" } : /* istanbul ignore next */ {},
276
+ transform: numberAttribute
277
+ });
278
+ constructor() {
279
+ bindPointer(() => {
280
+ const vars = {
281
+ duration: MOTION.settle.duration,
282
+ ease: MOTION.settle.ease
283
+ };
284
+ const mx = cssVarSetter(this.el, "--hy-mx", "px", this.motion, vars);
285
+ const my = cssVarSetter(this.el, "--hy-my", "px", this.motion, vars);
286
+ const clamp = (v) => Math.max(-this.magneticMax(), Math.min(this.magneticMax(), v));
287
+ return {
288
+ destroy: () => {
289
+ mx.destroy();
290
+ my.destroy();
291
+ },
292
+ move: (event, rect) => {
293
+ const strength = this.magneticStrength();
294
+ mx(clamp((event.clientX - rect.left - rect.width / 2) * strength));
295
+ my(clamp((event.clientY - rect.top - rect.height / 2) * strength));
296
+ },
297
+ leave: () => {
298
+ mx(0);
299
+ my(0);
300
+ }
301
+ };
302
+ });
303
+ }
304
+ static ɵfac = i0.ɵɵngDeclareFactory({
305
+ minVersion: "12.0.0",
306
+ version: "22.2.3",
307
+ ngImport: i0,
308
+ type: HyMagnetic,
309
+ deps: [],
310
+ target: i0.ɵɵFactoryTarget.Directive
311
+ });
312
+ static ɵdir = i0.ɵɵngDeclareDirective({
313
+ minVersion: "17.1.0",
314
+ version: "22.2.3",
315
+ type: HyMagnetic,
316
+ isStandalone: true,
317
+ selector: "[hyMagnetic]",
318
+ inputs: {
319
+ magneticStrength: {
320
+ classPropertyName: "magneticStrength",
321
+ publicName: "magneticStrength",
322
+ isSignal: true,
323
+ isRequired: false,
324
+ transformFunction: null
325
+ },
326
+ magneticMax: {
327
+ classPropertyName: "magneticMax",
328
+ publicName: "magneticMax",
329
+ isSignal: true,
330
+ isRequired: false,
331
+ transformFunction: null
332
+ }
333
+ },
334
+ host: { classAttribute: "hy-magnetic" },
335
+ ngImport: i0
336
+ });
337
+ };
338
+ i0.ɵɵngDeclareClassMetadata({
339
+ minVersion: "12.0.0",
340
+ version: "22.2.3",
341
+ ngImport: i0,
342
+ type: HyMagnetic,
343
+ decorators: [{
344
+ type: Directive,
345
+ args: [{
346
+ selector: "[hyMagnetic]",
347
+ host: { class: "hy-magnetic" }
348
+ }]
349
+ }],
350
+ ctorParameters: () => [],
351
+ propDecorators: {
352
+ magneticStrength: [{
353
+ type: i0.Input,
354
+ args: [{
355
+ isSignal: true,
356
+ alias: "magneticStrength",
357
+ required: false
358
+ }]
359
+ }],
360
+ magneticMax: [{
361
+ type: i0.Input,
362
+ args: [{
363
+ isSignal: true,
364
+ alias: "magneticMax",
365
+ required: false
366
+ }]
367
+ }]
368
+ }
369
+ });
370
+ var HyRipple = class HyRipple {
371
+ el = inject(ElementRef).nativeElement;
372
+ motion = inject(HyMotion);
373
+ rippleDisabled = input(false, {
374
+ ...ngDevMode ? { debugName: "rippleDisabled" } : /* istanbul ignore next */ {},
375
+ transform: booleanAttribute
376
+ });
377
+ constructor() {
378
+ const destroyRef = inject(DestroyRef);
379
+ afterNextRender(() => {
380
+ const down = (event) => {
381
+ if (this.rippleDisabled() || this.motion.reduced() || event.button !== 0) return;
382
+ const rect = this.el.getBoundingClientRect();
383
+ const size = Math.hypot(rect.width, rect.height) * 2;
384
+ const wave = this.el.ownerDocument.createElement("span");
385
+ wave.className = "hy-ripple";
386
+ wave.setAttribute("aria-hidden", "true");
387
+ wave.style.setProperty("--hy-ripple-size", `${size}px`);
388
+ wave.style.setProperty("--hy-ripple-x", `${event.clientX - rect.left}px`);
389
+ wave.style.setProperty("--hy-ripple-y", `${event.clientY - rect.top}px`);
390
+ wave.addEventListener("animationend", () => wave.remove(), { once: true });
391
+ this.el.appendChild(wave);
392
+ };
393
+ this.el.addEventListener("pointerdown", down, { passive: true });
394
+ destroyRef.onDestroy(() => this.el.removeEventListener("pointerdown", down));
395
+ });
396
+ }
397
+ static ɵfac = i0.ɵɵngDeclareFactory({
398
+ minVersion: "12.0.0",
399
+ version: "22.2.3",
400
+ ngImport: i0,
401
+ type: HyRipple,
402
+ deps: [],
403
+ target: i0.ɵɵFactoryTarget.Directive
404
+ });
405
+ static ɵdir = i0.ɵɵngDeclareDirective({
406
+ minVersion: "17.1.0",
407
+ version: "22.2.3",
408
+ type: HyRipple,
409
+ isStandalone: true,
410
+ selector: "[hyRipple]",
411
+ inputs: { rippleDisabled: {
412
+ classPropertyName: "rippleDisabled",
413
+ publicName: "rippleDisabled",
414
+ isSignal: true,
415
+ isRequired: false,
416
+ transformFunction: null
417
+ } },
418
+ host: { classAttribute: "hy-ripple-host" },
419
+ ngImport: i0
420
+ });
421
+ };
422
+ i0.ɵɵngDeclareClassMetadata({
423
+ minVersion: "12.0.0",
424
+ version: "22.2.3",
425
+ ngImport: i0,
426
+ type: HyRipple,
427
+ decorators: [{
428
+ type: Directive,
429
+ args: [{
430
+ selector: "[hyRipple]",
431
+ host: { class: "hy-ripple-host" }
432
+ }]
433
+ }],
434
+ ctorParameters: () => [],
435
+ propDecorators: { rippleDisabled: [{
436
+ type: i0.Input,
437
+ args: [{
438
+ isSignal: true,
439
+ alias: "rippleDisabled",
440
+ required: false
441
+ }]
442
+ }] }
443
+ });
444
+ export { HyMagnetic, HyReveal, HyRipple, HyTilt };
445
+
446
+ //# sourceMappingURL=hyalo-angular-interaction.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hyalo-angular-interaction.mjs","names":[],"sources":["../../../projects/hyalo/interaction/reveal.ts","../../../projects/hyalo/interaction/pointer.ts","../../../projects/hyalo/interaction/tilt.ts","../../../projects/hyalo/interaction/magnetic.ts","../../../projects/hyalo/interaction/ripple.ts"],"sourcesContent":["import {\r\n DestroyRef,\r\n Directive,\r\n ElementRef,\r\n afterNextRender,\r\n booleanAttribute,\r\n inject,\r\n input,\r\n numberAttribute,\r\n} from '@angular/core';\r\nimport { HyMotion } from '@hyalo/angular/motion';\r\n\r\n/** Where a revealed element comes from. */\r\nexport type HyRevealFrom = 'up' | 'fade' | 'scale';\r\n\r\n/**\r\n * Fades and lifts an element in when it scrolls into view.\r\n *\r\n * ```html\r\n * @for (item of items; track item.id; let i = $index) {\r\n * <article hyReveal [revealDelay]=\"i * 60\">...</article>\r\n * }\r\n * ```\r\n *\r\n * Content is never hidden by default. The directive only hides an element\r\n * after hydration, only when it is below the fold, and only when motion is\r\n * enabled. Elements already on screen are left alone, so server-rendered\r\n * content does not flash. CSS transitions do the work, so it also runs on the\r\n * low tier when reduced motion is off.\r\n *\r\n * Put it on the glass element itself (`<hy-card hyReveal>`), not on a\r\n * wrapper around glass. While a wrapper fades, its glass children cannot\r\n * blur what is behind it, and the blur snaps in when the fade ends.\r\n */\r\n@Directive({\r\n selector: '[hyReveal]',\r\n host: { '[style.--hy-reveal-delay.ms]': 'revealDelay()' },\r\n})\r\nexport class HyReveal {\r\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\r\n private readonly motion = inject(HyMotion);\r\n\r\n /** Delay in milliseconds, for staggering. */\r\n readonly revealDelay = input(0, { transform: numberAttribute });\r\n /** The starting pose. */\r\n readonly revealFrom = input<HyRevealFrom>('up');\r\n /** Reveal again each time the element re-enters the viewport. */\r\n readonly revealRepeat = input(false, { transform: booleanAttribute });\r\n\r\n constructor() {\r\n const destroyRef = inject(DestroyRef);\r\n afterNextRender(() => {\r\n if (this.motion.reduced() || typeof IntersectionObserver !== 'function') return;\r\n let first = true;\r\n const observer = new IntersectionObserver(\r\n ([entry]) => {\r\n if (!entry) return;\r\n if (first) {\r\n first = false;\r\n if (entry.isIntersecting) {\r\n if (!this.revealRepeat()) observer.disconnect();\r\n return;\r\n }\r\n this.el.setAttribute('data-hy-reveal-from', this.revealFrom());\r\n this.el.setAttribute('data-hy-reveal', 'hidden');\r\n return;\r\n }\r\n if (entry.isIntersecting) {\r\n this.el.setAttribute('data-hy-reveal', 'shown');\r\n if (!this.revealRepeat()) observer.disconnect();\r\n } else if (this.revealRepeat()) {\r\n this.el.setAttribute('data-hy-reveal', 'hidden');\r\n }\r\n },\r\n { rootMargin: '0px 0px -8% 0px' },\r\n );\r\n observer.observe(this.el);\r\n destroyRef.onDestroy(() => observer.disconnect());\r\n });\r\n }\r\n}\r\n","import { DestroyRef, ElementRef, afterNextRender, inject } from '@angular/core';\r\nimport { HyMotion, HySceneLight, type HyPointerHandlers } from '@hyalo/angular/motion';\r\nexport type PointerHandlers = HyPointerHandlers;\r\n\r\nexport function bindPointer(handlers: () => PointerHandlers): void {\r\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\r\n const scene = inject(HySceneLight),\r\n destroy = inject(DestroyRef);\r\n afterNextRender(() => {\r\n const unregister = scene.register(host, handlers());\r\n destroy.onDestroy(unregister);\r\n });\r\n}\r\n\r\nexport interface HyCssSetter {\r\n (value: number): void;\r\n destroy(): void;\r\n}\r\nexport function cssVarSetter(\r\n el: HTMLElement,\r\n name: string,\r\n unit: string,\r\n motion: HyMotion,\r\n vars: Record<string, unknown>,\r\n): HyCssSetter {\r\n let quick: ((value: number) => unknown) | undefined;\r\n let engine: Awaited<ReturnType<HyMotion['gsap']>>;\r\n let disposed = false;\r\n void motion.gsap().then((gsap) => {\r\n if (!gsap || disposed) return;\r\n engine = gsap;\r\n el.classList.add('hy-gsap');\r\n // quickTo preserves a custom property's existing unit instead of appending one.\r\n if (!el.style.getPropertyValue(name)) el.style.setProperty(name, `0${unit}`);\r\n quick = gsap.quickTo(el, name, vars);\r\n });\r\n const set = ((value: number): void => {\r\n if (disposed) return;\r\n if (quick && motion.enabled()) quick(value);\r\n else {\r\n engine?.killTweensOf(el);\r\n el.style.setProperty(name, `${value}${unit}`);\r\n }\r\n }) as HyCssSetter;\r\n set.destroy = () => {\r\n disposed = true;\r\n engine?.killTweensOf(el);\r\n quick = undefined;\r\n };\r\n return set;\r\n}\r\n","import {\r\n Directive,\r\n ElementRef,\r\n booleanAttribute,\r\n inject,\r\n input,\r\n numberAttribute,\r\n} from '@angular/core';\r\nimport { HyMotion, MOTION } from '@hyalo/angular/motion';\r\n\r\nimport { bindPointer, cssVarSetter } from './pointer';\r\n\r\n/**\r\n * Tilts the element toward the cursor and moves a soft glow under it.\r\n *\r\n * ```html\r\n * <hy-card hyTilt [tiltMax]=\"8\">...</hy-card>\r\n * ```\r\n *\r\n * Runs only with a fine pointer, with motion enabled and above the low\r\n * fidelity tier. The glow uses `--hy-px`, `--hy-py` and `--hy-glow`, which the\r\n * glass material already reads.\r\n */\r\n@Directive({\r\n selector: '[hyTilt]',\r\n host: { class: 'hy-tilt' },\r\n})\r\nexport class HyTilt {\r\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\r\n private readonly motion = inject(HyMotion);\r\n\r\n /** Maximum rotation in degrees. */\r\n readonly tiltMax = input(6, { transform: numberAttribute });\r\n /** Whether to show the pointer glow. */\r\n readonly tiltGlow = input(true, { transform: booleanAttribute });\r\n\r\n constructor() {\r\n bindPointer(() => {\r\n const vars = { duration: MOTION.settle.duration, ease: MOTION.settle.ease };\r\n const rx = cssVarSetter(this.el, '--hy-rx', 'deg', this.motion, vars);\r\n const ry = cssVarSetter(this.el, '--hy-ry', 'deg', this.motion, vars);\r\n return {\r\n destroy: () => {\r\n rx.destroy();\r\n ry.destroy();\r\n },\r\n enter: () => {\r\n if (this.tiltGlow()) this.el.style.setProperty('--hy-glow', '0.32');\r\n },\r\n move: (event, rect) => {\r\n const x = (event.clientX - rect.left) / rect.width;\r\n const y = (event.clientY - rect.top) / rect.height;\r\n const max = this.tiltMax();\r\n ry((x - 0.5) * 2 * max);\r\n rx((0.5 - y) * 2 * max);\r\n this.el.style.setProperty('--hy-px', `${(x * 100).toFixed(1)}%`);\r\n this.el.style.setProperty('--hy-py', `${(y * 100).toFixed(1)}%`);\r\n },\r\n leave: () => {\r\n rx(0);\r\n ry(0);\r\n this.el.style.setProperty('--hy-glow', '0');\r\n },\r\n };\r\n });\r\n }\r\n}\r\n","import { Directive, ElementRef, inject, input, numberAttribute } from '@angular/core';\r\nimport { HyMotion, MOTION } from '@hyalo/angular/motion';\r\n\r\nimport { bindPointer, cssVarSetter } from './pointer';\r\n\r\n/**\r\n * Pulls the element a little toward the cursor while it hovers.\r\n *\r\n * Uses the `translate` property, so it never fights with a `transform` the\r\n * element already has.\r\n */\r\n@Directive({\r\n selector: '[hyMagnetic]',\r\n host: { class: 'hy-magnetic' },\r\n})\r\nexport class HyMagnetic {\r\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\r\n private readonly motion = inject(HyMotion);\r\n\r\n /** How far the element follows the cursor, as a share of the distance. */\r\n readonly magneticStrength = input(0.3, { transform: numberAttribute });\r\n /** Upper limit for the offset in pixels. */\r\n readonly magneticMax = input(10, { transform: numberAttribute });\r\n\r\n constructor() {\r\n bindPointer(() => {\r\n const vars = { duration: MOTION.settle.duration, ease: MOTION.settle.ease };\r\n const mx = cssVarSetter(this.el, '--hy-mx', 'px', this.motion, vars);\r\n const my = cssVarSetter(this.el, '--hy-my', 'px', this.motion, vars);\r\n const clamp = (v: number): number =>\r\n Math.max(-this.magneticMax(), Math.min(this.magneticMax(), v));\r\n return {\r\n destroy: () => {\r\n mx.destroy();\r\n my.destroy();\r\n },\r\n move: (event, rect) => {\r\n const strength = this.magneticStrength();\r\n mx(clamp((event.clientX - rect.left - rect.width / 2) * strength));\r\n my(clamp((event.clientY - rect.top - rect.height / 2) * strength));\r\n },\r\n leave: () => {\r\n mx(0);\r\n my(0);\r\n },\r\n };\r\n });\r\n }\r\n}\r\n","import {\r\n DestroyRef,\r\n Directive,\r\n ElementRef,\r\n afterNextRender,\r\n booleanAttribute,\r\n inject,\r\n input,\r\n} from '@angular/core';\r\nimport { HyMotion } from '@hyalo/angular/motion';\r\n\r\n/**\r\n * A soft light ripple from the press point. Purely decorative: it is\r\n * skipped with reduced motion and never affects layout.\r\n */\r\n@Directive({\r\n selector: '[hyRipple]',\r\n host: { class: 'hy-ripple-host' },\r\n})\r\nexport class HyRipple {\r\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\r\n private readonly motion = inject(HyMotion);\r\n\r\n /** Turns the ripple off without removing the directive. */\r\n readonly rippleDisabled = input(false, { transform: booleanAttribute });\r\n\r\n constructor() {\r\n const destroyRef = inject(DestroyRef);\r\n afterNextRender(() => {\r\n const down = (event: PointerEvent): void => {\r\n if (this.rippleDisabled() || this.motion.reduced() || event.button !== 0) return;\r\n const rect = this.el.getBoundingClientRect();\r\n const size = Math.hypot(rect.width, rect.height) * 2;\r\n const wave = this.el.ownerDocument.createElement('span');\r\n wave.className = 'hy-ripple';\r\n wave.setAttribute('aria-hidden', 'true');\r\n wave.style.setProperty('--hy-ripple-size', `${size}px`);\r\n wave.style.setProperty('--hy-ripple-x', `${event.clientX - rect.left}px`);\r\n wave.style.setProperty('--hy-ripple-y', `${event.clientY - rect.top}px`);\r\n wave.addEventListener('animationend', () => wave.remove(), { once: true });\r\n this.el.appendChild(wave);\r\n };\r\n this.el.addEventListener('pointerdown', down, { passive: true });\r\n destroyRef.onDestroy(() => this.el.removeEventListener('pointerdown', down));\r\n });\r\n }\r\n}\r\n"],"mappings":";;;AAsCA,IAAa,WAAb,MAAa,SAAQ;CACF,KAAK,OAAgC,UAAU,CAAC,CAAC;CACj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