ngwr 15.1.0 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/bits/aurora/styles/_rules.scss +11 -0
  2. package/bits/dot-grid/styles/_rules.scss +9 -1
  3. package/bits/iridescence/iridescence.scss +1 -0
  4. package/bits/iridescence/styles/_index.scss +8 -0
  5. package/bits/iridescence/styles/_rules.scss +72 -0
  6. package/bits/marquee/styles/_rules.scss +7 -3
  7. package/bits/ripple-grid/styles/_rules.scss +10 -2
  8. package/bits/spotlight-card/styles/_rules.scss +7 -4
  9. package/bits/star-border/styles/_rules.scss +5 -2
  10. package/bits/threads/styles/_rules.scss +9 -1
  11. package/bits/waves/styles/_rules.scss +8 -1
  12. package/charts/candlestick-chart/styles/_index.scss +2 -2
  13. package/fesm2022/ngwr-affix.mjs +3 -3
  14. package/fesm2022/ngwr-alert.mjs +3 -3
  15. package/fesm2022/ngwr-anchor.mjs +3 -3
  16. package/fesm2022/ngwr-avatar.mjs +3 -3
  17. package/fesm2022/ngwr-back-top.mjs +3 -3
  18. package/fesm2022/ngwr-badge.mjs +6 -6
  19. package/fesm2022/ngwr-bits-aurora.mjs +30 -38
  20. package/fesm2022/ngwr-bits-aurora.mjs.map +1 -1
  21. package/fesm2022/ngwr-bits-blur-text.mjs +3 -3
  22. package/fesm2022/ngwr-bits-border-glow-testing.mjs.map +1 -1
  23. package/fesm2022/ngwr-bits-border-glow.mjs +11 -5
  24. package/fesm2022/ngwr-bits-border-glow.mjs.map +1 -1
  25. package/fesm2022/ngwr-bits-circular-text.mjs +3 -3
  26. package/fesm2022/ngwr-bits-click-spark.mjs +3 -3
  27. package/fesm2022/ngwr-bits-confetti.mjs +3 -3
  28. package/fesm2022/ngwr-bits-decrypt-text.mjs +3 -3
  29. package/fesm2022/ngwr-bits-dot-grid.mjs +12 -9
  30. package/fesm2022/ngwr-bits-dot-grid.mjs.map +1 -1
  31. package/fesm2022/ngwr-bits-falling-text.mjs +3 -3
  32. package/fesm2022/ngwr-bits-fuzzy-text.mjs +3 -3
  33. package/fesm2022/ngwr-bits-glitch-text.mjs +3 -3
  34. package/fesm2022/ngwr-bits-gradient-text.mjs +3 -3
  35. package/fesm2022/ngwr-bits-iridescence-testing.mjs +31 -0
  36. package/fesm2022/ngwr-bits-iridescence-testing.mjs.map +1 -0
  37. package/fesm2022/ngwr-bits-iridescence.mjs +591 -0
  38. package/fesm2022/ngwr-bits-iridescence.mjs.map +1 -0
  39. package/fesm2022/ngwr-bits-marquee-testing.mjs +1 -1
  40. package/fesm2022/ngwr-bits-marquee-testing.mjs.map +1 -1
  41. package/fesm2022/ngwr-bits-marquee.mjs +7 -7
  42. package/fesm2022/ngwr-bits-marquee.mjs.map +1 -1
  43. package/fesm2022/ngwr-bits-ripple-grid.mjs +8 -11
  44. package/fesm2022/ngwr-bits-ripple-grid.mjs.map +1 -1
  45. package/fesm2022/ngwr-bits-rotating-text.mjs +3 -3
  46. package/fesm2022/ngwr-bits-shiny-text.mjs +6 -6
  47. package/fesm2022/ngwr-bits-splash-cursor.mjs +3 -3
  48. package/fesm2022/ngwr-bits-split-text.mjs +3 -3
  49. package/fesm2022/ngwr-bits-spotlight-card-testing.mjs +1 -1
  50. package/fesm2022/ngwr-bits-spotlight-card-testing.mjs.map +1 -1
  51. package/fesm2022/ngwr-bits-spotlight-card.mjs +10 -10
  52. package/fesm2022/ngwr-bits-spotlight-card.mjs.map +1 -1
  53. package/fesm2022/ngwr-bits-star-border-testing.mjs +1 -1
  54. package/fesm2022/ngwr-bits-star-border-testing.mjs.map +1 -1
  55. package/fesm2022/ngwr-bits-star-border.mjs +7 -7
  56. package/fesm2022/ngwr-bits-star-border.mjs.map +1 -1
  57. package/fesm2022/ngwr-bits-threads.mjs +17 -12
  58. package/fesm2022/ngwr-bits-threads.mjs.map +1 -1
  59. package/fesm2022/ngwr-bits-tilt-card.mjs +6 -6
  60. package/fesm2022/ngwr-bits-typewriter.mjs +3 -3
  61. package/fesm2022/ngwr-bits-waves.mjs +15 -11
  62. package/fesm2022/ngwr-bits-waves.mjs.map +1 -1
  63. package/fesm2022/ngwr-breadcrumbs.mjs +6 -6
  64. package/fesm2022/ngwr-burger.mjs +3 -3
  65. package/fesm2022/ngwr-button.mjs +6 -6
  66. package/fesm2022/ngwr-calendar.mjs +3 -3
  67. package/fesm2022/ngwr-card.mjs +9 -9
  68. package/fesm2022/ngwr-carousel.mjs +6 -6
  69. package/fesm2022/ngwr-cascader.mjs +3 -3
  70. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  71. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  72. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  73. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  74. package/fesm2022/ngwr-charts-candlestick-chart.mjs +7 -7
  75. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-chart-legend.mjs +6 -6
  77. package/fesm2022/ngwr-charts-core.mjs +3 -3
  78. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  79. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  80. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  81. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  83. package/fesm2022/ngwr-charts-meter-group.mjs +3 -3
  84. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  85. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  86. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  87. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  88. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  89. package/fesm2022/ngwr-checkbox.mjs +6 -6
  90. package/fesm2022/ngwr-clipboard.mjs +3 -3
  91. package/fesm2022/ngwr-collapse.mjs +9 -9
  92. package/fesm2022/ngwr-color-picker.mjs +6 -6
  93. package/fesm2022/ngwr-command-palette.mjs +3 -3
  94. package/fesm2022/ngwr-compare.mjs +3 -3
  95. package/fesm2022/ngwr-context-menu.mjs +12 -12
  96. package/fesm2022/ngwr-cookie.mjs +3 -3
  97. package/fesm2022/ngwr-counter.mjs +6 -6
  98. package/fesm2022/ngwr-date-picker.mjs +21 -21
  99. package/fesm2022/ngwr-date.mjs +6 -6
  100. package/fesm2022/ngwr-density.mjs +6 -6
  101. package/fesm2022/ngwr-descriptions.mjs +6 -6
  102. package/fesm2022/ngwr-dialog.mjs +15 -15
  103. package/fesm2022/ngwr-directives.mjs +12 -12
  104. package/fesm2022/ngwr-divider.mjs +3 -3
  105. package/fesm2022/ngwr-drawer.mjs +18 -18
  106. package/fesm2022/ngwr-dropdown.mjs +9 -9
  107. package/fesm2022/ngwr-editor.mjs +3 -3
  108. package/fesm2022/ngwr-empty.mjs +3 -3
  109. package/fesm2022/ngwr-event-calendar.mjs +6 -6
  110. package/fesm2022/ngwr-file-upload.mjs +3 -3
  111. package/fesm2022/ngwr-form.mjs +9 -9
  112. package/fesm2022/ngwr-graph.mjs +6 -6
  113. package/fesm2022/ngwr-hotkey.mjs +6 -6
  114. package/fesm2022/ngwr-i18n.mjs +9 -9
  115. package/fesm2022/ngwr-icon.mjs +6 -6
  116. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  117. package/fesm2022/ngwr-input-number.mjs +3 -3
  118. package/fesm2022/ngwr-input-otp.mjs +3 -3
  119. package/fesm2022/ngwr-input.mjs +15 -15
  120. package/fesm2022/ngwr-keyboard.mjs +3 -3
  121. package/fesm2022/ngwr-knob.mjs +3 -3
  122. package/fesm2022/ngwr-layout.mjs +15 -15
  123. package/fesm2022/ngwr-lightbox.mjs +3 -3
  124. package/fesm2022/ngwr-list.mjs +6 -6
  125. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  126. package/fesm2022/ngwr-mention.mjs +6 -6
  127. package/fesm2022/ngwr-meta.mjs +6 -6
  128. package/fesm2022/ngwr-overlay.mjs +6 -6
  129. package/fesm2022/ngwr-page-header.mjs +3 -3
  130. package/fesm2022/ngwr-pagination.mjs +3 -3
  131. package/fesm2022/ngwr-pipes.mjs +21 -21
  132. package/fesm2022/ngwr-platform.mjs +6 -6
  133. package/fesm2022/ngwr-popconfirm.mjs +6 -6
  134. package/fesm2022/ngwr-popover.mjs +12 -12
  135. package/fesm2022/ngwr-progress.mjs +3 -3
  136. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  137. package/fesm2022/ngwr-qr.mjs +4 -3
  138. package/fesm2022/ngwr-qr.mjs.map +1 -1
  139. package/fesm2022/ngwr-radio.mjs +6 -6
  140. package/fesm2022/ngwr-rating.mjs +3 -3
  141. package/fesm2022/ngwr-result.mjs +12 -12
  142. package/fesm2022/ngwr-schema-form.mjs +3 -3
  143. package/fesm2022/ngwr-scroll.mjs +3 -3
  144. package/fesm2022/ngwr-segmented.mjs +3 -3
  145. package/fesm2022/ngwr-select.mjs +12 -12
  146. package/fesm2022/ngwr-sidebar.mjs +3 -3
  147. package/fesm2022/ngwr-skeleton.mjs +3 -3
  148. package/fesm2022/ngwr-slider.mjs +3 -3
  149. package/fesm2022/ngwr-sortable-list.mjs +9 -9
  150. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  151. package/fesm2022/ngwr-spinner.mjs +3 -3
  152. package/fesm2022/ngwr-splitter.mjs +3 -3
  153. package/fesm2022/ngwr-statistic.mjs +9 -9
  154. package/fesm2022/ngwr-stepper.mjs +6 -6
  155. package/fesm2022/ngwr-storage.mjs +3 -3
  156. package/fesm2022/ngwr-switch.mjs +3 -3
  157. package/fesm2022/ngwr-table.mjs +18 -18
  158. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  159. package/fesm2022/ngwr-tabs.mjs +6 -6
  160. package/fesm2022/ngwr-textarea.mjs +3 -3
  161. package/fesm2022/ngwr-theme.mjs +3 -3
  162. package/fesm2022/ngwr-timeline.mjs +6 -6
  163. package/fesm2022/ngwr-toast.mjs +9 -9
  164. package/fesm2022/ngwr-toolbar.mjs +3 -3
  165. package/fesm2022/ngwr-tour.mjs +6 -6
  166. package/fesm2022/ngwr-transfer.mjs +3 -3
  167. package/fesm2022/ngwr-tree.mjs +3 -3
  168. package/fesm2022/ngwr-typography.mjs +3 -3
  169. package/fesm2022/ngwr-utils.mjs +31 -1
  170. package/fesm2022/ngwr-utils.mjs.map +1 -1
  171. package/fesm2022/ngwr-version.mjs +1 -1
  172. package/fesm2022/ngwr-version.mjs.map +1 -1
  173. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  174. package/fesm2022/ngwr-window.mjs +12 -12
  175. package/llms-full.txt +12 -1
  176. package/mcp/server.js +15 -1
  177. package/mcp/tools.js +3 -3
  178. package/package.json +10 -1
  179. package/schematics/ng-add/index.js +2 -2
  180. package/schematics/use/symbol-map.json +1 -0
  181. package/skills/ngwr/SKILL.md +1 -1
  182. package/skills/ngwr/references/catalog.md +2 -0
  183. package/types/ngwr-bits-aurora.d.ts +11 -0
  184. package/types/ngwr-bits-border-glow-testing.d.ts +5 -6
  185. package/types/ngwr-bits-border-glow.d.ts +5 -1
  186. package/types/ngwr-bits-dot-grid.d.ts +7 -2
  187. package/types/ngwr-bits-iridescence-testing.d.ts +85 -0
  188. package/types/ngwr-bits-iridescence.d.ts +244 -0
  189. package/types/ngwr-bits-ripple-grid.d.ts +4 -7
  190. package/types/ngwr-bits-splash-cursor.d.ts +0 -1
  191. package/types/ngwr-bits-spotlight-card-testing.d.ts +3 -1
  192. package/types/ngwr-bits-star-border-testing.d.ts +7 -7
  193. package/types/ngwr-bits-threads.d.ts +11 -8
  194. package/types/ngwr-bits-waves.d.ts +6 -3
  195. package/types/ngwr-charts-core.d.ts +0 -10
  196. package/types/ngwr-color-picker.d.ts +0 -21
  197. package/types/ngwr-dropdown.d.ts +0 -52
  198. package/types/ngwr-editor.d.ts +2 -84
  199. package/types/ngwr-i18n.d.ts +0 -15
  200. package/types/ngwr-mention.d.ts +0 -13
  201. package/types/ngwr-popconfirm.d.ts +0 -33
  202. package/types/ngwr-popover.d.ts +0 -51
  203. package/types/ngwr-tour.d.ts +0 -2
  204. package/types/ngwr-utils.d.ts +49 -7
  205. package/types/ngwr-version.d.ts +1 -1
  206. package/types/ngwr-window.d.ts +0 -56
