@masmarino/gabarit 4.1.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/fesm2022/masmarino-gabarit-accordion.mjs +2 -2
  2. package/fesm2022/masmarino-gabarit-accordion.mjs.map +1 -1
  3. package/fesm2022/masmarino-gabarit-app-shell.mjs +2 -2
  4. package/fesm2022/masmarino-gabarit-app-shell.mjs.map +1 -1
  5. package/fesm2022/masmarino-gabarit-autocomplete.mjs +2 -2
  6. package/fesm2022/masmarino-gabarit-autocomplete.mjs.map +1 -1
  7. package/fesm2022/masmarino-gabarit-avatar-group.mjs +2 -2
  8. package/fesm2022/masmarino-gabarit-avatar-group.mjs.map +1 -1
  9. package/fesm2022/masmarino-gabarit-badge.mjs +2 -2
  10. package/fesm2022/masmarino-gabarit-badge.mjs.map +1 -1
  11. package/fesm2022/masmarino-gabarit-button.mjs +2 -2
  12. package/fesm2022/masmarino-gabarit-button.mjs.map +1 -1
  13. package/fesm2022/masmarino-gabarit-card.mjs +2 -2
  14. package/fesm2022/masmarino-gabarit-card.mjs.map +1 -1
  15. package/fesm2022/masmarino-gabarit-chart.mjs +6 -6
  16. package/fesm2022/masmarino-gabarit-chart.mjs.map +1 -1
  17. package/fesm2022/masmarino-gabarit-checkbox.mjs +2 -2
  18. package/fesm2022/masmarino-gabarit-checkbox.mjs.map +1 -1
  19. package/fesm2022/masmarino-gabarit-command-palette.mjs +4 -4
  20. package/fesm2022/masmarino-gabarit-command-palette.mjs.map +1 -1
  21. package/fesm2022/masmarino-gabarit-date-picker.mjs +4 -4
  22. package/fesm2022/masmarino-gabarit-date-picker.mjs.map +1 -1
  23. package/fesm2022/masmarino-gabarit-disclosure.mjs +2 -2
  24. package/fesm2022/masmarino-gabarit-disclosure.mjs.map +1 -1
  25. package/fesm2022/masmarino-gabarit-docs.mjs +4 -4
  26. package/fesm2022/masmarino-gabarit-docs.mjs.map +1 -1
  27. package/fesm2022/masmarino-gabarit-drawer.mjs +2 -2
  28. package/fesm2022/masmarino-gabarit-drawer.mjs.map +1 -1
  29. package/fesm2022/masmarino-gabarit-file-upload.mjs +2 -2
  30. package/fesm2022/masmarino-gabarit-file-upload.mjs.map +1 -1
  31. package/fesm2022/masmarino-gabarit-funnel-chart.mjs +2 -2
  32. package/fesm2022/masmarino-gabarit-funnel-chart.mjs.map +1 -1
  33. package/fesm2022/masmarino-gabarit-ground.mjs +349 -0
  34. package/fesm2022/masmarino-gabarit-ground.mjs.map +1 -0
  35. package/fesm2022/masmarino-gabarit-input.mjs +2 -2
  36. package/fesm2022/masmarino-gabarit-input.mjs.map +1 -1
  37. package/fesm2022/masmarino-gabarit-job-graph.mjs +2 -2
  38. package/fesm2022/masmarino-gabarit-job-graph.mjs.map +1 -1
  39. package/fesm2022/masmarino-gabarit-list-row.mjs +2 -2
  40. package/fesm2022/masmarino-gabarit-list-row.mjs.map +1 -1
  41. package/fesm2022/masmarino-gabarit-list-toolbar.mjs +2 -2
  42. package/fesm2022/masmarino-gabarit-list-toolbar.mjs.map +1 -1
  43. package/fesm2022/masmarino-gabarit-menu.mjs +2 -2
  44. package/fesm2022/masmarino-gabarit-menu.mjs.map +1 -1
  45. package/fesm2022/masmarino-gabarit-modal.mjs +2 -2
  46. package/fesm2022/masmarino-gabarit-modal.mjs.map +1 -1
  47. package/fesm2022/masmarino-gabarit-nav-tabs.mjs +2 -2
  48. package/fesm2022/masmarino-gabarit-nav-tabs.mjs.map +1 -1
  49. package/fesm2022/masmarino-gabarit-pagination.mjs +2 -2
  50. package/fesm2022/masmarino-gabarit-pagination.mjs.map +1 -1
  51. package/fesm2022/masmarino-gabarit-radio-group.mjs +2 -2
  52. package/fesm2022/masmarino-gabarit-radio-group.mjs.map +1 -1
  53. package/fesm2022/masmarino-gabarit-search-bar.mjs +2 -2
  54. package/fesm2022/masmarino-gabarit-search-bar.mjs.map +1 -1
  55. package/fesm2022/masmarino-gabarit-segmented-control.mjs +2 -2
  56. package/fesm2022/masmarino-gabarit-segmented-control.mjs.map +1 -1
  57. package/fesm2022/masmarino-gabarit-select.mjs +2 -2
  58. package/fesm2022/masmarino-gabarit-select.mjs.map +1 -1
  59. package/fesm2022/masmarino-gabarit-slider.mjs +2 -2
  60. package/fesm2022/masmarino-gabarit-slider.mjs.map +1 -1
  61. package/fesm2022/masmarino-gabarit-sparkline.mjs +2 -2
  62. package/fesm2022/masmarino-gabarit-sparkline.mjs.map +1 -1
  63. package/fesm2022/masmarino-gabarit-stat-tile.mjs +2 -2
  64. package/fesm2022/masmarino-gabarit-stat-tile.mjs.map +1 -1
  65. package/fesm2022/masmarino-gabarit-stepper.mjs +2 -2
  66. package/fesm2022/masmarino-gabarit-stepper.mjs.map +1 -1
  67. package/fesm2022/masmarino-gabarit-switch.mjs +2 -2
  68. package/fesm2022/masmarino-gabarit-switch.mjs.map +1 -1
  69. package/fesm2022/masmarino-gabarit-table.mjs +2 -2
  70. package/fesm2022/masmarino-gabarit-table.mjs.map +1 -1
  71. package/fesm2022/masmarino-gabarit-tabs.mjs +2 -2
  72. package/fesm2022/masmarino-gabarit-tabs.mjs.map +1 -1
  73. package/fesm2022/masmarino-gabarit-tag-input.mjs +2 -2
  74. package/fesm2022/masmarino-gabarit-tag-input.mjs.map +1 -1
  75. package/fesm2022/masmarino-gabarit-textarea.mjs +2 -2
  76. package/fesm2022/masmarino-gabarit-textarea.mjs.map +1 -1
  77. package/fesm2022/masmarino-gabarit-toaster.mjs +2 -2
  78. package/fesm2022/masmarino-gabarit-toaster.mjs.map +1 -1
  79. package/fesm2022/masmarino-gabarit-tree.mjs +2 -2
  80. package/fesm2022/masmarino-gabarit-tree.mjs.map +1 -1
  81. package/fesm2022/masmarino-gabarit.mjs +3 -2
  82. package/fesm2022/masmarino-gabarit.mjs.map +1 -1
  83. package/ground/package.json +4 -0
  84. package/package.json +5 -1
  85. package/src/lib/tokens/_a11y.scss +3 -2
  86. package/src/lib/tokens/_base.scss +1 -1
  87. package/src/lib/tokens/_glass.scss +37 -6
  88. package/src/lib/tokens/_grounds.scss +33 -0
  89. package/src/lib/tokens/_utilities.scss +1 -1
  90. package/types/masmarino-gabarit-ground.d.ts +233 -0
  91. package/types/masmarino-gabarit.d.ts +3 -2
@@ -584,7 +584,7 @@ var ChartEmpty = class ChartEmpty {
584
584
  outputs: { action: "action" },
585
585
  ngImport: i0,
586
586
  template: "<div class=\"gbt-chart-empty\" role=\"status\">\n <div class=\"gbt-chart-empty__icon\" aria-hidden=\"true\">\n <ng-content select=\"[gbtChartEmptyIcon]\" />\n </div>\n <p class=\"gbt-chart-empty__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"gbt-chart-empty__action\" (click)=\"action.emit()\">\n {{ actionLabel() }}\n </button>\n }\n</div>\n",
587
- styles: [".gbt-chart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:8rem;padding:1.5rem;color:var(--text-secondary);text-align:center}.gbt-chart-empty__icon{width:64px;height:64px;color:var(--text-discret)}.gbt-chart-empty__icon:empty{display:none}.gbt-chart-empty__icon svg{width:100%;height:100%}.gbt-chart-empty__message{margin:0;font-size:.875rem}.gbt-chart-empty__action{min-width:24px;min-height:24px;padding:.375rem .75rem;border:1px solid var(--border-color);border-radius:999px;background:transparent;color:var(--primary);font:inherit;cursor:pointer}.gbt-chart-empty__action:hover{background:var(--bg-hover)}.gbt-chart-empty__action:active{background:var(--bg-press)}.gbt-chart-empty__action:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}\n"],
587
+ styles: [".gbt-chart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:8rem;padding:1.5rem;color:var(--text-secondary);text-align:center}.gbt-chart-empty__icon{width:64px;height:64px;color:var(--text-discret)}.gbt-chart-empty__icon:empty{display:none}.gbt-chart-empty__icon svg{width:100%;height:100%}.gbt-chart-empty__message{margin:0;font-size:.875rem}.gbt-chart-empty__action{min-width:24px;min-height:24px;padding:.375rem .75rem;border:1px solid var(--border-color);border-radius:999px;background:transparent;color:var(--primary);font:inherit;cursor:pointer}.gbt-chart-empty__action:hover{background:var(--bg-hover)}.gbt-chart-empty__action:active{background:var(--bg-press)}.gbt-chart-empty__action:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}\n"],
588
588
  changeDetection: i0.ChangeDetectionStrategy.OnPush
589
589
  });
590
590
  };
@@ -601,7 +601,7 @@ i0.ɵɵngDeclareClassMetadata({
601
601
  imports: [],
602
602
  changeDetection: ChangeDetectionStrategy.OnPush,
603
603
  template: "<div class=\"gbt-chart-empty\" role=\"status\">\n <div class=\"gbt-chart-empty__icon\" aria-hidden=\"true\">\n <ng-content select=\"[gbtChartEmptyIcon]\" />\n </div>\n <p class=\"gbt-chart-empty__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"gbt-chart-empty__action\" (click)=\"action.emit()\">\n {{ actionLabel() }}\n </button>\n }\n</div>\n",
604
- styles: [".gbt-chart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:8rem;padding:1.5rem;color:var(--text-secondary);text-align:center}.gbt-chart-empty__icon{width:64px;height:64px;color:var(--text-discret)}.gbt-chart-empty__icon:empty{display:none}.gbt-chart-empty__icon svg{width:100%;height:100%}.gbt-chart-empty__message{margin:0;font-size:.875rem}.gbt-chart-empty__action{min-width:24px;min-height:24px;padding:.375rem .75rem;border:1px solid var(--border-color);border-radius:999px;background:transparent;color:var(--primary);font:inherit;cursor:pointer}.gbt-chart-empty__action:hover{background:var(--bg-hover)}.gbt-chart-empty__action:active{background:var(--bg-press)}.gbt-chart-empty__action:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}\n"]
604
+ styles: [".gbt-chart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:8rem;padding:1.5rem;color:var(--text-secondary);text-align:center}.gbt-chart-empty__icon{width:64px;height:64px;color:var(--text-discret)}.gbt-chart-empty__icon:empty{display:none}.gbt-chart-empty__icon svg{width:100%;height:100%}.gbt-chart-empty__message{margin:0;font-size:.875rem}.gbt-chart-empty__action{min-width:24px;min-height:24px;padding:.375rem .75rem;border:1px solid var(--border-color);border-radius:999px;background:transparent;color:var(--primary);font:inherit;cursor:pointer}.gbt-chart-empty__action:hover{background:var(--bg-hover)}.gbt-chart-empty__action:active{background:var(--bg-press)}.gbt-chart-empty__action:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}\n"]
605
605
  }]
606
606
  }],
607
607
  propDecorators: {
@@ -846,7 +846,7 @@ var ChartFrame = class ChartFrame {
846
846
  }],
847
847
  ngImport: i0,
848
848
  template: "<div class=\"gbt-chart-frame\">\n @if (heading()) {\n <div class=\"gbt-chart-frame__header\">\n @switch (headingLevel()) {\n @case (1) {\n <h1 class=\"gbt-chart-frame__title\">{{ heading() }}</h1>\n }\n @case (3) {\n <h3 class=\"gbt-chart-frame__title\">{{ heading() }}</h3>\n }\n @case (4) {\n <h4 class=\"gbt-chart-frame__title\">{{ heading() }}</h4>\n }\n @case (5) {\n <h5 class=\"gbt-chart-frame__title\">{{ heading() }}</h5>\n }\n @case (6) {\n <h6 class=\"gbt-chart-frame__title\">{{ heading() }}</h6>\n }\n @default {\n <h2 class=\"gbt-chart-frame__title\">{{ heading() }}</h2>\n }\n }\n @if (headline()) {\n <p class=\"gbt-chart-frame__headline\">{{ headline() }}</p>\n }\n @if (trend()) {\n <p class=\"gbt-chart-frame__trend\">{{ trend() }}</p>\n }\n </div>\n }\n\n <div\n #surface\n class=\"gbt-chart-frame__surface\"\n [attr.tabindex]=\"ready() && pointValues().length > 0 ? 0 : null\"\n [attr.role]=\"ready() ? 'group' : null\"\n [attr.aria-label]=\"ready() ? label() : null\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n @if (ready()) {\n <svg\n class=\"gbt-chart-frame__svg\"\n [attr.viewBox]=\"viewBox()\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g [attr.transform]=\"innerTransform()\">\n <ng-content select=\"[gbtChartLayer]\" />\n @if (activePosition() !== null) {\n <line\n class=\"gbt-chart-frame__guide\"\n [attr.x1]=\"activePosition()\"\n [attr.x2]=\"activePosition()\"\n y1=\"0\"\n [attr.y2]=\"innerHeight()\"\n aria-hidden=\"true\"\n />\n }\n </g>\n </svg>\n <ng-content select=\"gbt-chart-tooltip\" />\n }\n </div>\n <ng-content select=\"gbt-chart-empty\" />\n <ng-content select=\"gbt-chart-table\" />\n</div>\n",
849
- styles: [":host{display:block}.gbt-chart-frame{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.gbt-chart-frame__surface{flex:1;min-height:0;position:relative}.gbt-chart-frame__surface:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}.gbt-chart-frame__svg{display:block;width:100%;height:100%}.gbt-chart-frame__guide{stroke:var(--border-color);stroke-width:1;pointer-events:none}.gbt-chart-frame__header{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:.75rem;margin-bottom:.5rem}.gbt-chart-frame__title{font-family:var(--gbt-font-display, var(--font-display));margin:0;font-size:.875rem;font-weight:600;color:var(--text-primary)}.gbt-chart-frame__headline{margin:0;grid-row:1;grid-column:2;font-size:1.375rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-primary)}.gbt-chart-frame__trend{margin:0;grid-column:2;justify-self:end;font-size:.6875rem;font-weight:600;color:var(--text-secondary)}\n"],
849
+ styles: [":host{display:block}.gbt-chart-frame{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.gbt-chart-frame__surface{flex:1;min-height:0;position:relative}.gbt-chart-frame__surface:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}.gbt-chart-frame__svg{display:block;width:100%;height:100%}.gbt-chart-frame__guide{stroke:var(--border-color);stroke-width:1;pointer-events:none}.gbt-chart-frame__header{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:.75rem;margin-bottom:.5rem}.gbt-chart-frame__title{font-family:var(--gbt-font-display, var(--font-display));margin:0;font-size:.875rem;font-weight:600;color:var(--text-primary)}.gbt-chart-frame__headline{margin:0;grid-row:1;grid-column:2;font-size:1.375rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-primary)}.gbt-chart-frame__trend{margin:0;grid-column:2;justify-self:end;font-size:.6875rem;font-weight:600;color:var(--text-secondary)}\n"],
850
850
  changeDetection: i0.ChangeDetectionStrategy.OnPush
851
851
  });
852
852
  };
@@ -867,7 +867,7 @@ i0.ɵɵngDeclareClassMetadata({
867
867
  useExisting: ChartContext
868
868
  }],
869
869
  template: "<div class=\"gbt-chart-frame\">\n @if (heading()) {\n <div class=\"gbt-chart-frame__header\">\n @switch (headingLevel()) {\n @case (1) {\n <h1 class=\"gbt-chart-frame__title\">{{ heading() }}</h1>\n }\n @case (3) {\n <h3 class=\"gbt-chart-frame__title\">{{ heading() }}</h3>\n }\n @case (4) {\n <h4 class=\"gbt-chart-frame__title\">{{ heading() }}</h4>\n }\n @case (5) {\n <h5 class=\"gbt-chart-frame__title\">{{ heading() }}</h5>\n }\n @case (6) {\n <h6 class=\"gbt-chart-frame__title\">{{ heading() }}</h6>\n }\n @default {\n <h2 class=\"gbt-chart-frame__title\">{{ heading() }}</h2>\n }\n }\n @if (headline()) {\n <p class=\"gbt-chart-frame__headline\">{{ headline() }}</p>\n }\n @if (trend()) {\n <p class=\"gbt-chart-frame__trend\">{{ trend() }}</p>\n }\n </div>\n }\n\n <div\n #surface\n class=\"gbt-chart-frame__surface\"\n [attr.tabindex]=\"ready() && pointValues().length > 0 ? 0 : null\"\n [attr.role]=\"ready() ? 'group' : null\"\n [attr.aria-label]=\"ready() ? label() : null\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n @if (ready()) {\n <svg\n class=\"gbt-chart-frame__svg\"\n [attr.viewBox]=\"viewBox()\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g [attr.transform]=\"innerTransform()\">\n <ng-content select=\"[gbtChartLayer]\" />\n @if (activePosition() !== null) {\n <line\n class=\"gbt-chart-frame__guide\"\n [attr.x1]=\"activePosition()\"\n [attr.x2]=\"activePosition()\"\n y1=\"0\"\n [attr.y2]=\"innerHeight()\"\n aria-hidden=\"true\"\n />\n }\n </g>\n </svg>\n <ng-content select=\"gbt-chart-tooltip\" />\n }\n </div>\n <ng-content select=\"gbt-chart-empty\" />\n <ng-content select=\"gbt-chart-table\" />\n</div>\n",
