cat-qw-lib 2.1.54 → 2.1.56

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.
@@ -5783,13 +5783,13 @@ class WidgetContainerComponent {
5783
5783
  onUpdatedWidgetList = new EventEmitter();
5784
5784
  destroy$ = new Subject();
5785
5785
  ngOnInit() {
5786
- // Subscribe to widget list changes to handle async loading
5787
5786
  this.widgetQuery.getWidgetList()
5788
5787
  .pipe(takeUntil(this.destroy$))
5789
5788
  .subscribe((data) => {
5790
- console.log('data1', data);
5791
- this.updateWidgetStyles(data);
5792
- this.onUpdatedWidgetList.emit(data);
5789
+ if (data) {
5790
+ this.updateWidgetStyles(data[0]);
5791
+ this.onUpdatedWidgetList.emit(data);
5792
+ }
5793
5793
  });
5794
5794
  }
5795
5795
  updateWidgetStyles(widget) {
@@ -5798,8 +5798,6 @@ class WidgetContainerComponent {
5798
5798
  const styleExpression = this.styleBulderService.parseStyleObject(widget.style.widgetCardStyleExpression);
5799
5799
  this.widgetCardStyle = this.styleBulderService.getItemStyle(parsedItemStyle);
5800
5800
  this.widgetCardStyleExpression = widget.style.widgetCardStyleExpression ? this.styleBulderService.getItemStyle(styleExpression) : {};
5801
- console.log('Style Expression:', styleExpression);
5802
- console.log('Widget Card Style:', this.widgetCardStyle);
5803
5801
  this.widgetCombinedStyle = { ...this.widgetCardStyle, ...this.widgetCardStyleExpression };
5804
5802
  }
5805
5803
  }
@@ -5808,20 +5806,6 @@ class WidgetContainerComponent {
5808
5806
  this.isMenu = changes[SHARED.IS_MENU].currentValue;
5809
5807
  this.widgetStore.setIsMenu(this.isMenu);
5810
5808
  }
5811
- // Handle widgetName changes to update styles
5812
- if (changes['widgetName'] && this.widgetName) {
5813
- this.updateStylesForCurrentWidget();
5814
- }
5815
- }
5816
- updateStylesForCurrentWidget() {
5817
- this.widgetQuery.getWidgetList()
5818
- .pipe(takeUntil(this.destroy$))
5819
- .subscribe((data) => {
5820
- console.log('data', data);
5821
- if (data && data.style) {
5822
- this.updateWidgetStyles(data);
5823
- }
5824
- });
5825
5809
  }
5826
5810
  handleViewAllDetails(event) {
5827
5811
  this.onViewAllDetails.emit(event);