yukit-web 0.10.6 → 0.10.8

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 (193) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24592 -9669
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/src/lib/theme/components/button.css +14 -0
  129. package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
  130. package/src/lib/theme/tokens/component-colors.css +6 -2
  131. package/types/yukit-web-chart.d.ts +184 -125
  132. package/types/yukit-web-helm-accordion.d.ts +49 -28
  133. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  134. package/types/yukit-web-helm-alert.d.ts +30 -32
  135. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  136. package/types/yukit-web-helm-attachment.d.ts +97 -69
  137. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  138. package/types/yukit-web-helm-avatar.d.ts +44 -39
  139. package/types/yukit-web-helm-badge.d.ts +18 -17
  140. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  141. package/types/yukit-web-helm-bubble.d.ts +54 -40
  142. package/types/yukit-web-helm-button-group.d.ts +29 -22
  143. package/types/yukit-web-helm-button.d.ts +41 -31
  144. package/types/yukit-web-helm-calendar.d.ts +157 -85
  145. package/types/yukit-web-helm-card.d.ts +38 -42
  146. package/types/yukit-web-helm-carousel.d.ts +105 -73
  147. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  148. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  149. package/types/yukit-web-helm-combobox.d.ts +355 -150
  150. package/types/yukit-web-helm-command.d.ts +140 -73
  151. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  152. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  153. package/types/yukit-web-helm-dialog.d.ts +106 -78
  154. package/types/yukit-web-helm-drawer.d.ts +90 -61
  155. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  156. package/types/yukit-web-helm-empty.d.ts +38 -42
  157. package/types/yukit-web-helm-field.d.ts +122 -91
  158. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  159. package/types/yukit-web-helm-input-group.d.ts +63 -41
  160. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  161. package/types/yukit-web-helm-input.d.ts +19 -12
  162. package/types/yukit-web-helm-item.d.ts +90 -82
  163. package/types/yukit-web-helm-kbd.d.ts +10 -15
  164. package/types/yukit-web-helm-label.d.ts +14 -11
  165. package/types/yukit-web-helm-marker.d.ts +26 -27
  166. package/types/yukit-web-helm-menubar.d.ts +61 -32
  167. package/types/yukit-web-helm-message.d.ts +34 -38
  168. package/types/yukit-web-helm-native-select.d.ts +102 -61
  169. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  170. package/types/yukit-web-helm-pagination.d.ts +344 -166
  171. package/types/yukit-web-helm-popover.d.ts +62 -42
  172. package/types/yukit-web-helm-progress.d.ts +27 -20
  173. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  174. package/types/yukit-web-helm-resizable.d.ts +46 -24
  175. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  176. package/types/yukit-web-helm-select.d.ts +231 -114
  177. package/types/yukit-web-helm-separator.d.ts +15 -12
  178. package/types/yukit-web-helm-sheet.d.ts +94 -65
  179. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  180. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  181. package/types/yukit-web-helm-slider.d.ts +33 -13
  182. package/types/yukit-web-helm-sonner.d.ts +112 -51
  183. package/types/yukit-web-helm-spinner.d.ts +24 -17
  184. package/types/yukit-web-helm-switch.d.ts +89 -51
  185. package/types/yukit-web-helm-table.d.ts +38 -42
  186. package/types/yukit-web-helm-tabs.d.ts +116 -60
  187. package/types/yukit-web-helm-textarea.d.ts +19 -12
  188. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  189. package/types/yukit-web-helm-toggle.d.ts +39 -21
  190. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  191. package/types/yukit-web-helm-typography.d.ts +62 -77
  192. package/types/yukit-web-helm-utils.d.ts +8 -11
  193. package/types/yukit-web.d.ts +5125 -2357
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yukit-web",
3
3
  "description": "Angular UI component library for Yurest web applications.",
4
- "version": "0.10.6",
4
+ "version": "0.10.8",
5
5
  "author": {
6
6
  "name": "Yurest Solutions",
7
7
  "email": "develop@yurest.com"
@@ -265,18 +265,18 @@
265
265
  }
266
266
  },