870
- styles: [":host{display:block}.gbt-chart-frame{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.gbt-chart-frame__surface{flex:1;min-height:0;position:relative}.gbt-chart-frame__surface:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}.gbt-chart-frame__svg{display:block;width:100%;height:100%}.gbt-chart-frame__guide{stroke:var(--border-color);stroke-width:1;pointer-events:none}.gbt-chart-frame__header{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:.75rem;margin-bottom:.5rem}.gbt-chart-frame__title{font-family:var(--gbt-font-display, var(--font-display));margin:0;font-size:.875rem;font-weight:600;color:var(--text-primary)}.gbt-chart-frame__headline{margin:0;grid-row:1;grid-column:2;font-size:1.375rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-primary)}.gbt-chart-frame__trend{margin:0;grid-column:2;justify-self:end;font-size:.6875rem;font-weight:600;color:var(--text-secondary)}\n"]
870
+ styles: [":host{display:block}.gbt-chart-frame{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.gbt-chart-frame__surface{flex:1;min-height:0;position:relative}.gbt-chart-frame__surface:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}.gbt-chart-frame__svg{display:block;width:100%;height:100%}.gbt-chart-frame__guide{stroke:var(--border-color);stroke-width:1;pointer-events:none}.gbt-chart-frame__header{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:.75rem;margin-bottom:.5rem}.gbt-chart-frame__title{font-family:var(--gbt-font-display, var(--font-display));margin:0;font-size:.875rem;font-weight:600;color:var(--text-primary)}.gbt-chart-frame__headline{margin:0;grid-row:1;grid-column:2;font-size:1.375rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-primary)}.gbt-chart-frame__trend{margin:0;grid-column:2;justify-self:end;font-size:.6875rem;font-weight:600;color:var(--text-secondary)}\n"]
871
871
  }]
872
872
  }],
873
873
  ctorParameters: () => [],
@@ -1023,7 +1023,7 @@ var ChartLegend = class ChartLegend {
1023
1023
  outputs: { activeIndexChange: "activeIndexChange" },
1024
1024
  ngImport: i0,
1025
1025
  template: "<ul class=\"gbt-chart-legend\">\n @for (entry of entries(); track $index) {\n <li\n class=\"gbt-chart-legend__item\"\n [class.gbt-chart-legend__item--active]=\"interactive() && activeIndex() === $index\"\n [attr.data-pattern]=\"entry.pattern ?? 'solid'\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n (mouseenter)=\"interactive() && activeIndexChange.emit($index)\"\n (mouseleave)=\"interactive() && onMouseLeave($event)\"\n (focus)=\"interactive() && activeIndexChange.emit($index)\"\n (blur)=\"interactive() && activeIndexChange.emit(null)\"\n >\n <svg class=\"gbt-chart-legend__swatch\" viewBox=\"0 0 24 8\" aria-hidden=\"true\" focusable=\"false\">\n @if (entry.color; as color) {\n <rect\n class=\"gbt-chart-legend__fill\"\n x=\"4\"\n y=\"0\"\n width=\"8\"\n height=\"8\"\n rx=\"2\"\n [attr.fill]=\"color\"\n />\n } @else {\n <line\n class=\"gbt-chart-legend__line\"\n x1=\"0\"\n y1=\"4\"\n x2=\"24\"\n y2=\"4\"\n [attr.stroke-dasharray]=\"dashArray(entry.pattern)\"\n stroke-width=\"2\"\n />\n }\n </svg>\n {{ entry.label }}\n @if (entry.value; as value) {\n <span class=\"gbt-chart-legend__value\">{{ value }}</span>\n }\n </li>\n }\n</ul>\n",
1026
- styles: [".gbt-chart-legend{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin:0;padding:0;list-style:none;font-size:.8125rem;color:var(--text-secondary)}.gbt-chart-legend__item{display:inline-flex;align-items:center;gap:.375rem;border-radius:999px}.gbt-chart-legend__item:nth-child(3n+1) .gbt-chart-legend__line{stroke:var(--chart-series-1-base)}.gbt-chart-legend__item:nth-child(3n+2) .gbt-chart-legend__line{stroke:var(--chart-series-2-base)}.gbt-chart-legend__item:nth-child(3n+3) .gbt-chart-legend__line{stroke:var(--chart-series-3-base)}.gbt-chart-legend__item[tabindex]{cursor:default;padding:.125rem .25rem;margin:-.125rem -.25rem}.gbt-chart-legend__item[tabindex]:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:1px}.gbt-chart-legend__item--active{background:var(--bg-hover)}.gbt-chart-legend__swatch{width:1.5rem;height:.5rem;flex:none}.gbt-chart-legend__value{margin-left:.375rem;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-primary)}\n"],
1026
+ styles: [".gbt-chart-legend{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin:0;padding:0;list-style:none;font-size:.8125rem;color:var(--text-secondary)}.gbt-chart-legend__item{display:inline-flex;align-items:center;gap:.375rem;border-radius:999px}.gbt-chart-legend__item:nth-child(3n+1) .gbt-chart-legend__line{stroke:var(--chart-series-1-base)}.gbt-chart-legend__item:nth-child(3n+2) .gbt-chart-legend__line{stroke:var(--chart-series-2-base)}.gbt-chart-legend__item:nth-child(3n+3) .gbt-chart-legend__line{stroke:var(--chart-series-3-base)}.gbt-chart-legend__item[tabindex]{cursor:default;padding:.125rem .25rem;margin:-.125rem -.25rem}.gbt-chart-legend__item[tabindex]:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:1px}.gbt-chart-legend__item--active{background:var(--bg-hover)}.gbt-chart-legend__swatch{width:1.5rem;height:.5rem;flex:none}.gbt-chart-legend__value{margin-left:.375rem;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-primary)}\n"],
1027
1027
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1028
1028
  });
1029
1029
  };
@@ -1040,7 +1040,7 @@ i0.ɵɵngDeclareClassMetadata({
1040
1040
  imports: [],
1041
1041
  changeDetection: ChangeDetectionStrategy.OnPush,
1042
1042
  template: "<ul class=\"gbt-chart-legend\">\n @for (entry of entries(); track $index) {\n <li\n class=\"gbt-chart-legend__item\"\n [class.gbt-chart-legend__item--active]=\"interactive() && activeIndex() === $index\"\n [attr.data-pattern]=\"entry.pattern ?? 'solid'\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n (mouseenter)=\"interactive() && activeIndexChange.emit($index)\"\n (mouseleave)=\"interactive() && onMouseLeave($event)\"\n (focus)=\"interactive() && activeIndexChange.emit($index)\"\n (blur)=\"interactive() && activeIndexChange.emit(null)\"\n >\n <svg class=\"gbt-chart-legend__swatch\" viewBox=\"0 0 24 8\" aria-hidden=\"true\" focusable=\"false\">\n @if (entry.color; as color) {\n <rect\n class=\"gbt-chart-legend__fill\"\n x=\"4\"\n y=\"0\"\n width=\"8\"\n height=\"8\"\n rx=\"2\"\n [attr.fill]=\"color\"\n />\n } @else {\n <line\n class=\"gbt-chart-legend__line\"\n x1=\"0\"\n y1=\"4\"\n x2=\"24\"\n y2=\"4\"\n [attr.stroke-dasharray]=\"dashArray(entry.pattern)\"\n stroke-width=\"2\"\n />\n }\n </svg>\n {{ entry.label }}\n @if (entry.value; as value) {\n <span class=\"gbt-chart-legend__value\">{{ value }}</span>\n }\n </li>\n }\n</ul>\n",
1043
- styles: [".gbt-chart-legend{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin:0;padding:0;list-style:none;font-size:.8125rem;color:var(--text-secondary)}.gbt-chart-legend__item{display:inline-flex;align-items:center;gap:.375rem;border-radius:999px}.gbt-chart-legend__item:nth-child(3n+1) .gbt-chart-legend__line{stroke:var(--chart-series-1-base)}.gbt-chart-legend__item:nth-child(3n+2) .gbt-chart-legend__line{stroke:var(--chart-series-2-base)}.gbt-chart-legend__item:nth-child(3n+3) .gbt-chart-legend__line{stroke:var(--chart-series-3-base)}.gbt-chart-legend__item[tabindex]{cursor:default;padding:.125rem .25rem;margin:-.125rem -.25rem}.gbt-chart-legend__item[tabindex]:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:1px}.gbt-chart-legend__item--active{background:var(--bg-hover)}.gbt-chart-legend__swatch{width:1.5rem;height:.5rem;flex:none}.gbt-chart-legend__value{margin-left:.375rem;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-primary)}\n"]
1043
+ styles: [".gbt-chart-legend{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin:0;padding:0;list-style:none;font-size:.8125rem;color:var(--text-secondary)}.gbt-chart-legend__item{display:inline-flex;align-items:center;gap:.375rem;border-radius:999px}.gbt-chart-legend__item:nth-child(3n+1) .gbt-chart-legend__line{stroke:var(--chart-series-1-base)}.gbt-chart-legend__item:nth-child(3n+2) .gbt-chart-legend__line{stroke:var(--chart-series-2-base)}.gbt-chart-legend__item:nth-child(3n+3) .gbt-chart-legend__line{stroke:var(--chart-series-3-base)}.gbt-chart-legend__item[tabindex]{cursor:default;padding:.125rem .25rem;margin:-.125rem -.25rem}.gbt-chart-legend__item[tabindex]:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:1px}.gbt-chart-legend__item--active{background:var(--bg-hover)}.gbt-chart-legend__swatch{width:1.5rem;height:.5rem;flex:none}.gbt-chart-legend__value{margin-left:.375rem;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-primary)}\n"]
1044
1044
  }]
1045
1045
  }],
