cat-qw-lib 2.1.61 → 2.1.62

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.
@@ -18,9 +18,8 @@ import * as i16 from "primeng/paginator";
18
18
  import * as i17 from "../shared/shared.module";
19
19
  import * as i18 from "primeng/tag";
20
20
  import * as i19 from "../shared/table-secondary/components/table-secondary.component";
21
- import * as i20 from "../shared/components/skeleton/skeleton.component";
22
21
  export declare class QueueModule {
23
22
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<QueueModule, [typeof i1.QueueContainerComponent, typeof i2.QueueSearchComponent, typeof i3.QueueItemComponent, typeof i4.QueueListComponent, typeof i5.QueueRecordTableComponent, typeof i6.QueueFilterDropdownComponent], [typeof i7.CommonModule, typeof i8.QueueRoutingModule, typeof i9.FormsModule, typeof i10.DropdownModule, typeof i11.MultiSelectModule, typeof i12.RippleModule, typeof i13.ButtonModule, typeof i14.RouterModule, typeof i15.BadgeModule, typeof i16.PaginatorModule, typeof i17.SharedModule, typeof i18.TagModule, typeof i19.TableSecondaryComponent, typeof i20.SkeletonComponent], [typeof i1.QueueContainerComponent]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<QueueModule, [typeof i1.QueueContainerComponent, typeof i2.QueueSearchComponent, typeof i3.QueueItemComponent, typeof i4.QueueListComponent, typeof i5.QueueRecordTableComponent, typeof i6.QueueFilterDropdownComponent], [typeof i7.CommonModule, typeof i8.QueueRoutingModule, typeof i9.FormsModule, typeof i10.DropdownModule, typeof i11.MultiSelectModule, typeof i12.RippleModule, typeof i13.ButtonModule, typeof i14.RouterModule, typeof i15.BadgeModule, typeof i16.PaginatorModule, typeof i17.SharedModule, typeof i18.TagModule, typeof i19.TableSecondaryComponent], [typeof i1.QueueContainerComponent]>;
25
24
  static ɵinj: i0.ɵɵInjectorDeclaration<QueueModule>;
26
25
  }
@@ -1,7 +1,10 @@
1
- import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { WidgetStore } from '../../state/widget.store';
3
3
  import { CustomWidgetModel } from '../../../shared/models/custom-widget.model';
4
4
  import { WidgetQuery } from '../../state/widget.query';
5
+ import { WidgetService } from '../../state/widget.service';
6
+ import { WidgetModel } from '../../models/widget.model';
7
+ import { StyleBuilderService } from '../../../shared/services/style-builder.service';
5
8
  import * as i0 from "@angular/core";
6
9
  /**
7
10
  * Widget Container Component
@@ -9,13 +12,27 @@ import * as i0 from "@angular/core";
9
12
  export declare class WidgetContainerComponent implements OnInit, OnChanges, OnDestroy {
10
13
  private widgetStore;
11
14
  private widgetQuery;
12
- constructor(widgetStore: WidgetStore, widgetQuery: WidgetQuery);
15
+ private widgetService;
16
+ private styleBulderService;
17
+ private cdr;
18
+ constructor(widgetStore: WidgetStore, widgetQuery: WidgetQuery, widgetService: WidgetService, styleBulderService: StyleBuilderService, cdr: ChangeDetectorRef);
13
19
  isMenu: boolean;
14
20
  offerWidgetData: CustomWidgetModel;
15
21
  valuationWidgetData: CustomWidgetModel;
16
22
  widgetName: string;
17
23
  recordId: string;
18
24
  onWidgetUpdate: any;
25
+ widgets: WidgetModel[];
26
+ isLoading: boolean;
27
+ widgetCardStyle: {
28
+ [key: string]: any;
29
+ };
30
+ widgetCardStyleExpression: {
31
+ [key: string]: any;
32
+ };
33
+ widgetCombinedStyle: {
34
+ [key: string]: any;
35
+ };
19
36
  onViewAllDetails: EventEmitter<any>;
20
37
  onWidgetEventClick: EventEmitter<any>;
21
38
  onWidgetItemClick: EventEmitter<any>;
@@ -23,6 +40,9 @@ export declare class WidgetContainerComponent implements OnInit, OnChanges, OnDe
23
40
  private destroy$;
24
41
  ngOnInit(): void;
25
42
  ngOnChanges(changes: SimpleChanges): void;
43
+ getWidgetItemList(): void;
44
+ private updateWidgetStylesFromData;
45
+ private updateWidgetStyles;
26
46
  handleViewAllDetails(event: any): void;
27
47
  handleWidgetEventClick(event: any): void;
28
48
  handleWidgetItemClick(event: any): void;
@@ -1,26 +1,21 @@
1
1
  import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { WidgetModel } from '../../models/widget.model';
3
- import { WidgetService } from '../../state/widget.service';
4
- import { WidgetStore } from '../../state/widget.store';
5
3
  import * as i0 from "@angular/core";
6
4
  /**
7
5
  * WidgetRowTileComponent is a component that displays a row of widgets in a tile format.
8
- * It fetches the widgets based on the provided record ID and widget name.
6
+ * It receives the widgets data from its parent container component.
9
7
  */
10
8
  export declare class WidgetRowTileComponent implements OnInit, OnChanges, OnDestroy {
11
- private widgetService;
12
- private widgetStore;
13
9
  private destroy$;
14
10
  widgets: WidgetModel[];
15
11
  isLoading: boolean;
16
12
  recordId: string;
17
13
  widgetName: string;
18
14
  onWidgetUpdate: any;
19
- constructor(widgetService: WidgetService, widgetStore: WidgetStore);
15
+ constructor();
20
16
  ngOnInit(): void;
21
17
  ngOnChanges(changes: SimpleChanges): void;
22
- getWidgetItemList(): void;
23
18
  ngOnDestroy(): void;
24
19
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetRowTileComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<WidgetRowTileComponent, "lib-widget-row-tile", never, { "recordId": { "alias": "recordId"; "required": false; }; "widgetName": { "alias": "widgetName"; "required": false; }; "onWidgetUpdate": { "alias": "onWidgetUpdate"; "required": false; }; }, {}, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetRowTileComponent, "lib-widget-row-tile", never, { "widgets": { "alias": "widgets"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "recordId": { "alias": "recordId"; "required": false; }; "widgetName": { "alias": "widgetName"; "required": false; }; "onWidgetUpdate": { "alias": "onWidgetUpdate"; "required": false; }; }, {}, never, never, false, never>;
26
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-qw-lib",
3
- "version": "2.1.61",
3
+ "version": "2.1.62",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SkeletonComponent implements OnInit {
4
- products: any[];
5
- count: number;
6
- columns: any;
7
- width: string;
8
- height: string;
9
- isAllowCard: boolean;
10
- ngOnInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonComponent, "lib-skeleton", never, { "count": { "alias": "count"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "isAllowCard": { "alias": "isAllowCard"; "required": false; }; }, {}, never, never, true, never>;
13
- }