@nanahoshi/mona-ui 0.32.2 → 0.33.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 (109) hide show
  1. package/docs/api/calendar.md +1 -1
  2. package/docs/api/file-upload.md +174 -0
  3. package/docs/api/i18n.md +49 -3
  4. package/docs/api/list-box.md +1 -1
  5. package/docs/api/locales.md +14 -14
  6. package/docs/api/tabs.md +1 -1
  7. package/docs/breadcrumb.md +6 -1
  8. package/docs/chart-line-area.md +6 -1
  9. package/docs/chart-treemap.md +1 -1
  10. package/docs/checkbox.md +1 -3
  11. package/docs/circular-progress-bar.md +26 -5
  12. package/docs/collapsible.md +28 -6
  13. package/docs/color-palette.md +24 -3
  14. package/docs/date-range-picker.md +1 -5
  15. package/docs/dropdown-button.md +6 -1
  16. package/docs/editor.md +8 -2
  17. package/docs/expansion-panel.md +6 -1
  18. package/docs/file-upload.md +516 -0
  19. package/docs/forms.md +2 -0
  20. package/docs/otp-input.md +12 -4
  21. package/docs/popup.md +2 -6
  22. package/docs/progress-bar.md +12 -3
  23. package/docs/scroll-view.md +6 -3
  24. package/docs/sheet.md +6 -2
  25. package/docs/sidebar.md +5 -1
  26. package/docs/skeleton.md +9 -2
  27. package/docs/stepper.md +3 -1
  28. package/docs/textarea.md +7 -1
  29. package/docs/textbox.md +7 -1
  30. package/docs/window.md +1 -1
  31. package/fesm2022/nanahoshi-mona-ui-card.mjs +2 -2
  32. package/fesm2022/nanahoshi-mona-ui-chart.mjs +2 -2
  33. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +2 -2
  34. package/fesm2022/nanahoshi-mona-ui-command.mjs +4 -3
  35. package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +2 -2
  36. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +6 -3
  37. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +10 -5
  38. package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -8
  39. package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +1137 -0
  40. package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs → nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs} +2 -2
  41. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs} +2 -2
  42. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs → nanahoshi-mona-ui-grid-grid-list.component-BVpGUjA7.mjs} +5 -5
  43. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs → nanahoshi-mona-ui-grid-grid-row.component-D0T8kfdm.mjs} +7 -7
  44. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-5D2BjGx4.mjs} +5 -5
  45. package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs → nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs} +3 -3
  46. package/fesm2022/nanahoshi-mona-ui-grid.mjs +15 -14
  47. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +74 -0
  48. package/fesm2022/nanahoshi-mona-ui-internal-live-announcer.mjs +10 -0
  49. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +3 -2
  50. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +2 -2
  51. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +50 -0
  52. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +38 -0
  53. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +38 -0
  54. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +38 -0
  55. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -0
  56. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +38 -0
  57. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -0
  58. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -0
  59. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +44 -0
  60. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +38 -0
  61. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +44 -0
  62. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +29 -0
  63. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -0
  64. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -0
  65. package/fesm2022/nanahoshi-mona-ui-notification.mjs +2 -2
  66. package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -2
  67. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +2 -2
  68. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +6 -6
  69. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +2 -2
  70. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +2 -2
  71. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -2
  72. package/fesm2022/nanahoshi-mona-ui-window.mjs +15 -67
  73. package/file-upload/package.json +4 -0
  74. package/i18n/catalogs/en-US.messages.json +29 -0
  75. package/internal/live-announcer/package.json +4 -0
  76. package/llms.txt +3 -1
  77. package/locales/ar-sa/ar-sa.messages.json +29 -0
  78. package/locales/de-de/de-de.messages.json +29 -0
  79. package/locales/es-es/es-es.messages.json +29 -0
  80. package/locales/fr-fr/fr-fr.messages.json +29 -0
  81. package/locales/id-id/id-id.messages.json +29 -0
  82. package/locales/it-it/it-it.messages.json +29 -0
  83. package/locales/ja-jp/ja-jp.messages.json +29 -0
  84. package/locales/ko-kr/ko-kr.messages.json +29 -0
  85. package/locales/pl-pl/pl-pl.messages.json +29 -0
  86. package/locales/pt-br/pt-br.messages.json +29 -0
  87. package/locales/ru-ru/ru-ru.messages.json +29 -0
  88. package/locales/tr-tr/tr-tr.messages.json +29 -0
  89. package/locales/zh-cn/zh-cn.messages.json +29 -0
  90. package/locales/zh-tw/zh-tw.messages.json +29 -0
  91. package/package.json +9 -1
  92. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -0
  93. package/types/nanahoshi-mona-ui-file-upload.d.ts +366 -0
  94. package/types/nanahoshi-mona-ui-i18n.d.ts +73 -13
  95. package/types/nanahoshi-mona-ui-internal-live-announcer.d.ts +12 -0
  96. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
  97. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
  98. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
  99. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
  100. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
  101. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
  102. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
  103. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
  104. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +29 -0
  105. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
  106. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
  107. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
  108. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
  109. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