1046
1046
  propDecorators: {
@@ -1 +1 @@
1
- {"version":3,"file":"masmarino-gabarit-chart.mjs","names":["DAY"],"sources":["../../../projects/gabarit/chart/primitives/scales.ts","../../../projects/gabarit/chart/chart-context/chart-context.ts","../../../projects/gabarit/chart/primitives/label.ts","../../../projects/gabarit/chart/primitives/ticks.ts","../../../projects/gabarit/chart/chart-axis/chart-axis.ts","../../../projects/gabarit/chart/chart-axis/chart-axis.html","../../../projects/gabarit/chart/chart-data/chart-data.ts","../../../projects/gabarit/chart/chart-empty/chart-empty.ts","../../../projects/gabarit/chart/chart-empty/chart-empty.html","../../../projects/gabarit/chart/primitives/nearest.ts","../../../projects/gabarit/chart/chart-frame/chart-frame.ts","../../../projects/gabarit/chart/chart-frame/chart-frame.html","../../../projects/gabarit/chart/chart-legend/chart-legend.ts","../../../projects/gabarit/chart/chart-legend/chart-legend.html","../../../projects/gabarit/chart/chart-table/chart-table.ts","../../../projects/gabarit/chart/chart-table/chart-table.html","../../../projects/gabarit/chart/chart-tooltip/chart-tooltip.ts","../../../projects/gabarit/chart/chart-tooltip/chart-tooltip.html","../../../projects/gabarit/chart/primitives/path.ts"],"sourcesContent":["export interface Scale<T> {\n map(value: T): number\n invert(pixel: number): T\n readonly domain: [T, T]\n readonly range: [number, number]\n}\n\nexport function linearScale(domain: [number, number], range: [number, number]): Scale<number> {\n const [d0, d1] = domain\n const [r0, r1] = range\n const span = d1 - d0\n\n const ratio = span === 0 ? 0 : (r1 - r0) / span\n return {\n domain,\n range,\n map: (value) => r0 + (value - d0) * ratio,\n invert: (pixel) => (ratio === 0 ? d0 : d0 + (pixel - r0) / ratio),\n }\n}\n\nexport function timeScale(domain: [Date, Date], range: [number, number]): Scale<Date> {\n const numeric = linearScale([domain[0].getTime(), domain[1].getTime()], range)\n return {\n domain,\n range,\n map: (value) => numeric.map(value.getTime()),\n invert: (pixel) => new Date(numeric.invert(pixel)),\n }\n}\n\nexport interface BandScale {\n map(value: string): number\n invert(pixel: number): string | null\n readonly bandwidth: number\n readonly domain: string[]\n readonly range: [number, number]\n}\n\nexport function bandScale(domain: string[], range: [number, number], padding = 0): BandScale {\n const [r0, r1] = range\n const step = domain.length === 0 ? 0 : (r1 - r0) / domain.length\n\n const gutter = Math.min(Math.max(padding, 0), 1)\n const bandwidth = step * (1 - gutter)\n return {\n domain,\n range,\n bandwidth,\n map: (value) => {\n const index = domain.indexOf(value)\n\n return index === -1 ? Number.NaN : r0 + index * step\n },\n invert: (pixel) => {\n if (step === 0) return null\n const index = Math.floor((pixel - r0) / step)\n return index >= 0 && index < domain.length ? domain[index] : null\n },\n }\n}\n","import { Injectable, InjectionToken, computed, signal, type Signal } from '@angular/core'\nimport { bandScale, linearScale, timeScale, type BandScale, type Scale } from '../primitives/scales'\n\nexport interface ChartMargin {\n top: number\n right: number\n bottom: number\n left: number\n}\n\nexport interface ChartBox {\n readonly width: number\n readonly height: number\n readonly margin: ChartMargin\n readonly innerWidth: number\n readonly innerHeight: number\n}\n\nexport type LinearAxisSpec = { kind: 'linear'; domain: [number, number] }\n\nexport type PointValue = number | Date | string\n\nexport type AxisSpec =\n | LinearAxisSpec\n | { kind: 'time'; domain: [Date, Date] }\n | { kind: 'band'; domain: string[]; padding?: number }\n\nconst EMPTY_BOX: ChartBox = {\n width: 0,\n height: 0,\n margin: { top: 0, right: 0, bottom: 0, left: 0 },\n innerWidth: 0,\n innerHeight: 0,\n}\n\nexport interface ChartReader {\n readonly box: Signal<ChartBox>\n readonly xSpec: Signal<AxisSpec>\n readonly ySpec: Signal<LinearAxisSpec>\n readonly xScale: Signal<Scale<number> | Scale<Date> | BandScale>\n readonly yScale: Signal<Scale<number>>\n readonly activeIndex: Signal<number | null>\n readonly pointValues: Signal<PointValue[]>\n readonly activePosition: Signal<number | null>\n}\n\nexport const CHART_CONTEXT = new InjectionToken<ChartReader>('gbt-chart-context')\n\n@Injectable()\nexport class ChartContext implements ChartReader {\n private readonly _box = signal<ChartBox>(EMPTY_BOX)\n private readonly _xSpec = signal<AxisSpec>({ kind: 'linear', domain: [0, 1] })\n private readonly _ySpec = signal<LinearAxisSpec>({ kind: 'linear', domain: [0, 1] })\n private readonly _activeIndex = signal<number | null>(null)\n private readonly _pointValues = signal<PointValue[]>([])\n\n readonly box = this._box.asReadonly()\n readonly xSpec = this._xSpec.asReadonly()\n readonly ySpec = this._ySpec.asReadonly()\n readonly activeIndex = this._activeIndex.asReadonly()\n readonly pointValues = this._pointValues.asReadonly()\n\n readonly xScale = computed<Scale<number> | Scale<Date> | BandScale>(() => {\n const spec = this._xSpec()\n const range: [number, number] = [0, this._box().innerWidth]\n if (spec.kind === 'time') return timeScale(spec.domain, range)\n if (spec.kind === 'band') return bandScale(spec.domain, range, spec.padding ?? 0)\n return linearScale(spec.domain, range)\n })\n\n readonly yScale = computed<Scale<number>>(() =>\n linearScale(this._ySpec().domain, [this._box().innerHeight, 0]),\n )\n\n readonly pointPositions = computed<number[]>(() => {\n const kind = this._xSpec().kind\n const scale = this.xScale()\n return this._pointValues().map((value) =>\n kind === 'band'\n ? (scale as BandScale).map(value as string) + (scale as BandScale).bandwidth / 2\n : (scale as Scale<number> | Scale<Date>).map(value as never),\n )\n })\n\n readonly activePosition = computed<number | null>(() => {\n const index = this._activeIndex()\n if (index === null) return null\n return this.pointPositions()[index] ?? null\n })\n\n setPointValues(values: PointValue[]): void {\n this._pointValues.set(values)\n }\n\n setGeometry(box: ChartBox): void {\n this._box.set(box)\n }\n\n setSpecs(x: AxisSpec, y: LinearAxisSpec): void {\n this._xSpec.set(x)\n this._ySpec.set(y)\n }\n\n setActiveIndex(index: number | null): void {\n this._activeIndex.set(index)\n }\n}\n","export const ESTIMATED_CHAR_WIDTH = 6.5\n\nexport const LABEL_GAP = 8\n\nexport function estimateLabelWidth(label: string): number {\n return label.length * ESTIMATED_CHAR_WIDTH\n}\n","export function niceTicks(min: number, max: number, count: number): number[] {\n if (!Number.isFinite(min) || !Number.isFinite(max)) return []\n\n if (min === max) return [min]\n\n if (max < min) return niceTicks(max, min, count)\n\n const rawStep = (max - min) / Math.max(1, count)\n const magnitude = 10 ** Math.floor(Math.log10(rawStep))\n const normalized = rawStep / magnitude\n const step = magnitude * (normalized <= 1 ? 1 : normalized <= 2 ? 2 : normalized <= 5 ? 5 : 10)\n\n const first = Math.floor(min / step) * step\n const last = Math.ceil(max / step) * step\n\n const decimals = Math.max(0, -Math.floor(Math.log10(step)))\n\n const ticks: number[] = []\n\n for (let value = first; value <= last + step / 1e9; value += step) {\n ticks.push(Number(value.toFixed(decimals)))\n }\n return ticks\n}\n\nexport type TimeUnit = 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year'\n\nexport interface TimeTicks {\n readonly values: Date[]\n readonly unit: TimeUnit\n format(date: Date, locale: string): string\n}\n\nconst SECOND = 1000\nconst MINUTE = 60 * SECOND\nconst HOUR = 60 * MINUTE\nconst DAY = 24 * HOUR\n\nconst STEPS: { ms: number; unit: TimeUnit; months?: number }[] = [\n { ms: SECOND, unit: 'second' },\n { ms: 5 * SECOND, unit: 'second' },\n { ms: 15 * SECOND, unit: 'second' },\n { ms: 30 * SECOND, unit: 'second' },\n { ms: MINUTE, unit: 'minute' },\n { ms: 5 * MINUTE, unit: 'minute' },\n { ms: 15 * MINUTE, unit: 'minute' },\n { ms: 30 * MINUTE, unit: 'minute' },\n { ms: HOUR, unit: 'hour' },\n { ms: 3 * HOUR, unit: 'hour' },\n { ms: 6 * HOUR, unit: 'hour' },\n { ms: 12 * HOUR, unit: 'hour' },\n { ms: DAY, unit: 'day' },\n { ms: 2 * DAY, unit: 'day' },\n { ms: 7 * DAY, unit: 'day' },\n { ms: 30 * DAY, unit: 'month', months: 1 },\n { ms: 90 * DAY, unit: 'month', months: 3 },\n { ms: 365 * DAY, unit: 'year', months: 12 },\n]\n\nconst FORMATS: Record<TimeUnit, Intl.DateTimeFormatOptions> = {\n second: { hour: '2-digit', minute: '2-digit', second: '2-digit' },\n minute: { hour: '2-digit', minute: '2-digit' },\n hour: { hour: '2-digit', minute: '2-digit' },\n day: { day: '2-digit', month: '2-digit' },\n month: { month: 'short', year: 'numeric' },\n year: { year: 'numeric' },\n}\n\nconst MIN_PIXELS_PER_TICK = 60\n\nexport function timeTicks(start: Date, end: Date, pixelWidth: number): TimeTicks {\n const span = end.getTime() - start.getTime()\n const makeFormatter = (unit: TimeUnit) => (date: Date, locale: string) =>\n new Intl.DateTimeFormat(locale, { ...FORMATS[unit], timeZone: 'UTC' }).format(date)\n\n if (span <= 0) {\n return { values: [start], unit: 'day', format: makeFormatter('day') }\n }\n\n const maxTicks = Math.max(2, Math.floor(pixelWidth / MIN_PIXELS_PER_TICK))\n\n const coarsest = STEPS[STEPS.length - 1]\n const chosen = STEPS.find((step) => span / step.ms + 1 <= maxTicks) ?? {\n ...coarsest,\n months: coarsest.months! * Math.max(1, Math.ceil((span / coarsest.ms + 1) / maxTicks)),\n }\n\n const values: Date[] = []\n if (chosen.months) {\n const step = chosen.months\n const cursor =\n step >= 12\n ? new Date(Date.UTC(Math.floor(start.getUTCFullYear() / (step / 12)) * (step / 12), 0, 1))\n : new Date(\n Date.UTC(start.getUTCFullYear(), Math.floor(start.getUTCMonth() / step) * step, 1),\n )\n while (cursor.getTime() < start.getTime()) cursor.setUTCMonth(cursor.getUTCMonth() + step)\n while (cursor.getTime() <= end.getTime()) {\n values.push(new Date(cursor))\n cursor.setUTCMonth(cursor.getUTCMonth() + step)\n }\n } else {\n const first = Math.ceil(start.getTime() / chosen.ms) * chosen.ms\n for (let t = first; t <= end.getTime(); t += chosen.ms) {\n values.push(new Date(t))\n }\n }\n\n if (values.length === 0) values.push(start)\n\n return { values, unit: chosen.unit, format: makeFormatter(chosen.unit) }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core'\nimport { CHART_CONTEXT, type ChartReader } from '../chart-context/chart-context'\nimport { LABEL_GAP, estimateLabelWidth } from '../primitives/label'\nimport { formatCompact } from '@masmarino/gabarit/format'\nimport { niceTicks, timeTicks } from '../primitives/ticks'\nimport { type BandScale, type Scale } from '../primitives/scales'\n\ninterface Tick {\n key: string\n x: number\n y: number\n label: string\n\n date: string | null\n anchor: 'start' | 'middle' | 'end'\n}\n\n@Component({\n selector: 'g[gbtChartAxis]',\n standalone: true,\n imports: [],\n templateUrl: './chart-axis.html',\n styleUrl: './chart-axis.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.transform]': 'groupTransform()',\n '[attr.axis]': 'axis()',\n 'aria-hidden': 'true',\n },\n})\nexport class ChartAxis {\n private readonly context: ChartReader = inject(CHART_CONTEXT)\n\n axis = input.required<'x' | 'y'>()\n locale = input.required<string>()\n tickCount = input(5)\n format = input<((value: never) => string) | null>(null)\n grid = input(false, { transform: booleanAttribute })\n\n protected readonly groupTransform = computed(() => {\n const box = this.context.box()\n\n return this.axis() === 'x' ? `translate(0,${box.innerHeight})` : 'translate(0,0)'\n })\n\n protected readonly ticks = computed<Tick[]>(() => {\n if (this.axis() === 'y') return this.yTicks()\n const ticks = this.xTicks()\n\n if (this.context.xSpec().kind === 'band') return ticks\n\n const last = ticks.length - 1\n return ticks.map((tick, index) => ({\n ...tick,\n anchor: index === 0 ? 'start' : index === last ? 'end' : 'middle',\n }))\n })\n\n protected readonly gridLines = computed<number[]>(() => {\n if (!this.grid() || this.axis() !== 'y') return []\n return this.yTicks().map((tick) => tick.y - 4)\n })\n\n protected readonly innerWidth = computed(() => this.context.box().innerWidth)\n\n private yTicks(): Tick[] {\n const spec = this.context.ySpec()\n const scale = this.context.yScale()\n const custom = this.format()\n return niceTicks(spec.domain[0], spec.domain[1], this.tickCount()).map((value) => ({\n key: `y-${value}`,\n x: -8,\n y: scale.map(value) + 4,\n label: custom ? custom(value as never) : formatCompact(value, this.locale()),\n date: null,\n anchor: 'end',\n }))\n }\n\n private xTicks(): Tick[] {\n const spec = this.context.xSpec()\n const box = this.context.box()\n const custom = this.format()\n\n if (spec.kind === 'band') {\n const scale = this.context.xScale() as BandScale\n\n const labels = spec.domain.map((category) => (custom ? custom(category as never) : category))\n const step = spec.domain.length === 0 ? 0 : box.innerWidth / spec.domain.length\n const widest = labels.reduce((large, label) => Math.max(large, estimateLabelWidth(label)), 0)\n const keepEvery = Math.max(1, Math.ceil((widest + LABEL_GAP) / Math.max(step, 1)))\n\n return spec.domain\n .map((category, index) => ({\n key: `x-${category}`,\n x: scale.map(category) + scale.bandwidth / 2,\n y: 20,\n label: labels[index],\n date: null,\n anchor: 'middle' as const,\n }))\n .filter((_, index) => index % keepEvery === 0)\n }\n\n if (spec.kind === 'time') {\n const scale = this.context.xScale() as Scale<Date>\n const result = timeTicks(spec.domain[0], spec.domain[1], box.innerWidth)\n\n const fine = result.unit === 'hour' || result.unit === 'minute' || result.unit === 'second'\n const days = new Set(result.values.map((v) => v.toISOString().slice(0, 10)))\n const multiDay = days.size > 1\n const seen = new Set<string>()\n\n return result.values.map((value) => {\n const day = value.toISOString().slice(0, 10)\n\n const first = fine && multiDay && !seen.has(day)\n seen.add(day)\n\n return {\n key: `x-${value.getTime()}`,\n x: scale.map(value),\n y: first ? 14 : 20,\n label: custom ? custom(value as never) : result.format(value, this.locale()),\n date: first\n ? new Intl.DateTimeFormat(this.locale(), {\n day: '2-digit',\n month: '2-digit',\n timeZone: 'UTC',\n }).format(value)\n : null,\n anchor: 'middle',\n }\n })\n }\n\n const scale = this.context.xScale() as Scale<number>\n return niceTicks(spec.domain[0], spec.domain[1], this.tickCount()).map((value) => ({\n key: `x-${value}`,\n x: scale.map(value),\n y: 20,\n label: custom ? custom(value as never) : formatCompact(value, this.locale()),\n date: null,\n anchor: 'middle',\n }))\n }\n}\n","@for (y of gridLines(); track $index) {\n <svg:line\n class=\"gbt-chart-axis__grid\"\n x1=\"0\"\n [attr.x2]=\"innerWidth()\"\n [attr.y1]=\"y\"\n [attr.y2]=\"y\"\n />\n}\n@for (tick of ticks(); track tick.key) {\n <svg:text\n class=\"gbt-chart-axis__label\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"tick.y\"\n [attr.text-anchor]=\"tick.anchor\"\n >\n @if (tick.date) {\n <svg:tspan [attr.x]=\"tick.x\" dy=\"0\">{{ tick.label }}</svg:tspan>\n <svg:tspan [attr.x]=\"tick.x\" dy=\"1.1em\">{{ tick.date }}</svg:tspan>\n } @else {\n {{ tick.label }}\n }\n </svg:text>\n}\n","import { niceTicks } from '../primitives/ticks'\n\nexport interface ChartPoint<X> {\n x: X\n y: number\n\n display?: string\n}\n\nexport interface ChartSeries<X> {\n label: string\n points: ChartPoint<X>[]\n\n pattern?: 'solid' | 'dashed' | 'dotted'\n}\n\nexport interface ChartInterval {\n start: Date\n end: Date\n label: string\n}\n\nconst DAY = 86400000\n\nexport function yDomain<X>(series: ChartSeries<X>[], includeZero: boolean): [number, number] {\n const values = series.flatMap((s) => s.points.map((p) => p.y))\n\n if (values.length === 0) return [0, 1]\n\n let min = Math.min(...values)\n let max = Math.max(...values)\n if (includeZero) {\n min = Math.min(min, 0)\n max = Math.max(max, 0)\n }\n\n if (min === max) return [min, min + 1]\n return [min, max]\n}\n\nexport function numericXDomain(series: ChartSeries<number>[]): [number, number] {\n const values = series.flatMap((s) => s.points.map((p) => p.x))\n if (values.length === 0) return [0, 1]\n const min = Math.min(...values)\n const max = Math.max(...values)\n return min === max ? [min, min + 1] : [min, max]\n}\n\nexport function timeXDomain(series: ChartSeries<Date>[]): [Date, Date] {\n const values = series.flatMap((s) => s.points.map((p) => p.x.getTime()))\n\n if (values.length === 0) return [new Date(-DAY), new Date(0)]\n const min = Math.min(...values)\n const max = Math.max(...values)\n return min === max ? [new Date(min), new Date(min + DAY)] : [new Date(min), new Date(max)]\n}\n\nexport function longestSeriesLength<X>(series: ChartSeries<X>[]): number {\n return series.reduce((longest, s) => Math.max(longest, s.points.length), 0)\n}\n\nexport function niceYDomain<X>(\n series: ChartSeries<X>[],\n includeZero: boolean,\n tickCount: number,\n): [number, number] {\n const [min, max] = yDomain(series, includeZero)\n const ticks = niceTicks(min, max, tickCount)\n\n if (ticks.length === 0) return [min, max]\n return [ticks[0], ticks[ticks.length - 1]]\n}\n\nexport function niceXDomain(series: ChartSeries<number>[], tickCount: number): [number, number] {\n const [min, max] = numericXDomain(series)\n const ticks = niceTicks(min, max, tickCount)\n if (ticks.length === 0) return [min, max]\n return [ticks[0], ticks[ticks.length - 1]]\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core'\n\n@Component({\n selector: 'gbt-chart-empty',\n standalone: true,\n imports: [],\n templateUrl: './chart-empty.html',\n styleUrl: './chart-empty.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartEmpty {\n message = input.required<string>()\n actionLabel = input<string>('')\n\n action = output<void>()\n}\n","<div class=\"gbt-chart-empty\" role=\"status\">\n <div class=\"gbt-chart-empty__icon\" aria-hidden=\"true\">\n <ng-content select=\"[gbtChartEmptyIcon]\" />\n </div>\n <p class=\"gbt-chart-empty__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"gbt-chart-empty__action\" (click)=\"action.emit()\">\n {{ actionLabel() }}\n </button>\n }\n</div>\n","export function nearestIndex(sorted: number[], target: number): number {\n if (sorted.length === 0) return -1\n\n let low = 0\n let high = sorted.length - 1\n while (low < high) {\n const mid = (low + high) >> 1\n if (sorted[mid] < target) low = mid + 1\n else high = mid\n }\n\n const previous = low - 1\n if (previous < 0) return low\n return target - sorted[previous] <= sorted[low] - target ? previous : low\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core'\nimport {\n CHART_CONTEXT,\n ChartContext,\n type AxisSpec,\n type ChartMargin,\n type LinearAxisSpec,\n type PointValue,\n} from '../chart-context/chart-context'\nimport { nearestIndex } from '../primitives/nearest'\n\nconst DEFAULT_MARGIN: ChartMargin = { top: 16, right: 8, bottom: 32, left: 48 }\n\n@Component({\n selector: 'gbt-chart-frame',\n standalone: true,\n imports: [],\n templateUrl: './chart-frame.html',\n styleUrl: './chart-frame.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [ChartContext, { provide: CHART_CONTEXT, useExisting: ChartContext }],\n})\nexport class ChartFrame {\n private readonly context = inject(ChartContext)\n\n label = input.required<string>()\n heading = input('')\n headingLevel = input<1 | 2 | 3 | 4 | 5 | 6>(2)\n headline = input('')\n trend = input('')\n x = input.required<AxisSpec>()\n y = input.required<LinearAxisSpec>()\n margin = input<Partial<ChartMargin>>({})\n size = input<{ width: number; height: number } | null>(null)\n pointValues = input<PointValue[]>([])\n\n readonly activeIndexChange = output<number | null>()\n\n private readonly surface = viewChild.required<ElementRef<HTMLElement>>('surface')\n private readonly measured = signal<{ width: number; height: number } | null>(null)\n\n protected readonly ready = computed(() => this.context.box().innerWidth > 0)\n\n protected readonly viewBox = computed(() => {\n const b = this.context.box()\n return `0 0 ${b.width} ${b.height}`\n })\n\n protected readonly innerTransform = computed(() => {\n const m = this.context.box().margin\n return `translate(${m.left},${m.top})`\n })\n\n protected readonly activePosition = computed(() => this.context.activePosition())\n protected readonly innerHeight = computed(() => this.context.box().innerHeight)\n\n constructor() {\n effect(() => this.activeIndexChange.emit(this.context.activeIndex()))\n\n effect(() => {\n const margin = { ...DEFAULT_MARGIN, ...this.margin() }\n const size = this.size() ?? this.measured()\n const width = size?.width ?? 0\n const height = size?.height ?? 0\n this.context.setSpecs(this.x(), this.y())\n this.context.setPointValues(this.pointValues())\n this.context.setGeometry({\n width,\n height,\n margin,\n innerWidth: Math.max(0, width - margin.left - margin.right),\n innerHeight: Math.max(0, height - margin.top - margin.bottom),\n })\n })\n\n effect((onCleanup) => {\n if (this.size() || typeof ResizeObserver === 'undefined') return\n\n const element = this.surface().nativeElement\n const observer = new ResizeObserver((entries) => {\n const rect = entries[0]?.contentRect\n if (rect) this.measured.set({ width: rect.width, height: rect.height })\n })\n observer.observe(element)\n onCleanup(() => observer.disconnect())\n })\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const count = this.pointValues().length\n if (count === 0) return\n\n const current = this.context.activeIndex()\n const last = count - 1\n\n switch (event.key) {\n case 'ArrowRight':\n this.context.setActiveIndex(current === null ? 0 : Math.min(last, current + 1))\n break\n case 'ArrowLeft':\n this.context.setActiveIndex(current === null ? last : Math.max(0, current - 1))\n break\n case 'Home':\n this.context.setActiveIndex(0)\n break\n case 'End':\n this.context.setActiveIndex(last)\n break\n case 'Escape':\n this.context.setActiveIndex(null)\n break\n default:\n return\n }\n\n event.preventDefault()\n }\n\n protected onBlur(): void {\n this.context.setActiveIndex(null)\n }\n\n protected onPointerMove(event: PointerEvent | MouseEvent): void {\n const positions = this.context.pointPositions()\n if (positions.length === 0) return\n\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect()\n const local = event.clientX - rect.left - this.context.box().margin.left\n\n this.context.setActiveIndex(nearestIndex(positions, local))\n }\n\n protected onPointerLeave(event: PointerEvent | MouseEvent): void {\n const surface = event.currentTarget as HTMLElement\n if (surface.ownerDocument.activeElement === surface) return\n this.context.setActiveIndex(null)\n }\n}\n","<div class=\"gbt-chart-frame\">\n @if (heading()) {\n <div class=\"gbt-chart-frame__header\">\n @switch (headingLevel()) {\n @case (1) {\n <h1 class=\"gbt-chart-frame__title\">{{ heading() }}</h1>\n }\n @case (3) {\n <h3 class=\"gbt-chart-frame__title\">{{ heading() }}</h3>\n }\n @case (4) {\n <h4 class=\"gbt-chart-frame__title\">{{ heading() }}</h4>\n }\n @case (5) {\n <h5 class=\"gbt-chart-frame__title\">{{ heading() }}</h5>\n }\n @case (6) {\n <h6 class=\"gbt-chart-frame__title\">{{ heading() }}</h6>\n }\n @default {\n <h2 class=\"gbt-chart-frame__title\">{{ heading() }}</h2>\n }\n }\n @if (headline()) {\n <p class=\"gbt-chart-frame__headline\">{{ headline() }}</p>\n }\n @if (trend()) {\n <p class=\"gbt-chart-frame__trend\">{{ trend() }}</p>\n }\n </div>\n }\n\n <div\n #surface\n class=\"gbt-chart-frame__surface\"\n [attr.tabindex]=\"ready() && pointValues().length > 0 ? 0 : null\"\n [attr.role]=\"ready() ? 'group' : null\"\n [attr.aria-label]=\"ready() ? label() : null\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n @if (ready()) {\n <svg\n class=\"gbt-chart-frame__svg\"\n [attr.viewBox]=\"viewBox()\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g [attr.transform]=\"innerTransform()\">\n <ng-content select=\"[gbtChartLayer]\" />\n @if (activePosition() !== null) {\n <line\n class=\"gbt-chart-frame__guide\"\n [attr.x1]=\"activePosition()\"\n [attr.x2]=\"activePosition()\"\n y1=\"0\"\n [attr.y2]=\"innerHeight()\"\n aria-hidden=\"true\"\n />\n }\n </g>\n </svg>\n <ng-content select=\"gbt-chart-tooltip\" />\n }\n </div>\n <ng-content select=\"gbt-chart-empty\" />\n <ng-content select=\"gbt-chart-table\" />\n</div>\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input, output } from '@angular/core'\n\nexport interface LegendEntry {\n label: string\n\n pattern?: 'solid' | 'dashed' | 'dotted'\n\n color?: string\n\n value?: string\n}\n\nconst DASH_ARRAYS: Record<NonNullable<LegendEntry['pattern']>, string> = {\n solid: 'none',\n dashed: '6 3',\n dotted: '1 3',\n}\n\n@Component({\n selector: 'gbt-chart-legend',\n standalone: true,\n imports: [],\n templateUrl: './chart-legend.html',\n styleUrl: './chart-legend.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartLegend {\n entries = input.required<LegendEntry[]>()\n\n interactive = input(false, { transform: booleanAttribute })\n activeIndex = input<number | null>(null)\n activeIndexChange = output<number | null>()\n\n protected dashArray(pattern: LegendEntry['pattern']): string {\n return DASH_ARRAYS[pattern ?? 'solid']\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n const target = event.currentTarget as HTMLElement\n if (target.ownerDocument.activeElement === target) return\n this.activeIndexChange.emit(null)\n }\n}\n","<ul class=\"gbt-chart-legend\">\n @for (entry of entries(); track $index) {\n <li\n class=\"gbt-chart-legend__item\"\n [class.gbt-chart-legend__item--active]=\"interactive() && activeIndex() === $index\"\n [attr.data-pattern]=\"entry.pattern ?? 'solid'\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n (mouseenter)=\"interactive() && activeIndexChange.emit($index)\"\n (mouseleave)=\"interactive() && onMouseLeave($event)\"\n (focus)=\"interactive() && activeIndexChange.emit($index)\"\n (blur)=\"interactive() && activeIndexChange.emit(null)\"\n >\n <svg class=\"gbt-chart-legend__swatch\" viewBox=\"0 0 24 8\" aria-hidden=\"true\" focusable=\"false\">\n @if (entry.color; as color) {\n <rect\n class=\"gbt-chart-legend__fill\"\n x=\"4\"\n y=\"0\"\n width=\"8\"\n height=\"8\"\n rx=\"2\"\n [attr.fill]=\"color\"\n />\n } @else {\n <line\n class=\"gbt-chart-legend__line\"\n x1=\"0\"\n y1=\"4\"\n x2=\"24\"\n y2=\"4\"\n [attr.stroke-dasharray]=\"dashArray(entry.pattern)\"\n stroke-width=\"2\"\n />\n }\n </svg>\n {{ entry.label }}\n @if (entry.value; as value) {\n <span class=\"gbt-chart-legend__value\">{{ value }}</span>\n }\n </li>\n }\n</ul>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core'\n\n@Component({\n selector: 'gbt-chart-table',\n standalone: true,\n imports: [],\n templateUrl: './chart-table.html',\n styleUrl: './chart-table.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartTable {\n caption = input.required<string>()\n columns = input.required<string[]>()\n rows = input.required<(string | number)[][]>()\n}\n","<div class=\"gbt-sr-only\">\n <table>\n <caption>\n {{\n caption()\n }}\n </caption>\n <thead>\n <tr>\n @for (column of columns(); track column) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of rows(); track $index) {\n <tr>\n @for (cell of row; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n</div>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core'\nimport { CHART_CONTEXT } from '../chart-context/chart-context'\n\nexport interface TooltipRow {\n label: string\n value: string\n\n series?: 1 | 2 | 3\n\n pattern?: 'solid' | 'dashed' | 'dotted'\n}\n\nexport interface TooltipPoint<X> {\n x: X\n\n header: string\n rows: TooltipRow[]\n}\n\n@Component({\n selector: 'gbt-chart-tooltip',\n standalone: true,\n imports: [],\n templateUrl: './chart-tooltip.html',\n styleUrl: './chart-tooltip.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartTooltip<X> {\n private readonly context = inject(CHART_CONTEXT)\n\n points = input.required<TooltipPoint<X>[]>()\n\n protected readonly active = computed<TooltipPoint<X> | null>(() => {\n const index = this.context.activeIndex()\n if (index === null) return null\n return this.points()[index] ?? null\n })\n\n protected readonly left = computed(() => {\n const position = this.context.activePosition()\n if (position === null) return 0\n return position + this.context.box().margin.left\n })\n\n protected readonly anchor = computed<'start' | 'middle' | 'end'>(() => {\n const index = this.context.activeIndex()\n if (index === null) return 'middle'\n const last = this.context.pointValues().length - 1\n return index === 0 ? 'start' : index === last ? 'end' : 'middle'\n })\n}\n","<div class=\"gbt-chart-tooltip\" role=\"status\" aria-live=\"polite\">\n @if (active(); as point) {\n <div class=\"gbt-chart-tooltip__panel\" [style.left.px]=\"left()\" [attr.data-anchor]=\"anchor()\">\n <p class=\"gbt-chart-tooltip__header\">{{ point.header }}</p>\n <ul class=\"gbt-chart-tooltip__rows\">\n @for (row of point.rows; track $index) {\n <li>\n <span\n class=\"gbt-chart-tooltip__swatch\"\n [attr.data-series]=\"row.series ?? null\"\n [attr.data-pattern]=\"row.pattern ?? 'solid'\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"gbt-chart-tooltip__label\">{{ row.label }}</span>\n <span class=\"gbt-chart-tooltip__value\">{{ row.value }}</span>\n </li>\n }\n </ul>\n </div>\n }\n</div>\n","export interface Point {\n x: number\n y: number\n}\n\nconst round = (n: number): number => Number(n.toFixed(2))\n\nexport function linePath(points: Point[]): string {\n if (points.length === 0) return ''\n return points\n .map((point, index) => `${index === 0 ? 'M' : 'L'}${round(point.x)},${round(point.y)}`)\n .join('')\n}\n\nexport function areaPath(points: Point[], baseline: number): string {\n if (points.length === 0) return ''\n const last = points[points.length - 1]\n const first = points[0]\n return `${linePath(points)}L${round(last.x)},${round(baseline)}L${round(first.x)},${round(baseline)}Z`\n}\n\nexport interface Arc {\n startAngle: number\n endAngle: number\n innerRadius: number\n outerRadius: number\n}\n\nfunction arcPoint(radius: number, angle: number): Point {\n return { x: radius * Math.sin(angle), y: -radius * Math.cos(angle) }\n}\n\nfunction point(p: Point): string {\n return `${round(p.x)},${round(p.y)}`\n}\n\nconst FULL_CIRCLE = Math.PI * 2\n\nexport function arcPath(arc: Arc): string {\n const { startAngle, endAngle, innerRadius, outerRadius } = arc\n const span = endAngle - startAngle\n if (span <= 0) return ''\n if (span >= FULL_CIRCLE - 1e-9) {\n const mid = startAngle + Math.PI\n return (\n arcPath({ startAngle, endAngle: mid, innerRadius, outerRadius }) +\n arcPath({ startAngle: mid, endAngle: startAngle + FULL_CIRCLE, innerRadius, outerRadius })\n )\n }\n\n const largeArc = span > Math.PI ? 1 : 0\n const outerStart = arcPoint(outerRadius, startAngle)\n const outerEnd = arcPoint(outerRadius, endAngle)\n const outerArc = `A${round(outerRadius)},${round(outerRadius)} 0 ${largeArc},1 ${point(outerEnd)}`\n\n if (innerRadius <= 0) {\n return `M0,0L${point(outerStart)}${outerArc}Z`\n }\n\n const innerStart = arcPoint(innerRadius, startAngle)\n const innerEnd = arcPoint(innerRadius, endAngle)\n const innerArc = `A${round(innerRadius)},${round(innerRadius)} 0 ${largeArc},0 ${point(innerStart)}`\n return `M${point(outerStart)}${outerArc}L${point(innerEnd)}${innerArc}Z`\n}\n"],"mappings":";;;AAOA,SAAgB,YAAY,QAA0B,OAAuB;CAC3E,MAAM,CAAC,IAAI,MAA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AE;GAAY,UAAU;GAAK;GAAa;EAAW,CAAE,IAC/D,QAAQ;GAAE,YAAY;GAAK,UAAU,aAAa;GAAa;GAAa;EAAW,CAAE;CAE7F;CAEA,MAAM,WAAW,OAAO,KAAK,KAAK,IAAI;CACtC,MAAM,aAAa,SAAS,aAAa,UAAU;CACnD,MAAM,WAAW,SAAS,aAAa,QAAQ;CAC/C,MAAM,WAAW,IAAI,MAAM,WAAW,EAAC,GAAI,MAAM,WAAW,EAAC,KAAM,SAAQ,KAAM,MAAM,QAAQ;CAE/F,IAAI,eAAe,GACjB,OAAO,QAAQ,MAAM,UAAU,IAAI,SAAQ;CAG7C,MAAM,aAAa,SAAS,aAAa,UAAU;CACnD,MAAM,WAAW,SAAS,aAAa,QAAQ;CAC/C,MAAM,WAAW,IAAI,MAAM,WAAW,EAAC,GAAI,MAAM,WAAW,EAAC,KAAM,SAAQ,KAAM,MAAM,UAAU;CACjG,OAAO,IAAI,MAAM,UAAU,IAAI,SAAQ,GAAI,MAAM,QAAQ,IAAI,SAAQ;AACvE"}
1
+ {"version":3,"file":"masmarino-gabarit-chart.mjs","names":["DAY"],"sources":["../../../projects/gabarit/chart/primitives/scales.ts","../../../projects/gabarit/chart/chart-context/chart-context.ts","../../../projects/gabarit/chart/primitives/label.ts","../../../projects/gabarit/chart/primitives/ticks.ts","../../../projects/gabarit/chart/chart-axis/chart-axis.ts","../../../projects/gabarit/chart/chart-axis/chart-axis.html","../../../projects/gabarit/chart/chart-data/chart-data.ts","../../../projects/gabarit/chart/chart-empty/chart-empty.ts","../../../projects/gabarit/chart/chart-empty/chart-empty.html","../../../projects/gabarit/chart/primitives/nearest.ts","../../../projects/gabarit/chart/chart-frame/chart-frame.ts","../../../projects/gabarit/chart/chart-frame/chart-frame.html","../../../projects/gabarit/chart/chart-legend/chart-legend.ts","../../../projects/gabarit/chart/chart-legend/chart-legend.html","../../../projects/gabarit/chart/chart-table/chart-table.ts","../../../projects/gabarit/chart/chart-table/chart-table.html","../../../projects/gabarit/chart/chart-tooltip/chart-tooltip.ts","../../../projects/gabarit/chart/chart-tooltip/chart-tooltip.html","../../../projects/gabarit/chart/primitives/path.ts"],"sourcesContent":["export interface Scale<T> {\n map(value: T): number\n invert(pixel: number): T\n readonly domain: [T, T]\n readonly range: [number, number]\n}\n\nexport function linearScale(domain: [number, number], range: [number, number]): Scale<number> {\n const [d0, d1] = domain\n const [r0, r1] = range\n const span = d1 - d0\n\n const ratio = span === 0 ? 0 : (r1 - r0) / span\n return {\n domain,\n range,\n map: (value) => r0 + (value - d0) * ratio,\n invert: (pixel) => (ratio === 0 ? d0 : d0 + (pixel - r0) / ratio),\n }\n}\n\nexport function timeScale(domain: [Date, Date], range: [number, number]): Scale<Date> {\n const numeric = linearScale([domain[0].getTime(), domain[1].getTime()], range)\n return {\n domain,\n range,\n map: (value) => numeric.map(value.getTime()),\n invert: (pixel) => new Date(numeric.invert(pixel)),\n }\n}\n\nexport interface BandScale {\n map(value: string): number\n invert(pixel: number): string | null\n readonly bandwidth: number\n readonly domain: string[]\n readonly range: [number, number]\n}\n\nexport function bandScale(domain: string[], range: [number, number], padding = 0): BandScale {\n const [r0, r1] = range\n const step = domain.length === 0 ? 0 : (r1 - r0) / domain.length\n\n const gutter = Math.min(Math.max(padding, 0), 1)\n const bandwidth = step * (1 - gutter)\n return {\n domain,\n range,\n bandwidth,\n map: (value) => {\n const index = domain.indexOf(value)\n\n return index === -1 ? Number.NaN : r0 + index * step\n },\n invert: (pixel) => {\n if (step === 0) return null\n const index = Math.floor((pixel - r0) / step)\n return index >= 0 && index < domain.length ? domain[index] : null\n },\n }\n}\n","import { Injectable, InjectionToken, computed, signal, type Signal } from '@angular/core'\nimport { bandScale, linearScale, timeScale, type BandScale, type Scale } from '../primitives/scales'\n\nexport interface ChartMargin {\n top: number\n right: number\n bottom: number\n left: number\n}\n\nexport interface ChartBox {\n readonly width: number\n readonly height: number\n readonly margin: ChartMargin\n readonly innerWidth: number\n readonly innerHeight: number\n}\n\nexport type LinearAxisSpec = { kind: 'linear'; domain: [number, number] }\n\nexport type PointValue = number | Date | string\n\nexport type AxisSpec =\n | LinearAxisSpec\n | { kind: 'time'; domain: [Date, Date] }\n | { kind: 'band'; domain: string[]; padding?: number }\n\nconst EMPTY_BOX: ChartBox = {\n width: 0,\n height: 0,\n margin: { top: 0, right: 0, bottom: 0, left: 0 },\n innerWidth: 0,\n innerHeight: 0,\n}\n\nexport interface ChartReader {\n readonly box: Signal<ChartBox>\n readonly xSpec: Signal<AxisSpec>\n readonly ySpec: Signal<LinearAxisSpec>\n readonly xScale: Signal<Scale<number> | Scale<Date> | BandScale>\n readonly yScale: Signal<Scale<number>>\n readonly activeIndex: Signal<number | null>\n readonly pointValues: Signal<PointValue[]>\n readonly activePosition: Signal<number | null>\n}\n\nexport const CHART_CONTEXT = new InjectionToken<ChartReader>('gbt-chart-context')\n\n@Injectable()\nexport class ChartContext implements ChartReader {\n private readonly _box = signal<ChartBox>(EMPTY_BOX)\n private readonly _xSpec = signal<AxisSpec>({ kind: 'linear', domain: [0, 1] })\n private readonly _ySpec = signal<LinearAxisSpec>({ kind: 'linear', domain: [0, 1] })\n private readonly _activeIndex = signal<number | null>(null)\n private readonly _pointValues = signal<PointValue[]>([])\n\n readonly box = this._box.asReadonly()\n readonly xSpec = this._xSpec.asReadonly()\n readonly ySpec = this._ySpec.asReadonly()\n readonly activeIndex = this._activeIndex.asReadonly()\n readonly pointValues = this._pointValues.asReadonly()\n\n readonly xScale = computed<Scale<number> | Scale<Date> | BandScale>(() => {\n const spec = this._xSpec()\n const range: [number, number] = [0, this._box().innerWidth]\n if (spec.kind === 'time') return timeScale(spec.domain, range)\n if (spec.kind === 'band') return bandScale(spec.domain, range, spec.padding ?? 0)\n return linearScale(spec.domain, range)\n })\n\n readonly yScale = computed<Scale<number>>(() =>\n linearScale(this._ySpec().domain, [this._box().innerHeight, 0]),\n )\n\n readonly pointPositions = computed<number[]>(() => {\n const kind = this._xSpec().kind\n const scale = this.xScale()\n return this._pointValues().map((value) =>\n kind === 'band'\n ? (scale as BandScale).map(value as string) + (scale as BandScale).bandwidth / 2\n : (scale as Scale<number> | Scale<Date>).map(value as never),\n )\n })\n\n readonly activePosition = computed<number | null>(() => {\n const index = this._activeIndex()\n if (index === null) return null\n return this.pointPositions()[index] ?? null\n })\n\n setPointValues(values: PointValue[]): void {\n this._pointValues.set(values)\n }\n\n setGeometry(box: ChartBox): void {\n this._box.set(box)\n }\n\n setSpecs(x: AxisSpec, y: LinearAxisSpec): void {\n this._xSpec.set(x)\n this._ySpec.set(y)\n }\n\n setActiveIndex(index: number | null): void {\n this._activeIndex.set(index)\n }\n}\n","export const ESTIMATED_CHAR_WIDTH = 6.5\n\nexport const LABEL_GAP = 8\n\nexport function estimateLabelWidth(label: string): number {\n return label.length * ESTIMATED_CHAR_WIDTH\n}\n","export function niceTicks(min: number, max: number, count: number): number[] {\n if (!Number.isFinite(min) || !Number.isFinite(max)) return []\n\n if (min === max) return [min]\n\n if (max < min) return niceTicks(max, min, count)\n\n const rawStep = (max - min) / Math.max(1, count)\n const magnitude = 10 ** Math.floor(Math.log10(rawStep))\n const normalized = rawStep / magnitude\n const step = magnitude * (normalized <= 1 ? 1 : normalized <= 2 ? 2 : normalized <= 5 ? 5 : 10)\n\n const first = Math.floor(min / step) * step\n const last = Math.ceil(max / step) * step\n\n const decimals = Math.max(0, -Math.floor(Math.log10(step)))\n\n const ticks: number[] = []\n\n for (let value = first; value <= last + step / 1e9; value += step) {\n ticks.push(Number(value.toFixed(decimals)))\n }\n return ticks\n}\n\nexport type TimeUnit = 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year'\n\nexport interface TimeTicks {\n readonly values: Date[]\n readonly unit: TimeUnit\n format(date: Date, locale: string): string\n}\n\nconst SECOND = 1000\nconst MINUTE = 60 * SECOND\nconst HOUR = 60 * MINUTE\nconst DAY = 24 * HOUR\n\nconst STEPS: { ms: number; unit: TimeUnit; months?: number }[] = [\n { ms: SECOND, unit: 'second' },\n { ms: 5 * SECOND, unit: 'second' },\n { ms: 15 * SECOND, unit: 'second' },\n { ms: 30 * SECOND, unit: 'second' },\n { ms: MINUTE, unit: 'minute' },\n { ms: 5 * MINUTE, unit: 'minute' },\n { ms: 15 * MINUTE, unit: 'minute' },\n { ms: 30 * MINUTE, unit: 'minute' },\n { ms: HOUR, unit: 'hour' },\n { ms: 3 * HOUR, unit: 'hour' },\n { ms: 6 * HOUR, unit: 'hour' },\n { ms: 12 * HOUR, unit: 'hour' },\n { ms: DAY, unit: 'day' },\n { ms: 2 * DAY, unit: 'day' },\n { ms: 7 * DAY, unit: 'day' },\n { ms: 30 * DAY, unit: 'month', months: 1 },\n { ms: 90 * DAY, unit: 'month', months: 3 },\n { ms: 365 * DAY, unit: 'year', months: 12 },\n]\n\nconst FORMATS: Record<TimeUnit, Intl.DateTimeFormatOptions> = {\n second: { hour: '2-digit', minute: '2-digit', second: '2-digit' },\n minute: { hour: '2-digit', minute: '2-digit' },\n hour: { hour: '2-digit', minute: '2-digit' },\n day: { day: '2-digit', month: '2-digit' },\n month: { month: 'short', year: 'numeric' },\n year: { year: 'numeric' },\n}\n\nconst MIN_PIXELS_PER_TICK = 60\n\nexport function timeTicks(start: Date, end: Date, pixelWidth: number): TimeTicks {\n const span = end.getTime() - start.getTime()\n const makeFormatter = (unit: TimeUnit) => (date: Date, locale: string) =>\n new Intl.DateTimeFormat(locale, { ...FORMATS[unit], timeZone: 'UTC' }).format(date)\n\n if (span <= 0) {\n return { values: [start], unit: 'day', format: makeFormatter('day') }\n }\n\n const maxTicks = Math.max(2, Math.floor(pixelWidth / MIN_PIXELS_PER_TICK))\n\n const coarsest = STEPS[STEPS.length - 1]\n const chosen = STEPS.find((step) => span / step.ms + 1 <= maxTicks) ?? {\n ...coarsest,\n months: coarsest.months! * Math.max(1, Math.ceil((span / coarsest.ms + 1) / maxTicks)),\n }\n\n const values: Date[] = []\n if (chosen.months) {\n const step = chosen.months\n const cursor =\n step >= 12\n ? new Date(Date.UTC(Math.floor(start.getUTCFullYear() / (step / 12)) * (step / 12), 0, 1))\n : new Date(\n Date.UTC(start.getUTCFullYear(), Math.floor(start.getUTCMonth() / step) * step, 1),\n )\n while (cursor.getTime() < start.getTime()) cursor.setUTCMonth(cursor.getUTCMonth() + step)\n while (cursor.getTime() <= end.getTime()) {\n values.push(new Date(cursor))\n cursor.setUTCMonth(cursor.getUTCMonth() + step)\n }\n } else {\n const first = Math.ceil(start.getTime() / chosen.ms) * chosen.ms\n for (let t = first; t <= end.getTime(); t += chosen.ms) {\n values.push(new Date(t))\n }\n }\n\n if (values.length === 0) values.push(start)\n\n return { values, unit: chosen.unit, format: makeFormatter(chosen.unit) }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core'\nimport { CHART_CONTEXT, type ChartReader } from '../chart-context/chart-context'\nimport { LABEL_GAP, estimateLabelWidth } from '../primitives/label'\nimport { formatCompact } from '@masmarino/gabarit/format'\nimport { niceTicks, timeTicks } from '../primitives/ticks'\nimport { type BandScale, type Scale } from '../primitives/scales'\n\ninterface Tick {\n key: string\n x: number\n y: number\n label: string\n\n date: string | null\n anchor: 'start' | 'middle' | 'end'\n}\n\n@Component({\n selector: 'g[gbtChartAxis]',\n standalone: true,\n imports: [],\n templateUrl: './chart-axis.html',\n styleUrl: './chart-axis.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.transform]': 'groupTransform()',\n '[attr.axis]': 'axis()',\n 'aria-hidden': 'true',\n },\n})\nexport class ChartAxis {\n private readonly context: ChartReader = inject(CHART_CONTEXT)\n\n axis = input.required<'x' | 'y'>()\n locale = input.required<string>()\n tickCount = input(5)\n format = input<((value: never) => string) | null>(null)\n grid = input(false, { transform: booleanAttribute })\n\n protected readonly groupTransform = computed(() => {\n const box = this.context.box()\n\n return this.axis() === 'x' ? `translate(0,${box.innerHeight})` : 'translate(0,0)'\n })\n\n protected readonly ticks = computed<Tick[]>(() => {\n if (this.axis() === 'y') return this.yTicks()\n const ticks = this.xTicks()\n\n if (this.context.xSpec().kind === 'band') return ticks\n\n const last = ticks.length - 1\n return ticks.map((tick, index) => ({\n ...tick,\n anchor: index === 0 ? 'start' : index === last ? 'end' : 'middle',\n }))\n })\n\n protected readonly gridLines = computed<number[]>(() => {\n if (!this.grid() || this.axis() !== 'y') return []\n return this.yTicks().map((tick) => tick.y - 4)\n })\n\n protected readonly innerWidth = computed(() => this.context.box().innerWidth)\n\n private yTicks(): Tick[] {\n const spec = this.context.ySpec()\n const scale = this.context.yScale()\n const custom = this.format()\n return niceTicks(spec.domain[0], spec.domain[1], this.tickCount()).map((value) => ({\n key: `y-${value}`,\n x: -8,\n y: scale.map(value) + 4,\n label: custom ? custom(value as never) : formatCompact(value, this.locale()),\n date: null,\n anchor: 'end',\n }))\n }\n\n private xTicks(): Tick[] {\n const spec = this.context.xSpec()\n const box = this.context.box()\n const custom = this.format()\n\n if (spec.kind === 'band') {\n const scale = this.context.xScale() as BandScale\n\n const labels = spec.domain.map((category) => (custom ? custom(category as never) : category))\n const step = spec.domain.length === 0 ? 0 : box.innerWidth / spec.domain.length\n const widest = labels.reduce((large, label) => Math.max(large, estimateLabelWidth(label)), 0)\n const keepEvery = Math.max(1, Math.ceil((widest + LABEL_GAP) / Math.max(step, 1)))\n\n return spec.domain\n .map((category, index) => ({\n key: `x-${category}`,\n x: scale.map(category) + scale.bandwidth / 2,\n y: 20,\n label: labels[index],\n date: null,\n anchor: 'middle' as const,\n }))\n .filter((_, index) => index % keepEvery === 0)\n }\n\n if (spec.kind === 'time') {\n const scale = this.context.xScale() as Scale<Date>\n const result = timeTicks(spec.domain[0], spec.domain[1], box.innerWidth)\n\n const fine = result.unit === 'hour' || result.unit === 'minute' || result.unit === 'second'\n const days = new Set(result.values.map((v) => v.toISOString().slice(0, 10)))\n const multiDay = days.size > 1\n const seen = new Set<string>()\n\n return result.values.map((value) => {\n const day = value.toISOString().slice(0, 10)\n\n const first = fine && multiDay && !seen.has(day)\n seen.add(day)\n\n return {\n key: `x-${value.getTime()}`,\n x: scale.map(value),\n y: first ? 14 : 20,\n label: custom ? custom(value as never) : result.format(value, this.locale()),\n date: first\n ? new Intl.DateTimeFormat(this.locale(), {\n day: '2-digit',\n month: '2-digit',\n timeZone: 'UTC',\n }).format(value)\n : null,\n anchor: 'middle',\n }\n })\n }\n\n const scale = this.context.xScale() as Scale<number>\n return niceTicks(spec.domain[0], spec.domain[1], this.tickCount()).map((value) => ({\n key: `x-${value}`,\n x: scale.map(value),\n y: 20,\n label: custom ? custom(value as never) : formatCompact(value, this.locale()),\n date: null,\n anchor: 'middle',\n }))\n }\n}\n","@for (y of gridLines(); track $index) {\n <svg:line\n class=\"gbt-chart-axis__grid\"\n x1=\"0\"\n [attr.x2]=\"innerWidth()\"\n [attr.y1]=\"y\"\n [attr.y2]=\"y\"\n />\n}\n@for (tick of ticks(); track tick.key) {\n <svg:text\n class=\"gbt-chart-axis__label\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"tick.y\"\n [attr.text-anchor]=\"tick.anchor\"\n >\n @if (tick.date) {\n <svg:tspan [attr.x]=\"tick.x\" dy=\"0\">{{ tick.label }}</svg:tspan>\n <svg:tspan [attr.x]=\"tick.x\" dy=\"1.1em\">{{ tick.date }}</svg:tspan>\n } @else {\n {{ tick.label }}\n }\n </svg:text>\n}\n","import { niceTicks } from '../primitives/ticks'\n\nexport interface ChartPoint<X> {\n x: X\n y: number\n\n display?: string\n}\n\nexport interface ChartSeries<X> {\n label: string\n points: ChartPoint<X>[]\n\n pattern?: 'solid' | 'dashed' | 'dotted'\n}\n\nexport interface ChartInterval {\n start: Date\n end: Date\n label: string\n}\n\nconst DAY = 86400000\n\nexport function yDomain<X>(series: ChartSeries<X>[], includeZero: boolean): [number, number] {\n const values = series.flatMap((s) => s.points.map((p) => p.y))\n\n if (values.length === 0) return [0, 1]\n\n let min = Math.min(...values)\n let max = Math.max(...values)\n if (includeZero) {\n min = Math.min(min, 0)\n max = Math.max(max, 0)\n }\n\n if (min === max) return [min, min + 1]\n return [min, max]\n}\n\nexport function numericXDomain(series: ChartSeries<number>[]): [number, number] {\n const values = series.flatMap((s) => s.points.map((p) => p.x))\n if (values.length === 0) return [0, 1]\n const min = Math.min(...values)\n const max = Math.max(...values)\n return min === max ? [min, min + 1] : [min, max]\n}\n\nexport function timeXDomain(series: ChartSeries<Date>[]): [Date, Date] {\n const values = series.flatMap((s) => s.points.map((p) => p.x.getTime()))\n\n if (values.length === 0) return [new Date(-DAY), new Date(0)]\n const min = Math.min(...values)\n const max = Math.max(...values)\n return min === max ? [new Date(min), new Date(min + DAY)] : [new Date(min), new Date(max)]\n}\n\nexport function longestSeriesLength<X>(series: ChartSeries<X>[]): number {\n return series.reduce((longest, s) => Math.max(longest, s.points.length), 0)\n}\n\nexport function niceYDomain<X>(\n series: ChartSeries<X>[],\n includeZero: boolean,\n tickCount: number,\n): [number, number] {\n const [min, max] = yDomain(series, includeZero)\n const ticks = niceTicks(min, max, tickCount)\n\n if (ticks.length === 0) return [min, max]\n return [ticks[0], ticks[ticks.length - 1]]\n}\n\nexport function niceXDomain(series: ChartSeries<number>[], tickCount: number): [number, number] {\n const [min, max] = numericXDomain(series)\n const ticks = niceTicks(min, max, tickCount)\n if (ticks.length === 0) return [min, max]\n return [ticks[0], ticks[ticks.length - 1]]\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core'\n\n@Component({\n selector: 'gbt-chart-empty',\n standalone: true,\n imports: [],\n templateUrl: './chart-empty.html',\n styleUrl: './chart-empty.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartEmpty {\n message = input.required<string>()\n actionLabel = input<string>('')\n\n action = output<void>()\n}\n","<div class=\"gbt-chart-empty\" role=\"status\">\n <div class=\"gbt-chart-empty__icon\" aria-hidden=\"true\">\n <ng-content select=\"[gbtChartEmptyIcon]\" />\n </div>\n <p class=\"gbt-chart-empty__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"gbt-chart-empty__action\" (click)=\"action.emit()\">\n {{ actionLabel() }}\n </button>\n }\n</div>\n","export function nearestIndex(sorted: number[], target: number): number {\n if (sorted.length === 0) return -1\n\n let low = 0\n let high = sorted.length - 1\n while (low < high) {\n const mid = (low + high) >> 1\n if (sorted[mid] < target) low = mid + 1\n else high = mid\n }\n\n const previous = low - 1\n if (previous < 0) return low\n return target - sorted[previous] <= sorted[low] - target ? previous : low\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core'\nimport {\n CHART_CONTEXT,\n ChartContext,\n type AxisSpec,\n type ChartMargin,\n type LinearAxisSpec,\n type PointValue,\n} from '../chart-context/chart-context'\nimport { nearestIndex } from '../primitives/nearest'\n\nconst DEFAULT_MARGIN: ChartMargin = { top: 16, right: 8, bottom: 32, left: 48 }\n\n@Component({\n selector: 'gbt-chart-frame',\n standalone: true,\n imports: [],\n templateUrl: './chart-frame.html',\n styleUrl: './chart-frame.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [ChartContext, { provide: CHART_CONTEXT, useExisting: ChartContext }],\n})\nexport class ChartFrame {\n private readonly context = inject(ChartContext)\n\n label = input.required<string>()\n heading = input('')\n headingLevel = input<1 | 2 | 3 | 4 | 5 | 6>(2)\n headline = input('')\n trend = input('')\n x = input.required<AxisSpec>()\n y = input.required<LinearAxisSpec>()\n margin = input<Partial<ChartMargin>>({})\n size = input<{ width: number; height: number } | null>(null)\n pointValues = input<PointValue[]>([])\n\n readonly activeIndexChange = output<number | null>()\n\n private readonly surface = viewChild.required<ElementRef<HTMLElement>>('surface')\n private readonly measured = signal<{ width: number; height: number } | null>(null)\n\n protected readonly ready = computed(() => this.context.box().innerWidth > 0)\n\n protected readonly viewBox = computed(() => {\n const b = this.context.box()\n return `0 0 ${b.width} ${b.height}`\n })\n\n protected readonly innerTransform = computed(() => {\n const m = this.context.box().margin\n return `translate(${m.left},${m.top})`\n })\n\n protected readonly activePosition = computed(() => this.context.activePosition())\n protected readonly innerHeight = computed(() => this.context.box().innerHeight)\n\n constructor() {\n effect(() => this.activeIndexChange.emit(this.context.activeIndex()))\n\n effect(() => {\n const margin = { ...DEFAULT_MARGIN, ...this.margin() }\n const size = this.size() ?? this.measured()\n const width = size?.width ?? 0\n const height = size?.height ?? 0\n this.context.setSpecs(this.x(), this.y())\n this.context.setPointValues(this.pointValues())\n this.context.setGeometry({\n width,\n height,\n margin,\n innerWidth: Math.max(0, width - margin.left - margin.right),\n innerHeight: Math.max(0, height - margin.top - margin.bottom),\n })\n })\n\n effect((onCleanup) => {\n if (this.size() || typeof ResizeObserver === 'undefined') return\n\n const element = this.surface().nativeElement\n const observer = new ResizeObserver((entries) => {\n const rect = entries[0]?.contentRect\n if (rect) this.measured.set({ width: rect.width, height: rect.height })\n })\n observer.observe(element)\n onCleanup(() => observer.disconnect())\n })\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const count = this.pointValues().length\n if (count === 0) return\n\n const current = this.context.activeIndex()\n const last = count - 1\n\n switch (event.key) {\n case 'ArrowRight':\n this.context.setActiveIndex(current === null ? 0 : Math.min(last, current + 1))\n break\n case 'ArrowLeft':\n this.context.setActiveIndex(current === null ? last : Math.max(0, current - 1))\n break\n case 'Home':\n this.context.setActiveIndex(0)\n break\n case 'End':\n this.context.setActiveIndex(last)\n break\n case 'Escape':\n this.context.setActiveIndex(null)\n break\n default:\n return\n }\n\n event.preventDefault()\n }\n\n protected onBlur(): void {\n this.context.setActiveIndex(null)\n }\n\n protected onPointerMove(event: PointerEvent | MouseEvent): void {\n const positions = this.context.pointPositions()\n if (positions.length === 0) return\n\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect()\n const local = event.clientX - rect.left - this.context.box().margin.left\n\n this.context.setActiveIndex(nearestIndex(positions, local))\n }\n\n protected onPointerLeave(event: PointerEvent | MouseEvent): void {\n const surface = event.currentTarget as HTMLElement\n if (surface.ownerDocument.activeElement === surface) return\n this.context.setActiveIndex(null)\n }\n}\n","<div class=\"gbt-chart-frame\">\n @if (heading()) {\n <div class=\"gbt-chart-frame__header\">\n @switch (headingLevel()) {\n @case (1) {\n <h1 class=\"gbt-chart-frame__title\">{{ heading() }}</h1>\n }\n @case (3) {\n <h3 class=\"gbt-chart-frame__title\">{{ heading() }}</h3>\n }\n @case (4) {\n <h4 class=\"gbt-chart-frame__title\">{{ heading() }}</h4>\n }\n @case (5) {\n <h5 class=\"gbt-chart-frame__title\">{{ heading() }}</h5>\n }\n @case (6) {\n <h6 class=\"gbt-chart-frame__title\">{{ heading() }}</h6>\n }\n @default {\n <h2 class=\"gbt-chart-frame__title\">{{ heading() }}</h2>\n }\n }\n @if (headline()) {\n <p class=\"gbt-chart-frame__headline\">{{ headline() }}</p>\n }\n @if (trend()) {\n <p class=\"gbt-chart-frame__trend\">{{ trend() }}</p>\n }\n </div>\n }\n\n <div\n #surface\n class=\"gbt-chart-frame__surface\"\n [attr.tabindex]=\"ready() && pointValues().length > 0 ? 0 : null\"\n [attr.role]=\"ready() ? 'group' : null\"\n [attr.aria-label]=\"ready() ? label() : null\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n @if (ready()) {\n <svg\n class=\"gbt-chart-frame__svg\"\n [attr.viewBox]=\"viewBox()\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g [attr.transform]=\"innerTransform()\">\n <ng-content select=\"[gbtChartLayer]\" />\n @if (activePosition() !== null) {\n <line\n class=\"gbt-chart-frame__guide\"\n [attr.x1]=\"activePosition()\"\n [attr.x2]=\"activePosition()\"\n y1=\"0\"\n [attr.y2]=\"innerHeight()\"\n aria-hidden=\"true\"\n />\n }\n </g>\n </svg>\n <ng-content select=\"gbt-chart-tooltip\" />\n }\n </div>\n <ng-content select=\"gbt-chart-empty\" />\n <ng-content select=\"gbt-chart-table\" />\n</div>\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input, output } from '@angular/core'\n\nexport interface LegendEntry {\n label: string\n\n pattern?: 'solid' | 'dashed' | 'dotted'\n\n color?: string\n\n value?: string\n}\n\nconst DASH_ARRAYS: Record<NonNullable<LegendEntry['pattern']>, string> = {\n solid: 'none',\n dashed: '6 3',\n dotted: '1 3',\n}\n\n@Component({\n selector: 'gbt-chart-legend',\n standalone: true,\n imports: [],\n templateUrl: './chart-legend.html',\n styleUrl: './chart-legend.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartLegend {\n entries = input.required<LegendEntry[]>()\n\n interactive = input(false, { transform: booleanAttribute })\n activeIndex = input<number | null>(null)\n activeIndexChange = output<number | null>()\n\n protected dashArray(pattern: LegendEntry['pattern']): string {\n return DASH_ARRAYS[pattern ?? 'solid']\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n const target = event.currentTarget as HTMLElement\n if (target.ownerDocument.activeElement === target) return\n this.activeIndexChange.emit(null)\n }\n}\n","<ul class=\"gbt-chart-legend\">\n @for (entry of entries(); track $index) {\n <li\n class=\"gbt-chart-legend__item\"\n [class.gbt-chart-legend__item--active]=\"interactive() && activeIndex() === $index\"\n [attr.data-pattern]=\"entry.pattern ?? 'solid'\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n (mouseenter)=\"interactive() && activeIndexChange.emit($index)\"\n (mouseleave)=\"interactive() && onMouseLeave($event)\"\n (focus)=\"interactive() && activeIndexChange.emit($index)\"\n (blur)=\"interactive() && activeIndexChange.emit(null)\"\n >\n <svg class=\"gbt-chart-legend__swatch\" viewBox=\"0 0 24 8\" aria-hidden=\"true\" focusable=\"false\">\n @if (entry.color; as color) {\n <rect\n class=\"gbt-chart-legend__fill\"\n x=\"4\"\n y=\"0\"\n width=\"8\"\n height=\"8\"\n rx=\"2\"\n [attr.fill]=\"color\"\n />\n } @else {\n <line\n class=\"gbt-chart-legend__line\"\n x1=\"0\"\n y1=\"4\"\n x2=\"24\"\n y2=\"4\"\n [attr.stroke-dasharray]=\"dashArray(entry.pattern)\"\n stroke-width=\"2\"\n />\n }\n </svg>\n {{ entry.label }}\n @if (entry.value; as value) {\n <span class=\"gbt-chart-legend__value\">{{ value }}</span>\n }\n </li>\n }\n</ul>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core'\n\n@Component({\n selector: 'gbt-chart-table',\n standalone: true,\n imports: [],\n templateUrl: './chart-table.html',\n styleUrl: './chart-table.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartTable {\n caption = input.required<string>()\n columns = input.required<string[]>()\n rows = input.required<(string | number)[][]>()\n}\n","<div class=\"gbt-sr-only\">\n <table>\n <caption>\n {{\n caption()\n }}\n </caption>\n <thead>\n <tr>\n @for (column of columns(); track column) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of rows(); track $index) {\n <tr>\n @for (cell of row; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n</div>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core'\nimport { CHART_CONTEXT } from '../chart-context/chart-context'\n\nexport interface TooltipRow {\n label: string\n value: string\n\n series?: 1 | 2 | 3\n\n pattern?: 'solid' | 'dashed' | 'dotted'\n}\n\nexport interface TooltipPoint<X> {\n x: X\n\n header: string\n rows: TooltipRow[]\n}\n\n@Component({\n selector: 'gbt-chart-tooltip',\n standalone: true,\n imports: [],\n templateUrl: './chart-tooltip.html',\n styleUrl: './chart-tooltip.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChartTooltip<X> {\n private readonly context = inject(CHART_CONTEXT)\n\n points = input.required<TooltipPoint<X>[]>()\n\n protected readonly active = computed<TooltipPoint<X> | null>(() => {\n const index = this.context.activeIndex()\n if (index === null) return null\n return this.points()[index] ?? null\n })\n\n protected readonly left = computed(() => {\n const position = this.context.activePosition()\n if (position === null) return 0\n return position + this.context.box().margin.left\n })\n\n protected readonly anchor = computed<'start' | 'middle' | 'end'>(() => {\n const index = this.context.activeIndex()\n if (index === null) return 'middle'\n const last = this.context.pointValues().length - 1\n return index === 0 ? 'start' : index === last ? 'end' : 'middle'\n })\n}\n","<div class=\"gbt-chart-tooltip\" role=\"status\" aria-live=\"polite\">\n @if (active(); as point) {\n <div class=\"gbt-chart-tooltip__panel\" [style.left.px]=\"left()\" [attr.data-anchor]=\"anchor()\">\n <p class=\"gbt-chart-tooltip__header\">{{ point.header }}</p>\n <ul class=\"gbt-chart-tooltip__rows\">\n @for (row of point.rows; track $index) {\n <li>\n <span\n class=\"gbt-chart-tooltip__swatch\"\n [attr.data-series]=\"row.series ?? null\"\n [attr.data-pattern]=\"row.pattern ?? 'solid'\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"gbt-chart-tooltip__label\">{{ row.label }}</span>\n <span class=\"gbt-chart-tooltip__value\">{{ row.value }}</span>\n </li>\n }\n </ul>\n </div>\n }\n</div>\n","export interface Point {\n x: number\n y: number\n}\n\nconst round = (n: number): number => Number(n.toFixed(2))\n\nexport function linePath(points: Point[]): string {\n if (points.length === 0) return ''\n return points\n .map((point, index) => `${index === 0 ? 'M' : 'L'}${round(point.x)},${round(point.y)}`)\n .join('')\n}\n\nexport function areaPath(points: Point[], baseline: number): string {\n if (points.length === 0) return ''\n const last = points[points.length - 1]\n const first = points[0]\n return `${linePath(points)}L${round(last.x)},${round(baseline)}L${round(first.x)},${round(baseline)}Z`\n}\n\nexport interface Arc {\n startAngle: number\n endAngle: number\n innerRadius: number\n outerRadius: number\n}\n\nfunction arcPoint(radius: number, angle: number): Point {\n return { x: radius * Math.sin(angle), y: -radius * Math.cos(angle) }\n}\n\nfunction point(p: Point): string {\n return `${round(p.x)},${round(p.y)}`\n}\n\nconst FULL_CIRCLE = Math.PI * 2\n\nexport function arcPath(arc: Arc): string {\n const { startAngle, endAngle, innerRadius, outerRadius } = arc\n const span = endAngle - startAngle\n if (span <= 0) return ''\n if (span >= FULL_CIRCLE - 1e-9) {\n const mid = startAngle + Math.PI\n return (\n arcPath({ startAngle, endAngle: mid, innerRadius, outerRadius }) +\n arcPath({ startAngle: mid, endAngle: startAngle + FULL_CIRCLE, innerRadius, outerRadius })\n )\n }\n\n const largeArc = span > Math.PI ? 1 : 0\n const outerStart = arcPoint(outerRadius, startAngle)\n const outerEnd = arcPoint(outerRadius, endAngle)\n const outerArc = `A${round(outerRadius)},${round(outerRadius)} 0 ${largeArc},1 ${point(outerEnd)}`\n\n if (innerRadius <= 0) {\n return `M0,0L${point(outerStart)}${outerArc}Z`\n }\n\n const innerStart = arcPoint(innerRadius, startAngle)\n const innerEnd = arcPoint(innerRadius, endAngle)\n const innerArc = `A${round(innerRadius)},${round(innerRadius)} 0 ${largeArc},0 ${point(innerStart)}`\n return `M${point(outerStart)}${outerArc}L${point(innerEnd)}${innerArc}Z`\n}\n"],"mappings":";;;AAOA,SAAgB,YAAY,QAA0B,OAAuB;CAC3E,MAAM,CAAC,IAAI,MAAM;CACjB,MAAM,CAAC,IAAI,MAAM;CACjB,MAAM,OAAO,KAAK;CAElB,MAAM,QAAQ,SAAS,IAAI,KAAK,KAAK,MAAM;CAC3C,OAAO;EACL;EACA;EACA,MAAM,UAAU,MAAM,QAAQ,MAAM;EACpC,SAAS,UAAW,UAAU,IAAI,KAAK,MAAM,QAAQ,MAAM;CAC5D;AACH;AAEA,SAAgB,UAAU,QAAsB,OAAuB;CACrE,MAAM,UAAU,YAAY,CAAC,OAAO,EAAE,CAAC,QAAO,GAAI,OAAO,EAAE,CAAC,QAAO,CAAE,GAAG,KAAK;CAC7E,OAAO;EACL;EACA;EACA,MAAM,UAAU,QAAQ,IAAI,MAAM,QAAO,CAAE;EAC3C,SAAS,UAAU,IAAI,KAAK,QAAQ,OAAO,KAAK,CAAC;CAClD;AACH;AAUA,SAAgB,UAAU,QAAkB,OAAyB,UAAU,GAAC;CAC9E,MAAM,CAAC,IAAI,MAAM;CACjB,MAAM,OAAO,OAAO,WAAW,I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AAI,MAAM,QAAQ,IAAI,SAAQ;AACvE"}
@@ -94,7 +94,7 @@ var Checkbox = class Checkbox {
94
94
  }],
