Files
doneit-web/android/app/src/main/assets/public/add-participants-cc-modal-add-participants-cc-modal-module-es5.js
T
tiago.kayaya bbfb82c4e9 save
2021-01-22 17:12:39 +01:00

327 lines
18 KiB
JavaScript

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["add-participants-cc-modal-add-participants-cc-modal-module"], {
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.html":
/*!*******************************************************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.html ***!
\*******************************************************************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPagesGabineteDigitalExpedienteAddParticipantsCcModalAddParticipantsCcModalPageHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header class=\"ion-no-border\">\r\n <h4>Com conhecimento</h4>\r\n <ion-searchbar (ionChange)=\"onChange($event)\" placeholder=\"Pesquisar\"></ion-searchbar>\r\n <ion-progress-bar type=\"indeterminate\" *ngIf=\"showLoader\"></ion-progress-bar>\r\n</ion-header>\r\n\r\n<ion-content>\r\n <ion-item-group>\r\n <ion-list>\r\n <ion-item-sliding>\r\n <ion-item *ngFor=\"let attendee of contacts\">\r\n <ion-checkbox slot=\"end\" [disabled]=\"isCheckboxDisabled\" (ionChange)=\"selectContact(attendee)\"></ion-checkbox>\r\n <ion-label>\r\n <h3>{{ attendee.Name }}</h3>\r\n <p>{{ attendee.EmailAddress }}</p>\r\n </ion-label>\r\n </ion-item>\r\n </ion-item-sliding>\r\n </ion-list>\r\n </ion-item-group>\r\n\r\n</ion-content>\r\n<ion-footer>\r\n <ion-toolbar>\r\n <ion-item lines=\"none\">\r\n <p>\r\n <ion-button class=\"button-cancel\" shape=\"round\" (click)=\"cancelTask()\">Cancelar</ion-button>\r\n </p>\r\n <p>\r\n <ion-button class=\"button-save\" shape=\"round\" (click)=\"saveTask()\">Gravar</ion-button>\r\n </p>\r\n </ion-item>\r\n </ion-toolbar>\r\n</ion-footer>\r\n\r\n";
/***/
},
/***/
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal-routing.module.ts":
/*!*************************************************************************************************************************!*\
!*** ./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal-routing.module.ts ***!
\*************************************************************************************************************************/
/*! exports provided: AddParticipantsCcModalPageRoutingModule */
/***/
function srcAppPagesGabineteDigitalExpedienteAddParticipantsCcModalAddParticipantsCcModalRoutingModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AddParticipantsCcModalPageRoutingModule", function () {
return AddParticipantsCcModalPageRoutingModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */
var _add_participants_cc_modal_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./add-participants-cc-modal.page */
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.ts");
var routes = [{
path: '',
component: _add_participants_cc_modal_page__WEBPACK_IMPORTED_MODULE_3__["AddParticipantsCcModalPage"]
}];
var AddParticipantsCcModalPageRoutingModule = function AddParticipantsCcModalPageRoutingModule() {
_classCallCheck(this, AddParticipantsCcModalPageRoutingModule);
};
AddParticipantsCcModalPageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})], AddParticipantsCcModalPageRoutingModule);
/***/
},
/***/
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.module.ts":
/*!*****************************************************************************************************************!*\
!*** ./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.module.ts ***!
\*****************************************************************************************************************/
/*! exports provided: AddParticipantsCcModalPageModule */
/***/
function srcAppPagesGabineteDigitalExpedienteAddParticipantsCcModalAddParticipantsCcModalModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AddParticipantsCcModalPageModule", function () {
return AddParticipantsCcModalPageModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @ionic/angular */
"./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */
var _add_participants_cc_modal_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./add-participants-cc-modal-routing.module */
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal-routing.module.ts");
/* harmony import */
var _add_participants_cc_modal_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ./add-participants-cc-modal.page */
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.ts");
var AddParticipantsCcModalPageModule = function AddParticipantsCcModalPageModule() {
_classCallCheck(this, AddParticipantsCcModalPageModule);
};
AddParticipantsCcModalPageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"], _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"], _add_participants_cc_modal_routing_module__WEBPACK_IMPORTED_MODULE_5__["AddParticipantsCcModalPageRoutingModule"]],
declarations: [_add_participants_cc_modal_page__WEBPACK_IMPORTED_MODULE_6__["AddParticipantsCcModalPage"]]
})], AddParticipantsCcModalPageModule);
/***/
},
/***/
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.scss":
/*!*****************************************************************************************************************!*\
!*** ./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.scss ***!
\*****************************************************************************************************************/
/*! exports provided: default */
/***/
function srcAppPagesGabineteDigitalExpedienteAddParticipantsCcModalAddParticipantsCcModalPageScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "ion-header {\n padding: 20px 20px 0px 20px;\n}\n\nion-content {\n --padding-top: 20px;\n --padding-start: 15px;\n --padding-end: 20px;\n}\n\n.container-footer {\n margin: 0 auto;\n overflow: auto;\n}\n\n.button-cancel {\n width: 170px;\n height: 44px;\n border-radius: 22.5px;\n --background: #e0e9ee;\n --color: #061b52;\n margin: 10px;\n}\n\n.button-save {\n width: 170px;\n height: 44px;\n border-radius: 22.5px;\n --background: #42b9fe;\n --color:#ffffff;\n margin: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZ2FiaW5ldGUtZGlnaXRhbC9leHBlZGllbnRlL2FkZC1wYXJ0aWNpcGFudHMtY2MtbW9kYWwvQzpcXFVzZXJzXFx0aWFnby5rYXlheWFcXGRldmVsb3BtZW50XFxnYWJpbmV0ZS1kaWdpdGFsL3NyY1xcYXBwXFxwYWdlc1xcZ2FiaW5ldGUtZGlnaXRhbFxcZXhwZWRpZW50ZVxcYWRkLXBhcnRpY2lwYW50cy1jYy1tb2RhbFxcYWRkLXBhcnRpY2lwYW50cy1jYy1tb2RhbC5wYWdlLnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2dhYmluZXRlLWRpZ2l0YWwvZXhwZWRpZW50ZS9hZGQtcGFydGljaXBhbnRzLWNjLW1vZGFsL2FkZC1wYXJ0aWNpcGFudHMtY2MtbW9kYWwucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksMkJBQUE7QUNDSjs7QURDQTtFQUNJLG1CQUFBO0VBQ0EscUJBQUE7RUFDQSxtQkFBQTtBQ0VKOztBRENBO0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JcbiAgICAtLWJhY2tncm91bmQ6ICM0MmI5ZmU7XHJcbiAgICAtLWNvbG9yOiNmZmZmZmY7XHJcbiAgICBtYXJnaW46MTBweDtcclxuICB9IiwiaW9uLWhlYWRlciB7XG4gIHBhZGRpbmc6IDIwcHggMjBweCAwcHggMjBweDtcbn1cblxuaW9uLWNvbnRlbnQge1xuICAtLXBhZGRpbmctdG9wOiAyMHB4O1xuICAtLXBhZGRpbmctc3RhcnQ6IDE1cHg7XG4gIC0tcGFkZGluZy1lbmQ6IDIwcHg7XG59XG5cbi5jb250YWluZXItZm9vdGVyIHtcbiAgbWFyZ2luOiAwIGF1dG87XG4gIG92ZXJmbG93OiBhdXRvO1xufVxuXG4uYnV0dG9uLWNhbmNlbCB7XG4gIHdpZHRoOiAxNzBweDtcbiAgaGVpZ2h0OiA0NHB4O1xuICBib3JkZXItcmFkaXVzOiAyMi41cHg7XG4gIC0tYmFja2dyb3VuZDogI2UwZTllZTtcbiAgLS1jb2xvcjogIzA2MWI1MjtcbiAgbWFyZ2luOiAxMHB4O1xufVxuXG4uYnV0dG9uLXNhdmUge1xuICB3aWR0aDogMTcwcHg7XG4gIGhlaWdodDogNDRweDtcbiAgYm9yZGVyLXJhZGl1czogMjIuNXB4O1xuICAtLWJhY2tncm91bmQ6ICM0MmI5ZmU7XG4gIC0tY29sb3I6I2ZmZmZmZjtcbiAgbWFyZ2luOiAxMHB4O1xufSJdfQ== */";
/***/
},
/***/
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.ts":
/*!***************************************************************************************************************!*\
!*** ./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.ts ***!
\***************************************************************************************************************/
/*! exports provided: AddParticipantsCcModalPage */
/***/
function srcAppPagesGabineteDigitalExpedienteAddParticipantsCcModalAddParticipantsCcModalPageTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AddParticipantsCcModalPage", function () {
return AddParticipantsCcModalPage;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @ionic/angular */
"./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */
var src_app_services_contacts_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! src/app/services/contacts.service */
"./src/app/services/contacts.service.ts");
var AddParticipantsCcModalPage = /*#__PURE__*/function () {
function AddParticipantsCcModalPage(modalController, contactsService, navParams) {
_classCallCheck(this, AddParticipantsCcModalPage);
this.modalController = modalController;
this.contactsService = contactsService;
this.navParams = navParams;
this.showLoader = false;
this.participantsAdded = this.navParams.get('eventPersons');
}
_createClass(AddParticipantsCcModalPage, [{
key: "ngOnInit",
value: function ngOnInit() {
this.fetchContacts("");
}
}, {
key: "onChange",
value: function onChange(evt) {
this.fetchContacts(evt.detail.value);
}
}, {
key: "selectContact",
value: function selectContact(itm) {
itm.IsRequired = !itm.IsRequired;
}
}, {
key: "fetchContacts",
value: function fetchContacts(filter) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var _this = this;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
this.showLoader = true;
this.contactsService.getContacts(filter).subscribe(function (result) {
if (_this.participantsAdded != null) {
_this.participantsAdded.forEach(function (attendee) {
var index = result.findIndex(function (cont) {
return cont.EmailAddress == attendee.UserId;
});
result.splice(index, 1);
});
}
_this.contacts = result;
_this.showLoader = false;
});
case 2:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
}
}, {
key: "cancelTask",
value: function cancelTask() {
this.modalController.dismiss(null);
}
}, {
key: "saveTask",
value: function saveTask() {
this.modalController.dismiss(this.contacts.filter(function (contact) {
if (contact.IsRequired) {
/* console.log(contact); */
}
return contact.IsRequired == true;
}));
}
}]);
return AddParticipantsCcModalPage;
}();
AddParticipantsCcModalPage.ctorParameters = function () {
return [{
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_2__["ModalController"]
}, {
type: src_app_services_contacts_service__WEBPACK_IMPORTED_MODULE_3__["ContactsService"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_2__["NavParams"]
}];
};
AddParticipantsCcModalPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-add-participants-cc-modal',
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
/*! raw-loader!./add-participants-cc-modal.page.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.html"))["default"],
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
/*! ./add-participants-cc-modal.page.scss */
"./src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.scss"))["default"]]
})], AddParticipantsCcModalPage);
/***/
}
}]);
//# sourceMappingURL=add-participants-cc-modal-add-participants-cc-modal-module-es5.js.map