@@ -29,7 +29,7 @@ var WrCarouselSlide = class WrCarouselSlide {
29
29
  }, ...ngDevMode ? [{ debugName: "offScreen" }] : /* istanbul ignore next */ []);
30
30
  static ɵfac = i0.ɵɵngDeclareFactory({
31
31
  minVersion: "12.0.0",
32
- version: "22.2.3",
32
+ version: "22.2.4",
33
33
  ngImport: i0,
34
34
  type: WrCarouselSlide,
35
35
  deps: [],
@@ -37,7 +37,7 @@ var WrCarouselSlide = class WrCarouselSlide {
37
37
  });
38
38
  static ɵcmp = i0.ɵɵngDeclareComponent({
39
39
  minVersion: "17.1.0",
40
- version: "22.2.3",
40
+ version: "22.2.4",
41
41
  type: WrCarouselSlide,
42
42
  isStandalone: true,
43
43
  selector: "wr-carousel-slide",
@@ -65,7 +65,7 @@ var WrCarouselSlide = class WrCarouselSlide {
65
65
  };
66
66
  i0.ɵɵngDeclareClassMetadata({
67
67
  minVersion: "12.0.0",
68
- version: "22.2.3",
68
+ version: "22.2.4",
69
69
  ngImport: i0,
70
70
  type: WrCarouselSlide,
71
71
  decorators: [{
@@ -236,7 +236,7 @@ var WrCarousel = class WrCarousel {
236
236
  }
237
237
  static ɵfac = i0.ɵɵngDeclareFactory({
238
238
  minVersion: "12.0.0",
239
- version: "22.2.3",
239
+ version: "22.2.4",
240
240
  ngImport: i0,
241
241
  type: WrCarousel,
242
242
  deps: [],
@@ -244,7 +244,7 @@ var WrCarousel = class WrCarousel {
244
244
  });
245
245
  static ɵcmp = i0.ɵɵngDeclareComponent({
246
246
  minVersion: "17.0.0",
247
- version: "22.2.3",
247
+ version: "22.2.4",
248
248
  type: WrCarousel,
249
249
  isStandalone: true,
250
250
  selector: "wr-carousel",
@@ -353,7 +353,7 @@ var WrCarousel = class WrCarousel {
353
353
  };
354
354
  i0.ɵɵngDeclareClassMetadata({
355
355
  minVersion: "12.0.0",
356
- version: "22.2.3",
356
+ version: "22.2.4",
357
357
  ngImport: i0,
358
358
  type: WrCarousel,
359
359
  decorators: [{
@@ -346,7 +346,7 @@ var WrCascader = class WrCascader {
346
346
  }
347
347
  static ɵfac = i0.ɵɵngDeclareFactory({
348
348
  minVersion: "12.0.0",
349
- version: "22.2.3",
349
+ version: "22.2.4",
350
350
  ngImport: i0,
351
351
  type: WrCascader,
352
352
  deps: [],
@@ -354,7 +354,7 @@ var WrCascader = class WrCascader {
354
354
  });
355
355
  static ɵcmp = i0.ɵɵngDeclareComponent({
356
356
  minVersion: "17.0.0",
357
- version: "22.2.3",
357
+ version: "22.2.4",
358
358
  type: WrCascader,
359
359
  isStandalone: true,
360
360
  selector: "wr-cascader",
@@ -465,7 +465,7 @@ var WrCascader = class WrCascader {
465
465
  };
466
466
  i0.ɵɵngDeclareClassMetadata({
467
467
  minVersion: "12.0.0",
468
- version: "22.2.3",
468
+ version: "22.2.4",
469
469
  ngImport: i0,
470
470
  type: WrCascader,
471
471
  decorators: [{
@@ -499,7 +499,7 @@ var WrBarChart = class WrBarChart {
499
499
  }
500
500
  static ɵfac = i0.ɵɵngDeclareFactory({
501
501
  minVersion: "12.0.0",
502
- version: "22.2.3",
502
+ version: "22.2.4",
503
503
  ngImport: i0,
504
504
  type: WrBarChart,
505
505
  deps: [],
@@ -507,7 +507,7 @@ var WrBarChart = class WrBarChart {
507
507
  });
508
508
  static ɵcmp = i0.ɵɵngDeclareComponent({
509
509
  minVersion: "17.0.0",
510
- version: "22.2.3",
510
+ version: "22.2.4",
511
511
  type: WrBarChart,
512
512
  isStandalone: true,
513
513
  selector: "wr-bar-chart",
@@ -698,7 +698,7 @@ var WrBarChart = class WrBarChart {
698
698
  };
699
699
  i0.ɵɵngDeclareClassMetadata({
700
700
  minVersion: "12.0.0",
701
- version: "22.2.3",
701
+ version: "22.2.4",
702
702
  ngImport: i0,
703
703
  type: WrBarChart,
704
704
  decorators: [{
@@ -307,7 +307,7 @@ var WrBoxplotChart = class WrBoxplotChart {
307
307
  }
308
308
  static ɵfac = i0.ɵɵngDeclareFactory({
309
309
  minVersion: "12.0.0",
310
- version: "22.2.3",
310
+ version: "22.2.4",
311
311
  ngImport: i0,
312
312
  type: WrBoxplotChart,
313
313
  deps: [],
@@ -315,7 +315,7 @@ var WrBoxplotChart = class WrBoxplotChart {
315
315
  });
316
316
  static ɵcmp = i0.ɵɵngDeclareComponent({
317
317
  minVersion: "17.0.0",
318
- version: "22.2.3",
318
+ version: "22.2.4",
319
319
  type: WrBoxplotChart,
320
320
  isStandalone: true,
321
321
  selector: "wr-boxplot-chart",
@@ -411,7 +411,7 @@ var WrBoxplotChart = class WrBoxplotChart {
411
411
  };
412
412
  i0.ɵɵngDeclareClassMetadata({
413
413
  minVersion: "12.0.0",
414
- version: "22.2.3",
414
+ version: "22.2.4",
415
415
  ngImport: i0,
416
416
  type: WrBoxplotChart,
417
417
  decorators: [{
@@ -249,7 +249,7 @@ var WrBulletChart = class WrBulletChart {
249
249
  });
250
250
  static ɵfac = i0.ɵɵngDeclareFactory({
251
251
  minVersion: "12.0.0",
252
- version: "22.2.3",
252
+ version: "22.2.4",
253
253
  ngImport: i0,
254
254
  type: WrBulletChart,
255
255
  deps: [],
@@ -257,7 +257,7 @@ var WrBulletChart = class WrBulletChart {
257
257
  });
258
258
  static ɵcmp = i0.ɵɵngDeclareComponent({
259
259
  minVersion: "17.0.0",
260
- version: "22.2.3",
260
+ version: "22.2.4",
261
261
  type: WrBulletChart,
262
262
  isStandalone: true,
263
263
  selector: "wr-bullet-chart",
@@ -351,7 +351,7 @@ var WrBulletChart = class WrBulletChart {
351
351
  };
352
352
  i0.ɵɵngDeclareClassMetadata({
353
353
  minVersion: "12.0.0",
354
- version: "22.2.3",
354
+ version: "22.2.4",
355
355
  ngImport: i0,
356
356
  type: WrBulletChart,
357
357
  decorators: [{
@@ -216,7 +216,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
216
216
  }
217
217
  static ɵfac = i0.ɵɵngDeclareFactory({
218
218
  minVersion: "12.0.0",
219
- version: "22.2.3",
219
+ version: "22.2.4",
220
220
  ngImport: i0,
221
221
  type: WrCalendarHeatmap,
222
222
  deps: [],
@@ -224,7 +224,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
224
224
  });
225
225
  static ɵcmp = i0.ɵɵngDeclareComponent({
226
226
  minVersion: "17.0.0",
227
- version: "22.2.3",
227
+ version: "22.2.4",
228
228
  type: WrCalendarHeatmap,
229
229
  isStandalone: true,
230
230
  selector: "wr-calendar-heatmap",
@@ -344,7 +344,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
344
344
  };
345
345
  i0.ɵɵngDeclareClassMetadata({
346
346
  minVersion: "12.0.0",
347
- version: "22.2.3",
347
+ version: "22.2.4",
348
348
  ngImport: i0,
349
349
  type: WrCalendarHeatmap,
350
350
  decorators: [{
@@ -266,7 +266,7 @@ var WrCandlestickChart = class WrCandlestickChart {
266
266
  }
267
267
  static ɵfac = i0.ɵɵngDeclareFactory({
268
268
  minVersion: "12.0.0",
269
- version: "22.2.3",
269
+ version: "22.2.4",
270
270
  ngImport: i0,
271
271
  type: WrCandlestickChart,
272
272
  deps: [],
@@ -274,7 +274,7 @@ var WrCandlestickChart = class WrCandlestickChart {
274
274
  });
275
275
  static ɵcmp = i0.ɵɵngDeclareComponent({
276
276
  minVersion: "17.0.0",
277
- version: "22.2.3",
277
+ version: "22.2.4",
278
278
  type: WrCandlestickChart,
279
279
  isStandalone: true,
280
280
  selector: "wr-candlestick-chart",
@@ -346,8 +346,8 @@ var WrCandlestickChart = class WrCandlestickChart {
346
346
  host: {
347
347
  properties: {
348
348
  "class.wr-candlestick-chart--dense": "dense()",
349
- "style.--wr-candlestick-chart-increase-color": "increaseColor()",
350
- "style.--wr-candlestick-chart-decrease-color": "decreaseColor()"
349
+ "style.--wr-candlestick-chart-input-increase-color": "increaseColor()",
350
+ "style.--wr-candlestick-chart-input-decrease-color": "decreaseColor()"
351
351
  },
352
352
  classAttribute: "wr-candlestick-chart"
353
353
  },
@@ -393,7 +393,7 @@ var WrCandlestickChart = class WrCandlestickChart {
393
393
  };
394
394
  i0.ɵɵngDeclareClassMetadata({
395
395
  minVersion: "12.0.0",
396
- version: "22.2.3",
396
+ version: "22.2.4",
397
397
  ngImport: i0,
398
398
  type: WrCandlestickChart,
399
399
  decorators: [{
@@ -404,8 +404,8 @@ i0.ɵɵngDeclareClassMetadata({
404
404
  host: {
405
405
  class: "wr-candlestick-chart",
406
406
  "[class.wr-candlestick-chart--dense]": "dense()",
407
- "[style.--wr-candlestick-chart-increase-color]": "increaseColor()",
408
- "[style.--wr-candlestick-chart-decrease-color]": "decreaseColor()"
407
+ "[style.--wr-candlestick-chart-input-increase-color]": "increaseColor()",
408
+ "[style.--wr-candlestick-chart-input-decrease-color]": "decreaseColor()"
409
409
  },
410
410
  imports: [WrChartTable],
411
411
  template: "@let active = activeSlot();\n<!-- Two columns: the y tick labels at inline start and the plot beside them, with the\n period labels under the plot only, so their percentages are the drawing's. -->\n<div class=\"wr-candlestick-chart__body\">\n @if (showGrid()) {\n <!-- HTML beside the drawing, in flow, so the column is exactly as wide as the longest\n label; each one hands the stylesheet the y of its own gridline. Hidden, as the\n drawing is one image: its name is what is announced, and the prices are the data\n table's. -->\n <div class=\"wr-candlestick-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-candlestick-chart__y-tick\" [style.--wr-candlestick-chart-y]=\"tick.top\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <div\n #plot\n class=\"wr-candlestick-chart__plot\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"height()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n <!-- Boxes placed by percentage rather than an SVG stretched to the plot: a body's\n width is a share of its slot held between 1px and a ceiling, which CSS can say\n and a stretched viewBox cannot. Hidden as well as presentational: `img` already\n makes it so, and a tree of hundreds of empty boxes is work for nothing. -->\n <div #drawing class=\"wr-candlestick-chart__drawing\" aria-hidden=\"true\" [style.--wr-candlestick-chart-slot]=\"slot()\">\n @if (active) {\n <!-- The slot being read, behind its candle, so the reading is marked by more than\n the tooltip's arrow. Before the gridlines, so they are drawn over it. -->\n <div class=\"wr-candlestick-chart__cursor\" [style.left.%]=\"active.left\"></div>\n }\n\n @if (showGrid()) {\n @for (tick of yTicks(); track $index) {\n <div class=\"wr-candlestick-chart__grid-line\" [style.top.%]=\"tick.top\"></div>\n }\n }\n\n @for (candle of candles(); track candle.index) {\n <!-- The candle's box runs from its high to its low, as wide as its body. The wicks\n are its two pseudo-elements, above and below the body, so a hollow body is\n empty rather than crossed by the wick. -->\n <div\n #candleEl\n class=\"wr-candlestick-chart__candle\"\n [class.wr-candlestick-chart__candle--increase]=\"candle.increase\"\n [class.wr-candlestick-chart__candle--decrease]=\"!candle.increase\"\n [style.left.%]=\"candle.left\"\n [style.top.%]=\"candle.top\"\n [style.height.%]=\"candle.height\"\n [style.--wr-candlestick-chart-upper]=\"candle.upper\"\n [style.--wr-candlestick-chart-lower]=\"candle.lower\"\n [attr.data-index]=\"candle.index\"\n [attr.data-open]=\"candle.open\"\n [attr.data-high]=\"candle.high\"\n [attr.data-low]=\"candle.low\"\n [attr.data-close]=\"candle.close\"\n >\n <div class=\"wr-candlestick-chart__candle-body\"></div>\n </div>\n }\n </div>\n </div>\n\n <!-- The time axis, with or without the grid: the strip is as wide as the plot, and hands\n the stylesheet the room each label has; each label hands it the x of its candle, as\n a percentage of the drawing's width. The hidden copy of every label, a line each, is\n what that room is measured against: it is as wide as the widest. -->\n <div class=\"wr-candlestick-chart__x-axis\" aria-hidden=\"true\" [style.--wr-candlestick-chart-x-slot]=\"xSlot()\">\n <span #probe class=\"wr-candlestick-chart__x-probe\">{{ probeText() }}</span>\n @for (label of xLabels(); track label.index) {\n <span class=\"wr-candlestick-chart__x-label\" [style.--wr-candlestick-chart-x]=\"label.left\">{{ label.label }}</span>\n }\n </div>\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the plot's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-charts-candlestick-chart.mjs","names":[],"sources":["../../../projects/lib/charts/candlestick-chart/candlestick-chart.ts","../../../projects/lib/charts/candlestick-chart/candlestick-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n type ElementRef,\n PLATFORM_ID,\n ViewEncapsulation,\n afterNextRender,\n afterRenderEffect,\n computed,\n inject,\n input,\n signal,\n untracked,\n viewChild,\n viewChildren,\n} from '@angular/core';\n\nimport { WrChartTable, type WrChartTableData, chartAxis, useChartNumbers } from 'ngwr/charts/core';\nimport { readI18nText, useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\nimport { clamp } from 'ngwr/utils';\n\nimport type { WrCandlestickDatum } from './types';\n\n/**\n * The drawing's width, in px, before a browser has measured it: what the server and the\n * first paint decide the body width and the x labels against. A phone's plot is about\n * 300px and a desktop column's about 700px.\n */\nconst ASSUMED_WIDTH = 560;\n\n/** How much of its slot a body takes: the stylesheet's own share, which this mirrors. */\nconst BODY_SHARE = 0.7;\n\n/** The widest a body is drawn, in px: `--wr-candlestick-chart-body-max-width`'s default, which this mirrors. */\nconst BODY_MAX = 24;\n\n/**\n * Below this width, in px, a hollow body has no inside to show: two 1px edges and at\n * most a pixel between them read as one bar. The chart is drawn `--dense` then.\n */\nconst DENSE_BELOW = 4;\n\n/** A label's width per character, in px, before a browser has measured the widest one. */\nconst CHAR_WIDTH = 7;\n\n/** The least room, in px, between two neighbouring x labels. */\nconst LABEL_GAP = 12;\n\n/** A percentage to three decimals, so an attribute stays short. */\nconst percent = (value: number): number => Math.round(value * 1000) / 1000;\n\n/**\n * The most fraction digits a price is written with by default: past it a decimal is\n * float noise — 0.1 + 0.2 is 0.30000000000000004 — rather than precision, and every\n * instrument quotes fewer. Crypto's eight places fit.\n */\nconst MAX_PRICE_DIGITS = 10;\n\n/**\n * How many fraction digits the shortest decimal that reads back as `value` has: 5 for\n * 1.08345, 0 for 120, 8 for 1.2e-7. `toString()` is that shortest form, written with an\n * exponent past 1e21 and below 1e-6, which this reads too.\n */\nfunction fractionDigits(value: number): number {\n const [mantissa, exponent = '0'] = Math.abs(value).toString().split('e');\n return Math.max(0, (mantissa.split('.')[1]?.length ?? 0) - Number(exponent));\n}\n\n/** What a browser measured: the drawing's width, the widest x label's and one body's, in px. */\ninterface Measured {\n readonly width: number;\n readonly label: number;\n readonly body: number;\n}\n\n/** One candle as the chart draws it: its prices and where it sits. */\ninterface DrawnCandle {\n /** Its position in `data`, which is its slot on the x axis and what it is tracked by. */\n readonly index: number;\n readonly label: string;\n readonly open: number;\n readonly high: number;\n readonly low: number;\n readonly close: number;\n /** Whether it closed at or above its open: drawn hollow in the increase colour, else filled in the decrease one. */\n readonly increase: boolean;\n /** Its centre, as a percentage of the drawing's width from the left. */\n readonly left: number;\n /** Its top — the higher of the high and the body — as a percentage of the drawing's height from the top. */\n readonly top: number;\n /** How far it reaches down from `top`, as a percentage of the drawing's height. */\n readonly height: number;\n /** How much of its own height the upper wick takes, from its top to the body, in percent. */\n readonly upper: number;\n /** How much of its own height the lower wick takes, from the body to its bottom, in percent. */\n readonly lower: number;\n}\n\n/**\n * Prices over time as candles: one per period, its wick from the low to the high and its\n * body from the open to the close. No external dependency, and no SVG: every candle is a\n * box placed by percentage, so its width can be a share of its slot held between 1px and\n * a ceiling.\n *\n * @example\n * ```html\n * <wr-candlestick-chart\n * ariaLabel=\"ACME, daily\"\n * [data]=\"[\n * { label: 'Mon', open: 102, high: 108, low: 99, close: 106 },\n * { label: 'Tue', open: 106, high: 107, low: 98, close: 100 }\n * ]\"\n * />\n * ```\n *\n * **A rise and a fall are told apart twice.** A rising candle, one that closed at or\n * above its open, is drawn HOLLOW in the increase colour, success by default; a falling\n * one FILLED in the decrease colour, danger by default — the words, the modifiers and\n * the hooks the waterfall chart uses for a change up and a change down. The two intents\n * sit within 1.004:1 of each other in luminance, so the fill is what a reader without\n * red-green vision reads, and what survives greyscale and print. `increaseColor` and\n * `decreaseColor` swap the colours — for a market that draws rises in red — and leave\n * the fill alone. So the fill always has room\n * to show, every body is drawn at least tall enough to hold it: its two edges and a 2px\n * inside (4px at the default edge), or two dashes and the gap between them while dense\n * (5px). It grows into its own wicks, so the high and the low stay put. A candle that\n * barely moved is drawn a few pixels taller than its prices, in both directions alike,\n * rather than as a line whose direction only its colour would tell.\n *\n * **Many candles thin out rather than pile up.** A body takes 70% of its slot, between\n * 1px and `--wr-candlestick-chart-body-max-width`, so the gaps close as the candles\n * crowd. Once a body is under 4px wide it has no inside to leave hollow, and the chart\n * is drawn `--dense`: a rising body is dotted rather than outlined, so the second\n * channel holds. The x labels are thinned to every n-th, the smallest n that keeps the\n * widest label clear of its neighbours. Both are decided on the drawing's measured\n * width, after render, so the server and the first paint assume a 560px drawing. Past a\n * candle per pixel the candles overlap; aggregate the periods first.\n *\n * The y axis is fitted to the lows and highs shown with no zero forced in, since a price\n * has no baseline, and snapped outward to a readable step, so no wick ends on the frame.\n *\n * The drawing is one named `role=\"img\"` and takes no tab stop; the tooltip, the period\n * with its open, high, low and close, is pointer only. `dataTable` renders every price\n * as a table only assistive technology reaches.\n *\n * @see https://ngwr.dev/charts/candlestick-chart\n */\n@Component({\n selector: 'wr-candlestick-chart',\n templateUrl: './candlestick-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-candlestick-chart',\n // A body too narrow to leave hollow is dotted instead; see `dense`.\n '[class.wr-candlestick-chart--dense]': 'dense()',\n // Written only when given, so the stylesheet's hooks stay the default.\n '[style.--wr-candlestick-chart-increase-color]': 'increaseColor()',\n '[style.--wr-candlestick-chart-decrease-color]': 'decreaseColor()',\n },\n imports: [WrChartTable],\n})\nexport class WrCandlestickChart {\n /**\n * The periods, oldest first: one evenly spaced slot each. A period whose four prices\n * are not all finite keeps its slot and its label, and draws no candle.\n */\n readonly data = input<readonly WrCandlestickDatum[]>([]);\n\n /**\n * Accessible name of the chart. The prices are nowhere in text unless `dataTable`\n * puts them there, so say what the chart shows: the instrument and the period.\n * Falls back to `candlestickChart.label` (\"Candlestick chart\"). It is also the data\n * table's caption.\n */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'candlestickChart.label', 'Candlestick chart');\n\n /**\n * The colour of a rising candle, any CSS colour. `null` keeps\n * `--wr-candlestick-chart-increase-color`, which is `var(--wr-color-success)`. A rising\n * candle is hollow whatever its colour. @default null\n */\n readonly increaseColor = input<string | null>(null);\n\n /**\n * The colour of a falling candle, any CSS colour. `null` keeps\n * `--wr-candlestick-chart-decrease-color`, which is `var(--wr-color-danger)`. A falling\n * candle is filled whatever its colour. @default null\n */\n readonly decreaseColor = input<string | null>(null);\n\n /**\n * Writes every price the chart shows: the y-axis ticks, the tooltip and the data\n * table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`: compact ticks (`1.2K`) unless\n * the full numbers are shorter, and in the tooltip and the table every price at the\n * data's own precision — as many fraction digits as the most precise price given, up\n * to ten, and never fewer than the axis step needs — so a forex quote of 1.08345 is\n * not written `1.083`.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /** The axis' compact ticks and the prices at the data's own precision, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n /** The plot's height in px, at least 80. @default 240 */\n readonly height = input(240, { transform: (v: unknown): number => Math.max(80, coerceNumberProperty(v, 240)) });\n\n /**\n * Show the gridlines and the y-axis ticks. The period labels under the candles are the\n * time axis, so they stay either way, as the line chart's `xLabels` do. @default true\n */\n readonly showGrid = input(true, { transform: coerceBooleanProperty });\n\n /** Show a tooltip with the period's open, high, low and close under the pointer. Pointer only. @default true */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Render every period's prices as a table only assistive technology reaches, beside\n * the drawing: a row per period, headed by its label, and a column each for the open,\n * the high, the low and the close. A price that is not a finite number is an empty\n * cell. The drawing is one named image, so without it the prices are nowhere a screen\n * reader can walk. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /** The words for the four prices, from the catalog: in the tooltip and as the data table's columns. */\n private readonly openText = readI18nText('candlestickChart.open', 'Open');\n private readonly highText = readI18nText('candlestickChart.high', 'High');\n private readonly lowText = readI18nText('candlestickChart.low', 'Low');\n private readonly closeText = readI18nText('candlestickChart.close', 'Close');\n\n private readonly plot = viewChild<ElementRef<HTMLElement>>('plot');\n\n private readonly drawing = viewChild<ElementRef<HTMLElement>>('drawing');\n\n private readonly probe = viewChild<ElementRef<HTMLElement>>('probe');\n\n private readonly candleEls = viewChildren<ElementRef<HTMLElement>>('candleEl');\n\n /**\n * What a browser measured, once it has: `null` on the server and until the first\n * render, which decide against {@link ASSUMED_WIDTH} instead.\n */\n private readonly measured = signal<Measured | null>(null);\n\n constructor() {\n // Measured after render, in a browser: again when the candles or the labels change,\n // and when the drawing changes width. Never on the server — said here as well as by\n // the render hooks, which a server-platform test still runs.\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const destroyRef = inject(DestroyRef);\n\n afterRenderEffect(() => {\n this.candles();\n this.probeText();\n untracked(() => this.measure());\n });\n\n afterNextRender(() => {\n const drawing = this.drawing()?.nativeElement;\n if (!drawing || typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => this.measure());\n observer.observe(drawing);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n /** How many slots the x axis has: one per period, drawn or not. */\n protected readonly slots = computed(() => this.data().length);\n\n /** One slot's share of the drawing's width, in percent: what the stylesheet sizes a body against. */\n protected readonly slot = computed(() => (this.slots() === 0 ? 100 : percent(100 / this.slots())));\n\n /**\n * The y axis, from `chartAxis` over every candle drawn: fitted from the lowest of the\n * lows to the highest of the highs with no zero forced in, since a price has no\n * baseline, snapped outward at both ends and lifted a step at either end a wick would\n * end on (`symmetric`). A single price is centred with a step either side. With\n * nothing to draw, the 0 to 1 frame.\n *\n * A high below the body or a low above it counts as the body's edge, so nothing is\n * drawn outside the frame.\n */\n protected readonly axis = computed(() => {\n let lo = Number.POSITIVE_INFINITY;\n let hi = Number.NEGATIVE_INFINITY;\n for (const d of this.data()) {\n if (!WrCandlestickChart.drawable(d)) continue;\n lo = Math.min(lo, d.low, d.open, d.close);\n hi = Math.max(hi, d.high, d.open, d.close);\n }\n return chartAxis(lo, hi, { symmetric: true });\n });\n\n /**\n * The candles as drawn: every period whose four prices are finite, placed on its slot\n * and on the axis, with its wicks as shares of its own height so the stylesheet can\n * draw both and the body between them.\n */\n protected readonly candles = computed<readonly DrawnCandle[]>(() => {\n const { min, max } = this.axis();\n const slots = this.slots();\n const y = (value: number): number => ((max - value) / (max - min)) * 100;\n return this.data().flatMap((d, index) => {\n if (!WrCandlestickChart.drawable(d)) return [];\n const top = Math.max(d.high, d.open, d.close);\n const bottom = Math.min(d.low, d.open, d.close);\n const span = top - bottom;\n const share = (value: number): number => (span > 0 ? percent((value / span) * 100) : 0);\n return [\n {\n index,\n label: d.label,\n open: d.open,\n high: d.high,\n low: d.low,\n close: d.close,\n increase: d.close >= d.open,\n left: percent(((index + 0.5) / slots) * 100),\n top: percent(y(top)),\n height: percent(y(bottom) - y(top)),\n upper: share(top - Math.max(d.open, d.close)),\n lower: share(Math.min(d.open, d.close) - bottom),\n },\n ];\n });\n });\n\n /** Each drawn candle's position in {@link candles}, by its slot: how the tooltip finds a candle's element. */\n private readonly positions = computed(\n () => new Map(this.candles().map((candle, position) => [candle.index, position]))\n );\n\n /** One slot's width in px: measured, or against the assumed drawing. */\n private readonly slotPx = computed(() => (this.measured()?.width ?? ASSUMED_WIDTH) / Math.max(1, this.slots()));\n\n /**\n * Whether a body is too narrow to leave hollow — under 4px wide, measured off the\n * first candle, or worked out from the assumed drawing before a browser has measured\n * it. A dense chart dots its rising bodies instead (see the stylesheet). A chart with\n * no candle is never dense.\n */\n protected readonly dense = computed(() => {\n if (this.candles().length === 0) return false;\n const measured = this.measured()?.body ?? 0;\n const body = measured > 0 ? measured : clamp(this.slotPx() * BODY_SHARE, 1, BODY_MAX);\n return body < DENSE_BELOW;\n });\n\n /** The longest period label, by its characters: what the room for the x labels is estimated from before a browser has measured. */\n private readonly longestLabel = computed(() =>\n this.data().reduce((longest, d) => (d.label.length > longest.length ? d.label : longest), '')\n );\n\n /**\n * Every period label once, a line each: the hidden copy the x labels' room is measured\n * against. Laid out as wide as its widest line, so it measures the widest label rather\n * than the one with the most characters — `WWWWWWW` is wider than `iiiiiiii`. A line\n * break inside a label is a space here, as the printed label shows it.\n */\n protected readonly probeText = computed(() =>\n [...new Set(this.data().map(d => d.label.replace(/\\r\\n?|\\n/g, ' ')))].join('\\n')\n );\n\n /**\n * How wide a period label is taken to be, in px: the widest one as a browser measured\n * it, or seven pixels a character of the longest before it has. Every label is spaced as\n * if it were that wide.\n */\n private readonly labelPx = computed(() => {\n const measured = this.measured()?.label ?? 0;\n return measured > 0 ? measured : this.longestLabel().length * CHAR_WIDTH;\n });\n\n /**\n * Every how many slots a period label is printed: 1 while the widest label and a gap\n * fit one slot, else the smallest n whose n slots hold them.\n */\n protected readonly labelEvery = computed(() => Math.max(1, Math.ceil((this.labelPx() + LABEL_GAP) / this.slotPx())));\n\n /**\n * The period labels printed, left to right: every `labelEvery`-th, gaps included. Each\n * is laid out as wide as the widest, centred under its candle and moved inwards where\n * that would cross the frame, as the stylesheet draws it; the last is left out if\n * moving it brings it within the gap of the one before.\n *\n * They start from the first period, unless moving its label inwards would bring it\n * within the gap of the next printed one. Then they start from the first period whose\n * label fits between the frame and its candle unmoved, a slot or two in: dropping the\n * second label instead would open a gap of two steps at the start of the axis, and\n * keeping both would let them touch. With one candle and a label wider than the\n * drawing, that label is printed alone, ellipsised.\n */\n protected readonly xLabels = computed(() => {\n const every = this.labelEvery();\n const slots = this.slots();\n const slotPx = this.slotPx();\n const width = slotPx * slots;\n const label = Math.min(this.labelPx(), width);\n const data = this.data();\n /** Where a label's laid-out box starts, in px from the drawing's left. */\n const at = (index: number): number => clamp((index + 0.5) * slotPx - label / 2, 0, width - label);\n // A hair of slack on every comparison, so the regular spacing never fails on a rounding.\n const crowds = (start: number, previousEnd: number): boolean => start + 1e-6 < previousEnd + LABEL_GAP;\n const start =\n slots > every && crowds(at(every), at(0) + label) ? Math.max(0, Math.ceil(label / 2 / slotPx - 0.5 - 1e-6)) : 0;\n\n const labels: { readonly index: number; readonly label: string; readonly left: number }[] = [];\n let end = Number.NEGATIVE_INFINITY;\n for (let index = start; index < slots; index += every) {\n const left = at(index);\n if (crowds(left, end)) break;\n labels.push({ index, label: data[index].label, left: percent(((index + 0.5) / slots) * 100) });\n end = left + label;\n }\n return labels;\n });\n\n /** The room each printed label has, as a percentage of the drawing's width: `labelEvery` slots, at most all of it. */\n protected readonly xSlot = computed(() => Math.min(100, percent(this.slot() * this.labelEvery())));\n\n /** The y ticks, top to bottom: each value's label and its gridline's distance from the top, in percent. */\n protected readonly yTicks = computed(() => {\n const { min, max, step, ticks } = this.axis();\n const labels = this.numbers.ticks(ticks, step);\n return ticks.map((value, i) => ({ label: labels[i], top: percent(((max - value) / (max - min)) * 100) }));\n });\n\n /**\n * How many fraction digits an exact price is written with, at most: as many as the\n * most precise finite price in `data` has, and at least as many as the axis step,\n * held to {@link MAX_PRICE_DIGITS}. A ceiling rather than a count, so `120` stays `120`\n * beside `120.25`. The shared `value` writer stops at three, which wrote the four\n * prices of a forex candle — 1.08345, 1.08391, 1.08301, 1.08362 — as two numbers,\n * coarser than the axis beside them.\n */\n private readonly priceDigits = computed(() => {\n let digits = fractionDigits(this.axis().step);\n for (const d of this.data()) {\n for (const price of [d.open, d.high, d.low, d.close]) {\n if (Number.isFinite(price)) digits = Math.max(digits, fractionDigits(price));\n }\n }\n return Math.min(digits, MAX_PRICE_DIGITS);\n });\n\n /** A price as the tooltip and the data table write it: through `valueFormat`, else at the data's precision. */\n private price(value: number): string {\n return this.numbers.exact(value, this.priceDigits());\n }\n\n /**\n * One tooltip for the candle under the pointer: the period as its heading, then a row\n * each for the open, the high, the low and the close, every price written in full. It\n * points at the candle itself, from above its high, and follows it if the data moves\n * it. No swatch: the colour is the candle's direction, and the four prices say it.\n *\n * The candle is found by POSITION — the slot under the pointer, anywhere over the\n * drawing — so a thin candle needs no aim, and a candle under the open chip can still\n * be reached by moving onto it.\n */\n protected readonly tip = useChartTooltip(\n this.tooltip,\n index => {\n const position = this.positions().get(index);\n if (position === undefined) return null;\n const candle = this.candles()[position];\n const anchor = this.candleEls()[position]?.nativeElement;\n if (!candle || !anchor) return null;\n return {\n datum: {\n label: candle.label,\n value: '',\n rows: [\n { label: this.openText(), value: this.price(candle.open) },\n { label: this.highText(), value: this.price(candle.high) },\n { label: this.lowText(), value: this.price(candle.low) },\n { label: this.closeText(), value: this.price(candle.close) },\n ],\n },\n anchor,\n };\n },\n (x, y) => this.slotAt(x, y)\n );\n\n /** The slot the tooltip is reading, marked by a band behind its candle. */\n protected readonly activeSlot = computed(() => {\n const index = this.tip.active();\n return index === null ? null : { left: percent((index / Math.max(1, this.slots())) * 100) };\n });\n\n /**\n * The figures for `dataTable`: the chart's name as the caption, a row per period headed\n * by its label, and the open, high, low and close written as the tooltip writes them.\n * A period with no candle keeps its row, with an empty cell for each price that is not\n * a finite number.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const cell = (value: number): string => (Number.isFinite(value) ? this.price(value) : '');\n return {\n caption: this.resolvedAriaLabel(),\n columns: [this.openText(), this.highText(), this.lowText(), this.closeText()],\n groups: [\n {\n rows: this.data().map(d => ({\n header: d.label,\n cells: [cell(d.open), cell(d.high), cell(d.low), cell(d.close)],\n })),\n },\n ],\n };\n });\n\n /**\n * The candle under the pointer. A MOUSE event, as every chart's is: a tap fires the\n * compatibility `mousemove` and no `pointermove`. Over a slot with no candle, the open\n * tooltip starts its grace period.\n */\n protected onPointerMove(event: MouseEvent): void {\n if (!this.tooltip()) return;\n const index = this.slotAt(event.clientX, event.clientY);\n if (index === null) this.tip.leave(event);\n else this.tip.enter(index);\n }\n\n /**\n * The slot under a viewport position, if a candle is drawn there: across the drawing's\n * width, and anywhere down the plot, its padding included. A drawing with no box\n * (nothing laid out yet) answers nothing.\n */\n private slotAt(clientX: number, clientY: number): number | null {\n const drawing = this.drawing()?.nativeElement;\n const plot = this.plot()?.nativeElement;\n const slots = this.slots();\n if (!drawing || !plot || slots === 0) return null;\n const box = drawing.getBoundingClientRect();\n const frame = plot.getBoundingClientRect();\n if (box.width <= 0 || box.height <= 0) return null;\n if (clientX < box.left || clientX > box.right || clientY < frame.top || clientY > frame.bottom) return null;\n const index = clamp(Math.floor(((clientX - box.left) / box.width) * slots), 0, slots - 1);\n return this.positions().has(index) ? index : null;\n }\n\n /**\n * Read the drawing's width, the widest label's and one body's off the layout. A\n * hidden chart measures 0 and keeps its last reading rather than thin to nothing; a\n * label or a body with nothing to measure — no period, no candle — reads 0 and leaves\n * the estimate in charge of what it decides.\n */\n private measure(): void {\n const drawing = this.drawing()?.nativeElement;\n if (!drawing) return;\n const width = drawing.getBoundingClientRect().width;\n if (width <= 0) return;\n const label = this.probe()?.nativeElement.getBoundingClientRect().width ?? 0;\n const body = this.candleEls()[0]?.nativeElement.getBoundingClientRect().width ?? 0;\n const last = this.measured();\n if (last?.width === width && last.label === label && last.body === body) return;\n this.measured.set({ width, label, body });\n }\n\n /** Whether a period can be drawn: all four prices finite. */\n private static drawable(d: WrCandlestickDatum): boolean {\n return Number.isFinite(d.open) && Number.isFinite(d.high) && Number.isFinite(d.low) && Number.isFinite(d.close);\n }\n}\n\nexport type { WrCandlestickDatum } from './types';\n","@let active = activeSlot();\n<!-- Two columns: the y tick labels at inline start and the plot beside them, with the\n period labels under the plot only, so their percentages are the drawing's. -->\n<div class=\"wr-candlestick-chart__body\">\n @if (showGrid()) {\n <!-- HTML beside the drawing, in flow, so the column is exactly as wide as the longest\n label; each one hands the stylesheet the y of its own gridline. Hidden, as the\n drawing is one image: its name is what is announced, and the prices are the data\n table's. -->\n <div class=\"wr-candlestick-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-candlestick-chart__y-tick\" [style.--wr-candlestick-chart-y]=\"tick.top\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <div\n #plot\n class=\"wr-candlestick-chart__plot\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"height()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n <!-- Boxes placed by percentage rather than an SVG stretched to the plot: a body's\n width is a share of its slot held between 1px and a ceiling, which CSS can say\n and a stretched viewBox cannot. Hidden as well as presentational: `img` already\n makes it so, and a tree of hundreds of empty boxes is work for nothing. -->\n <div #drawing class=\"wr-candlestick-chart__drawing\" aria-hidden=\"true\" [style.--wr-candlestick-chart-slot]=\"slot()\">\n @if (active) {\n <!-- The slot being read, behind its candle, so the reading is marked by more than\n the tooltip's arrow. Before the gridlines, so they are drawn over it. -->\n <div class=\"wr-candlestick-chart__cursor\" [style.left.%]=\"active.left\"></div>\n }\n\n @if (showGrid()) {\n @for (tick of yTicks(); track $index) {\n <div class=\"wr-candlestick-chart__grid-line\" [style.top.%]=\"tick.top\"></div>\n }\n }\n\n @for (candle of candles(); track candle.index) {\n <!-- The candle's box runs from its high to its low, as wide as its body. The wicks\n are its two pseudo-elements, above and below the body, so a hollow body is\n empty rather than crossed by the wick. -->\n <div\n #candleEl\n class=\"wr-candlestick-chart__candle\"\n [class.wr-candlestick-chart__candle--increase]=\"candle.increase\"\n [class.wr-candlestick-chart__candle--decrease]=\"!candle.increase\"\n [style.left.%]=\"candle.left\"\n [style.top.%]=\"candle.top\"\n [style.height.%]=\"candle.height\"\n [style.--wr-candlestick-chart-upper]=\"candle.upper\"\n [style.--wr-candlestick-chart-lower]=\"candle.lower\"\n [attr.data-index]=\"candle.index\"\n [attr.data-open]=\"candle.open\"\n [attr.data-high]=\"candle.high\"\n [attr.data-low]=\"candle.low\"\n [attr.data-close]=\"candle.close\"\n >\n <div class=\"wr-candlestick-chart__candle-body\"></div>\n </div>\n }\n </div>\n </div>\n\n <!-- The time axis, with or without the grid: the strip is as wide as the plot, and hands\n the stylesheet the room each label has; each label hands it the x of its candle, as\n a percentage of the drawing's width. The hidden copy of every label, a line each, is\n what that room is measured against: it is as wide as the widest. -->\n <div class=\"wr-candlestick-chart__x-axis\" aria-hidden=\"true\" [style.--wr-candlestick-chart-x-slot]=\"xSlot()\">\n <span #probe class=\"wr-candlestick-chart__x-probe\">{{ probeText() }}</span>\n @for (label of xLabels(); track label.index) {\n <span class=\"wr-candlestick-chart__x-label\" [style.--wr-candlestick-chart-x]=\"label.left\">{{ label.label }}</span>\n }\n </div>\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the plot's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"],"mappings":";;;;;;;;;;;;;;AAsCA,MAAM,gBAAgB;AAGtB,MAAM,aAAa;AAGnB,MAAM,WAAW;AAMjB,MAAM,cAAc;AAGpB,MAAM,aAAa;AAGnB,MAAM,YAAY;AAGlB,MAAM,WAAW,UAA0B,KAAK,MAAM,QAAQ,GAAI,IAAI;AAOtE,MAAM,mBAAmB;AAOzB,SAAS,eAAe,OAAa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AAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAM,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEH,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEX,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEA,YAAU,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"ngwr-charts-candlestick-chart.mjs","names":[],"sources":["../../../projects/lib/charts/candlestick-chart/candlestick-chart.ts","../../../projects/lib/charts/candlestick-chart/candlestick-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n type ElementRef,\n PLATFORM_ID,\n ViewEncapsulation,\n afterNextRender,\n afterRenderEffect,\n computed,\n inject,\n input,\n signal,\n untracked,\n viewChild,\n viewChildren,\n} from '@angular/core';\n\nimport { WrChartTable, type WrChartTableData, chartAxis, useChartNumbers } from 'ngwr/charts/core';\nimport { readI18nText, useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\nimport { clamp } from 'ngwr/utils';\n\nimport type { WrCandlestickDatum } from './types';\n\n/**\n * The drawing's width, in px, before a browser has measured it: what the server and the\n * first paint decide the body width and the x labels against. A phone's plot is about\n * 300px and a desktop column's about 700px.\n */\nconst ASSUMED_WIDTH = 560;\n\n/** How much of its slot a body takes: the stylesheet's own share, which this mirrors. */\nconst BODY_SHARE = 0.7;\n\n/** The widest a body is drawn, in px: `--wr-candlestick-chart-body-max-width`'s default, which this mirrors. */\nconst BODY_MAX = 24;\n\n/**\n * Below this width, in px, a hollow body has no inside to show: two 1px edges and at\n * most a pixel between them read as one bar. The chart is drawn `--dense` then.\n */\nconst DENSE_BELOW = 4;\n\n/** A label's width per character, in px, before a browser has measured the widest one. */\nconst CHAR_WIDTH = 7;\n\n/** The least room, in px, between two neighbouring x labels. */\nconst LABEL_GAP = 12;\n\n/** A percentage to three decimals, so an attribute stays short. */\nconst percent = (value: number): number => Math.round(value * 1000) / 1000;\n\n/**\n * The most fraction digits a price is written with by default: past it a decimal is\n * float noise — 0.1 + 0.2 is 0.30000000000000004 — rather than precision, and every\n * instrument quotes fewer. Crypto's eight places fit.\n */\nconst MAX_PRICE_DIGITS = 10;\n\n/**\n * How many fraction digits the shortest decimal that reads back as `value` has: 5 for\n * 1.08345, 0 for 120, 8 for 1.2e-7. `toString()` is that shortest form, written with an\n * exponent past 1e21 and below 1e-6, which this reads too.\n */\nfunction fractionDigits(value: number): number {\n const [mantissa, exponent = '0'] = Math.abs(value).toString().split('e');\n return Math.max(0, (mantissa.split('.')[1]?.length ?? 0) - Number(exponent));\n}\n\n/** What a browser measured: the drawing's width, the widest x label's and one body's, in px. */\ninterface Measured {\n readonly width: number;\n readonly label: number;\n readonly body: number;\n}\n\n/** One candle as the chart draws it: its prices and where it sits. */\ninterface DrawnCandle {\n /** Its position in `data`, which is its slot on the x axis and what it is tracked by. */\n readonly index: number;\n readonly label: string;\n readonly open: number;\n readonly high: number;\n readonly low: number;\n readonly close: number;\n /** Whether it closed at or above its open: drawn hollow in the increase colour, else filled in the decrease one. */\n readonly increase: boolean;\n /** Its centre, as a percentage of the drawing's width from the left. */\n readonly left: number;\n /** Its top — the higher of the high and the body — as a percentage of the drawing's height from the top. */\n readonly top: number;\n /** How far it reaches down from `top`, as a percentage of the drawing's height. */\n readonly height: number;\n /** How much of its own height the upper wick takes, from its top to the body, in percent. */\n readonly upper: number;\n /** How much of its own height the lower wick takes, from the body to its bottom, in percent. */\n readonly lower: number;\n}\n\n/**\n * Prices over time as candles: one per period, its wick from the low to the high and its\n * body from the open to the close. No external dependency, and no SVG: every candle is a\n * box placed by percentage, so its width can be a share of its slot held between 1px and\n * a ceiling.\n *\n * @example\n * ```html\n * <wr-candlestick-chart\n * ariaLabel=\"ACME, daily\"\n * [data]=\"[\n * { label: 'Mon', open: 102, high: 108, low: 99, close: 106 },\n * { label: 'Tue', open: 106, high: 107, low: 98, close: 100 }\n * ]\"\n * />\n * ```\n *\n * **A rise and a fall are told apart twice.** A rising candle, one that closed at or\n * above its open, is drawn HOLLOW in the increase colour, success by default; a falling\n * one FILLED in the decrease colour, danger by default — the words, the modifiers and\n * the hooks the waterfall chart uses for a change up and a change down. The two intents\n * sit within 1.004:1 of each other in luminance, so the fill is what a reader without\n * red-green vision reads, and what survives greyscale and print. `increaseColor` and\n * `decreaseColor` swap the colours — for a market that draws rises in red — and leave\n * the fill alone. So the fill always has room\n * to show, every body is drawn at least tall enough to hold it: its two edges and a 2px\n * inside (4px at the default edge), or two dashes and the gap between them while dense\n * (5px). It grows into its own wicks, so the high and the low stay put. A candle that\n * barely moved is drawn a few pixels taller than its prices, in both directions alike,\n * rather than as a line whose direction only its colour would tell.\n *\n * **Many candles thin out rather than pile up.** A body takes 70% of its slot, between\n * 1px and `--wr-candlestick-chart-body-max-width`, so the gaps close as the candles\n * crowd. Once a body is under 4px wide it has no inside to leave hollow, and the chart\n * is drawn `--dense`: a rising body is dotted rather than outlined, so the second\n * channel holds. The x labels are thinned to every n-th, the smallest n that keeps the\n * widest label clear of its neighbours. Both are decided on the drawing's measured\n * width, after render, so the server and the first paint assume a 560px drawing. Past a\n * candle per pixel the candles overlap; aggregate the periods first.\n *\n * The y axis is fitted to the lows and highs shown with no zero forced in, since a price\n * has no baseline, and snapped outward to a readable step, so no wick ends on the frame.\n *\n * The drawing is one named `role=\"img\"` and takes no tab stop; the tooltip, the period\n * with its open, high, low and close, is pointer only. `dataTable` renders every price\n * as a table only assistive technology reaches.\n *\n * @see https://ngwr.dev/charts/candlestick-chart\n */\n@Component({\n selector: 'wr-candlestick-chart',\n templateUrl: './candlestick-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-candlestick-chart',\n // A body too narrow to leave hollow is dotted instead; see `dense`.\n '[class.wr-candlestick-chart--dense]': 'dense()',\n // Variables of their own rather than the hooks, which an author sets from outside: a\n // `null` binding wipes a value of its own name from the host's `style` attribute.\n '[style.--wr-candlestick-chart-input-increase-color]': 'increaseColor()',\n '[style.--wr-candlestick-chart-input-decrease-color]': 'decreaseColor()',\n },\n imports: [WrChartTable],\n})\nexport class WrCandlestickChart {\n /**\n * The periods, oldest first: one evenly spaced slot each. A period whose four prices\n * are not all finite keeps its slot and its label, and draws no candle.\n */\n readonly data = input<readonly WrCandlestickDatum[]>([]);\n\n /**\n * Accessible name of the chart. The prices are nowhere in text unless `dataTable`\n * puts them there, so say what the chart shows: the instrument and the period.\n * Falls back to `candlestickChart.label` (\"Candlestick chart\"). It is also the data\n * table's caption.\n */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'candlestickChart.label', 'Candlestick chart');\n\n /**\n * The colour of a rising candle, any CSS colour. `null` keeps\n * `--wr-candlestick-chart-increase-color`, which is `var(--wr-color-success)`. A rising\n * candle is hollow whatever its colour. @default null\n */\n readonly increaseColor = input<string | null>(null);\n\n /**\n * The colour of a falling candle, any CSS colour. `null` keeps\n * `--wr-candlestick-chart-decrease-color`, which is `var(--wr-color-danger)`. A falling\n * candle is filled whatever its colour. @default null\n */\n readonly decreaseColor = input<string | null>(null);\n\n /**\n * Writes every price the chart shows: the y-axis ticks, the tooltip and the data\n * table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`: compact ticks (`1.2K`) unless\n * the full numbers are shorter, and in the tooltip and the table every price at the\n * data's own precision — as many fraction digits as the most precise price given, up\n * to ten, and never fewer than the axis step needs — so a forex quote of 1.08345 is\n * not written `1.083`.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /** The axis' compact ticks and the prices at the data's own precision, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n /** The plot's height in px, at least 80. @default 240 */\n readonly height = input(240, { transform: (v: unknown): number => Math.max(80, coerceNumberProperty(v, 240)) });\n\n /**\n * Show the gridlines and the y-axis ticks. The period labels under the candles are the\n * time axis, so they stay either way, as the line chart's `xLabels` do. @default true\n */\n readonly showGrid = input(true, { transform: coerceBooleanProperty });\n\n /** Show a tooltip with the period's open, high, low and close under the pointer. Pointer only. @default true */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Render every period's prices as a table only assistive technology reaches, beside\n * the drawing: a row per period, headed by its label, and a column each for the open,\n * the high, the low and the close. A price that is not a finite number is an empty\n * cell. The drawing is one named image, so without it the prices are nowhere a screen\n * reader can walk. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /** The words for the four prices, from the catalog: in the tooltip and as the data table's columns. */\n private readonly openText = readI18nText('candlestickChart.open', 'Open');\n private readonly highText = readI18nText('candlestickChart.high', 'High');\n private readonly lowText = readI18nText('candlestickChart.low', 'Low');\n private readonly closeText = readI18nText('candlestickChart.close', 'Close');\n\n private readonly plot = viewChild<ElementRef<HTMLElement>>('plot');\n\n private readonly drawing = viewChild<ElementRef<HTMLElement>>('drawing');\n\n private readonly probe = viewChild<ElementRef<HTMLElement>>('probe');\n\n private readonly candleEls = viewChildren<ElementRef<HTMLElement>>('candleEl');\n\n /**\n * What a browser measured, once it has: `null` on the server and until the first\n * render, which decide against {@link ASSUMED_WIDTH} instead.\n */\n private readonly measured = signal<Measured | null>(null);\n\n constructor() {\n // Measured after render, in a browser: again when the candles or the labels change,\n // and when the drawing changes width. Never on the server — said here as well as by\n // the render hooks, which a server-platform test still runs.\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const destroyRef = inject(DestroyRef);\n\n afterRenderEffect(() => {\n this.candles();\n this.probeText();\n untracked(() => this.measure());\n });\n\n afterNextRender(() => {\n const drawing = this.drawing()?.nativeElement;\n if (!drawing || typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => this.measure());\n observer.observe(drawing);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n /** How many slots the x axis has: one per period, drawn or not. */\n protected readonly slots = computed(() => this.data().length);\n\n /** One slot's share of the drawing's width, in percent: what the stylesheet sizes a body against. */\n protected readonly slot = computed(() => (this.slots() === 0 ? 100 : percent(100 / this.slots())));\n\n /**\n * The y axis, from `chartAxis` over every candle drawn: fitted from the lowest of the\n * lows to the highest of the highs with no zero forced in, since a price has no\n * baseline, snapped outward at both ends and lifted a step at either end a wick would\n * end on (`symmetric`). A single price is centred with a step either side. With\n * nothing to draw, the 0 to 1 frame.\n *\n * A high below the body or a low above it counts as the body's edge, so nothing is\n * drawn outside the frame.\n */\n protected readonly axis = computed(() => {\n let lo = Number.POSITIVE_INFINITY;\n let hi = Number.NEGATIVE_INFINITY;\n for (const d of this.data()) {\n if (!WrCandlestickChart.drawable(d)) continue;\n lo = Math.min(lo, d.low, d.open, d.close);\n hi = Math.max(hi, d.high, d.open, d.close);\n }\n return chartAxis(lo, hi, { symmetric: true });\n });\n\n /**\n * The candles as drawn: every period whose four prices are finite, placed on its slot\n * and on the axis, with its wicks as shares of its own height so the stylesheet can\n * draw both and the body between them.\n */\n protected readonly candles = computed<readonly DrawnCandle[]>(() => {\n const { min, max } = this.axis();\n const slots = this.slots();\n const y = (value: number): number => ((max - value) / (max - min)) * 100;\n return this.data().flatMap((d, index) => {\n if (!WrCandlestickChart.drawable(d)) return [];\n const top = Math.max(d.high, d.open, d.close);\n const bottom = Math.min(d.low, d.open, d.close);\n const span = top - bottom;\n const share = (value: number): number => (span > 0 ? percent((value / span) * 100) : 0);\n return [\n {\n index,\n label: d.label,\n open: d.open,\n high: d.high,\n low: d.low,\n close: d.close,\n increase: d.close >= d.open,\n left: percent(((index + 0.5) / slots) * 100),\n top: percent(y(top)),\n height: percent(y(bottom) - y(top)),\n upper: share(top - Math.max(d.open, d.close)),\n lower: share(Math.min(d.open, d.close) - bottom),\n },\n ];\n });\n });\n\n /** Each drawn candle's position in {@link candles}, by its slot: how the tooltip finds a candle's element. */\n private readonly positions = computed(\n () => new Map(this.candles().map((candle, position) => [candle.index, position]))\n );\n\n /** One slot's width in px: measured, or against the assumed drawing. */\n private readonly slotPx = computed(() => (this.measured()?.width ?? ASSUMED_WIDTH) / Math.max(1, this.slots()));\n\n /**\n * Whether a body is too narrow to leave hollow — under 4px wide, measured off the\n * first candle, or worked out from the assumed drawing before a browser has measured\n * it. A dense chart dots its rising bodies instead (see the stylesheet). A chart with\n * no candle is never dense.\n */\n protected readonly dense = computed(() => {\n if (this.candles().length === 0) return false;\n const measured = this.measured()?.body ?? 0;\n const body = measured > 0 ? measured : clamp(this.slotPx() * BODY_SHARE, 1, BODY_MAX);\n return body < DENSE_BELOW;\n });\n\n /** The longest period label, by its characters: what the room for the x labels is estimated from before a browser has measured. */\n private readonly longestLabel = computed(() =>\n this.data().reduce((longest, d) => (d.label.length > longest.length ? d.label : longest), '')\n );\n\n /**\n * Every period label once, a line each: the hidden copy the x labels' room is measured\n * against. Laid out as wide as its widest line, so it measures the widest label rather\n * than the one with the most characters — `WWWWWWW` is wider than `iiiiiiii`. A line\n * break inside a label is a space here, as the printed label shows it.\n */\n protected readonly probeText = computed(() =>\n [...new Set(this.data().map(d => d.label.replace(/\\r\\n?|\\n/g, ' ')))].join('\\n')\n );\n\n /**\n * How wide a period label is taken to be, in px: the widest one as a browser measured\n * it, or seven pixels a character of the longest before it has. Every label is spaced as\n * if it were that wide.\n */\n private readonly labelPx = computed(() => {\n const measured = this.measured()?.label ?? 0;\n return measured > 0 ? measured : this.longestLabel().length * CHAR_WIDTH;\n });\n\n /**\n * Every how many slots a period label is printed: 1 while the widest label and a gap\n * fit one slot, else the smallest n whose n slots hold them.\n */\n protected readonly labelEvery = computed(() => Math.max(1, Math.ceil((this.labelPx() + LABEL_GAP) / this.slotPx())));\n\n /**\n * The period labels printed, left to right: every `labelEvery`-th, gaps included. Each\n * is laid out as wide as the widest, centred under its candle and moved inwards where\n * that would cross the frame, as the stylesheet draws it; the last is left out if\n * moving it brings it within the gap of the one before.\n *\n * They start from the first period, unless moving its label inwards would bring it\n * within the gap of the next printed one. Then they start from the first period whose\n * label fits between the frame and its candle unmoved, a slot or two in: dropping the\n * second label instead would open a gap of two steps at the start of the axis, and\n * keeping both would let them touch. With one candle and a label wider than the\n * drawing, that label is printed alone, ellipsised.\n */\n protected readonly xLabels = computed(() => {\n const every = this.labelEvery();\n const slots = this.slots();\n const slotPx = this.slotPx();\n const width = slotPx * slots;\n const label = Math.min(this.labelPx(), width);\n const data = this.data();\n /** Where a label's laid-out box starts, in px from the drawing's left. */\n const at = (index: number): number => clamp((index + 0.5) * slotPx - label / 2, 0, width - label);\n // A hair of slack on every comparison, so the regular spacing never fails on a rounding.\n const crowds = (start: number, previousEnd: number): boolean => start + 1e-6 < previousEnd + LABEL_GAP;\n const start =\n slots > every && crowds(at(every), at(0) + label) ? Math.max(0, Math.ceil(label / 2 / slotPx - 0.5 - 1e-6)) : 0;\n\n const labels: { readonly index: number; readonly label: string; readonly left: number }[] = [];\n let end = Number.NEGATIVE_INFINITY;\n for (let index = start; index < slots; index += every) {\n const left = at(index);\n if (crowds(left, end)) break;\n labels.push({ index, label: data[index].label, left: percent(((index + 0.5) / slots) * 100) });\n end = left + label;\n }\n return labels;\n });\n\n /** The room each printed label has, as a percentage of the drawing's width: `labelEvery` slots, at most all of it. */\n protected readonly xSlot = computed(() => Math.min(100, percent(this.slot() * this.labelEvery())));\n\n /** The y ticks, top to bottom: each value's label and its gridline's distance from the top, in percent. */\n protected readonly yTicks = computed(() => {\n const { min, max, step, ticks } = this.axis();\n const labels = this.numbers.ticks(ticks, step);\n return ticks.map((value, i) => ({ label: labels[i], top: percent(((max - value) / (max - min)) * 100) }));\n });\n\n /**\n * How many fraction digits an exact price is written with, at most: as many as the\n * most precise finite price in `data` has, and at least as many as the axis step,\n * held to {@link MAX_PRICE_DIGITS}. A ceiling rather than a count, so `120` stays `120`\n * beside `120.25`. The shared `value` writer stops at three, which wrote the four\n * prices of a forex candle — 1.08345, 1.08391, 1.08301, 1.08362 — as two numbers,\n * coarser than the axis beside them.\n */\n private readonly priceDigits = computed(() => {\n let digits = fractionDigits(this.axis().step);\n for (const d of this.data()) {\n for (const price of [d.open, d.high, d.low, d.close]) {\n if (Number.isFinite(price)) digits = Math.max(digits, fractionDigits(price));\n }\n }\n return Math.min(digits, MAX_PRICE_DIGITS);\n });\n\n /** A price as the tooltip and the data table write it: through `valueFormat`, else at the data's precision. */\n private price(value: number): string {\n return this.numbers.exact(value, this.priceDigits());\n }\n\n /**\n * One tooltip for the candle under the pointer: the period as its heading, then a row\n * each for the open, the high, the low and the close, every price written in full. It\n * points at the candle itself, from above its high, and follows it if the data moves\n * it. No swatch: the colour is the candle's direction, and the four prices say it.\n *\n * The candle is found by POSITION — the slot under the pointer, anywhere over the\n * drawing — so a thin candle needs no aim, and a candle under the open chip can still\n * be reached by moving onto it.\n */\n protected readonly tip = useChartTooltip(\n this.tooltip,\n index => {\n const position = this.positions().get(index);\n if (position === undefined) return null;\n const candle = this.candles()[position];\n const anchor = this.candleEls()[position]?.nativeElement;\n if (!candle || !anchor) return null;\n return {\n datum: {\n label: candle.label,\n value: '',\n rows: [\n { label: this.openText(), value: this.price(candle.open) },\n { label: this.highText(), value: this.price(candle.high) },\n { label: this.lowText(), value: this.price(candle.low) },\n { label: this.closeText(), value: this.price(candle.close) },\n ],\n },\n anchor,\n };\n },\n (x, y) => this.slotAt(x, y)\n );\n\n /** The slot the tooltip is reading, marked by a band behind its candle. */\n protected readonly activeSlot = computed(() => {\n const index = this.tip.active();\n return index === null ? null : { left: percent((index / Math.max(1, this.slots())) * 100) };\n });\n\n /**\n * The figures for `dataTable`: the chart's name as the caption, a row per period headed\n * by its label, and the open, high, low and close written as the tooltip writes them.\n * A period with no candle keeps its row, with an empty cell for each price that is not\n * a finite number.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const cell = (value: number): string => (Number.isFinite(value) ? this.price(value) : '');\n return {\n caption: this.resolvedAriaLabel(),\n columns: [this.openText(), this.highText(), this.lowText(), this.closeText()],\n groups: [\n {\n rows: this.data().map(d => ({\n header: d.label,\n cells: [cell(d.open), cell(d.high), cell(d.low), cell(d.close)],\n })),\n },\n ],\n };\n });\n\n /**\n * The candle under the pointer. A MOUSE event, as every chart's is: a tap fires the\n * compatibility `mousemove` and no `pointermove`. Over a slot with no candle, the open\n * tooltip starts its grace period.\n */\n protected onPointerMove(event: MouseEvent): void {\n if (!this.tooltip()) return;\n const index = this.slotAt(event.clientX, event.clientY);\n if (index === null) this.tip.leave(event);\n else this.tip.enter(index);\n }\n\n /**\n * The slot under a viewport position, if a candle is drawn there: across the drawing's\n * width, and anywhere down the plot, its padding included. A drawing with no box\n * (nothing laid out yet) answers nothing.\n */\n private slotAt(clientX: number, clientY: number): number | null {\n const drawing = this.drawing()?.nativeElement;\n const plot = this.plot()?.nativeElement;\n const slots = this.slots();\n if (!drawing || !plot || slots === 0) return null;\n const box = drawing.getBoundingClientRect();\n const frame = plot.getBoundingClientRect();\n if (box.width <= 0 || box.height <= 0) return null;\n if (clientX < box.left || clientX > box.right || clientY < frame.top || clientY > frame.bottom) return null;\n const index = clamp(Math.floor(((clientX - box.left) / box.width) * slots), 0, slots - 1);\n return this.positions().has(index) ? index : null;\n }\n\n /**\n * Read the drawing's width, the widest label's and one body's off the layout. A\n * hidden chart measures 0 and keeps its last reading rather than thin to nothing; a\n * label or a body with nothing to measure — no period, no candle — reads 0 and leaves\n * the estimate in charge of what it decides.\n */\n private measure(): void {\n const drawing = this.drawing()?.nativeElement;\n if (!drawing) return;\n const width = drawing.getBoundingClientRect().width;\n if (width <= 0) return;\n const label = this.probe()?.nativeElement.getBoundingClientRect().width ?? 0;\n const body = this.candleEls()[0]?.nativeElement.getBoundingClientRect().width ?? 0;\n const last = this.measured();\n if (last?.width === width && last.label === label && last.body === body) return;\n this.measured.set({ width, label, body });\n }\n\n /** Whether a period can be drawn: all four prices finite. */\n private static drawable(d: WrCandlestickDatum): boolean {\n return Number.isFinite(d.open) && Number.isFinite(d.high) && Number.isFinite(d.low) && Number.isFinite(d.close);\n }\n}\n\nexport type { WrCandlestickDatum } from './types';\n","@let active = activeSlot();\n<!-- Two columns: the y tick labels at inline start and the plot beside them, with the\n period labels under the plot only, so their percentages are the drawing's. -->\n<div class=\"wr-candlestick-chart__body\">\n @if (showGrid()) {\n <!-- HTML beside the drawing, in flow, so the column is exactly as wide as the longest\n label; each one hands the stylesheet the y of its own gridline. Hidden, as the\n drawing is one image: its name is what is announced, and the prices are the data\n table's. -->\n <div class=\"wr-candlestick-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-candlestick-chart__y-tick\" [style.--wr-candlestick-chart-y]=\"tick.top\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <div\n #plot\n class=\"wr-candlestick-chart__plot\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"height()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n <!-- Boxes placed by percentage rather than an SVG stretched to the plot: a body's\n width is a share of its slot held between 1px and a ceiling, which CSS can say\n and a stretched viewBox cannot. Hidden as well as presentational: `img` already\n makes it so, and a tree of hundreds of empty boxes is work for nothing. -->\n <div #drawing class=\"wr-candlestick-chart__drawing\" aria-hidden=\"true\" [style.--wr-candlestick-chart-slot]=\"slot()\">\n @if (active) {\n <!-- The slot being read, behind its candle, so the reading is marked by more than\n the tooltip's arrow. Before the gridlines, so they are drawn over it. -->\n <div class=\"wr-candlestick-chart__cursor\" [style.left.%]=\"active.left\"></div>\n }\n\n @if (showGrid()) {\n @for (tick of yTicks(); track $index) {\n <div class=\"wr-candlestick-chart__grid-line\" [style.top.%]=\"tick.top\"></div>\n }\n }\n\n @for (candle of candles(); track candle.index) {\n <!-- The candle's box runs from its high to its low, as wide as its body. The wicks\n are its two pseudo-elements, above and below the body, so a hollow body is\n empty rather than crossed by the wick. -->\n <div\n #candleEl\n class=\"wr-candlestick-chart__candle\"\n [class.wr-candlestick-chart__candle--increase]=\"candle.increase\"\n [class.wr-candlestick-chart__candle--decrease]=\"!candle.increase\"\n [style.left.%]=\"candle.left\"\n [style.top.%]=\"candle.top\"\n [style.height.%]=\"candle.height\"\n [style.--wr-candlestick-chart-upper]=\"candle.upper\"\n [style.--wr-candlestick-chart-lower]=\"candle.lower\"\n [attr.data-index]=\"candle.index\"\n [attr.data-open]=\"candle.open\"\n [attr.data-high]=\"candle.high\"\n [attr.data-low]=\"candle.low\"\n [attr.data-close]=\"candle.close\"\n >\n <div class=\"wr-candlestick-chart__candle-body\"></div>\n </div>\n }\n </div>\n </div>\n\n <!-- The time axis, with or without the grid: the strip is as wide as the plot, and hands\n the stylesheet the room each label has; each label hands it the x of its candle, as\n a percentage of the drawing's width. The hidden copy of every label, a line each, is\n what that room is measured against: it is as wide as the widest. -->\n <div class=\"wr-candlestick-chart__x-axis\" aria-hidden=\"true\" [style.--wr-candlestick-chart-x-slot]=\"xSlot()\">\n <span #probe class=\"wr-candlestick-chart__x-probe\">{{ probeText() }}</span>\n @for (label of xLabels(); track label.index) {\n <span class=\"wr-candlestick-chart__x-label\" [style.--wr-candlestick-chart-x]=\"label.left\">{{ label.label }}</span>\n }\n </div>\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the plot's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"],"mappings":";;;;;;;;;;;;;;AAsCA,MAAM,gBAAgB;AAGtB,MAAM,aAAa;AAGnB,MAAM,WAAW;AAMjB,MAAM,cAAc;AAGpB,MAAM,aAAa;AAGnB,MAAM,YAAY;AAGlB,MAAM,WAAW,UAA0B,KAAK,MAAM,QAAQ,GAAI,IAAI;AAOtE,MAAM,mBAAmB;AAOzB,SAAS,eAAe,OAAa;CACnC,MAAM,CAAC,UAAU,WAAW,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC,SAAQ,CAAE,CAAC,MAAM,GAAG;CACvE,OAAO,KAAK,IAAI,IAAI,SAAS,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,UAAU,KAAK,OAAO,QAAQ,CAAC;AAC7E;AAgGA,IAAa,qBAAb,MAAa,mBAAkB;CAKpB,OAAO,MAAqC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAQ/C,YAAY,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAE5B,oBAAoB,YAAY,KAAK,WAAW,0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IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAM,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEH,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEX,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEA,YAAU,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -14,7 +14,7 @@ var WrChartLegendPart = class WrChartLegendPart {
14
14
  wrChartLegendPart = input("", ...ngDevMode ? [{ debugName: "wrChartLegendPart" }] : /* istanbul ignore next */ []);
15
15
  static ɵfac = i0.ɵɵngDeclareFactory({
16
16
  minVersion: "12.0.0",
17
- version: "22.2.3",
17
+ version: "22.2.4",
18
18
  ngImport: i0,
19
19
  type: WrChartLegendPart,
20
20
  deps: [],
@@ -22,7 +22,7 @@ var WrChartLegendPart = class WrChartLegendPart {
22
22
  });
23
23
  static ɵdir = i0.ɵɵngDeclareDirective({
24
24
  minVersion: "17.1.0",
25
- version: "22.2.3",
25
+ version: "22.2.4",
26
26
  type: WrChartLegendPart,
27
27
  isStandalone: true,
28
28
  selector: "[wrChartLegendPart]",
@@ -39,7 +39,7 @@ var WrChartLegendPart = class WrChartLegendPart {
39
39
  };
40
40
  i0.ɵɵngDeclareClassMetadata({
41
41
  minVersion: "12.0.0",
42
- version: "22.2.3",
42
+ version: "22.2.4",
43
43
  ngImport: i0,
44
44
  type: WrChartLegendPart,
45
45
  decorators: [{
@@ -110,7 +110,7 @@ var WrChartLegend = class WrChartLegend {
110
110
  }
111
111
  static ɵfac = i0.ɵɵngDeclareFactory({
112
112
  minVersion: "12.0.0",
113
- version: "22.2.3",
113
+ version: "22.2.4",
114
114
  ngImport: i0,
115
115
  type: WrChartLegend,
116
116
  deps: [],
@@ -118,7 +118,7 @@ var WrChartLegend = class WrChartLegend {
118
118
  });
119
119
  static ɵcmp = i0.ɵɵngDeclareComponent({
120
120
  minVersion: "17.0.0",
121
- version: "22.2.3",
121
+ version: "22.2.4",
122
122
  type: WrChartLegend,
123
123
  isStandalone: true,
124
124
  selector: "ul[wr-chart-legend]",
@@ -186,7 +186,7 @@ var WrChartLegend = class WrChartLegend {
186
186
  };
187
187
  i0.ɵɵngDeclareClassMetadata({
188
188
  minVersion: "12.0.0",
189
- version: "22.2.3",
189
+ version: "22.2.4",
190
190
  ngImport: i0,
191
191
  type: WrChartLegend,
192
192
  decorators: [{
@@ -97,7 +97,7 @@ var WrChartTable = class WrChartTable {
97
97
  hasGroupHeaders = computed(() => this.data().groups.some((group) => !!group.header), ...ngDevMode ? [{ debugName: "hasGroupHeaders" }] : /* istanbul ignore next */ []);
98
98
  static ɵfac = i0.ɵɵngDeclareFactory({
99
99
  minVersion: "12.0.0",
100
- version: "22.2.3",
100
+ version: "22.2.4",
101
101
  ngImport: i0,
102
102
  type: WrChartTable,
103
103
  deps: [],
@@ -105,7 +105,7 @@ var WrChartTable = class WrChartTable {
105
105
  });
106
106
  static ɵcmp = i0.ɵɵngDeclareComponent({
107
107
  minVersion: "17.0.0",
108
- version: "22.2.3",
108
+ version: "22.2.4",
109
109
  type: WrChartTable,
110
110
  isStandalone: true,
111
111
  selector: "wr-chart-table",
@@ -124,7 +124,7 @@ var WrChartTable = class WrChartTable {
124
124
  };
125
125
  i0.ɵɵngDeclareClassMetadata({
126
126
  minVersion: "12.0.0",
127
- version: "22.2.3",
127
+ version: "22.2.4",
128
128
  ngImport: i0,
129
129
  type: WrChartTable,
130
130
  decorators: [{
@@ -218,7 +218,7 @@ var WrDonutChart = class WrDonutChart {
218
218
  }
219
219
  static ɵfac = i0.ɵɵngDeclareFactory({
220
220
  minVersion: "12.0.0",
221
- version: "22.2.3",
221
+ version: "22.2.4",
222
222
  ngImport: i0,
223
223
  type: WrDonutChart,
224
224
  deps: [],
@@ -226,7 +226,7 @@ var WrDonutChart = class WrDonutChart {
226
226
  });
227
227
  static ɵcmp = i0.ɵɵngDeclareComponent({
228
228
  minVersion: "17.0.0",
229
- version: "22.2.3",
229
+ version: "22.2.4",
230
230
  type: WrDonutChart,
231
231
  isStandalone: true,
232
232
  selector: "wr-donut-chart",
@@ -351,7 +351,7 @@ var WrDonutChart = class WrDonutChart {
351
351
  };
352
352
  i0.ɵɵngDeclareClassMetadata({
353
353
  minVersion: "12.0.0",
354
- version: "22.2.3",
354
+ version: "22.2.4",
355
355
  ngImport: i0,
356
356
  type: WrDonutChart,
357
357
  decorators: [{
@@ -191,7 +191,7 @@ var WrFunnelChart = class WrFunnelChart {
191
191
  }
192
192
  static ɵfac = i0.ɵɵngDeclareFactory({
193
193
  minVersion: "12.0.0",
194
- version: "22.2.3",
194
+ version: "22.2.4",
195
195
  ngImport: i0,
196
196
  type: WrFunnelChart,
197
197
  deps: [],
@@ -199,7 +199,7 @@ var WrFunnelChart = class WrFunnelChart {
199
199
  });
200
200
  static ɵcmp = i0.ɵɵngDeclareComponent({
201
201
  minVersion: "17.0.0",
202
- version: "22.2.3",
202
+ version: "22.2.4",
203
203
  type: WrFunnelChart,
204
204
  isStandalone: true,
205
205
  selector: "wr-funnel-chart",
@@ -302,7 +302,7 @@ var WrFunnelChart = class WrFunnelChart {
302
302
  };
303
303
  i0.ɵɵngDeclareClassMetadata({
304
304
  minVersion: "12.0.0",
305
- version: "22.2.3",
305
+ version: "22.2.4",
306
306
  ngImport: i0,
307
307
  type: WrFunnelChart,
308
308
  decorators: [{
@@ -86,7 +86,7 @@ var WrGauge = class WrGauge {
86
86
  });
87
87
  static ɵfac = i0.ɵɵngDeclareFactory({
88
88
  minVersion: "12.0.0",
89
- version: "22.2.3",
89
+ version: "22.2.4",
90
90
  ngImport: i0,
91
91
  type: WrGauge,
92
92
  deps: [],
@@ -94,7 +94,7 @@ var WrGauge = class WrGauge {
94
94
  });
95
95
  static ɵcmp = i0.ɵɵngDeclareComponent({
96
96
  minVersion: "17.0.0",
97
- version: "22.2.3",
97
+ version: "22.2.4",
98
98
  type: WrGauge,
99
99
  isStandalone: true,
100
100
  selector: "wr-gauge",
@@ -199,7 +199,7 @@ var WrGauge = class WrGauge {
199
199
  };
200
200
  i0.ɵɵngDeclareClassMetadata({
201
201
  minVersion: "12.0.0",
202
- version: "22.2.3",
202
+ version: "22.2.4",
203
203
  ngImport: i0,
204
204
  type: WrGauge,
205
205
  decorators: [{
@@ -232,7 +232,7 @@ var WrHeatmapChart = class WrHeatmapChart {
232
232
  }
233
233
  static ɵfac = i0.ɵɵngDeclareFactory({
234
234
  minVersion: "12.0.0",
235
- version: "22.2.3",
235
+ version: "22.2.4",
236
236
  ngImport: i0,
237
237
  type: WrHeatmapChart,
238
238
  deps: [],
@@ -240,7 +240,7 @@ var WrHeatmapChart = class WrHeatmapChart {
240
240
  });
241
241
  static ɵcmp = i0.ɵɵngDeclareComponent({
242
242
  minVersion: "17.0.0",
243
- version: "22.2.3",
243
+ version: "22.2.4",
244
244
  type: WrHeatmapChart,
245
245
  isStandalone: true,
246
246
  selector: "wr-heatmap-chart",
@@ -374,7 +374,7 @@ var WrHeatmapChart = class WrHeatmapChart {
374
374
  };
375
375
  i0.ɵɵngDeclareClassMetadata({
376
376
  minVersion: "12.0.0",
377
- version: "22.2.3",
377
+ version: "22.2.4",
378
378
  ngImport: i0,
379
379
  type: WrHeatmapChart,
380
380
  decorators: [{