@cqa-lib/cqa-ui 1.1.389 → 1.1.391

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.
@@ -56,6 +56,11 @@ export declare class CodeEditorComponent implements OnInit, OnChanges, OnDestroy
56
56
  dispose?: () => void;
57
57
  };
58
58
  }): void;
59
+ /** Configure Monaco JS/TS language defaults to allow top-level await.
60
+ * Sets module target to ESNext (enables top-level await as a module) and
61
+ * suppresses error code 1308 ("await is only valid in async functions") which
62
+ * Monaco incorrectly raises when code runs in an async context on the test runner. */
63
+ private configureMonacoForAsyncCode;
59
64
  private setupMarkersListener;
60
65
  get hasValidationErrors(): boolean;
61
66
  get hasErrors(): boolean;
@@ -8,6 +8,8 @@ export interface ErrorModalButton {
8
8
  action: string;
9
9
  btnSize?: 'sm' | 'md' | 'lg';
10
10
  fullWidth?: boolean;
11
+ /** When true, button is disabled and does not emit click */
12
+ disabled?: boolean;
11
13
  }
12
14
  export declare class ErrorModalComponent {
13
15
  isOpen: boolean;
@@ -20,6 +22,10 @@ export declare class ErrorModalComponent {
20
22
  appTime: string;
21
23
  toolTime: string;
22
24
  buttons: ErrorModalButton[];
25
+ /** When true, shows a loading badge instead of buttons (e.g. while waiting for async completion) */
26
+ showLoading: boolean;
27
+ /** Inline styles for the loading badge (e.g. min-height to match button). Pass from parent for reusability. */
28
+ loadingBadgeInlineStyles?: string;
23
29
  buttonClick: EventEmitter<string>;
24
30
  closeModal: EventEmitter<void>;
25
31
  onBackdropClick(event: MouseEvent): void;
@@ -31,5 +37,5 @@ export declare class ErrorModalComponent {
31
37
  getNonTextButtons(): ErrorModalButton[];
32
38
  getTextButtons(): ErrorModalButton[];
33
39
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorModalComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorModalComponent, "cqa-error-modal", never, { "isOpen": "isOpen"; "title": "title"; "instructionalMessage": "instructionalMessage"; "errorMessage": "errorMessage"; "totalSteps": "totalSteps"; "completedSteps": "completedSteps"; "totalTime": "totalTime"; "appTime": "appTime"; "toolTime": "toolTime"; "buttons": "buttons"; }, { "buttonClick": "buttonClick"; "closeModal": "closeModal"; }, never, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorModalComponent, "cqa-error-modal", never, { "isOpen": "isOpen"; "title": "title"; "instructionalMessage": "instructionalMessage"; "errorMessage": "errorMessage"; "totalSteps": "totalSteps"; "completedSteps": "completedSteps"; "totalTime": "totalTime"; "appTime": "appTime"; "toolTime": "toolTime"; "buttons": "buttons"; "showLoading": "showLoading"; "loadingBadgeInlineStyles": "loadingBadgeInlineStyles"; }, { "buttonClick": "buttonClick"; "closeModal": "closeModal"; }, never, never>;
35
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.389",
3
+ "version": "1.1.391",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",