function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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; } (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["modules-people-people-module"], { /***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html": /*!************************************************************************************************************************!*\ !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html ***! \************************************************************************************************************************/ /*! exports provided: default */ /***/ function node_modulesRawLoaderDistCjsJsSrcAppModulesPeopleComponentsPeopleFormPeopleFormComponentHtml(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "\r\n\r\n
\r\n \r\n\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n"; /***/ }, /***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html": /*!************************************************************************************************************************!*\ !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html ***! \************************************************************************************************************************/ /*! exports provided: default */ /***/ function node_modulesRawLoaderDistCjsJsSrcAppModulesPeopleComponentsPeopleListPeopleListComponentHtml(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NombreApellido 
{{person.name}}{{person.surname}}\r\n \r\n \r\n
\r\n"; /***/ }, /***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html": /*!************************************************************************************************************************!*\ !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html ***! \************************************************************************************************************************/ /*! exports provided: default */ /***/ function node_modulesRawLoaderDistCjsJsSrcAppModulesPeopleComponentsPeopleMainPeopleMainComponentHtml(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "\r\n\r\n

Personas

\r\n\r\n\r\n"; /***/ }, /***/ "./src/app/modules/people/components/people-form/people-form.component.scss": /*!**********************************************************************************!*\ !*** ./src/app/modules/people/components/people-form/people-form.component.scss ***! \**********************************************************************************/ /*! exports provided: default */ /***/ function srcAppModulesPeopleComponentsPeopleFormPeopleFormComponentScss(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see .\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtZm9ybS9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3B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mxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */"; /***/ }, /***/ "./src/app/modules/people/components/people-form/people-form.component.ts": /*!********************************************************************************!*\ !*** ./src/app/modules/people/components/people-form/people-form.component.ts ***! \********************************************************************************/ /*! exports provided: PeopleFormComponent */ /***/ function srcAppModulesPeopleComponentsPeopleFormPeopleFormComponentTs(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleFormComponent", function () { return PeopleFormComponent; }); /* 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/fesm2015/core.js"); /* harmony import */ var _models_person_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! ../../models/person.model */ "./src/app/modules/people/models/person.model.ts"); /* * DAA Example * * Copyright (C) 2019 - Miguel Reboiro-Jato. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ var PeopleFormComponent = /*#__PURE__*/ function () { function PeopleFormComponent() { _classCallCheck(this, PeopleFormComponent); this.modify = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); this.clean = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); } _createClass(PeopleFormComponent, [{ key: "onModify", value: function onModify() { this.modify.emit({ id: this.person.id, name: this.name, surname: this.surname }); } }, { key: "onClean", value: function onClean() { this.clean.emit(); } }, { key: "person", set: function set(person) { this.activePerson = person; this.name = person.name; this.surname = person.surname; }, get: function get() { return this.activePerson; } }]); return PeopleFormComponent; }(); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleFormComponent.prototype, "modify", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleFormComponent.prototype, "clean", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _models_person_model__WEBPACK_IMPORTED_MODULE_2__["PersonModel"]), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_models_person_model__WEBPACK_IMPORTED_MODULE_2__["PersonModel"]])], PeopleFormComponent.prototype, "person", null); PeopleFormComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'app-people-form', template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__( /*! raw-loader!./people-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html")).default, styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__( /*! ./people-form.component.scss */ "./src/app/modules/people/components/people-form/people-form.component.scss")).default] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [])], PeopleFormComponent); /***/ }, /***/ "./src/app/modules/people/components/people-list/people-list.component.scss": /*!**********************************************************************************!*\ !*** ./src/app/modules/people/components/people-list/people-list.component.scss ***! \**********************************************************************************/ /*! exports provided: default */ /***/ function srcAppModulesPeopleComponentsPeopleListPeopleListComponentScss(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see .\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbGlzdC9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLWxpc3RcXHBlb3BsZS1saXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy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HdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */"; /***/ }, /***/ "./src/app/modules/people/components/people-list/people-list.component.ts": /*!********************************************************************************!*\ !*** ./src/app/modules/people/components/people-list/people-list.component.ts ***! \********************************************************************************/ /*! exports provided: PeopleListComponent */ /***/ function srcAppModulesPeopleComponentsPeopleListPeopleListComponentTs(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleListComponent", function () { return PeopleListComponent; }); /* 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/fesm2015/core.js"); /* * DAA Example * * Copyright (C) 2019 - Miguel Reboiro-Jato. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ var PeopleListComponent = /*#__PURE__*/ function () { function PeopleListComponent() { _classCallCheck(this, PeopleListComponent); this.people = []; this.edit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); this.delete = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); } _createClass(PeopleListComponent, [{ key: "onEdit", value: function onEdit(person) { this.edit.emit(person); } }, { key: "onDelete", value: function onDelete(person) { this.delete.emit(person); } }]); return PeopleListComponent; }(); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Array)], PeopleListComponent.prototype, "people", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleListComponent.prototype, "edit", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleListComponent.prototype, "delete", void 0); PeopleListComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'app-people-list', template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__( /*! raw-loader!./people-list.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html")).default, styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__( /*! ./people-list.component.scss */ "./src/app/modules/people/components/people-list/people-list.component.scss")).default] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [])], PeopleListComponent); /***/ }, /***/ "./src/app/modules/people/components/people-main/people-main.component.scss": /*!**********************************************************************************!*\ !*** ./src/app/modules/people/components/people-main/people-main.component.scss ***! \**********************************************************************************/ /*! exports provided: default */ /***/ function srcAppModulesPeopleComponentsPeopleMainPeopleMainComponentScss(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see .\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbWFpbi9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLW1haW5cXHBlb3BsZS1tYWluLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbWFpbi9wZW9wbGUtbWFpbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxyXG4gKiBEQUEgRXhhbXBsZVxyXG4gKlxyXG4gKiBDb3B5cmlnaHQgKEMpIDIwMTkgLSBNaWd1ZWwgUmVib2lyby1KYXRvLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxyXG4gKiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxyXG4gKiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxyXG4gKiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcclxuICogYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcclxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */"; /***/ }, /***/ "./src/app/modules/people/components/people-main/people-main.component.ts": /*!********************************************************************************!*\ !*** ./src/app/modules/people/components/people-main/people-main.component.ts ***! \********************************************************************************/ /*! exports provided: PeopleMainComponent */ /***/ function srcAppModulesPeopleComponentsPeopleMainPeopleMainComponentTs(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleMainComponent", function () { return PeopleMainComponent; }); /* 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/fesm2015/core.js"); /* harmony import */ var _services_people_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! ../../services/people.service */ "./src/app/modules/people/services/people.service.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js"); /* * DAA Example * * Copyright (C) 2019 - Miguel Reboiro-Jato. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ var PeopleMainComponent = /*#__PURE__*/ function () { function PeopleMainComponent(peopleService) { _classCallCheck(this, PeopleMainComponent); this.peopleService = peopleService; this.people = []; this.clearActivePerson(); } _createClass(PeopleMainComponent, [{ key: "ngOnInit", value: function ngOnInit() { var _this = this; this.peopleService.list().subscribe(function (people) { return _this.people = people; }); } }, { key: "onEdit", value: function onEdit(person) { this.activePerson = person; } }, { key: "onDelete", value: function onDelete(person) { var _this2 = this; if (confirm("\xBFEst\xE1s seguro de que deseas eliminar a ".concat(person.name, " ").concat(person.surname, "?"))) { this.peopleService.delete(person).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () { return _this2.peopleService.list(); })).subscribe(function (people) { return _this2.people = people; }); } } }, { key: "onCleanForm", value: function onCleanForm() { this.clearActivePerson(); } }, { key: "onModifyForm", value: function onModifyForm(person) { var _this3 = this; if (person.id === undefined) { this.peopleService.create(person).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () { return _this3.peopleService.list(); })).subscribe(function (people) { _this3.people = people; _this3.clearActivePerson(); }); } else { this.peopleService.modify(person).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () { return _this3.peopleService.list(); })).subscribe(function (people) { _this3.people = people; _this3.clearActivePerson(); }); } } }, { key: "clearActivePerson", value: function clearActivePerson() { this.activePerson = { id: undefined, name: '', surname: '' }; } }]); return PeopleMainComponent; }(); PeopleMainComponent.ctorParameters = function () { return [{ type: _services_people_service__WEBPACK_IMPORTED_MODULE_2__["PeopleService"] }]; }; PeopleMainComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'app-people-main', template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__( /*! raw-loader!./people-main.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html")).default, styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__( /*! ./people-main.component.scss */ "./src/app/modules/people/components/people-main/people-main.component.scss")).default] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_people_service__WEBPACK_IMPORTED_MODULE_2__["PeopleService"]])], PeopleMainComponent); /***/ }, /***/ "./src/app/modules/people/models/person.model.ts": /*!*******************************************************!*\ !*** ./src/app/modules/people/models/person.model.ts ***! \*******************************************************/ /*! exports provided: PersonModel */ /***/ function srcAppModulesPeopleModelsPersonModelTs(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersonModel", function () { return PersonModel; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* * DAA Example * * Copyright (C) 2019 - Miguel Reboiro-Jato. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ var PersonModel = function PersonModel() { _classCallCheck(this, PersonModel); }; /***/ }, /***/ "./src/app/modules/people/people-routing.module.ts": /*!*********************************************************!*\ !*** ./src/app/modules/people/people-routing.module.ts ***! \*********************************************************/ /*! exports provided: PeopleRoutingModule */ /***/ function srcAppModulesPeoplePeopleRoutingModuleTs(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleRoutingModule", function () { return PeopleRoutingModule; }); /* 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/fesm2015/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js"); /* harmony import */ var _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! ./components/people-main/people-main.component */ "./src/app/modules/people/components/people-main/people-main.component.ts"); /* * DAA Example * * Copyright (C) 2019 - Miguel Reboiro-Jato. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ var routes = [{ path: '', component: _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_3__["PeopleMainComponent"] }]; var PeopleRoutingModule = function PeopleRoutingModule() { _classCallCheck(this, PeopleRoutingModule); }; PeopleRoutingModule = 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"]] })], PeopleRoutingModule); /***/ }, /***/ "./src/app/modules/people/people.module.ts": /*!*************************************************!*\ !*** ./src/app/modules/people/people.module.ts ***! \*************************************************/ /*! exports provided: PeopleModule */ /***/ function srcAppModulesPeoplePeopleModuleTs(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleModule", function () { return PeopleModule; }); /* 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/fesm2015/core.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js"); /* harmony import */ var _people_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! ./people-routing.module */ "./src/app/modules/people/people-routing.module.ts"); /* harmony import */ var _components_people_list_people_list_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( /*! ./components/people-list/people-list.component */ "./src/app/modules/people/components/people-list/people-list.component.ts"); /* harmony import */ var _components_people_form_people_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( /*! ./components/people-form/people-form.component */ "./src/app/modules/people/components/people-form/people-form.component.ts"); /* harmony import */ var _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( /*! ./components/people-main/people-main.component */ "./src/app/modules/people/components/people-main/people-main.component.ts"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( /*! @angular/forms */ "./node_modules/@angular/forms/fesm2015/forms.js"); /* * DAA Example * * Copyright (C) 2019 - Miguel Reboiro-Jato. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ var PeopleModule = function PeopleModule() { _classCallCheck(this, PeopleModule); }; PeopleModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({ declarations: [_components_people_form_people_form_component__WEBPACK_IMPORTED_MODULE_5__["PeopleFormComponent"], _components_people_list_people_list_component__WEBPACK_IMPORTED_MODULE_4__["PeopleListComponent"], _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_6__["PeopleMainComponent"]], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormsModule"], _people_routing_module__WEBPACK_IMPORTED_MODULE_3__["PeopleRoutingModule"]] })], PeopleModule); /***/ }, /***/ "./src/app/modules/people/services/people.service.ts": /*!***********************************************************!*\ !*** ./src/app/modules/people/services/people.service.ts ***! \***********************************************************/ /*! exports provided: PeopleService */ /***/ function srcAppModulesPeopleServicesPeopleServiceTs(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleService", function () { return PeopleService; }); /* 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/fesm2015/core.js"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! @angular/common/http */ "./node_modules/@angular/common/fesm2015/http.js"); /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! ../../../../environments/environment */ "./src/environments/environment.ts"); /* * DAA Example * * Copyright (C) 2019 - Miguel Reboiro-Jato. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ var PeopleService = /*#__PURE__*/ function () { function PeopleService(http) { _classCallCheck(this, PeopleService); this.http = http; } _createClass(PeopleService, [{ key: "list", value: function list() { return this.http.get("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people")); } }, { key: "create", value: function create(person) { var data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('name', person.name).set('surname', person.surname); return this.http.post("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people"), data); } }, { key: "modify", value: function modify(person) { var data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('name', person.name).set('surname', person.surname); return this.http.put("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people/").concat(person.id), data); } }, { key: "delete", value: function _delete(person) { return this.http.delete("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people/").concat(person.id)); } }]); return PeopleService; }(); PeopleService.ctorParameters = function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }]; }; PeopleService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({ providedIn: 'root' }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])], PeopleService); /***/ } }]); //# sourceMappingURL=modules-people-people-module-es5.js.map