cat-qw-lib 0.48.6 → 0.48.7
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
|
@@ -4438,7 +4438,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImpor
|
|
|
4438
4438
|
class WidgetLayoutComponent {
|
|
4439
4439
|
widgetService;
|
|
4440
4440
|
destroy$ = new Subject();
|
|
4441
|
-
|
|
4441
|
+
widget;
|
|
4442
4442
|
isLoading = true;
|
|
4443
4443
|
recordId;
|
|
4444
4444
|
widgetName;
|
|
@@ -4452,7 +4452,7 @@ class WidgetLayoutComponent {
|
|
|
4452
4452
|
this.widgetService.getEvaluateByWidgetName(this.recordId, this.widgetName)
|
|
4453
4453
|
.pipe(takeUntil(this.destroy$))
|
|
4454
4454
|
.subscribe((res) => {
|
|
4455
|
-
this.
|
|
4455
|
+
this.widget = res;
|
|
4456
4456
|
this.isLoading = false;
|
|
4457
4457
|
}, (error) => {
|
|
4458
4458
|
this.isLoading = false;
|
|
@@ -4463,11 +4463,11 @@ class WidgetLayoutComponent {
|
|
|
4463
4463
|
this.destroy$.complete();
|
|
4464
4464
|
}
|
|
4465
4465
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: WidgetLayoutComponent, deps: [{ token: WidgetService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4466
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.4", type: WidgetLayoutComponent, isStandalone: false, selector: "lib-widget-layout", inputs: { recordId: "recordId", widgetName: "widgetName" }, ngImport: i0, template: "<p-card class=\"widget-block-wrapper block\">\r\n <div class=\"widget-section-wrapper custom-scroll pt-2\">\r\n <!-- Loading state -->\r\n <ng-container *ngIf=\"isLoading; else widgetContent\">\r\n <p class=\"text-color ml-3 font-semibold\">Widget configuration loading...</p>\r\n </ng-container>\r\n \r\n <!-- Content after API call -->\r\n <ng-template #widgetContent>\r\n <ng-container *ngIf=\"
|
|
4466
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.4", type: WidgetLayoutComponent, isStandalone: false, selector: "lib-widget-layout", inputs: { recordId: "recordId", widgetName: "widgetName" }, ngImport: i0, template: "<p-card class=\"widget-block-wrapper block\">\r\n <div class=\"widget-section-wrapper custom-scroll pt-2\">\r\n <!-- Loading state -->\r\n <ng-container *ngIf=\"isLoading; else widgetContent\">\r\n <p class=\"text-color ml-3 font-semibold\">Widget configuration loading...</p>\r\n </ng-container>\r\n \r\n <!-- Content after API call -->\r\n <ng-template #widgetContent>\r\n <ng-container *ngIf=\"widget; else noWidgets\">\r\n <!-- <ng-container *ngFor=\"let widget of widgets; let i = index\"> -->\r\n <div class=\"widget-container-wrapper pl-1\">\r\n <lib-widget-header [widget]=\"widget\"></lib-widget-header>\r\n <div class=\"widget-content-wrapper mt-3 py-3\">\r\n <lib-widget-body [widget]=\"widget\"></lib-widget-body>\r\n <lib-widget-footer [widget]=\"widget\"></lib-widget-footer>\r\n </div>\r\n </div>\r\n <!-- </ng-container> -->\r\n </ng-container>\r\n \r\n <!-- No widget configured state -->\r\n <ng-template #noWidgets>\r\n <p class=\"text-color ml-3 font-semibold\">No Widgets Configured</p>\r\n </ng-template>\r\n </ng-template>\r\n </div>\r\n </p-card>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.Card, selector: "p-card", inputs: ["header", "subheader", "style", "styleClass"] }, { kind: "component", type: WidgetHeaderComponent, selector: "lib-widget-header", inputs: ["widget", "progressChartData"] }, { kind: "component", type: WidgetFooterComponent, selector: "lib-widget-footer", inputs: ["widget"] }, { kind: "component", type: WidgetBodyComponent, selector: "lib-widget-body", inputs: ["widget"] }] });
|
|
4467
4467
|
}
|
|
4468
4468
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: WidgetLayoutComponent, decorators: [{
|
|
4469
4469
|
type: Component,
|
|
4470
|
-
args: [{ selector: 'lib-widget-layout', standalone: false, template: "<p-card class=\"widget-block-wrapper block\">\r\n <div class=\"widget-section-wrapper custom-scroll pt-2\">\r\n <!-- Loading state -->\r\n <ng-container *ngIf=\"isLoading; else widgetContent\">\r\n <p class=\"text-color ml-3 font-semibold\">Widget configuration loading...</p>\r\n </ng-container>\r\n \r\n <!-- Content after API call -->\r\n <ng-template #widgetContent>\r\n <ng-container *ngIf=\"
|
|
4470
|
+
args: [{ selector: 'lib-widget-layout', standalone: false, template: "<p-card class=\"widget-block-wrapper block\">\r\n <div class=\"widget-section-wrapper custom-scroll pt-2\">\r\n <!-- Loading state -->\r\n <ng-container *ngIf=\"isLoading; else widgetContent\">\r\n <p class=\"text-color ml-3 font-semibold\">Widget configuration loading...</p>\r\n </ng-container>\r\n \r\n <!-- Content after API call -->\r\n <ng-template #widgetContent>\r\n <ng-container *ngIf=\"widget; else noWidgets\">\r\n <!-- <ng-container *ngFor=\"let widget of widgets; let i = index\"> -->\r\n <div class=\"widget-container-wrapper pl-1\">\r\n <lib-widget-header [widget]=\"widget\"></lib-widget-header>\r\n <div class=\"widget-content-wrapper mt-3 py-3\">\r\n <lib-widget-body [widget]=\"widget\"></lib-widget-body>\r\n <lib-widget-footer [widget]=\"widget\"></lib-widget-footer>\r\n </div>\r\n </div>\r\n <!-- </ng-container> -->\r\n </ng-container>\r\n \r\n <!-- No widget configured state -->\r\n <ng-template #noWidgets>\r\n <p class=\"text-color ml-3 font-semibold\">No Widgets Configured</p>\r\n </ng-template>\r\n </ng-template>\r\n </div>\r\n </p-card>" }]
|
|
4471
4471
|
}], ctorParameters: () => [{ type: WidgetService }], propDecorators: { recordId: [{
|
|
4472
4472
|
type: Input
|
|
4473
4473
|
}], widgetName: [{
|