95
95
  ngImport: i0,
96
96
  template: "<label class=\"gbt-checkbox\" [class.gbt-checkbox--disabled]=\"isDisabled()\">\n <span class=\"gbt-checkbox__box\">\n <input\n type=\"checkbox\"\n [id]=\"id()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-describedby]=\"hint() ? hintId() : null\"\n (change)=\"onToggle($event)\"\n />\n </span>\n <span>{{ label() }}</span>\n</label>\n@if (hint()) {\n <p [id]=\"hintId()\" class=\"gbt-checkbox__hint\">{{ hint() }}</p>\n}\n",
97
- styles: [":host(.gbt-checkbox-host--hint){display:block}.gbt-checkbox{position:relative;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-primary);cursor:pointer}.gbt-checkbox:before{content:\"\";position:absolute;inset:50% auto auto 50%;width:max(100%,24px);height:max(100%,24px);transform:translate(-50%,-50%)}.gbt-checkbox--disabled{cursor:not-allowed;opacity:.5}.gbt-checkbox__box{position:relative;flex-shrink:0;width:1rem;height:1rem;border:1.5px solid var(--border-color);border-radius:8px;background:var(--gbt-glass-thin, transparent);transition:background-color .15s ease-out,border-color .15s ease-out}.gbt-checkbox__box:after{content:\"\";position:absolute;inset:0;background:var(--text-on-primary);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;opacity:0}.gbt-checkbox__box:has(input:checked){border-color:var(--primary);background:var(--primary)}.gbt-checkbox__box:has(input:checked):after{opacity:1}.gbt-checkbox__box:has(input:focus-visible){outline:2px solid var(--focus-ring, var(--primary));outline-offset:2px}.gbt-checkbox__box input{position:absolute;inset:-1.5px;margin:0;width:calc(100% + 3px);height:calc(100% + 3px);appearance:none;border-radius:inherit;background:transparent;cursor:inherit;outline:none}@media(prefers-reduced-motion:reduce){.gbt-checkbox__box{transition:none}}@media(forced-colors:active){.gbt-checkbox__box{border-color:CanvasText}.gbt-checkbox__box:has(input:checked){background:Highlight}.gbt-checkbox__box:after{background:HighlightText}}.gbt-checkbox:hover:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-hover)}.gbt-checkbox:active:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-press)}.gbt-checkbox__hint{margin:.125rem 0 0;padding-left:1.5rem;font-size:.75rem;line-height:1.4;color:var(--text-secondary)}\n"],
97
+ styles: [":host(.gbt-checkbox-host--hint){display:block}.gbt-checkbox{position:relative;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-primary);cursor:pointer}.gbt-checkbox:before{content:\"\";position:absolute;inset:50% auto auto 50%;width:max(100%,24px);height:max(100%,24px);transform:translate(-50%,-50%)}.gbt-checkbox--disabled{cursor:not-allowed;opacity:.5}.gbt-checkbox__box{position:relative;flex-shrink:0;width:1rem;height:1rem;border:1.5px solid var(--border-color);border-radius:8px;background:var(--gbt-glass-thin, transparent);transition:background-color .15s ease-out,border-color .15s ease-out}.gbt-checkbox__box:after{content:\"\";position:absolute;inset:0;background:var(--gbt-ground-on-accent, var(--text-on-primary));-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;opacity:0}.gbt-checkbox__box:has(input:checked){border-color:var(--gbt-ground-accent, var(--primary));background:var(--gbt-ground-accent, var(--primary))}.gbt-checkbox__box:has(input:checked):after{opacity:1}.gbt-checkbox__box:has(input:focus-visible){outline:2px solid var(--gbt-ground-accent, var(--focus-ring, var(--primary)));outline-offset:2px}.gbt-checkbox__box input{position:absolute;inset:-1.5px;margin:0;width:calc(100% + 3px);height:calc(100% + 3px);appearance:none;border-radius:inherit;background:transparent;cursor:inherit;outline:none}@media(prefers-reduced-motion:reduce){.gbt-checkbox__box{transition:none}}@media(forced-colors:active){.gbt-checkbox__box{border-color:CanvasText}.gbt-checkbox__box:has(input:checked){background:Highlight}.gbt-checkbox__box:after{background:HighlightText}}.gbt-checkbox:hover:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-hover)}.gbt-checkbox:active:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-press)}.gbt-checkbox__hint{margin:.125rem 0 0;padding-left:1.5rem;font-size:.75rem;line-height:1.4;color:var(--text-secondary)}\n"],
98
98
  changeDetection: i0.ChangeDetectionStrategy.OnPush
