cat-qw-lib 2.1.56 → 2.1.58
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
|
@@ -5763,10 +5763,12 @@ class WidgetContainerComponent {
|
|
|
5763
5763
|
widgetStore;
|
|
5764
5764
|
widgetQuery;
|
|
5765
5765
|
styleBulderService;
|
|
5766
|
-
|
|
5766
|
+
cdr;
|
|
5767
|
+
constructor(widgetStore, widgetQuery, styleBulderService, cdr) {
|
|
5767
5768
|
this.widgetStore = widgetStore;
|
|
5768
5769
|
this.widgetQuery = widgetQuery;
|
|
5769
5770
|
this.styleBulderService = styleBulderService;
|
|
5771
|
+
this.cdr = cdr;
|
|
5770
5772
|
}
|
|
5771
5773
|
isMenu = false;
|
|
5772
5774
|
offerWidgetData;
|
|
@@ -5787,18 +5789,23 @@ class WidgetContainerComponent {
|
|
|
5787
5789
|
.pipe(takeUntil(this.destroy$))
|
|
5788
5790
|
.subscribe((data) => {
|
|
5789
5791
|
if (data) {
|
|
5792
|
+
console.log(data, 'fara1');
|
|
5790
5793
|
this.updateWidgetStyles(data[0]);
|
|
5791
5794
|
this.onUpdatedWidgetList.emit(data);
|
|
5792
5795
|
}
|
|
5793
5796
|
});
|
|
5794
5797
|
}
|
|
5795
5798
|
updateWidgetStyles(widget) {
|
|
5799
|
+
console.log(widget, 'widget');
|
|
5796
5800
|
if (widget.style) {
|
|
5797
5801
|
const parsedItemStyle = this.styleBulderService.parseStyleObject(widget.style.widgetCardStyle);
|
|
5798
5802
|
const styleExpression = this.styleBulderService.parseStyleObject(widget.style.widgetCardStyleExpression);
|
|
5799
5803
|
this.widgetCardStyle = this.styleBulderService.getItemStyle(parsedItemStyle);
|
|
5804
|
+
console.log(this.widgetCardStyle, 'testing3999');
|
|
5800
5805
|
this.widgetCardStyleExpression = widget.style.widgetCardStyleExpression ? this.styleBulderService.getItemStyle(styleExpression) : {};
|
|
5801
5806
|
this.widgetCombinedStyle = { ...this.widgetCardStyle, ...this.widgetCardStyleExpression };
|
|
5807
|
+
this.cdr.detectChanges();
|
|
5808
|
+
console.log(this.widgetCombinedStyle, 'test778');
|
|
5802
5809
|
}
|
|
5803
5810
|
}
|
|
5804
5811
|
ngOnChanges(changes) {
|
|
@@ -5820,13 +5827,13 @@ class WidgetContainerComponent {
|
|
|
5820
5827
|
this.destroy$.next();
|
|
5821
5828
|
this.destroy$.complete();
|
|
5822
5829
|
}
|
|
5823
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetContainerComponent, deps: [{ token: WidgetStore }, { token: WidgetQuery }, { token: StyleBuilderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5830
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetContainerComponent, deps: [{ token: WidgetStore }, { token: WidgetQuery }, { token: StyleBuilderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5824
5831
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: WidgetContainerComponent, isStandalone: false, selector: "lib-widget-container", inputs: { isMenu: "isMenu", offerWidgetData: "offerWidgetData", valuationWidgetData: "valuationWidgetData", widgetName: "widgetName", recordId: "recordId", onWidgetUpdate: "onWidgetUpdate" }, outputs: { onViewAllDetails: "onViewAllDetails", onWidgetEventClick: "onWidgetEventClick", onWidgetItemClick: "onWidgetItemClick", onUpdatedWidgetList: "onUpdatedWidgetList" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"widget-container-wrapper\">\r\n @if(isMenu) {\r\n <div class=\"bg-white widget-menu-container\">\r\n <lib-widget-menu \r\n [offerWidgetData]=\"offerWidgetData\"\r\n [valuationWidgetData]=\"valuationWidgetData\"\r\n (onViewAllDetails)=\"handleViewAllDetails($event)\"\r\n (onWidgetEventClick)=\"handleWidgetEventClick($event)\"\r\n (onWidgetItemClick)=\"handleWidgetItemClick($event)\"\r\n ></lib-widget-menu>\r\n </div>\r\n } @else {\r\n <div [ngStyle]=\"widgetCombinedStyle\" class=\"widget-menu-container\">\r\n <lib-widget-row-tile\r\n [recordId]=\"recordId\"\r\n [widgetName]=\"widgetName\"\r\n [onWidgetUpdate]=\"onWidgetUpdate\"\r\n ></lib-widget-row-tile>\r\n </div>\r\n }\r\n</div>", styles: ["::ng-deep .badge-wrapper .p-button{padding:4px 8px}::ng-deep .refresh-btn-wrapper .p-button{padding:0}::ng-deep .valuation-timeline-wrapper .p-timeline-event-opposite{display:none}::ng-deep .rating-badge-wrapper .p-button{display:flex;align-items:center}::ng-deep .widget-block-wrapper{height:100%}::ng-deep .widget-block-wrapper .p-card{height:100%;background-color:var(--surface-0)!important;border-radius:10px;box-shadow:none}::ng-deep .widget-block-wrapper .p-card-body{padding:0;height:100%}::ng-deep .widget-block-wrapper .p-card-content{padding:0;height:100%}.application-title-wrapper{font-size:18px;font-weight:400}.application-section-wrapper{background-color:#4c629208;border:1px solid rgba(76,98,146,.1);border-radius:10px}.widget-section-wrapper{height:100%}.custom-scroll{overflow-y:hidden;scrollbar-gutter:stable}.custom-scroll:hover{overflow-y:auto}.widget-menu-container{border-radius:10px;background-color:#fff}:host ::-webkit-scrollbar{width:7px}:host ::-webkit-scrollbar-track{background:transparent}:host ::-webkit-scrollbar-thumb{background:#d1d5db94;border-radius:20px}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: WidgetMenuComponent, selector: "lib-widget-menu", inputs: ["isSidebarVisible", "offerWidgetData", "valuationWidgetData"], outputs: ["onViewAllDetails", "onWidgetEventClick", "onWidgetItemClick"] }, { kind: "component", type: WidgetRowTileComponent, selector: "lib-widget-row-tile", inputs: ["recordId", "widgetName", "onWidgetUpdate"] }] });
|
|
5825
5832
|
}
|
|
5826
5833
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetContainerComponent, decorators: [{
|
|
5827
5834
|
type: Component,
|
|
5828
5835
|
args: [{ selector: 'lib-widget-container', standalone: false, template: "<div class=\"widget-container-wrapper\">\r\n @if(isMenu) {\r\n <div class=\"bg-white widget-menu-container\">\r\n <lib-widget-menu \r\n [offerWidgetData]=\"offerWidgetData\"\r\n [valuationWidgetData]=\"valuationWidgetData\"\r\n (onViewAllDetails)=\"handleViewAllDetails($event)\"\r\n (onWidgetEventClick)=\"handleWidgetEventClick($event)\"\r\n (onWidgetItemClick)=\"handleWidgetItemClick($event)\"\r\n ></lib-widget-menu>\r\n </div>\r\n } @else {\r\n <div [ngStyle]=\"widgetCombinedStyle\" class=\"widget-menu-container\">\r\n <lib-widget-row-tile\r\n [recordId]=\"recordId\"\r\n [widgetName]=\"widgetName\"\r\n [onWidgetUpdate]=\"onWidgetUpdate\"\r\n ></lib-widget-row-tile>\r\n </div>\r\n }\r\n</div>", styles: ["::ng-deep .badge-wrapper .p-button{padding:4px 8px}::ng-deep .refresh-btn-wrapper .p-button{padding:0}::ng-deep .valuation-timeline-wrapper .p-timeline-event-opposite{display:none}::ng-deep .rating-badge-wrapper .p-button{display:flex;align-items:center}::ng-deep .widget-block-wrapper{height:100%}::ng-deep .widget-block-wrapper .p-card{height:100%;background-color:var(--surface-0)!important;border-radius:10px;box-shadow:none}::ng-deep .widget-block-wrapper .p-card-body{padding:0;height:100%}::ng-deep .widget-block-wrapper .p-card-content{padding:0;height:100%}.application-title-wrapper{font-size:18px;font-weight:400}.application-section-wrapper{background-color:#4c629208;border:1px solid rgba(76,98,146,.1);border-radius:10px}.widget-section-wrapper{height:100%}.custom-scroll{overflow-y:hidden;scrollbar-gutter:stable}.custom-scroll:hover{overflow-y:auto}.widget-menu-container{border-radius:10px;background-color:#fff}:host ::-webkit-scrollbar{width:7px}:host ::-webkit-scrollbar-track{background:transparent}:host ::-webkit-scrollbar-thumb{background:#d1d5db94;border-radius:20px}\n"] }]
|
|
5829
|
-
}], ctorParameters: () => [{ type: WidgetStore }, { type: WidgetQuery }, { type: StyleBuilderService }], propDecorators: { isMenu: [{
|
|
5836
|
+
}], ctorParameters: () => [{ type: WidgetStore }, { type: WidgetQuery }, { type: StyleBuilderService }, { type: i0.ChangeDetectorRef }], propDecorators: { isMenu: [{
|
|
5830
5837
|
type: Input
|
|
5831
5838
|
}], offerWidgetData: [{
|
|
5832
5839
|
type: Input
|