cat-qw-lib 2.1.62 → 2.1.63
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.
package/fesm2022/cat-qw-lib.mjs
CHANGED
|
@@ -5812,27 +5812,18 @@ class WidgetContainerComponent {
|
|
|
5812
5812
|
});
|
|
5813
5813
|
}
|
|
5814
5814
|
updateWidgetStylesFromData() {
|
|
5815
|
-
console.log(this.widgets, 'test8399');
|
|
5816
5815
|
if (this.widgets && this.widgets.length > 0) {
|
|
5817
|
-
|
|
5818
|
-
const matchingWidget = this.widgets.find((widget) => widget.widgetName === this.widgetName);
|
|
5819
|
-
console.log(matchingWidget, 'test839399');
|
|
5820
|
-
if (matchingWidget && matchingWidget.style) {
|
|
5821
|
-
this.updateWidgetStyles(matchingWidget);
|
|
5822
|
-
}
|
|
5816
|
+
this.updateWidgetStyles(this.widgets[0]);
|
|
5823
5817
|
}
|
|
5824
5818
|
}
|
|
5825
5819
|
updateWidgetStyles(widget) {
|
|
5826
|
-
console.log(widget, 'widget');
|
|
5827
5820
|
if (widget.style) {
|
|
5828
5821
|
const parsedItemStyle = this.styleBulderService.parseStyleObject(widget.style.widgetCardStyle);
|
|
5829
5822
|
const styleExpression = this.styleBulderService.parseStyleObject(widget.style.widgetCardStyleExpression);
|
|
5830
5823
|
this.widgetCardStyle = this.styleBulderService.getItemStyle(parsedItemStyle);
|
|
5831
|
-
console.log(this.widgetCardStyle, 'testing3999');
|
|
5832
5824
|
this.widgetCardStyleExpression = widget.style.widgetCardStyleExpression ? this.styleBulderService.getItemStyle(styleExpression) : {};
|
|
5833
5825
|
this.widgetCombinedStyle = { ...this.widgetCardStyle, ...this.widgetCardStyleExpression };
|
|
5834
5826
|
this.cdr.detectChanges();
|
|
5835
|
-
console.log(this.widgetCombinedStyle, 'test778');
|
|
5836
5827
|
}
|
|
5837
5828
|
}
|
|
5838
5829
|
handleViewAllDetails(event) {
|