99
99
  });
100
100
  };
@@ -116,7 +116,7 @@ i0.ɵɵngDeclareClassMetadata({
116
116
  multi: true
117
117
  }],
118
118
  template: "<label class=\"gbt-checkbox\" [class.gbt-checkbox--disabled]=\"isDisabled()\">\n <span class=\"gbt-checkbox__box\">\n <input\n type=\"checkbox\"\n [id]=\"id()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-describedby]=\"hint() ? hintId() : null\"\n (change)=\"onToggle($event)\"\n />\n </span>\n <span>{{ label() }}</span>\n</label>\n@if (hint()) {\n <p [id]=\"hintId()\" class=\"gbt-checkbox__hint\">{{ hint() }}</p>\n}\n",
119
- styles: [":host(.gbt-checkbox-host--hint){display:block}.gbt-checkbox{position:relative;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-primary);cursor:pointer}.gbt-checkbox:before{content:\"\";position:absolute;inset:50% auto auto 50%;width:max(100%,24px);height:max(100%,24px);transform:translate(-50%,-50%)}.gbt-checkbox--disabled{cursor:not-allowed;opacity:.5}.gbt-checkbox__box{position:relative;flex-shrink:0;width:1rem;height:1rem;border:1.5px solid var(--border-color);border-radius:8px;background:var(--gbt-glass-thin, transparent);transition:background-color .15s ease-out,border-color .15s ease-out}.gbt-checkbox__box:after{content:\"\";position:absolute;inset:0;background:var(--text-on-primary);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;opacity:0}.gbt-checkbox__box:has(input:checked){border-color:var(--primary);background:var(--primary)}.gbt-checkbox__box:has(input:checked):after{opacity:1}.gbt-checkbox__box:has(input:focus-visible){outline:2px solid var(--focus-ring, var(--primary));outline-offset:2px}.gbt-checkbox__box input{position:absolute;inset:-1.5px;margin:0;width:calc(100% + 3px);height:calc(100% + 3px);appearance:none;border-radius:inherit;background:transparent;cursor:inherit;outline:none}@media(prefers-reduced-motion:reduce){.gbt-checkbox__box{transition:none}}@media(forced-colors:active){.gbt-checkbox__box{border-color:CanvasText}.gbt-checkbox__box:has(input:checked){background:Highlight}.gbt-checkbox__box:after{background:HighlightText}}.gbt-checkbox:hover:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-hover)}.gbt-checkbox:active:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-press)}.gbt-checkbox__hint{margin:.125rem 0 0;padding-left:1.5rem;font-size:.75rem;line-height:1.4;color:var(--text-secondary)}\n"]
119
+ styles: [":host(.gbt-checkbox-host--hint){display:block}.gbt-checkbox{position:relative;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-primary);cursor:pointer}.gbt-checkbox:before{content:\"\";position:absolute;inset:50% auto auto 50%;width:max(100%,24px);height:max(100%,24px);transform:translate(-50%,-50%)}.gbt-checkbox--disabled{cursor:not-allowed;opacity:.5}.gbt-checkbox__box{position:relative;flex-shrink:0;width:1rem;height:1rem;border:1.5px solid var(--border-color);border-radius:8px;background:var(--gbt-glass-thin, transparent);transition:background-color .15s ease-out,border-color .15s ease-out}.gbt-checkbox__box:after{content:\"\";position:absolute;inset:0;background:var(--gbt-ground-on-accent, var(--text-on-primary));-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% no-repeat;opacity:0}.gbt-checkbox__box:has(input:checked){border-color:var(--gbt-ground-accent, var(--primary));background:var(--gbt-ground-accent, var(--primary))}.gbt-checkbox__box:has(input:checked):after{opacity:1}.gbt-checkbox__box:has(input:focus-visible){outline:2px solid var(--gbt-ground-accent, var(--focus-ring, var(--primary)));outline-offset:2px}.gbt-checkbox__box input{position:absolute;inset:-1.5px;margin:0;width:calc(100% + 3px);height:calc(100% + 3px);appearance:none;border-radius:inherit;background:transparent;cursor:inherit;outline:none}@media(prefers-reduced-motion:reduce){.gbt-checkbox__box{transition:none}}@media(forced-colors:active){.gbt-checkbox__box{border-color:CanvasText}.gbt-checkbox__box:has(input:checked){background:Highlight}.gbt-checkbox__box:after{background:HighlightText}}.gbt-checkbox:hover:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-hover)}.gbt-checkbox:active:not(:has(input:disabled)) .gbt-checkbox__box{box-shadow:0 0 0 3px var(--bg-press)}.gbt-checkbox__hint{margin:.125rem 0 0;padding-left:1.5rem;font-size:.75rem;line-height:1.4;color:var(--text-secondary)}\n"]
120
120
  }]
