@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,34 @@
1
+ import * as i0 from "@angular/core";
2
+ export type HySkeletonAnimation = 'shimmer' | 'pulse' | 'none';
3
+ /** Decorative placeholder. Put aria-busy on the region being loaded. */
4
+ export declare class HySkeleton {
5
+ private readonly motion;
6
+ protected readonly animate: import("@angular/core").Signal<boolean>;
7
+ readonly animation: import("@angular/core").InputSignal<HySkeletonAnimation>;
8
+ readonly shape: import("@angular/core").InputSignal<"text" | "circle" | "rect">;
9
+ readonly width: import("@angular/core").InputSignal<string>;
10
+ readonly height: import("@angular/core").InputSignal<string>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<HySkeleton, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<HySkeleton, "hy-skeleton", never, {
13
+ "animation": {
14
+ "alias": "animation";
15
+ "required": false;
16
+ "isSignal": true;
17
+ };
18
+ "shape": {
19
+ "alias": "shape";
20
+ "required": false;
21
+ "isSignal": true;
22
+ };
23
+ "width": {
24
+ "alias": "width";
25
+ "required": false;
26
+ "isSignal": true;
27
+ };
28
+ "height": {
29
+ "alias": "height";
30
+ "required": false;
31
+ "isSignal": true;
32
+ };
33
+ }, {}, never, never, true, never>;
34
+ }
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class HySparkline {
3
+ readonly data: import("@angular/core").InputSignal<readonly number[]>;
4
+ readonly label: import("@angular/core").InputSignal<string>;
5
+ readonly points: import("@angular/core").Signal<string>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<HySparkline, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<HySparkline, "hy-sparkline", never, {
8
+ "data": {
9
+ "alias": "data";
10
+ "required": true;
11
+ "isSignal": true;
12
+ };
13
+ "label": {
14
+ "alias": "label";
15
+ "required": true;
16
+ "isSignal": true;
17
+ };
18
+ }, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,24 @@
1
+ import * as i0 from "@angular/core";
2
+ /** Splits measured lines after hydration. The accessible text is read once. */
3
+ export declare class HySplitText {
4
+ private readonly el;
5
+ private readonly motion;
6
+ private readonly destroyRef;
7
+ private readonly measure;
8
+ readonly text: import("@angular/core").InputSignal<string>;
9
+ protected readonly lines: import("@angular/core").WritableSignal<readonly string[]>;
10
+ private readonly entered;
11
+ private readonly ready;
12
+ private remeasure;
13
+ protected readonly shown: import("@angular/core").Signal<boolean>;
14
+ protected readonly words: import("@angular/core").Signal<string[]>;
15
+ constructor();
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HySplitText, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<HySplitText, "hy-split-text", never, {
18
+ "text": {
19
+ "alias": "text";
20
+ "required": true;
21
+ "isSignal": true;
22
+ };
23
+ }, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,56 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class HyStat {
3
+ readonly value: import("@angular/core").InputSignal<number>;
4
+ readonly label: import("@angular/core").InputSignal<string>;
5
+ readonly trend: import("@angular/core").InputSignal<string>;
6
+ readonly locale: import("@angular/core").InputSignal<string | undefined>;
7
+ readonly format: import("@angular/core").InputSignal<Intl.NumberFormatOptions>;
8
+ readonly animate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
9
+ readonly prefix: import("@angular/core").InputSignal<string>;
10
+ readonly suffix: import("@angular/core").InputSignal<string>;
11
+ readonly formatted: import("@angular/core").Signal<string>;
12
+ readonly accessible: import("@angular/core").Signal<string>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyStat, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyStat, "hy-stat", never, {
15
+ "value": {
16
+ "alias": "value";
17
+ "required": true;
18
+ "isSignal": true;
19
+ };
20
+ "label": {
21
+ "alias": "label";
22
+ "required": true;
23
+ "isSignal": true;
24
+ };
25
+ "trend": {
26
+ "alias": "trend";
27
+ "required": false;
28
+ "isSignal": true;
29
+ };
30
+ "locale": {
31
+ "alias": "locale";
32
+ "required": false;
33
+ "isSignal": true;
34
+ };
35
+ "format": {
36
+ "alias": "format";
37
+ "required": false;
38
+ "isSignal": true;
39
+ };
40
+ "animate": {
41
+ "alias": "animate";
42
+ "required": false;
43
+ "isSignal": true;
44
+ };
45
+ "prefix": {
46
+ "alias": "prefix";
47
+ "required": false;
48
+ "isSignal": true;
49
+ };
50
+ "suffix": {
51
+ "alias": "suffix";
52
+ "required": false;
53
+ "isSignal": true;
54
+ };
55
+ }, {}, never, ["*"], true, never>;
56
+ }
@@ -0,0 +1,63 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class HyStep {
3
+ private readonly stepper;
4
+ readonly label: import("@angular/core").InputSignal<string>;
5
+ readonly completed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
6
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
7
+ readonly id: string;
8
+ protected readonly active: import("@angular/core").Signal<boolean>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyStep, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyStep, "hy-step", never, {
11
+ "label": {
12
+ "alias": "label";
13
+ "required": true;
14
+ "isSignal": true;
15
+ };
16
+ "completed": {
17
+ "alias": "completed";
18
+ "required": false;
19
+ "isSignal": true;
20
+ };
21
+ "disabled": {
22
+ "alias": "disabled";
23
+ "required": false;
24
+ "isSignal": true;
25
+ };
26
+ }, {}, never, ["*"], true, never>;
27
+ }
28
+ /** Linear steps require each preceding step to be completed before advancing. */
29
+ export declare class HyStepper {
30
+ private readonly el;
31
+ private readonly injector;
32
+ readonly label: import("@angular/core").InputSignal<string>;
33
+ readonly linear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
34
+ readonly selected: import("@angular/core").ModelSignal<number>;
35
+ readonly steps: import("@angular/core").Signal<readonly HyStep[]>;
36
+ protected readonly available: import("@angular/core").Signal<boolean[]>;
37
+ readonly activeIndex: import("@angular/core").Signal<number>;
38
+ select(index: number): void;
39
+ next(): void;
40
+ previous(): void;
41
+ protected onKey(event: KeyboardEvent, index: number): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyStepper, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyStepper, "hy-stepper", never, {
44
+ "label": {
45
+ "alias": "label";
46
+ "required": false;
47
+ "isSignal": true;
48
+ };
49
+ "linear": {
50
+ "alias": "linear";
51
+ "required": false;
52
+ "isSignal": true;
53
+ };
54
+ "selected": {
55
+ "alias": "selected";
56
+ "required": false;
57
+ "isSignal": true;
58
+ };
59
+ }, {
60
+ "selected": "selectedChange";
61
+ }, ["steps"], ["*"], true, never>;
62
+ }
63
+ export declare const HY_STEPPER: readonly [typeof HyStepper, typeof HyStep];
@@ -0,0 +1,125 @@
1
+ import * as i0 from "@angular/core";
2
+ import { TemplateRef } from "@angular/core";
3
+ export type HyRowKey = string | number;
4
+ export interface HyTableCellContext<T> {
5
+ readonly $implicit: T;
6
+ readonly value: string | number | null;
7
+ }
8
+ export interface HyTableColumn<T> {
9
+ readonly id: string;
10
+ readonly header: string;
11
+ readonly cell: (row: T) => string | number | null;
12
+ readonly sortable?: boolean;
13
+ readonly compare?: (a: T, b: T) => number;
14
+ readonly align?: 'start' | 'end' | 'center';
15
+ readonly template?: TemplateRef<HyTableCellContext<T>>;
16
+ }
17
+ export interface HyTableSort {
18
+ readonly column: string;
19
+ readonly direction: 'asc' | 'desc';
20
+ }
21
+ export declare class HyTable<T> {
22
+ readonly data: import("@angular/core").InputSignal<readonly T[]>;
23
+ readonly columns: import("@angular/core").InputSignal<readonly HyTableColumn<T>[]>;
24
+ readonly rowKey: import("@angular/core").InputSignal<(row: T) => HyRowKey>;
25
+ readonly caption: import("@angular/core").InputSignal<string>;
26
+ readonly locale: import("@angular/core").InputSignal<string | undefined>;
27
+ private readonly globalLocale;
28
+ private readonly effectiveLocale;
29
+ readonly selectable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
30
+ readonly stickyHeader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
31
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
32
+ readonly emptyLabel: import("@angular/core").InputSignal<string>;
33
+ readonly selectionLabel: import("@angular/core").InputSignal<string>;
34
+ readonly rowLabel: import("@angular/core").InputSignal<(row: T) => string>;
35
+ readonly selected: import("@angular/core").ModelSignal<readonly HyRowKey[]>;
36
+ readonly sort: import("@angular/core").ModelSignal<HyTableSort | null>;
37
+ private readonly selectedSet;
38
+ private readonly sorted;
39
+ readonly view: import("@angular/core").Signal<{
40
+ row: T;
41
+ key: HyRowKey;
42
+ label: string;
43
+ selected: boolean;
44
+ cells: {
45
+ column: HyTableColumn<T>;
46
+ value: string | number | null;
47
+ }[];
48
+ }[]>;
49
+ readonly allSelected: import("@angular/core").Signal<boolean>;
50
+ readonly someSelected: import("@angular/core").Signal<boolean>;
51
+ toggleSort(column: HyTableColumn<T>): void;
52
+ toggleRow(key: HyRowKey): void;
53
+ toggleAll(): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyTable<any>, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyTable<any>, "hy-table", never, {
56
+ "data": {
57
+ "alias": "data";
58
+ "required": true;
59
+ "isSignal": true;
60
+ };
61
+ "columns": {
62
+ "alias": "columns";
63
+ "required": true;
64
+ "isSignal": true;
65
+ };
66
+ "rowKey": {
67
+ "alias": "rowKey";
68
+ "required": true;
69
+ "isSignal": true;
70
+ };
71
+ "caption": {
72
+ "alias": "caption";
73
+ "required": true;
74
+ "isSignal": true;
75
+ };
76
+ "locale": {
77
+ "alias": "locale";
78
+ "required": false;
79
+ "isSignal": true;
80
+ };
81
+ "selectable": {
82
+ "alias": "selectable";
83
+ "required": false;
84
+ "isSignal": true;
85
+ };
86
+ "stickyHeader": {
87
+ "alias": "stickyHeader";
88
+ "required": false;
89
+ "isSignal": true;
90
+ };
91
+ "loading": {
92
+ "alias": "loading";
93
+ "required": false;
94
+ "isSignal": true;
95
+ };
96
+ "emptyLabel": {
97
+ "alias": "emptyLabel";
98
+ "required": false;
99
+ "isSignal": true;
100
+ };
101
+ "selectionLabel": {
102
+ "alias": "selectionLabel";
103
+ "required": false;
104
+ "isSignal": true;
105
+ };
106
+ "rowLabel": {
107
+ "alias": "rowLabel";
108
+ "required": false;
109
+ "isSignal": true;
110
+ };
111
+ "selected": {
112
+ "alias": "selected";
113
+ "required": false;
114
+ "isSignal": true;
115
+ };
116
+ "sort": {
117
+ "alias": "sort";
118
+ "required": false;
119
+ "isSignal": true;
120
+ };
121
+ }, {
122
+ "selected": "selectedChange";
123
+ "sort": "sortChange";
124
+ }, never, never, true, never>;
125
+ }
@@ -0,0 +1,102 @@
1
+ import * as i1 from "@angular/aria/tabs";
2
+ import { TabPanel } from "@angular/aria/tabs";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * One tab and its panel. The panel content is rendered up front and hidden
6
+ * with `inert` while another tab is selected.
7
+ */
8
+ export declare class HyTab {
9
+ readonly panel: TabPanel;
10
+ /** Text of the tab button. */
11
+ readonly label: import("@angular/core").InputSignal<string>;
12
+ /** Optional icon name shown before the label. */
13
+ readonly icon: import("@angular/core").InputSignal<string | undefined>;
14
+ /** Disables this tab. Arrow keys skip it. */
15
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyTab, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyTab, "hy-tab", never, {
18
+ "label": {
19
+ "alias": "label";
20
+ "required": true;
21
+ "isSignal": true;
22
+ };
23
+ "icon": {
24
+ "alias": "icon";
25
+ "required": false;
26
+ "isSignal": true;
27
+ };
28
+ "disabled": {
29
+ "alias": "disabled";
30
+ "required": false;
31
+ "isSignal": true;
32
+ };
33
+ }, {}, never, ["*"], true, [{
34
+ directive: typeof i1.TabPanel;
35
+ inputs: {
36
+ "value": "value";
37
+ };
38
+ outputs: {};
39
+ }]>;
40
+ }
41
+ /**
42
+ * Tabs with a sliding glass indicator, built on Angular Aria. Arrow keys
43
+ * move between tabs (mirrored in RTL), Home and End jump to the ends.
44
+ *
45
+ * ```html
46
+ * <hy-tabs label="Watch details" [(selected)]="tab">
47
+ * <hy-tab value="overview" label="Overview">...</hy-tab>
48
+ * <hy-tab value="specs" label="Specifications">...</hy-tab>
49
+ * </hy-tabs>
50
+ * ```
51
+ *
52
+ * With `selectionMode="follow"` (the default) a tab opens as soon as it is
53
+ * focused. Use `explicit` when panels are expensive, so users press Enter or
54
+ * Space to open one.
55
+ */
56
+ export declare class HyTabs {
57
+ protected readonly tabs: import("@angular/core").Signal<readonly HyTab[]>;
58
+ private readonly list;
59
+ private readonly tabEls;
60
+ /** Accessible name for the tab list. */
61
+ readonly label: import("@angular/core").InputSignal<string | undefined>;
62
+ /** Value of the selected tab. Two-way bindable. Defaults to the first tab. */
63
+ readonly selected: import("@angular/core").ModelSignal<string | undefined>;
64
+ /** `follow` opens a tab on focus, `explicit` waits for Enter or Space. */
65
+ readonly selectionMode: import("@angular/core").InputSignal<"follow" | "explicit">;
66
+ /** Stretch tabs to fill the row. */
67
+ readonly stretch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
68
+ /** The selected value, falling back to the first enabled tab. */
69
+ protected readonly current: import("@angular/core").Signal<string | undefined>;
70
+ protected readonly ready: import("@angular/core").Signal<boolean>;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyTabs, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyTabs, "hy-tabs", never, {
73
+ "label": {
74
+ "alias": "label";
75
+ "required": false;
76
+ "isSignal": true;
77
+ };
78
+ "selected": {
79
+ "alias": "selected";
80
+ "required": false;
81
+ "isSignal": true;
82
+ };
83
+ "selectionMode": {
84
+ "alias": "selectionMode";
85
+ "required": false;
86
+ "isSignal": true;
87
+ };
88
+ "stretch": {
89
+ "alias": "stretch";
90
+ "required": false;
91
+ "isSignal": true;
92
+ };
93
+ }, {
94
+ "selected": "selectedChange";
95
+ }, ["tabs"], ["*"], true, [{
96
+ directive: typeof i1.Tabs;
97
+ inputs: {};
98
+ outputs: {};
99
+ }]>;
100
+ }
101
+ /** Everything needed to build tabs. */
102
+ export declare const HY_TABS: readonly [typeof HyTabs, typeof HyTab];
@@ -0,0 +1,46 @@
1
+ import * as i0 from "@angular/core";
2
+ /** The palettes in `styles/palettes/`. Apps can add their own names too. */
3
+ export type HyPaletteName = 'aurora' | 'ember' | 'orchid' | 'ocean' | 'rose' | 'graphite';
4
+ /** Where a palette stylesheet is served from when no `paletteHref` is configured. */
5
+ export declare function defaultPaletteHref(name: string): string;
6
+ /**
7
+ * Switches palettes, loading each stylesheet the first time it is needed.
8
+ *
9
+ * Palettes are separate files in `styles/palettes/`, so they never add to
10
+ * the initial CSS. Their rules only match while `data-hy-palette` is on
11
+ * `<html>`, which means a loaded palette costs nothing until it is picked.
12
+ * The attribute is set only after the file has loaded, so the page never
13
+ * shows half a palette, and switching back to a palette is instant.
14
+ *
15
+ * To restore a saved palette before the app boots, an inline script can add
16
+ * `<link rel="stylesheet" data-hy-palette="ocean" href="...">` to the head
17
+ * and the attribute to `<html>`. HyPalette picks up both.
18
+ */
19
+ export declare class HyPalette {
20
+ private readonly document;
21
+ private readonly config;
22
+ private readonly isBrowser;
23
+ private readonly loads;
24
+ private readonly _current;
25
+ private readonly _selected;
26
+ /** The palette on screen, or null for the built-in one. */
27
+ readonly current: import("@angular/core").Signal<string | null>;
28
+ /**
29
+ * The palette last asked for. It changes straight away, while `current`
30
+ * waits for the stylesheet, so a picker can show the choice immediately.
31
+ */
32
+ readonly selected: import("@angular/core").Signal<string | null>;
33
+ /**
34
+ * Loads a palette and applies it, or goes back to the built-in palette for
35
+ * null. When several calls overlap, the last one wins. Rejects when the
36
+ * stylesheet fails to load, and leaves the current palette in place. The
37
+ * exception is a palette restored before boot whose file never loaded: the
38
+ * page goes back to the built-in palette instead of claiming it.
39
+ */
40
+ use(name: HyPaletteName | (string & {}) | null): Promise<void>;
41
+ /** Starts loading a palette without applying it, for example on hover. */
42
+ preload(name: HyPaletteName | (string & {})): void;
43
+ private load;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyPalette, never>;
45
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
46
+ }
@@ -0,0 +1,36 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class HyTimeline {
3
+ readonly label: import("@angular/core").InputSignal<string>;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyTimeline, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyTimeline, "hy-timeline", never, {
6
+ "label": {
7
+ "alias": "label";
8
+ "required": false;
9
+ "isSignal": true;
10
+ };
11
+ }, {}, never, ["*"], true, never>;
12
+ }
13
+ export declare class HyTimelineItem {
14
+ readonly heading: import("@angular/core").InputSignal<string>;
15
+ readonly date: import("@angular/core").InputSignal<string>;
16
+ readonly dateTime: import("@angular/core").InputSignal<string | null>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyTimelineItem, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<HyTimelineItem, "hy-timeline-item", never, {
19
+ "heading": {
20
+ "alias": "heading";
21
+ "required": true;
22
+ "isSignal": true;
23
+ };
24
+ "date": {
25
+ "alias": "date";
26
+ "required": false;
27
+ "isSignal": true;
28
+ };
29
+ "dateTime": {
30
+ "alias": "dateTime";
31
+ "required": false;
32
+ "isSignal": true;
33
+ };
34
+ }, {}, never, ["*"], true, never>;
35
+ }
36
+ export declare const HY_TIMELINE: readonly [typeof HyTimeline, typeof HyTimelineItem];
@@ -0,0 +1,79 @@
1
+ import * as i0 from "@angular/core";
2
+ /** Colour and icon of a toast. */
3
+ export type HyToastTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
4
+ /** What to show. */
5
+ export interface HyToastOptions {
6
+ readonly message: string;
7
+ readonly title?: string;
8
+ readonly tone?: HyToastTone;
9
+ /**
10
+ * Milliseconds before it hides. 0 keeps it until dismissed. Defaults to
11
+ * 5000, or 0 when there is an action, so nobody has to race a timer.
12
+ */
13
+ readonly duration?: number;
14
+ /** One optional action, such as Undo. */
15
+ readonly action?: {
16
+ readonly label: string;
17
+ readonly run: () => void;
18
+ };
19
+ }
20
+ /** @internal One toast in the stack. */
21
+ export interface HyToastItem extends HyToastOptions {
22
+ readonly id: number;
23
+ readonly leaving: boolean;
24
+ }
25
+ /** Handle to a shown toast. */
26
+ export interface HyToastRef {
27
+ dismiss(): void;
28
+ }
29
+ /** @internal Why the timers are on hold. Hover and focus are tracked apart. */
30
+ export type HyToastHold = 'hover' | 'focus';
31
+ /**
32
+ * Shows toasts: short messages about something that just happened.
33
+ *
34
+ * ```ts
35
+ * toaster.show({ message: 'Address saved', tone: 'success' });
36
+ * toaster.show({ message: 'Draft deleted', action: { label: 'Undo', run: () => restore() } });
37
+ * ```
38
+ *
39
+ * Every toast is announced through the live announcer (`danger` toasts
40
+ * assertively, the rest politely). Timers pause while the pointer or focus
41
+ * is in the stack, and toasts can be swiped away. The stack sits at the
42
+ * bottom inline-end corner and is a labelled region, so keyboard and screen
43
+ * reader users can reach the actions.
44
+ */
45
+ export declare class HyToaster {
46
+ private readonly injector;
47
+ private readonly announcer;
48
+ private readonly isBrowser;
49
+ private readonly timers;
50
+ private overlayRef;
51
+ private nextId;
52
+ private readonly holds;
53
+ /** @internal The current stack, newest last. */
54
+ readonly items: import("@angular/core").WritableSignal<readonly HyToastItem[]>;
55
+ /** Shows a toast. Does nothing during server rendering. */
56
+ show(options: HyToastOptions): HyToastRef;
57
+ success(message: string, title?: string): HyToastRef;
58
+ error(message: string, title?: string): HyToastRef;
59
+ /** Hides one toast with its exit animation, a fade with reduced motion. */
60
+ dismiss(id: number): void;
61
+ /** @internal Removes a toast that already left the screen, as after a swipe. */
62
+ discard(id: number): void;
63
+ private clearTimer;
64
+ /** Hides every toast. */
65
+ dismissAll(): void;
66
+ /**
67
+ * @internal Pauses all timers while the stack is hovered or focused. Each
68
+ * reason is held separately, so the pointer leaving does not restart the
69
+ * timers while focus is still on a toast.
70
+ */
71
+ pause(reason: HyToastHold): void;
72
+ /** @internal Releases one hold. Timers restart once no hold is left. */
73
+ resume(reason: HyToastHold): void;
74
+ private startTimer;
75
+ private remove;
76
+ private ensureStack;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyToaster, never>;
78
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
79
+ }
@@ -0,0 +1,2 @@
1
+ export * from "@hyalo/angular/core";
2
+ export * from "@hyalo/angular/motion";