267
267
  "peerDependencies": {
268
- "@angular/cdk": "^21.0.0",
269
- "@angular/common": "^21.0.0",
270
- "@angular/core": "^21.0.0",
271
- "@angular/forms": "^21.0.0",
272
- "@angular/router": "^21.0.0",
273
- "@ng-icons/core": "^32.2.0",
274
- "@ng-icons/lucide": "^32.2.0",
268
+ "@angular/cdk": "^22.0.0",
269
+ "@angular/common": "^22.0.0",
270
+ "@angular/core": "^22.0.0",
271
+ "@angular/forms": "^22.0.0",
272
+ "@angular/router": "^22.0.0",
273
+ "@ng-icons/core": "^35.0.0 || ^36.0.0",
274
+ "@ng-icons/lucide": "^35.0.0 || ^36.0.0",
275
275
  "@spartan-ng/brain": "^1.7.0",
276
276
  "@tanstack/angular-table": "^9.0.0",
277
277
  "d3-scale": "^4.0.2",
278
278
  "d3-shape": "^3.2.0",
279
- "embla-carousel-angular": "^21.0.0",
279
+ "embla-carousel-angular": "^22.0.0",
280
280
  "ngx-scrollbar": "^19.1.5",
281
281
  "rxjs": "^7.8.0"
282
282
  },
@@ -11,3 +11,17 @@ yuw-button[data-yuw-variant='outline'][data-yuw-color='neutral']
11
11
  > :is(button, a):is(:hover, [aria-expanded='true']):not(:disabled, [data-disabled]) {
12
12
  background-image: linear-gradient(var(--muted), var(--muted));
13
13
  }
14
+
15
+ yuw-button[data-yuw-variant='ghost'][data-yuw-color='destructive'] > :is(button, a):not(:disabled, [data-disabled]) {
16
+ color: var(--secondary-foreground);
17
+ }
18
+
19
+ yuw-button[data-yuw-variant='ghost'][data-yuw-color='destructive']
20
+ > :is(button, a):is(:hover, [aria-expanded='true']):not(:disabled, [data-disabled]) {
21
+ background-color: var(--secondary);
22
+ color: var(--secondary-foreground);
23
+ }
24
+
25
+ yuw-button[data-yuw-variant='link'] > button:disabled {
26
+ color: var(--foreground);
27
+ }
@@ -4,9 +4,9 @@
4
4
  */
5
5
  :root {
6
6
  --brn-sonner-toast-close-button-start: auto;
7
- --brn-sonner-toast-close-button-end: 0.75rem;
7
+ --brn-sonner-toast-close-button-end: 1rem;
8
8
  --brn-sonner-toast-close-button-transform: none;
9
- --brn-sonner-rtl-toast-close-button-start: 0.75rem;
9
+ --brn-sonner-rtl-toast-close-button-start: 1rem;
10
10
  --brn-sonner-rtl-toast-close-button-end: auto;
11
11
  --brn-sonner-rtl-toast-close-button-transform: none;
12
12
  --brn-sonner-toast-close-button-background: var(--toast);
@@ -196,6 +196,10 @@
196
196
  --muted: color-mix(in oklab, var(--yuw-accent) 50%, transparent) !important;
197
197
  }
198
198
 