121
121
  }],
122
122
  propDecorators: {
@@ -1 +1 @@
1
- {"version":3,"file":"masmarino-gabarit-checkbox.mjs","names":[],"sources":["../../../projects/gabarit/checkbox/checkbox.ts","../../../projects/gabarit/checkbox/checkbox.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n signal,\n} from '@angular/core'\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'\n\nlet nextCheckboxId = 0\n\n@Component({\n selector: 'gbt-checkbox',\n standalone: true,\n templateUrl: './checkbox.html',\n styleUrl: './checkbox.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.gbt-checkbox-host--hint]': '!!hint()',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Checkbox),\n multi: true,\n },\n ],\n})\nexport class Checkbox implements ControlValueAccessor {\n id = input<string>(`gbt-checkbox-${++nextCheckboxId}`)\n label = input<string>('')\n disabled = input(false, { transform: booleanAttribute })\n hint = input<string>('')\n checked = model(false)\n\n protected readonly hintId = computed(() => `${this.id()}-hint`)\n\n private readonly formDisabled = signal(false)\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled())\n\n private onChange: (value: boolean) => void = () => {}\n private onTouched: () => void = () => {}\n\n writeValue(value: boolean): void {\n this.checked.set(!!value)\n }\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.onChange = fn\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled)\n }\n\n protected onToggle(event: Event): void {\n const value = (event.target as HTMLInputElement).checked\n this.checked.set(value)\n this.onChange(value)\n this.onTouched()\n }\n}\n","<label class=\"gbt-checkbox\" [class.gbt-checkbox--disabled]=\"isDisabled()\">\n <span class=\"gbt-checkbox__box\">\n <input\n type=\"checkbox\"\n [id]=\"id()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-describedby]=\"hint() ? hintId() : null\"\n (change)=\"onToggle($event)\"\n />\n </span>\n <span>{{ label() }}</span>\n</label>\n@if (hint()) {\n <p [id]=\"hintId()\" class=\"gbt-checkbox__hint\">{{ hint() }}</p>\n}\n"],"mappings":";;;AAYA,IAAI,iBAAiB;AAmBrB,IAAa,WAAb,MAAa,SAAQ;CACnB,KAAK,MAAc,gBAAgB,EAAE,kBAAiB,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACtD,QAAQ,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACzB,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACrD,OAAO,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACxB,UAAU,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAEH,SAAS,eAAe,GA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IAAA,mBAAA;GAAA;GAAA,SAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,SAAA,gBAAA;EAAA,MAAA,EAAA,YAAA,EAAA,iCAAA,WAAA,EAAA;EAAA,WARR,CACT;GACE,SAAS;GACT,aAAa,iBAAiB,QAAQ;GACtC,OAAO;EACR,CACF;EAAA,UAAA;EAAA,UC7BH;EAgBA,QAAA,CAAA,2wEAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;ADea,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAQ,YAAA,CAAA;EAjBpB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,YACZ;GAAI,iBAGC,wBAAwB;GAAM,MACzC,EACJ,mCAAmC,WACpC;GAAA,WACU,CACT;IACE,SAAS;IACT,aAAa,iBAAgB,QAAS;IACtC,OAAO;GACR,CACF;GAAA,UAAA;GAAA,QAAA,CAAA,2wEAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"masmarino-gabarit-checkbox.mjs","names":[],"sources":["../../../projects/gabarit/checkbox/checkbox.ts","../../../projects/gabarit/checkbox/checkbox.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n signal,\n} from '@angular/core'\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'\n\nlet nextCheckboxId = 0\n\n@Component({\n selector: 'gbt-checkbox',\n standalone: true,\n templateUrl: './checkbox.html',\n styleUrl: './checkbox.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.gbt-checkbox-host--hint]': '!!hint()',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Checkbox),\n multi: true,\n },\n ],\n})\nexport class Checkbox implements ControlValueAccessor {\n id = input<string>(`gbt-checkbox-${++nextCheckboxId}`)\n label = input<string>('')\n disabled = input(false, { transform: booleanAttribute })\n hint = input<string>('')\n checked = model(false)\n\n protected readonly hintId = computed(() => `${this.id()}-hint`)\n\n private readonly formDisabled = signal(false)\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled())\n\n private onChange: (value: boolean) => void = () => {}\n private onTouched: () => void = () => {}\n\n writeValue(value: boolean): void {\n this.checked.set(!!value)\n }\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.onChange = fn\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled)\n }\n\n protected onToggle(event: Event): void {\n const value = (event.target as HTMLInputElement).checked\n this.checked.set(value)\n this.onChange(value)\n this.onTouched()\n }\n}\n","<label class=\"gbt-checkbox\" [class.gbt-checkbox--disabled]=\"isDisabled()\">\n <span class=\"gbt-checkbox__box\">\n <input\n type=\"checkbox\"\n [id]=\"id()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-describedby]=\"hint() ? hintId() : null\"\n (change)=\"onToggle($event)\"\n />\n </span>\n <span>{{ label() }}</span>\n</label>\n@if (hint()) {\n <p [id]=\"hintId()\" class=\"gbt-checkbox__hint\">{{ hint() }}</p>\n}\n"],"mappings":";;;AAYA,IAAI,iBAAiB;AAmBrB,IAAa,WAAb,MAAa,SAAQ;CACnB,KAAK,MAAc,gBAAgB,EAAE,kBAAiB,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACtD,QAAQ,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACzB,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACrD,OAAO,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,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;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,MAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,SAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,SAAA,gBAAA;EAAA,MAAA,EAAA,YAAA,EAAA,iCAAA,WAAA,EAAA;EAAA,WARR,CACT;GACE,SAAS;GACT,aAAa,iBAAiB,QAAQ;GACtC,OAAO;EACR,CACF;EAAA,UAAA;EAAA,UC7BH;EAgBA,QAAA,CAAA,s3EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;ADea,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAQ,YAAA,CAAA;EAjBpB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,YACZ;GAAI,iBAGC,wBAAwB;GAAM,MACzC,EACJ,mCAAmC,WACpC;GAAA,WACU,CACT;IACE,SAAS;IACT,aAAa,iBAAgB,QAAS;IACtC,OAAO;GACR,CACF;GAAA,UAAA;GAAA,QAAA,CAAA,s3EAAA;EAAA,CAAA"}
@@ -349,7 +349,7 @@ var CommandPalette = class CommandPalette {
349
349
  }],
