keevo-components 2.0.52 → 2.0.54
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 +13 -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 '../../api/base-components/base-component-crud-form';
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3YtY29uZmlybWF0aW9uLW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tlZXZvLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2t2LWNvbmZpcm1hdGlvbi1tb2RhbC9rdi1jb25maXJtYXRpb24tbW9kYWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMva3YtY29uZmlybWF0aW9uLW1vZGFsL2t2LWNvbmZpcm1hdGlvbi1tb2RhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFpQixNQUFNLEVBQUUsTUFBTSxlQUFl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nJpZGUgc2F2ZSgpOiB2b2lkIHsgfVxyXG59XHJcbiIsIjxkaXYgY2xhc3M9XCJmbGV4IGZsZXgtY29sdW1uIGFsaWduLWl0ZW1zLWNlbnRlciBqdXN0aWZ5LWNvbnRlbnQtY2VudGVyXCI+XHJcbiAgICA8aW1nIFtzcmNdPVwiaW1hZ2UoKVwiPlxyXG4gICAgPGRpdiBjbGFzcz1cIm10LTRcIj5cclxuICAgICAgICA8YiBjbGFzcz1cInRleHQtc21cIj57e21lc3NhZ2UoKX19PC9iPlxyXG4gICAgPC9kaXY+XHJcbjwvZGl2PlxyXG48ZGl2IGNsYXNzPVwiZmxleCBmbGV4LXJvdyBnYXAtMSBhbGlnbi1pdGVtcy1jZW50ZXIganVzdGlmeS1jb250ZW50LWVuZCBtdC00IC1tYi0yXCI+XHJcbiAgICA8a3YtYnV0dG9uIGxhYmVsPVwiRmVjaGFyXCIgc2V2ZXJpdHk9XCJ0ZXJ0aWFyeVwiIHNpemU9XCJub3JtYWxcIiAob25DbGljayk9XCJjbG9zZSgpXCI+PC9rdi1idXR0b24+XHJcbjwvZGl2PiJdfQ==
|
|
@@ -9554,28 +9554,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImpor
|
|
|
9554
9554
|
}]
|
|
9555
9555
|
}] });
|
|
9556
9556
|
|
|
9557
|
-
class KvConfirmationModalComponent {
|
|
9557
|
+
class KvConfirmationModalComponent extends BaseComponentCrudForm {
|
|
9558
9558
|
constructor() {
|
|
9559
|
-
|
|
9560
|
-
this.dynamicDialogConfig = inject(DynamicDialogConfig);
|
|
9559
|
+
super(...arguments);
|
|
9561
9560
|
this.message = signal('');
|
|
9562
9561
|
this.image = signal('');
|
|
9563
9562
|
}
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9563
|
+
close() {
|
|
9564
|
+
this.dynamicDialogRef.close();
|
|
9565
|
+
}
|
|
9566
|
+
loadForm(id) {
|
|
9567
|
+
if (id) {
|
|
9568
|
+
this.message.set(id['message']);
|
|
9569
|
+
this.image.set(id['image']);
|
|
9569
9570
|
}
|
|
9570
9571
|
else {
|
|
9571
9572
|
console.warn('Nenhum dado encontrado para o modal.');
|
|
9572
9573
|
}
|
|
9573
9574
|
}
|
|
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"] }] }); }
|
|
9575
|
+
configureForm() { }
|
|
9576
|
+
save() { }
|
|
9577
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9578
|
+
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
9579
|
}
|
|
9580
9580
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvConfirmationModalComponent, decorators: [{
|
|
9581
9581
|
type: Component,
|