keevo-components 2.0.51 → 2.0.53
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/esm2022/lib/components/kv-confirmation-modal/kv-confirmation-modal.component.mjs +19 -11
- package/fesm2022/keevo-components.mjs +17 -8
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/components/kv-confirmation-modal/kv-confirmation-modal.component.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import { Component,
|
|
2
|
-
import {
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { BaseComponentCrudForm } from 'projects/keevo-components/src/public-api';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "../kv-button/kv-button.component";
|
|
5
|
-
export class KvConfirmationModalComponent {
|
|
5
|
+
export class KvConfirmationModalComponent extends BaseComponentCrudForm {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
8
|
-
this.dynamicDialogConfig = inject(DynamicDialogConfig);
|
|
7
|
+
super(...arguments);
|
|
9
8
|
this.message = signal('');
|
|
10
9
|
this.image = signal('');
|
|
11
|
-
this.message.set(this.dynamicDialogConfig.data.id.message);
|
|
12
|
-
this.image.set(this.dynamicDialogConfig.data.id.image);
|
|
13
10
|
}
|
|
14
11
|
close() {
|
|
15
12
|
this.dynamicDialogRef.close();
|
|
16
13
|
}
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
loadForm(id) {
|
|
15
|
+
if (id) {
|
|
16
|
+
this.message.set(id['message']);
|
|
17
|
+
this.image.set(id['image']);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
console.warn('Nenhum dado encontrado para o modal.');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
configureForm() { }
|
|
24
|
+
save() { }
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: KvConfirmationModalComponent, selector: "kv-confirmation-modal", usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-column align-items-center justify-content-center\">\r\n <img [src]=\"image()\">\r\n <div class=\"mt-4\">\r\n <b class=\"text-sm\">{{message()}}</b>\r\n </div>\r\n</div>\r\n<div class=\"flex flex-row gap-1 align-items-center justify-content-end mt-4 -mb-2\">\r\n <kv-button label=\"Fechar\" severity=\"tertiary\" size=\"normal\" (onClick)=\"close()\"></kv-button>\r\n</div>", styles: ["::ng-deep .p-dialog .p-dialog-header{display:none!important}::ng-deep .p-dialog .p-dialog-content:last-of-type{border-radius:6px!important}\n"], dependencies: [{ kind: "component", type: i1.KvButtonComponent, selector: "kv-button", inputs: ["fullWidth", "type", "loading", "severity", "size", "icon", "iconPosition", "label", "disabled", "items", "popup"], outputs: ["iconChange", "onClick"] }] }); }
|
|
19
27
|
}
|
|
20
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, decorators: [{
|
|
21
29
|
type: Component,
|
|
22
30
|
args: [{ selector: 'kv-confirmation-modal', standalone: false, template: "<div class=\"flex flex-column align-items-center justify-content-center\">\r\n <img [src]=\"image()\">\r\n <div class=\"mt-4\">\r\n <b class=\"text-sm\">{{message()}}</b>\r\n </div>\r\n</div>\r\n<div class=\"flex flex-row gap-1 align-items-center justify-content-end mt-4 -mb-2\">\r\n <kv-button label=\"Fechar\" severity=\"tertiary\" size=\"normal\" (onClick)=\"close()\"></kv-button>\r\n</div>", styles: ["::ng-deep .p-dialog .p-dialog-header{display:none!important}::ng-deep .p-dialog .p-dialog-content:last-of-type{border-radius:6px!important}\n"] }]
|
|
23
|
-
}]
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
}] });
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VyaXR5PVwidGVydGlhcnlcIiBzaXplPVwibm9ybWFsXCIgKG9uQ2xpY2spPVwiY2xvc2UoKVwiPjwva3YtYnV0dG9uPlxyXG48L2Rpdj4iXX0=
|
|
@@ -136,6 +136,7 @@ import * as vkbeautify from 'vkbeautify';
|
|
|
136
136
|
import * as i1$7 from '@angular/platform-browser';
|
|
137
137
|
import * as i3$3 from 'ng2-pdf-viewer';
|
|
138
138
|
import { PdfViewerModule } from 'ng2-pdf-viewer';
|
|
139
|
+
import { BaseComponentCrudForm as BaseComponentCrudForm$1 } from 'projects/keevo-components/src/public-api';
|
|
139
140
|
|
|
140
141
|
class BaseComponentButton {
|
|
141
142
|
constructor() {
|
|
@@ -9554,25 +9555,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImpor
|
|
|
9554
9555
|
}]
|
|
9555
9556
|
}] });
|
|
9556
9557
|
|
|
9557
|
-
class KvConfirmationModalComponent {
|
|
9558
|
+
class KvConfirmationModalComponent extends BaseComponentCrudForm$1 {
|
|
9558
9559
|
constructor() {
|
|
9559
|
-
|
|
9560
|
-
this.dynamicDialogConfig = inject(DynamicDialogConfig);
|
|
9560
|
+
super(...arguments);
|
|
9561
9561
|
this.message = signal('');
|
|
9562
9562
|
this.image = signal('');
|
|
9563
|
-
this.message.set(this.dynamicDialogConfig.data.id.message);
|
|
9564
|
-
this.image.set(this.dynamicDialogConfig.data.id.image);
|
|
9565
9563
|
}
|
|
9566
9564
|
close() {
|
|
9567
9565
|
this.dynamicDialogRef.close();
|
|
9568
9566
|
}
|
|
9569
|
-
|
|
9570
|
-
|
|
9567
|
+
loadForm(id) {
|
|
9568
|
+
if (id) {
|
|
9569
|
+
this.message.set(id['message']);
|
|
9570
|
+
this.image.set(id['image']);
|
|
9571
|
+
}
|
|
9572
|
+
else {
|
|
9573
|
+
console.warn('Nenhum dado encontrado para o modal.');
|
|
9574
|
+
}
|
|
9575
|
+
}
|
|
9576
|
+
configureForm() { }
|
|
9577
|
+
save() { }
|
|
9578
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9579
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: KvConfirmationModalComponent, selector: "kv-confirmation-modal", usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-column align-items-center justify-content-center\">\r\n <img [src]=\"image()\">\r\n <div class=\"mt-4\">\r\n <b class=\"text-sm\">{{message()}}</b>\r\n </div>\r\n</div>\r\n<div class=\"flex flex-row gap-1 align-items-center justify-content-end mt-4 -mb-2\">\r\n <kv-button label=\"Fechar\" severity=\"tertiary\" size=\"normal\" (onClick)=\"close()\"></kv-button>\r\n</div>", styles: ["::ng-deep .p-dialog .p-dialog-header{display:none!important}::ng-deep .p-dialog .p-dialog-content:last-of-type{border-radius:6px!important}\n"], dependencies: [{ kind: "component", type: KvButtonComponent, selector: "kv-button", inputs: ["fullWidth", "type", "loading", "severity", "size", "icon", "iconPosition", "label", "disabled", "items", "popup"], outputs: ["iconChange", "onClick"] }] }); }
|
|
9571
9580
|
}
|
|
9572
9581
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, decorators: [{
|
|
9573
9582
|
type: Component,
|
|
9574
9583
|
args: [{ selector: 'kv-confirmation-modal', standalone: false, template: "<div class=\"flex flex-column align-items-center justify-content-center\">\r\n <img [src]=\"image()\">\r\n <div class=\"mt-4\">\r\n <b class=\"text-sm\">{{message()}}</b>\r\n </div>\r\n</div>\r\n<div class=\"flex flex-row gap-1 align-items-center justify-content-end mt-4 -mb-2\">\r\n <kv-button label=\"Fechar\" severity=\"tertiary\" size=\"normal\" (onClick)=\"close()\"></kv-button>\r\n</div>", styles: ["::ng-deep .p-dialog .p-dialog-header{display:none!important}::ng-deep .p-dialog .p-dialog-content:last-of-type{border-radius:6px!important}\n"] }]
|
|
9575
|
-
}]
|
|
9584
|
+
}] });
|
|
9576
9585
|
|
|
9577
9586
|
class KvConfirmationModalModule {
|
|
9578
9587
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|