350
350
  ngImport: i0,
351
351
  template: "@if (open()) {\n <div class=\"gbt-cp__backdrop\" (mousedown)=\"onBackdropMousedown($event)\">\n <div\n class=\"gbt-cp\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"gbt-cp__field\">\n <gbt-icon name=\"search\" class=\"gbt-cp__field-icon\" aria-hidden=\"true\" />\n <input\n #input\n type=\"text\"\n class=\"gbt-cp__input\"\n role=\"combobox\"\n aria-expanded=\"true\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [placeholder]=\"placeholder()\"\n [value]=\"query()\"\n (input)=\"onInput($event)\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n />\n @if (loading()) {\n <gbt-spinner size=\"sm\" [label]=\"loadingLabel()\" />\n }\n <!-- Shown on phones only: without a keyboard, nothing else closes a palette that fills the screen. -->\n <button\n type=\"button\"\n class=\"gbt-cp__close\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <gbt-icon name=\"x\" aria-hidden=\"true\" />\n </button>\n </div>\n\n <!-- Clicking an option must not take the focus from the field. -->\n <div\n #list\n class=\"gbt-cp__list\"\n role=\"listbox\"\n [id]=\"listId\"\n [attr.aria-label]=\"ariaLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n >\n @for (group of visibleGroups(); track group.labelId) {\n <div class=\"gbt-cp__group\" role=\"group\" [attr.aria-labelledby]=\"group.labelId\">\n <div class=\"gbt-cp__group-label\" [id]=\"group.labelId\">{{ group.label }}</div>\n @for (entry of group.items; track entry.item.id) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"gbt-cp__item\"\n role=\"option\"\n [id]=\"optionId(entry.index)\"\n [attr.aria-selected]=\"optionId(entry.index) === activeId()\"\n [class.gbt-cp__item--active]=\"optionId(entry.index) === activeId()\"\n (mousemove)=\"activate(entry.index)\"\n (click)=\"select(entry.item)\"\n >\n @if (entry.item.icon) {\n <gbt-icon class=\"gbt-cp__item-icon\" [name]=\"entry.item.icon\" aria-hidden=\"true\" />\n }\n <span class=\"gbt-cp__item-text\">\n <span class=\"gbt-cp__item-label\">{{ entry.item.label }}</span>\n @if (entry.item.description) {\n <span class=\"gbt-cp__item-description\">{{ entry.item.description }}</span>\n }\n </span>\n @if (entry.item.shortcut?.length) {\n <span class=\"gbt-cp__item-shortcut\" aria-hidden=\"true\">\n @for (key of entry.item.shortcut; track $index) {\n <kbd class=\"gbt-cp__kbd\">{{ key }}</kbd>\n }\n </span>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"gbt-cp__empty\">{{ loading() ? loadingLabel() : emptyMessage() }}</p>\n }\n </div>\n\n <div class=\"gbt-cp__footer\" aria-hidden=\"true\">\n <span class=\"gbt-cp__hint\"\n ><kbd class=\"gbt-cp__kbd\">↑</kbd><kbd class=\"gbt-cp__kbd\">↓</kbd\n >{{ navigateHint() }}</span\n >\n <span class=\"gbt-cp__hint\"><kbd class=\"gbt-cp__kbd\">↵</kbd>{{ selectHint() }}</span>\n <span class=\"gbt-cp__hint\"><kbd class=\"gbt-cp__kbd\">Esc</kbd>{{ closeHint() }}</span>\n </div>\n <div class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n {{ announcement() }}\n </div>\n </div>\n </div>\n}\n",
