UNPKG

@versatiledatakit/data-pipelines

Version:

Data Pipelines help Data Engineers develop, deploy, run, and manage data processing workloads (called 'Data Job')

99 lines 11.9 kB
/* * Copyright 2023-2025 Broadcom * SPDX-License-Identifier: Apache-2.0 */ import { Component, EventEmitter, Output } from '@angular/core'; import { DeleteModalOptions } from '../../model'; import { ModalComponentDirective } from '../modal'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "@clr/angular"; function DeleteModalComponent_clr_modal_0_clr_alert_5_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "clr-alert", 9)(1, "clr-alert-item"); i0.ɵɵelement(2, "span", 10); i0.ɵɵelementEnd()(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵproperty("clrAlertType", "warning")("clrAlertClosable", false); i0.ɵɵadvance(2); i0.ɵɵproperty("innerHTML", ctx_r1.options.infoText, i0.ɵɵsanitizeHtml); } } function DeleteModalComponent_clr_modal_0_button_7_Template(rf, ctx) { if (rf & 1) { const _r5 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 11); i0.ɵɵlistener("click", function DeleteModalComponent_clr_modal_0_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.close(); }); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r2 = i0.ɵɵnextContext(2); i0.ɵɵadvance(1); i0.ɵɵtextInterpolate1(" ", ctx_r2.options.cancelBtn, " "); } } function DeleteModalComponent_clr_modal_0_button_8_Template(rf, ctx) { if (rf & 1) { const _r7 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 12); i0.ɵɵlistener("click", function DeleteModalComponent_clr_modal_0_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.confirm(); }); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r3 = i0.ɵɵnextContext(2); i0.ɵɵadvance(1); i0.ɵɵtextInterpolate1(" ", ctx_r3.options.okBtn, " "); } } function DeleteModalComponent_clr_modal_0_Template(rf, ctx) { if (rf & 1) { const _r9 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "clr-modal", 1); i0.ɵɵlistener("clrModalOpenChange", function DeleteModalComponent_clr_modal_0_Template_clr_modal_clrModalOpenChange_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.options.opened = $event; }); i0.ɵɵelementStart(1, "h3", 2); i0.ɵɵtext(2); i0.ɵɵelementEnd(); i0.ɵɵelementStart(3, "div", 3); i0.ɵɵelement(4, "p", 4); i0.ɵɵtemplate(5, DeleteModalComponent_clr_modal_0_clr_alert_5_Template, 3, 3, "clr-alert", 5); i0.ɵɵelementEnd(); i0.ɵɵelementStart(6, "div", 6); i0.ɵɵtemplate(7, DeleteModalComponent_clr_modal_0_button_7_Template, 2, 1, "button", 7); i0.ɵɵtemplate(8, DeleteModalComponent_clr_modal_0_button_8_Template, 2, 1, "button", 8); i0.ɵɵelementEnd()(); } if (rf & 2) { const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵproperty("clrModalOpen", ctx_r0.options.opened)("clrModalClosable", ctx_r0.options.showCloseX); i0.ɵɵadvance(2); i0.ɵɵtextInterpolate(ctx_r0.options.title); i0.ɵɵadvance(2); i0.ɵɵproperty("innerHTML", ctx_r0.options.message, i0.ɵɵsanitizeHtml); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r0.options.infoText); i0.ɵɵadvance(2); i0.ɵɵproperty("ngIf", ctx_r0.options.showCancelBtn); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r0.options.showOkBtn); } } export class DeleteModalComponent extends ModalComponentDirective { constructor() { super(); this.delete = new EventEmitter(); this.options = new DeleteModalOptions(); } /** * emit that the user confirmed that it want to delete the item * and close the modal */ confirm() { super.confirm(); this.delete.emit(); } } DeleteModalComponent.ɵfac = function DeleteModalComponent_Factory(t) { return new (t || DeleteModalComponent)(); }; DeleteModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DeleteModalComponent, selectors: [["lib-delete-modal"]], outputs: { delete: "delete" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["id", "delete-modal", 3, "clrModalOpen", "clrModalClosable", "clrModalOpenChange", 4, "ngIf"], ["id", "delete-modal", 3, "clrModalOpen", "clrModalClosable", "clrModalOpenChange"], ["id", "delete-modal-title", 1, "modal-title"], [1, "modal-body"], [3, "innerHTML"], [3, "clrAlertType", "clrAlertClosable", 4, "ngIf"], [1, "modal-footer"], ["id", "cancelBtn", "type", "button", "class", "btn btn-outline", 3, "click", 4, "ngIf"], ["id", "removeBtn", "type", "button", "class", "btn btn-danger", 3, "click", 4, "ngIf"], [3, "clrAlertType", "clrAlertClosable"], [1, "alert-text", 3, "innerHTML"], ["id", "cancelBtn", "type", "button", 1, "btn", "btn-outline", 3, "click"], ["id", "removeBtn", "type", "button", 1, "btn", "btn-danger", 3, "click"]], template: function DeleteModalComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, DeleteModalComponent_clr_modal_0_Template, 9, 7, "clr-modal", 0); } if (rf & 2) { i0.ɵɵproperty("ngIf", ctx.options.opened); } }, directives: [i1.NgIf, i2.ClrModal, i2.ClrModalBody, i2.ClrAlert, i2.ClrAlertItem, i2.ClrAlertText], styles: [""] }); (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeleteModalComponent, [{ type: Component, args: [{ selector: 'lib-delete-modal', template: "<!--\n ~ Copyright 2023-2025 Broadcom\n ~ SPDX-License-Identifier: Apache-2.0\n -->\n\n<clr-modal\n *ngIf=\"options.opened\"\n id=\"delete-modal\"\n [(clrModalOpen)]=\"options.opened\"\n [clrModalClosable]=\"options.showCloseX\"\n>\n <h3 id=\"delete-modal-title\" class=\"modal-title\">{{ options.title }}</h3>\n\n <div class=\"modal-body\">\n <p [innerHTML]=\"options.message\"></p>\n\n <clr-alert\n *ngIf=\"options.infoText\"\n [clrAlertType]=\"'warning'\"\n [clrAlertClosable]=\"false\"\n >\n <clr-alert-item>\n <span class=\"alert-text\" [innerHTML]=\"options.infoText\"> </span>\n </clr-alert-item>\n </clr-alert>\n </div>\n\n <div class=\"modal-footer\">\n <button\n id=\"cancelBtn\"\n *ngIf=\"options.showCancelBtn\"\n type=\"button\"\n class=\"btn btn-outline\"\n (click)=\"close()\"\n >\n {{ options.cancelBtn }}\n </button>\n <button\n id=\"removeBtn\"\n *ngIf=\"options.showOkBtn\"\n type=\"button\"\n class=\"btn btn-danger\"\n (click)=\"confirm()\"\n >\n {{ options.okBtn }}\n </button>\n </div>\n</clr-modal>\n", styles: [""] }] }], function () { return []; }, { delete: [{ type: Output }] }); })(); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGEtcGlwZWxpbmVzL3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvZGVsZXRlLW1vZGFsL2RlbGV0ZS1tb2RhbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kYXRhLXBpcGVsaW5lcy9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2RlbGV0ZS1tb2RhbC9kZWxldGUtbW9kYWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHO0FBRUgsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWhFLE9BQU8sRUFBRSx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xuICAgICAgICAgICAgW2NsckFsZXJ0VHlwZV09XCInd2FybmluZydcIlxuICAgICAgICAgICAgW2NsckFsZXJ0Q2xvc2FibGVdPVwiZmFsc2VcIlxuICAgICAgICA+XG4gICAgICAgICAgICA8Y2xyLWFsZXJ0LWl0ZW0+XG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJhbGVydC10ZXh0XCIgW2lubmVySFRNTF09XCJvcHRpb25zLmluZm9UZXh0XCI+IDwvc3Bhbj5cbiAgICAgICAgICAgIDwvY2xyLWFsZXJ0LWl0ZW0+XG4gICAgICAgIDwvY2xyLWFsZXJ0PlxuICAgIDwvZGl2PlxuXG4gICAgPGRpdiBjbGFzcz1cIm1vZGFsLWZvb3RlclwiPlxuICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICBpZD1cImNhbmNlbEJ0blwiXG4gICAgICAgICAgICAqbmdJZj1cIm9wdGlvbnMuc2hvd0NhbmNlbEJ0blwiXG4gICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1vdXRsaW5lXCJcbiAgICAgICAgICAgIChjbGljayk9XCJjbG9zZSgpXCJcbiAgICAgICAgPlxuICAgICAgICAgICAge3sgb3B0aW9ucy5jYW5jZWxCdG4gfX1cbiAgICAgICAgPC9idXR0b24+XG4gICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIGlkPVwicmVtb3ZlQnRuXCJcbiAgICAgICAgICAgICpuZ0lmPVwib3B0aW9ucy5zaG93T2tCdG5cIlxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tZGFuZ2VyXCJcbiAgICAgICAgICAgIChjbGljayk9XCJjb25maXJtKClcIlxuICAgICAgICA+XG4gICAgICAgICAgICB7eyBvcHRpb25zLm9rQnRuIH19XG4gICAgICAgIDwvYnV0dG9uPlxuICAgIDwvZGl2PlxuPC9jbHItbW9kYWw+XG4iXX0=