ud-components 0.7.6 → 0.7.8

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.
@@ -11,7 +11,8 @@ export interface SnackbarData {
11
11
  export declare class CustomSnackbarComponent implements OnInit, OnDestroy {
12
12
  data: SnackbarData;
13
13
  private snackBarRef;
14
- progress: number;
14
+ /** A signal so each tick schedules change detection in zoneless apps too. */
15
+ readonly progress: import("@angular/core").WritableSignal<number>;
15
16
  private subscription?;
16
17
  private isPaused;
17
18
  private elapsedTime;
@@ -1,7 +1,9 @@
1
+ import { OnDestroy } from '@angular/core';
1
2
  import { SummaryAction, SummaryField } from './summary-view.interface';
2
3
  import * as i0 from "@angular/core";
3
4
  type LAYOUTS = 'text-left' | 'text-right' | 'text-all' | 'text-none' | 'text-top';
4
- export declare class SummaryViewComponent {
5
+ export declare class SummaryViewComponent implements OnDestroy {
6
+ private readonly clipboard;
5
7
  title: string | null;
6
8
  actions: SummaryAction[];
7
9
  summaryFields: SummaryField[];
@@ -9,7 +11,17 @@ export declare class SummaryViewComponent {
9
11
  layout: LAYOUTS;
10
12
  skeletonTitleHeight: string;
11
13
  skeletonBodyHeight: string;
14
+ /** Tooltip of a copyable field's button; an i18n key or plain text, like action labels. */
15
+ copyLabel: string;
16
+ /** Tooltip right after copying. */
17
+ copiedLabel: string;
18
+ /** Index of the field just copied, so its button shows a check for a moment. */
19
+ protected readonly copiedIndex: import("@angular/core").WritableSignal<number | null>;
20
+ private resetTimer?;
21
+ protected hasValue(field: SummaryField): boolean;
22
+ protected copy(field: SummaryField, index: number): void;
23
+ ngOnDestroy(): void;
12
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SummaryViewComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SummaryViewComponent, "ud-summary-view", never, { "title": { "alias": "title"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "summaryFields": { "alias": "summaryFields"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "skeletonTitleHeight": { "alias": "skeletonTitleHeight"; "required": false; }; "skeletonBodyHeight": { "alias": "skeletonBodyHeight"; "required": false; }; }, {}, never, ["[header-actions]", "*"], true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<SummaryViewComponent, "ud-summary-view", never, { "title": { "alias": "title"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "summaryFields": { "alias": "summaryFields"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "skeletonTitleHeight": { "alias": "skeletonTitleHeight"; "required": false; }; "skeletonBodyHeight": { "alias": "skeletonBodyHeight"; "required": false; }; "copyLabel": { "alias": "copyLabel"; "required": false; }; "copiedLabel": { "alias": "copiedLabel"; "required": false; }; }, {}, never, ["[header-actions]", "*"], true, never>;
14
26
  }
15
27
  export {};
@@ -2,6 +2,8 @@ export interface SummaryField {
2
2
  label?: string;
3
3
  icon: string;
4
4
  value: string | number | boolean | undefined;
5
+ /** Shows a copy button next to the value on hover (UC-24). Ignored when the value is empty. */
6
+ copyable?: boolean;
5
7
  }
6
8
  export interface SummaryAction {
7
9
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ud-components",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=19",
6
6
  "@angular/common": ">=19",