@elasticias/ui 1.0.30 → 1.0.31

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elasticias/ui",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -4452,7 +4452,9 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4452
4452
  * equivalent and a tabindex to be usable, which a decorative box should
4453
4453
  * not have.
4454
4454
  */
4455
- protected onRowHeadActivate(row: unknown, index: number, event: Event): void;
4455
+ protected onRowHeadActivate(row: TRow, index: number, event: Event): void;
4456
+ /** The chevron owns expansion once the head is busy navigating. */
4457
+ protected onDisclosureToggle(row: unknown, index: number, event: Event): void;
4456
4458
  protected toggleExpanded(row: unknown, index: number): void;
4457
4459
  private rowKey;
4458
4460
  /**
@@ -4487,6 +4489,10 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4487
4489
  /** Fields a collapsed card shows. A row shows none until it opens. */
4488
4490
  protected readonly cardPreviewColumns: _angular_core.Signal<EfDataCardColumn[]>;
4489
4491
  protected readonly hasDetail: _angular_core.Signal<boolean>;
4492
+ /** Whether the screen wired an open-the-record action to this table. */
4493
+ protected readonly rowNavigable: _angular_core.Signal<boolean>;
4494
+ /** The head is a control when it either opens the row or expands it. */
4495
+ protected readonly headIsControl: _angular_core.Signal<boolean>;
4490
4496
  /** Only worth a toggle when opening actually reveals something. */
4491
4497
  protected readonly hasMoreThanPreview: _angular_core.Signal<boolean>;
4492
4498
  /** Fields visible for a row right now, given layout and open state. */
@@ -4773,9 +4779,39 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4773
4779
  * popup can escape its rounded edges. */
4774
4780
  readonly openMenuCount: _angular_core.WritableSignal<number>;
4775
4781
  onRowActionsToggle(event: Event): void;
4776
- /** Fires `rowDoubleClick` unless the dblclick originated on an
4777
- * interactive child (checkbox, button, link, form control). */
4778
- onRowDoubleClick(row: TRow, event: MouseEvent): void;
4782
+ /**
4783
+ * Children that own their own click. Opening the row on top of them would
4784
+ * run two things from one gesture.
4785
+ */
4786
+ private static readonly INTERACTIVE_CHILD;
4787
+ /**
4788
+ * Bounded by the row on purpose. The row itself is given `role="button"`
4789
+ * when it is openable, so an unbounded `closest()` matches the row as its
4790
+ * own ancestor and suppresses every click on it — the interaction looks
4791
+ * wired and does nothing. Only a control *inside* the row counts.
4792
+ */
4793
+ private isInteractiveTarget;
4794
+ /**
4795
+ * A drag that selects text ends in a click. Opening the row on that click
4796
+ * throws the selection away at the instant it was made, which is worse
4797
+ * than not opening, because the work is lost rather than merely delayed.
4798
+ */
4799
+ private hasTextSelection;
4800
+ /**
4801
+ * Open a row with one click.
4802
+ *
4803
+ * This used to take two. The tell was not the pointer but the keyboard:
4804
+ * Enter on a focused row already opened it with a single press, because a
4805
+ * keyboard cannot produce a double-click at all. So the component was
4806
+ * already committed to single activation and only the mouse was asking
4807
+ * twice — and the row paints `cursor: pointer` the whole time, which says
4808
+ * a click does something.
4809
+ *
4810
+ * The output is still named `rowDoubleClick` so the twelve screens bound
4811
+ * to it keep working untouched. The name is now wrong; renaming it is a
4812
+ * breaking change to a published component and belongs in its own commit.
4813
+ */
4814
+ onRowClick(row: TRow, event: MouseEvent): void;
4779
4815
  /**
4780
4816
  * `aria-sort` for the header cell: the only thing that tells a screen
4781
4817
  * reader which column is ordered and which way. The arrow glyph is