cat-qw-lib 2.3.9 → 2.3.11

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.
@@ -6,6 +6,7 @@ export declare class WidgetBodyComponent implements OnChanges {
6
6
  private styleBulderService;
7
7
  constructor(styleBulderService: StyleBuilderService);
8
8
  widget: WidgetModel;
9
+ isEmptyValueHidden: boolean;
9
10
  hasBackgroundColor: Array<boolean>;
10
11
  widgetItemStyle: Array<{
11
12
  [key: string]: any;
@@ -13,5 +14,5 @@ export declare class WidgetBodyComponent implements OnChanges {
13
14
  isConfirmed: Array<boolean>;
14
15
  ngOnChanges(changes: SimpleChanges): void;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetBodyComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<WidgetBodyComponent, "lib-widget-body", never, { "widget": { "alias": "widget"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetBodyComponent, "lib-widget-body", never, { "widget": { "alias": "widget"; "required": false; }; "isEmptyValueHidden": { "alias": "isEmptyValueHidden"; "required": false; }; }, {}, never, never, false, never>;
17
18
  }
@@ -20,6 +20,7 @@ export declare class WidgetContainerComponent implements OnInit, OnChanges, OnDe
20
20
  onWidgetEventClick: EventEmitter<any>;
21
21
  onWidgetItemClick: EventEmitter<any>;
22
22
  onUpdatedWidgetList: EventEmitter<any>;
23
+ isEmptyValueHidden: boolean;
23
24
  private destroy$;
24
25
  ngOnInit(): void;
25
26
  ngOnChanges(changes: SimpleChanges): void;
@@ -28,5 +29,5 @@ export declare class WidgetContainerComponent implements OnInit, OnChanges, OnDe
28
29
  handleWidgetItemClick(event: any): void;
29
30
  ngOnDestroy(): void;
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetContainerComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<WidgetContainerComponent, "lib-widget-container", never, { "isMenu": { "alias": "isMenu"; "required": false; }; "offerWidgetData": { "alias": "offerWidgetData"; "required": false; }; "valuationWidgetData": { "alias": "valuationWidgetData"; "required": false; }; "widgetName": { "alias": "widgetName"; "required": false; }; "recordId": { "alias": "recordId"; "required": false; }; "onWidgetUpdate": { "alias": "onWidgetUpdate"; "required": false; }; }, { "onViewAllDetails": "onViewAllDetails"; "onWidgetEventClick": "onWidgetEventClick"; "onWidgetItemClick": "onWidgetItemClick"; "onUpdatedWidgetList": "onUpdatedWidgetList"; }, never, never, false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetContainerComponent, "lib-widget-container", never, { "isMenu": { "alias": "isMenu"; "required": false; }; "offerWidgetData": { "alias": "offerWidgetData"; "required": false; }; "valuationWidgetData": { "alias": "valuationWidgetData"; "required": false; }; "widgetName": { "alias": "widgetName"; "required": false; }; "recordId": { "alias": "recordId"; "required": false; }; "onWidgetUpdate": { "alias": "onWidgetUpdate"; "required": false; }; "isEmptyValueHidden": { "alias": "isEmptyValueHidden"; "required": false; }; }, { "onViewAllDetails": "onViewAllDetails"; "onWidgetEventClick": "onWidgetEventClick"; "onWidgetItemClick": "onWidgetItemClick"; "onUpdatedWidgetList": "onUpdatedWidgetList"; }, never, never, false, never>;
32
33
  }
@@ -11,6 +11,7 @@ export declare class WidgetItemComponent implements OnInit, OnChanges, OnDestroy
11
11
  widgetItem: WidgetItem;
12
12
  widget: WidgetModel;
13
13
  application: any;
14
+ isEmptyValueHidden: boolean;
14
15
  widgetKey: string;
15
16
  keyClass: string;
16
17
  valueClass: string;
@@ -46,9 +47,18 @@ export declare class WidgetItemComponent implements OnInit, OnChanges, OnDestroy
46
47
  isMenu: boolean;
47
48
  valueIconClassExpression: string;
48
49
  private destroy$;
50
+ shouldShowItem: boolean;
51
+ hasContent: boolean;
52
+ isDateValue: boolean;
53
+ formattedDateValue: string;
54
+ hasHtmlContentValue: boolean;
49
55
  constructor(styleBulderService: StyleBuilderService, widgetStore: WidgetStore, widgetQuery: WidgetQuery);
50
56
  ngOnInit(): void;
51
57
  ngOnChanges(): void;
58
+ /**
59
+ * Computes all value-related properties once to avoid function calls in template
60
+ */
61
+ private computeValueProperties;
52
62
  handleIsMenu(): void;
53
63
  handleDynamicEvent(recordId: string): void;
54
64
  ngOnDestroy(): void;
@@ -60,7 +70,14 @@ export declare class WidgetItemComponent implements OnInit, OnChanges, OnDestroy
60
70
  * @returns true if there's meaningful content, false otherwise
61
71
  */
62
72
  hasHtmlContent(value: string): boolean;
73
+ /**
74
+ * Checks if the value has meaningful content (for both HTML and non-HTML values)
75
+ * @param value - The value to check
76
+ * @param isHtml - Whether the value is HTML content
77
+ * @returns true if there's meaningful content, false otherwise
78
+ */
79
+ hasValueContent(value: string, isHtml: boolean): boolean;
63
80
  formatDate(value: string): string;
64
81
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetItemComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<WidgetItemComponent, "lib-widget-item", never, { "widgetItem": { "alias": "widgetItem"; "required": false; }; "widget": { "alias": "widget"; "required": false; }; "application": { "alias": "application"; "required": false; }; }, {}, never, never, false, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetItemComponent, "lib-widget-item", never, { "widgetItem": { "alias": "widgetItem"; "required": false; }; "widget": { "alias": "widget"; "required": false; }; "application": { "alias": "application"; "required": false; }; "isEmptyValueHidden": { "alias": "isEmptyValueHidden"; "required": false; }; }, {}, never, never, false, never>;
66
83
  }
@@ -7,6 +7,7 @@ export declare class WidgetMainComponent implements OnChanges {
7
7
  constructor(styleBulderService: StyleBuilderService);
8
8
  widget: WidgetModel;
9
9
  index: number;
10
+ isEmptyValueHidden: boolean;
10
11
  widgetStyle: {
11
12
  [key: string]: any;
12
13
  };
@@ -18,5 +19,5 @@ export declare class WidgetMainComponent implements OnChanges {
18
19
  };
19
20
  ngOnChanges(): void;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMainComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMainComponent, "lib-widget-main", never, { "widget": { "alias": "widget"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, false, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMainComponent, "lib-widget-main", never, { "widget": { "alias": "widget"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isEmptyValueHidden": { "alias": "isEmptyValueHidden"; "required": false; }; }, {}, never, never, false, never>;
22
23
  }
@@ -21,6 +21,7 @@ export declare class WidgetRowTileComponent implements OnInit, OnChanges, OnDest
21
21
  recordId: string;
22
22
  widgetName: string;
23
23
  onWidgetUpdate: any;
24
+ isEmptyValueHidden: boolean;
24
25
  onWidgetItemClick: EventEmitter<any>;
25
26
  widgetCardStyle: {
26
27
  [key: string]: any;
@@ -39,5 +40,5 @@ export declare class WidgetRowTileComponent implements OnInit, OnChanges, OnDest
39
40
  private updateWidgetStyles;
40
41
  ngOnDestroy(): void;
41
42
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetRowTileComponent, never>;
42
- 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; }; }, { "onWidgetItemClick": "onWidgetItemClick"; }, never, never, false, never>;
43
+ 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; }; "isEmptyValueHidden": { "alias": "isEmptyValueHidden"; "required": false; }; }, { "onWidgetItemClick": "onWidgetItemClick"; }, never, never, false, never>;
43
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-qw-lib",
3
- "version": "2.3.9",
3
+ "version": "2.3.11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"