352
- styles: [".gbt-cp__backdrop{position:fixed;inset:0;z-index:1300;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;background:#0006;animation:gbt-cp-fade-in .15s cubic-bezier(.4,0,.2,1) both}.gbt-cp{display:flex;flex-direction:column;width:min(640px,100%);max-height:min(560px,76vh);overflow:hidden;border-radius:var(--gbt-radius-glass);background:var(--gbt-glass-thick);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp{--gbt-nested-low: light-dark(color-mix(in srgb, var(--text-primary) 20%, transparent), transparent);--gbt-nested-low-soft: light-dark(color-mix(in srgb, var(--text-primary) 8%, transparent), transparent);--gbt-nested-contact: light-dark(var(--gbt-glass-shadow-near), transparent);--gbt-nested-hollow-shade: light-dark(color-mix(in srgb, var(--text-primary) 14%, transparent), transparent);--gbt-nested-hollow-trace: light-dark(color-mix(in srgb, var(--text-primary) 6%, transparent), transparent);--gbt-nested-hollow-light: light-dark(#fff, transparent);--gbt-nested-group-low: light-dark(color-mix(in srgb, var(--text-primary) 12%, transparent), transparent);--gbt-nested-group-shadow: light-dark(var(--gbt-glass-shadow), transparent);box-shadow:var(--gbt-depth-liquid),var(--gbt-depth-glass)}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid),var(--gbt-depth-glass)}}.gbt-cp{animation:gbt-cp-rise .18s cubic-bezier(.4,0,.2,1) both}.gbt-cp__field{display:flex;flex:none;align-items:center;gap:10px;padding:0 16px}.gbt-cp__field-icon{flex:none;color:var(--text-secondary)}.gbt-cp__close{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:44px;margin-inline-end:-12px;padding:0;border:none;border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:none;color:var(--text-secondary);cursor:pointer}.gbt-cp__close:hover{background:var(--bg-hover);color:var(--text-primary)}.gbt-cp__close:active{background:var(--bg-press);color:var(--text-primary)}.gbt-cp__close:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}.gbt-cp__input{flex:1;min-width:0;height:52px;padding:0;border:none;outline:none;background:transparent;color:var(--text-primary);font:inherit;font-size:16px}.gbt-cp__input::placeholder{color:var(--text-secondary)}.gbt-cp__list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:6px;overscroll-behavior:contain}.gbt-cp__group+.gbt-cp__group{margin-top:4px}.gbt-cp__group-label{padding:8px 10px 4px;color:var(--text-secondary);font-size:12px;font-weight:600}.gbt-cp__item{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 10px;border-radius:var(--gbt-radius-menu, var(--gbt-radius-row));color:var(--text-primary);cursor:pointer}.gbt-cp__item:hover{background:var(--bg-hover)}.gbt-cp__item:active{background:var(--bg-press)}.gbt-cp__item--active{background:color-mix(in srgb,var(--primary) 9%,transparent)}@media(forced-colors:active){.gbt-cp__item--active{outline:2px solid Highlight;outline-offset:-2px}}.gbt-cp__item-icon{flex:none;color:var(--text-secondary)}.gbt-cp__item--active .gbt-cp__item-icon{color:var(--primary)}.gbt-cp__item-text{display:flex;flex:1;align-items:baseline;gap:8px;min-width:0}.gbt-cp__item-label{flex:none;max-width:100%;overflow:hidden;font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-description{flex:1;min-width:0;overflow:hidden;color:var(--text-secondary);font-size:13px;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-shortcut{display:inline-flex;flex:none;gap:4px}.gbt-cp__kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:var(--bg-panel, var(--bg-principal));color:var(--text-secondary);font-family:inherit;font-size:11px;font-weight:600;line-height:1}.gbt-cp__empty{margin:0;padding:32px 16px;color:var(--text-secondary);font-size:14px;text-align:center}.gbt-cp__footer{display:flex;flex:none;flex-wrap:wrap;gap:4px 16px;padding:8px 16px 12px;color:var(--text-secondary);font-size:12px}.gbt-cp__hint{display:inline-flex;align-items:center;gap:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(max-width:599px){.gbt-cp__backdrop{padding:0}.gbt-cp{max-height:100dvh;border-width:0 0 1px;border-radius:0}.gbt-cp__item{min-height:44px}.gbt-cp__close{display:inline-flex}.gbt-cp__footer,.gbt-cp__item-shortcut{display:none}}@keyframes gbt-cp-fade-in{0%{opacity:0}}@keyframes gbt-cp-rise{0%{opacity:0;transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){.gbt-cp__backdrop,.gbt-cp{animation:none}}\n"],
352
+ styles: [".gbt-cp__backdrop{position:fixed;inset:0;z-index:1300;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;background:#0006;animation:gbt-cp-fade-in .15s cubic-bezier(.4,0,.2,1) both}.gbt-cp{display:flex;flex-direction:column;width:min(640px,100%);max-height:min(560px,76vh);overflow:hidden;border-radius:var(--gbt-radius-glass);background:var(--gbt-glass-thick);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp{--gbt-nested-low: light-dark(color-mix(in srgb, var(--text-primary) 20%, transparent), transparent);--gbt-nested-low-soft: light-dark(color-mix(in srgb, var(--text-primary) 8%, transparent), transparent);--gbt-nested-contact: light-dark(var(--gbt-glass-shadow-near), transparent);--gbt-nested-hollow-shade: light-dark(color-mix(in srgb, var(--text-primary) 14%, transparent), transparent);--gbt-nested-hollow-trace: light-dark(color-mix(in srgb, var(--text-primary) 6%, transparent), transparent);--gbt-nested-hollow-light: light-dark(#fff, transparent);--gbt-nested-group-low: light-dark(color-mix(in srgb, var(--text-primary) 12%, transparent), transparent);--gbt-nested-group-shadow: light-dark(var(--gbt-glass-shadow), transparent);box-shadow:var(--gbt-depth-liquid),var(--gbt-depth-glass)}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid),var(--gbt-depth-glass)}}.gbt-cp{animation:gbt-cp-rise .18s cubic-bezier(.4,0,.2,1) both}.gbt-cp__field{display:flex;flex:none;align-items:center;gap:10px;padding:0 16px}.gbt-cp__field-icon{flex:none;color:var(--text-secondary)}.gbt-cp__close{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:44px;margin-inline-end:-12px;padding:0;border:none;border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:none;color:var(--text-secondary);cursor:pointer}.gbt-cp__close:hover{background:var(--bg-hover);color:var(--text-primary)}.gbt-cp__close:active{background:var(--bg-press);color:var(--text-primary)}.gbt-cp__close:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}.gbt-cp__input{flex:1;min-width:0;height:52px;padding:0;border:none;outline:none;background:transparent;color:var(--text-primary);font:inherit;font-size:16px}.gbt-cp__input::placeholder{color:var(--text-secondary)}.gbt-cp__list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:6px;overscroll-behavior:contain}.gbt-cp__group+.gbt-cp__group{margin-top:4px}.gbt-cp__group-label{padding:8px 10px 4px;color:var(--text-secondary);font-size:12px;font-weight:600}.gbt-cp__item{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 10px;border-radius:var(--gbt-radius-menu, var(--gbt-radius-row));color:var(--text-primary);cursor:pointer}.gbt-cp__item:hover{background:var(--bg-hover)}.gbt-cp__item:active{background:var(--bg-press)}.gbt-cp__item--active{background:color-mix(in srgb,var(--primary) 9%,transparent)}@media(forced-colors:active){.gbt-cp__item--active{outline:2px solid Highlight;outline-offset:-2px}}.gbt-cp__item-icon{flex:none;color:var(--text-secondary)}.gbt-cp__item--active .gbt-cp__item-icon{color:var(--primary)}.gbt-cp__item-text{display:flex;flex:1;align-items:baseline;gap:8px;min-width:0}.gbt-cp__item-label{flex:none;max-width:100%;overflow:hidden;font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-description{flex:1;min-width:0;overflow:hidden;color:var(--text-secondary);font-size:13px;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-shortcut{display:inline-flex;flex:none;gap:4px}.gbt-cp__kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:var(--bg-panel, var(--bg-principal));color:var(--text-secondary);font-family:inherit;font-size:11px;font-weight:600;line-height:1}.gbt-cp__empty{margin:0;padding:32px 16px;color:var(--text-secondary);font-size:14px;text-align:center}.gbt-cp__footer{display:flex;flex:none;flex-wrap:wrap;gap:4px 16px;padding:8px 16px 12px;color:var(--text-secondary);font-size:12px}.gbt-cp__hint{display:inline-flex;align-items:center;gap:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(max-width:599px){.gbt-cp__backdrop{padding:0}.gbt-cp{max-height:100dvh;border-width:0 0 1px;border-radius:0}.gbt-cp__item{min-height:44px}.gbt-cp__close{display:inline-flex}.gbt-cp__footer,.gbt-cp__item-shortcut{display:none}}@keyframes gbt-cp-fade-in{0%{opacity:0}}@keyframes gbt-cp-rise{0%{opacity:0;transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){.gbt-cp__backdrop,.gbt-cp{animation:none}}\n"],
353
353
  dependencies: [{
354
354
  kind: "component",
355
355
  type: Icon,
@@ -377,7 +377,7 @@ i0.ɵɵngDeclareClassMetadata({
377
377
  imports: [Icon, Spinner],
378
378
  changeDetection: ChangeDetectionStrategy.OnPush,
379
379
  template: "@if (open()) {\n <div class=\"gbt-cp__backdrop\" (mousedown)=\"onBackdropMousedown($event)\">\n <div\n class=\"gbt-cp\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"gbt-cp__field\">\n <gbt-icon name=\"search\" class=\"gbt-cp__field-icon\" aria-hidden=\"true\" />\n <input\n #input\n type=\"text\"\n class=\"gbt-cp__input\"\n role=\"combobox\"\n aria-expanded=\"true\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [placeholder]=\"placeholder()\"\n [value]=\"query()\"\n (input)=\"onInput($event)\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n />\n @if (loading()) {\n <gbt-spinner size=\"sm\" [label]=\"loadingLabel()\" />\n }\n <!-- Shown on phones only: without a keyboard, nothing else closes a palette that fills the screen. -->\n <button\n type=\"button\"\n class=\"gbt-cp__close\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <gbt-icon name=\"x\" aria-hidden=\"true\" />\n </button>\n </div>\n\n <!-- Clicking an option must not take the focus from the field. -->\n <div\n #list\n class=\"gbt-cp__list\"\n role=\"listbox\"\n [id]=\"listId\"\n [attr.aria-label]=\"ariaLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n >\n @for (group of visibleGroups(); track group.labelId) {\n <div class=\"gbt-cp__group\" role=\"group\" [attr.aria-labelledby]=\"group.labelId\">\n <div class=\"gbt-cp__group-label\" [id]=\"group.labelId\">{{ group.label }}</div>\n @for (entry of group.items; track entry.item.id) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"gbt-cp__item\"\n role=\"option\"\n [id]=\"optionId(entry.index)\"\n [attr.aria-selected]=\"optionId(entry.index) === activeId()\"\n [class.gbt-cp__item--active]=\"optionId(entry.index) === activeId()\"\n (mousemove)=\"activate(entry.index)\"\n (click)=\"select(entry.item)\"\n >\n @if (entry.item.icon) {\n <gbt-icon class=\"gbt-cp__item-icon\" [name]=\"entry.item.icon\" aria-hidden=\"true\" />\n }\n <span class=\"gbt-cp__item-text\">\n <span class=\"gbt-cp__item-label\">{{ entry.item.label }}</span>\n @if (entry.item.description) {\n <span class=\"gbt-cp__item-description\">{{ entry.item.description }}</span>\n }\n </span>\n @if (entry.item.shortcut?.length) {\n <span class=\"gbt-cp__item-shortcut\" aria-hidden=\"true\">\n @for (key of entry.item.shortcut; track $index) {\n <kbd class=\"gbt-cp__kbd\">{{ key }}</kbd>\n }\n </span>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"gbt-cp__empty\">{{ loading() ? loadingLabel() : emptyMessage() }}</p>\n }\n </div>\n\n <div class=\"gbt-cp__footer\" aria-hidden=\"true\">\n <span class=\"gbt-cp__hint\"\n ><kbd class=\"gbt-cp__kbd\">↑</kbd><kbd class=\"gbt-cp__kbd\">↓</kbd\n >{{ navigateHint() }}</span\n >\n <span class=\"gbt-cp__hint\"><kbd class=\"gbt-cp__kbd\">↵</kbd>{{ selectHint() }}</span>\n <span class=\"gbt-cp__hint\"><kbd class=\"gbt-cp__kbd\">Esc</kbd>{{ closeHint() }}</span>\n </div>\n <div class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n {{ announcement() }}\n </div>\n </div>\n </div>\n}\n",
380
- styles: [".gbt-cp__backdrop{position:fixed;inset:0;z-index:1300;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;background:#0006;animation:gbt-cp-fade-in .15s cubic-bezier(.4,0,.2,1) both}.gbt-cp{display:flex;flex-direction:column;width:min(640px,100%);max-height:min(560px,76vh);overflow:hidden;border-radius:var(--gbt-radius-glass);background:var(--gbt-glass-thick);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp{--gbt-nested-low: light-dark(color-mix(in srgb, var(--text-primary) 20%, transparent), transparent);--gbt-nested-low-soft: light-dark(color-mix(in srgb, var(--text-primary) 8%, transparent), transparent);--gbt-nested-contact: light-dark(var(--gbt-glass-shadow-near), transparent);--gbt-nested-hollow-shade: light-dark(color-mix(in srgb, var(--text-primary) 14%, transparent), transparent);--gbt-nested-hollow-trace: light-dark(color-mix(in srgb, var(--text-primary) 6%, transparent), transparent);--gbt-nested-hollow-light: light-dark(#fff, transparent);--gbt-nested-group-low: light-dark(color-mix(in srgb, var(--text-primary) 12%, transparent), transparent);--gbt-nested-group-shadow: light-dark(var(--gbt-glass-shadow), transparent);box-shadow:var(--gbt-depth-liquid),var(--gbt-depth-glass)}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid),var(--gbt-depth-glass)}}.gbt-cp{animation:gbt-cp-rise .18s cubic-bezier(.4,0,.2,1) both}.gbt-cp__field{display:flex;flex:none;align-items:center;gap:10px;padding:0 16px}.gbt-cp__field-icon{flex:none;color:var(--text-secondary)}.gbt-cp__close{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:44px;margin-inline-end:-12px;padding:0;border:none;border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:none;color:var(--text-secondary);cursor:pointer}.gbt-cp__close:hover{background:var(--bg-hover);color:var(--text-primary)}.gbt-cp__close:active{background:var(--bg-press);color:var(--text-primary)}.gbt-cp__close:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}.gbt-cp__input{flex:1;min-width:0;height:52px;padding:0;border:none;outline:none;background:transparent;color:var(--text-primary);font:inherit;font-size:16px}.gbt-cp__input::placeholder{color:var(--text-secondary)}.gbt-cp__list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:6px;overscroll-behavior:contain}.gbt-cp__group+.gbt-cp__group{margin-top:4px}.gbt-cp__group-label{padding:8px 10px 4px;color:var(--text-secondary);font-size:12px;font-weight:600}.gbt-cp__item{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 10px;border-radius:var(--gbt-radius-menu, var(--gbt-radius-row));color:var(--text-primary);cursor:pointer}.gbt-cp__item:hover{background:var(--bg-hover)}.gbt-cp__item:active{background:var(--bg-press)}.gbt-cp__item--active{background:color-mix(in srgb,var(--primary) 9%,transparent)}@media(forced-colors:active){.gbt-cp__item--active{outline:2px solid Highlight;outline-offset:-2px}}.gbt-cp__item-icon{flex:none;color:var(--text-secondary)}.gbt-cp__item--active .gbt-cp__item-icon{color:var(--primary)}.gbt-cp__item-text{display:flex;flex:1;align-items:baseline;gap:8px;min-width:0}.gbt-cp__item-label{flex:none;max-width:100%;overflow:hidden;font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-description{flex:1;min-width:0;overflow:hidden;color:var(--text-secondary);font-size:13px;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-shortcut{display:inline-flex;flex:none;gap:4px}.gbt-cp__kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:var(--bg-panel, var(--bg-principal));color:var(--text-secondary);font-family:inherit;font-size:11px;font-weight:600;line-height:1}.gbt-cp__empty{margin:0;padding:32px 16px;color:var(--text-secondary);font-size:14px;text-align:center}.gbt-cp__footer{display:flex;flex:none;flex-wrap:wrap;gap:4px 16px;padding:8px 16px 12px;color:var(--text-secondary);font-size:12px}.gbt-cp__hint{display:inline-flex;align-items:center;gap:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(max-width:599px){.gbt-cp__backdrop{padding:0}.gbt-cp{max-height:100dvh;border-width:0 0 1px;border-radius:0}.gbt-cp__item{min-height:44px}.gbt-cp__close{display:inline-flex}.gbt-cp__footer,.gbt-cp__item-shortcut{display:none}}@keyframes gbt-cp-fade-in{0%{opacity:0}}@keyframes gbt-cp-rise{0%{opacity:0;transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){.gbt-cp__backdrop,.gbt-cp{animation:none}}\n"]
380
+ styles: [".gbt-cp__backdrop{position:fixed;inset:0;z-index:1300;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;background:#0006;animation:gbt-cp-fade-in .15s cubic-bezier(.4,0,.2,1) both}.gbt-cp{display:flex;flex-direction:column;width:min(640px,100%);max-height:min(560px,76vh);overflow:hidden;border-radius:var(--gbt-radius-glass);background:var(--gbt-glass-thick);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp{--gbt-nested-low: light-dark(color-mix(in srgb, var(--text-primary) 20%, transparent), transparent);--gbt-nested-low-soft: light-dark(color-mix(in srgb, var(--text-primary) 8%, transparent), transparent);--gbt-nested-contact: light-dark(var(--gbt-glass-shadow-near), transparent);--gbt-nested-hollow-shade: light-dark(color-mix(in srgb, var(--text-primary) 14%, transparent), transparent);--gbt-nested-hollow-trace: light-dark(color-mix(in srgb, var(--text-primary) 6%, transparent), transparent);--gbt-nested-hollow-light: light-dark(#fff, transparent);--gbt-nested-group-low: light-dark(color-mix(in srgb, var(--text-primary) 12%, transparent), transparent);--gbt-nested-group-shadow: light-dark(var(--gbt-glass-shadow), transparent);box-shadow:var(--gbt-depth-liquid),var(--gbt-depth-glass)}@media(prefers-contrast:more){.gbt-cp{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid),var(--gbt-depth-glass)}}.gbt-cp{animation:gbt-cp-rise .18s cubic-bezier(.4,0,.2,1) both}.gbt-cp__field{display:flex;flex:none;align-items:center;gap:10px;padding:0 16px}.gbt-cp__field-icon{flex:none;color:var(--text-secondary)}.gbt-cp__close{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:44px;margin-inline-end:-12px;padding:0;border:none;border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:none;color:var(--text-secondary);cursor:pointer}.gbt-cp__close:hover{background:var(--bg-hover);color:var(--text-primary)}.gbt-cp__close:active{background:var(--bg-press);color:var(--text-primary)}.gbt-cp__close:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}.gbt-cp__input{flex:1;min-width:0;height:52px;padding:0;border:none;outline:none;background:transparent;color:var(--text-primary);font:inherit;font-size:16px}.gbt-cp__input::placeholder{color:var(--text-secondary)}.gbt-cp__list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:6px;overscroll-behavior:contain}.gbt-cp__group+.gbt-cp__group{margin-top:4px}.gbt-cp__group-label{padding:8px 10px 4px;color:var(--text-secondary);font-size:12px;font-weight:600}.gbt-cp__item{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 10px;border-radius:var(--gbt-radius-menu, var(--gbt-radius-row));color:var(--text-primary);cursor:pointer}.gbt-cp__item:hover{background:var(--bg-hover)}.gbt-cp__item:active{background:var(--bg-press)}.gbt-cp__item--active{background:color-mix(in srgb,var(--primary) 9%,transparent)}@media(forced-colors:active){.gbt-cp__item--active{outline:2px solid Highlight;outline-offset:-2px}}.gbt-cp__item-icon{flex:none;color:var(--text-secondary)}.gbt-cp__item--active .gbt-cp__item-icon{color:var(--primary)}.gbt-cp__item-text{display:flex;flex:1;align-items:baseline;gap:8px;min-width:0}.gbt-cp__item-label{flex:none;max-width:100%;overflow:hidden;font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-description{flex:1;min-width:0;overflow:hidden;color:var(--text-secondary);font-size:13px;white-space:nowrap;text-overflow:ellipsis}.gbt-cp__item-shortcut{display:inline-flex;flex:none;gap:4px}.gbt-cp__kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));background:var(--bg-panel, var(--bg-principal));color:var(--text-secondary);font-family:inherit;font-size:11px;font-weight:600;line-height:1}.gbt-cp__empty{margin:0;padding:32px 16px;color:var(--text-secondary);font-size:14px;text-align:center}.gbt-cp__footer{display:flex;flex:none;flex-wrap:wrap;gap:4px 16px;padding:8px 16px 12px;color:var(--text-secondary);font-size:12px}.gbt-cp__hint{display:inline-flex;align-items:center;gap:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(max-width:599px){.gbt-cp__backdrop{padding:0}.gbt-cp{max-height:100dvh;border-width:0 0 1px;border-radius:0}.gbt-cp__item{min-height:44px}.gbt-cp__close{display:inline-flex}.gbt-cp__footer,.gbt-cp__item-shortcut{display:none}}@keyframes gbt-cp-fade-in{0%{opacity:0}}@keyframes gbt-cp-rise{0%{opacity:0;transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){.gbt-cp__backdrop,.gbt-cp{animation:none}}\n"]
381
381
  }]
382
382
  }],
383
383
  ctorParameters: () => [],
@@ -578,7 +578,7 @@ var CommandPaletteTrigger = class CommandPaletteTrigger {
578
578
  </button>
579
579
  `,
580
580
  isInline: true,
581
- styles: [":host{display:block;min-width:0}.gbt-cp-trigger{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 8px 0 14px;border:none;border-radius:var(--gbt-radius-search, 999px);background:var(--gbt-glass-liquid);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp-trigger{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp-trigger{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp-trigger{color:var(--text-secondary);font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:border-color .15s cubic-bezier(.4,0,.2,1)}.gbt-cp-trigger:hover{background-image:linear-gradient(var(--bg-hover),var(--bg-hover))}.gbt-cp-trigger:active{background-image:linear-gradient(var(--bg-press),var(--bg-press))}.gbt-cp-trigger:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}.gbt-cp-trigger__icon{flex:none}.gbt-cp-trigger__label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gbt-cp-trigger__kbd{flex:none;padding:2px 6px;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));font-family:inherit;font-size:11px;font-weight:600;line-height:1.4}@media(max-width:599px){.gbt-cp-trigger{justify-content:center;width:44px;height:44px;padding:0;border-color:transparent;background:none;color:inherit}.gbt-cp-trigger__label,.gbt-cp-trigger__kbd{display:none}}@media(prefers-reduced-motion:reduce){.gbt-cp-trigger{transition:none}}\n"],
581
+ styles: [":host{display:block;min-width:0}.gbt-cp-trigger{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 8px 0 14px;border:none;border-radius:var(--gbt-radius-search, 999px);background:var(--gbt-glass-liquid);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp-trigger{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp-trigger{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp-trigger{color:var(--text-secondary);font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:border-color .15s cubic-bezier(.4,0,.2,1)}.gbt-cp-trigger:hover{background-image:linear-gradient(var(--bg-hover),var(--bg-hover))}.gbt-cp-trigger:active{background-image:linear-gradient(var(--bg-press),var(--bg-press))}.gbt-cp-trigger:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}.gbt-cp-trigger__icon{flex:none}.gbt-cp-trigger__label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gbt-cp-trigger__kbd{flex:none;padding:2px 6px;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));font-family:inherit;font-size:11px;font-weight:600;line-height:1.4}@media(max-width:599px){.gbt-cp-trigger{justify-content:center;width:44px;height:44px;padding:0;border-color:transparent;background:none;color:inherit}.gbt-cp-trigger__label,.gbt-cp-trigger__kbd{display:none}}@media(prefers-reduced-motion:reduce){.gbt-cp-trigger{transition:none}}\n"],
582
582
  dependencies: [{
583
583
  kind: "component",
584
584
  type: Icon,
@@ -614,7 +614,7 @@ i0.ɵɵngDeclareClassMetadata({
614
614
  </button>
615
615
  `,
616
616
  changeDetection: ChangeDetectionStrategy.OnPush,
617
- styles: [":host{display:block;min-width:0}.gbt-cp-trigger{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 8px 0 14px;border:none;border-radius:var(--gbt-radius-search, 999px);background:var(--gbt-glass-liquid);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp-trigger{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp-trigger{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp-trigger{color:var(--text-secondary);font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:border-color .15s cubic-bezier(.4,0,.2,1)}.gbt-cp-trigger:hover{background-image:linear-gradient(var(--bg-hover),var(--bg-hover))}.gbt-cp-trigger:active{background-image:linear-gradient(var(--bg-press),var(--bg-press))}.gbt-cp-trigger:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--focus-ring));outline-offset:2px}.gbt-cp-trigger__icon{flex:none}.gbt-cp-trigger__label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gbt-cp-trigger__kbd{flex:none;padding:2px 6px;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));font-family:inherit;font-size:11px;font-weight:600;line-height:1.4}@media(max-width:599px){.gbt-cp-trigger{justify-content:center;width:44px;height:44px;padding:0;border-color:transparent;background:none;color:inherit}.gbt-cp-trigger__label,.gbt-cp-trigger__kbd{display:none}}@media(prefers-reduced-motion:reduce){.gbt-cp-trigger{transition:none}}\n"]
617
+ styles: [":host{display:block;min-width:0}.gbt-cp-trigger{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 8px 0 14px;border:none;border-radius:var(--gbt-radius-search, 999px);background:var(--gbt-glass-liquid);-webkit-backdrop-filter:var(--gbt-liquid-blur);backdrop-filter:var(--gbt-liquid-blur);box-shadow:var(--gbt-depth-liquid);--text-discret: var(--gbt-ground-text-discret);--border-color: var(--gbt-ground-border);--color-success-text: var(--color-success-bg-text);--color-warning-text: var(--color-warning-bg-text);--color-error-text: var(--color-error-bg-text);--text-secondary: var(--gbt-liquid-text);--text-discret: var(--gbt-liquid-text)}@media(prefers-reduced-transparency:reduce){.gbt-cp-trigger{background:linear-gradient(var(--gbt-glass-thick),var(--gbt-glass-thick)),var(--bg-principal);-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-contrast:more){.gbt-cp-trigger{box-shadow:inset 0 0 0 1px var(--border-color),var(--gbt-depth-liquid)}}.gbt-cp-trigger{color:var(--text-secondary);font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:border-color .15s cubic-bezier(.4,0,.2,1)}.gbt-cp-trigger:hover{background-image:linear-gradient(var(--bg-hover),var(--bg-hover))}.gbt-cp-trigger:active{background-image:linear-gradient(var(--bg-press),var(--bg-press))}.gbt-cp-trigger:focus-visible{outline:2px solid var(--gbt-focus-ring, var(--gbt-ground-accent, var(--focus-ring)));outline-offset:2px}.gbt-cp-trigger__icon{flex:none}.gbt-cp-trigger__label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gbt-cp-trigger__kbd{flex:none;padding:2px 6px;border:1px solid var(--border-color);border-radius:var(--gbt-radius-chip, var(--site-border-radius));font-family:inherit;font-size:11px;font-weight:600;line-height:1.4}@media(max-width:599px){.gbt-cp-trigger{justify-content:center;width:44px;height:44px;padding:0;border-color:transparent;background:none;color:inherit}.gbt-cp-trigger__label,.gbt-cp-trigger__kbd{display:none}}@media(prefers-reduced-motion:reduce){.gbt-cp-trigger{transition:none}}\n"]
618
618
  }]
619
619
  }],
620
620
  propDecorators: {