199
+ /*
200
+ * A disabled button fills and borders with --gray-7, but writes its text with --gray-9: the helm already halves its
201
+ * opacity, so a text-only variant (destructive, link, transparent) in --gray-7 at 50% vanished on a light page.
202
+ */
199
203
  html body yuw-button[data-yuw-color] button:disabled {
200
204
  --yuw-accent: var(--gray-7);
201
205
  --yuw-accent-foreground: var(--neutrals-white);
@@ -203,8 +207,8 @@ html body yuw-button[data-yuw-color] button:disabled {
203
207
  --primary-foreground: var(--yuw-accent-foreground);
204
208
  --secondary: var(--neutrals-outline-accent);
205
209
  --secondary-foreground: var(--yuw-accent-foreground);
206
- --destructive: var(--yuw-accent);
210
+ --destructive: var(--gray-9);
207
211
  --border: var(--yuw-accent);
208
- --foreground: var(--yuw-accent);
212
+ --foreground: var(--gray-9);
209
213
  --muted: color-mix(in oklab, var(--yuw-accent) 15%, transparent);
210
214
  }
@@ -1,114 +1,109 @@
1
- import * as yukit_web_chart from 'yukit-web/chart';
2
- import * as _angular_core from '@angular/core';
3
-
1
+ import * as i0 from "@angular/core";
4
2
  /** Theme token a series is painted with; `chart-n` resolves to the `--chart-n` custom property of `yukit-web/theme.css`. */
5
- type YuwChartColorDto = 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'chart-5' | 'chart-6' | 'chart-7' | 'chart-8';
3
+ export type YuwChartColorDto = 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'chart-5' | 'chart-6' | 'chart-7' | 'chart-8';
6
4
  /** Every chart token, in palette order. */
7
- declare const YUW_CHART_COLORS: readonly YuwChartColorDto[];
5
+ export declare const YUW_CHART_COLORS: readonly YuwChartColorDto[];
8
6
  /**
9
7
  * How one series is shown: its label, already translated by the consumer, and its color token.
10
8
  */
11
- interface YuwChartSeriesDto {
12
- readonly color: YuwChartColorDto;
13
- readonly label: string;
9
+ export interface YuwChartSeriesDto {
10
+ readonly color: YuwChartColorDto;
11
+ readonly label: string;
14
12
  }
15
13
  /**
16
14
  * Series of a chart keyed by the data field holding their values. The key order is the drawing, stacking, legend
17
15
  * and tooltip order.
18
16
  */
19
- type YuwChartConfigDto = Readonly<Record<string, YuwChartSeriesDto>>;
17
+ export type YuwChartConfigDto = Readonly<Record<string, YuwChartSeriesDto>>;
20
18
  /** One data row: the category under `categoryKey` and one number per series key. */
21
- type YuwChartRowDto = Readonly<Record<string, unknown>>;
19
+ export type YuwChartRowDto = Readonly<Record<string, unknown>>;
22
20
  /**
23
21
  * Chart kind. Bars group their series side by side unless the kind is `-stacked`; `bar-horizontal` lays the categories
24
22
  * on the vertical axis. `pie` and `donut` draw one slice per series, its value summed across every row.
25
23
  */
26
- type YuwChartKindDto = 'area' | 'area-stacked' | 'bar' | 'bar-horizontal' | 'bar-horizontal-stacked' | 'bar-stacked' | 'donut' | 'line' | 'pie';
24
+ export type YuwChartKindDto = 'area' | 'area-stacked' | 'bar' | 'bar-horizontal' | 'bar-horizontal-stacked' | 'bar-stacked' | 'donut' | 'line' | 'pie';
27
25
  /** Turns a value into the text shown on axes, tooltips and the accessible table, e.g. a localized currency. */
28
- type YuwChartValueFormatDto = (value: number) => string;
26
+ export type YuwChartValueFormatDto = (value: number) => string;
29
27
  /** Turns the value under `categoryKey` into its label, e.g. a localized month name. */
30
- type YuwChartCategoryFormatDto = (category: unknown) => string;
28
+ export type YuwChartCategoryFormatDto = (category: unknown) => string;
31
29
  /** Color token of the series at `index`, cycling through the palette: builds a config for a dynamic set of series. */
32
- declare function yuwChartColorAt(index: number): YuwChartColorDto;
33
-
30
+ export declare function yuwChartColorAt(index: number): YuwChartColorDto;
31
+ interface YuwChartSize {
32
+ readonly height: number;
33
+ readonly width: number;
34
+ }
34
35
  /** How a mark is painted: a filled shape, a translucent area or a line. */
35
36
  type YuwChartMarkPaintDto = 'area' | 'fill' | 'stroke';
36
37
  /** A drawn path. `hit` is the position in `YuwChartScene.hits` it belongs to, or `null` when it spans all of them. */
37
38
  interface YuwChartMark {
38
- readonly color: string;
39
- readonly d: string;
40
- readonly hit: number | null;
41
- readonly key: string;
42
- readonly paint: YuwChartMarkPaintDto;
39
+ readonly color: string;
40
+ readonly d: string;
41
+ readonly hit: number | null;
42
+ readonly key: string;
43
+ readonly paint: YuwChartMarkPaintDto;
43
44
  }
44
45
  /** A dot drawn on a line or area at the active position. */
45
46
  interface YuwChartPoint {
46
- readonly color: string;
47
- readonly cx: number;
48
- readonly cy: number;
49
- readonly key: string;
47
+ readonly color: string;
48
+ readonly cx: number;
49
+ readonly cy: number;
50
+ readonly key: string;
50
51
  }
51
52
  interface YuwChartTooltipItem {
52
- readonly color: string;
53
- readonly key: string;
54
- readonly label: string;
55
- readonly value: string;
53
+ readonly color: string;
54
+ readonly key: string;
55
+ readonly label: string;
56
+ readonly value: string;
56
57
  }
57
58
  interface YuwChartTooltip {
58
- readonly items: readonly YuwChartTooltipItem[];
59
- readonly title: string | null;
59
+ readonly items: readonly YuwChartTooltipItem[];
60
+ readonly title: string | null;
60
61
  }
61
62
  /**
62
63
  * One position the pointer and the keyboard can activate: a category of a cartesian chart, a slice of a pie. `d` is
63
64
  * the area that reacts to the pointer, `cursor` what highlights it, `anchor` where its tooltip points.
64
65
  */
65
66
  interface YuwChartHit {
66
- readonly anchor: {
67
- readonly x: number;
68
- readonly y: number;
69
- };
70
- readonly cursor: string | null;
71
- readonly d: string;
72
- readonly points: readonly YuwChartPoint[];
73
- readonly tooltip: YuwChartTooltip;
74
- }
75
- interface YuwChartTick {
76
- readonly anchor: 'end' | 'middle' | 'start';
77
- readonly label: string;
67
+ readonly anchor: {
78
68
  readonly x: number;
79
69
  readonly y: number;
70
+ };
71
+ readonly cursor: string | null;
72
+ readonly d: string;
73
+ readonly points: readonly YuwChartPoint[];
74
+ readonly tooltip: YuwChartTooltip;
75
+ }
76
+ interface YuwChartTick {
77
+ readonly anchor: 'end' | 'middle' | 'start';
78
+ readonly label: string;
79
+ readonly x: number;
80
+ readonly y: number;
80
81
  }
81
82
  interface YuwChartTableRow {
82
- readonly cells: readonly string[];
83
- readonly header: string | null;
83
+ readonly cells: readonly string[];
84
+ readonly header: string | null;
84
85
  }
85
86
  /** The text alternative: the same numbers as a table, with a corner header only when rows have headers. */
86
87
  interface YuwChartTable {
87
- readonly corner: string | null;
88
- readonly head: readonly string[];
89
- readonly rows: readonly YuwChartTableRow[];
88
+ readonly corner: string | null;
89
+ readonly head: readonly string[];
90
+ readonly rows: readonly YuwChartTableRow[];
90
91
  }
91
92
  /** Everything a chart kind draws, in pixels of the measured plot. */
92
93
  interface YuwChartScene {
93
- readonly cursorPaint: 'band' | 'line';
94
- readonly empty: boolean;
95
- readonly grid: readonly string[];
96
- readonly hits: readonly YuwChartHit[];
97
- readonly marks: readonly YuwChartMark[];
98
- /** Where marks and hit areas are drawn from; anchors, ticks and the grid are absolute. */
99
- readonly origin: {
100
- readonly x: number;
101
- readonly y: number;
102
- };
103
- readonly table: YuwChartTable;
104
- readonly ticks: readonly YuwChartTick[];
105
- }
106
-
107
- interface YuwChartSize {
108
- readonly height: number;
109
- readonly width: number;
94
+ readonly cursorPaint: 'band' | 'line';
95
+ readonly empty: boolean;
96
+ readonly grid: readonly string[];
97
+ readonly hits: readonly YuwChartHit[];
98
+ readonly marks: readonly YuwChartMark[];
99
+ /** Where marks and hit areas are drawn from; anchors, ticks and the grid are absolute. */
100
+ readonly origin: {
101
+ readonly x: number;
102
+ readonly y: number;
103
+ };
104
+ readonly table: YuwChartTable;
105
+ readonly ticks: readonly YuwChartTick[];
110
106
  }
111
-
112
107
  /**
113
108
  * Chart drawn as SVG from a series `config` and `data` rows, with a tooltip and a legend that read the same config.
114
109
  *
@@ -156,64 +151,128 @@ interface YuwChartSize {
156
151
  * />
157
152
  * ```
158
153
  */
159
- declare class YuwChartComponent {
160
- private readonly _id;
161
- private readonly _plot;
162
- readonly ariaLabel: _angular_core.InputSignal<string>;
163
- readonly categoryFormat: _angular_core.InputSignal<YuwChartCategoryFormatDto>;
164
- readonly categoryKey: _angular_core.InputSignal<string | undefined>;
165
- readonly categoryLabel: _angular_core.InputSignal<string | undefined>;
166
- readonly config: _angular_core.InputSignal<Readonly<Record<string, yukit_web_chart.YuwChartSeriesDto>>>;
167
- readonly data: _angular_core.InputSignal<readonly Readonly<Record<string, unknown>>[]>;
168
- readonly description: _angular_core.InputSignal<string | undefined>;
169
- readonly emptyText: _angular_core.InputSignal<string>;
170
- readonly kind: _angular_core.InputSignal<YuwChartKindDto>;
171
- readonly legend: _angular_core.InputSignalWithTransform<boolean, unknown>;
172
- readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
173
- readonly userClass: _angular_core.InputSignal<string>;
174
- readonly valueFormat: _angular_core.InputSignal<YuwChartValueFormatDto>;
175
- protected readonly descriptionId: string;
176
- protected readonly size: _angular_core.Signal<YuwChartSize>;
177
- protected readonly scene: _angular_core.Signal<YuwChartScene>;
178
- protected readonly active: _angular_core.WritableSignal<number | null>;
179
- protected readonly activeHit: _angular_core.Signal<YuwChartHit | null>;
180
- protected readonly activePoints: _angular_core.Signal<readonly YuwChartPoint[]>;
181
- protected readonly announcement: _angular_core.Signal<string>;
182
- protected readonly cursorClass: _angular_core.Signal<string>;
183
- protected readonly describedBy: _angular_core.Signal<string | null>;
184
- protected readonly drawable: _angular_core.Signal<boolean>;
185
- protected readonly interactive: _angular_core.Signal<boolean>;
186
- protected readonly legendItems: _angular_core.Signal<{
187
- key: string;
188
- label: string;
189
- color: string;
190
- }[]>;
191
- protected readonly marks: _angular_core.Signal<{
192
- d: string;
193
- key: string;
194
- class: string;
195
- style: {
196
- [x: string]: string;
197
- };
198
- }[]>;
199
- protected readonly origin: _angular_core.Signal<string>;
200
- protected readonly rootClass: _angular_core.Signal<string>;
201
- protected readonly showLegend: _angular_core.Signal<boolean>;
202
- protected readonly tooltip: _angular_core.Signal<{
203
- left: number;
204
- top: number;
205
- class: string;
206
- items: readonly YuwChartTooltipItem[];
207
- title: string | null;
208
- } | null>;
209
- protected readonly viewBox: _angular_core.Signal<string>;
210
- protected activate(index: number): void;
211
- protected clear(): void;
212
- protected onFocus(event: FocusEvent): void;
213
- protected onKeydown(event: KeyboardEvent): void;
214
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwChartComponent, never>;
215
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwChartComponent, "yuw-chart", never, { "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "categoryFormat": { "alias": "categoryFormat"; "required": false; "isSignal": true; }; "categoryKey": { "alias": "categoryKey"; "required": false; "isSignal": true; }; "categoryLabel": { "alias": "categoryLabel"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": true; "isSignal": true; }; "kind": { "alias": "kind"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
154
+ export declare class YuwChartComponent {
155
+ private readonly _id;
156
+ private readonly _plot;
157
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
158
+ readonly categoryFormat: import("@angular/core").InputSignal<YuwChartCategoryFormatDto>;
159
+ readonly categoryKey: import("@angular/core").InputSignal<string | undefined>;
160
+ readonly categoryLabel: import("@angular/core").InputSignal<string | undefined>;
161
+ readonly config: import("@angular/core").InputSignal<Readonly<Record<string, import("yukit-web/chart").YuwChartSeriesDto>>>;
162
+ readonly data: import("@angular/core").InputSignal<readonly Readonly<Record<string, unknown>>[]>;
163
+ readonly description: import("@angular/core").InputSignal<string | undefined>;
164
+ readonly emptyText: import("@angular/core").InputSignal<string>;
165
+ readonly kind: import("@angular/core").InputSignal<YuwChartKindDto>;
166
+ readonly legend: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
167
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
168
+ readonly userClass: import("@angular/core").InputSignal<string>;
169
+ readonly valueFormat: import("@angular/core").InputSignal<YuwChartValueFormatDto>;
170
+ protected readonly descriptionId: string;
171
+ protected readonly size: import("@angular/core").Signal<YuwChartSize>;
172
+ protected readonly scene: import("@angular/core").Signal<YuwChartScene>;
173
+ protected readonly active: import("@angular/core").WritableSignal<number | null>;
174
+ protected readonly activeHit: import("@angular/core").Signal<YuwChartHit | null>;
175
+ protected readonly activePoints: import("@angular/core").Signal<readonly YuwChartPoint[]>;
176
+ protected readonly announcement: import("@angular/core").Signal<string>;
177
+ protected readonly cursorClass: import("@angular/core").Signal<string>;
178
+ protected readonly describedBy: import("@angular/core").Signal<string | null>;
179
+ protected readonly drawable: import("@angular/core").Signal<boolean>;
180
+ protected readonly interactive: import("@angular/core").Signal<boolean>;
181
+ protected readonly legendItems: import("@angular/core").Signal<{
182
+ key: string;
183
+ label: string;
184
+ color: string;
185
+ }[]>;
186
+ protected readonly marks: import("@angular/core").Signal<{
187
+ d: string;
188
+ key: string;
189
+ class: string;
190
+ style: {
191
+ [x: string]: string;
192
+ };
193
+ }[]>;
194
+ protected readonly origin: import("@angular/core").Signal<string>;
195
+ protected readonly rootClass: import("@angular/core").Signal<string>;
196
+ protected readonly showLegend: import("@angular/core").Signal<boolean>;
197
+ protected readonly tooltip: import("@angular/core").Signal<{
198
+ left: number;
199
+ top: number;
200
+ class: string;
201
+ items: readonly YuwChartTooltipItem[];
202
+ title: string | null;
203
+ } | null>;
204
+ protected readonly viewBox: import("@angular/core").Signal<string>;
205
+ protected activate(index: number): void;
206
+ protected clear(): void;
207
+ protected onFocus(event: FocusEvent): void;
208
+ protected onKeydown(event: KeyboardEvent): void;
209
+ static ɵfac: i0.ɵɵFactoryDeclaration<YuwChartComponent, never>;
210
+ static ɵcmp: i0.ɵɵComponentDeclaration<YuwChartComponent, "yuw-chart", never, {
211
+ "ariaLabel": {
212
+ "alias": "ariaLabel";
213
+ "required": true;
214
+ "isSignal": true;
215
+ };
216
+ "categoryFormat": {
217
+ "alias": "categoryFormat";
218
+ "required": false;
219
+ "isSignal": true;
220
+ };
221
+ "categoryKey": {
222
+ "alias": "categoryKey";
223
+ "required": false;
224
+ "isSignal": true;
225
+ };
226
+ "categoryLabel": {
227
+ "alias": "categoryLabel";
228
+ "required": false;
229
+ "isSignal": true;
230
+ };
231
+ "config": {
232
+ "alias": "config";
233
+ "required": true;
234
+ "isSignal": true;
235
+ };
236
+ "data": {
237
+ "alias": "data";
238
+ "required": true;
239
+ "isSignal": true;
240
+ };
241
+ "description": {
242
+ "alias": "description";
243
+ "required": false;
244
+ "isSignal": true;
245
+ };
246
+ "emptyText": {
247
+ "alias": "emptyText";
248
+ "required": true;
249
+ "isSignal": true;
250
+ };
251
+ "kind": {
252
+ "alias": "kind";
253
+ "required": false;
254
+ "isSignal": true;
255
+ };
256
+ "legend": {
257
+ "alias": "legend";
258
+ "required": false;
259
+ "isSignal": true;
260
+ };
261
+ "loading": {
262
+ "alias": "loading";
263
+ "required": false;
264
+ "isSignal": true;
265
+ };
266
+ "userClass": {
267
+ "alias": "class";
268
+ "required": false;
269
+ "isSignal": true;
270
+ };
271
+ "valueFormat": {
272
+ "alias": "valueFormat";
273
+ "required": false;
274
+ "isSignal": true;
275
+ };
276
+ }, {}, never, never, true, never>;
216
277
  }
217
-
218
- export { YUW_CHART_COLORS, YuwChartComponent, yuwChartColorAt };
219
- export type { YuwChartCategoryFormatDto, YuwChartColorDto, YuwChartConfigDto, YuwChartKindDto, YuwChartRowDto, YuwChartSeriesDto, YuwChartValueFormatDto };
278
+ export {};
@@ -1,32 +1,53 @@
1
- import * as i0 from '@angular/core';
2
- import * as i1 from '@spartan-ng/brain/accordion';
3
- import { ClassValue } from 'clsx';
4
-
5
- declare class HlmAccordion {
6
- constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordion, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAccordion, "[hlmAccordion], hlm-accordion", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnAccordion; inputs: { "type": "type"; "orientation": "orientation"; }; outputs: {}; }]>;
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@spartan-ng/brain/accordion";
3
+ import { ClassValue } from "clsx";
4
+ export declare class HlmAccordion {
5
+ constructor();
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordion, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAccordion, "[hlmAccordion], hlm-accordion", never, {}, {}, never, never, true, [{
8
+ directive: typeof i1.BrnAccordion;
9
+ inputs: {
10
+ "type": "type";
11
+ "orientation": "orientation";
12
+ };
13
+ outputs: {};
14
+ }]>;
9
15
  }
10
-
11
- declare class HlmAccordionContent {
12
- constructor();
13
- static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordionContent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<HlmAccordionContent, "hlm-accordion-content", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.BrnAccordionContent; inputs: { "style": "style"; }; outputs: {}; }]>;
16
+ export declare class HlmAccordionContent {
17
+ constructor();
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordionContent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmAccordionContent, "hlm-accordion-content", never, {}, {}, never, ["*"], true, [{
20
+ directive: typeof i1.BrnAccordionContent;
21
+ inputs: {
22
+ "style": "style";
23
+ };
24
+ outputs: {};
25
+ }]>;
15
26
  }
16
-
17
- declare class HlmAccordionItem {
18
- constructor();
19
- static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordionItem, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAccordionItem, "[hlmAccordionItem],hlm-accordion-item", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnAccordionItem; inputs: { "isOpened": "isOpened"; "disabled": "disabled"; }; outputs: { "openedChange": "openedChange"; }; }]>;
27
+ export declare class HlmAccordionItem {
28
+ constructor();
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordionItem, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAccordionItem, "[hlmAccordionItem],hlm-accordion-item", never, {}, {}, never, never, true, [{
31
+ directive: typeof i1.BrnAccordionItem;
32
+ inputs: {
33
+ "isOpened": "isOpened";
34
+ "disabled": "disabled";
35
+ };
36
+ outputs: {
37
+ "openedChange": "openedChange";
38
+ };
39
+ }]>;
21
40
  }
22
-
23
- declare class HlmAccordionTrigger {
24
- readonly triggerClass: i0.InputSignal<ClassValue>;
25
- protected readonly _computedTriggerClass: i0.Signal<string>;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordionTrigger, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<HlmAccordionTrigger, "hlm-accordion-trigger", never, { "triggerClass": { "alias": "triggerClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
41
+ export declare class HlmAccordionTrigger {
42
+ readonly triggerClass: import("@angular/core").InputSignal<ClassValue>;
43
+ protected readonly _computedTriggerClass: import("@angular/core").Signal<string>;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAccordionTrigger, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmAccordionTrigger, "hlm-accordion-trigger", never, {
46
+ "triggerClass": {
47
+ "alias": "triggerClass";
48
+ "required": false;
49
+ "isSignal": true;
50
+ };
51
+ }, {}, never, ["*"], true, never>;
28
52
  }
29
-
30
- declare const HlmAccordionImports: readonly [typeof HlmAccordion, typeof HlmAccordionItem, typeof HlmAccordionContent, typeof HlmAccordionTrigger];
31
-
32
- export { HlmAccordion, HlmAccordionContent, HlmAccordionImports, HlmAccordionItem, HlmAccordionTrigger };
53
+ export declare const HlmAccordionImports: readonly [typeof HlmAccordion, typeof HlmAccordionItem, typeof HlmAccordionContent, typeof HlmAccordionTrigger];