ngx-smz-ui 14.0.13 → 14.0.14
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/esm2020/lib/common/directives/server-image/server-image.directive.mjs +24 -5
- package/esm2020/lib/modules/smz-cards/components/contents/image/image-content.component.mjs +1 -1
- package/esm2020/lib/modules/smz-cards/components/types/image-with-details/image-with-details-type.component.mjs +1 -1
- package/esm2020/lib/modules/smz-cards/directives/img-placeholder.directive.mjs +34 -0
- package/esm2020/lib/modules/smz-cards/smz-cards.module.mjs +4 -1
- package/fesm2015/ngx-smz-ui.mjs +58 -5
- package/fesm2015/ngx-smz-ui.mjs.map +1 -1
- package/fesm2020/ngx-smz-ui.mjs +58 -5
- package/fesm2020/ngx-smz-ui.mjs.map +1 -1
- package/lib/common/directives/server-image/server-image.directive.d.ts +7 -2
- package/lib/modules/smz-cards/directives/img-placeholder.directive.d.ts +10 -0
- package/lib/modules/smz-cards/smz-cards.module.d.ts +19 -18
- package/package.json +1 -1
- package/resources/assets/images/error-placeholder.jpeg +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Directive, HostListener, Input, NgModule } from '@angular/core';
|
|
1
|
+
import { Directive, HostBinding, HostListener, Input, NgModule } from '@angular/core';
|
|
2
2
|
import { isEmpty } from '../../../builders/common/utils';
|
|
3
3
|
import { environment } from '@environments/environment';
|
|
4
4
|
import { SmzDialogBuilder } from '../../../builders/smz-dialogs/dialog-builder';
|
|
@@ -9,6 +9,7 @@ export class ServerImageDirective {
|
|
|
9
9
|
this.el = el;
|
|
10
10
|
this.dialogs = dialogs;
|
|
11
11
|
this.placeholder = 'assets/images/placeholder.jpeg';
|
|
12
|
+
this.errorPlaceholder = 'assets/images/error-placeholder.jpeg';
|
|
12
13
|
this.maximize = false;
|
|
13
14
|
this.title = '';
|
|
14
15
|
this.useServerPath = true;
|
|
@@ -24,6 +25,12 @@ export class ServerImageDirective {
|
|
|
24
25
|
this.el.nativeElement.classList.add('cursor-zoom-in');
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
updateUrl() {
|
|
29
|
+
this.src = this.errorPlaceholder;
|
|
30
|
+
}
|
|
31
|
+
load() {
|
|
32
|
+
this.className = 'image-loaded';
|
|
33
|
+
}
|
|
27
34
|
onClick(event) {
|
|
28
35
|
if (!this.maximize)
|
|
29
36
|
return;
|
|
@@ -52,7 +59,7 @@ export class ServerImageDirective {
|
|
|
52
59
|
this.setImage(this.path);
|
|
53
60
|
};
|
|
54
61
|
img.onerror = () => {
|
|
55
|
-
this.setImage(this.
|
|
62
|
+
this.setImage(this.errorPlaceholder);
|
|
56
63
|
};
|
|
57
64
|
img.src = this.path;
|
|
58
65
|
}
|
|
@@ -62,22 +69,34 @@ export class ServerImageDirective {
|
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
ServerImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ServerImageDirective, deps: [{ token: i0.ElementRef }, { token: i1.SmzDialogsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
65
|
-
ServerImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.4", type: ServerImageDirective, selector: "img[serverImage]", inputs: { path: "path", placeholder: "placeholder", maximize: "maximize", title: "title", useServerPath: "useServerPath" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
|
|
72
|
+
ServerImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.4", type: ServerImageDirective, selector: "img[serverImage]", inputs: { src: "src", path: "path", placeholder: "placeholder", errorPlaceholder: "errorPlaceholder", maximize: "maximize", title: "title", useServerPath: "useServerPath" }, host: { listeners: { "error": "updateUrl()", "load": "load()", "click": "onClick($event)" }, properties: { "src": "src", "class": "this.className" } }, usesOnChanges: true, ngImport: i0 });
|
|
66
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ServerImageDirective, decorators: [{
|
|
67
74
|
type: Directive,
|
|
68
75
|
args: [{
|
|
69
76
|
selector: "img[serverImage]",
|
|
77
|
+
host: {
|
|
78
|
+
'(error)': 'updateUrl()',
|
|
79
|
+
'(load)': 'load()',
|
|
80
|
+
'[src]': 'src'
|
|
81
|
+
}
|
|
70
82
|
}]
|
|
71
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.SmzDialogsService }]; }, propDecorators: {
|
|
83
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.SmzDialogsService }]; }, propDecorators: { src: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], path: [{
|
|
72
86
|
type: Input
|
|
73
87
|
}], placeholder: [{
|
|
74
88
|
type: Input
|
|
89
|
+
}], errorPlaceholder: [{
|
|
90
|
+
type: Input
|
|
75
91
|
}], maximize: [{
|
|
76
92
|
type: Input
|
|
77
93
|
}], title: [{
|
|
78
94
|
type: Input
|
|
79
95
|
}], useServerPath: [{
|
|
80
96
|
type: Input
|
|
97
|
+
}], className: [{
|
|
98
|
+
type: HostBinding,
|
|
99
|
+
args: ['class']
|
|
81
100
|
}], onClick: [{
|
|
82
101
|
type: HostListener,
|
|
83
102
|
args: ['click', ['$event']]
|
|
@@ -96,4 +115,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImpor
|
|
|
96
115
|
providers: [],
|
|
97
116
|
}]
|
|
98
117
|
}] });
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
118
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVyLWltYWdlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9jb21tb24vZGlyZW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SxcbiAgZGVjbGFyYXRpb25zOiBbU2VydmVySW1hZ2VEaXJlY3RpdmVdLFxuICBwcm92aWRlcnM6IFtdLFxufSlcbmV4cG9ydCBjbGFzcyBOZ3hTbXpTZXJ2ZXJJbWFnZU1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -8,7 +8,7 @@ export class SmzImageContentComponent {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
SmzImageContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
-
SmzImageContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageContentComponent, selector: "smz-image-content", inputs: { content: "content", data: "data" }, ngImport: i0, template: "<img\n serverImage\n [path]=\"(data | cardsContent : content.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"content.title.isVisible ? content.title.getText(data) : null\"\n [useServerPath]=\"content.useServerPath\"\n class=\"h-28 w-36 object-cover\"\n>", dependencies: [{ kind: "directive", type: i1.ServerImageDirective, selector: "img[serverImage]", inputs: ["path", "placeholder", "maximize", "title", "useServerPath"] }, { kind: "pipe", type: i2.SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11
|
+
SmzImageContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageContentComponent, selector: "smz-image-content", inputs: { content: "content", data: "data" }, ngImport: i0, template: "<img\n serverImage\n [path]=\"(data | cardsContent : content.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"content.title.isVisible ? content.title.getText(data) : null\"\n [useServerPath]=\"content.useServerPath\"\n class=\"h-28 w-36 object-cover\"\n>", dependencies: [{ kind: "directive", type: i1.ServerImageDirective, selector: "img[serverImage]", inputs: ["src", "path", "placeholder", "errorPlaceholder", "maximize", "title", "useServerPath"] }, { kind: "pipe", type: i2.SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageContentComponent, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
14
|
args: [{ selector: 'smz-image-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<img\n serverImage\n [path]=\"(data | cardsContent : content.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"content.title.isVisible ? content.title.getText(data) : null\"\n [useServerPath]=\"content.useServerPath\"\n class=\"h-28 w-36 object-cover\"\n>" }]
|
|
@@ -17,7 +17,7 @@ export class SmzImageWithDetailsTypeComponent {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
SmzImageWithDetailsTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageWithDetailsTypeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
SmzImageWithDetailsTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageWithDetailsTypeComponent, selector: "smz-image-with-details-type", inputs: { state: "state", template: "template", data: "data", mode: "mode" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode\">\n\n<ng-container *ngSwitchCase=\"modes.GRID\">\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-60 w-full object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"grid grid-nogutter flex-col items-start justify-start gap-2 col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInGrid\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInGrid\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInGrid\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n<ng-container *ngSwitchCase=\"modes.LIST\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-4 relative col\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-44 w-44 object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInList\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInList\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInList\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n</ng-container>", 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i3.ServerImageDirective, selector: "img[serverImage]", inputs: ["path", "placeholder", "maximize", "title", "useServerPath"] }, { kind: "component", type: i4.SmzMenuComponent, selector: "smz-menu", inputs: ["items", "callback", "data", "buttonClass", "styleClass", "icon"] }, { kind: "directive", type: i5.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i6.SmzCardsContentSelectorDirective, selector: "div[contentSelector]", inputs: ["content", "data", "callback"] }, { kind: "directive", type: i7.ButtonActionsDirective, selector: "[buttonAction]", inputs: ["item", "data"] }, { kind: "pipe", type: i8.SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20
|
+
SmzImageWithDetailsTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageWithDetailsTypeComponent, selector: "smz-image-with-details-type", inputs: { state: "state", template: "template", data: "data", mode: "mode" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode\">\n\n<ng-container *ngSwitchCase=\"modes.GRID\">\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-60 w-full object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"grid grid-nogutter flex-col items-start justify-start gap-2 col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInGrid\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInGrid\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInGrid\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n<ng-container *ngSwitchCase=\"modes.LIST\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-4 relative col\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-44 w-44 object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInList\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInList\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInList\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n</ng-container>", 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i3.ServerImageDirective, selector: "img[serverImage]", inputs: ["src", "path", "placeholder", "errorPlaceholder", "maximize", "title", "useServerPath"] }, { kind: "component", type: i4.SmzMenuComponent, selector: "smz-menu", inputs: ["items", "callback", "data", "buttonClass", "styleClass", "icon"] }, { kind: "directive", type: i5.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i6.SmzCardsContentSelectorDirective, selector: "div[contentSelector]", inputs: ["content", "data", "callback"] }, { kind: "directive", type: i7.ButtonActionsDirective, selector: "[buttonAction]", inputs: ["item", "data"] }, { kind: "pipe", type: i8.SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageWithDetailsTypeComponent, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{ selector: 'smz-image-with-details-type', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"mode\">\n\n<ng-container *ngSwitchCase=\"modes.GRID\">\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-60 w-full object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"grid grid-nogutter flex-col items-start justify-start gap-2 col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInGrid\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInGrid\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInGrid\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n<ng-container *ngSwitchCase=\"modes.LIST\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-4 relative col\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-44 w-44 object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInList\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInList\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInList\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n</ng-container>" }]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Directive, HostBinding, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class ImgPlaceholderDirective {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.placeholder = 'assets/images/placeholder.jpeg';
|
|
6
|
+
}
|
|
7
|
+
updateUrl() {
|
|
8
|
+
this.src = this.placeholder;
|
|
9
|
+
}
|
|
10
|
+
load() {
|
|
11
|
+
this.className = 'image-loaded';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
ImgPlaceholderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ImgPlaceholderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
+
ImgPlaceholderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.4", type: ImgPlaceholderDirective, selector: "[imgPlaceholder]", inputs: { placeholder: "placeholder", src: "src" }, host: { listeners: { "error": "updateUrl()", "load": "load()" }, properties: { "src": "src", "class": "this.className" } }, ngImport: i0 });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ImgPlaceholderDirective, decorators: [{
|
|
17
|
+
type: Directive,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: '[imgPlaceholder]',
|
|
20
|
+
host: {
|
|
21
|
+
'(error)': 'updateUrl()',
|
|
22
|
+
'(load)': 'load()',
|
|
23
|
+
'[src]': 'src'
|
|
24
|
+
}
|
|
25
|
+
}]
|
|
26
|
+
}], propDecorators: { placeholder: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], src: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], className: [{
|
|
31
|
+
type: HostBinding,
|
|
32
|
+
args: ['class']
|
|
33
|
+
}] } });
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1nLXBsYWNlaG9sZGVyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9tb2R1bGVzL3Ntei1jYXJkcy9kaXJlY3RpdmVzL2ltZy1wbGFjZWhvbGRlci5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVU5RCxNQUFNLE9BQU8sdUJBQXVCO0lBUnBDO1FBU29CLGdCQUFXLEdBQVcsZ0NBQWdDLENBQUM7S0FXMUU7SUFQVSxTQUFTO1FBQ2QsSUFBSSxDQUFDLEdBQUcsR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDO0lBQzlCLENBQUM7SUFDTSxJQUFJO1FBQ1QsSUFBSSxDQUFDLFNBQVMsR0FBRyxjQUFjLENBQUM7SUFDbEMsQ0FBQzs7b0hBVlEsdUJBQXVCO3dHQUF2Qix1QkFBdUI7MkZBQXZCLHVCQUF1QjtrQkFSbkMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsa0JBQWtCO29CQUM1QixJQUFJLEVBQUU7d0JBQ0YsU0FBUyxFQUFDLGFBQWE7d0JBQ3ZCLFFBQVEsRUFBRSxRQUFRO3dCQUNsQixPQUFPLEVBQUMsS0FBSztxQkFDYjtpQkFDUDs4QkFFbUIsV0FBVztzQkFBMUIsS0FBSztnQkFDVSxHQUFHO3NCQUFsQixLQUFLO2dCQUN1QixTQUFTO3NCQUFyQyxXQUFXO3VCQUFDLE9BQU8iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUsIEhvc3RCaW5kaW5nLCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ARGlyZWN0aXZlKHtcbiAgICBzZWxlY3RvcjogJ1tpbWdQbGFjZWhvbGRlcl0nLFxuICAgIGhvc3Q6IHtcbiAgICAgICAgJyhlcnJvciknOid1cGRhdGVVcmwoKScsXG4gICAgICAgICcobG9hZCknOiAnbG9hZCgpJyxcbiAgICAgICAgJ1tzcmNdJzonc3JjJ1xuICAgICAgIH1cbn0pXG5leHBvcnQgY2xhc3MgSW1nUGxhY2Vob2xkZXJEaXJlY3RpdmUge1xuICAgIEBJbnB1dCgpIHB1YmxpYyBwbGFjZWhvbGRlcjogc3RyaW5nID0gJ2Fzc2V0cy9pbWFnZXMvcGxhY2Vob2xkZXIuanBlZyc7XG4gICAgQElucHV0KCkgcHVibGljIHNyYzogc3RyaW5nO1xuICAgIEBIb3N0QmluZGluZygnY2xhc3MnKSBwdWJsaWMgY2xhc3NOYW1lO1xuXG4gICAgcHVibGljIHVwZGF0ZVVybCgpIHtcbiAgICAgIHRoaXMuc3JjID0gdGhpcy5wbGFjZWhvbGRlcjtcbiAgICB9XG4gICAgcHVibGljIGxvYWQoKXtcbiAgICAgIHRoaXMuY2xhc3NOYW1lID0gJ2ltYWdlLWxvYWRlZCc7XG4gICAgfVxuXG59Il19
|
|
@@ -22,6 +22,7 @@ import { SharedModule } from 'primeng/api';
|
|
|
22
22
|
import { SmzInfoATypeComponent } from './components/types/info-a/info-a-type.component';
|
|
23
23
|
import { NgxSmzDataPipesModule } from '../../common/data-pipes/data-pipes.module';
|
|
24
24
|
import { ButtonActionsDirective } from './directives/button-actions.directive';
|
|
25
|
+
import { ImgPlaceholderDirective } from './directives/img-placeholder.directive';
|
|
25
26
|
import * as i0 from "@angular/core";
|
|
26
27
|
export class NgxSmzCardsModule {
|
|
27
28
|
}
|
|
@@ -37,6 +38,7 @@ NgxSmzCardsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
|
37
38
|
// Directives
|
|
38
39
|
SmzCardsContentSelectorDirective,
|
|
39
40
|
ButtonActionsDirective,
|
|
41
|
+
ImgPlaceholderDirective,
|
|
40
42
|
// Content Components
|
|
41
43
|
SmzTextContentComponent,
|
|
42
44
|
SmzImageContentComponent,
|
|
@@ -96,6 +98,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImpor
|
|
|
96
98
|
// Directives
|
|
97
99
|
SmzCardsContentSelectorDirective,
|
|
98
100
|
ButtonActionsDirective,
|
|
101
|
+
ImgPlaceholderDirective,
|
|
99
102
|
// Content Components
|
|
100
103
|
SmzTextContentComponent,
|
|
101
104
|
SmzImageContentComponent,
|
|
@@ -107,4 +110,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImpor
|
|
|
107
110
|
providers: [],
|
|
108
111
|
}]
|
|
109
112
|
}] });
|
|
110
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic216LWNhcmRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9tb2R1bGVzL3Ntei1jYXJkcy9zbXotY2FyZHMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMv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SW1hZ2VDb250ZW50Q29tcG9uZW50LFxuXG4gICAgLy8gVHlwZSBDb21wb25lbnRzXG4gICAgU216UmF3VHlwZUNvbXBvbmVudCxcbiAgICBTbXpJbWFnZVdpdGhEZXRhaWxzVHlwZUNvbXBvbmVudCxcbiAgICBTbXpJbmZvQVR5cGVDb21wb25lbnRcbiAgXSxcbiAgcHJvdmlkZXJzOiBbXSxcbn0pXG5leHBvcnQgY2xhc3MgTmd4U216Q2FyZHNNb2R1bGUgeyB9XG4iXX0=
|
package/fesm2015/ngx-smz-ui.mjs
CHANGED
|
@@ -28513,6 +28513,7 @@ class ServerImageDirective {
|
|
|
28513
28513
|
this.el = el;
|
|
28514
28514
|
this.dialogs = dialogs;
|
|
28515
28515
|
this.placeholder = 'assets/images/placeholder.jpeg';
|
|
28516
|
+
this.errorPlaceholder = 'assets/images/error-placeholder.jpeg';
|
|
28516
28517
|
this.maximize = false;
|
|
28517
28518
|
this.title = '';
|
|
28518
28519
|
this.useServerPath = true;
|
|
@@ -28529,6 +28530,12 @@ class ServerImageDirective {
|
|
|
28529
28530
|
this.el.nativeElement.classList.add('cursor-zoom-in');
|
|
28530
28531
|
}
|
|
28531
28532
|
}
|
|
28533
|
+
updateUrl() {
|
|
28534
|
+
this.src = this.errorPlaceholder;
|
|
28535
|
+
}
|
|
28536
|
+
load() {
|
|
28537
|
+
this.className = 'image-loaded';
|
|
28538
|
+
}
|
|
28532
28539
|
onClick(event) {
|
|
28533
28540
|
if (!this.maximize)
|
|
28534
28541
|
return;
|
|
@@ -28557,7 +28564,7 @@ class ServerImageDirective {
|
|
|
28557
28564
|
this.setImage(this.path);
|
|
28558
28565
|
};
|
|
28559
28566
|
img.onerror = () => {
|
|
28560
|
-
this.setImage(this.
|
|
28567
|
+
this.setImage(this.errorPlaceholder);
|
|
28561
28568
|
};
|
|
28562
28569
|
img.src = this.path;
|
|
28563
28570
|
}
|
|
@@ -28567,22 +28574,34 @@ class ServerImageDirective {
|
|
|
28567
28574
|
}
|
|
28568
28575
|
}
|
|
28569
28576
|
ServerImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ServerImageDirective, deps: [{ token: i0.ElementRef }, { token: SmzDialogsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
28570
|
-
ServerImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.4", type: ServerImageDirective, selector: "img[serverImage]", inputs: { path: "path", placeholder: "placeholder", maximize: "maximize", title: "title", useServerPath: "useServerPath" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
|
|
28577
|
+
ServerImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.4", type: ServerImageDirective, selector: "img[serverImage]", inputs: { src: "src", path: "path", placeholder: "placeholder", errorPlaceholder: "errorPlaceholder", maximize: "maximize", title: "title", useServerPath: "useServerPath" }, host: { listeners: { "error": "updateUrl()", "load": "load()", "click": "onClick($event)" }, properties: { "src": "src", "class": "this.className" } }, usesOnChanges: true, ngImport: i0 });
|
|
28571
28578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ServerImageDirective, decorators: [{
|
|
28572
28579
|
type: Directive,
|
|
28573
28580
|
args: [{
|
|
28574
28581
|
selector: "img[serverImage]",
|
|
28582
|
+
host: {
|
|
28583
|
+
'(error)': 'updateUrl()',
|
|
28584
|
+
'(load)': 'load()',
|
|
28585
|
+
'[src]': 'src'
|
|
28586
|
+
}
|
|
28575
28587
|
}]
|
|
28576
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SmzDialogsService }]; }, propDecorators: {
|
|
28588
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SmzDialogsService }]; }, propDecorators: { src: [{
|
|
28589
|
+
type: Input
|
|
28590
|
+
}], path: [{
|
|
28577
28591
|
type: Input
|
|
28578
28592
|
}], placeholder: [{
|
|
28579
28593
|
type: Input
|
|
28594
|
+
}], errorPlaceholder: [{
|
|
28595
|
+
type: Input
|
|
28580
28596
|
}], maximize: [{
|
|
28581
28597
|
type: Input
|
|
28582
28598
|
}], title: [{
|
|
28583
28599
|
type: Input
|
|
28584
28600
|
}], useServerPath: [{
|
|
28585
28601
|
type: Input
|
|
28602
|
+
}], className: [{
|
|
28603
|
+
type: HostBinding,
|
|
28604
|
+
args: ['class']
|
|
28586
28605
|
}], onClick: [{
|
|
28587
28606
|
type: HostListener,
|
|
28588
28607
|
args: ['click', ['$event']]
|
|
@@ -28786,7 +28805,7 @@ class SmzImageWithDetailsTypeComponent {
|
|
|
28786
28805
|
}
|
|
28787
28806
|
}
|
|
28788
28807
|
SmzImageWithDetailsTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageWithDetailsTypeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28789
|
-
SmzImageWithDetailsTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageWithDetailsTypeComponent, selector: "smz-image-with-details-type", inputs: { state: "state", template: "template", data: "data", mode: "mode" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode\">\n\n<ng-container *ngSwitchCase=\"modes.GRID\">\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-60 w-full object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"grid grid-nogutter flex-col items-start justify-start gap-2 col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInGrid\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInGrid\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInGrid\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n<ng-container *ngSwitchCase=\"modes.LIST\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-4 relative col\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-44 w-44 object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInList\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInList\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInList\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n</ng-container>", 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: ServerImageDirective, selector: "img[serverImage]", inputs: ["path", "placeholder", "maximize", "title", "useServerPath"] }, { kind: "component", type: SmzMenuComponent, selector: "smz-menu", inputs: ["items", "callback", "data", "buttonClass", "styleClass", "icon"] }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: SmzCardsContentSelectorDirective, selector: "div[contentSelector]", inputs: ["content", "data", "callback"] }, { kind: "directive", type: ButtonActionsDirective, selector: "[buttonAction]", inputs: ["item", "data"] }, { kind: "pipe", type: SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28808
|
+
SmzImageWithDetailsTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageWithDetailsTypeComponent, selector: "smz-image-with-details-type", inputs: { state: "state", template: "template", data: "data", mode: "mode" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode\">\n\n<ng-container *ngSwitchCase=\"modes.GRID\">\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-60 w-full object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"grid grid-nogutter flex-col items-start justify-start gap-2 col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInGrid\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInGrid\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInGrid\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n<ng-container *ngSwitchCase=\"modes.LIST\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-4 relative col\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-44 w-44 object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInList\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInList\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInList\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n</ng-container>", 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: ServerImageDirective, selector: "img[serverImage]", inputs: ["src", "path", "placeholder", "errorPlaceholder", "maximize", "title", "useServerPath"] }, { kind: "component", type: SmzMenuComponent, selector: "smz-menu", inputs: ["items", "callback", "data", "buttonClass", "styleClass", "icon"] }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: SmzCardsContentSelectorDirective, selector: "div[contentSelector]", inputs: ["content", "data", "callback"] }, { kind: "directive", type: ButtonActionsDirective, selector: "[buttonAction]", inputs: ["item", "data"] }, { kind: "pipe", type: SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28790
28809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageWithDetailsTypeComponent, decorators: [{
|
|
28791
28810
|
type: Component,
|
|
28792
28811
|
args: [{ selector: 'smz-image-with-details-type', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"mode\">\n\n<ng-container *ngSwitchCase=\"modes.GRID\">\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-60 w-full object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"grid grid-nogutter flex-col items-start justify-start gap-2 col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInGrid\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInGrid\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInGrid\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n<ng-container *ngSwitchCase=\"modes.LIST\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-4 relative col\" [ngClass]=\"template.cardStyleClass + (state.isDebug ? ' border border-red-500 border-solid' : '')\">\n\n <!-- IMAGE -->\n <ng-container *ngIf=\"template.image as image\">\n <img\n serverImage\n [path]=\"(data | cardsContent : image.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\n [useServerPath]=\"image.useServerPath\"\n class=\"h-44 w-44 object-cover rounded-lg border-0\"\n [ngClass]=\"image.styleClass\"\n >\n </ng-container>\n\n <div class=\"h-full grid grid-nogutter flex-col items-start justify-start gap-2 relative col\" [ngClass]=\"template.contentStyleClass\">\n\n <!-- TITLE -->\n <div *ngIf=\"template.title && !template.title.hideInList\" contentSelector [content]=\"template.title\" [data]=\"data\" [ngClass]=\"template.title.styleClass ?? 'font-bold'\"></div>\n\n <!-- SUBTITLE -->\n <div *ngIf=\"template.subTitle && !template.subTitle.hideInList\" contentSelector [content]=\"template.subTitle\" [data]=\"data\" [ngClass]=\"template.subTitle.styleClass ?? 'text-sm'\"></div>\n\n <!-- OTHERS -->\n <ng-container *ngFor=\"let other of template.others let i = index\">\n <div *ngIf=\"!other.hideInList\" contentSelector [content]=\"other\" [data]=\"data\" [ngClass]=\"other.styleClass ?? 'text-sm'\"></div>\n </ng-container>\n\n <div class=\"col\"></div>\n\n <!-- BUTTONS -->\n <ng-container *ngIf=\"state.buttons.callback != null && state.buttons.callback(data) as buttons\">\n <div class=\"grid grid-nogutter items-center justify-start gap-1\">\n <ng-container *ngFor=\"let button of buttons; let i = index\">\n <button *ngIf=\"button.visible\" pButton type=\"button\" buttonAction [item]=\"button\" [data]=\"data\" [label]=\"button.label\" [icon]=\"button.icon\" [disabled]=\"button.disabled\" [pTooltip]=\"button.tooltip\" class=\"p-button-outlined p-button-sm px-3 py-2\" [ngClass]=\"button.styleClass\"></button>\n </ng-container>\n </div>\n </ng-container>\n\n </div>\n\n <!-- MENU -->\n <ng-container *ngIf=\"state.menu.callback != null && state.menu.callback(data) as menu\">\n <div class=\"grid grid-nogutter items-center justify-end gap-1 col-12 absolute top-2 right-2\">\n <smz-menu [items]=\"menu\" [data]=\"data\" [icon]=\"state.menu.icon\" [styleClass]=\"state.menu.styleClass\" [buttonClass]=\"state.menu.buttonClass\"></smz-menu>\n </div>\n </ng-container>\n\n </div>\n\n</ng-container>\n\n</ng-container>" }]
|
|
@@ -28907,7 +28926,7 @@ class SmzImageContentComponent {
|
|
|
28907
28926
|
}
|
|
28908
28927
|
}
|
|
28909
28928
|
SmzImageContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28910
|
-
SmzImageContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageContentComponent, selector: "smz-image-content", inputs: { content: "content", data: "data" }, ngImport: i0, template: "<img\n serverImage\n [path]=\"(data | cardsContent : content.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"content.title.isVisible ? content.title.getText(data) : null\"\n [useServerPath]=\"content.useServerPath\"\n class=\"h-28 w-36 object-cover\"\n>", dependencies: [{ kind: "directive", type: ServerImageDirective, selector: "img[serverImage]", inputs: ["path", "placeholder", "maximize", "title", "useServerPath"] }, { kind: "pipe", type: SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28929
|
+
SmzImageContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzImageContentComponent, selector: "smz-image-content", inputs: { content: "content", data: "data" }, ngImport: i0, template: "<img\n serverImage\n [path]=\"(data | cardsContent : content.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"content.title.isVisible ? content.title.getText(data) : null\"\n [useServerPath]=\"content.useServerPath\"\n class=\"h-28 w-36 object-cover\"\n>", dependencies: [{ kind: "directive", type: ServerImageDirective, selector: "img[serverImage]", inputs: ["src", "path", "placeholder", "errorPlaceholder", "maximize", "title", "useServerPath"] }, { kind: "pipe", type: SmzCardsContentPipe, name: "cardsContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28911
28930
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzImageContentComponent, decorators: [{
|
|
28912
28931
|
type: Component,
|
|
28913
28932
|
args: [{ selector: 'smz-image-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<img\n serverImage\n [path]=\"(data | cardsContent : content.dataPath).result\"\n [maximize]=\"true\"\n [placeholder]=\"'assets/images/placeholder.jpeg'\"\n [title]=\"content.title.isVisible ? content.title.getText(data) : null\"\n [useServerPath]=\"content.useServerPath\"\n class=\"h-28 w-36 object-cover\"\n>" }]
|
|
@@ -28933,6 +28952,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImpor
|
|
|
28933
28952
|
type: Input
|
|
28934
28953
|
}] } });
|
|
28935
28954
|
|
|
28955
|
+
class ImgPlaceholderDirective {
|
|
28956
|
+
constructor() {
|
|
28957
|
+
this.placeholder = 'assets/images/placeholder.jpeg';
|
|
28958
|
+
}
|
|
28959
|
+
updateUrl() {
|
|
28960
|
+
this.src = this.placeholder;
|
|
28961
|
+
}
|
|
28962
|
+
load() {
|
|
28963
|
+
this.className = 'image-loaded';
|
|
28964
|
+
}
|
|
28965
|
+
}
|
|
28966
|
+
ImgPlaceholderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ImgPlaceholderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
28967
|
+
ImgPlaceholderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.4", type: ImgPlaceholderDirective, selector: "[imgPlaceholder]", inputs: { placeholder: "placeholder", src: "src" }, host: { listeners: { "error": "updateUrl()", "load": "load()" }, properties: { "src": "src", "class": "this.className" } }, ngImport: i0 });
|
|
28968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: ImgPlaceholderDirective, decorators: [{
|
|
28969
|
+
type: Directive,
|
|
28970
|
+
args: [{
|
|
28971
|
+
selector: '[imgPlaceholder]',
|
|
28972
|
+
host: {
|
|
28973
|
+
'(error)': 'updateUrl()',
|
|
28974
|
+
'(load)': 'load()',
|
|
28975
|
+
'[src]': 'src'
|
|
28976
|
+
}
|
|
28977
|
+
}]
|
|
28978
|
+
}], propDecorators: { placeholder: [{
|
|
28979
|
+
type: Input
|
|
28980
|
+
}], src: [{
|
|
28981
|
+
type: Input
|
|
28982
|
+
}], className: [{
|
|
28983
|
+
type: HostBinding,
|
|
28984
|
+
args: ['class']
|
|
28985
|
+
}] } });
|
|
28986
|
+
|
|
28936
28987
|
class NgxSmzCardsModule {
|
|
28937
28988
|
}
|
|
28938
28989
|
NgxSmzCardsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: NgxSmzCardsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -28947,6 +28998,7 @@ NgxSmzCardsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
|
28947
28998
|
// Directives
|
|
28948
28999
|
SmzCardsContentSelectorDirective,
|
|
28949
29000
|
ButtonActionsDirective,
|
|
29001
|
+
ImgPlaceholderDirective,
|
|
28950
29002
|
// Content Components
|
|
28951
29003
|
SmzTextContentComponent,
|
|
28952
29004
|
SmzImageContentComponent,
|
|
@@ -29007,6 +29059,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImpor
|
|
|
29007
29059
|
// Directives
|
|
29008
29060
|
SmzCardsContentSelectorDirective,
|
|
29009
29061
|
ButtonActionsDirective,
|
|
29062
|
+
ImgPlaceholderDirective,
|
|
29010
29063
|
// Content Components
|
|
29011
29064
|
SmzTextContentComponent,
|
|
29012
29065
|
SmzImageContentComponent,
|