-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.js
133 lines (105 loc) · 9.3 KB
/
common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["common"],{
/***/ "./node_modules/raw-loader/index.js!./src/app/shared/message-pop-up/message-pop-up.component.html":
/*!***********************************************************************************************!*\
!*** ./node_modules/raw-loader!./src/app/shared/message-pop-up/message-pop-up.component.html ***!
\***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<div>\n\t<h2 mat-dialog-title *ngIf=\"data.modalTitle\">\n\t\t{{ modalTitle | translate }}\n\t\t<div class=\"icon-right\" (click)=\"onNoClick()\">x</div>\n\t</h2>\n</div>\n<mat-dialog-content *ngIf=\"data.commonText\" class=\"content-color\">{{\n\tcommonText | translate\n}}</mat-dialog-content>\n<mat-dialog-actions>\n\t<button\n\t\tmat-button\n\t\tmat-dialog-close\n\t\t*ngIf=\"data.cancelButton\"\n\t\tclass=\"btn danger-color\"\n\t\t(click)=\"onNoClick()\"\n\t>\n\t\t{{ cancelButton | translate }}\n\t</button>\n\t<!--\n\t\t<! — The mat-dialog-close directive optionally accepts a value as a result for the dialog.\n\t-->\n\t<button\n\t\tmat-button\n\t\t[mat-dialog-close]=\"true\"\n\t\tclass=\"btn success-color\"\n\t\t*ngIf=\"data.confirmButton\"\n\t>\n\t\t{{ confirmButton | translate }}\n\t</button>\n</mat-dialog-actions>\n"
/***/ }),
/***/ "./src/app/shared/message-pop-up/message-pop-up.component.scss":
/*!*********************************************************************!*\
!*** ./src/app/shared/message-pop-up/message-pop-up.component.scss ***!
\*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".danger-color {\n color: red;\n}\n\n.success-color {\n color: green;\n}\n\n.icon-right {\n float: right;\n cursor: pointer;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL2l0ZXhwZXJ0L0RvY3VtZW50cy9ldmVyL3BhY2thZ2VzL3Nob3Atd2ViLWFuZ3VsYXIvc3JjL2FwcC9zaGFyZWQvbWVzc2FnZS1wb3AtdXAvbWVzc2FnZS1wb3AtdXAuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3NoYXJlZC9tZXNzYWdlLXBvcC11cC9tZXNzYWdlLXBvcC11cC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLFVBQVU7QUNDWDs7QURFQTtFQUNDLFlBQVk7QUNDYjs7QURNQTtFQUNDLFlBQVk7RUFDWixlQUFlO0FDSGhCIiwiZmlsZSI6InNyYy9hcHAvc2hhcmVkL21lc3NhZ2UtcG9wLXVwL21lc3NhZ2UtcG9wLXVwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmRhbmdlci1jb2xvciB7XG5cdGNvbG9yOiByZWQ7XG59XG5cbi5zdWNjZXNzLWNvbG9yIHtcblx0Y29sb3I6IGdyZWVuO1xufVxuXG4vLyAuY29udGVudC1jb2xvciB7XG4vLyBcdGNvbG9yOiByZ2IoNzIsIDcyLCAyNDApO1xuLy8gfVxuXG4uaWNvbi1yaWdodCB7XG5cdGZsb2F0OiByaWdodDtcblx0Y3Vyc29yOiBwb2ludGVyO1xufVxuIiwiLmRhbmdlci1jb2xvciB7XG4gIGNvbG9yOiByZWQ7XG59XG5cbi5zdWNjZXNzLWNvbG9yIHtcbiAgY29sb3I6IGdyZWVuO1xufVxuXG4uaWNvbi1yaWdodCB7XG4gIGZsb2F0OiByaWdodDtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuIl19 */");
/***/ }),
/***/ "./src/app/shared/message-pop-up/message-pop-up.component.ts":
/*!*******************************************************************!*\
!*** ./src/app/shared/message-pop-up/message-pop-up.component.ts ***!
\*******************************************************************/
/*! exports provided: MessagePopUpComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessagePopUpComponent", function() { return MessagePopUpComponent; });
/* 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/fesm5/core.js");
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/fesm5/dialog.js");
var MessagePopUpComponent = (function () {
function MessagePopUpComponent(dialogRef, data) {
this.dialogRef = dialogRef;
this.data = data;
this.PREFIX = 'MESSAGE_POP_UP.';
}
MessagePopUpComponent.prototype.ngOnInit = function () {
this.initializeText();
};
MessagePopUpComponent.prototype.initializeText = function () {
this.modalTitle = this.PREFIX + this.data.modalTitle;
this.commonText = this.PREFIX + this.data.commonText;
this.cancelButton = this.PREFIX + this.data.cancelButton;
this.confirmButton = this.PREFIX + this.data.confirmButton;
};
MessagePopUpComponent.prototype.onNoClick = function () {
this.dialogRef.close();
};
MessagePopUpComponent.ctorParameters = function () { return [
{ type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MatDialogRef"] },
{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MAT_DIALOG_DATA"],] }] }
]; };
MessagePopUpComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'message-pop-up',
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./message-pop-up.component.html */ "./node_modules/raw-loader/index.js!./src/app/shared/message-pop-up/message-pop-up.component.html")).default,
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./message-pop-up.component.scss */ "./src/app/shared/message-pop-up/message-pop-up.component.scss")).default]
}),
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__param"])(1, Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"])(_angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MAT_DIALOG_DATA"])),
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MatDialogRef"], Object])
], MessagePopUpComponent);
return MessagePopUpComponent;
}());
/***/ }),
/***/ "./src/app/shared/message-pop-up/message-pop-up.module.ts":
/*!****************************************************************!*\
!*** ./src/app/shared/message-pop-up/message-pop-up.module.ts ***!
\****************************************************************/
/*! exports provided: MessagePopUpModalModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessagePopUpModalModule", function() { return MessagePopUpModalModule; });
/* 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/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/fesm5/ngx-translate-core.js");
/* harmony import */ var _message_pop_up_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./message-pop-up.component */ "./src/app/shared/message-pop-up/message-pop-up.component.ts");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/fesm5/button.js");
/* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/fesm5/card.js");
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/fesm5/dialog.js");
var COMPONENTS = [_message_pop_up_component__WEBPACK_IMPORTED_MODULE_4__["MessagePopUpComponent"]];
var MessagePopUpModalModule = (function () {
function MessagePopUpModalModule() {
}
MessagePopUpModalModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__["MatDialogModule"],
_angular_material_button__WEBPACK_IMPORTED_MODULE_5__["MatButtonModule"],
_angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCardModule"],
_ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__["TranslateModule"].forChild(),
],
declarations: COMPONENTS,
entryComponents: COMPONENTS,
exports: COMPONENTS,
})
], MessagePopUpModalModule);
return MessagePopUpModalModule;
}());
/***/ })
}]);
//# sourceMappingURL=common.js.map