@elasticias/ui 1.0.28 → 1.0.29

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.28",
3
+ "version": "1.0.29",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -4412,6 +4412,10 @@ type EfTableDensity = 'compact' | 'default' | 'comfortable';
4412
4412
  * "nothing to fetch" and greets a waiting user with the empty
4413
4413
  * state. While loading with no rows yet it shimmers `ef-skeleton`
4414
4414
  * rows (table and mobile list alike) and flags `aria-busy`.
4415
+ * 4. **Bind `(retry)` wherever you bind `[errorMsg]`.** An empty result
4416
+ * set that came from a failed request renders the error state, not
4417
+ * the empty one, and its "try again" button is the way out. The card
4418
+ * doesn't know the query, so the screen re-runs it.
4415
4419
  *
4416
4420
  * ```html
4417
4421
  * <ef-data-card
@@ -4513,7 +4517,16 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4513
4517
  * container is flagged `aria-busy`, as `ef-card` does.
4514
4518
  */
4515
4519
  readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
4516
- /** Empty string = no error. Non-empty triggers an error chip in tbl-head. */
4520
+ /**
4521
+ * Empty string = no error. Non-empty triggers the error chip in
4522
+ * `tbl-head` and, when the request came back with nothing, the error
4523
+ * state in the body.
4524
+ *
4525
+ * It is the *trigger*, not the copy: screens set it from
4526
+ * `err?.message`, which is whatever the HTTP layer threw. The body
4527
+ * state words itself from translated keys instead, so a failed list
4528
+ * never shows an operator a status line or an exception string.
4529
+ */
4517
4530
  readonly errorMsg: _angular_core.InputSignal<string>;
4518
4531
  readonly loadingKey: _angular_core.InputSignal<string>;
4519
4532
  /**
@@ -4525,6 +4538,18 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4525
4538
  readonly skeletonLines: _angular_core.Signal<number[]>;
4526
4539
  /** First load: nothing to show yet, so the rows are placeholders. */
4527
4540
  readonly showSkeleton: _angular_core.Signal<boolean>;
4541
+ /**
4542
+ * The request failed and brought nothing back. Without this the body
4543
+ * falls through to the empty state and tells the operator, calmly and
4544
+ * in the product's own voice, that they have no clients — a false
4545
+ * statement about their data that they may go on to act on.
4546
+ *
4547
+ * Third in the chain, after the skeleton and before the empty state:
4548
+ * a retry that is already in flight shows progress, not the error it
4549
+ * is busy clearing. Rows already on screen stay there and keep the
4550
+ * head chip as the failure signal, the way a failed refresh should.
4551
+ */
4552
+ readonly showError: _angular_core.Signal<boolean>;
4528
4553
  /**
4529
4554
  * When `true`, double-clicking anywhere on a `<tr>` emits the row
4530
4555
  * via `rowDoubleClick` and the body rows render with
@@ -4602,6 +4627,13 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4602
4627
  readonly exportRequest: _angular_core.OutputEmitterRef<EfDataCardExportRequest>;
4603
4628
  /** Raised by the empty state's "clear search" action. */
4604
4629
  readonly clearSearch: _angular_core.OutputEmitterRef<void>;
4630
+ /**
4631
+ * Raised by the error state's "try again" button. The card knows the
4632
+ * request failed but not what the request was, so the screen re-runs
4633
+ * it — typically `(retry)="search()"` on a list screen. Unbound, the
4634
+ * button is a dead control, so bind it wherever `[errorMsg]` is bound.
4635
+ */
4636
+ readonly retry: _angular_core.OutputEmitterRef<void>;
4605
4637
  private readonly bodyTemplates;
4606
4638
  private readonly headerTemplates;
4607
4639
  private readonly bodyTemplateMap;
@@ -4761,7 +4793,7 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4761
4793
  trackByRow: (_: number, row: TRow) => unknown;
4762
4794
  trackByColumn: (_: number, col: EfDataCardColumn) => string;
4763
4795
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EfDataCardComponent<any>, never>;
4764
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EfDataCardComponent<any>, "ef-data-card", never, { "mobileLayout": { "alias": "mobileLayout"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "trackByField": { "alias": "trackByField"; "required": false; "isSignal": true; }; "pageNumber": { "alias": "pageNumber"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalCount": { "alias": "totalCount"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "hidePager": { "alias": "hidePager"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "loadingKey": { "alias": "loadingKey"; "required": false; "isSignal": true; }; "rowDoubleClickable": { "alias": "rowDoubleClickable"; "required": false; "isSignal": true; }; "hasActionsColumn": { "alias": "hasActionsColumn"; "required": false; "isSignal": true; }; "rowActionsContext": { "alias": "rowActionsContext"; "required": false; "isSignal": true; }; "showViewAction": { "alias": "showViewAction"; "required": false; "isSignal": true; }; "showEditAction": { "alias": "showEditAction"; "required": false; "isSignal": true; }; "showDuplicateAction": { "alias": "showDuplicateAction"; "required": false; "isSignal": true; }; "showDeleteAction": { "alias": "showDeleteAction"; "required": false; "isSignal": true; }; "showDensityControl": { "alias": "showDensityControl"; "required": false; "isSignal": true; }; "showColumnPicker": { "alias": "showColumnPicker"; "required": false; "isSignal": true; }; "showExportControl": { "alias": "showExportControl"; "required": false; "isSignal": true; }; "exporting": { "alias": "exporting"; "required": false; "isSignal": true; }; "screenContext": { "alias": "screenContext"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "tableKey": { "alias": "tableKey"; "required": false; "isSignal": true; }; "defaultDensity": { "alias": "defaultDensity"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "fixedLayout": { "alias": "fixedLayout"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "rowDoubleClick": "rowDoubleClick"; "rowAction": "rowAction"; "exportRequest": "exportRequest"; "clearSearch": "clearSearch"; "rowReorder": "rowReorder"; }, ["bodyTemplates", "headerTemplates"], ["[tbl-head-info]", "[tbl-head-actions]", "[empty-state-mobile]", "[empty-state]"], true, never>;
4796
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EfDataCardComponent<any>, "ef-data-card", never, { "mobileLayout": { "alias": "mobileLayout"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "trackByField": { "alias": "trackByField"; "required": false; "isSignal": true; }; "pageNumber": { "alias": "pageNumber"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalCount": { "alias": "totalCount"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "hidePager": { "alias": "hidePager"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "loadingKey": { "alias": "loadingKey"; "required": false; "isSignal": true; }; "rowDoubleClickable": { "alias": "rowDoubleClickable"; "required": false; "isSignal": true; }; "hasActionsColumn": { "alias": "hasActionsColumn"; "required": false; "isSignal": true; }; "rowActionsContext": { "alias": "rowActionsContext"; "required": false; "isSignal": true; }; "showViewAction": { "alias": "showViewAction"; "required": false; "isSignal": true; }; "showEditAction": { "alias": "showEditAction"; "required": false; "isSignal": true; }; "showDuplicateAction": { "alias": "showDuplicateAction"; "required": false; "isSignal": true; }; "showDeleteAction": { "alias": "showDeleteAction"; "required": false; "isSignal": true; }; "showDensityControl": { "alias": "showDensityControl"; "required": false; "isSignal": true; }; "showColumnPicker": { "alias": "showColumnPicker"; "required": false; "isSignal": true; }; "showExportControl": { "alias": "showExportControl"; "required": false; "isSignal": true; }; "exporting": { "alias": "exporting"; "required": false; "isSignal": true; }; "screenContext": { "alias": "screenContext"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "tableKey": { "alias": "tableKey"; "required": false; "isSignal": true; }; "defaultDensity": { "alias": "defaultDensity"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "fixedLayout": { "alias": "fixedLayout"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "rowDoubleClick": "rowDoubleClick"; "rowAction": "rowAction"; "exportRequest": "exportRequest"; "clearSearch": "clearSearch"; "retry": "retry"; "rowReorder": "rowReorder"; }, ["bodyTemplates", "headerTemplates"], ["[tbl-head-info]", "[tbl-head-actions]", "[empty-state-mobile]", "[empty-state]"], true, never>;
4765
4797
  }
4766
4798
 
4767
4799
  /**