cat-qw-lib 2.3.17 → 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 +12 -24
- 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,16 +5428,13 @@ class WidgetItemComponent {
|
|
|
5430
5428
|
});
|
|
5431
5429
|
}
|
|
5432
5430
|
handleIsEmptyValueHidden() {
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
.
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
}
|
|
5441
|
-
}
|
|
5442
|
-
});
|
|
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
|
+
}
|
|
5443
5438
|
}
|
|
5444
5439
|
handleDynamicEvent(recordId) {
|
|
5445
5440
|
this.widgetStore.setEventClickDetails({ recordId: recordId, isDailogShow: true });
|
|
@@ -5893,7 +5888,6 @@ class WidgetContainerComponent {
|
|
|
5893
5888
|
onWidgetEventClick = new EventEmitter();
|
|
5894
5889
|
onWidgetItemClick = new EventEmitter();
|
|
5895
5890
|
onUpdatedWidgetList = new EventEmitter();
|
|
5896
|
-
isEmptyValueHidden = false;
|
|
5897
5891
|
destroy$ = new Subject();
|
|
5898
5892
|
ngOnInit() {
|
|
5899
5893
|
this.widgetQuery.getWidgetList()
|
|
@@ -5909,10 +5903,6 @@ class WidgetContainerComponent {
|
|
|
5909
5903
|
this.isMenu = changes[SHARED.IS_MENU].currentValue;
|
|
5910
5904
|
this.widgetStore.setIsMenu(this.isMenu);
|
|
5911
5905
|
}
|
|
5912
|
-
if (changes['isEmptyValueHidden']) {
|
|
5913
|
-
this.isEmptyValueHidden = changes['isEmptyValueHidden'].currentValue;
|
|
5914
|
-
this.widgetStore.setIsEmptyValueHidden(this.isEmptyValueHidden);
|
|
5915
|
-
}
|
|
5916
5906
|
}
|
|
5917
5907
|
handleViewAllDetails(event) {
|
|
5918
5908
|
this.onViewAllDetails.emit(event);
|
|
@@ -5928,7 +5918,7 @@ class WidgetContainerComponent {
|
|
|
5928
5918
|
this.destroy$.complete();
|
|
5929
5919
|
}
|
|
5930
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 });
|
|
5931
|
-
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"] }] });
|
|
5932
5922
|
}
|
|
5933
5923
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: WidgetContainerComponent, decorators: [{
|
|
5934
5924
|
type: Component,
|
|
@@ -5953,8 +5943,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
5953
5943
|
type: Output
|
|
5954
5944
|
}], onUpdatedWidgetList: [{
|
|
5955
5945
|
type: Output
|
|
5956
|
-
}], isEmptyValueHidden: [{
|
|
5957
|
-
type: Input
|
|
5958
5946
|
}] } });
|
|
5959
5947
|
|
|
5960
5948
|
class WidgetMenuHeaderComponent {
|