@enigmatry/entry-components 1.15.1-preview.8 → 15.0.0-preview
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 +2 -1
- package/assets/fonts/Montserrat/Montserrat-bold.eot +0 -0
- package/assets/fonts/Montserrat/Montserrat-bold.ttf +0 -0
- package/assets/fonts/Montserrat/Montserrat-bold.woff +0 -0
- package/assets/fonts/Montserrat/Montserrat-bold.woff2 +0 -0
- package/assets/fonts/OpenSans/OpenSans-bold.eot +0 -0
- package/assets/fonts/OpenSans/OpenSans-bold.ttf +0 -0
- package/assets/fonts/OpenSans/OpenSans-bold.woff +0 -0
- package/assets/fonts/OpenSans/OpenSans-bold.woff2 +0 -0
- package/assets/fonts/OpenSans/OpenSans-normal.eot +0 -0
- package/assets/fonts/OpenSans/OpenSans-normal.ttf +0 -0
- package/assets/fonts/OpenSans/OpenSans-normal.woff +0 -0
- package/assets/fonts/OpenSans/OpenSans-normal.woff2 +0 -0
- package/assets/fonts/Roboto/Roboto-bold.woff2 +0 -0
- package/assets/fonts/Roboto/Roboto-normal.woff2 +0 -0
- package/button/README.md +47 -0
- package/button/entry-button-config.d.ts +26 -0
- package/button/entry-button.directive.d.ts +18 -0
- package/button/entry-button.module.d.ts +9 -0
- package/{header → button}/index.d.ts +1 -1
- package/button/public-api.d.ts +3 -0
- package/dialog/README.md +2 -2
- package/dialog/entry-dialog-buttons-alignment.type.d.ts +1 -1
- package/dialog/entry-dialog-config.model.d.ts +1 -1
- package/dialog/entry-dialog.module.d.ts +4 -1
- package/esm2020/{header/enigmatry-entry-components-header.mjs → button/enigmatry-entry-components-button.mjs} +1 -1
- package/esm2020/button/entry-button-config.mjs +22 -0
- package/esm2020/button/entry-button.directive.mjs +56 -0
- package/esm2020/button/entry-button.module.mjs +28 -0
- package/esm2020/button/public-api.mjs +4 -0
- package/esm2020/dialog/dialogs/entry-dialog.component.mjs +8 -5
- package/esm2020/dialog/entry-dialog-buttons-alignment.type.mjs +1 -2
- package/esm2020/dialog/entry-dialog-config.model.mjs +3 -3
- package/esm2020/dialog/entry-dialog.module.mjs +16 -4
- package/esm2020/file-input/enigmatry-entry-components-file-input.mjs +5 -0
- package/esm2020/file-input/entry-file-input.component.mjs +197 -0
- package/esm2020/file-input/entry-file-input.module.mjs +40 -0
- package/esm2020/file-input/public-api.mjs +3 -0
- package/esm2020/permissions/enigmatry-entry-components-permissions.mjs +5 -0
- package/esm2020/permissions/permission-type.mjs +2 -0
- package/esm2020/permissions/permission.directive.mjs +35 -0
- package/esm2020/permissions/permission.guard.mjs +14 -0
- package/esm2020/permissions/permission.module.mjs +29 -0
- package/esm2020/permissions/permission.pipe.mjs +20 -0
- package/esm2020/permissions/permission.service.mjs +3 -0
- package/esm2020/permissions/public-api.mjs +6 -0
- package/esm2020/public-api.mjs +4 -3
- package/esm2020/search-filter/entry-search-filter.component.mjs +8 -6
- package/esm2020/search-filter/entry-search-filter.module.mjs +12 -4
- package/esm2020/search-filter/search-filter-input/search-filter-input.component.mjs +9 -4
- package/esm2020/table/components/entry-cell/entry-cell.component.mjs +23 -0
- package/esm2020/table/components/entry-cell-context-menu/entry-cell-context-menu.component.mjs +33 -0
- package/esm2020/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.mjs +25 -0
- package/esm2020/table/components/entry-table/entry-table.component.mjs +248 -0
- package/esm2020/table/components/index.mjs +5 -0
- package/esm2020/table/enigmatry-entry-components-table.mjs +5 -0
- package/esm2020/table/entry-table.module.mjs +84 -0
- package/esm2020/table/interfaces/cell-template.mjs +2 -0
- package/esm2020/table/interfaces/column-def.mjs +2 -0
- package/esm2020/table/interfaces/column-sort-prop.mjs +2 -0
- package/esm2020/table/interfaces/column-type-parameter.mjs +2 -0
- package/esm2020/table/interfaces/column-type.mjs +2 -0
- package/esm2020/table/interfaces/context-menu-item.mjs +2 -0
- package/esm2020/table/interfaces/entry-table-config.mjs +18 -0
- package/esm2020/table/interfaces/index.mjs +13 -0
- package/esm2020/table/interfaces/paged-query.mjs +34 -0
- package/esm2020/table/interfaces/pagination.mjs +2 -0
- package/esm2020/table/interfaces/row-class-formatter.mjs +2 -0
- package/esm2020/table/interfaces/row-context-menu-formatter.mjs +2 -0
- package/esm2020/table/interfaces/row-selection-formatter.mjs +2 -0
- package/esm2020/table/public-api.mjs +4 -0
- package/esm2020/validation/entry-form-errors.component.mjs +7 -3
- package/fesm2015/enigmatry-entry-components-button.mjs +110 -0
- package/fesm2015/enigmatry-entry-components-button.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components-dialog.mjs +22 -7
- package/fesm2015/enigmatry-entry-components-dialog.mjs.map +1 -1
- package/fesm2015/enigmatry-entry-components-file-input.mjs +237 -0
- package/fesm2015/enigmatry-entry-components-file-input.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components-permissions.mjs +98 -0
- package/fesm2015/enigmatry-entry-components-permissions.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components-search-filter.mjs +24 -9
- package/fesm2015/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2015/enigmatry-entry-components-table.mjs +459 -0
- package/fesm2015/enigmatry-entry-components-table.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components-validation.mjs +6 -2
- package/fesm2015/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2015/enigmatry-entry-components.mjs +3 -2
- package/fesm2015/enigmatry-entry-components.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components-button.mjs +107 -0
- package/fesm2020/enigmatry-entry-components-button.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components-dialog.mjs +22 -7
- package/fesm2020/enigmatry-entry-components-dialog.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components-file-input.mjs +240 -0
- package/fesm2020/enigmatry-entry-components-file-input.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components-permissions.mjs +97 -0
- package/fesm2020/enigmatry-entry-components-permissions.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components-search-filter.mjs +24 -9
- package/fesm2020/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components-table.mjs +450 -0
- package/fesm2020/enigmatry-entry-components-table.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components-validation.mjs +6 -2
- package/fesm2020/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components.mjs +3 -2
- package/fesm2020/enigmatry-entry-components.mjs.map +1 -1
- package/file-input/README.md +71 -0
- package/file-input/entry-file-input.component.d.ts +74 -0
- package/file-input/entry-file-input.module.d.ts +12 -0
- package/file-input/index.d.ts +5 -0
- package/file-input/public-api.d.ts +2 -0
- package/package.json +31 -15
- package/permissions/README.md +68 -0
- package/permissions/index.d.ts +5 -0
- package/permissions/permission-type.d.ts +3 -0
- package/permissions/permission.directive.d.ts +11 -0
- package/permissions/permission.guard.d.ts +2 -0
- package/permissions/permission.module.d.ts +9 -0
- package/permissions/permission.pipe.d.ts +11 -0
- package/permissions/permission.service.d.ts +4 -0
- package/permissions/public-api.d.ts +5 -0
- package/public-api.d.ts +3 -2
- package/search-filter/entry-search-filter.module.d.ts +4 -2
- package/search-filter/search-filter-input/search-filter-input.component.d.ts +4 -2
- package/styles/_generator.scss +15 -10
- package/styles/modules/_default-theme.scss +36 -59
- package/styles/modules/components/buttons/_generator.scss +8 -0
- package/styles/modules/components/dialogs/_generator.scss +8 -3
- package/styles/modules/components/forms/_generator.scss +12 -6
- package/styles/modules/components/inputs/_generator.scss +15 -0
- package/styles/modules/components/search-filter/_generator.scss +15 -0
- package/styles/modules/components/tables/_cells.scss +11 -8
- package/styles/modules/components/tables/_no-result.scss +1 -3
- package/styles/modules/components/tables/_rows.scss +10 -40
- package/styles/modules/components/tables/_sorting.scss +2 -9
- package/styles/modules/typography/_fonts.scss +35 -42
- package/styles/modules/vendors/angular-material/_generator.scss +46 -0
- package/styles/modules/vendors/angular-material/_palette-generator.scss +32 -0
- package/styles/modules/vendors/angular-material/_typography-generator.scss +101 -0
- package/styles/partials/core/components/_index.scss +3 -3
- package/styles/partials/core/components/dialogs/_general.scss +10 -64
- package/styles/partials/core/components/forms/_general.scss +9 -13
- package/styles/partials/core/components/search-filter/_general.scss +9 -0
- package/styles/partials/core/components/tables/_general.scss +17 -0
- package/styles/partials/generator-test.scss +38 -0
- package/table/README.md +76 -0
- package/table/components/entry-cell/entry-cell.component.d.ts +10 -0
- package/table/components/entry-cell-context-menu/entry-cell-context-menu.component.d.ts +14 -0
- package/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.d.ts +10 -0
- package/table/components/entry-table/entry-table.component.d.ts +81 -0
- package/table/components/index.d.ts +4 -0
- package/table/entry-table.module.d.ts +20 -0
- package/{toolbar → table}/index.d.ts +1 -1
- package/table/interfaces/cell-template.d.ts +4 -0
- package/table/interfaces/column-def.d.ts +20 -0
- package/table/interfaces/column-sort-prop.d.ts +5 -0
- package/table/interfaces/column-type-parameter.d.ts +9 -0
- package/table/interfaces/column-type.d.ts +1 -0
- package/table/interfaces/context-menu-item.d.ts +6 -0
- package/table/interfaces/entry-table-config.d.ts +11 -0
- package/table/interfaces/index.d.ts +12 -0
- package/table/interfaces/paged-query.d.ts +14 -0
- package/table/interfaces/pagination.d.ts +19 -0
- package/table/interfaces/row-class-formatter.d.ts +3 -0
- package/table/interfaces/row-context-menu-formatter.d.ts +4 -0
- package/table/interfaces/row-selection-formatter.d.ts +4 -0
- package/table/public-api.d.ts +3 -0
- package/esm2020/header/entry-header.component.mjs +0 -13
- package/esm2020/header/entry-header.module.mjs +0 -24
- package/esm2020/header/public-api.mjs +0 -3
- package/esm2020/toolbar/enigmatry-entry-components-toolbar.mjs +0 -5
- package/esm2020/toolbar/entry-toolbar.component.mjs +0 -43
- package/esm2020/toolbar/entry-toolbar.module.mjs +0 -24
- package/esm2020/toolbar/public-api.mjs +0 -3
- package/fesm2015/enigmatry-entry-components-header.mjs +0 -41
- package/fesm2015/enigmatry-entry-components-header.mjs.map +0 -1
- package/fesm2015/enigmatry-entry-components-toolbar.mjs +0 -71
- package/fesm2015/enigmatry-entry-components-toolbar.mjs.map +0 -1
- package/fesm2020/enigmatry-entry-components-header.mjs +0 -41
- package/fesm2020/enigmatry-entry-components-header.mjs.map +0 -1
- package/fesm2020/enigmatry-entry-components-toolbar.mjs +0 -71
- package/fesm2020/enigmatry-entry-components-toolbar.mjs.map +0 -1
- package/header/README.md +0 -41
- package/header/entry-header.component.d.ts +0 -6
- package/header/entry-header.module.d.ts +0 -8
- package/header/public-api.d.ts +0 -2
- package/styles/modules/components/forms/outlines/_field-outlines.scss +0 -45
- package/styles/modules/components/forms/outlines/_form-fields.scss +0 -26
- package/styles/modules/components/forms/outlines/_general.scss +0 -9
- package/styles/modules/components/forms/selectors/_checkboxes.scss +0 -55
- package/styles/modules/components/forms/selectors/_radio-buttons.scss +0 -39
- package/styles/modules/components/headers/_generator.scss +0 -12
- package/styles/modules/elements/_generator.scss +0 -20
- package/styles/modules/elements/anchors/_generator.scss +0 -16
- package/styles/modules/elements/buttons/_default.scss +0 -12
- package/styles/modules/elements/buttons/_generator.scss +0 -45
- package/styles/modules/states/_hover.scss +0 -18
- package/styles/partials/core/components/headers/_general.scss +0 -7
- package/styles/partials/core/components/tables/_action-cells.scss +0 -26
- package/styles/partials/core/components/tables/_cells.scss +0 -39
- package/styles/partials/core/components/tables/_index.scss +0 -5
- package/styles/partials/core/components/tables/_layout.scss +0 -47
- package/styles/partials/core/components/tables/_rows.scss +0 -13
- package/styles/partials/core/components/tables/_sorting.scss +0 -8
- package/styles/partials/test.scss +0 -35
- package/toolbar/README.md +0 -39
- package/toolbar/entry-toolbar.component.d.ts +0 -28
- package/toolbar/entry-toolbar.module.d.ts +0 -8
- package/toolbar/public-api.d.ts +0 -2
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { MatTableModule } from '@angular/material/table';
|
|
5
|
+
import { MatSortModule } from '@angular/material/sort';
|
|
6
|
+
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
7
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
8
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
10
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
11
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
+
import { EntryTableComponent } from './components/entry-table/entry-table.component';
|
|
13
|
+
import { EntryCellComponent } from './components/entry-cell/entry-cell.component';
|
|
14
|
+
import { EntryCellContextMenuComponent } from './components/entry-cell-context-menu/entry-cell-context-menu.component';
|
|
15
|
+
import { EntryCellFormattedValueComponent } from './components/entry-cell-formatted-value/entry-cell-formatted-value.component';
|
|
16
|
+
import { DEFAULT_PERCENTAGE_MULTIPLIER } from './interfaces';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
export class EntryTableModule {
|
|
19
|
+
}
|
|
20
|
+
EntryTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
21
|
+
EntryTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, declarations: [EntryTableComponent,
|
|
22
|
+
EntryCellComponent,
|
|
23
|
+
EntryCellContextMenuComponent,
|
|
24
|
+
EntryCellFormattedValueComponent], imports: [CommonModule,
|
|
25
|
+
FormsModule,
|
|
26
|
+
MatTableModule,
|
|
27
|
+
MatSortModule,
|
|
28
|
+
MatPaginatorModule,
|
|
29
|
+
MatCheckboxModule,
|
|
30
|
+
MatIconModule,
|
|
31
|
+
MatMenuModule,
|
|
32
|
+
MatRadioModule,
|
|
33
|
+
CommonModule,
|
|
34
|
+
MatButtonModule], exports: [EntryTableComponent,
|
|
35
|
+
EntryCellComponent,
|
|
36
|
+
EntryCellContextMenuComponent,
|
|
37
|
+
EntryCellFormattedValueComponent] });
|
|
38
|
+
EntryTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, providers: [
|
|
39
|
+
{ provide: DEFAULT_PERCENTAGE_MULTIPLIER, useValue: 1 }
|
|
40
|
+
], imports: [CommonModule,
|
|
41
|
+
FormsModule,
|
|
42
|
+
MatTableModule,
|
|
43
|
+
MatSortModule,
|
|
44
|
+
MatPaginatorModule,
|
|
45
|
+
MatCheckboxModule,
|
|
46
|
+
MatIconModule,
|
|
47
|
+
MatMenuModule,
|
|
48
|
+
MatRadioModule,
|
|
49
|
+
CommonModule,
|
|
50
|
+
MatButtonModule] });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, decorators: [{
|
|
52
|
+
type: NgModule,
|
|
53
|
+
args: [{
|
|
54
|
+
imports: [
|
|
55
|
+
CommonModule,
|
|
56
|
+
FormsModule,
|
|
57
|
+
MatTableModule,
|
|
58
|
+
MatSortModule,
|
|
59
|
+
MatPaginatorModule,
|
|
60
|
+
MatCheckboxModule,
|
|
61
|
+
MatIconModule,
|
|
62
|
+
MatMenuModule,
|
|
63
|
+
MatRadioModule,
|
|
64
|
+
CommonModule,
|
|
65
|
+
MatButtonModule
|
|
66
|
+
],
|
|
67
|
+
declarations: [
|
|
68
|
+
EntryTableComponent,
|
|
69
|
+
EntryCellComponent,
|
|
70
|
+
EntryCellContextMenuComponent,
|
|
71
|
+
EntryCellFormattedValueComponent
|
|
72
|
+
],
|
|
73
|
+
exports: [
|
|
74
|
+
EntryTableComponent,
|
|
75
|
+
EntryCellComponent,
|
|
76
|
+
EntryCellContextMenuComponent,
|
|
77
|
+
EntryCellFormattedValueComponent
|
|
78
|
+
],
|
|
79
|
+
providers: [
|
|
80
|
+
{ provide: DEFAULT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WxsO1xyXG4gIGNsYXNzPzogc3RyaW5nO1xyXG4gIGN1c3RvbVByb3BlcnRpZXM/OiB7IFtrZXk6IHN0cmluZ106IGFueSB9O1xyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLXNvcnQtcHJvcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy90YWJsZS9pbnRlcmZhY2VzL2NvbHVtbi1zb3J0LXByb3AudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5leHBvcnQgaW50ZXJmYWNlIENvbHVtblNvcnRQcm9wIHtcclxuICBpZD86IHN0cmluZztcclxuICBzdGFydD86ICdhc2MnIHwgJ2Rlc2MnO1xyXG4gIGRpc2FibGVDbGVhcj86IGJvb2xlYW47XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLXR5cGUtcGFyYW1ldGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9lbnRyeS1jb21wb25lbnRzL3RhYmxlL2ludGVyZmFjZXMvY29sdW1uLXR5cGUtcGFyYW1ldGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuZXhwb3J0IGludGVyZmFjZSBDb2x1bW5UeXBlUGFyYW1ldGVyIHtcclxuICBuYW1lPzogc3RyaW5nO1xyXG4gIGN1cnJlbmN5Q29kZT86IHN0cmluZztcclxuICBkaXNwbGF5Pzogc3RyaW5nIHwgYm9vbGVhbjtcclxuICBkaWdpdHNJbmZvPzogc3RyaW5nO1xyXG4gIGZvcm1hdD86IHN0cmluZztcclxuICBsb2NhbGU/OiBzdHJpbmc7XHJcbiAgdGltZXpvbmU/OiBzdHJpbmc7XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvdGFibGUvaW50ZXJmYWNlcy9jb2x1bW4tdHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiXHJcbmV4cG9ydCBkZWNsYXJlIHR5cGUgQ29sdW1uVHlwZSA9ICdib29sZWFuJyB8XHJcbiAgJ251bWJlcicgfFxyXG4gICdjdXJyZW5jeScgfFxyXG4gICdwZXJjZW50JyB8XHJcbiAgJ2RhdGUnIHxcclxuICAnbGluayc7XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC1tZW51LWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvdGFibGUvaW50ZXJmYWNlcy9jb250ZXh0LW1lbnUtaXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBDb250ZXh0TWVudUl0ZW0ge1xyXG4gIGlkOiBzdHJpbmc7XHJcbiAgbmFtZTogc3RyaW5nO1xyXG4gIGljb24/OiBzdHJpbmc7XHJcbiAgZGlzYWJsZWQ/OiBib29sZWFuO1xyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export class EntryTableConfig {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.showPaginator = true;
|
|
5
|
+
this.showFirstLastButtons = false;
|
|
6
|
+
this.pageSize = 20;
|
|
7
|
+
this.pageSizeOptions = [20, 50, 100];
|
|
8
|
+
this.hidePageSize = false;
|
|
9
|
+
this.noResultsText = 'No results found';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
;
|
|
13
|
+
export const ENTRY_TABLE_CONFIG = new InjectionToken('ENTRY_TABLE_CONFIG', {
|
|
14
|
+
providedIn: 'root',
|
|
15
|
+
factory: () => new EntryTableConfig()
|
|
16
|
+
});
|
|
17
|
+
export const DEFAULT_PERCENTAGE_MULTIPLIER = new InjectionToken('');
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktdGFibGUtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9lbnRyeS1jb21wb25lbnRzL3RhYmxlL2ludGVyZmFjZXMvZW50cnktdGFibGUtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFL0MsTUFBTSxPQUFPLGdCQUFnQjtJQUE3QjtRQUNTLGtCQUFhLEdBQUcsSUFBSSxDQUFDO1FBQ3JCLHlCQUFvQixHQUFHLEtBQUssQ0FBQztRQUM3QixhQUFRLEdBQUcsRUFBRSxDQUFDO1FBQ2Qsb0JBQWUsR0FBRyxDQUFDLEVBQUUsRUFBRSxFQUFFLEVBQUUsR0FBRyxDQUFDLENBQUM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KTtcblxuXG5leHBvcnQgY29uc3QgREVGQVVMVF9QRVJDRU5UQUdFX01VTFRJUExJRVI6IEluamVjdGlvblRva2VuPG51bWJlcj4gPSBuZXcgSW5qZWN0aW9uVG9rZW48bnVtYmVyPignJyk7XG4iXX0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './pagination';
|
|
2
|
+
export * from './entry-table-config';
|
|
3
|
+
export * from './paged-query';
|
|
4
|
+
export * from './cell-template';
|
|
5
|
+
export * from './column-def';
|
|
6
|
+
export * from './column-sort-prop';
|
|
7
|
+
export * from './column-type-parameter';
|
|
8
|
+
export * from './column-type';
|
|
9
|
+
export * from './context-menu-item';
|
|
10
|
+
export * from './row-class-formatter';
|
|
11
|
+
export * from './row-context-menu-formatter';
|
|
12
|
+
export * from './row-selection-formatter';
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvdGFibGUvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsZUFBZSxDQUFDO0FBRTlCLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuZXhwb3J0ICogZnJvbSAnLi9wYWdpbmF0aW9uJztcclxuZXhwb3J0ICogZnJvbSAnLi9lbnRyeS10YWJsZS1jb25maWcnO1xyXG5leHBvcnQgKiBmcm9tICcuL3BhZ2VkLXF1ZXJ5JztcclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vY2VsbC10ZW1wbGF0ZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vY29sdW1uLWRlZic7XHJcbmV4cG9ydCAqIGZyb20gJy4vY29sdW1uLXNvcnQtcHJvcCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vY29sdW1uLXR5cGUtcGFyYW1ldGVyJztcclxuZXhwb3J0ICogZnJvbSAnLi9jb2x1bW4tdHlwZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vY29udGV4dC1tZW51LWl0ZW0nO1xyXG5leHBvcnQgKiBmcm9tICcuL3Jvdy1jbGFzcy1mb3JtYXR0ZXInO1xyXG5leHBvcnQgKiBmcm9tICcuL3Jvdy1jb250ZXh0LW1lbnUtZm9ybWF0dGVyJztcclxuZXhwb3J0ICogZnJvbSAnLi9yb3ctc2VsZWN0aW9uLWZvcm1hdHRlcic7XHJcbiJdfQ==
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const defaultPageSize = 10;
|
|
2
|
+
export const defaultPageNumber = 1;
|
|
3
|
+
export class PagedQuery {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.pageNumber = defaultPageNumber;
|
|
6
|
+
this.pageSize = defaultPageSize;
|
|
7
|
+
}
|
|
8
|
+
sortChange(sort) {
|
|
9
|
+
if (sort.active) {
|
|
10
|
+
this.sortBy = sort.active;
|
|
11
|
+
this.sortDirection = sort.direction;
|
|
12
|
+
this.pageNumber = defaultPageNumber;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
pageChange(page) {
|
|
16
|
+
this.pageNumber = page.pageIndex + 1;
|
|
17
|
+
this.pageSize = page.pageSize;
|
|
18
|
+
}
|
|
19
|
+
applyRouteChanges(queryParams) {
|
|
20
|
+
this.pageNumber = queryParams.pageNumber ? Number(queryParams.pageNumber) : defaultPageNumber;
|
|
21
|
+
this.pageSize = queryParams.pageSize ? Number(queryParams.pageSize) : this.pageSize;
|
|
22
|
+
this.sortBy = queryParams.sortBy ?? this.sortBy;
|
|
23
|
+
this.sortDirection = queryParams.sortDirection ?? this.sortDirection;
|
|
24
|
+
}
|
|
25
|
+
getRouteQueryParams() {
|
|
26
|
+
return {
|
|
27
|
+
pageNumber: this.pageNumber,
|
|
28
|
+
pageSize: this.pageSize,
|
|
29
|
+
sortBy: this.sortBy,
|
|
30
|
+
sortDirection: this.sortDirection
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZWQtcXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvdGFibGUvaW50ZXJmYWNlcy9wYWdlZC1xdWVyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsRUFBRSxDQUFDO0FBQ2xDLE1BQU0sQ0FBQyxNQUFNLGlCQUFpQixHQUFHLENBQUMsQ0FBQztBQUVuQyxNQUFNLE9BQU8sVUFBVTtJQUF2QjtRQUNFLGVBQVUsR0FBRyxpQkFBaUIsQ0FBQztRQUMvQixhQUFRLEdBQUcsZUFBZSxDQUFDO0lBZ0M3QixDQUFDO0lBNUJDLFVBQVUsQ0FBQyxJQUFlO1FBQ3hCLElBQUksSUFBSSxDQUFDLE1BQU0sRUFBRTtZQUNmLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztZQUMxQixJQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUM7WUFDcE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JhbXMucGFnZU51bWJlcikgOiBkZWZhdWx0UGFnZU51bWJlcjtcbiAgICB0aGlzLnBhZ2VTaXplID0gcXVlcnlQYXJhbXMucGFnZVNpemUgPyBOdW1iZXIocXVlcnlQYXJhbXMucGFnZVNpemUpIDogdGhpcy5wYWdlU2l6ZTtcbiAgICB0aGlzLnNvcnRCeSA9IHF1ZXJ5UGFyYW1zLnNvcnRCeSA/PyB0aGlzLnNvcnRCeTtcbiAgICB0aGlzLnNvcnREaXJlY3Rpb24gPSBxdWVyeVBhcmFtcy5zb3J0RGlyZWN0aW9uID8/IHRoaXMuc29ydERpcmVjdGlvbjtcbiAgfVxuXG4gIGdldFJvdXRlUXVlcnlQYXJhbXMoKTogUGFyYW1zIHtcbiAgICByZXR1cm4ge1xuICAgICAgcGFnZU51bWJlcjogdGhpcy5wYWdlTnVtYmVyLFxuICAgICAgcGFnZVNpemU6IHRoaXMucGFnZVNpemUsXG4gICAgICBzb3J0Qnk6IHRoaXMuc29ydEJ5LFxuICAgICAgc29ydERpcmVjdGlvbjogdGhpcy5zb3J0RGlyZWN0aW9uXG4gICAgfTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { PageEvent } from '@angular/material/paginator';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy90YWJsZS9pbnRlcmZhY2VzL3BhZ2luYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU29ydCBhcyBTb3J0RXZlbnQgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9z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InNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgUm93Q2xhc3NGb3JtYXR0ZXIge1xyXG4gIFtjbGFzc05hbWU6IHN0cmluZ106IChyb3dEYXRhOiBhbnkpID0+IGJvb2xlYW47XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LWNvbnRleHQtbWVudS1mb3JtYXR0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvdGFibGUvaW50ZXJmYWNlcy9yb3ctY29udGV4dC1tZW51LWZvcm1hdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29udGV4dE1lbnVJdGVtIH0gZnJvbSAnLi9jb250ZXh0LW1lbnUtaXRlbSc7XHJcblxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBSb3dDb250ZXh0TWVudUZvcm1hdHRlciB7XHJcbiAgaXRlbXM6IChyb3dEYXRhOiBhbnkpID0+IENvbnRleHRNZW51SXRlbVtdO1xyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LXNlbGVjdGlvbi1mb3JtYXR0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvdGFibGUvaW50ZXJmYWNlcy9yb3ctc2VsZWN0aW9uLWZvcm1hdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBSb3dTZWxlY3Rpb25Gb3JtYXR0ZXIge1xyXG4gIGRpc2FibGVkPzogKHJvd0RhdGE6IGFueSkgPT4gYm9vbGVhbjtcclxuICBoaWRlQ2hlY2tib3g/OiAocm93RGF0YTogYW55KSA9PiBib29sZWFuO1xyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './interfaces';
|
|
2
|
+
export * from './components';
|
|
3
|
+
export { EntryTableModule } from './entry-table.module';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy90YWJsZS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50cyc7XG5leHBvcnQgeyBFbnRyeVRhYmxlTW9kdWxlIH0gZnJvbSAnLi9lbnRyeS10YWJsZS5tb2R1bGUnO1xuIl19
|
|
@@ -17,7 +17,9 @@ export class EntryFormErrorsComponent {
|
|
|
17
17
|
EntryFormErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryFormErrorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
18
|
EntryFormErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EntryFormErrorsComponent, selector: "entry-form-errors", inputs: { form: "form" }, ngImport: i0, template: `
|
|
19
19
|
<div *ngIf="form.errors">
|
|
20
|
-
<mat-error *ngFor="let error of form.errors.general">
|
|
20
|
+
<mat-error *ngFor="let error of form.errors.general">
|
|
21
|
+
<span class="mat-body-2">{{error}}</span>
|
|
22
|
+
</mat-error>
|
|
21
23
|
</div>
|
|
22
24
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
23
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryFormErrorsComponent, decorators: [{
|
|
@@ -26,7 +28,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
26
28
|
selector: 'entry-form-errors',
|
|
27
29
|
template: `
|
|
28
30
|
<div *ngIf="form.errors">
|
|
29
|
-
<mat-error *ngFor="let error of form.errors.general">
|
|
31
|
+
<mat-error *ngFor="let error of form.errors.general">
|
|
32
|
+
<span class="mat-body-2">{{error}}</span>
|
|
33
|
+
</mat-error>
|
|
30
34
|
</div>
|
|
31
35
|
`,
|
|
32
36
|
changeDetection: ChangeDetectionStrategy.Default
|
|
@@ -34,4 +38,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
34
38
|
}], propDecorators: { form: [{
|
|
35
39
|
type: Input
|
|
36
40
|
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktZm9ybS1lcnJvcnMuY29tcG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ZXJyb3JzIFtmb3JtXT1cIm15Rm9ybVwiPlxuICogPC9lbnRyeS1mb3JtLWVycm9ycz5cbiAqIGBgYFxuICovXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdlbnRyeS1mb3JtLWVycm9ycycsXG4gIHRlbXBsYXRlOiBgXG4gICAgPGRpdiAqbmdJZj1cImZvcm0uZXJyb3JzXCI+XG4gICAgICA8bWF0LWVycm9yICpuZ0Zvcj1cImxldCBlcnJvciBvZiBmb3JtLmVycm9ycy5nZW5lcmFsXCI+XG4gICAgICAgIDxzcGFuIGNsYXNzPVwibWF0LWJvZHktMlwiPnt7ZXJyb3J9fTwvc3Bhbj5cbiAgICAgIDwvbWF0LWVycm9yPlxuICAgIDwvZGl2PlxuICBgLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5LkRlZmF1bHRcbn0pXG5leHBvcnQgY2xhc3MgRW50cnlGb3JtRXJyb3JzQ29tcG9uZW50IHtcbiAgLyoqIEEgZm9ybSBncm91cCBmb3Igd2hpY2ggdGhlIHZhbGlkYXRpb24gZXJyb3JzIGFyZSBiZWluZyBkaXNwbGF5ZWQuICovXG4gIEBJbnB1dCgpIGZvcm06IFVudHlwZWRGb3JtR3JvdXA7XG59XG4iXX0=
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Directive, Inject, Optional, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/button';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Used to provide button configuration on module or application level.
|
|
9
|
+
*/
|
|
10
|
+
class EntryButtonConfig {
|
|
11
|
+
constructor(config = {}) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
this.submit = (_a = config.submit) !== null && _a !== void 0 ? _a : { type: 'flat', color: 'primary' };
|
|
14
|
+
this.cancel = (_b = config.cancel) !== null && _b !== void 0 ? _b : { type: 'basic', color: 'accent' };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Entry button config injection token. Can be used to provide custom button configuration.
|
|
19
|
+
*
|
|
20
|
+
* Defaults:
|
|
21
|
+
* - submit: type: 'flat', color: 'primary'
|
|
22
|
+
* - cancel: type: 'basic', color: 'accent'
|
|
23
|
+
*/
|
|
24
|
+
const ENTRY_BUTTON_CONFIG = new InjectionToken('EntryButtonConfig', {
|
|
25
|
+
providedIn: 'root',
|
|
26
|
+
factory: () => new EntryButtonConfig()
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
class EntryButtonDirective {
|
|
30
|
+
constructor(_elementRef, _config, _matButton, _matAnchor) {
|
|
31
|
+
this._elementRef = _elementRef;
|
|
32
|
+
this._config = _config;
|
|
33
|
+
this._matButton = _matButton;
|
|
34
|
+
this._matAnchor = _matAnchor;
|
|
35
|
+
this.matClasses = {
|
|
36
|
+
basic: ['mdc-button', 'mat-mdc-button'],
|
|
37
|
+
raised: ['mdc-button', 'mdc-button--raised', 'mat-mdc-raised-button'],
|
|
38
|
+
stroked: ['mdc-button', 'mdc-button--outlined', 'mat-mdc-outlined-button'],
|
|
39
|
+
flat: ['mdc-button', 'mdc-button--unelevated', 'mat-mdc-unelevated-button']
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
ngOnInit() {
|
|
43
|
+
const entryButtonType = this.getEntryType();
|
|
44
|
+
const buttonConfig = this._config[entryButtonType];
|
|
45
|
+
const entryClasses = ['entry-button', `entry-${entryButtonType}-button`];
|
|
46
|
+
const matClasses = this.matClasses[buttonConfig.type];
|
|
47
|
+
this._elementRef.nativeElement.classList.add(...entryClasses, ...matClasses);
|
|
48
|
+
const color = buttonConfig.color;
|
|
49
|
+
if (color) {
|
|
50
|
+
if (this._matButton) {
|
|
51
|
+
this._matButton.color = color;
|
|
52
|
+
}
|
|
53
|
+
if (this._matAnchor) {
|
|
54
|
+
this._matAnchor.color = color;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
getEntryType() {
|
|
59
|
+
return this._elementRef.nativeElement.hasAttribute('entry-submit-button')
|
|
60
|
+
? 'submit' : 'cancel';
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
EntryButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryButtonDirective, deps: [{ token: i0.ElementRef }, { token: ENTRY_BUTTON_CONFIG }, { token: i1.MatButton, optional: true }, { token: i1.MatAnchor, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
64
|
+
EntryButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: EntryButtonDirective, selector: "[mat-button][entry-submit-button],[mat-button][entry-cancel-button]", ngImport: i0 });
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryButtonDirective, decorators: [{
|
|
66
|
+
type: Directive,
|
|
67
|
+
args: [{
|
|
68
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
69
|
+
selector: `[mat-button][entry-submit-button],[mat-button][entry-cancel-button]`
|
|
70
|
+
}]
|
|
71
|
+
}], ctorParameters: function () {
|
|
72
|
+
return [{ type: i0.ElementRef }, { type: EntryButtonConfig, decorators: [{
|
|
73
|
+
type: Inject,
|
|
74
|
+
args: [ENTRY_BUTTON_CONFIG]
|
|
75
|
+
}] }, { type: i1.MatButton, decorators: [{
|
|
76
|
+
type: Optional
|
|
77
|
+
}] }, { type: i1.MatAnchor, decorators: [{
|
|
78
|
+
type: Optional
|
|
79
|
+
}] }];
|
|
80
|
+
} });
|
|
81
|
+
|
|
82
|
+
class EntryButtonModule {
|
|
83
|
+
}
|
|
84
|
+
EntryButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
85
|
+
EntryButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: EntryButtonModule, declarations: [EntryButtonDirective], imports: [CommonModule,
|
|
86
|
+
MatButtonModule], exports: [EntryButtonDirective] });
|
|
87
|
+
EntryButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryButtonModule, imports: [CommonModule,
|
|
88
|
+
MatButtonModule] });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryButtonModule, decorators: [{
|
|
90
|
+
type: NgModule,
|
|
91
|
+
args: [{
|
|
92
|
+
declarations: [
|
|
93
|
+
EntryButtonDirective
|
|
94
|
+
],
|
|
95
|
+
imports: [
|
|
96
|
+
CommonModule,
|
|
97
|
+
MatButtonModule
|
|
98
|
+
],
|
|
99
|
+
exports: [
|
|
100
|
+
EntryButtonDirective
|
|
101
|
+
]
|
|
102
|
+
}]
|
|
103
|
+
}] });
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Generated bundle index. Do not edit.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
export { ENTRY_BUTTON_CONFIG, EntryButtonConfig, EntryButtonDirective, EntryButtonModule };
|
|
110
|
+
//# sourceMappingURL=enigmatry-entry-components-button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-button.mjs","sources":["../../../../libs/entry-components/button/entry-button-config.ts","../../../../libs/entry-components/button/entry-button.directive.ts","../../../../libs/entry-components/button/entry-button.module.ts","../../../../libs/entry-components/button/enigmatry-entry-components-button.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\nimport { ThemePalette } from '@angular/material/core';\r\n\r\n/** Possible mat button variants */\r\nexport declare type MatButtonVariants = 'basic' | 'flat' | 'raised' | 'stroked';\r\n\r\n//** MatButtonConfig containing type and color */\r\nexport interface MatButtonConfig {\r\n type: MatButtonVariants;\r\n color?: ThemePalette;\r\n}\r\n\r\n/**\r\n * Used to provide button configuration on module or application level.\r\n */\r\nexport class EntryButtonConfig {\r\n /** Submit button configuration */\r\n submit: MatButtonConfig;\r\n /** Cancel button configuration */\r\n cancel: MatButtonConfig;\r\n\r\n constructor(config: Partial<EntryButtonConfig> = {}) {\r\n this.submit = config.submit ?? { type: 'flat', color: 'primary' };\r\n this.cancel = config.cancel ?? { type: 'basic', color: 'accent' };\r\n }\r\n}\r\n\r\n/**\r\n * Entry button config injection token. Can be used to provide custom button configuration.\r\n *\r\n * Defaults:\r\n * - submit: type: 'flat', color: 'primary'\r\n * - cancel: type: 'basic', color: 'accent'\r\n */\r\nexport const ENTRY_BUTTON_CONFIG = new InjectionToken<EntryButtonConfig>('EntryButtonConfig',\r\n {\r\n providedIn: 'root',\r\n factory: () => new EntryButtonConfig()\r\n }\r\n);\r\n","import { Directive, ElementRef, Inject, OnInit, Optional } from '@angular/core';\nimport { MatButton, MatAnchor } from '@angular/material/button';\nimport { ThemePalette } from '@angular/material/core';\nimport { ENTRY_BUTTON_CONFIG, EntryButtonConfig, MatButtonConfig } from './entry-button-config';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: `[mat-button][entry-submit-button],[mat-button][entry-cancel-button]`\n})\nexport class EntryButtonDirective implements OnInit {\n\n matClasses: { [key: string]: string[] } = {\n basic: ['mdc-button', 'mat-mdc-button'],\n raised: ['mdc-button', 'mdc-button--raised', 'mat-mdc-raised-button'],\n stroked: ['mdc-button', 'mdc-button--outlined', 'mat-mdc-outlined-button'],\n flat: ['mdc-button', 'mdc-button--unelevated', 'mat-mdc-unelevated-button']\n };\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n @Inject(ENTRY_BUTTON_CONFIG) private _config: EntryButtonConfig,\n @Optional() private _matButton?: MatButton,\n @Optional() private _matAnchor?: MatAnchor) {\n }\n\n ngOnInit(): void {\n const entryButtonType = this.getEntryType();\n const buttonConfig: MatButtonConfig = this._config[entryButtonType];\n\n const entryClasses: string[] = ['entry-button', `entry-${entryButtonType}-button`];\n const matClasses = this.matClasses[buttonConfig.type];\n\n this._elementRef.nativeElement.classList.add(...entryClasses, ...matClasses);\n\n const color: ThemePalette = buttonConfig.color;\n if (color) {\n if (this._matButton) { this._matButton.color = color; }\n if (this._matAnchor) { this._matAnchor.color = color; }\n }\n }\n\n private getEntryType(): string {\n return this._elementRef.nativeElement.hasAttribute('entry-submit-button')\n ? 'submit' : 'cancel';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EntryButtonDirective } from './entry-button.directive';\nimport { MatButtonModule } from '@angular/material/button';\n\n@NgModule({\n declarations: [\n EntryButtonDirective\n ],\n imports: [\n CommonModule,\n MatButtonModule\n ],\n exports: [\n EntryButtonDirective\n ]\n})\nexport class EntryButtonModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAYA;;AAEG;MACU,iBAAiB,CAAA;IAM5B,WAAY,CAAA,SAAqC,EAAE,EAAA;;AACjD,QAAA,IAAI,CAAC,MAAM,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAClE,QAAA,IAAI,CAAC,MAAM,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;KACnE;AACF,CAAA;AAED;;;;;;AAMG;MACU,mBAAmB,GAAG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AAA;+GAAjB,iBAAiB,EAAA,YAAA,EAAA,CAV1B,oBAAoB,CAAA,EAAA,OAAA,EAAA,CAGpB,YAAY;QACZ,eAAe,aAGf,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAGX,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAP1B,YAAY;QACZ,eAAe,CAAA,EAAA,CAAA,CAAA;2FAMN,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;iBACF,CAAA;;;AChBD;;AAEG;;;;"}
|
|
@@ -5,6 +5,12 @@ import * as i1 from '@angular/material/dialog';
|
|
|
5
5
|
import { MAT_DIALOG_DATA, MatDialogConfig, MatDialogModule } from '@angular/material/dialog';
|
|
6
6
|
import * as i2 from '@angular/common';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
|
+
import * as i3 from '@angular/material/icon';
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
10
|
+
import * as i4 from '@angular/material/button';
|
|
11
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
+
import * as i5 from '@enigmatry/entry-components/button';
|
|
13
|
+
import { EntryButtonModule } from '@enigmatry/entry-components/button';
|
|
8
14
|
import { take } from 'rxjs/operators';
|
|
9
15
|
|
|
10
16
|
/**
|
|
@@ -15,7 +21,7 @@ class EntryDialogConfig {
|
|
|
15
21
|
var _a, _b, _c, _d, _e;
|
|
16
22
|
this.confirmButtonText = (_a = config.confirmButtonText) !== null && _a !== void 0 ? _a : 'Ok';
|
|
17
23
|
this.cancelButtonText = (_b = config.cancelButtonText) !== null && _b !== void 0 ? _b : 'Cancel';
|
|
18
|
-
this.buttonsAlignment = (_c = config.buttonsAlignment) !== null && _c !== void 0 ? _c : '
|
|
24
|
+
this.buttonsAlignment = (_c = config.buttonsAlignment) !== null && _c !== void 0 ? _c : 'end';
|
|
19
25
|
this.hideClose = (_d = config.hideClose) !== null && _d !== void 0 ? _d : true;
|
|
20
26
|
this.disableClose = (_e = config.disableClose) !== null && _e !== void 0 ? _e : false;
|
|
21
27
|
}
|
|
@@ -27,7 +33,7 @@ class EntryDialogConfig {
|
|
|
27
33
|
* Defaults:
|
|
28
34
|
* - confirmButtonText: 'Ok'
|
|
29
35
|
* - cancelButtonText: 'Cancel'
|
|
30
|
-
* - buttonsAlignment: '
|
|
36
|
+
* - buttonsAlignment: 'end'
|
|
31
37
|
* - hideClose: true
|
|
32
38
|
* - disableClose: false
|
|
33
39
|
*/
|
|
@@ -75,10 +81,10 @@ class EntryDialogComponent {
|
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
83
|
EntryDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
-
EntryDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EntryDialogComponent, selector: "entry-dialog", inputs: { title: "title", buttonsAlignment: "buttonsAlignment", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", hideButtons: "hideButtons", hideCancel: "hideCancel", hideClose: "hideClose", disableConfirm: "disableConfirm", buttonsTemplate: "buttonsTemplate", confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<div class=\"entry-dialog
|
|
84
|
+
EntryDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EntryDialogComponent, selector: "entry-dialog", inputs: { title: "title", buttonsAlignment: "buttonsAlignment", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", hideButtons: "hideButtons", hideCancel: "hideCancel", hideClose: "hideClose", disableConfirm: "disableConfirm", buttonsTemplate: "buttonsTemplate", confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<div class=\"entry-dialog\">\n <div class=\"dialog-header\">\n <h1 class=\"title\" [ngClass]=\"{'without-close-icon': hideClose === true}\" mat-dialog-title>{{ title }}</h1>\n <button mat-icon-button *ngIf=\"!hideClose\" type=\"button\" class=\"close-button\" (click)=\"cancel()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <mat-dialog-content class=\"dialog-content\" [ngClass]=\"{'with-actions': !hideButtons}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <mat-dialog-actions class=\"dialog-actions\" [align]=\"buttonsAlignment\" *ngIf=\"!hideButtons\">\n <ng-container *ngIf=\"buttonsTemplate; then buttonsTemplate; else defaultButtonsTemplate\">\n </ng-container>\n </mat-dialog-actions>\n \n <ng-template #defaultButtonsTemplate>\n <button cdkFocusInitial mat-button entry-submit-button (click)=\"onSubmit()\">\n <span>{{confirmButtonText}}</span>\n </button>\n <button *ngIf=\"!hideCancel\" mat-button entry-cancel-button (click)=\"cancel()\">\n <span>{{cancelButtonText}}</span>\n </button>\n </ng-template>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i5.EntryButtonDirective, selector: "[mat-button][entry-submit-button],[mat-button][entry-cancel-button]" }] });
|
|
79
85
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryDialogComponent, decorators: [{
|
|
80
86
|
type: Component,
|
|
81
|
-
args: [{ selector: 'entry-dialog', template: "<div class=\"entry-dialog
|
|
87
|
+
args: [{ selector: 'entry-dialog', template: "<div class=\"entry-dialog\">\n <div class=\"dialog-header\">\n <h1 class=\"title\" [ngClass]=\"{'without-close-icon': hideClose === true}\" mat-dialog-title>{{ title }}</h1>\n <button mat-icon-button *ngIf=\"!hideClose\" type=\"button\" class=\"close-button\" (click)=\"cancel()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <mat-dialog-content class=\"dialog-content\" [ngClass]=\"{'with-actions': !hideButtons}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <mat-dialog-actions class=\"dialog-actions\" [align]=\"buttonsAlignment\" *ngIf=\"!hideButtons\">\n <ng-container *ngIf=\"buttonsTemplate; then buttonsTemplate; else defaultButtonsTemplate\">\n </ng-container>\n </mat-dialog-actions>\n \n <ng-template #defaultButtonsTemplate>\n <button cdkFocusInitial mat-button entry-submit-button (click)=\"onSubmit()\">\n <span>{{confirmButtonText}}</span>\n </button>\n <button *ngIf=\"!hideCancel\" mat-button entry-cancel-button (click)=\"cancel()\">\n <span>{{cancelButtonText}}</span>\n </button>\n </ng-template>\n</div>" }]
|
|
82
88
|
}], ctorParameters: function () {
|
|
83
89
|
return [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
84
90
|
type: Inject,
|
|
@@ -228,11 +234,17 @@ EntryDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
|
|
|
228
234
|
EntryDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: EntryDialogModule, declarations: [EntryDialogComponent,
|
|
229
235
|
EntryAlertDialogComponent,
|
|
230
236
|
EntryConfirmDialogComponent], imports: [CommonModule,
|
|
231
|
-
MatDialogModule
|
|
237
|
+
MatDialogModule,
|
|
238
|
+
MatIconModule,
|
|
239
|
+
MatButtonModule,
|
|
240
|
+
EntryButtonModule], exports: [EntryDialogComponent,
|
|
232
241
|
EntryAlertDialogComponent,
|
|
233
242
|
EntryConfirmDialogComponent] });
|
|
234
243
|
EntryDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryDialogModule, providers: [EntryDialogService], imports: [CommonModule,
|
|
235
|
-
MatDialogModule
|
|
244
|
+
MatDialogModule,
|
|
245
|
+
MatIconModule,
|
|
246
|
+
MatButtonModule,
|
|
247
|
+
EntryButtonModule] });
|
|
236
248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryDialogModule, decorators: [{
|
|
237
249
|
type: NgModule,
|
|
238
250
|
args: [{
|
|
@@ -243,7 +255,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
243
255
|
],
|
|
244
256
|
imports: [
|
|
245
257
|
CommonModule,
|
|
246
|
-
MatDialogModule
|
|
258
|
+
MatDialogModule,
|
|
259
|
+
MatIconModule,
|
|
260
|
+
MatButtonModule,
|
|
261
|
+
EntryButtonModule
|
|
247
262
|
],
|
|
248
263
|
exports: [
|
|
249
264
|
EntryDialogComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enigmatry-entry-components-dialog.mjs","sources":["../../../../libs/entry-components/dialog/entry-dialog-config.model.ts","../../../../libs/entry-components/dialog/dialogs/entry-dialog.component.ts","../../../../libs/entry-components/dialog/dialogs/entry-dialog.component.html","../../../../libs/entry-components/dialog/dialogs/alert/entry-alert-dialog.component.ts","../../../../libs/entry-components/dialog/dialogs/alert/entry-alert-dialog.component.html","../../../../libs/entry-components/dialog/dialogs/confirm/entry-confirm-dialog.component.ts","../../../../libs/entry-components/dialog/dialogs/confirm/entry-confirm-dialog.component.html","../../../../libs/entry-components/dialog/entry-dialog.service.ts","../../../../libs/entry-components/dialog/entry-dialog.module.ts","../../../../libs/entry-components/dialog/enigmatry-entry-components-dialog.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { EntryDialogButtonsAlignment } from './entry-dialog-buttons-alignment.type';\n\n/**\n * Used to provide default configurations on module level.\n */\nexport class EntryDialogConfig {\n /** Confirm button label (default 'Ok') */\n confirmButtonText: string;\n /** Cancel button label (default 'Cancel') */\n cancelButtonText: string;\n /** Dialog buttons horizontal alignment (default 'align-right') */\n buttonsAlignment: EntryDialogButtonsAlignment;\n /** Determines if close button is visible (default is true) */\n hideClose: boolean;\n /** Disable closing dialog when pressing escape or clicking on backdrop (default false) */\n disableClose: boolean;\n\n constructor(config: Partial<EntryDialogConfig> = {}) {\n this.confirmButtonText = config.confirmButtonText ?? 'Ok';\n this.cancelButtonText = config.cancelButtonText ?? 'Cancel';\n this.buttonsAlignment = config.buttonsAlignment ?? 'align-right';\n this.hideClose = config.hideClose ?? true;\n this.disableClose = config.disableClose ?? false;\n }\n}\n\n/**\n * Entry dialog injection token of EntryDialogConfig type containing dialog default configurations.\n * Can be updated with custom configuration.\n *\n * Defaults:\n * - confirmButtonText: 'Ok'\n * - cancelButtonText: 'Cancel'\n * - buttonsAlignment: 'align-right'\n * - hideClose: true\n * - disableClose: false\n */\nexport const ENTRY_DIALOG_CONFIG = new InjectionToken<EntryDialogConfig>(\n 'EntryDialogConfig',\n {\n providedIn: 'root',\n factory: () => new EntryDialogConfig()\n }\n);\n","import { Component, Inject, Input, TemplateRef } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { Observable, of } from 'rxjs';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../entry-dialog-config.model';\nimport { EntryDialogButtonsAlignment } from '../entry-dialog-buttons-alignment.type';\n\n/**\n * Base Entry dialog component. Must be extended when building custom dialogs.\n *\n * @example\n * ```html\n * <entry-dialog title=\"TITLE\"><p>Dialog content</p></entry-dialog>\n * ```\n */\n@Component({\n selector: 'entry-dialog',\n templateUrl: './entry-dialog.component.html',\n styleUrls: ['./entry-dialog.component.scss']\n})\nexport class EntryDialogComponent {\n /** Dialog header title */\n @Input() title: string;\n /** Dialog buttons horizontal alignment */\n @Input() buttonsAlignment: EntryDialogButtonsAlignment = this.config.buttonsAlignment;\n /** Confirm button label */\n @Input() confirmButtonText = this.config.confirmButtonText;\n /** Cancel button label */\n @Input() cancelButtonText = this.config.cancelButtonText;\n /** Show or hide dialog buttons */\n @Input() hideButtons: boolean;\n /** Show or hide dialog cancel button */\n @Input() hideCancel: boolean;\n /** Show or hide dialog close button */\n @Input() hideClose: boolean = this.config.hideClose;\n /** Enable or disable dialog confirm button */\n @Input() disableConfirm: boolean;\n /** Provide custom buttons template */\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 // onEsc = () => {\n // if (!this.disableClose) {\n // this.cancel();\n // }\n // };\n\n onSubmit = () =>\n this.confirm().subscribe({\n next: closeDialog => {\n if (closeDialog) {\n this.close(closeDialog);\n }\n }\n });\n\n close = (value: unknown = true) => this.mdDialogRef.close(value);\n}\n","<div class=\"entry-dialog dialog-form\">\n <div class=\"dialog-header\">\n <h1 class=\"title\">{{ title }}</h1>\n\n <button *ngIf=\"!hideClose\" type=\"button\" class=\"close-button\" (click)=\"cancel()\">\n <span class=\"icon-close icon\"></span>\n </button>\n </div>\n\n <mat-dialog-content class=\"dialog-content\" [ngClass]=\"{'with-actions': !hideButtons}\">\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=\"!hideButtons\" class=\"dialog-footer {{ buttonsAlignment }}\">\n <button\n cdkFocusInitial\n type=\"button\"\n class=\"button-confirm\"\n cdkFocusInitial\n (click)=\"onSubmit()\">{{confirmButtonText}}</button>\n <button\n *ngIf=\"!hideCancel\"\n type=\"button\"\n class=\"button-cancel\"\n (click)=\"cancel()\">{{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 { 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 constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) public readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) public data: IEntryAlertDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\"\n [hideCancel]=\"true\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\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 constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) public readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) readonly data: IEntryConfirmDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [cancelButtonText]=\"data.cancelText ?? config.cancelButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { Inject, 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';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from './entry-dialog-config.model';\n\n/**\n * Used to open built-in and custom entry dialogs.\n */\n@Injectable()\nexport class EntryDialogService {\n constructor(\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig,\n private readonly matDialog: MatDialog) { }\n\n /**\n * Opens alert dialog.\n *\n * @param data - Contains title, message and optional confirm button text\n * @returns `true` if confirmed, `undefined` if closed by clicking on backdrop or pressing escape\n */\n openAlert = (data: Partial<IEntryAlertDialogData>): Observable<true | undefined> => {\n data.disableClose = data.disableClose === undefined ? this.config.disableClose : data.disableClose;\n return this.open(EntryAlertDialogComponent, data, data.disableClose);\n };\n\n /**\n * Opens confirm dialog.\n *\n * @param data - Contains title, message and optional confirm/cancel buttons text\n * @returns `true` if confirmed, `false` if canceled or closed, `undefined` if closed by clicking on backdrop or pressing escape\n */\n openConfirm = (data: Partial<IEntryConfirmDialogData>): Observable<boolean | undefined> => {\n data.disableClose = data.disableClose === undefined ? this.config.disableClose : data.disableClose;\n return this.open(EntryConfirmDialogComponent, data, data.disableClose);\n };\n\n /**\n * Opens dialog with custom component.\n *\n * @param component - Dialog custom component implementation\n * @param data - Optional parameter used to supply component with input parameters\n * @param disableClose - Optional parameter that disable closing dialog when pressing escape or clicking on backdrop\n * @param cssClass - Optional parameter used to set custom class to Material overlay pane\n * @returns Any result custom implementation provides\n */\n open = (\n component: Type<EntryDialogComponent>,\n data: unknown = undefined,\n disableClose: boolean | undefined = undefined,\n cssClass: string = ''): Observable<any> => {\n const configuration = new MatDialogConfig<unknown>();\n configuration.data = data;\n configuration.disableClose = disableClose === undefined\n ? this.config.disableClose\n : disableClose;\n this.setPanelClassFor(configuration, cssClass);\n\n return this.matDialog\n .open(component, configuration)\n .afterClosed()\n .pipe(take(1));\n };\n\n /**\n * Closes all opened dialogs.\n */\n closeAll = (): 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';\nimport { EntryDialogService } from './entry-dialog.service';\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 providers: [EntryDialogService]\n})\nexport class EntryDialogModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.EntryDialogComponent"],"mappings":";;;;;;;;;AAGA;;AAEG;MACU,iBAAiB,CAAA;IAY1B,WAAY,CAAA,SAAqC,EAAE,EAAA;;QAC/C,IAAI,CAAC,iBAAiB,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,iBAAiB,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,IAAI,CAAC;QAC1D,IAAI,CAAC,gBAAgB,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,gBAAgB,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,QAAQ,CAAC;QAC5D,IAAI,CAAC,gBAAgB,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,gBAAgB,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,aAAa,CAAC;QACjE,IAAI,CAAC,SAAS,GAAG,CAAA,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,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;oBACD,SAAS,EAAE,CAAC,kBAAkB,CAAC;iBAChC,CAAA;;;ACxBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-dialog.mjs","sources":["../../../../libs/entry-components/dialog/entry-dialog-config.model.ts","../../../../libs/entry-components/dialog/dialogs/entry-dialog.component.ts","../../../../libs/entry-components/dialog/dialogs/entry-dialog.component.html","../../../../libs/entry-components/dialog/dialogs/alert/entry-alert-dialog.component.ts","../../../../libs/entry-components/dialog/dialogs/alert/entry-alert-dialog.component.html","../../../../libs/entry-components/dialog/dialogs/confirm/entry-confirm-dialog.component.ts","../../../../libs/entry-components/dialog/dialogs/confirm/entry-confirm-dialog.component.html","../../../../libs/entry-components/dialog/entry-dialog.service.ts","../../../../libs/entry-components/dialog/entry-dialog.module.ts","../../../../libs/entry-components/dialog/enigmatry-entry-components-dialog.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { EntryDialogButtonsAlignment } from './entry-dialog-buttons-alignment.type';\n\n/**\n * Used to provide default configurations on module level.\n */\nexport class EntryDialogConfig {\n /** Confirm button label (default 'Ok') */\n confirmButtonText: string;\n /** Cancel button label (default 'Cancel') */\n cancelButtonText: string;\n /** Dialog buttons horizontal alignment (default 'align-right') */\n buttonsAlignment: EntryDialogButtonsAlignment;\n /** Determines if close button is visible (default is true) */\n hideClose: boolean;\n /** Disable closing dialog when pressing escape or clicking on backdrop (default false) */\n disableClose: boolean;\n\n constructor(config: Partial<EntryDialogConfig> = {}) {\n this.confirmButtonText = config.confirmButtonText ?? 'Ok';\n this.cancelButtonText = config.cancelButtonText ?? 'Cancel';\n this.buttonsAlignment = config.buttonsAlignment ?? 'end';\n this.hideClose = config.hideClose ?? true;\n this.disableClose = config.disableClose ?? false;\n }\n}\n\n/**\n * Entry dialog injection token of EntryDialogConfig type containing dialog default configurations.\n * Can be updated with custom configuration.\n *\n * Defaults:\n * - confirmButtonText: 'Ok'\n * - cancelButtonText: 'Cancel'\n * - buttonsAlignment: 'end'\n * - hideClose: true\n * - disableClose: false\n */\nexport const ENTRY_DIALOG_CONFIG = new InjectionToken<EntryDialogConfig>(\n 'EntryDialogConfig',\n {\n providedIn: 'root',\n factory: () => new EntryDialogConfig()\n }\n);\n","import { Component, Inject, Input, TemplateRef } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { Observable, of } from 'rxjs';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from '../entry-dialog-config.model';\nimport { EntryDialogButtonsAlignment } from '../entry-dialog-buttons-alignment.type';\n\n/**\n * Base Entry dialog component. Must be extended when building custom dialogs.\n *\n * @example\n * ```html\n * <entry-dialog title=\"TITLE\"><p>Dialog content</p></entry-dialog>\n * ```\n */\n@Component({\n selector: 'entry-dialog',\n templateUrl: './entry-dialog.component.html',\n styleUrls: ['./entry-dialog.component.scss']\n})\nexport class EntryDialogComponent {\n /** Dialog header title */\n @Input() title: string;\n /** Dialog buttons horizontal alignment */\n @Input() buttonsAlignment: EntryDialogButtonsAlignment = this.config.buttonsAlignment;\n /** Confirm button label */\n @Input() confirmButtonText = this.config.confirmButtonText;\n /** Cancel button label */\n @Input() cancelButtonText = this.config.cancelButtonText;\n /** Show or hide dialog buttons */\n @Input() hideButtons: boolean;\n /** Show or hide dialog cancel button */\n @Input() hideCancel: boolean;\n /** Show or hide dialog close button */\n @Input() hideClose: boolean = this.config.hideClose;\n /** Enable or disable dialog confirm button */\n @Input() disableConfirm: boolean;\n /** Provide custom buttons template */\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 // onEsc = () => {\n // if (!this.disableClose) {\n // this.cancel();\n // }\n // };\n\n onSubmit = () =>\n this.confirm().subscribe({\n next: closeDialog => {\n if (closeDialog) {\n this.close(closeDialog);\n }\n }\n });\n\n close = (value: unknown = true) => this.mdDialogRef.close(value);\n}\n","<div class=\"entry-dialog\">\n <div class=\"dialog-header\">\n <h1 class=\"title\" [ngClass]=\"{'without-close-icon': hideClose === true}\" mat-dialog-title>{{ title }}</h1>\n <button mat-icon-button *ngIf=\"!hideClose\" type=\"button\" class=\"close-button\" (click)=\"cancel()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <mat-dialog-content class=\"dialog-content\" [ngClass]=\"{'with-actions': !hideButtons}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <mat-dialog-actions class=\"dialog-actions\" [align]=\"buttonsAlignment\" *ngIf=\"!hideButtons\">\n <ng-container *ngIf=\"buttonsTemplate; then buttonsTemplate; else defaultButtonsTemplate\">\n </ng-container>\n </mat-dialog-actions>\n \n <ng-template #defaultButtonsTemplate>\n <button cdkFocusInitial mat-button entry-submit-button (click)=\"onSubmit()\">\n <span>{{confirmButtonText}}</span>\n </button>\n <button *ngIf=\"!hideCancel\" mat-button entry-cancel-button (click)=\"cancel()\">\n <span>{{cancelButtonText}}</span>\n </button>\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 { 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 constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) public readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) public data: IEntryAlertDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\"\n [hideCancel]=\"true\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\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 constructor(\n protected readonly mdDialogRef: MatDialogRef<EntryDialogComponent>,\n @Inject(ENTRY_DIALOG_CONFIG) public readonly config: EntryDialogConfig,\n @Inject(MAT_DIALOG_DATA) readonly data: IEntryConfirmDialogData) {\n super(mdDialogRef, config);\n }\n}\n","<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [cancelButtonText]=\"data.cancelText ?? config.cancelButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\">\n <p>{{data.message}}</p>\n</entry-dialog>","import { Inject, 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';\nimport { ENTRY_DIALOG_CONFIG, EntryDialogConfig } from './entry-dialog-config.model';\n\n/**\n * Used to open built-in and custom entry dialogs.\n */\n@Injectable()\nexport class EntryDialogService {\n constructor(\n @Inject(ENTRY_DIALOG_CONFIG) protected readonly config: EntryDialogConfig,\n private readonly matDialog: MatDialog) { }\n\n /**\n * Opens alert dialog.\n *\n * @param data - Contains title, message and optional confirm button text\n * @returns `true` if confirmed, `undefined` if closed by clicking on backdrop or pressing escape\n */\n openAlert = (data: Partial<IEntryAlertDialogData>): Observable<true | undefined> => {\n data.disableClose = data.disableClose === undefined ? this.config.disableClose : data.disableClose;\n return this.open(EntryAlertDialogComponent, data, data.disableClose);\n };\n\n /**\n * Opens confirm dialog.\n *\n * @param data - Contains title, message and optional confirm/cancel buttons text\n * @returns `true` if confirmed, `false` if canceled or closed, `undefined` if closed by clicking on backdrop or pressing escape\n */\n openConfirm = (data: Partial<IEntryConfirmDialogData>): Observable<boolean | undefined> => {\n data.disableClose = data.disableClose === undefined ? this.config.disableClose : data.disableClose;\n return this.open(EntryConfirmDialogComponent, data, data.disableClose);\n };\n\n /**\n * Opens dialog with custom component.\n *\n * @param component - Dialog custom component implementation\n * @param data - Optional parameter used to supply component with input parameters\n * @param disableClose - Optional parameter that disable closing dialog when pressing escape or clicking on backdrop\n * @param cssClass - Optional parameter used to set custom class to Material overlay pane\n * @returns Any result custom implementation provides\n */\n open = (\n component: Type<EntryDialogComponent>,\n data: unknown = undefined,\n disableClose: boolean | undefined = undefined,\n cssClass: string = ''): Observable<any> => {\n const configuration = new MatDialogConfig<unknown>();\n configuration.data = data;\n configuration.disableClose = disableClose === undefined\n ? this.config.disableClose\n : disableClose;\n this.setPanelClassFor(configuration, cssClass);\n\n return this.matDialog\n .open(component, configuration)\n .afterClosed()\n .pipe(take(1));\n };\n\n /**\n * Closes all opened dialogs.\n */\n closeAll = (): 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 { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\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';\nimport { EntryButtonModule } from '@enigmatry/entry-components/button';\nimport { EntryDialogService } from './entry-dialog.service';\n\n@NgModule({\n declarations: [\n EntryDialogComponent,\n EntryAlertDialogComponent,\n EntryConfirmDialogComponent\n ],\n imports: [\n CommonModule,\n MatDialogModule,\n MatIconModule,\n MatButtonModule,\n EntryButtonModule\n ],\n exports: [\n EntryDialogComponent,\n EntryAlertDialogComponent,\n EntryConfirmDialogComponent\n ],\n providers: [EntryDialogService]\n})\nexport class EntryDialogModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.EntryDialogComponent"],"mappings":";;;;;;;;;;;;;;;AAGA;;AAEG;MACU,iBAAiB,CAAA;IAY1B,WAAY,CAAA,SAAqC,EAAE,EAAA;;QAC/C,IAAI,CAAC,iBAAiB,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,iBAAiB,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA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