@apipass/messages 1.0.39 → 1.0.41
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.
|
@@ -21,12 +21,12 @@ class MessageBoxComponent {
|
|
|
21
21
|
return JSON.stringify(error, undefined, 2);
|
|
22
22
|
}
|
|
23
23
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: MessageBoxComponent, selector: "message-box", inputs: { type: "type", title: "title", message: "message", compilerError: "compilerError", errors: "errors" }, outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: MessageBoxComponent, selector: "message-box", inputs: { type: "type", title: "title", message: "message", compilerError: "compilerError", errors: "errors" }, outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"alert {{type}} alert-dismissible fade show\" role=\"alert\" *ngIf=\"errors.length > 0\">\n <strong class=\"title\" *ngIf=\"title\">{{title}}</strong>\n <span class=\"detail-message\" *ngIf=\"message\">{{message}}</span>\n <div class=\"alert-text\" *ngFor=\"let error of errors\">\n <span class=\"causes\" *ngIf=\"compilerError && isArray(error)\">\n <span class=\"error-text\" *ngFor=\"let item of error\" [innerHTML]=\"item.message\"></span>\n </span>\n\n <span class=\"error-text\"\n *ngIf=\"(!compilerError || (compilerError && !isArray(error))) && !isErrorObject(error)\"\n [innerHTML]=\"error\"></span>\n <pre *ngIf=\"!compilerError && isErrorObject(error)\">\n {{getErrorAsString(error)}}\n </pre>\n </div>\n <button type=\"button\" class=\"close\" (click)=\"close()\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</div>\n", styles: [".alert{position:relative;width:100%;padding:10px 15px!important;border-radius:5px;margin:0}.alert .close{background:none;border:none;position:absolute;top:2px;right:2px;font-size:20px;color:var(--color-fonts-tertiary);cursor:pointer}.alert .title{word-break:break-word;margin-right:5px}.alert .causes{word-break:break-word}.alert-danger{color:#721c24!important;background-color:#f8d7da!important;border-color:#f5c6cb!important}.alert-danger .close{color:#8b4646!important}.alert-warning{color:#ffb10a!important;background-color:#c4a460!important;border-color:#b08c38!important}.alert-warning .close{color:#ffb10a!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
25
25
|
}
|
|
26
26
|
export { MessageBoxComponent };
|
|
27
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MessageBoxComponent, decorators: [{
|
|
28
28
|
type: Component,
|
|
29
|
-
args: [{ selector: 'message-box', template: "<div class=\"
|
|
29
|
+
args: [{ selector: 'message-box', template: "<div class=\"alert {{type}} alert-dismissible fade show\" role=\"alert\" *ngIf=\"errors.length > 0\">\n <strong class=\"title\" *ngIf=\"title\">{{title}}</strong>\n <span class=\"detail-message\" *ngIf=\"message\">{{message}}</span>\n <div class=\"alert-text\" *ngFor=\"let error of errors\">\n <span class=\"causes\" *ngIf=\"compilerError && isArray(error)\">\n <span class=\"error-text\" *ngFor=\"let item of error\" [innerHTML]=\"item.message\"></span>\n </span>\n\n <span class=\"error-text\"\n *ngIf=\"(!compilerError || (compilerError && !isArray(error))) && !isErrorObject(error)\"\n [innerHTML]=\"error\"></span>\n <pre *ngIf=\"!compilerError && isErrorObject(error)\">\n {{getErrorAsString(error)}}\n </pre>\n </div>\n <button type=\"button\" class=\"close\" (click)=\"close()\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</div>\n", styles: [".alert{position:relative;width:100%;padding:10px 15px!important;border-radius:5px;margin:0}.alert .close{background:none;border:none;position:absolute;top:2px;right:2px;font-size:20px;color:var(--color-fonts-tertiary);cursor:pointer}.alert .title{word-break:break-word;margin-right:5px}.alert .causes{word-break:break-word}.alert-danger{color:#721c24!important;background-color:#f8d7da!important;border-color:#f5c6cb!important}.alert-danger .close{color:#8b4646!important}.alert-warning{color:#ffb10a!important;background-color:#c4a460!important;border-color:#b08c38!important}.alert-warning .close{color:#ffb10a!important}\n"] }]
|
|
30
30
|
}], propDecorators: { type: [{
|
|
31
31
|
type: Input
|
|
32
32
|
}], title: [{
|
|
@@ -40,4 +40,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
40
40
|
}], onClose: [{
|
|
41
41
|
type: Output
|
|
42
42
|
}] } });
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZS1ib3guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbWVzc2FnZXMvc3JjL21lc3NhZ2UtYm94L21lc3NhZ2UtYm94LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3Byb2plY3RzL21lc3NhZ2VzL3NyYy9tZXNzYWdlLWJveC9tZXNzYWdlLWJveC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFBOzs7QUFFdEUsTUFLYSxtQkFBbUI7SUFFZCxJQUFJLEdBQUcsY0FBYyxDQUFBO0lBQ3JCLEtBQUssR0FBRyxFQUFFLENBQUE7SUFDVixPQUFPLEdBQUcsRUFBRSxDQUFBO0lBQ1osYUFBY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aWEtaGlkZGVuPVwidHJ1ZVwiPiZ0aW1lczs8L3NwYW4+XG4gIDwvYnV0dG9uPlxuPC9kaXY+XG4iXX0=
|
|
@@ -107,11 +107,11 @@ class MessageBoxComponent {
|
|
|
107
107
|
return JSON.stringify(error, undefined, 2);
|
|
108
108
|
}
|
|
109
109
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
110
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: MessageBoxComponent, selector: "message-box", inputs: { type: "type", title: "title", message: "message", compilerError: "compilerError", errors: "errors" }, outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"
|
|
110
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: MessageBoxComponent, selector: "message-box", inputs: { type: "type", title: "title", message: "message", compilerError: "compilerError", errors: "errors" }, outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"alert {{type}} alert-dismissible fade show\" role=\"alert\" *ngIf=\"errors.length > 0\">\n <strong class=\"title\" *ngIf=\"title\">{{title}}</strong>\n <span class=\"detail-message\" *ngIf=\"message\">{{message}}</span>\n <div class=\"alert-text\" *ngFor=\"let error of errors\">\n <span class=\"causes\" *ngIf=\"compilerError && isArray(error)\">\n <span class=\"error-text\" *ngFor=\"let item of error\" [innerHTML]=\"item.message\"></span>\n </span>\n\n <span class=\"error-text\"\n *ngIf=\"(!compilerError || (compilerError && !isArray(error))) && !isErrorObject(error)\"\n [innerHTML]=\"error\"></span>\n <pre *ngIf=\"!compilerError && isErrorObject(error)\">\n {{getErrorAsString(error)}}\n </pre>\n </div>\n <button type=\"button\" class=\"close\" (click)=\"close()\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</div>\n", styles: [".alert{position:relative;width:100%;padding:10px 15px!important;border-radius:5px;margin:0}.alert .close{background:none;border:none;position:absolute;top:2px;right:2px;font-size:20px;color:var(--color-fonts-tertiary);cursor:pointer}.alert .title{word-break:break-word;margin-right:5px}.alert .causes{word-break:break-word}.alert-danger{color:#721c24!important;background-color:#f8d7da!important;border-color:#f5c6cb!important}.alert-danger .close{color:#8b4646!important}.alert-warning{color:#ffb10a!important;background-color:#c4a460!important;border-color:#b08c38!important}.alert-warning .close{color:#ffb10a!important}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
111
111
|
}
|
|
112
112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MessageBoxComponent, decorators: [{
|
|
113
113
|
type: Component,
|
|
114
|
-
args: [{ selector: 'message-box', template: "<div class=\"
|
|
114
|
+
args: [{ selector: 'message-box', template: "<div class=\"alert {{type}} alert-dismissible fade show\" role=\"alert\" *ngIf=\"errors.length > 0\">\n <strong class=\"title\" *ngIf=\"title\">{{title}}</strong>\n <span class=\"detail-message\" *ngIf=\"message\">{{message}}</span>\n <div class=\"alert-text\" *ngFor=\"let error of errors\">\n <span class=\"causes\" *ngIf=\"compilerError && isArray(error)\">\n <span class=\"error-text\" *ngFor=\"let item of error\" [innerHTML]=\"item.message\"></span>\n </span>\n\n <span class=\"error-text\"\n *ngIf=\"(!compilerError || (compilerError && !isArray(error))) && !isErrorObject(error)\"\n [innerHTML]=\"error\"></span>\n <pre *ngIf=\"!compilerError && isErrorObject(error)\">\n {{getErrorAsString(error)}}\n </pre>\n </div>\n <button type=\"button\" class=\"close\" (click)=\"close()\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</div>\n", styles: [".alert{position:relative;width:100%;padding:10px 15px!important;border-radius:5px;margin:0}.alert .close{background:none;border:none;position:absolute;top:2px;right:2px;font-size:20px;color:var(--color-fonts-tertiary);cursor:pointer}.alert .title{word-break:break-word;margin-right:5px}.alert .causes{word-break:break-word}.alert-danger{color:#721c24!important;background-color:#f8d7da!important;border-color:#f5c6cb!important}.alert-danger .close{color:#8b4646!important}.alert-warning{color:#ffb10a!important;background-color:#c4a460!important;border-color:#b08c38!important}.alert-warning .close{color:#ffb10a!important}\n"] }]
|
|
115
115
|
}], propDecorators: { type: [{
|
|
116
116
|
type: Input
|
|
117
117
|
}], title: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apipass-messages.mjs","sources":["../../../projects/messages/src/snack-bar/snack-bar.component.ts","../../../projects/messages/src/snack-bar/snack-bar.component.html","../../../projects/messages/src/messages.service.ts","../../../projects/messages/src/message-box/message-box.component.ts","../../../projects/messages/src/message-box/message-box.component.html","../../../projects/messages/src/ui-message.service.ts","../../../projects/messages/src/messages.module.ts","../../../projects/messages/src/exception/service.exception.ts","../../../projects/messages/src/apipass-messages.ts"],"sourcesContent":["import { Component, Inject } from '@angular/core'\nimport { MAT_SNACK_BAR_DATA, MatSnackBar } from '@angular/material/snack-bar'\n\nexport interface SnackBarData {\n panelClass: string\n title: string\n body: any\n}\n\n@Component({\n selector: 'snack-bar',\n templateUrl: 'snack-bar.component.html',\n styleUrls: ['snack-bar.component.scss']\n})\nexport class SnackBarComponent {\n\n constructor (@Inject(MAT_SNACK_BAR_DATA) public data: SnackBarData,\n public snackBar: MatSnackBar) {\n }\n\n public isErrorArray (): boolean {\n return Array.isArray(this.data?.body);\n }\n\n public getErrorMessage (error: any): string {\n if (typeof error === 'object' && error !== null) {\n return error.message || error.body;\n }\n return error;\n }\n\n}\n","<div [classList]=\"data.panelClass\" (click)=\"snackBar.dismiss()\">\n <div class=\"title\" *ngIf=\"data.title\">\n <b>{{data.title}}</b> <br/>\n </div>\n\n <div *ngIf=\"data.body && !isErrorArray()\" [innerHTML]=\"data.body\"></div>\n <div *ngIf=\"data.body && isErrorArray()\">\n <ul>\n <li *ngFor=\"let error of data.body\">\n {{getErrorMessage(error)}}\n </li>\n </ul>\n </div>\n</div>\n","import { Injectable } from '@angular/core'\nimport { MatSnackBar, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@angular/material/snack-bar'\nimport { SnackBarComponent } from './snack-bar/snack-bar.component'\n\n@Injectable()\nexport class MessagesService {\n\n constructor (private readonly _snackBar: MatSnackBar) {\n }\n\n public primaryMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('primary', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public secondaryMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('secondary', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public tertiaryMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('tertiary', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public defaultMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('default', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public infoMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('info', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public successMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('success', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public errorMessage (title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('error', title, body, horizontalPosition, verticalPosition, timeout)\n }\n\n public warnMessage (title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('warn', title, body, horizontalPosition, verticalPosition, timeout)\n }\n\n public message (type: string, title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage(type, title, body, horizontalPosition, verticalPosition, timeout)\n }\n\n public customMessage (type: string, title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this._snackBar.openFromComponent(SnackBarComponent, {\n data: {\n panelClass: `apipass-message apipass-message-${type || 'error'}`,\n title,\n body\n },\n panelClass: ['apipass-message', `apipass-message-${type || 'error'}`],\n horizontalPosition: horizontalPosition || 'end',\n verticalPosition: verticalPosition || 'top',\n duration: timeout || 30000\n })\n }\n\n}\n","import { Component, Input, EventEmitter, Output } from '@angular/core'\n\n@Component({\n selector: 'message-box',\n templateUrl: 'message-box.component.html',\n styleUrls: ['message-box.component.scss']\n})\nexport class MessageBoxComponent {\n\n @Input() public type = 'alert-danger'\n @Input() public title = ''\n @Input() public message = ''\n @Input() public compilerError = false\n @Input() public errors: any[] = []\n\n @Output() public onClose = new EventEmitter<void>()\n\n public close (): void {\n this.onClose.next()\n }\n\n public isArray (error: any): boolean {\n return Array.isArray(error)\n }\n\n public isErrorObject (error: any): boolean {\n return error instanceof Object || this.isArray(error)\n }\n\n public getErrorAsString (error: any): string {\n return JSON.stringify(error, undefined, 2)\n }\n\n}\n","<div class=\"error-box row\" *ngIf=\"errors.length > 0\">\n <div class=\"col-12\">\n <div class=\"alert {{type}} alert-dismissible fade show\" role=\"alert\">\n <strong class=\"title\" *ngIf=\"title\">{{title}}</strong>\n <span class=\"detail-message\" *ngIf=\"message\">{{message}}</span>\n <div class=\"alert-text\" *ngFor=\"let error of errors\">\n <span class=\"causes\" *ngIf=\"compilerError && isArray(error)\">\n <span class=\"error-text\" *ngFor=\"let item of error\" [innerHTML]=\"item.message\"></span>\n </span>\n\n <span class=\"error-text\"\n *ngIf=\"(!compilerError || (compilerError && !isArray(error))) && !isErrorObject(error)\" [innerHTML]=\"error\"></span>\n <pre *ngIf=\"!compilerError && isErrorObject(error)\">\n {{getErrorAsString(error)}}\n </pre>\n </div>\n <button type=\"button\" class=\"close\" (click)=\"close()\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n </div>\n</div>\n","import { Injectable } from '@angular/core'\nimport { MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@angular/material/snack-bar'\nimport { MessagesService } from './messages.service'\nimport { UISuccessMessage } from './success/ui-success-message'\nimport { UIErrorMessage } from './exception/ui-error-message'\n\nexport type LOG_TYPE = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'TRACE' | 'NO_LOG';\n\n@Injectable()\nexport class UIMessageService {\n\n constructor (\n private readonly messagesService: MessagesService) {\n }\n\n public async showSuccessMessage (success: UISuccessMessage, logType?: LOG_TYPE, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): Promise<void> {\n this.logMessage(logType || 'NO_LOG', success.logMessage)\n this.messagesService.successMessage(\n success.title,\n success.message,\n horizontalPosition || 'end',\n verticalPosition || 'top',\n timeout\n )\n }\n\n public async showErrorMessage (error: UIErrorMessage, logType?: LOG_TYPE, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): Promise<void> {\n if (error.message || error.body) {\n this.logMessage(logType || 'NO_LOG', error.logMessage || `Error: ${error.title}. details: ${JSON.stringify(error.message)}`, error)\n\n this.messagesService.errorMessage(\n error.title,\n error.message,\n horizontalPosition || 'end',\n verticalPosition || 'top',\n timeout\n )\n }\n }\n\n private logMessage (logType: LOG_TYPE, logMessage: string, e?: UISuccessMessage | UIErrorMessage): void {\n switch (logType) {\n case 'DEBUG':\n console.debug(logMessage)\n break\n case 'INFO':\n console.info(logMessage)\n break\n case 'WARN':\n console.warn(logMessage, e)\n break\n case 'ERROR':\n console.error(logMessage, e)\n break\n case 'TRACE':\n console.trace(logMessage, e)\n break\n default:\n break\n }\n }\n\n}\n","import { NgModule } from '@angular/core'\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms'\nimport { CommonModule } from '@angular/common'\nimport { MessageBoxComponent } from './message-box/message-box.component'\nimport { MessagesService } from './messages.service'\nimport { SnackBarComponent } from './snack-bar/snack-bar.component'\nimport { MatButtonModule } from '@angular/material/button'\nimport { MatSnackBarModule } from '@angular/material/snack-bar'\nimport { UIMessageService } from './ui-message.service'\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatSnackBarModule\n ],\n declarations: [\n MessageBoxComponent,\n SnackBarComponent\n ],\n exports: [\n MessageBoxComponent,\n SnackBarComponent\n ],\n providers: [\n MessagesService,\n UIMessageService\n ]\n})\nexport class MessagesModule {}\n","import { UIErrorMessage } from './ui-error-message'\n\nexport class ServiceException extends Error implements UIErrorMessage {\n\n private readonly _logMessage: string\n private readonly _serviceAddress: string\n private readonly _errorMessage: string\n private readonly _title: string\n private readonly _message: string\n private readonly _errorParams: Record<string, any>\n\n constructor (title: string, message: string, logMessage?: string, error?: any, serviceAddress?: string) {\n logMessage = logMessage || `Error in service: ${serviceAddress}, details: ${message}`\n super(message)\n this._logMessage = logMessage\n this._serviceAddress = serviceAddress\n this._errorMessage = message\n this._title = title\n this._message = message\n this._errorParams = {\n ...error,\n serviceAddress\n }\n }\n\n get logMessage (): string {\n return this._logMessage\n }\n\n get serviceAddress (): string {\n return this._serviceAddress\n }\n\n get errorMessage (): string {\n return this._errorMessage\n }\n\n get title (): string {\n return this._title\n }\n\n get message (): string {\n return this._message\n }\n\n get errorParams (): Record<string, any> {\n return this._errorParams\n }\n\n}\n","/**\n * Generated bundle index. Do not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AC,QAAQ,GAAG,OAAO,CAAA;QACvB,IAAI,CAAC,YAAY,GAAG;AAClB,YAAA,GAAG,KAAK;YACR,cAAc;SACf,CAAA;KACF;AAED,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,WAAW,CAAA;KACxB;AAED,IAAA,IAAI,cAAc,GAAA;QAChB,OAAO,IAAI,CAAC,eAAe,CAAA;KAC5B;AAED,IAAA,IAAI,YAAY,GAAA;QACd,OAAO,IAAI,CAAC,aAAa,CAAA;KAC1B;AAED,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,IAAI,CAAC,MAAM,CAAA;KACnB;AAED,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,IAAI,CAAC,QAAQ,CAAA;KACrB;AAED,IAAA,IAAI,WAAW,GAAA;QACb,OAAO,IAAI,CAAC,YAAY,CAAA;KACzB;AAEF;;ACjDD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"apipass-messages.mjs","sources":["../../../projects/messages/src/snack-bar/snack-bar.component.ts","../../../projects/messages/src/snack-bar/snack-bar.component.html","../../../projects/messages/src/messages.service.ts","../../../projects/messages/src/message-box/message-box.component.ts","../../../projects/messages/src/message-box/message-box.component.html","../../../projects/messages/src/ui-message.service.ts","../../../projects/messages/src/messages.module.ts","../../../projects/messages/src/exception/service.exception.ts","../../../projects/messages/src/apipass-messages.ts"],"sourcesContent":["import { Component, Inject } from '@angular/core'\nimport { MAT_SNACK_BAR_DATA, MatSnackBar } from '@angular/material/snack-bar'\n\nexport interface SnackBarData {\n panelClass: string\n title: string\n body: any\n}\n\n@Component({\n selector: 'snack-bar',\n templateUrl: 'snack-bar.component.html',\n styleUrls: ['snack-bar.component.scss']\n})\nexport class SnackBarComponent {\n\n constructor (@Inject(MAT_SNACK_BAR_DATA) public data: SnackBarData,\n public snackBar: MatSnackBar) {\n }\n\n public isErrorArray (): boolean {\n return Array.isArray(this.data?.body);\n }\n\n public getErrorMessage (error: any): string {\n if (typeof error === 'object' && error !== null) {\n return error.message || error.body;\n }\n return error;\n }\n\n}\n","<div [classList]=\"data.panelClass\" (click)=\"snackBar.dismiss()\">\n <div class=\"title\" *ngIf=\"data.title\">\n <b>{{data.title}}</b> <br/>\n </div>\n\n <div *ngIf=\"data.body && !isErrorArray()\" [innerHTML]=\"data.body\"></div>\n <div *ngIf=\"data.body && isErrorArray()\">\n <ul>\n <li *ngFor=\"let error of data.body\">\n {{getErrorMessage(error)}}\n </li>\n </ul>\n </div>\n</div>\n","import { Injectable } from '@angular/core'\nimport { MatSnackBar, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@angular/material/snack-bar'\nimport { SnackBarComponent } from './snack-bar/snack-bar.component'\n\n@Injectable()\nexport class MessagesService {\n\n constructor (private readonly _snackBar: MatSnackBar) {\n }\n\n public primaryMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('primary', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public secondaryMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('secondary', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public tertiaryMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('tertiary', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public defaultMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('default', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public infoMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('info', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public successMessage (title: string, body?: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('success', title, body || '', horizontalPosition, verticalPosition, timeout)\n }\n\n public errorMessage (title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('error', title, body, horizontalPosition, verticalPosition, timeout)\n }\n\n public warnMessage (title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage('warn', title, body, horizontalPosition, verticalPosition, timeout)\n }\n\n public message (type: string, title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this.customMessage(type, title, body, horizontalPosition, verticalPosition, timeout)\n }\n\n public customMessage (type: string, title: string, body: any, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): void {\n this._snackBar.openFromComponent(SnackBarComponent, {\n data: {\n panelClass: `apipass-message apipass-message-${type || 'error'}`,\n title,\n body\n },\n panelClass: ['apipass-message', `apipass-message-${type || 'error'}`],\n horizontalPosition: horizontalPosition || 'end',\n verticalPosition: verticalPosition || 'top',\n duration: timeout || 30000\n })\n }\n\n}\n","import { Component, Input, EventEmitter, Output } from '@angular/core'\n\n@Component({\n selector: 'message-box',\n templateUrl: 'message-box.component.html',\n styleUrls: ['message-box.component.scss']\n})\nexport class MessageBoxComponent {\n\n @Input() public type = 'alert-danger'\n @Input() public title = ''\n @Input() public message = ''\n @Input() public compilerError = false\n @Input() public errors: any[] = []\n\n @Output() public onClose = new EventEmitter<void>()\n\n public close (): void {\n this.onClose.next()\n }\n\n public isArray (error: any): boolean {\n return Array.isArray(error)\n }\n\n public isErrorObject (error: any): boolean {\n return error instanceof Object || this.isArray(error)\n }\n\n public getErrorAsString (error: any): string {\n return JSON.stringify(error, undefined, 2)\n }\n\n}\n","<div class=\"alert {{type}} alert-dismissible fade show\" role=\"alert\" *ngIf=\"errors.length > 0\">\n <strong class=\"title\" *ngIf=\"title\">{{title}}</strong>\n <span class=\"detail-message\" *ngIf=\"message\">{{message}}</span>\n <div class=\"alert-text\" *ngFor=\"let error of errors\">\n <span class=\"causes\" *ngIf=\"compilerError && isArray(error)\">\n <span class=\"error-text\" *ngFor=\"let item of error\" [innerHTML]=\"item.message\"></span>\n </span>\n\n <span class=\"error-text\"\n *ngIf=\"(!compilerError || (compilerError && !isArray(error))) && !isErrorObject(error)\"\n [innerHTML]=\"error\"></span>\n <pre *ngIf=\"!compilerError && isErrorObject(error)\">\n {{getErrorAsString(error)}}\n </pre>\n </div>\n <button type=\"button\" class=\"close\" (click)=\"close()\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</div>\n","import { Injectable } from '@angular/core'\nimport { MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@angular/material/snack-bar'\nimport { MessagesService } from './messages.service'\nimport { UISuccessMessage } from './success/ui-success-message'\nimport { UIErrorMessage } from './exception/ui-error-message'\n\nexport type LOG_TYPE = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'TRACE' | 'NO_LOG';\n\n@Injectable()\nexport class UIMessageService {\n\n constructor (\n private readonly messagesService: MessagesService) {\n }\n\n public async showSuccessMessage (success: UISuccessMessage, logType?: LOG_TYPE, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): Promise<void> {\n this.logMessage(logType || 'NO_LOG', success.logMessage)\n this.messagesService.successMessage(\n success.title,\n success.message,\n horizontalPosition || 'end',\n verticalPosition || 'top',\n timeout\n )\n }\n\n public async showErrorMessage (error: UIErrorMessage, logType?: LOG_TYPE, horizontalPosition?: MatSnackBarHorizontalPosition, verticalPosition?: MatSnackBarVerticalPosition, timeout?: number): Promise<void> {\n if (error.message || error.body) {\n this.logMessage(logType || 'NO_LOG', error.logMessage || `Error: ${error.title}. details: ${JSON.stringify(error.message)}`, error)\n\n this.messagesService.errorMessage(\n error.title,\n error.message,\n horizontalPosition || 'end',\n verticalPosition || 'top',\n timeout\n )\n }\n }\n\n private logMessage (logType: LOG_TYPE, logMessage: string, e?: UISuccessMessage | UIErrorMessage): void {\n switch (logType) {\n case 'DEBUG':\n console.debug(logMessage)\n break\n case 'INFO':\n console.info(logMessage)\n break\n case 'WARN':\n console.warn(logMessage, e)\n break\n case 'ERROR':\n console.error(logMessage, e)\n break\n case 'TRACE':\n console.trace(logMessage, e)\n break\n default:\n break\n }\n }\n\n}\n","import { NgModule } from '@angular/core'\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms'\nimport { CommonModule } from '@angular/common'\nimport { MessageBoxComponent } from './message-box/message-box.component'\nimport { MessagesService } from './messages.service'\nimport { SnackBarComponent } from './snack-bar/snack-bar.component'\nimport { MatButtonModule } from '@angular/material/button'\nimport { MatSnackBarModule } from '@angular/material/snack-bar'\nimport { UIMessageService } from './ui-message.service'\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatSnackBarModule\n ],\n declarations: [\n MessageBoxComponent,\n SnackBarComponent\n ],\n exports: [\n MessageBoxComponent,\n SnackBarComponent\n ],\n providers: [\n MessagesService,\n UIMessageService\n ]\n})\nexport class MessagesModule {}\n","import { UIErrorMessage } from './ui-error-message'\n\nexport class ServiceException extends Error implements UIErrorMessage {\n\n private readonly _logMessage: string\n private readonly _serviceAddress: string\n private readonly _errorMessage: string\n private readonly _title: string\n private readonly _message: string\n private readonly _errorParams: Record<string, any>\n\n constructor (title: string, message: string, logMessage?: string, error?: any, serviceAddress?: string) {\n logMessage = logMessage || `Error in service: ${serviceAddress}, details: ${message}`\n super(message)\n this._logMessage = logMessage\n this._serviceAddress = serviceAddress\n this._errorMessage = message\n this._title = title\n this._message = message\n this._errorParams = {\n ...error,\n serviceAddress\n }\n }\n\n get logMessage (): string {\n return this._logMessage\n }\n\n get serviceAddress (): string {\n return this._serviceAddress\n }\n\n get errorMessage (): string {\n return this._errorMessage\n }\n\n get title (): string {\n return this._title\n }\n\n get message (): string {\n return this._message\n }\n\n get errorParams (): Record<string, any> {\n return this._errorParams\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i1.MessagesService"],"mappings":";;;;;;;;;;AASA,MAKa,iBAAiB,CAAA;AAEoB,IAAA,IAAA,CAAA;AACvC,IAAA,QAAA,CAAA;IADT,WAAgD,CAAA,IAAkB,EACzD,QAAqB,EAAA;QADkB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAc;QACzD,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAa;KAC7B;IAEM,YAAY,GAAA;QACjB,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACvC;AAEM,IAAA,eAAe,CAAE,KAAU,EAAA;QAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;AAC/C,YAAA,OAAO,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC;AACpC,SAAA;AACD,QAAA,OAAO,KAAK,CAAC;KACd;AAfU,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,kBAEP,kBAAkB,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAF5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,iDCd9B,waAcA,EAAA,MAAA,EAAA,CAA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