ud-components 0.5.6 → 0.5.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.
@@ -1,20 +1,41 @@
1
1
  import { ModalInputType } from '../../enums/modal-input-type.enum';
2
+ import { EventEmitter } from '@angular/core';
2
3
  import { FormGroup } from '@angular/forms';
3
4
  import { MatDialogRef } from '@angular/material/dialog';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class ModalComponent {
6
- data: any;
7
7
  private dialogRef;
8
+ /**
9
+ * Header / chrome inputs — used when the component is consumed inline
10
+ * (`<ud-modal …><custom content/></ud-modal>`). When opened via
11
+ * `MatDialog.open(ModalComponent, { data: {...} })` these are populated
12
+ * from the injected `MAT_DIALOG_DATA` for backwards compatibility.
13
+ */
14
+ title?: string;
15
+ eyebrow?: string;
16
+ lede?: string;
17
+ bodyText?: string;
18
+ showClose: boolean;
19
+ showFooter: boolean;
20
+ confirmLabel?: string;
21
+ cancelLabel?: string;
22
+ confirmDisabled: boolean;
23
+ /**
24
+ * Events for inline consumers. The dialog-mode `data.save` / `data.confirm`
25
+ * callbacks are still invoked when present so existing callers keep working.
26
+ */
27
+ confirm: EventEmitter<void>;
28
+ cancel: EventEmitter<void>;
8
29
  protected form?: FormGroup;
9
30
  protected modalInputType: typeof ModalInputType;
10
- protected showClose: boolean;
11
- protected pictureUrls?: string;
31
+ protected pictureUrls?: string[];
12
32
  protected currentPictureIndex?: number;
13
- constructor(data: any, dialogRef: MatDialogRef<ModalComponent>);
33
+ data: any;
34
+ constructor(injectedData: any, dialogRef: MatDialogRef<ModalComponent> | null);
14
35
  close(): void;
15
36
  onAction(): void;
16
37
  previous(): void;
17
38
  next(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "ud-modal", never, {}, {}, never, never, true, never>;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, [{ optional: true; }, { optional: true; }]>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "ud-modal", never, { "title": { "alias": "title"; "required": false; }; "eyebrow": { "alias": "eyebrow"; "required": false; }; "lede": { "alias": "lede"; "required": false; }; "bodyText": { "alias": "bodyText"; "required": false; }; "showClose": { "alias": "showClose"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "confirmDisabled": { "alias": "confirmDisabled"; "required": false; }; }, { "confirm": "confirm"; "cancel": "cancel"; }, never, ["*"], true, never>;
20
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ud-components",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=19",
6
6
  "@angular/common": ">=19",