@enigmatry/entry-components 1.2.49
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.
- package/README.md +21 -0
- package/enigmatry-entry-components.d.ts +5 -0
- package/entry-dialog/dialogs/alert/entry-alert-dialog-data.interface.d.ts +5 -0
- package/entry-dialog/dialogs/alert/entry-alert-dialog.component.d.ts +15 -0
- package/entry-dialog/dialogs/confirm/entry-confirm-dialog-data.interface.d.ts +4 -0
- package/entry-dialog/dialogs/confirm/entry-confirm-dialog.component.d.ts +15 -0
- package/entry-dialog/dialogs/entry-dialog.component.d.ts +22 -0
- package/entry-dialog/enigmatry-entry-components-entry-dialog.d.ts +5 -0
- package/entry-dialog/entry-dialog-buttons-config.interface.d.ts +4 -0
- package/entry-dialog/entry-dialog-config.model.d.ts +8 -0
- package/entry-dialog/entry-dialog.module.d.ts +11 -0
- package/entry-dialog/entry-dialog.service.d.ts +18 -0
- package/entry-dialog/package.json +10 -0
- package/entry-dialog/public-api.d.ts +7 -0
- package/entry-header/enigmatry-entry-components-entry-header.d.ts +5 -0
- package/entry-header/entry-header.component.d.ts +6 -0
- package/entry-header/entry-header.module.d.ts +8 -0
- package/entry-header/package.json +10 -0
- package/entry-header/public-api.d.ts +2 -0
- package/esm2020/enigmatry-entry-components.mjs +5 -0
- package/esm2020/entry-dialog/dialogs/alert/entry-alert-dialog-data.interface.mjs +2 -0
- package/esm2020/entry-dialog/dialogs/alert/entry-alert-dialog.component.mjs +35 -0
- package/esm2020/entry-dialog/dialogs/confirm/entry-confirm-dialog-data.interface.mjs +2 -0
- package/esm2020/entry-dialog/dialogs/confirm/entry-confirm-dialog.component.mjs +35 -0
- package/esm2020/entry-dialog/dialogs/entry-dialog.component.mjs +58 -0
- package/esm2020/entry-dialog/enigmatry-entry-components-entry-dialog.mjs +5 -0
- package/esm2020/entry-dialog/entry-dialog-buttons-config.interface.mjs +2 -0
- package/esm2020/entry-dialog/entry-dialog-config.model.mjs +13 -0
- package/esm2020/entry-dialog/entry-dialog.module.mjs +40 -0
- package/esm2020/entry-dialog/entry-dialog.service.mjs +36 -0
- package/esm2020/entry-dialog/public-api.mjs +7 -0
- package/esm2020/entry-header/enigmatry-entry-components-entry-header.mjs +5 -0
- package/esm2020/entry-header/entry-header.component.mjs +13 -0
- package/esm2020/entry-header/entry-header.module.mjs +26 -0
- package/esm2020/entry-header/public-api.mjs +3 -0
- package/esm2020/public-api.mjs +6 -0
- package/fesm2015/enigmatry-entry-components-entry-dialog.mjs +202 -0
- package/fesm2015/enigmatry-entry-components-entry-dialog.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components-entry-header.mjs +43 -0
- package/fesm2015/enigmatry-entry-components-entry-header.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components.mjs +11 -0
- package/fesm2015/enigmatry-entry-components.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components-entry-dialog.mjs +194 -0
- package/fesm2020/enigmatry-entry-components-entry-dialog.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components-entry-header.mjs +43 -0
- package/fesm2020/enigmatry-entry-components-entry-header.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components.mjs +11 -0
- package/fesm2020/enigmatry-entry-components.mjs.map +1 -0
- package/package.json +61 -0
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Component, Inject, Input, HostListener, ChangeDetectionStrategy, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import { of } from 'rxjs';
|
|
4
|
+
import * as i1 from '@angular/material/dialog';
|
|
5
|
+
import { MAT_DIALOG_DATA, MatDialogConfig, MatDialogModule } from '@angular/material/dialog';
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import { take } from 'rxjs/operators';
|
|
9
|
+
|
|
10
|
+
class EntryDialogConfig {
|
|
11
|
+
constructor(confirmButtonText = 'Ok', cancelButtonText = 'Cancel', buttonsAlignment = 'align-right') {
|
|
12
|
+
this.confirmButtonText = confirmButtonText;
|
|
13
|
+
this.cancelButtonText = cancelButtonText;
|
|
14
|
+
this.buttonsAlignment = buttonsAlignment;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const ENTRY_DIALOG_CONFIG = new InjectionToken('ENTRY_DIALOG_CONFIG', {
|
|
18
|
+
providedIn: 'root',
|
|
19
|
+
factory: () => new EntryDialogConfig()
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
class EntryDialogComponent {
|
|
23
|
+
constructor(mdDialogRef, config) {
|
|
24
|
+
this.mdDialogRef = mdDialogRef;
|
|
25
|
+
this.config = config;
|
|
26
|
+
this.buttons = {
|
|
27
|
+
buttonsAlignment: this.config.buttonsAlignment,
|
|
28
|
+
confirmButtonText: this.config.confirmButtonText,
|
|
29
|
+
cancelButtonText: this.config.cancelButtonText,
|
|
30
|
+
visible: true
|
|
31
|
+
};
|
|
32
|
+
this.disableConfirm = false;
|
|
33
|
+
this.confirm = () => of(true);
|
|
34
|
+
this.cancel = () => this.close(false);
|
|
35
|
+
this.onEsc = () => this.cancel();
|
|
36
|
+
this.onSubmit = () => {
|
|
37
|
+
this.confirm().subscribe({
|
|
38
|
+
next: closeDialog => {
|
|
39
|
+
if (closeDialog) {
|
|
40
|
+
this.close(closeDialog);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
this.close = (value = true) => this.mdDialogRef.close(value);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
EntryDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
EntryDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryDialogComponent, selector: "entry-dialog", inputs: { title: "title", buttons: "buttons", disableConfirm: "disableConfirm", buttonsTemplate: "buttonsTemplate", confirm: "confirm", cancel: "cancel" }, host: { listeners: { "keydown.esc": "onEsc()" } }, ngImport: i0, template: "<div class=\"dialog-form\">\n <div class=\"dialog-header\">\n <h1 class=\"dialog-title\">\n {{ title }}\n </h1>\n\n <button type=\"button\" class=\"dialog-close-button\" (click)=\"cancel()\">\n <span class=\"icon-close dialog-close-icon\"></span>\n </button>\n </div>\n\n <mat-dialog-content\n class=\"dialog-content\"\n [ngClass]=\"{'with-actions': buttons.visible}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <ng-template [ngIf]=\"buttonsTemplate\" [ngIfElse]=\"defaultButtonsTemplate\">\n <ng-template [ngTemplateOutlet]=\"buttonsTemplate\"></ng-template>\n </ng-template>\n\n <ng-template #defaultButtonsTemplate>\n <div *ngIf=\"buttons.visible\" class=\"dialog-footer {{ buttons.buttonsAlignment }}\">\n <button\n type=\"button\"\n class=\"button button-accent dialog-footer-button\"\n cdkFocusInitial\n (click)=\"onSubmit()\">{{buttons.confirmButtonText}}</button>\n <button\n type=\"button\"\n class=\"button button-primary dialog-footer-button\"\n *ngIf=\"buttons.cancelButtonText !== ''\"\n (click)=\"cancel()\">{{buttons.cancelButtonText}}</button>\n </div>\n </ng-template>\n</div>", styles: [".align-center{margin:auto}\n"], directives: [{ type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{ selector: 'entry-dialog', template: "<div class=\"dialog-form\">\n <div class=\"dialog-header\">\n <h1 class=\"dialog-title\">\n {{ title }}\n </h1>\n\n <button type=\"button\" class=\"dialog-close-button\" (click)=\"cancel()\">\n <span class=\"icon-close dialog-close-icon\"></span>\n </button>\n </div>\n\n <mat-dialog-content\n class=\"dialog-content\"\n [ngClass]=\"{'with-actions': buttons.visible}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <ng-template [ngIf]=\"buttonsTemplate\" [ngIfElse]=\"defaultButtonsTemplate\">\n <ng-template [ngTemplateOutlet]=\"buttonsTemplate\"></ng-template>\n </ng-template>\n\n <ng-template #defaultButtonsTemplate>\n <div *ngIf=\"buttons.visible\" class=\"dialog-footer {{ buttons.buttonsAlignment }}\">\n <button\n type=\"button\"\n class=\"button button-accent dialog-footer-button\"\n cdkFocusInitial\n (click)=\"onSubmit()\">{{buttons.confirmButtonText}}</button>\n <button\n type=\"button\"\n class=\"button button-primary dialog-footer-button\"\n *ngIf=\"buttons.cancelButtonText !== ''\"\n (click)=\"cancel()\">{{buttons.cancelButtonText}}</button>\n </div>\n </ng-template>\n</div>", styles: [".align-center{margin:auto}\n"] }]
|
|
53
|
+
}], ctorParameters: function () {
|
|
54
|
+
return [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
55
|
+
type: Inject,
|
|
56
|
+
args: [ENTRY_DIALOG_CONFIG]
|
|
57
|
+
}] }];
|
|
58
|
+
}, propDecorators: { title: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], buttons: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], disableConfirm: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], buttonsTemplate: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], confirm: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], cancel: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], onEsc: [{
|
|
71
|
+
type: HostListener,
|
|
72
|
+
args: ['keydown.esc']
|
|
73
|
+
}] } });
|
|
74
|
+
|
|
75
|
+
class EntryAlertDialogComponent extends EntryDialogComponent {
|
|
76
|
+
constructor(mdDialogRef, config, data) {
|
|
77
|
+
var _a;
|
|
78
|
+
super(mdDialogRef, config);
|
|
79
|
+
this.mdDialogRef = mdDialogRef;
|
|
80
|
+
this.config = config;
|
|
81
|
+
this.data = data;
|
|
82
|
+
this.buttons = {
|
|
83
|
+
confirmButtonText: (_a = this.data.confirmText) !== null && _a !== void 0 ? _a : this.config.confirmButtonText,
|
|
84
|
+
cancelButtonText: '',
|
|
85
|
+
buttonsAlignment: 'align-center',
|
|
86
|
+
visible: true
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
EntryAlertDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryAlertDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
EntryAlertDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryAlertDialogComponent, selector: "entry-alert-dialog", usesInheritance: true, ngImport: i0, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""], components: [{ type: EntryDialogComponent, selector: "entry-dialog", inputs: ["title", "buttons", "disableConfirm", "buttonsTemplate", "confirm", "cancel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryAlertDialogComponent, decorators: [{
|
|
93
|
+
type: Component,
|
|
94
|
+
args: [{ selector: 'entry-alert-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""] }]
|
|
95
|
+
}], ctorParameters: function () {
|
|
96
|
+
return [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
97
|
+
type: Inject,
|
|
98
|
+
args: [ENTRY_DIALOG_CONFIG]
|
|
99
|
+
}] }, { type: undefined, decorators: [{
|
|
100
|
+
type: Inject,
|
|
101
|
+
args: [MAT_DIALOG_DATA]
|
|
102
|
+
}] }];
|
|
103
|
+
} });
|
|
104
|
+
|
|
105
|
+
class EntryConfirmDialogComponent extends EntryDialogComponent {
|
|
106
|
+
constructor(mdDialogRef, config, data) {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
super(mdDialogRef, config);
|
|
109
|
+
this.mdDialogRef = mdDialogRef;
|
|
110
|
+
this.config = config;
|
|
111
|
+
this.data = data;
|
|
112
|
+
this.buttons = {
|
|
113
|
+
confirmButtonText: (_a = this.data.confirmText) !== null && _a !== void 0 ? _a : this.config.confirmButtonText,
|
|
114
|
+
cancelButtonText: (_b = this.data.cancelText) !== null && _b !== void 0 ? _b : this.config.cancelButtonText,
|
|
115
|
+
buttonsAlignment: 'align-right',
|
|
116
|
+
visible: true
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
EntryConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
+
EntryConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryConfirmDialogComponent, selector: "entry-confirm-dialog", usesInheritance: true, ngImport: i0, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""], components: [{ type: EntryDialogComponent, selector: "entry-dialog", inputs: ["title", "buttons", "disableConfirm", "buttonsTemplate", "confirm", "cancel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryConfirmDialogComponent, decorators: [{
|
|
123
|
+
type: Component,
|
|
124
|
+
args: [{ selector: 'entry-confirm-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""] }]
|
|
125
|
+
}], ctorParameters: function () {
|
|
126
|
+
return [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
127
|
+
type: Inject,
|
|
128
|
+
args: [ENTRY_DIALOG_CONFIG]
|
|
129
|
+
}] }, { type: undefined, decorators: [{
|
|
130
|
+
type: Inject,
|
|
131
|
+
args: [MAT_DIALOG_DATA]
|
|
132
|
+
}] }];
|
|
133
|
+
} });
|
|
134
|
+
|
|
135
|
+
class EntryDialogService {
|
|
136
|
+
constructor(matDialog) {
|
|
137
|
+
this.matDialog = matDialog;
|
|
138
|
+
this.openAlert = (data) => this.open(EntryAlertDialogComponent, data);
|
|
139
|
+
this.openConfirm = (data) => this.open(EntryConfirmDialogComponent, data);
|
|
140
|
+
this.open = (component, data = undefined, cssClass = '') => {
|
|
141
|
+
const configuration = new MatDialogConfig();
|
|
142
|
+
configuration.data = data;
|
|
143
|
+
this.setPanelClassFor(configuration, cssClass);
|
|
144
|
+
return this.matDialog
|
|
145
|
+
.open(component, configuration)
|
|
146
|
+
.afterClosed()
|
|
147
|
+
.pipe(take(1));
|
|
148
|
+
};
|
|
149
|
+
this.close = () => this.matDialog.closeAll();
|
|
150
|
+
this.setPanelClassFor = (configuration, cssClass) => {
|
|
151
|
+
configuration.panelClass = ['dialog-container', cssClass];
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
EntryDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogService, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
156
|
+
EntryDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogService, providedIn: 'root' });
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogService, decorators: [{
|
|
158
|
+
type: Injectable,
|
|
159
|
+
args: [{
|
|
160
|
+
providedIn: 'root'
|
|
161
|
+
}]
|
|
162
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }]; } });
|
|
163
|
+
|
|
164
|
+
class EntryDialogModule {
|
|
165
|
+
}
|
|
166
|
+
EntryDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
167
|
+
EntryDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, declarations: [EntryDialogComponent,
|
|
168
|
+
EntryAlertDialogComponent,
|
|
169
|
+
EntryConfirmDialogComponent], imports: [CommonModule,
|
|
170
|
+
MatDialogModule], exports: [EntryDialogComponent,
|
|
171
|
+
EntryAlertDialogComponent,
|
|
172
|
+
EntryConfirmDialogComponent] });
|
|
173
|
+
EntryDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, imports: [[
|
|
174
|
+
CommonModule,
|
|
175
|
+
MatDialogModule
|
|
176
|
+
]] });
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, decorators: [{
|
|
178
|
+
type: NgModule,
|
|
179
|
+
args: [{
|
|
180
|
+
declarations: [
|
|
181
|
+
EntryDialogComponent,
|
|
182
|
+
EntryAlertDialogComponent,
|
|
183
|
+
EntryConfirmDialogComponent
|
|
184
|
+
],
|
|
185
|
+
imports: [
|
|
186
|
+
CommonModule,
|
|
187
|
+
MatDialogModule
|
|
188
|
+
],
|
|
189
|
+
exports: [
|
|
190
|
+
EntryDialogComponent,
|
|
191
|
+
EntryAlertDialogComponent,
|
|
192
|
+
EntryConfirmDialogComponent
|
|
193
|
+
]
|
|
194
|
+
}]
|
|
195
|
+
}] });
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Generated bundle index. Do not edit.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
export { ENTRY_DIALOG_CONFIG, EntryAlertDialogComponent, EntryConfirmDialogComponent, EntryDialogComponent, EntryDialogConfig, EntryDialogModule, EntryDialogService };
|
|
202
|
+
//# sourceMappingURL=enigmatry-entry-components-entry-dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-entry-dialog.mjs","sources":["../../../../projects/entry-components/entry-dialog/entry-dialog-config.model.ts","../../../../projects/entry-components/entry-dialog/dialogs/entry-dialog.component.ts","../../../../projects/entry-components/entry-dialog/dialogs/entry-dialog.component.html","../../../../projects/entry-components/entry-dialog/dialogs/alert/entry-alert-dialog.component.ts","../../../../projects/entry-components/entry-dialog/dialogs/alert/entry-alert-dialog.component.html","../../../../projects/entry-components/entry-dialog/dialogs/confirm/entry-confirm-dialog.component.ts","../../../../projects/entry-components/entry-dialog/dialogs/confirm/entry-confirm-dialog.component.html","../../../../projects/entry-components/entry-dialog/entry-dialog.service.ts","../../../../projects/entry-components/entry-dialog/entry-dialog.module.ts","../../../../projects/entry-components/entry-dialog/enigmatry-entry-components-entry-dialog.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport class EntryDialogConfig {\n constructor(\n public confirmButtonText: string = 'Ok',\n public cancelButtonText: string = 'Cancel',\n public buttonsAlignment: 'align-right' | 'align-center' | '' = 'align-right'\n ) { }\n}\nexport const ENTRY_DIALOG_CONFIG = new InjectionToken<EntryDialogConfig>(\n 'ENTRY_DIALOG_CONFIG',\n {\n providedIn: 'root',\n factory: () => new EntryDialogConfig()\n }\n);\n","import { Component, HostListener, Inject, Input, TemplateRef } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { Observable, of } from 'rxjs';\nimport { IEntryDialogButtonsConfig } from '../entry-dialog-buttons-config.interface';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../entry-dialog-config.model';\n\n@Component({\n selector: 'entry-dialog',\n templateUrl: './entry-dialog.component.html',\n styleUrls: ['./entry-dialog.component.scss']\n})\nexport class EntryDialogComponent {\n\n @Input() title: string;\n @Input() buttons: IEntryDialogButtonsConfig = {\n buttonsAlignment: this.config.buttonsAlignment,\n confirmButtonText: this.config.confirmButtonText,\n cancelButtonText: this.config.cancelButtonText,\n visible: true\n };\n\n @Input() disableConfirm = false;\n @Input() buttonsTemplate: TemplateRef<any> | null | undefined;\n\n constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig) { }\n\n @Input() confirm: () => Observable<unknown> = () => of(true);\n @Input() cancel = () => this.close(false);\n\n @HostListener('keydown.esc')\n readonly onEsc = () => this.cancel();\n\n readonly onSubmit = () => {\n this.confirm().subscribe({\n next: closeDialog => {\n if (closeDialog) {\n this.close(closeDialog);\n }\n }\n });\n };\n\n readonly close = (value: unknown = true) => this.mdDialogRef.close(value);\n}\n","<div class=\"dialog-form\">\n <div class=\"dialog-header\">\n <h1 class=\"dialog-title\">\n {{ title }}\n </h1>\n\n <button type=\"button\" class=\"dialog-close-button\" (click)=\"cancel()\">\n <span class=\"icon-close dialog-close-icon\"></span>\n </button>\n </div>\n\n <mat-dialog-content\n class=\"dialog-content\"\n [ngClass]=\"{'with-actions': buttons.visible}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <ng-template [ngIf]=\"buttonsTemplate\" [ngIfElse]=\"defaultButtonsTemplate\">\n <ng-template [ngTemplateOutlet]=\"buttonsTemplate\"></ng-template>\n </ng-template>\n\n <ng-template #defaultButtonsTemplate>\n <div *ngIf=\"buttons.visible\" class=\"dialog-footer {{ buttons.buttonsAlignment }}\">\n <button\n type=\"button\"\n class=\"button button-accent dialog-footer-button\"\n cdkFocusInitial\n (click)=\"onSubmit()\">{{buttons.confirmButtonText}}</button>\n <button\n type=\"button\"\n class=\"button button-primary dialog-footer-button\"\n *ngIf=\"buttons.cancelButtonText !== ''\"\n (click)=\"cancel()\">{{buttons.cancelButtonText}}</button>\n </div>\n </ng-template>\n</div>","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { EntryDialogComponent } from '../entry-dialog.component';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { IEntryAlertDialogData } from './entry-alert-dialog-data.interface';\nimport { IEntryDialogButtonsConfig } from '../../entry-dialog-buttons-config.interface';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../../entry-dialog-config.model';\n\n@Component({\n selector: 'entry-alert-dialog',\n templateUrl: './entry-alert-dialog.component.html',\n styleUrls: ['./entry-alert-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryAlertDialogComponent extends EntryDialogComponent {\n readonly buttons: IEntryDialogButtonsConfig = {\n confirmButtonText: this.data.confirmText ?? this.config.confirmButtonText,\n cancelButtonText: '',\n buttonsAlignment: 'align-center',\n visible: true\n };\n\n constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) public data: IEntryAlertDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { IEntryDialogButtonsConfig } from '../../entry-dialog-buttons-config.interface';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { EntryDialogComponent } from '../entry-dialog.component';\nimport { IEntryConfirmDialogData } from './entry-confirm-dialog-data.interface';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../../entry-dialog-config.model';\n\n@Component({\n selector: 'entry-confirm-dialog',\n templateUrl: './entry-confirm-dialog.component.html',\n styleUrls: ['./entry-confirm-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryConfirmDialogComponent extends EntryDialogComponent {\n readonly buttons: IEntryDialogButtonsConfig = {\n confirmButtonText: this.data.confirmText ?? this.config.confirmButtonText,\n cancelButtonText: this.data.cancelText ?? this.config.cancelButtonText,\n buttonsAlignment: 'align-right',\n visible: true\n };\n\n constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) readonly data: IEntryConfirmDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { Injectable, Type } from '@angular/core';\nimport { MatDialog, MatDialogConfig } from '@angular/material/dialog';\nimport { EntryDialogComponent } from './dialogs/entry-dialog.component';\nimport { take } from 'rxjs/operators';\nimport { IEntryAlertDialogData } from './dialogs/alert/entry-alert-dialog-data.interface';\nimport { EntryAlertDialogComponent } from './dialogs/alert/entry-alert-dialog.component';\nimport { Observable } from 'rxjs';\nimport { EntryConfirmDialogComponent } from './dialogs/confirm/entry-confirm-dialog.component';\nimport { IEntryConfirmDialogData } from './dialogs/confirm/entry-confirm-dialog-data.interface';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class EntryDialogService {\n constructor(private readonly matDialog: MatDialog) { }\n\n openAlert = (data: IEntryAlertDialogData): Observable<any> =>\n this.open(EntryAlertDialogComponent, data);\n\n readonly openConfirm = (data: IEntryConfirmDialogData): Observable<boolean | undefined> =>\n this.open(EntryConfirmDialogComponent, data);\n\n readonly open = (component: Type<EntryDialogComponent>, data: unknown = undefined, cssClass: string = '') => {\n const configuration = new MatDialogConfig<unknown>();\n configuration.data = data;\n this.setPanelClassFor(configuration, cssClass);\n\n return this.matDialog\n .open(component, configuration)\n .afterClosed()\n .pipe(take(1));\n };\n\n readonly close = (): void => this.matDialog.closeAll();\n\n private setPanelClassFor = <T>(configuration: MatDialogConfig<T>, cssClass: string) => {\n configuration.panelClass = ['dialog-container', cssClass];\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { EntryAlertDialogComponent } from './dialogs/alert/entry-alert-dialog.component';\nimport { EntryConfirmDialogComponent } from './dialogs/confirm/entry-confirm-dialog.component';\nimport { EntryDialogComponent } from './dialogs/entry-dialog.component';\n\n@NgModule({\n declarations: [\n EntryDialogComponent,\n EntryAlertDialogComponent,\n EntryConfirmDialogComponent\n ],\n imports: [\n CommonModule,\n MatDialogModule\n ],\n exports: [\n EntryDialogComponent,\n EntryAlertDialogComponent,\n EntryConfirmDialogComponent\n ]\n})\nexport class EntryDialogModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.EntryDialogComponent"],"mappings":";;;;;;;;;MAEa,iBAAiB,CAAA;IAC1B,WACW,CAAA,oBAA4B,IAAI,EAChC,mBAA2B,QAAQ,EACnC,mBAAwD,aAAa,EAAA;AAFrE,QAAA,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAe;AAChC,QAAA,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAmB;AACnC,QAAA,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAqD;KAC3E;AACR,CA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M;iBACnB,CAAA;;;MCWY,iBAAiB,CAAA;;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,iBAd1B,oBAAoB;QACpB,yBAAyB;AACzB,QAAA,2BAA2B,aAG3B,YAAY;AACZ,QAAA,eAAe,aAGf,oBAAoB;QACpB,yBAAyB;QACzB,2BAA2B,CAAA,EAAA,CAAA,CAAA;AAGlB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAVnB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,eAAe;SAChB,CAAA,EAAA,CAAA,CAAA;4FAOU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAhB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,yBAAyB;wBACzB,2BAA2B;AAC5B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,yBAAyB;wBACzB,2BAA2B;AAC5B,qBAAA;iBACF,CAAA;;;ACtBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class EntryHeaderComponent {
|
|
6
|
+
}
|
|
7
|
+
EntryHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
EntryHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryHeaderComponent, selector: "entry-header", inputs: { title: "title" }, ngImport: i0, template: "<header class=\"entry-header\">\n <div class=\"container\">\n <div class=\"space-between\">\n <h1 class=\"header-item\">{{title}}</h1>\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n <div class=\"row content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n </div>\n</header>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{ selector: 'entry-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<header class=\"entry-header\">\n <div class=\"container\">\n <div class=\"space-between\">\n <h1 class=\"header-item\">{{title}}</h1>\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n <div class=\"row content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n </div>\n</header>", styles: [""] }]
|
|
12
|
+
}], propDecorators: { title: [{
|
|
13
|
+
type: Input
|
|
14
|
+
}] } });
|
|
15
|
+
|
|
16
|
+
class EntryHeaderModule {
|
|
17
|
+
}
|
|
18
|
+
EntryHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
+
EntryHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, declarations: [EntryHeaderComponent], imports: [CommonModule], exports: [EntryHeaderComponent] });
|
|
20
|
+
EntryHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, imports: [[
|
|
21
|
+
CommonModule
|
|
22
|
+
]] });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, decorators: [{
|
|
24
|
+
type: NgModule,
|
|
25
|
+
args: [{
|
|
26
|
+
declarations: [
|
|
27
|
+
EntryHeaderComponent
|
|
28
|
+
],
|
|
29
|
+
imports: [
|
|
30
|
+
CommonModule
|
|
31
|
+
],
|
|
32
|
+
exports: [
|
|
33
|
+
EntryHeaderComponent
|
|
34
|
+
]
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { EntryHeaderComponent, EntryHeaderModule };
|
|
43
|
+
//# sourceMappingURL=enigmatry-entry-components-entry-header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-entry-header.mjs","sources":["../../../../projects/entry-components/entry-header/entry-header.component.ts","../../../../projects/entry-components/entry-header/entry-header.component.html","../../../../projects/entry-components/entry-header/entry-header.module.ts","../../../../projects/entry-components/entry-header/enigmatry-entry-components-entry-header.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'entry-header',\n templateUrl: './entry-header.component.html',\n styleUrls: ['./entry-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryHeaderComponent {\n @Input() title: string;\n}\n","<header class=\"entry-header\">\n <div class=\"container\">\n <div class=\"space-between\">\n <h1 class=\"header-item\">{{title}}</h1>\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n <div class=\"row content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n </div>\n</header>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EntryHeaderComponent } from './entry-header.component';\n\n@NgModule({\n declarations: [\n EntryHeaderComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n EntryHeaderComponent\n ]\n})\nexport class EntryHeaderModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAQa,oBAAoB,CAAA;;kHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,gFCRjC,2UAUS,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;4FDFI,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,SAAS;+BACE,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2UAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;8BAGtC,KAAK,EAAA,CAAA;sBAAb,KAAK;;;MEMK,iBAAiB,CAAA;;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAT1B,YAAA,EAAA,CAAA,oBAAoB,CAGpB,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAGX,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAPnB,OAAA,EAAA,CAAA;YACP,YAAY;SACb,CAAA,EAAA,CAAA,CAAA;4FAKU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAX7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from '@enigmatry/entry-components/entry-header';
|
|
2
|
+
export * from '@enigmatry/entry-components/entry-dialog';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* Public API Surface of entry-components
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated bundle index. Do not edit.
|
|
10
|
+
*/
|
|
11
|
+
//# sourceMappingURL=enigmatry-entry-components.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components.mjs","sources":["../../../../projects/entry-components/public-api.ts","../../../../projects/entry-components/enigmatry-entry-components.ts"],"sourcesContent":["/*\n * Public API Surface of entry-components\n */\n\nexport * from '@enigmatry/entry-components/entry-header';\nexport * from '@enigmatry/entry-components/entry-dialog';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;;AAEG;;ACFH;;AAEG"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Component, Inject, Input, HostListener, ChangeDetectionStrategy, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import { of } from 'rxjs';
|
|
4
|
+
import * as i1 from '@angular/material/dialog';
|
|
5
|
+
import { MAT_DIALOG_DATA, MatDialogConfig, MatDialogModule } from '@angular/material/dialog';
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import { take } from 'rxjs/operators';
|
|
9
|
+
|
|
10
|
+
class EntryDialogConfig {
|
|
11
|
+
constructor(confirmButtonText = 'Ok', cancelButtonText = 'Cancel', buttonsAlignment = 'align-right') {
|
|
12
|
+
this.confirmButtonText = confirmButtonText;
|
|
13
|
+
this.cancelButtonText = cancelButtonText;
|
|
14
|
+
this.buttonsAlignment = buttonsAlignment;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const ENTRY_DIALOG_CONFIG = new InjectionToken('ENTRY_DIALOG_CONFIG', {
|
|
18
|
+
providedIn: 'root',
|
|
19
|
+
factory: () => new EntryDialogConfig()
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
class EntryDialogComponent {
|
|
23
|
+
constructor(mdDialogRef, config) {
|
|
24
|
+
this.mdDialogRef = mdDialogRef;
|
|
25
|
+
this.config = config;
|
|
26
|
+
this.buttons = {
|
|
27
|
+
buttonsAlignment: this.config.buttonsAlignment,
|
|
28
|
+
confirmButtonText: this.config.confirmButtonText,
|
|
29
|
+
cancelButtonText: this.config.cancelButtonText,
|
|
30
|
+
visible: true
|
|
31
|
+
};
|
|
32
|
+
this.disableConfirm = false;
|
|
33
|
+
this.confirm = () => of(true);
|
|
34
|
+
this.cancel = () => this.close(false);
|
|
35
|
+
this.onEsc = () => this.cancel();
|
|
36
|
+
this.onSubmit = () => {
|
|
37
|
+
this.confirm().subscribe({
|
|
38
|
+
next: closeDialog => {
|
|
39
|
+
if (closeDialog) {
|
|
40
|
+
this.close(closeDialog);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
this.close = (value = true) => this.mdDialogRef.close(value);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
EntryDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
EntryDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryDialogComponent, selector: "entry-dialog", inputs: { title: "title", buttons: "buttons", disableConfirm: "disableConfirm", buttonsTemplate: "buttonsTemplate", confirm: "confirm", cancel: "cancel" }, host: { listeners: { "keydown.esc": "onEsc()" } }, ngImport: i0, template: "<div class=\"dialog-form\">\n <div class=\"dialog-header\">\n <h1 class=\"dialog-title\">\n {{ title }}\n </h1>\n\n <button type=\"button\" class=\"dialog-close-button\" (click)=\"cancel()\">\n <span class=\"icon-close dialog-close-icon\"></span>\n </button>\n </div>\n\n <mat-dialog-content\n class=\"dialog-content\"\n [ngClass]=\"{'with-actions': buttons.visible}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <ng-template [ngIf]=\"buttonsTemplate\" [ngIfElse]=\"defaultButtonsTemplate\">\n <ng-template [ngTemplateOutlet]=\"buttonsTemplate\"></ng-template>\n </ng-template>\n\n <ng-template #defaultButtonsTemplate>\n <div *ngIf=\"buttons.visible\" class=\"dialog-footer {{ buttons.buttonsAlignment }}\">\n <button\n type=\"button\"\n class=\"button button-accent dialog-footer-button\"\n cdkFocusInitial\n (click)=\"onSubmit()\">{{buttons.confirmButtonText}}</button>\n <button\n type=\"button\"\n class=\"button button-primary dialog-footer-button\"\n *ngIf=\"buttons.cancelButtonText !== ''\"\n (click)=\"cancel()\">{{buttons.cancelButtonText}}</button>\n </div>\n </ng-template>\n</div>", styles: [".align-center{margin:auto}\n"], directives: [{ type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{ selector: 'entry-dialog', template: "<div class=\"dialog-form\">\n <div class=\"dialog-header\">\n <h1 class=\"dialog-title\">\n {{ title }}\n </h1>\n\n <button type=\"button\" class=\"dialog-close-button\" (click)=\"cancel()\">\n <span class=\"icon-close dialog-close-icon\"></span>\n </button>\n </div>\n\n <mat-dialog-content\n class=\"dialog-content\"\n [ngClass]=\"{'with-actions': buttons.visible}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <ng-template [ngIf]=\"buttonsTemplate\" [ngIfElse]=\"defaultButtonsTemplate\">\n <ng-template [ngTemplateOutlet]=\"buttonsTemplate\"></ng-template>\n </ng-template>\n\n <ng-template #defaultButtonsTemplate>\n <div *ngIf=\"buttons.visible\" class=\"dialog-footer {{ buttons.buttonsAlignment }}\">\n <button\n type=\"button\"\n class=\"button button-accent dialog-footer-button\"\n cdkFocusInitial\n (click)=\"onSubmit()\">{{buttons.confirmButtonText}}</button>\n <button\n type=\"button\"\n class=\"button button-primary dialog-footer-button\"\n *ngIf=\"buttons.cancelButtonText !== ''\"\n (click)=\"cancel()\">{{buttons.cancelButtonText}}</button>\n </div>\n </ng-template>\n</div>", styles: [".align-center{margin:auto}\n"] }]
|
|
53
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
54
|
+
type: Inject,
|
|
55
|
+
args: [ENTRY_DIALOG_CONFIG]
|
|
56
|
+
}] }]; }, propDecorators: { title: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], buttons: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], disableConfirm: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], buttonsTemplate: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], confirm: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], cancel: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], onEsc: [{
|
|
69
|
+
type: HostListener,
|
|
70
|
+
args: ['keydown.esc']
|
|
71
|
+
}] } });
|
|
72
|
+
|
|
73
|
+
class EntryAlertDialogComponent extends EntryDialogComponent {
|
|
74
|
+
constructor(mdDialogRef, config, data) {
|
|
75
|
+
super(mdDialogRef, config);
|
|
76
|
+
this.mdDialogRef = mdDialogRef;
|
|
77
|
+
this.config = config;
|
|
78
|
+
this.data = data;
|
|
79
|
+
this.buttons = {
|
|
80
|
+
confirmButtonText: this.data.confirmText ?? this.config.confirmButtonText,
|
|
81
|
+
cancelButtonText: '',
|
|
82
|
+
buttonsAlignment: 'align-center',
|
|
83
|
+
visible: true
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
EntryAlertDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryAlertDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
EntryAlertDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryAlertDialogComponent, selector: "entry-alert-dialog", usesInheritance: true, ngImport: i0, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""], components: [{ type: EntryDialogComponent, selector: "entry-dialog", inputs: ["title", "buttons", "disableConfirm", "buttonsTemplate", "confirm", "cancel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryAlertDialogComponent, decorators: [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{ selector: 'entry-alert-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""] }]
|
|
92
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
93
|
+
type: Inject,
|
|
94
|
+
args: [ENTRY_DIALOG_CONFIG]
|
|
95
|
+
}] }, { type: undefined, decorators: [{
|
|
96
|
+
type: Inject,
|
|
97
|
+
args: [MAT_DIALOG_DATA]
|
|
98
|
+
}] }]; } });
|
|
99
|
+
|
|
100
|
+
class EntryConfirmDialogComponent extends EntryDialogComponent {
|
|
101
|
+
constructor(mdDialogRef, config, data) {
|
|
102
|
+
super(mdDialogRef, config);
|
|
103
|
+
this.mdDialogRef = mdDialogRef;
|
|
104
|
+
this.config = config;
|
|
105
|
+
this.data = data;
|
|
106
|
+
this.buttons = {
|
|
107
|
+
confirmButtonText: this.data.confirmText ?? this.config.confirmButtonText,
|
|
108
|
+
cancelButtonText: this.data.cancelText ?? this.config.cancelButtonText,
|
|
109
|
+
buttonsAlignment: 'align-right',
|
|
110
|
+
visible: true
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
EntryConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
115
|
+
EntryConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryConfirmDialogComponent, selector: "entry-confirm-dialog", usesInheritance: true, ngImport: i0, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""], components: [{ type: EntryDialogComponent, selector: "entry-dialog", inputs: ["title", "buttons", "disableConfirm", "buttonsTemplate", "confirm", "cancel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryConfirmDialogComponent, decorators: [{
|
|
117
|
+
type: Component,
|
|
118
|
+
args: [{ selector: 'entry-confirm-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>", styles: [""] }]
|
|
119
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
120
|
+
type: Inject,
|
|
121
|
+
args: [ENTRY_DIALOG_CONFIG]
|
|
122
|
+
}] }, { type: undefined, decorators: [{
|
|
123
|
+
type: Inject,
|
|
124
|
+
args: [MAT_DIALOG_DATA]
|
|
125
|
+
}] }]; } });
|
|
126
|
+
|
|
127
|
+
class EntryDialogService {
|
|
128
|
+
constructor(matDialog) {
|
|
129
|
+
this.matDialog = matDialog;
|
|
130
|
+
this.openAlert = (data) => this.open(EntryAlertDialogComponent, data);
|
|
131
|
+
this.openConfirm = (data) => this.open(EntryConfirmDialogComponent, data);
|
|
132
|
+
this.open = (component, data = undefined, cssClass = '') => {
|
|
133
|
+
const configuration = new MatDialogConfig();
|
|
134
|
+
configuration.data = data;
|
|
135
|
+
this.setPanelClassFor(configuration, cssClass);
|
|
136
|
+
return this.matDialog
|
|
137
|
+
.open(component, configuration)
|
|
138
|
+
.afterClosed()
|
|
139
|
+
.pipe(take(1));
|
|
140
|
+
};
|
|
141
|
+
this.close = () => this.matDialog.closeAll();
|
|
142
|
+
this.setPanelClassFor = (configuration, cssClass) => {
|
|
143
|
+
configuration.panelClass = ['dialog-container', cssClass];
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
EntryDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogService, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
148
|
+
EntryDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogService, providedIn: 'root' });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogService, decorators: [{
|
|
150
|
+
type: Injectable,
|
|
151
|
+
args: [{
|
|
152
|
+
providedIn: 'root'
|
|
153
|
+
}]
|
|
154
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }]; } });
|
|
155
|
+
|
|
156
|
+
class EntryDialogModule {
|
|
157
|
+
}
|
|
158
|
+
EntryDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
159
|
+
EntryDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, declarations: [EntryDialogComponent,
|
|
160
|
+
EntryAlertDialogComponent,
|
|
161
|
+
EntryConfirmDialogComponent], imports: [CommonModule,
|
|
162
|
+
MatDialogModule], exports: [EntryDialogComponent,
|
|
163
|
+
EntryAlertDialogComponent,
|
|
164
|
+
EntryConfirmDialogComponent] });
|
|
165
|
+
EntryDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, imports: [[
|
|
166
|
+
CommonModule,
|
|
167
|
+
MatDialogModule
|
|
168
|
+
]] });
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryDialogModule, decorators: [{
|
|
170
|
+
type: NgModule,
|
|
171
|
+
args: [{
|
|
172
|
+
declarations: [
|
|
173
|
+
EntryDialogComponent,
|
|
174
|
+
EntryAlertDialogComponent,
|
|
175
|
+
EntryConfirmDialogComponent
|
|
176
|
+
],
|
|
177
|
+
imports: [
|
|
178
|
+
CommonModule,
|
|
179
|
+
MatDialogModule
|
|
180
|
+
],
|
|
181
|
+
exports: [
|
|
182
|
+
EntryDialogComponent,
|
|
183
|
+
EntryAlertDialogComponent,
|
|
184
|
+
EntryConfirmDialogComponent
|
|
185
|
+
]
|
|
186
|
+
}]
|
|
187
|
+
}] });
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Generated bundle index. Do not edit.
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
export { ENTRY_DIALOG_CONFIG, EntryAlertDialogComponent, EntryConfirmDialogComponent, EntryDialogComponent, EntryDialogConfig, EntryDialogModule, EntryDialogService };
|
|
194
|
+
//# sourceMappingURL=enigmatry-entry-components-entry-dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-entry-dialog.mjs","sources":["../../../../projects/entry-components/entry-dialog/entry-dialog-config.model.ts","../../../../projects/entry-components/entry-dialog/dialogs/entry-dialog.component.ts","../../../../projects/entry-components/entry-dialog/dialogs/entry-dialog.component.html","../../../../projects/entry-components/entry-dialog/dialogs/alert/entry-alert-dialog.component.ts","../../../../projects/entry-components/entry-dialog/dialogs/alert/entry-alert-dialog.component.html","../../../../projects/entry-components/entry-dialog/dialogs/confirm/entry-confirm-dialog.component.ts","../../../../projects/entry-components/entry-dialog/dialogs/confirm/entry-confirm-dialog.component.html","../../../../projects/entry-components/entry-dialog/entry-dialog.service.ts","../../../../projects/entry-components/entry-dialog/entry-dialog.module.ts","../../../../projects/entry-components/entry-dialog/enigmatry-entry-components-entry-dialog.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport class EntryDialogConfig {\n constructor(\n public confirmButtonText: string = 'Ok',\n public cancelButtonText: string = 'Cancel',\n public buttonsAlignment: 'align-right' | 'align-center' | '' = 'align-right'\n ) { }\n}\nexport const ENTRY_DIALOG_CONFIG = new InjectionToken<EntryDialogConfig>(\n 'ENTRY_DIALOG_CONFIG',\n {\n providedIn: 'root',\n factory: () => new EntryDialogConfig()\n }\n);\n","import { Component, HostListener, Inject, Input, TemplateRef } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { Observable, of } from 'rxjs';\nimport { IEntryDialogButtonsConfig } from '../entry-dialog-buttons-config.interface';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../entry-dialog-config.model';\n\n@Component({\n selector: 'entry-dialog',\n templateUrl: './entry-dialog.component.html',\n styleUrls: ['./entry-dialog.component.scss']\n})\nexport class EntryDialogComponent {\n\n @Input() title: string;\n @Input() buttons: IEntryDialogButtonsConfig = {\n buttonsAlignment: this.config.buttonsAlignment,\n confirmButtonText: this.config.confirmButtonText,\n cancelButtonText: this.config.cancelButtonText,\n visible: true\n };\n\n @Input() disableConfirm = false;\n @Input() buttonsTemplate: TemplateRef<any> | null | undefined;\n\n constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig) { }\n\n @Input() confirm: () => Observable<unknown> = () => of(true);\n @Input() cancel = () => this.close(false);\n\n @HostListener('keydown.esc')\n readonly onEsc = () => this.cancel();\n\n readonly onSubmit = () => {\n this.confirm().subscribe({\n next: closeDialog => {\n if (closeDialog) {\n this.close(closeDialog);\n }\n }\n });\n };\n\n readonly close = (value: unknown = true) => this.mdDialogRef.close(value);\n}\n","<div class=\"dialog-form\">\n <div class=\"dialog-header\">\n <h1 class=\"dialog-title\">\n {{ title }}\n </h1>\n\n <button type=\"button\" class=\"dialog-close-button\" (click)=\"cancel()\">\n <span class=\"icon-close dialog-close-icon\"></span>\n </button>\n </div>\n\n <mat-dialog-content\n class=\"dialog-content\"\n [ngClass]=\"{'with-actions': buttons.visible}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <ng-template [ngIf]=\"buttonsTemplate\" [ngIfElse]=\"defaultButtonsTemplate\">\n <ng-template [ngTemplateOutlet]=\"buttonsTemplate\"></ng-template>\n </ng-template>\n\n <ng-template #defaultButtonsTemplate>\n <div *ngIf=\"buttons.visible\" class=\"dialog-footer {{ buttons.buttonsAlignment }}\">\n <button\n type=\"button\"\n class=\"button button-accent dialog-footer-button\"\n cdkFocusInitial\n (click)=\"onSubmit()\">{{buttons.confirmButtonText}}</button>\n <button\n type=\"button\"\n class=\"button button-primary dialog-footer-button\"\n *ngIf=\"buttons.cancelButtonText !== ''\"\n (click)=\"cancel()\">{{buttons.cancelButtonText}}</button>\n </div>\n </ng-template>\n</div>","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { EntryDialogComponent } from '../entry-dialog.component';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { IEntryAlertDialogData } from './entry-alert-dialog-data.interface';\nimport { IEntryDialogButtonsConfig } from '../../entry-dialog-buttons-config.interface';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../../entry-dialog-config.model';\n\n@Component({\n selector: 'entry-alert-dialog',\n templateUrl: './entry-alert-dialog.component.html',\n styleUrls: ['./entry-alert-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryAlertDialogComponent extends EntryDialogComponent {\n readonly buttons: IEntryDialogButtonsConfig = {\n confirmButtonText: this.data.confirmText ?? this.config.confirmButtonText,\n cancelButtonText: '',\n buttonsAlignment: 'align-center',\n visible: true\n };\n\n constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) public data: IEntryAlertDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { IEntryDialogButtonsConfig } from '../../entry-dialog-buttons-config.interface';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { EntryDialogComponent } from '../entry-dialog.component';\nimport { IEntryConfirmDialogData } from './entry-confirm-dialog-data.interface';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../../entry-dialog-config.model';\n\n@Component({\n selector: 'entry-confirm-dialog',\n templateUrl: './entry-confirm-dialog.component.html',\n styleUrls: ['./entry-confirm-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryConfirmDialogComponent extends EntryDialogComponent {\n readonly buttons: IEntryDialogButtonsConfig = {\n confirmButtonText: this.data.confirmText ?? this.config.confirmButtonText,\n cancelButtonText: this.data.cancelText ?? this.config.cancelButtonText,\n buttonsAlignment: 'align-right',\n visible: true\n };\n\n constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) readonly data: IEntryConfirmDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog [title]='data.title' [buttons]=\"buttons\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { Injectable, Type } from '@angular/core';\nimport { MatDialog, MatDialogConfig } from '@angular/material/dialog';\nimport { EntryDialogComponent } from './dialogs/entry-dialog.component';\nimport { take } from 'rxjs/operators';\nimport { IEntryAlertDialogData } from './dialogs/alert/entry-alert-dialog-data.interface';\nimport { EntryAlertDialogComponent } from './dialogs/alert/entry-alert-dialog.component';\nimport { Observable } from 'rxjs';\nimport { EntryConfirmDialogComponent } from './dialogs/confirm/entry-confirm-dialog.component';\nimport { IEntryConfirmDialogData } from './dialogs/confirm/entry-confirm-dialog-data.interface';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class EntryDialogService {\n constructor(private readonly matDialog: MatDialog) { }\n\n openAlert = (data: IEntryAlertDialogData): Observable<any> =>\n this.open(EntryAlertDialogComponent, data);\n\n readonly openConfirm = (data: IEntryConfirmDialogData): Observable<boolean | undefined> =>\n this.open(EntryConfirmDialogComponent, data);\n\n readonly open = (component: Type<EntryDialogComponent>, data: unknown = undefined, cssClass: string = '') => {\n const configuration = new MatDialogConfig<unknown>();\n configuration.data = data;\n this.setPanelClassFor(configuration, cssClass);\n\n return this.matDialog\n .open(component, configuration)\n .afterClosed()\n .pipe(take(1));\n };\n\n readonly close = (): void => this.matDialog.closeAll();\n\n private setPanelClassFor = <T>(configuration: MatDialogConfig<T>, cssClass: string) => {\n configuration.panelClass = ['dialog-container', cssClass];\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { EntryAlertDialogComponent } from './dialogs/alert/entry-alert-dialog.component';\nimport { EntryConfirmDialogComponent } from './dialogs/confirm/entry-confirm-dialog.component';\nimport { EntryDialogComponent } from './dialogs/entry-dialog.component';\n\n@NgModule({\n declarations: [\n EntryDialogComponent,\n EntryAlertDialogComponent,\n EntryConfirmDialogComponent\n ],\n imports: [\n CommonModule,\n MatDialogModule\n ],\n exports: [\n EntryDialogComponent,\n EntryAlertDialogComponent,\n EntryConfirmDialogComponent\n ]\n})\nexport class EntryDialogModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.EntryDialogComponent"],"mappings":";;;;;;;;;MAEa,iBAAiB,CAAA;AAC1B,IAAA,WAAA,CACW,oBAA4B,IAAI,EAChC,mBAA2B,QAAQ,EACnC,mBAAwD,aAAa,EAAA;QAFrE,IAAiB,CAAA,iBA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,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,iBAd1B,oBAAoB;QACpB,yBAAyB;AACzB,QAAA,2BAA2B,aAG3B,YAAY;AACZ,QAAA,eAAe,aAGf,oBAAoB;QACpB,yBAAyB;QACzB,2BAA2B,CAAA,EAAA,CAAA,CAAA;AAGlB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAVnB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,eAAe;AAChB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAOU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAhB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,yBAAyB;wBACzB,2BAA2B;AAC5B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,yBAAyB;wBACzB,2BAA2B;AAC5B,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class EntryHeaderComponent {
|
|
6
|
+
}
|
|
7
|
+
EntryHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
EntryHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EntryHeaderComponent, selector: "entry-header", inputs: { title: "title" }, ngImport: i0, template: "<header class=\"entry-header\">\n <div class=\"container\">\n <div class=\"space-between\">\n <h1 class=\"header-item\">{{title}}</h1>\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n <div class=\"row content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n </div>\n</header>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{ selector: 'entry-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<header class=\"entry-header\">\n <div class=\"container\">\n <div class=\"space-between\">\n <h1 class=\"header-item\">{{title}}</h1>\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n <div class=\"row content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n </div>\n</header>", styles: [""] }]
|
|
12
|
+
}], propDecorators: { title: [{
|
|
13
|
+
type: Input
|
|
14
|
+
}] } });
|
|
15
|
+
|
|
16
|
+
class EntryHeaderModule {
|
|
17
|
+
}
|
|
18
|
+
EntryHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
+
EntryHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, declarations: [EntryHeaderComponent], imports: [CommonModule], exports: [EntryHeaderComponent] });
|
|
20
|
+
EntryHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, imports: [[
|
|
21
|
+
CommonModule
|
|
22
|
+
]] });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EntryHeaderModule, decorators: [{
|
|
24
|
+
type: NgModule,
|
|
25
|
+
args: [{
|
|
26
|
+
declarations: [
|
|
27
|
+
EntryHeaderComponent
|
|
28
|
+
],
|
|
29
|
+
imports: [
|
|
30
|
+
CommonModule
|
|
31
|
+
],
|
|
32
|
+
exports: [
|
|
33
|
+
EntryHeaderComponent
|
|
34
|
+
]
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { EntryHeaderComponent, EntryHeaderModule };
|
|
43
|
+
//# sourceMappingURL=enigmatry-entry-components-entry-header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-entry-header.mjs","sources":["../../../../projects/entry-components/entry-header/entry-header.component.ts","../../../../projects/entry-components/entry-header/entry-header.component.html","../../../../projects/entry-components/entry-header/entry-header.module.ts","../../../../projects/entry-components/entry-header/enigmatry-entry-components-entry-header.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'entry-header',\n templateUrl: './entry-header.component.html',\n styleUrls: ['./entry-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryHeaderComponent {\n @Input() title: string;\n}\n","<header class=\"entry-header\">\n <div class=\"container\">\n <div class=\"space-between\">\n <h1 class=\"header-item\">{{title}}</h1>\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n <div class=\"row content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n </div>\n</header>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EntryHeaderComponent } from './entry-header.component';\n\n@NgModule({\n declarations: [\n EntryHeaderComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n EntryHeaderComponent\n ]\n})\nexport class EntryHeaderModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAQa,oBAAoB,CAAA;;kHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,gFCRjC,2UAUS,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;4FDFI,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,SAAS;+BACE,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2UAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;8BAGtC,KAAK,EAAA,CAAA;sBAAb,KAAK;;;MEMK,iBAAiB,CAAA;;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAT1B,YAAA,EAAA,CAAA,oBAAoB,CAGpB,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAGX,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QA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