ud-components 0.3.5 → 0.3.6

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.
@@ -1,15 +1,15 @@
1
- import { EditOptions, SummaryField } from './summary-view.interface';
1
+ import { SummaryAction, SummaryField } from './summary-view.interface';
2
2
  import * as i0 from "@angular/core";
3
3
  type LAYOUTS = 'text-left' | 'text-right' | 'text-all' | 'text-none' | 'text-top';
4
4
  export declare class SummaryViewComponent {
5
5
  title: string | null;
6
- editOptions: EditOptions | null;
6
+ actions: SummaryAction[];
7
7
  summaryFields: SummaryField[];
8
8
  loading: boolean;
9
9
  layout: LAYOUTS;
10
10
  skeletonTitleHeight: string;
11
11
  skeletonBodyHeight: string;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SummaryViewComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SummaryViewComponent, "ud-summary-view", never, { "title": { "alias": "title"; "required": false; }; "editOptions": { "alias": "editOptions"; "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>;
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>;
14
14
  }
15
15
  export {};
@@ -3,8 +3,10 @@ export interface SummaryField {
3
3
  icon: string;
4
4
  value: string | number | boolean | undefined;
5
5
  }
6
- export interface EditOptions {
7
- disabled: boolean;
8
- routerLink: string;
9
- tooltip?: string;
6
+ export interface SummaryAction {
7
+ label: string;
8
+ icon: string;
9
+ isAuthorized: boolean;
10
+ path?: string;
11
+ onClick?: () => void;
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ud-components",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"