@rivet-health/design-system 40.44.2 → 40.44.4

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 (123) hide show
  1. package/esm2022/lib/accessibility/sr-only/sr-only.component.mjs +3 -3
  2. package/esm2022/lib/download/download.service.mjs +3 -3
  3. package/esm2022/lib/format/pipes/date.pipe.mjs +3 -3
  4. package/esm2022/lib/format/pipes/days.pipe.mjs +3 -3
  5. package/esm2022/lib/format/pipes/dollars.pipe.mjs +3 -3
  6. package/esm2022/lib/format/pipes/number.pipe.mjs +3 -3
  7. package/esm2022/lib/format/pipes/percentage.pipe.mjs +3 -3
  8. package/esm2022/lib/format/pipes/sentence-case.pipe.mjs +3 -3
  9. package/esm2022/lib/format/pipes/small-currency.pipe.mjs +3 -3
  10. package/esm2022/lib/format/pipes/small-number.pipe.mjs +3 -3
  11. package/esm2022/lib/format/svg-text-truncate/svg-text-truncate.directive.mjs +3 -3
  12. package/esm2022/lib/format/truncate/truncate.component.mjs +3 -3
  13. package/esm2022/lib/icon/icon.component.mjs +3 -3
  14. package/esm2022/lib/input/alphabetic-field/alphabetic-field.component.mjs +3 -3
  15. package/esm2022/lib/input/auto-focus/auto-focus.directive.mjs +3 -3
  16. package/esm2022/lib/input/button/button.component.mjs +3 -3
  17. package/esm2022/lib/input/button-group/button-group.component.mjs +3 -3
  18. package/esm2022/lib/input/calendar/calendar.component.mjs +3 -3
  19. package/esm2022/lib/input/card-checkbox/card-checkbox.component.mjs +3 -3
  20. package/esm2022/lib/input/checkbox/checkbox.component.mjs +3 -3
  21. package/esm2022/lib/input/currency-field/currency-field.component.mjs +3 -3
  22. package/esm2022/lib/input/date/date.component.mjs +3 -3
  23. package/esm2022/lib/input/date-range/date-range.component.mjs +6 -5
  24. package/esm2022/lib/input/filter-chip/filter-chip.component.mjs +3 -3
  25. package/esm2022/lib/input/filter-dropdown/filter-dropdown.component.mjs +3 -3
  26. package/esm2022/lib/input/input-label/input-label.component.mjs +3 -3
  27. package/esm2022/lib/input/mentions-input/mentions-input.component.mjs +3 -3
  28. package/esm2022/lib/input/number-field/number-field.component.mjs +3 -3
  29. package/esm2022/lib/input/percentage-field/percentage-field.component.mjs +3 -3
  30. package/esm2022/lib/input/phone-field/phone-field.component.mjs +3 -3
  31. package/esm2022/lib/input/radio/radio.component.mjs +3 -3
  32. package/esm2022/lib/input/search/search.component.mjs +3 -3
  33. package/esm2022/lib/input/search-select/search-select.component.mjs +3 -3
  34. package/esm2022/lib/input/select/select/select.component.mjs +6 -5
  35. package/esm2022/lib/input/select/select-node/select-node.component.mjs +3 -3
  36. package/esm2022/lib/input/simple-select/option-group.pipe.mjs +3 -3
  37. package/esm2022/lib/input/simple-select/simple-select.component.mjs +3 -3
  38. package/esm2022/lib/input/switch-checkbox/switch-checkbox.component.mjs +3 -3
  39. package/esm2022/lib/input/text-field/text-field.component.mjs +3 -3
  40. package/esm2022/lib/input/textarea-field/textarea-field.component.mjs +3 -3
  41. package/esm2022/lib/input/validation-message/validation-message.component.mjs +3 -3
  42. package/esm2022/lib/layout/card/card-actions.component.mjs +3 -3
  43. package/esm2022/lib/layout/card/card-content.component.mjs +3 -3
  44. package/esm2022/lib/layout/card/card-header.component.mjs +3 -3
  45. package/esm2022/lib/layout/card/card-link.component.mjs +29 -8
  46. package/esm2022/lib/layout/card/card-media.component.mjs +3 -3
  47. package/esm2022/lib/layout/card/card.component.mjs +23 -8
  48. package/esm2022/lib/layout/setting-row/setting-row.component.mjs +3 -3
  49. package/esm2022/lib/load/loading/loading.component.mjs +3 -3
  50. package/esm2022/lib/load/loading-cover/loading-cover.component.mjs +3 -3
  51. package/esm2022/lib/navigation/editable-heading/editable-heading.component.mjs +3 -3
  52. package/esm2022/lib/navigation/link/link.component.mjs +3 -3
  53. package/esm2022/lib/navigation/page-header/page-header.component.mjs +3 -3
  54. package/esm2022/lib/navigation/simple-tabs/simple-tab/simple-tab.component.mjs +3 -3
  55. package/esm2022/lib/navigation/simple-tabs/simple-tabs/simple-tabs.component.mjs +3 -3
  56. package/esm2022/lib/navigation/tabs/tab/tab.component.mjs +3 -3
  57. package/esm2022/lib/navigation/tabs/tabs/tabs.component.mjs +3 -3
  58. package/esm2022/lib/navigation/views/all-views-modal/all-views-modal.component.mjs +3 -3
  59. package/esm2022/lib/navigation/views/edit-view/edit-view.component.mjs +3 -3
  60. package/esm2022/lib/navigation/views/permission-picker/permission-picker.component.mjs +3 -3
  61. package/esm2022/lib/navigation/views/view-menu/view-menu.component.mjs +3 -3
  62. package/esm2022/lib/navigation/views/views/views.component.mjs +3 -3
  63. package/esm2022/lib/notification/badge/badge.component.mjs +3 -3
  64. package/esm2022/lib/notification/banner/banner-action.component.mjs +3 -3
  65. package/esm2022/lib/notification/banner/banner.component.mjs +3 -3
  66. package/esm2022/lib/notification/map-indicator/map-indicator.component.mjs +3 -3
  67. package/esm2022/lib/notification/notification-badge/notification-badge.component.mjs +3 -3
  68. package/esm2022/lib/overlay/callout/callout.component.mjs +5 -5
  69. package/esm2022/lib/overlay/callout/help/help.component.mjs +3 -3
  70. package/esm2022/lib/overlay/callout/lock-scroll.directive.mjs +6 -6
  71. package/esm2022/lib/overlay/callout/menu/menu-item/menu-item.component.mjs +3 -3
  72. package/esm2022/lib/overlay/callout/menu/menu.component.mjs +6 -5
  73. package/esm2022/lib/overlay/callout/tooltip/locked-tooltip.directive.mjs +3 -3
  74. package/esm2022/lib/overlay/callout/tooltip/tooltip.component.mjs +3 -3
  75. package/esm2022/lib/overlay/callout/tooltip/tooltip.directive.mjs +3 -3
  76. package/esm2022/lib/overlay/modal/dialog/dialog.component.mjs +3 -3
  77. package/esm2022/lib/overlay/modal/dialog-stack.service.mjs +3 -3
  78. package/esm2022/lib/overlay/modal/form-dialog/form-dialog.component.mjs +3 -3
  79. package/esm2022/lib/overlay/modal/modal.component.mjs +3 -3
  80. package/esm2022/lib/overlay/modal/side-sheet/side-sheet.component.mjs +3 -3
  81. package/esm2022/lib/overlay/overlay-outlet.component.mjs +3 -3
  82. package/esm2022/lib/overlay/overlay.directive.mjs +3 -3
  83. package/esm2022/lib/overlay/overlay.service.mjs +3 -3
  84. package/esm2022/lib/overlay/toast/toast-action.component.mjs +3 -3
  85. package/esm2022/lib/overlay/toast/toast.component.mjs +3 -3
  86. package/esm2022/lib/riv.module.mjs +4 -4
  87. package/esm2022/lib/size/size.directive.mjs +3 -3
  88. package/esm2022/lib/table/simple-table/simple-table-cell.component.mjs +3 -3
  89. package/esm2022/lib/table/simple-table/simple-table-header-cell.component.mjs +3 -3
  90. package/esm2022/lib/table/simple-table/simple-table-row.component.mjs +3 -3
  91. package/esm2022/lib/table/simple-table/simple-table.component.mjs +3 -3
  92. package/esm2022/lib/table/table/table/table.component.mjs +3 -3
  93. package/esm2022/lib/table/table/table-collapse-all/table-collapse-all.component.mjs +3 -3
  94. package/esm2022/lib/table/table/table-column-settings/table-column-settings-side-sheet.component.mjs +3 -3
  95. package/esm2022/lib/table/table/table-column-settings/table-column-settings.component.mjs +3 -3
  96. package/esm2022/lib/table/table/table-csv-export/table-csv-export.component.mjs +3 -3
  97. package/esm2022/lib/table/table/table-header-resize-handle/table-header-resize-handle.component.mjs +3 -3
  98. package/esm2022/lib/table/table/table-search/table-search.component.mjs +3 -3
  99. package/esm2022/lib/table/table/table-search-columns/table-search-columns.component.mjs +3 -3
  100. package/esm2022/lib/visibility/visibility.directive.mjs +3 -3
  101. package/esm2022/lib/visualization/chart/chart.component.mjs +3 -3
  102. package/esm2022/lib/visualization/data-table/data-table-cell.component.mjs +3 -3
  103. package/esm2022/lib/visualization/data-table/data-table-header-cell.component.mjs +3 -3
  104. package/esm2022/lib/visualization/data-table/data-table-row.component.mjs +3 -3
  105. package/esm2022/lib/visualization/data-table/data-table.component.mjs +3 -3
  106. package/esm2022/lib/visualization/donut/donut.component.mjs +3 -3
  107. package/esm2022/lib/visualization/funnel-chart/funnel-chart.component.mjs +3 -3
  108. package/esm2022/lib/visualization/highlight/highlight.component.mjs +3 -3
  109. package/esm2022/lib/visualization/issue/issue.component.mjs +3 -3
  110. package/esm2022/lib/visualization/legend-item/legend-item.component.mjs +3 -3
  111. package/esm2022/lib/visualization/metric/metric.component.mjs +3 -3
  112. package/esm2022/lib/visualization/mini-pie/mini-pie.component.mjs +3 -3
  113. package/esm2022/lib/visualization/progress/progress.component.mjs +3 -3
  114. package/esm2022/lib/visualization/stacked-column/stacked-column.component.mjs +3 -3
  115. package/esm2022/lib/visualization/stacked-row/stacked-row.component.mjs +3 -3
  116. package/esm2022/lib/visualization/time-series/time-series.component.mjs +3 -3
  117. package/esm2022/lib/visualization/trend/trend.component.mjs +3 -3
  118. package/esm2022/lib/visualization/zero-state/zero-state.component.mjs +3 -3
  119. package/fesm2022/rivet-health-design-system.mjs +409 -371
  120. package/fesm2022/rivet-health-design-system.mjs.map +1 -1
  121. package/lib/layout/card/card-link.component.d.ts +14 -4
  122. package/lib/layout/card/card.component.d.ts +16 -6
  123. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
