@cqa-lib/cqa-ui 1.0.104 → 1.0.108

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,3 +1,4 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class ProgressTextCardComponent {
3
4
  value: number;
@@ -5,9 +6,12 @@ export declare class ProgressTextCardComponent {
5
6
  deltaPercent?: number;
6
7
  deltaSuffix: string;
7
8
  cardClass: string;
9
+ /** Emitted when the card is clicked */
10
+ cardClick: EventEmitter<void>;
8
11
  get percentText(): string;
9
12
  get fillWidth(): string;
10
13
  deltaClass(): string;
14
+ onCardClick(): void;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressTextCardComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressTextCardComponent, "cqa-progress-text-card", never, { "value": "value"; "label": "label"; "deltaPercent": "deltaPercent"; "deltaSuffix": "deltaSuffix"; "cardClass": "cardClass"; }, {}, never, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressTextCardComponent, "cqa-progress-text-card", never, { "value": "value"; "label": "label"; "deltaPercent": "deltaPercent"; "deltaSuffix": "deltaSuffix"; "cardClass": "cardClass"; }, { "cardClick": "cardClick"; }, never, never>;
13
17
  }
@@ -16,6 +16,7 @@ export declare class DaterangepickerComponent implements OnInit, OnDestroy, Cont
16
16
  opens: 'left' | 'right' | 'center';
17
17
  drops: 'down' | 'up' | 'auto';
18
18
  isInvalidDate?: (date: Date) => boolean;
19
+ parentEl?: string | HTMLElement;
19
20
  datesUpdated: EventEmitter<{
20
21
  startDate: Date | null;
21
22
  endDate: Date | null;
@@ -52,5 +53,5 @@ export declare class DaterangepickerComponent implements OnInit, OnDestroy, Cont
52
53
  setDisabledState(isDisabled: boolean): void;
53
54
  openPicker(): void;
54
55
  static ɵfac: i0.ɵɵFactoryDeclaration<DaterangepickerComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<DaterangepickerComponent, "cqa-daterangepicker", never, { "label": "label"; "placeholder": "placeholder"; "disabled": "disabled"; "startDate": "startDate"; "endDate": "endDate"; "minDate": "minDate"; "maxDate": "maxDate"; "ranges": "ranges"; "autoApply": "autoApply"; "alwaysShowCalendars": "alwaysShowCalendars"; "opens": "opens"; "drops": "drops"; "isInvalidDate": "isInvalidDate"; }, { "datesUpdated": "datesUpdated"; "cancelClicked": "cancelClicked"; "applyClicked": "applyClicked"; }, never, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaterangepickerComponent, "cqa-daterangepicker", never, { "label": "label"; "placeholder": "placeholder"; "disabled": "disabled"; "startDate": "startDate"; "endDate": "endDate"; "minDate": "minDate"; "maxDate": "maxDate"; "ranges": "ranges"; "autoApply": "autoApply"; "alwaysShowCalendars": "alwaysShowCalendars"; "opens": "opens"; "drops": "drops"; "isInvalidDate": "isInvalidDate"; "parentEl": "parentEl"; }, { "datesUpdated": "datesUpdated"; "cancelClicked": "cancelClicked"; "applyClicked": "applyClicked"; }, never, never>;
56
57
  }
@@ -28,7 +28,7 @@ export interface DateRangePickerOptions {
28
28
  autoUpdateInput?: boolean;
29
29
  isInvalidDate?: (date: Date) => boolean;
30
30
  isCustomDate?: (date: Date) => string | boolean;
31
- parentEl?: string;
31
+ parentEl?: string | HTMLElement;
32
32
  }
33
33
  export declare class DaterangepickerDirective implements OnInit, OnDestroy, OnChanges, ControlValueAccessor {
34
34
  private el;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.0.104",
3
+ "version": "1.0.108",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",
@@ -0,0 +1,66 @@
1
+ # Image Assets
2
+
3
+ This folder contains all image assets used by the UI library components.
4
+
5
+ ## Structure
6
+
7
+ - Place all image files (PNG, SVG, JPG, etc.) in this directory
8
+ - Use descriptive file names (e.g., `test-case-icon.svg`, `empty-state-default.png`)
9
+ - For component-specific images, consider creating subdirectories if needed
10
+
11
+ ## Available Images
12
+
13
+ The following images are configured for use in empty state components:
14
+
15
+ - `TestCaseIcon.png` - Test case/document with gear icon
16
+ - `SearchIcon.png` - Magnifying glass with question mark
17
+ - `FilesIcon.png` - Folder/upload icon
18
+ - `DashboardIcon.png` - Dashboard overview cards
19
+ - `StepsIcon.png` - Checklist / tasks icon
20
+ - `document-gear-icon.svg` - Document with gear overlay
21
+ - `ReportsIcon.png` - Analytics/Reports chart icon
22
+ - `SearchIcon.png` - Default fallback icon
23
+
24
+ ## Usage
25
+
26
+ ### Using Image Constants
27
+
28
+ Import the image constants for type-safe access:
29
+
30
+ ```typescript
31
+ import { EMPTY_STATE_IMAGES } from '../assets/images/image-assets.constants';
32
+
33
+ // In component
34
+ imageUrl: EMPTY_STATE_IMAGES.TEST_CASE
35
+ ```
36
+
37
+ ### Direct Path Reference
38
+
39
+ You can also reference images directly:
40
+
41
+ ```typescript
42
+ // Example in component
43
+ imageUrl: 'assets/images/test-case-icon.svg'
44
+ ```
45
+
46
+ ### In Storybook
47
+
48
+ Images are automatically available in Storybook stories:
49
+
50
+ ```typescript
51
+ import { EMPTY_STATE_IMAGES } from '../assets/images/image-assets.constants';
52
+
53
+ export const MyStory = Template.bind({});
54
+ MyStory.args = {
55
+ imageUrl: EMPTY_STATE_IMAGES.TEST_CASE,
56
+ // ...
57
+ };
58
+ ```
59
+
60
+ ## Notes
61
+
62
+ - Keep image file sizes optimized for web
63
+ - Use SVG format when possible for scalability
64
+ - Ensure all images are properly licensed for use in the library
65
+ - Images will be included in the built library and available to consuming applications
66
+