keevo-components 2.0.52 → 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 +16 -16
- package/fesm2022/keevo-components.mjs +14 -13
- 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,32 +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
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
close() {
|
|
12
|
+
this.dynamicDialogRef.close();
|
|
13
|
+
}
|
|
14
|
+
loadForm(id) {
|
|
15
|
+
if (id) {
|
|
16
|
+
this.message.set(id['message']);
|
|
17
|
+
this.image.set(id['image']);
|
|
17
18
|
}
|
|
18
19
|
else {
|
|
19
20
|
console.warn('Nenhum dado encontrado para o modal.');
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
static { this.ɵ
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: KvConfirmationModalComponent, selector: "kv-confirmation-modal", 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"] }] }); }
|
|
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"] }] }); }
|
|
27
27
|
}
|
|
28
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
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"] }]
|
|
31
31
|
}] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3YtY29uZmlybWF0aW9uLW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tlZXZvLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2t2LWNvbmZpcm1hdGlvbi1tb2RhbC9rdi1jb25maXJtYXRpb24tbW9kYWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMva3YtY29uZmlybWF0aW9uLW1vZGFsL2t2LWNvbmZpcm1hdGlvbi1tb2RhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFpQixNQUFNLEVBQUUsTUFBTSxlQUFlL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iB2b2lkIHsgfVxyXG4gIG92ZXJyaWRlIHNhdmUoKTogdm9pZCB7IH1cclxufVxyXG4iLCI8ZGl2IGNsYXNzPVwiZmxleCBmbGV4LWNvbHVtbiBhbGlnbi1pdGVtcy1jZW50ZXIganVzdGlmeS1jb250ZW50LWNlbnRlclwiPlxyXG4gICAgPGltZyBbc3JjXT1cImltYWdlKClcIj5cclxuICAgIDxkaXYgY2xhc3M9XCJtdC00XCI+XHJcbiAgICAgICAgPGIgY2xhc3M9XCJ0ZXh0LXNtXCI+e3ttZXNzYWdlKCl9fTwvYj5cclxuICAgIDwvZGl2PlxyXG48L2Rpdj5cclxuPGRpdiBjbGFzcz1cImZsZXggZmxleC1yb3cgZ2FwLTEgYWxpZ24taXRlbXMtY2VudGVyIGp1c3RpZnktY29udGVudC1lbmQgbXQtNCAtbWItMlwiPlxyXG4gICAgPGt2LWJ1dHRvbiBsYWJlbD1cIkZlY2hhclwiIHNldmVyaXR5PVwidGVydGlhcnlcIiBzaXplPVwibm9ybWFsXCIgKG9uQ2xpY2spPVwiY2xvc2UoKVwiPjwva3YtYnV0dG9uPlxyXG48L2Rpdj4iXX0=
|
|
@@ -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,28 +9555,28 @@ 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
9563
|
}
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9564
|
+
close() {
|
|
9565
|
+
this.dynamicDialogRef.close();
|
|
9566
|
+
}
|
|
9567
|
+
loadForm(id) {
|
|
9568
|
+
if (id) {
|
|
9569
|
+
this.message.set(id['message']);
|
|
9570
|
+
this.image.set(id['image']);
|
|
9569
9571
|
}
|
|
9570
9572
|
else {
|
|
9571
9573
|
console.warn('Nenhum dado encontrado para o modal.');
|
|
9572
9574
|
}
|
|
9573
9575
|
}
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
}
|
|
9577
|
-
static { this.ɵ
|
|
9578
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: KvConfirmationModalComponent, selector: "kv-confirmation-modal", 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"] }] }); }
|
|
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"] }] }); }
|
|
9579
9580
|
}
|
|
9580
9581
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, decorators: [{
|
|
9581
9582
|
type: Component,
|