- import { ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
+ import { CardComponent } from './card.component';
2
3
  import * as i0 from "@angular/core";
3
4
  /**
4
5
  * Makes a `riv-card` activate, applied to a native `<a>` or `<button>` inside
@@ -34,18 +35,27 @@ import * as i0 from "@angular/core";
34
35
  * When `stretch` is used, keep the visible link text meaningful on its own —
35
36
  * it is the accessible name for the whole card.
36
37
  */
37
- export declare class CardLinkComponent implements OnChanges {
38
+ export declare class CardLinkComponent implements OnInit, OnChanges, OnDestroy {
38
39
  private readonly el;
39
40
  private readonly renderer;
40
- constructor(el: ElementRef, renderer: Renderer2);
41
+ private readonly card;
42
+ constructor(el: ElementRef, renderer: Renderer2, card: CardComponent | null);
41
43
  /** Whether the hit area covers the whole card or only the wrapped region. */
42
44
  mode: CardLinkComponent.Mode;
43
45
  disabled?: boolean;
44
46
  get classes(): string;
45
47
  get ariaDisabled(): 'true' | null;
46
48
  get tabIndex(): '-1' | null;
49
+ /**
50
+ * Tells the enclosing card when this link covers it, so the card raises the
51
+ * same hover shadow as a clickable one. Registered on init too, since an
52
+ * unbound `mode` defaults to `stretch` without triggering `ngOnChanges`.
53
+ */
54
+ ngOnInit(): void;
47
55
  ngOnChanges(changes: SimpleChanges): void;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<CardLinkComponent, never>;
56
+ ngOnDestroy(): void;
57
+ private registerStretch;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardLinkComponent, [null, null, { optional: true; }]>;
49
59
  static ɵcmp: i0.ɵɵComponentDeclaration<CardLinkComponent, "[riv-card-link]", never, { "mode": { "alias": "mode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
50
60
  }
51
61
  export declare namespace CardLinkComponent {
@@ -114,15 +114,17 @@ export declare class CardComponent implements OnInit {
114
114
  /** Corner radius, matching the `--border-radius-*` tokens. */
115
115
  radius: CardComponent.Radius;
116
116
  /**
117
- * Shadow raised on hover, matching the `--depth-*` tokens. Defaults to `1`
118
- * for a clickable card, `2` for a clickable elevated card, and `none`
119
- * otherwise. A hover shadow reads as clickable, so set it on a card that
120
- * is not `clickable` only when the card's own controls make it interactive.
117
+ * Shadow raised on hover, matching the `--depth-*` tokens. This shadow is
118
+ * the card's only hover feedback; the surface is not tinted. Defaults to `1`
119
+ * for a card that activates as a whole — `clickable`, or holding an enabled
120
+ * stretch `[riv-card-link]` — `2` for such a card when elevated, and `none`
121
+ * otherwise. A hover shadow reads as clickable, so set it on any other card
122
+ * only when the card's own controls make it interactive.
121
123
  */
122
124
  hoverDepth?: CardComponent.Depth;
123
125
  /**
124
- * Makes the whole surface activate, emitting `cardClick`. Adds the hover
125
- * affordance and keyboard support.
126
+ * Makes the whole surface activate, emitting `cardClick`. Adds keyboard
127
+ * support and a hover shadow (see `hoverDepth`).
126
128
  */
127
129
  clickable: boolean;
128
130
  /**
@@ -154,6 +156,8 @@ export declare class CardComponent implements OnInit {
154
156
  private titleId?;
155
157
  /** Set by a projected `riv-card-header` that is expandable. */
156
158
  private expandRegionId?;
159
+ /** Set by a projected `[riv-card-link]` whose overlay covers the card. */
160
+ private stretchLink;
157
161
  /**
158
162
  * Id an expandable header's toggle points `aria-controls` at, worn by a
159
163
  * projected `riv-card-content`.
@@ -183,6 +187,12 @@ export declare class CardComponent implements OnInit {
183
187
  * longer the one in use.
184
188
  */
185
189
  clearRegionId(id: string): void;
190
+ /**
191
+ * Records whether an enabled stretch `[riv-card-link]` covers the card, which
192
+ * makes the whole surface activate and so earns the clickable hover shadow.
193
+ * Called by `riv-card-link`; not part of the public API.
194
+ */
195
+ setStretchLink(present: boolean): void;
186
196
  /**
187
197
  * Element whose text names the click target, unless `clickLabel` is set. The
188
198
  * host id is read from the DOM rather than cached, so a bound `[id]` that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivet-health/design-system",
3
- "version": "40.44.2",
3
+ "version": "40.44.4",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">=14.0.0",
6
6
  "@angular/common": ">=14.0.0",