cat-qw-lib 2.3.16 → 2.3.19
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 +14 -27
- package/fesm2022/cat-qw-lib.mjs.map +1 -1
- package/lib/widget/components/widget-container/widget-container.component.d.ts +1 -2
- package/lib/widget/models/widget.model.d.ts +1 -0
- package/lib/widget/state/widget.query.d.ts +0 -1
- package/lib/widget/state/widget.store.d.ts +0 -1
- package/package.json +1 -1
package/fesm2022/cat-qw-lib.mjs
CHANGED
|
@@ -5123,9 +5123,6 @@ let WidgetStore = class WidgetStore extends BaseStore {
|
|
|
5123
5123
|
setIsMenu(isMenu) {
|
|
5124
5124
|
this.update({ isMenu: isMenu });
|
|
5125
5125
|
}
|
|
5126
|
-
setIsEmptyValueHidden(isEmptyValueHidden) {
|
|
5127
|
-
this.update({ isEmptyValueHidden: isEmptyValueHidden });
|
|
5128
|
-
}
|
|
5129
5126
|
setWidgetData(value) {
|
|
5130
5127
|
this.getWidgetData$.next(value);
|
|
5131
5128
|
}
|
|
@@ -5172,9 +5169,6 @@ class WidgetQuery extends BaseQuery {
|
|
|
5172
5169
|
getIsMenu() {
|
|
5173
5170
|
return this.select(state => state['isMenu']);
|
|
5174
5171
|
}
|
|
5175
|
-
getIsEmptyValueHidden() {
|
|
5176
|
-
return this.select(state => state['isEmptyValueHidden']);
|
|
5177
|
-
}
|
|
5178
5172
|
getWidgetData() {
|
|
5179
5173
|
return this.widgetStore.getWidgetData$.asObservable();
|
|
5180
5174
|
}
|
|
@@ -5378,6 +5372,10 @@ class WidgetItemComponent {
|
|
|
5378
5372
|
this.handleIsEmptyValueHidden();
|
|
5379
5373
|
}
|
|
5380
5374
|
ngOnChanges() {
|
|
5375
|
+
// Handle isEmptyLabelHidden from widget model changes
|
|
5376
|
+
if (this.widget && this.widget.isEmptyLabelHidden !== undefined) {
|
|
5377
|
+
this.isEmptyValueHidden = this.widget.isEmptyLabelHidden;
|
|
5378
|
+
}
|
|
5381
5379
|
if (this.widgetItem && this.widgetItem.style) {
|
|
5382
5380
|
this.keyClass = this.widgetItem.style.keyClass;
|
|
5383
5381
|
this.valueClass = this.widgetItem.style.valueClass;
|
|
@@ -5430,17 +5428,13 @@ class WidgetItemComponent {
|
|
|
5430
5428
|
});
|
|
5431
5429
|
}
|
|
5432
5430
|
handleIsEmptyValueHidden() {
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
.
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
this.computeValueProperties();
|
|
5441
|
-
}
|
|
5442
|
-
}
|
|
5443
|
-
});
|
|
5431
|
+
// Use isEmptyLabelHidden directly from widget model
|
|
5432
|
+
if (this.widget && this.widget.isEmptyLabelHidden !== undefined) {
|
|
5433
|
+
this.isEmptyValueHidden = this.widget.isEmptyLabelHidden;
|
|
5434
|
+
}
|
|
5435
|
+
if (this.widgetItem && this.widgetItem.style) {
|
|
5436
|
+
this.computeValueProperties();
|
|
5437
|
+
}
|
|
5444
5438
|
}
|
|
5445
5439
|
handleDynamicEvent(recordId) {
|
|
5446
5440
|
this.widgetStore.setEventClickDetails({ recordId: recordId, isDailogShow: true });
|
|
@@ -5566,11 +5560,11 @@ class WidgetBodyComponent {
|
|
|
5566
5560
|
}
|
|
5567
5561
|
}
|
|
5568
5562
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetBodyComponent, deps: [{ token: StyleBuilderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5569
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: WidgetBodyComponent, isStandalone: false, selector: "lib-widget-body", inputs: { widget: "widget" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"widget-body-container grid m-0\">\r\n <div *ngFor=\"let dataItem of widget?.dataItems || []; let i = index\" [ngClass]=\"[widget.style.width, widget.style.width === 'col-12' ? 'p-0' : '']\">\r\n @if(!dataItem.isHidden){\r\n <div class=\"h-full\" [ngStyle]=\"widgetItemStyle[i]\" \r\n [ngClass]=\"{\r\n 'widget-confirm-wrapper': isConfirmed[i]\r\n }\">\r\n <div>\r\n <lib-widget-item
|
|
5563
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: WidgetBodyComponent, isStandalone: false, selector: "lib-widget-body", inputs: { widget: "widget" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"widget-body-container grid m-0\">\r\n <div *ngFor=\"let dataItem of widget?.dataItems || []; let i = index\" [ngClass]=\"[widget.style.width, widget.style.width === 'col-12' ? 'p-0' : '']\">\r\n @if(!dataItem.isHidden){\r\n <div class=\"h-full\" [ngStyle]=\"widgetItemStyle[i]\" \r\n [ngClass]=\"{\r\n 'widget-confirm-wrapper': isConfirmed[i]\r\n }\">\r\n <div>\r\n <lib-widget-item [widgetItem]=\"dataItem\" [widget]=\"widget\"></lib-widget-item>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</div>", styles: [".widget-item-wrapper{border-bottom:1px solid rgba(68,72,109,.1)}.widget-confirm-wrapper{background-color:#e8fbee!important;border:1px solid #22C55E!important}.vulnerability-title-wrapper{background:#fb392d36}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: WidgetItemComponent, selector: "lib-widget-item", inputs: ["widgetItem", "widget", "application"] }] });
|
|
5570
5564
|
}
|
|
5571
5565
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetBodyComponent, decorators: [{
|
|
5572
5566
|
type: Component,
|
|
5573
|
-
args: [{ selector: 'lib-widget-body', standalone: false, template: "<div class=\"widget-body-container grid m-0\">\r\n <div *ngFor=\"let dataItem of widget?.dataItems || []; let i = index\" [ngClass]=\"[widget.style.width, widget.style.width === 'col-12' ? 'p-0' : '']\">\r\n @if(!dataItem.isHidden){\r\n <div class=\"h-full\" [ngStyle]=\"widgetItemStyle[i]\" \r\n [ngClass]=\"{\r\n 'widget-confirm-wrapper': isConfirmed[i]\r\n }\">\r\n <div>\r\n <lib-widget-item
|
|
5567
|
+
args: [{ selector: 'lib-widget-body', standalone: false, template: "<div class=\"widget-body-container grid m-0\">\r\n <div *ngFor=\"let dataItem of widget?.dataItems || []; let i = index\" [ngClass]=\"[widget.style.width, widget.style.width === 'col-12' ? 'p-0' : '']\">\r\n @if(!dataItem.isHidden){\r\n <div class=\"h-full\" [ngStyle]=\"widgetItemStyle[i]\" \r\n [ngClass]=\"{\r\n 'widget-confirm-wrapper': isConfirmed[i]\r\n }\">\r\n <div>\r\n <lib-widget-item [widgetItem]=\"dataItem\" [widget]=\"widget\"></lib-widget-item>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</div>", styles: [".widget-item-wrapper{border-bottom:1px solid rgba(68,72,109,.1)}.widget-confirm-wrapper{background-color:#e8fbee!important;border:1px solid #22C55E!important}.vulnerability-title-wrapper{background:#fb392d36}\n"] }]
|
|
5574
5568
|
}], ctorParameters: () => [{ type: StyleBuilderService }], propDecorators: { widget: [{
|
|
5575
5569
|
type: Input
|
|
5576
5570
|
}] } });
|
|
@@ -5894,7 +5888,6 @@ class WidgetContainerComponent {
|
|
|
5894
5888
|
onWidgetEventClick = new EventEmitter();
|
|
5895
5889
|
onWidgetItemClick = new EventEmitter();
|
|
5896
5890
|
onUpdatedWidgetList = new EventEmitter();
|
|
5897
|
-
isEmptyValueHidden = false;
|
|
5898
5891
|
destroy$ = new Subject();
|
|
5899
5892
|
ngOnInit() {
|
|
5900
5893
|
this.widgetQuery.getWidgetList()
|
|
@@ -5910,10 +5903,6 @@ class WidgetContainerComponent {
|
|
|
5910
5903
|
this.isMenu = changes[SHARED.IS_MENU].currentValue;
|
|
5911
5904
|
this.widgetStore.setIsMenu(this.isMenu);
|
|
5912
5905
|
}
|
|
5913
|
-
if (changes['isEmptyValueHidden']) {
|
|
5914
|
-
this.isEmptyValueHidden = changes['isEmptyValueHidden'].currentValue;
|
|
5915
|
-
this.widgetStore.setIsEmptyValueHidden(this.isEmptyValueHidden);
|
|
5916
|
-
}
|
|
5917
5906
|
}
|
|
5918
5907
|
handleViewAllDetails(event) {
|
|
5919
5908
|
this.onViewAllDetails.emit(event);
|
|
@@ -5929,7 +5918,7 @@ class WidgetContainerComponent {
|
|
|
5929
5918
|
this.destroy$.complete();
|
|
5930
5919
|
}
|
|
5931
5920
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetContainerComponent, deps: [{ token: WidgetStore }, { token: WidgetQuery }], target: i0.ɵɵFactoryTarget.Component });
|
|
5932
|
-
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"
|
|
5921
|
+
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 class=\"bg-white widget-menu-container\">\r\n <lib-widget-row-tile\r\n [recordId]=\"recordId\"\r\n [widgetName]=\"widgetName\"\r\n [onWidgetUpdate]=\"onWidgetUpdate\"\r\n (onWidgetItemClick)=\"handleWidgetItemClick($event)\"\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);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}:host ::-webkit-scrollbar{width:7px}:host ::-webkit-scrollbar-track{background:transparent}:host ::-webkit-scrollbar-thumb{background:#d1d5db94;border-radius:20px}\n"], dependencies: [{ 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"], outputs: ["onWidgetItemClick"] }] });
|
|
5933
5922
|
}
|
|
5934
5923
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetContainerComponent, decorators: [{
|
|
5935
5924
|
type: Component,
|
|
@@ -5954,8 +5943,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
5954
5943
|
type: Output
|
|
5955
5944
|
}], onUpdatedWidgetList: [{
|
|
5956
5945
|
type: Output
|
|
5957
|
-
}], isEmptyValueHidden: [{
|
|
5958
|
-
type: Input
|
|
5959
5946
|
}] } });
|
|
5960
5947
|
|
|
5961
5948
|
class WidgetMenuHeaderComponent {
|