package/docs/sidebar.md CHANGED
@@ -161,7 +161,11 @@ export class SidebarIconRailExampleComponent {
161
161
  <ul monaSidebarMenu>
162
162
  @for (folder of folders; track folder.label) {
163
163
  <li monaSidebarMenuItem [active]="current() === folder.label">
164
- <a monaSidebarMenuButton [href]="folder.href" [tooltip]="folder.label" (click)="open($event, folder.label)">
164
+ <a
165
+ monaSidebarMenuButton
166
+ [href]="folder.href"
167
+ [tooltip]="folder.label"
168
+ (click)="open($event, folder.label)">
165
169
  <svg aria-hidden="true" [lucideIcon]="folder.icon" [size]="16"></svg>
166
170
  <span>{{ folder.label }}</span>
167
171
  </a>
package/docs/skeleton.md CHANGED
@@ -72,7 +72,10 @@ export class SkeletonCardExampleComponent {
72
72
 
73
73
  ```html
74
74
  <div class="flex max-w-sm flex-col items-start gap-3">
75
- <section aria-label="Profile" class="flex w-full items-center gap-4 rounded-md border border-border p-4" [attr.aria-busy]="loading()">
75
+ <section
76
+ aria-label="Profile"
77
+ class="flex w-full items-center gap-4 rounded-md border border-border p-4"
78
+ [attr.aria-busy]="loading()">
76
79
  @if (loading()) {
77
80
  <mona-skeleton rounded="full" [height]="56" [width]="56"></mona-skeleton>
78
81
  <div class="flex flex-1 flex-col gap-2">
@@ -80,7 +83,11 @@ export class SkeletonCardExampleComponent {
80
83
  <mona-skeleton height="1rem"></mona-skeleton>
81
84
  </div>
82
85
  } @else {
83
- <div class="flex size-14 shrink-0 items-center justify-center rounded-full bg-primary font-bold text-primary-foreground" aria-hidden="true">JS</div>
86
+ <div
87
+ class="flex size-14 shrink-0 items-center justify-center rounded-full bg-primary font-bold text-primary-foreground"
88
+ aria-hidden="true">
89
+ JS
90
+ </div>
84
91
  <div class="flex flex-col">
85
92
  <span class="font-semibold">Jane Smith</span>
86
93
  <span class="text-sm">Product designer, Lisbon</span>
package/docs/stepper.md CHANGED
@@ -258,7 +258,9 @@ export class StepperVetoExampleComponent {
258
258
  <div class="flex flex-col gap-3">
259
259
  <mona-stepper aria-label="Sign-up" [steps]="steps" [(step)]="currentStep" (stepSelect)="select($event)" />
260
260
  <div class="flex items-center gap-3">
261
- <button monaButton type="button" [toggleable]="true" [(selected)]="accountDone">Account details filled in</button>
261
+ <button monaButton type="button" [toggleable]="true" [(selected)]="accountDone">
262
+ Account details filled in
263
+ </button>
262
264
  <span aria-live="polite" class="text-sm">{{ message() }}</span>
263
265
  </div>
264
266
  </div>
package/docs/textarea.md CHANGED
@@ -65,7 +65,13 @@ export class TextareaBasicExampleComponent {
65
65
  </div>
66
66
  <div class="flex flex-col gap-1">
67
67
  <label class="text-sm font-medium" for="textarea-terms">Terms</label>
68
- <textarea monaTextArea class="w-full resize-none" id="textarea-terms" readonly rows="2" [value]="terms"></textarea>
68
+ <textarea
69
+ monaTextArea
70
+ class="w-full resize-none"
71
+ id="textarea-terms"
72
+ readonly
73
+ rows="2"
74
+ [value]="terms"></textarea>
69
75
  </div>
70
76
  </div>
71
77
  ```
package/docs/textbox.md CHANGED
@@ -67,7 +67,13 @@ import {
67
67
 
68
68
  @Component({
69
69
  selector: "app-textbox-slots-example",
70
- imports: [LabelComponent, LucideSearch, TextBoxComponent, TextBoxPrefixTemplateDirective, TextBoxSuffixTemplateDirective],
70
+ imports: [
71
+ LabelComponent,
72
+ LucideSearch,
73
+ TextBoxComponent,
74
+ TextBoxPrefixTemplateDirective,
75
+ TextBoxSuffixTemplateDirective
76
+ ],
71
77
  templateUrl: "./slots-example.component.html"
72
78
  })
73
79
  export class TextboxSlotsExampleComponent {
package/docs/window.md CHANGED
@@ -132,7 +132,7 @@ export class WindowBasicExampleComponent {
132
132
  }
133
133
  ```
134
134
 
135
- On `<mona-window>`, `draggable` defaults to `true` and `resizable` to `false`. Through `WindowService.open()`, both default to `false`. The pointer drags the window by its title bar and resizes it from eight edge and corner handles. A drag starts once the pointer has moved a few pixels with the primary button pressed, and never from the title bar's buttons or the controls of an action template. A dragged window keeps its size past the viewport's edges, and its title bar stays below the top edge. The keyboard does both from the title bar — see [Keyboard](#keyboard).
135
+ On `<mona-window>`, `draggable` defaults to `true` and `resizable` to `false`. Through `WindowService.open()`, both default to `false`. The pointer drags the window by its title bar and resizes it from eight edge and corner handles. A drag starts once the pointer has moved a few pixels with the primary button pressed, and never from the title bar's buttons or the controls of an action template. A dragged window keeps its size past the viewport's edges, and its title bar stays below the top edge. A resized edge stops at `minWidth`, `minHeight`, `maxWidth` and `maxHeight`, which default to 50 pixels and the viewport's size, and at the viewport's edges. The keyboard does both from the title bar — see [Keyboard](#keyboard).
136
136
 
137
137
  ### Minimize and maximize
138
138
 
@@ -251,7 +251,7 @@ var CardComponent = class CardComponent {
251
251
  isSignal: true
252
252
  }],
253
253
  ngImport: i0,
254
- template: "@if (headerTemplate()) {\n <div [class]=\"headerClass()\">\n @if (titleTemplate()) {\n <div [class]=\"titleCellClass\" [attr.id]=\"titleCellId()\">\n <ng-container [ngTemplateOutlet]=\"titleTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: titleId() }\" />\n </div>\n }\n @if (descriptionTemplate()) {\n <div [class]=\"descriptionCellClass\" [attr.id]=\"descriptionCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"descriptionTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: descriptionId() }\"\n />\n </div>\n }\n @if (actionTemplate().length > 0) {\n <div [class]=\"actionsCellClass\" role=\"group\" [attr.aria-label]=\"messages().actionsLabel\">\n @for (template of actionTemplate(); track template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n </div>\n }\n </div>\n}\n<ng-container [ngTemplateOutlet]=\"contentDirective()?.templateRef ?? null\" />\n@if (footerTemplate()) {\n <div [class]=\"footerClass()\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\" />\n </div>\n}\n",
254
+ template: "@if (headerTemplate()) {\n <div [class]=\"headerClass()\">\n @if (titleTemplate()) {\n <div [class]=\"titleCellClass\" [attr.id]=\"titleCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"titleTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: titleId() }\" />\n </div>\n }\n @if (descriptionTemplate()) {\n <div [class]=\"descriptionCellClass\" [attr.id]=\"descriptionCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"descriptionTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: descriptionId() }\" />\n </div>\n }\n @if (actionTemplate().length > 0) {\n <div [class]=\"actionsCellClass\" role=\"group\" [attr.aria-label]=\"messages().actionsLabel\">\n @for (template of actionTemplate(); track template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n </div>\n }\n </div>\n}\n<ng-container [ngTemplateOutlet]=\"contentDirective()?.templateRef ?? null\" />\n@if (footerTemplate()) {\n <div [class]=\"footerClass()\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\" />\n </div>\n}\n",
255
255
  dependencies: [{
256
256
  kind: "directive",
257
257
  type: NgTemplateOutlet,
@@ -282,7 +282,7 @@ i0.ɵɵngDeclareClassMetadata({
282
282
  "[attr.role]": "titleId() ? role() : null"
283
283
  },
284
284
  providers: [CardService],
285
- template: "@if (headerTemplate()) {\n <div [class]=\"headerClass()\">\n @if (titleTemplate()) {\n <div [class]=\"titleCellClass\" [attr.id]=\"titleCellId()\">\n <ng-container [ngTemplateOutlet]=\"titleTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: titleId() }\" />\n </div>\n }\n @if (descriptionTemplate()) {\n <div [class]=\"descriptionCellClass\" [attr.id]=\"descriptionCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"descriptionTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: descriptionId() }\"\n />\n </div>\n }\n @if (actionTemplate().length > 0) {\n <div [class]=\"actionsCellClass\" role=\"group\" [attr.aria-label]=\"messages().actionsLabel\">\n @for (template of actionTemplate(); track template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n </div>\n }\n </div>\n}\n<ng-container [ngTemplateOutlet]=\"contentDirective()?.templateRef ?? null\" />\n@if (footerTemplate()) {\n <div [class]=\"footerClass()\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\" />\n </div>\n}\n"
285
+ template: "@if (headerTemplate()) {\n <div [class]=\"headerClass()\">\n @if (titleTemplate()) {\n <div [class]=\"titleCellClass\" [attr.id]=\"titleCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"titleTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: titleId() }\" />\n </div>\n }\n @if (descriptionTemplate()) {\n <div [class]=\"descriptionCellClass\" [attr.id]=\"descriptionCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"descriptionTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: descriptionId() }\" />\n </div>\n }\n @if (actionTemplate().length > 0) {\n <div [class]=\"actionsCellClass\" role=\"group\" [attr.aria-label]=\"messages().actionsLabel\">\n @for (template of actionTemplate(); track template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n </div>\n }\n </div>\n}\n<ng-container [ngTemplateOutlet]=\"contentDirective()?.templateRef ?? null\" />\n@if (footerTemplate()) {\n <div [class]=\"footerClass()\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\" />\n </div>\n}\n"
286
286
  }]
287
287
  }],
288
288
  propDecorators: {
@@ -52382,7 +52382,7 @@ var ChartTooltipComponent = class ChartTooltipComponent {
52382
52382
  isSignal: true
52383
52383
  }],
52384
52384
  ngImport: i0,
52385
- template: "@if (enabled() && tooltipContext(); as context) {\n <div\n #tooltipContainer\n [class]=\"tooltipClasses()\"\n [style.left.px]=\"placement().left\"\n [style.top.px]=\"placement().top\"\n [attr.data-placement]=\"placement().placement\">\n @if (customTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"context\" />\n } @else if (context.point.seriesType === \"heatmap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span\n >,\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedYCategory || context.point.categoryY\n }}</span>\n </div>\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n </div>\n } @else if (context.point.seriesType === \"pie\" || context.point.seriesType === \"donut\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex items-center gap-2 text-xs text-muted-foreground\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedPercentage) {\n <span>·</span>\n <span>{{ context.point.formattedPercentage }}</span>\n }\n </div>\n } @else if (context.point.seriesType === \"gauge\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n @if (context.point.formattedRadialMin && context.point.formattedRadialMax) {\n <div>\n {{ messages().range }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\"\n >{{ messages().valueRange(context.point.formattedRadialMin, context.point.formattedRadialMax) }}</span\n >\n </div>\n }\n @if (context.point.isClamped) {\n <div class=\"w-fit rounded bg-warning-subtle px-1 text-[11px] font-medium text-warning-subtle-foreground\">\n {{ messages().visualIndicatorClamped }}\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"treemap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.hierarchy?.formattedLabel || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.hierarchy?.formattedPath && context.point.hierarchy!.formattedPath.length > 1) {\n <div class=\"text-[11px] truncate max-w-[220px]\">\n {{ context.point.hierarchy!.formattedPath.join(messages().pathSeparator) }}\n </div>\n }\n <div class=\"flex items-center gap-2\">\n <span\n >{{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span></span\n >\n @if (\n context.point.hierarchy?.percentageOfRoot !== undefined &&\n context.point.hierarchy!.percentageOfRoot > 0\n ) {\n <span>·</span>\n <span>{{ formatPercent(context.point.hierarchy!.percentageOfRoot) }}</span>\n }\n </div>\n </div>\n } @else if (context.point.seriesType === \"funnel\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel?.formattedValue || context.point.formattedY\n }}</span>\n </div>\n @if (context.point.funnel?.formattedConversionRate) {\n <div>\n {{ messages().conversion }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.formattedOverallConversionRate) {\n <div>\n {{ messages().overall }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedOverallConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.dropOff !== undefined && context.point.funnel!.dropOff > 0) {\n <div>\n {{ messages().dropOff }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ formatValue(context.point.funnel!.dropOff) }}</span>\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"waterfall\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.waterfall?.kind === \"change\") {\n <div>\n {{ messages().change }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall?.formattedDelta || context.point.formattedY\n }}</span>\n </div>\n @if (\n context.point.waterfall?.formattedCumulativeBefore &&\n context.point.waterfall?.formattedCumulativeAfter\n ) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\"\n >{{ context.point.waterfall!.formattedCumulativeBefore }} {{ changeArrow() }}\n {{ context.point.waterfall!.formattedCumulativeAfter }}</span\n >\n </div>\n } @else if (context.point.waterfall?.formattedCumulativeAfter) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall!.formattedCumulativeAfter\n }}</span>\n </div>\n }\n } @else {\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n }\n </div>\n } @else if (context.shared) {\n <div class=\"mb-1 font-semibold text-foreground\">{{ context.point.formattedX }}</div>\n <div class=\"flex flex-col gap-1.5\">\n @for (pt of context.points; track pt.markId) {\n @if (pt.valueKind === \"ohlc\" || pt.seriesType === \"candlestick\" || pt.seriesType === \"ohlc\") {\n <div class=\"flex flex-col gap-0.5\">\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-xs text-muted-foreground font-medium\">{{ pt.seriesName }}</span>\n </div>\n @if (pt.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.2 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-[11px] text-muted-foreground ps-3.5 flex items-center gap-1 flex-wrap\">\n <span\n >{{ messages().openAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedOpen || pt.open\n }}</span></span\n >\n <span\n >{{ messages().highAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedHigh || pt.high\n }}</span></span\n >\n <span\n >{{ messages().lowAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedLow || pt.low\n }}</span></span\n >\n <span\n >{{ messages().closeAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedClose || pt.close\n }}</span></span\n >\n @if (pt.formattedChange) {\n <span class=\"font-medium text-foreground\">({{ pt.formattedChange }})</span>\n }\n </div>\n </div>\n } @else if (pt.valueKind === \"range\") {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\"\n >{{ messages().valueRange(pt.formattedFrom ?? \"\", pt.formattedTo ?? \"\") }}</span\n >\n </div>\n </div>\n } @else {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\">{{ pt.formattedY }}</span>\n @if (pt.formattedStackPercentage) {\n <span class=\"text-xs text-muted-foreground\"\n >({{ pt.formattedStackPercentage }})</span\n >\n }\n @if (pt.formattedSize) {\n <span class=\"text-xs text-muted-foreground\">({{ pt.formattedSize }})</span>\n }\n </div>\n </div>\n }\n }\n </div>\n } @else if (\n context.point.seriesType === \"candlestick\" ||\n context.point.seriesType === \"ohlc\" ||\n context.point.valueKind === \"ohlc\"\n ) {\n <div class=\"flex items-center justify-between gap-2 mb-1\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n @if (context.point.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.5 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-xs text-muted-foreground mb-1.5\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span>\n </div>\n <div class=\"grid grid-cols-2 gap-x-3 gap-y-0.5 text-xs\">\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().open }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedOpen || context.point.open\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().high }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedHigh || context.point.high\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().low }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedLow || context.point.low\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().close }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedClose || context.point.close\n }}</span>\n </div>\n </div>\n @if (context.point.formattedChange || context.point.change !== undefined) {\n <div class=\"mt-1 pt-1 border-t border-border/50 flex items-center justify-between text-xs\">\n <span class=\"text-muted-foreground\">{{ messages().change }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">\n {{ context.point.formattedChange || context.point.change }}\n @if (context.point.formattedChangePercentage) {\n <span>({{ context.point.formattedChangePercentage }})</span>\n }\n </span>\n </div>\n }\n } @else {\n <div class=\"flex items-center gap-1.5 mb-0.5\">\n <span class=\"inline-block h-2 w-2 rounded-full\" [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"text-muted-foreground\">\n {{ context.point.formattedX }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedStackPercentage) {\n <span>·</span>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedStackPercentage }}</span>\n }\n @if (context.point.formattedSize) {\n <span class=\"ms-1.5\"\n >({{ messages().size }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedSize }}</span>)</span>\n }\n </div>\n }\n </div>\n}\n",
52385
+ template: "@if (enabled() && tooltipContext(); as context) {\n <div\n #tooltipContainer\n [class]=\"tooltipClasses()\"\n [style.left.px]=\"placement().left\"\n [style.top.px]=\"placement().top\"\n [attr.data-placement]=\"placement().placement\">\n @if (customTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"context\" />\n } @else if (context.point.seriesType === \"heatmap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span>,\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedYCategory || context.point.categoryY\n }}</span>\n </div>\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n </div>\n } @else if (context.point.seriesType === \"pie\" || context.point.seriesType === \"donut\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex items-center gap-2 text-xs text-muted-foreground\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedPercentage) {\n <span>·</span>\n <span>{{ context.point.formattedPercentage }}</span>\n }\n </div>\n } @else if (context.point.seriesType === \"gauge\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n @if (context.point.formattedRadialMin && context.point.formattedRadialMax) {\n <div>\n {{ messages().range }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n messages().valueRange(context.point.formattedRadialMin, context.point.formattedRadialMax)\n }}</span>\n </div>\n }\n @if (context.point.isClamped) {\n <div\n class=\"w-fit rounded bg-warning-subtle px-1 text-[11px] font-medium text-warning-subtle-foreground\">\n {{ messages().visualIndicatorClamped }}\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"treemap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.hierarchy?.formattedLabel || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.hierarchy?.formattedPath && context.point.hierarchy!.formattedPath.length > 1) {\n <div class=\"text-[11px] truncate max-w-[220px]\">\n {{ context.point.hierarchy!.formattedPath.join(messages().pathSeparator) }}\n </div>\n }\n <div class=\"flex items-center gap-2\">\n <span\n >{{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span></span\n >\n @if (\n context.point.hierarchy?.percentageOfRoot !== undefined &&\n context.point.hierarchy!.percentageOfRoot > 0\n ) {\n <span>·</span>\n <span>{{ formatPercent(context.point.hierarchy!.percentageOfRoot) }}</span>\n }\n </div>\n </div>\n } @else if (context.point.seriesType === \"funnel\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel?.formattedValue || context.point.formattedY\n }}</span>\n </div>\n @if (context.point.funnel?.formattedConversionRate) {\n <div>\n {{ messages().conversion }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.formattedOverallConversionRate) {\n <div>\n {{ messages().overall }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedOverallConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.dropOff !== undefined && context.point.funnel!.dropOff > 0) {\n <div>\n {{ messages().dropOff }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n formatValue(context.point.funnel!.dropOff)\n }}</span>\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"waterfall\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.waterfall?.kind === \"change\") {\n <div>\n {{ messages().change }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall?.formattedDelta || context.point.formattedY\n }}</span>\n </div>\n @if (\n context.point.waterfall?.formattedCumulativeBefore &&\n context.point.waterfall?.formattedCumulativeAfter\n ) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\"\n >{{ context.point.waterfall!.formattedCumulativeBefore }} {{ changeArrow() }}\n {{ context.point.waterfall!.formattedCumulativeAfter }}</span\n >\n </div>\n } @else if (context.point.waterfall?.formattedCumulativeAfter) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall!.formattedCumulativeAfter\n }}</span>\n </div>\n }\n } @else {\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n }\n </div>\n } @else if (context.shared) {\n <div class=\"mb-1 font-semibold text-foreground\">{{ context.point.formattedX }}</div>\n <div class=\"flex flex-col gap-1.5\">\n @for (pt of context.points; track pt.markId) {\n @if (pt.valueKind === \"ohlc\" || pt.seriesType === \"candlestick\" || pt.seriesType === \"ohlc\") {\n <div class=\"flex flex-col gap-0.5\">\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-xs text-muted-foreground font-medium\">{{ pt.seriesName }}</span>\n </div>\n @if (pt.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.2 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-[11px] text-muted-foreground ps-3.5 flex items-center gap-1 flex-wrap\">\n <span\n >{{ messages().openAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedOpen || pt.open\n }}</span></span\n >\n <span\n >{{ messages().highAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedHigh || pt.high\n }}</span></span\n >\n <span\n >{{ messages().lowAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedLow || pt.low\n }}</span></span\n >\n <span\n >{{ messages().closeAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedClose || pt.close\n }}</span></span\n >\n @if (pt.formattedChange) {\n <span class=\"font-medium text-foreground\">({{ pt.formattedChange }})</span>\n }\n </div>\n </div>\n } @else if (pt.valueKind === \"range\") {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\">{{\n messages().valueRange(pt.formattedFrom ?? \"\", pt.formattedTo ?? \"\")\n }}</span>\n </div>\n </div>\n } @else {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\">{{ pt.formattedY }}</span>\n @if (pt.formattedStackPercentage) {\n <span class=\"text-xs text-muted-foreground\"\n >({{ pt.formattedStackPercentage }})</span\n >\n }\n @if (pt.formattedSize) {\n <span class=\"text-xs text-muted-foreground\">({{ pt.formattedSize }})</span>\n }\n </div>\n </div>\n }\n }\n </div>\n } @else if (\n context.point.seriesType === \"candlestick\" ||\n context.point.seriesType === \"ohlc\" ||\n context.point.valueKind === \"ohlc\"\n ) {\n <div class=\"flex items-center justify-between gap-2 mb-1\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n @if (context.point.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.5 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-xs text-muted-foreground mb-1.5\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span>\n </div>\n <div class=\"grid grid-cols-2 gap-x-3 gap-y-0.5 text-xs\">\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().open }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedOpen || context.point.open\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().high }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedHigh || context.point.high\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().low }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedLow || context.point.low\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\"\n >{{ messages().close }}{{ messages().labelValueSeparator }}</span\n >\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedClose || context.point.close\n }}</span>\n </div>\n </div>\n @if (context.point.formattedChange || context.point.change !== undefined) {\n <div class=\"mt-1 pt-1 border-t border-border/50 flex items-center justify-between text-xs\">\n <span class=\"text-muted-foreground\"\n >{{ messages().change }}{{ messages().labelValueSeparator }}</span\n >\n <span class=\"font-medium text-foreground\">\n {{ context.point.formattedChange || context.point.change }}\n @if (context.point.formattedChangePercentage) {\n <span>({{ context.point.formattedChangePercentage }})</span>\n }\n </span>\n </div>\n }\n } @else {\n <div class=\"flex items-center gap-1.5 mb-0.5\">\n <span class=\"inline-block h-2 w-2 rounded-full\" [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"text-muted-foreground\">\n {{ context.point.formattedX }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedStackPercentage) {\n <span>·</span>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedStackPercentage }}</span>\n }\n @if (context.point.formattedSize) {\n <span class=\"ms-1.5\"\n >({{ messages().size }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedSize }}</span>)</span\n >\n }\n </div>\n }\n </div>\n}\n",
52386
52386
  dependencies: [{
52387
52387
  kind: "directive",
52388
52388
  type: NgTemplateOutlet,
@@ -52407,7 +52407,7 @@ i0.ɵɵngDeclareClassMetadata({
52407
52407
  selector: "mona-chart-tooltip",
52408
52408
  imports: [NgTemplateOutlet],
52409
52409
  host: { class: "contents" },
52410
- template: "@if (enabled() && tooltipContext(); as context) {\n <div\n #tooltipContainer\n [class]=\"tooltipClasses()\"\n [style.left.px]=\"placement().left\"\n [style.top.px]=\"placement().top\"\n [attr.data-placement]=\"placement().placement\">\n @if (customTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"context\" />\n } @else if (context.point.seriesType === \"heatmap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span\n >,\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedYCategory || context.point.categoryY\n }}</span>\n </div>\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n </div>\n } @else if (context.point.seriesType === \"pie\" || context.point.seriesType === \"donut\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex items-center gap-2 text-xs text-muted-foreground\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedPercentage) {\n <span>·</span>\n <span>{{ context.point.formattedPercentage }}</span>\n }\n </div>\n } @else if (context.point.seriesType === \"gauge\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n @if (context.point.formattedRadialMin && context.point.formattedRadialMax) {\n <div>\n {{ messages().range }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\"\n >{{ messages().valueRange(context.point.formattedRadialMin, context.point.formattedRadialMax) }}</span\n >\n </div>\n }\n @if (context.point.isClamped) {\n <div class=\"w-fit rounded bg-warning-subtle px-1 text-[11px] font-medium text-warning-subtle-foreground\">\n {{ messages().visualIndicatorClamped }}\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"treemap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.hierarchy?.formattedLabel || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.hierarchy?.formattedPath && context.point.hierarchy!.formattedPath.length > 1) {\n <div class=\"text-[11px] truncate max-w-[220px]\">\n {{ context.point.hierarchy!.formattedPath.join(messages().pathSeparator) }}\n </div>\n }\n <div class=\"flex items-center gap-2\">\n <span\n >{{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span></span\n >\n @if (\n context.point.hierarchy?.percentageOfRoot !== undefined &&\n context.point.hierarchy!.percentageOfRoot > 0\n ) {\n <span>·</span>\n <span>{{ formatPercent(context.point.hierarchy!.percentageOfRoot) }}</span>\n }\n </div>\n </div>\n } @else if (context.point.seriesType === \"funnel\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel?.formattedValue || context.point.formattedY\n }}</span>\n </div>\n @if (context.point.funnel?.formattedConversionRate) {\n <div>\n {{ messages().conversion }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.formattedOverallConversionRate) {\n <div>\n {{ messages().overall }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedOverallConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.dropOff !== undefined && context.point.funnel!.dropOff > 0) {\n <div>\n {{ messages().dropOff }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ formatValue(context.point.funnel!.dropOff) }}</span>\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"waterfall\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.waterfall?.kind === \"change\") {\n <div>\n {{ messages().change }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall?.formattedDelta || context.point.formattedY\n }}</span>\n </div>\n @if (\n context.point.waterfall?.formattedCumulativeBefore &&\n context.point.waterfall?.formattedCumulativeAfter\n ) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\"\n >{{ context.point.waterfall!.formattedCumulativeBefore }} {{ changeArrow() }}\n {{ context.point.waterfall!.formattedCumulativeAfter }}</span\n >\n </div>\n } @else if (context.point.waterfall?.formattedCumulativeAfter) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall!.formattedCumulativeAfter\n }}</span>\n </div>\n }\n } @else {\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n }\n </div>\n } @else if (context.shared) {\n <div class=\"mb-1 font-semibold text-foreground\">{{ context.point.formattedX }}</div>\n <div class=\"flex flex-col gap-1.5\">\n @for (pt of context.points; track pt.markId) {\n @if (pt.valueKind === \"ohlc\" || pt.seriesType === \"candlestick\" || pt.seriesType === \"ohlc\") {\n <div class=\"flex flex-col gap-0.5\">\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-xs text-muted-foreground font-medium\">{{ pt.seriesName }}</span>\n </div>\n @if (pt.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.2 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-[11px] text-muted-foreground ps-3.5 flex items-center gap-1 flex-wrap\">\n <span\n >{{ messages().openAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedOpen || pt.open\n }}</span></span\n >\n <span\n >{{ messages().highAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedHigh || pt.high\n }}</span></span\n >\n <span\n >{{ messages().lowAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedLow || pt.low\n }}</span></span\n >\n <span\n >{{ messages().closeAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedClose || pt.close\n }}</span></span\n >\n @if (pt.formattedChange) {\n <span class=\"font-medium text-foreground\">({{ pt.formattedChange }})</span>\n }\n </div>\n </div>\n } @else if (pt.valueKind === \"range\") {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\"\n >{{ messages().valueRange(pt.formattedFrom ?? \"\", pt.formattedTo ?? \"\") }}</span\n >\n </div>\n </div>\n } @else {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\">{{ pt.formattedY }}</span>\n @if (pt.formattedStackPercentage) {\n <span class=\"text-xs text-muted-foreground\"\n >({{ pt.formattedStackPercentage }})</span\n >\n }\n @if (pt.formattedSize) {\n <span class=\"text-xs text-muted-foreground\">({{ pt.formattedSize }})</span>\n }\n </div>\n </div>\n }\n }\n </div>\n } @else if (\n context.point.seriesType === \"candlestick\" ||\n context.point.seriesType === \"ohlc\" ||\n context.point.valueKind === \"ohlc\"\n ) {\n <div class=\"flex items-center justify-between gap-2 mb-1\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n @if (context.point.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.5 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-xs text-muted-foreground mb-1.5\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span>\n </div>\n <div class=\"grid grid-cols-2 gap-x-3 gap-y-0.5 text-xs\">\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().open }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedOpen || context.point.open\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().high }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedHigh || context.point.high\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().low }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedLow || context.point.low\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().close }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedClose || context.point.close\n }}</span>\n </div>\n </div>\n @if (context.point.formattedChange || context.point.change !== undefined) {\n <div class=\"mt-1 pt-1 border-t border-border/50 flex items-center justify-between text-xs\">\n <span class=\"text-muted-foreground\">{{ messages().change }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">\n {{ context.point.formattedChange || context.point.change }}\n @if (context.point.formattedChangePercentage) {\n <span>({{ context.point.formattedChangePercentage }})</span>\n }\n </span>\n </div>\n }\n } @else {\n <div class=\"flex items-center gap-1.5 mb-0.5\">\n <span class=\"inline-block h-2 w-2 rounded-full\" [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"text-muted-foreground\">\n {{ context.point.formattedX }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedStackPercentage) {\n <span>·</span>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedStackPercentage }}</span>\n }\n @if (context.point.formattedSize) {\n <span class=\"ms-1.5\"\n >({{ messages().size }}{{ messages().labelValueSeparator }} <span class=\"font-medium text-foreground\">{{ context.point.formattedSize }}</span>)</span>\n }\n </div>\n }\n </div>\n}\n"
52410
+ template: "@if (enabled() && tooltipContext(); as context) {\n <div\n #tooltipContainer\n [class]=\"tooltipClasses()\"\n [style.left.px]=\"placement().left\"\n [style.top.px]=\"placement().top\"\n [attr.data-placement]=\"placement().placement\">\n @if (customTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"context\" />\n } @else if (context.point.seriesType === \"heatmap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span>,\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedYCategory || context.point.categoryY\n }}</span>\n </div>\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n </div>\n } @else if (context.point.seriesType === \"pie\" || context.point.seriesType === \"donut\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex items-center gap-2 text-xs text-muted-foreground\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedPercentage) {\n <span>·</span>\n <span>{{ context.point.formattedPercentage }}</span>\n }\n </div>\n } @else if (context.point.seriesType === \"gauge\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n @if (context.point.formattedRadialMin && context.point.formattedRadialMax) {\n <div>\n {{ messages().range }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n messages().valueRange(context.point.formattedRadialMin, context.point.formattedRadialMax)\n }}</span>\n </div>\n }\n @if (context.point.isClamped) {\n <div\n class=\"w-fit rounded bg-warning-subtle px-1 text-[11px] font-medium text-warning-subtle-foreground\">\n {{ messages().visualIndicatorClamped }}\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"treemap\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.hierarchy?.formattedLabel || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.hierarchy?.formattedPath && context.point.hierarchy!.formattedPath.length > 1) {\n <div class=\"text-[11px] truncate max-w-[220px]\">\n {{ context.point.hierarchy!.formattedPath.join(messages().pathSeparator) }}\n </div>\n }\n <div class=\"flex items-center gap-2\">\n <span\n >{{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span></span\n >\n @if (\n context.point.hierarchy?.percentageOfRoot !== undefined &&\n context.point.hierarchy!.percentageOfRoot > 0\n ) {\n <span>·</span>\n <span>{{ formatPercent(context.point.hierarchy!.percentageOfRoot) }}</span>\n }\n </div>\n </div>\n } @else if (context.point.seriesType === \"funnel\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel?.formattedValue || context.point.formattedY\n }}</span>\n </div>\n @if (context.point.funnel?.formattedConversionRate) {\n <div>\n {{ messages().conversion }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.formattedOverallConversionRate) {\n <div>\n {{ messages().overall }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.funnel!.formattedOverallConversionRate\n }}</span>\n </div>\n }\n @if (context.point.funnel?.dropOff !== undefined && context.point.funnel!.dropOff > 0) {\n <div>\n {{ messages().dropOff }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n formatValue(context.point.funnel!.dropOff)\n }}</span>\n </div>\n }\n </div>\n } @else if (context.point.seriesType === \"waterfall\") {\n <div class=\"flex items-center gap-1.5 mb-1\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{\n context.point.formattedCategory || context.point.formattedX || context.point.seriesName\n }}</span>\n </div>\n <div class=\"flex flex-col gap-0.5 text-xs text-muted-foreground\">\n @if (context.point.waterfall?.kind === \"change\") {\n <div>\n {{ messages().change }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall?.formattedDelta || context.point.formattedY\n }}</span>\n </div>\n @if (\n context.point.waterfall?.formattedCumulativeBefore &&\n context.point.waterfall?.formattedCumulativeAfter\n ) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\"\n >{{ context.point.waterfall!.formattedCumulativeBefore }} {{ changeArrow() }}\n {{ context.point.waterfall!.formattedCumulativeAfter }}</span\n >\n </div>\n } @else if (context.point.waterfall?.formattedCumulativeAfter) {\n <div>\n {{ messages().runningTotal }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n context.point.waterfall!.formattedCumulativeAfter\n }}</span>\n </div>\n }\n } @else {\n <div>\n {{ messages().value }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n </div>\n }\n </div>\n } @else if (context.shared) {\n <div class=\"mb-1 font-semibold text-foreground\">{{ context.point.formattedX }}</div>\n <div class=\"flex flex-col gap-1.5\">\n @for (pt of context.points; track pt.markId) {\n @if (pt.valueKind === \"ohlc\" || pt.seriesType === \"candlestick\" || pt.seriesType === \"ohlc\") {\n <div class=\"flex flex-col gap-0.5\">\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-xs text-muted-foreground font-medium\">{{ pt.seriesName }}</span>\n </div>\n @if (pt.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.2 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-[11px] text-muted-foreground ps-3.5 flex items-center gap-1 flex-wrap\">\n <span\n >{{ messages().openAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedOpen || pt.open\n }}</span></span\n >\n <span\n >{{ messages().highAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedHigh || pt.high\n }}</span></span\n >\n <span\n >{{ messages().lowAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedLow || pt.low\n }}</span></span\n >\n <span\n >{{ messages().closeAbbreviation }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{\n pt.formattedClose || pt.close\n }}</span></span\n >\n @if (pt.formattedChange) {\n <span class=\"font-medium text-foreground\">({{ pt.formattedChange }})</span>\n }\n </div>\n </div>\n } @else if (pt.valueKind === \"range\") {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\">{{\n messages().valueRange(pt.formattedFrom ?? \"\", pt.formattedTo ?? \"\")\n }}</span>\n </div>\n </div>\n } @else {\n <div class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"pt.color\"></span>\n <span class=\"text-muted-foreground\">{{ pt.seriesName }}</span>\n </div>\n <div class=\"flex items-center gap-1\">\n <span class=\"font-medium text-foreground\">{{ pt.formattedY }}</span>\n @if (pt.formattedStackPercentage) {\n <span class=\"text-xs text-muted-foreground\"\n >({{ pt.formattedStackPercentage }})</span\n >\n }\n @if (pt.formattedSize) {\n <span class=\"text-xs text-muted-foreground\">({{ pt.formattedSize }})</span>\n }\n </div>\n </div>\n }\n }\n </div>\n } @else if (\n context.point.seriesType === \"candlestick\" ||\n context.point.seriesType === \"ohlc\" ||\n context.point.valueKind === \"ohlc\"\n ) {\n <div class=\"flex items-center justify-between gap-2 mb-1\">\n <div class=\"flex items-center gap-1.5\">\n <span\n class=\"inline-block h-2 w-2 rounded-full flex-shrink-0\"\n [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n @if (context.point.financialDirection; as dir) {\n <span\n class=\"text-[10px] font-medium px-1 py-0.5 rounded text-foreground\"\n [style.background-color]=\"\n dir === 'rising'\n ? 'rgba(34, 197, 94, 0.15)'\n : dir === 'falling'\n ? 'rgba(239, 68, 68, 0.15)'\n : 'rgba(107, 114, 128, 0.15)'\n \">\n {{ financialDirectionLabel(dir) }}\n </span>\n }\n </div>\n <div class=\"text-xs text-muted-foreground mb-1.5\">\n <span class=\"font-medium text-foreground\">{{ context.point.formattedX }}</span>\n </div>\n <div class=\"grid grid-cols-2 gap-x-3 gap-y-0.5 text-xs\">\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().open }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedOpen || context.point.open\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().high }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedHigh || context.point.high\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\">{{ messages().low }}{{ messages().labelValueSeparator }}</span>\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedLow || context.point.low\n }}</span>\n </div>\n <div class=\"flex items-center justify-between gap-1.5\">\n <span class=\"text-muted-foreground\"\n >{{ messages().close }}{{ messages().labelValueSeparator }}</span\n >\n <span class=\"font-medium text-foreground\">{{\n context.point.formattedClose || context.point.close\n }}</span>\n </div>\n </div>\n @if (context.point.formattedChange || context.point.change !== undefined) {\n <div class=\"mt-1 pt-1 border-t border-border/50 flex items-center justify-between text-xs\">\n <span class=\"text-muted-foreground\"\n >{{ messages().change }}{{ messages().labelValueSeparator }}</span\n >\n <span class=\"font-medium text-foreground\">\n {{ context.point.formattedChange || context.point.change }}\n @if (context.point.formattedChangePercentage) {\n <span>({{ context.point.formattedChangePercentage }})</span>\n }\n </span>\n </div>\n }\n } @else {\n <div class=\"flex items-center gap-1.5 mb-0.5\">\n <span class=\"inline-block h-2 w-2 rounded-full\" [style.background-color]=\"context.point.color\"></span>\n <span class=\"font-semibold text-foreground\">{{ context.point.seriesName }}</span>\n </div>\n <div class=\"text-muted-foreground\">\n {{ context.point.formattedX }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedY }}</span>\n @if (context.point.formattedStackPercentage) {\n <span>·</span>\n <span class=\"font-medium text-foreground\">{{ context.point.formattedStackPercentage }}</span>\n }\n @if (context.point.formattedSize) {\n <span class=\"ms-1.5\"\n >({{ messages().size }}{{ messages().labelValueSeparator }}\n <span class=\"font-medium text-foreground\">{{ context.point.formattedSize }}</span>)</span\n >\n }\n </div>\n }\n </div>\n}\n"
52411
52411
  }]
52412
52412
  }],
52413
52413
  ctorParameters: () => [],
@@ -1,4 +1,3 @@
1
- import { LiveAnnouncer } from "@angular/cdk/a11y";
2
1
  import { Clipboard } from "@angular/cdk/clipboard";
3
2
  import { NgTemplateOutlet } from "@angular/common";
4
3
  import * as i0 from "@angular/core";
@@ -7,6 +6,7 @@ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
7
6
  import { LucideChevronsUpDown, LucideCopy, LucideDropletOff } from "@lucide/angular";
8
7
  import { ButtonDirective } from "@nanahoshi/mona-ui/button";
9
8
  import { FIELD_ASSOCIATION_BOUNDARY, formatAlpha, hex2rgba, hsva2rgba, injectEffectiveDisabled, injectLabelAssociation, isValidHex, parseColor, rgba2hex, rgba2hsla, rgba2hsva } from "@nanahoshi/mona-ui/internal";
9
+ import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
10
10
  import { DropdownButtonComponent, DropdownButtonItemComponent, DropdownButtonTextTemplateDirective } from "@nanahoshi/mona-ui/dropdown-button";
11
11
  import { NumericTextBoxComponent, NumericTextBoxPrefixTemplateDirective } from "@nanahoshi/mona-ui/numeric-text-box";
12
12
  import { SliderComponent } from "@nanahoshi/mona-ui/slider";
@@ -126,7 +126,7 @@ var ColorGradientComponent = class ColorGradientComponent {
126
126
  #internalValueUpdatePending;
127
127
  #lastInternalValue;
128
128
  constructor() {
129
- this.#announcer = inject(LiveAnnouncer);
129
+ this.#announcer = injectLiveAnnouncer();
130
130
  this.#clipboard = inject(Clipboard);
131
131
  this.#destroyRef = inject(DestroyRef);
132
132
  this.#document = inject(DOCUMENT);
@@ -1,11 +1,12 @@
1
- import * as i1 from "@angular/cdk/a11y";
2
- import { A11yModule, LiveAnnouncer } from "@angular/cdk/a11y";
3
1
  import * as i0 from "@angular/core";
4
2
  import { Component, DestroyRef, Directive, ElementRef, Injector, Renderer2, TemplateRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
5
3
  import { ImmutableSet } from "@mirei/ts-collections";
6
4
  import { MonaI18nService, formatNumber } from "@nanahoshi/mona-ui/i18n";
7
5
  import { createElementControlId, inertOutside, positionGlobalOverlay } from "@nanahoshi/mona-ui/internal";
6
+ import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
8
7
  import { cva } from "class-variance-authority";
8
+ import * as i1 from "@angular/cdk/a11y";
9
+ import { A11yModule } from "@angular/cdk/a11y";
9
10
  import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
10
11
  import { PopupService } from "@nanahoshi/mona-ui/popup";
11
12
  import { merge, take } from "rxjs";
@@ -134,7 +135,7 @@ var CommandComponent = class CommandComponent {
134
135
  this.#i18n = inject(MonaI18nService);
135
136
  this.#inputElement = signal(null, ...ngDevMode ? [{ debugName: "#inputElement" }] : /* istanbul ignore next */ []);
136
137
  this.#items = signal(ImmutableSet.create(), ...ngDevMode ? [{ debugName: "#items" }] : /* istanbul ignore next */ []);
137
- this.#liveAnnouncer = inject(LiveAnnouncer);
138
+ this.#liveAnnouncer = injectLiveAnnouncer();
138
139
  this.#visibleItems = computed(() => this.#items().where((item) => item.visible()).toArray(), ...ngDevMode ? [{ debugName: "#visibleItems" }] : /* istanbul ignore next */ []);
139
140
  this.baseClass = computed(() => commandBaseThemeVariants({ rounded: this.rounded() }), ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
140
141
  this.activeItem = this.#activeItem.asReadonly();
@@ -893,7 +893,7 @@ var DateRangePickerComponent = class DateRangePickerComponent {
893
893
  }],
894
894
  hostDirectives: [{ directive: i1.DropdownPopupHandlerDirective }],
895
895
  ngImport: i0,
896
- template: "<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of startSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('start')\"\n (inputFocus)=\"onInputFocus('start')\"\n (valueChange)=\"typedInput.edit('start', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().start\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"startInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"startInvalid()\"\n [placeholder]=\"startPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"startInvalid() || touched()\"\n [value]=\"typedInput.text.start()\" />\n</span>\n<span aria-hidden=\"true\" [class]=\"separatorClass\">–</span>\n<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of endSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('end')\"\n (inputFocus)=\"onInputFocus('end')\"\n (valueChange)=\"typedInput.edit('end', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().end\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"endInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"endInvalid()\"\n [placeholder]=\"endPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"endInvalid() || touched()\"\n [value]=\"typedInput.text.end()\" />\n</span>\n<button\n monaButton\n look=\"ghost\"\n [class]=\"buttonClass()\"\n [attr.aria-controls]=\"popupId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"messages().openCalendar\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [iconOnly]=\"true\"\n [rounded]=\"'none'\"\n [size]=\"size()\"\n [tabindex]=\"-1\"\n (click)=\"onCalendarButtonClick()\">\n <svg lucideCalendar [size]=\"16\" aria-hidden=\"true\"></svg>\n</button>\n\n<ng-template #popupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().dateRangePicker\"\n cdkTrapFocus>\n @if (presetItems().length > 0) {\n <div role=\"group\" [attr.aria-label]=\"messages().presets\" [class]=\"presetListClass\" (keydown)=\"onPresetKeydown($event)\">\n @for (item of presetItems(); track $index) {\n <button\n monaButton\n look=\"ghost\"\n type=\"button\"\n [class]=\"presetClass()\"\n [disabled]=\"item.disabled\"\n [rounded]=\"rounded()\"\n [selected]=\"item.selected\"\n size=\"small\"\n [toggleable]=\"true\"\n (click)=\"onPresetClick(item)\">\n {{ item.label }}\n </button>\n }\n </div>\n }\n <mona-calendar\n focusOnMount\n selection=\"range\"\n [disabledDates]=\"disabledDates()\"\n [firstDay]=\"firstDay()\"\n [maxDate]=\"maxDate()\"\n [minDate]=\"minDate()\"\n [months]=\"months()\"\n [readonly]=\"readonly()\"\n [rounded]=\"rounded()\"\n [value]=\"calendarValue()\"\n [weekNumber]=\"weekNumber()\"\n (valueChange)=\"onCalendarValueChange($event)\">\n @if (decadeCellTemplate()) {\n <ng-template monaCalendarDecadeCellTemplate let-year>\n <ng-container\n [ngTemplateOutlet]=\"decadeCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year }\"></ng-container>\n </ng-template>\n }\n @if (monthCellTemplate()) {\n <ng-template monaCalendarMonthCellTemplate let-day let-date=\"date\">\n <ng-container\n [ngTemplateOutlet]=\"monthCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: day, date }\"></ng-container>\n </ng-template>\n }\n @if (yearCellTemplate()) {\n <ng-template monaCalendarYearCellTemplate let-year let-text=\"text\">\n <ng-container\n [ngTemplateOutlet]=\"yearCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year, text }\"></ng-container>\n </ng-template>\n }\n </mona-calendar>\n </div>\n</ng-template>\n",
896
+ template: "<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of startSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('start')\"\n (inputFocus)=\"onInputFocus('start')\"\n (valueChange)=\"typedInput.edit('start', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().start\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"startInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"startInvalid()\"\n [placeholder]=\"startPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"startInvalid() || touched()\"\n [value]=\"typedInput.text.start()\" />\n</span>\n<span aria-hidden=\"true\" [class]=\"separatorClass\">–</span>\n<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of endSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('end')\"\n (inputFocus)=\"onInputFocus('end')\"\n (valueChange)=\"typedInput.edit('end', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().end\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"endInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"endInvalid()\"\n [placeholder]=\"endPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"endInvalid() || touched()\"\n [value]=\"typedInput.text.end()\" />\n</span>\n<button\n monaButton\n look=\"ghost\"\n [class]=\"buttonClass()\"\n [attr.aria-controls]=\"popupId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"messages().openCalendar\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [iconOnly]=\"true\"\n [rounded]=\"'none'\"\n [size]=\"size()\"\n [tabindex]=\"-1\"\n (click)=\"onCalendarButtonClick()\">\n <svg lucideCalendar [size]=\"16\" aria-hidden=\"true\"></svg>\n</button>\n\n<ng-template #popupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().dateRangePicker\"\n cdkTrapFocus>\n @if (presetItems().length > 0) {\n <div\n role=\"group\"\n [attr.aria-label]=\"messages().presets\"\n [class]=\"presetListClass\"\n (keydown)=\"onPresetKeydown($event)\">\n @for (item of presetItems(); track $index) {\n <button\n monaButton\n look=\"ghost\"\n type=\"button\"\n [class]=\"presetClass()\"\n [disabled]=\"item.disabled\"\n [rounded]=\"rounded()\"\n [selected]=\"item.selected\"\n size=\"small\"\n [toggleable]=\"true\"\n (click)=\"onPresetClick(item)\">\n {{ item.label }}\n </button>\n }\n </div>\n }\n <mona-calendar\n focusOnMount\n selection=\"range\"\n [disabledDates]=\"disabledDates()\"\n [firstDay]=\"firstDay()\"\n [maxDate]=\"maxDate()\"\n [minDate]=\"minDate()\"\n [months]=\"months()\"\n [readonly]=\"readonly()\"\n [rounded]=\"rounded()\"\n [value]=\"calendarValue()\"\n [weekNumber]=\"weekNumber()\"\n (valueChange)=\"onCalendarValueChange($event)\">\n @if (decadeCellTemplate()) {\n <ng-template monaCalendarDecadeCellTemplate let-year>\n <ng-container\n [ngTemplateOutlet]=\"decadeCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year }\"></ng-container>\n </ng-template>\n }\n @if (monthCellTemplate()) {\n <ng-template monaCalendarMonthCellTemplate let-day let-date=\"date\">\n <ng-container\n [ngTemplateOutlet]=\"monthCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: day, date }\"></ng-container>\n </ng-template>\n }\n @if (yearCellTemplate()) {\n <ng-template monaCalendarYearCellTemplate let-year let-text=\"text\">\n <ng-container\n [ngTemplateOutlet]=\"yearCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year, text }\"></ng-container>\n </ng-template>\n }\n </mona-calendar>\n </div>\n</ng-template>\n",
897
897
  dependencies: [
898
898
  {
899
899
  kind: "directive",
@@ -1064,7 +1064,7 @@ i0.ɵɵngDeclareClassMetadata({
1064
1064
  "(focusout)": "onFocusOut($event)",
1065
1065
  "(keydown)": "onKeydown($event)"
1066
1066
  },
1067
- template: "<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of startSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('start')\"\n (inputFocus)=\"onInputFocus('start')\"\n (valueChange)=\"typedInput.edit('start', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().start\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"startInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"startInvalid()\"\n [placeholder]=\"startPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"startInvalid() || touched()\"\n [value]=\"typedInput.text.start()\" />\n</span>\n<span aria-hidden=\"true\" [class]=\"separatorClass\">–</span>\n<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of endSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('end')\"\n (inputFocus)=\"onInputFocus('end')\"\n (valueChange)=\"typedInput.edit('end', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().end\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"endInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"endInvalid()\"\n [placeholder]=\"endPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"endInvalid() || touched()\"\n [value]=\"typedInput.text.end()\" />\n</span>\n<button\n monaButton\n look=\"ghost\"\n [class]=\"buttonClass()\"\n [attr.aria-controls]=\"popupId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"messages().openCalendar\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [iconOnly]=\"true\"\n [rounded]=\"'none'\"\n [size]=\"size()\"\n [tabindex]=\"-1\"\n (click)=\"onCalendarButtonClick()\">\n <svg lucideCalendar [size]=\"16\" aria-hidden=\"true\"></svg>\n</button>\n\n<ng-template #popupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().dateRangePicker\"\n cdkTrapFocus>\n @if (presetItems().length > 0) {\n <div role=\"group\" [attr.aria-label]=\"messages().presets\" [class]=\"presetListClass\" (keydown)=\"onPresetKeydown($event)\">\n @for (item of presetItems(); track $index) {\n <button\n monaButton\n look=\"ghost\"\n type=\"button\"\n [class]=\"presetClass()\"\n [disabled]=\"item.disabled\"\n [rounded]=\"rounded()\"\n [selected]=\"item.selected\"\n size=\"small\"\n [toggleable]=\"true\"\n (click)=\"onPresetClick(item)\">\n {{ item.label }}\n </button>\n }\n </div>\n }\n <mona-calendar\n focusOnMount\n selection=\"range\"\n [disabledDates]=\"disabledDates()\"\n [firstDay]=\"firstDay()\"\n [maxDate]=\"maxDate()\"\n [minDate]=\"minDate()\"\n [months]=\"months()\"\n [readonly]=\"readonly()\"\n [rounded]=\"rounded()\"\n [value]=\"calendarValue()\"\n [weekNumber]=\"weekNumber()\"\n (valueChange)=\"onCalendarValueChange($event)\">\n @if (decadeCellTemplate()) {\n <ng-template monaCalendarDecadeCellTemplate let-year>\n <ng-container\n [ngTemplateOutlet]=\"decadeCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year }\"></ng-container>\n </ng-template>\n }\n @if (monthCellTemplate()) {\n <ng-template monaCalendarMonthCellTemplate let-day let-date=\"date\">\n <ng-container\n [ngTemplateOutlet]=\"monthCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: day, date }\"></ng-container>\n </ng-template>\n }\n @if (yearCellTemplate()) {\n <ng-template monaCalendarYearCellTemplate let-year let-text=\"text\">\n <ng-container\n [ngTemplateOutlet]=\"yearCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year, text }\"></ng-container>\n </ng-template>\n }\n </mona-calendar>\n </div>\n</ng-template>\n"
1067
+ template: "<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of startSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('start')\"\n (inputFocus)=\"onInputFocus('start')\"\n (valueChange)=\"typedInput.edit('start', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().start\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"startInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"startInvalid()\"\n [placeholder]=\"startPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"startInvalid() || touched()\"\n [value]=\"typedInput.text.start()\" />\n</span>\n<span aria-hidden=\"true\" [class]=\"separatorClass\">–</span>\n<span [class]=\"fieldClass\">\n <span aria-hidden=\"true\" [class]=\"sizerClass()\">\n @for (text of endSizerTexts(); track $index) {\n <span class=\"block\">{{ text }}</span>\n }\n </span>\n <mona-text-box\n (inputBlur)=\"onInputBlur('end')\"\n (inputFocus)=\"onInputFocus('end')\"\n (valueChange)=\"typedInput.edit('end', $event)\"\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"messages().end\"\n [clearButton]=\"showClearButton()\"\n [disabled]=\"effectiveDisabled()\"\n [inputAttributes]=\"inputAttributes()\"\n [inputClass]=\"inputClass\"\n [inputId]=\"endInputId\"\n [inputStyle]=\"inputStyle\"\n [invalid]=\"endInvalid()\"\n [placeholder]=\"endPlaceholder()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"endInvalid() || touched()\"\n [value]=\"typedInput.text.end()\" />\n</span>\n<button\n monaButton\n look=\"ghost\"\n [class]=\"buttonClass()\"\n [attr.aria-controls]=\"popupId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"messages().openCalendar\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [iconOnly]=\"true\"\n [rounded]=\"'none'\"\n [size]=\"size()\"\n [tabindex]=\"-1\"\n (click)=\"onCalendarButtonClick()\">\n <svg lucideCalendar [size]=\"16\" aria-hidden=\"true\"></svg>\n</button>\n\n<ng-template #popupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().dateRangePicker\"\n cdkTrapFocus>\n @if (presetItems().length > 0) {\n <div\n role=\"group\"\n [attr.aria-label]=\"messages().presets\"\n [class]=\"presetListClass\"\n (keydown)=\"onPresetKeydown($event)\">\n @for (item of presetItems(); track $index) {\n <button\n monaButton\n look=\"ghost\"\n type=\"button\"\n [class]=\"presetClass()\"\n [disabled]=\"item.disabled\"\n [rounded]=\"rounded()\"\n [selected]=\"item.selected\"\n size=\"small\"\n [toggleable]=\"true\"\n (click)=\"onPresetClick(item)\">\n {{ item.label }}\n </button>\n }\n </div>\n }\n <mona-calendar\n focusOnMount\n selection=\"range\"\n [disabledDates]=\"disabledDates()\"\n [firstDay]=\"firstDay()\"\n [maxDate]=\"maxDate()\"\n [minDate]=\"minDate()\"\n [months]=\"months()\"\n [readonly]=\"readonly()\"\n [rounded]=\"rounded()\"\n [value]=\"calendarValue()\"\n [weekNumber]=\"weekNumber()\"\n (valueChange)=\"onCalendarValueChange($event)\">\n @if (decadeCellTemplate()) {\n <ng-template monaCalendarDecadeCellTemplate let-year>\n <ng-container\n [ngTemplateOutlet]=\"decadeCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year }\"></ng-container>\n </ng-template>\n }\n @if (monthCellTemplate()) {\n <ng-template monaCalendarMonthCellTemplate let-day let-date=\"date\">\n <ng-container\n [ngTemplateOutlet]=\"monthCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: day, date }\"></ng-container>\n </ng-template>\n }\n @if (yearCellTemplate()) {\n <ng-template monaCalendarYearCellTemplate let-year let-text=\"text\">\n <ng-container\n [ngTemplateOutlet]=\"yearCellTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: year, text }\"></ng-container>\n </ng-template>\n }\n </mona-calendar>\n </div>\n</ng-template>\n"
1068
1068
  }]
1069
1069
  }],
1070
1070
  ctorParameters: () => [],
@@ -161,7 +161,7 @@ var DateTimePickerComponent = class DateTimePickerComponent {
161
161
  this.labelledBy = this.#label.labelledBy;
162
162
  this.messages = this.#i18n.componentMessages("dateTimePicker", DATETIME_PICKER_DEFAULT_MESSAGES);
163
163
  this.monthCellTemplate = contentChild(CalendarMonthCellTemplateDirective, ...ngDevMode ? [{ debugName: "monthCellTemplate" }] : /* istanbul ignore next */ []);
164
- this.navigatedDate = linkedSignal(() => this.value() ?? /* @__PURE__ */ new Date(), ...ngDevMode ? [{ debugName: "navigatedDate" }] : /* istanbul ignore next */ []);
164
+ this.navigatedDate = linkedSignal(() => this.value() ?? this.startDate(), ...ngDevMode ? [{ debugName: "navigatedDate" }] : /* istanbul ignore next */ []);
165
165
  this.panelId = createElementControlId();
166
166
  this.pickerPopupClass = computed(() => {
167
167
  const rounded = this.rounded();
@@ -318,7 +318,7 @@ var DateTimePickerComponent = class DateTimePickerComponent {
318
318
  this.activeView.set("time");
319
319
  }
320
320
  onCancelClick() {
321
- this.navigatedDate.set(this.value() ?? /* @__PURE__ */ new Date());
321
+ this.navigatedDate.set(this.value() ?? this.startDate());
322
322
  this.closePopup();
323
323
  }
324
324
  onDateInputButtonClick() {
@@ -412,7 +412,7 @@ var DateTimePickerComponent = class DateTimePickerComponent {
412
412
  else if (!this.#destroyRef.destroyed) this.touch.emit();
413
413
  this.activeView.set("date");
414
414
  this.focusViewOnMount.set(true);
415
- this.navigatedDate.set(this.value() ?? /* @__PURE__ */ new Date());
415
+ this.navigatedDate.set(this.value() ?? this.startDate());
416
416
  });
417
417
  }
418
418
  setPopupKeyboardSubscription() {
@@ -439,6 +439,9 @@ var DateTimePickerComponent = class DateTimePickerComponent {
439
439
  }
440
440
  });
441
441
  }
442
+ startDate() {
443
+ return this.updateDateIfNotInRange(/* @__PURE__ */ new Date());
444
+ }
442
445
  updateDateIfNotInRange(date) {
443
446
  const maxDate = this.max();
444
447
  const minDate = this.min();
@@ -7,8 +7,8 @@ import { PopupCloseEvent, PopupCloseSource, PopupService, dropdownPopupAnimation
7
7
  import { Subject, filter, fromEvent, switchMap, take, takeUntil } from "rxjs";
8
8
  import { ConnectionPositionPair } from "@angular/cdk/overlay";
9
9
  import { focusCanReturn, themeOverlaySurfaceClasses } from "@nanahoshi/mona-ui/internal";
10
- import { LiveAnnouncer } from "@angular/cdk/a11y";
11
10
  import { MonaI18nService, formatNumber } from "@nanahoshi/mona-ui/i18n";
11
+ import { injectLiveAnnouncer } from "@nanahoshi/mona-ui/internal/live-announcer";
12
12
  import { cva } from "class-variance-authority";
13
13
  const DROPDOWN_DATA_INPUT_TOKEN = new InjectionToken("DROPDOWN_DATA_INPUT");
14
14
  const DropdownDataInputToken = DROPDOWN_DATA_INPUT_TOKEN;
@@ -666,12 +666,16 @@ var DropdownPopupHandlerDirective = class DropdownPopupHandlerDirective {
666
666
  #host = inject(DROPDOWN_POPUP_INPUT_TOKEN);
667
667
  #hostElementRef = inject(ElementRef);
668
668
  #popupService = inject(PopupService);
669
+ #hostDestroyed = false;
669
670
  constructor() {
670
671
  afterNextRender({ read: () => {
671
672
  this.#dropdownService.triggerPopupOpen$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((s) => this.openPopup(s));
672
673
  this.#dropdownService.triggerPopupToggle$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((s) => this.togglePopup(s));
673
674
  } });
674
- this.#destroyRef.onDestroy(() => this.closePopup());
675
+ this.#destroyRef.onDestroy(() => {
676
+ this.#hostDestroyed = true;
677
+ this.closePopup();
678
+ });
675
679
  }
676
680
  closePopup() {
677
681
  this.#dropdownService.popupRef()?.close();
@@ -738,13 +742,14 @@ var DropdownPopupHandlerDirective = class DropdownPopupHandlerDirective {
738
742
  this.#dropdownService.popupRef.set(popupRef);
739
743
  this.setPopupCloseSubscriptions(popupRef);
740
744
  window.setTimeout(() => {
745
+ if (this.#hostDestroyed) return;
741
746
  this.#dropdownService.popupOpenComplete$.next();
742
747
  this.#host.opened.emit();
743
748
  });
744
749
  }
745
750
  setPopupCloseSubscriptions(popupRef) {
746
751
  popupRef.beforeClose.pipe(takeUntil(popupRef.closed)).subscribe((event) => {
747
- this.#host.close.emit(event);
752
+ if (!this.#hostDestroyed) this.#host.close.emit(event);
748
753
  });
749
754
  popupRef.closeStart.pipe(takeUntil(popupRef.closed)).subscribe((event) => {
750
755
  this.#dropdownService.popupCloseStart$.next(event);
@@ -753,7 +758,7 @@ var DropdownPopupHandlerDirective = class DropdownPopupHandlerDirective {
753
758
  this.#dropdownService.focusCanReturn.set(focusCanReturn(this.#document, this.#hostElementRef.nativeElement, popupRef.overlayRef.overlayElement));
754
759
  this.#dropdownService.popupRef.set(null);
755
760
  this.#dropdownService.popupCloseComplete$.next(event);
756
- this.#host.closed.emit();
761
+ if (!this.#hostDestroyed) this.#host.closed.emit();
757
762
  });
758
763
  }
759
764
  togglePopup(settings) {
@@ -924,7 +929,7 @@ var DropdownLiveRegionDirective = class DropdownLiveRegionDirective {
924
929
  #dropdownService = inject(DropdownService);
925
930
  #i18n = inject(MonaI18nService);
926
931
  #listService = inject(ListService);
927
- #liveAnnouncer = inject(LiveAnnouncer);
932
+ #liveAnnouncer = injectLiveAnnouncer();
928
933
  #messages = this.#i18n.componentMessages("dropdowns", DROPDOWNS_DEFAULT_MESSAGES);
929
934
  constructor() {
930
935
  let lastState = null;