@main-class/componentes 3.2.5 → 3.2.6

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.
Files changed (84) hide show
  1. package/package.json +8 -8
  2. package/crud/index.d.ts +0 -7
  3. package/crud/src/abstract-consulta-paginada-component.d.ts +0 -24
  4. package/crud/src/abstract-edicao-component.d.ts +0 -19
  5. package/crud/src/abstract-edicao-modal-component.d.ts +0 -19
  6. package/crud/src/query/query-field/query-field.component.d.ts +0 -37
  7. package/crud/src/query/query-form-field/query-form-field.component.d.ts +0 -11
  8. package/crud/src/query/query-form.component.d.ts +0 -23
  9. package/crud/src/query/query-modal-form/query-modal-form.component.d.ts +0 -13
  10. package/dialog/index.d.ts +0 -10
  11. package/dialog/src/dialog-confirmacao/dialog-confirmacao.component.d.ts +0 -23
  12. package/dialog/src/dialog-iframe/dialog-iframe.component.d.ts +0 -21
  13. package/dialog/src/dialog-sidebar/modal-template/modal-body.directive.d.ts +0 -9
  14. package/dialog/src/dialog-sidebar/modal-template/modal-close.directive.d.ts +0 -9
  15. package/dialog/src/dialog-sidebar/modal-template/modal-footer.directive.d.ts +0 -6
  16. package/dialog/src/dialog-sidebar/modal-template/modal-header.directive.d.ts +0 -6
  17. package/dialog/src/dialog-sidebar/modal-template/modal-template.component.d.ts +0 -12
  18. package/dialog/src/dialog-sidebar/modal.component.d.ts +0 -8
  19. package/dialog/src/dialog-sidebar/sidebar-modal-ref.d.ts +0 -17
  20. package/dialog/src/dialog.service.d.ts +0 -26
  21. package/fesm2022/main-class-componentes-crud.mjs +0 -458
  22. package/fesm2022/main-class-componentes-crud.mjs.map +0 -1
  23. package/fesm2022/main-class-componentes-dialog.mjs +0 -393
  24. package/fesm2022/main-class-componentes-dialog.mjs.map +0 -1
  25. package/fesm2022/main-class-componentes-form.mjs +0 -209
  26. package/fesm2022/main-class-componentes-form.mjs.map +0 -1
  27. package/fesm2022/main-class-componentes-input.mjs +0 -1841
  28. package/fesm2022/main-class-componentes-input.mjs.map +0 -1
  29. package/fesm2022/main-class-componentes-loader.mjs +0 -213
  30. package/fesm2022/main-class-componentes-loader.mjs.map +0 -1
  31. package/fesm2022/main-class-componentes-pipe.mjs +0 -27
  32. package/fesm2022/main-class-componentes-pipe.mjs.map +0 -1
  33. package/fesm2022/main-class-componentes-table.mjs +0 -443
  34. package/fesm2022/main-class-componentes-table.mjs.map +0 -1
  35. package/form/index.d.ts +0 -3
  36. package/form/src/form.component.d.ts +0 -24
  37. package/form/src/mensagens-erro/mensagens-erro.component.d.ts +0 -17
  38. package/form/src/single-click.directive.d.ts +0 -13
  39. package/input/index.d.ts +0 -25
  40. package/input/src/abstract-mat-form-field-control.d.ts +0 -50
  41. package/input/src/abstract-mat-form-field-select-control.d.ts +0 -28
  42. package/input/src/input-currency/input-currency.component.d.ts +0 -11
  43. package/input/src/input-datetime/input-datetime.component.d.ts +0 -28
  44. package/input/src/input-fileupload/input-fileupload.component.d.ts +0 -69
  45. package/input/src/input-fileupload/input-fileupload.directive.d.ts +0 -8
  46. package/input/src/input-mask/input-cep.component.d.ts +0 -7
  47. package/input/src/input-mask/input-cnpj.component.d.ts +0 -7
  48. package/input/src/input-mask/input-cpf-cnpj.component.d.ts +0 -8
  49. package/input/src/input-mask/input-cpf.component.d.ts +0 -7
  50. package/input/src/input-mask/input-mask.component.d.ts +0 -20
  51. package/input/src/input-mask/input-phone.component.d.ts +0 -7
  52. package/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.d.ts +0 -8
  53. package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +0 -21
  54. package/input/src/option-checkbox/all-option-checkbox.component.d.ts +0 -18
  55. package/input/src/option-checkbox/node-pool.d.ts +0 -23
  56. package/input/src/option-checkbox/option-checkbox-group.component.d.ts +0 -25
  57. package/input/src/option-checkbox/option-checkbox.component.d.ts +0 -23
  58. package/input/src/option-checkbox/option-checkbox.service.d.ts +0 -16
  59. package/input/src/option-checkbox/option-node.d.ts +0 -13
  60. package/input/src/select-autocomplete/select-autocomplete.component.d.ts +0 -17
  61. package/input/src/select-chips/select-chips.component.d.ts +0 -11
  62. package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +0 -11
  63. package/input/src/select-option/delegate-option-provider.directive.d.ts +0 -13
  64. package/input/src/select-option/select-option-provider.d.ts +0 -10
  65. package/input/src/select-option/select-option.component.d.ts +0 -10
  66. package/input/src/select-option/select-option.d.ts +0 -4
  67. package/input/src/select-radio/select-radio.component.d.ts +0 -8
  68. package/loader/index.d.ts +0 -2
  69. package/loader/src/loader.component.d.ts +0 -25
  70. package/loader/src/loader.service.d.ts +0 -20
  71. package/pipe/index.d.ts +0 -1
  72. package/pipe/src/nome-resumido.pipe.d.ts +0 -7
  73. package/table/index.d.ts +0 -9
  74. package/table/src/column/column-cell.directive.d.ts +0 -8
  75. package/table/src/column/column-footer.directive.d.ts +0 -8
  76. package/table/src/column/column-header.directive.d.ts +0 -8
  77. package/table/src/column/column.directive.d.ts +0 -16
  78. package/table/src/numeric-paginator/numeric-paginator.component.d.ts +0 -6
  79. package/table/src/paginated-table/paginated-table.component.d.ts +0 -58
  80. package/table/src/paginator-i18n.d.ts +0 -8
  81. package/table/src/table/table.component.d.ts +0 -39
  82. package/table/src/td/td.component.d.ts +0 -8
  83. package/table/src/th/th.component.d.ts +0 -8
  84. package/table/src/undefined-paginator/undefined-paginator.component.d.ts +0 -25
@@ -1,393 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Inject, Component, ViewChild, InjectionToken, HostListener, createComponent, createEnvironmentInjector, Injectable, Directive } from '@angular/core';
3
- import { Subject, EMPTY } from 'rxjs';
4
- import * as i1 from '@angular/material/dialog';
5
- import { MAT_DIALOG_DATA, MatDialogTitle, MatDialogActions, MatDialogContent, MatDialogClose } from '@angular/material/dialog';
6
- import * as i2 from '@angular/forms';
7
- import { FormsModule } from '@angular/forms';
8
- import { TranslatePipe } from '@ngx-translate/core';
9
- import { MatButton, MatIconButton } from '@angular/material/button';
10
- import { map } from 'rxjs/operators';
11
- import { MatIcon } from '@angular/material/icon';
12
- import * as i2$1 from '@angular/platform-browser';
13
- import { trigger, transition, style, query, animate } from '@angular/animations';
14
- import { NgClass, NgTemplateOutlet } from '@angular/common';
15
-
16
- class DialogConfirmacaoComponent {
17
- data;
18
- dialogRef;
19
- constructor(data, dialogRef) {
20
- this.data = data;
21
- this.dialogRef = dialogRef;
22
- }
23
- get titulo() {
24
- return this.data.titulo;
25
- }
26
- get mensagem() {
27
- return this.data.mensagem;
28
- }
29
- get okLabel() {
30
- return this.data.okLabel;
31
- }
32
- get cancelLabel() {
33
- return this.data.cancelLabel;
34
- }
35
- ngOnInit() {
36
- }
37
- confirma(form) {
38
- if (!form.valid) {
39
- return;
40
- }
41
- this.dialogRef.close(true);
42
- }
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DialogConfirmacaoComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
44
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: DialogConfirmacaoComponent, isStandalone: true, selector: "mcl-dialog-confirmacao", ngImport: i0, template: "<div mat-dialog-title>\n {{ titulo | translate }}\n</div>\n\n<form (ngSubmit)=\"confirma(form)\" #form=\"ngForm\">\n <div mat-dialog-content>\n\n <p [innerHTML]=\"mensagem | translate\"></p>\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-stroked-button color=\"accent\">\n {{ okLabel | translate }}\n </button>\n @if (!!cancelLabel) {\n <button mat-flat-button color=\"warn\" type=\"button\" mat-dialog-close>\n {{ cancelLabel | translate }}\n </button>\n }\n </div>\n</form>\n", styles: [".mat-mdc-dialog-content{width:95vw;max-width:280px;min-width:auto;margin:10px 60px;text-align:center;min-height:120px;display:flex;flex-direction:column;justify-content:center}[mat-dialog-title]{text-align:center;margin:40px 60px 20px}[mat-dialog-actions]{justify-content:center;margin:20px 60px 40px;flex-direction:row}@media (max-width: 750px){.mat-mdc-dialog-content{margin:10px 20px}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DialogConfirmacaoComponent, decorators: [{
47
- type: Component,
48
- args: [{ selector: 'mcl-dialog-confirmacao', imports: [
49
- FormsModule,
50
- TranslatePipe,
51
- MatDialogTitle,
52
- MatDialogActions,
53
- MatButton,
54
- MatDialogContent,
55
- MatDialogClose
56
- ], template: "<div mat-dialog-title>\n {{ titulo | translate }}\n</div>\n\n<form (ngSubmit)=\"confirma(form)\" #form=\"ngForm\">\n <div mat-dialog-content>\n\n <p [innerHTML]=\"mensagem | translate\"></p>\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-stroked-button color=\"accent\">\n {{ okLabel | translate }}\n </button>\n @if (!!cancelLabel) {\n <button mat-flat-button color=\"warn\" type=\"button\" mat-dialog-close>\n {{ cancelLabel | translate }}\n </button>\n }\n </div>\n</form>\n", styles: [".mat-mdc-dialog-content{width:95vw;max-width:280px;min-width:auto;margin:10px 60px;text-align:center;min-height:120px;display:flex;flex-direction:column;justify-content:center}[mat-dialog-title]{text-align:center;margin:40px 60px 20px}[mat-dialog-actions]{justify-content:center;margin:20px 60px 40px;flex-direction:row}@media (max-width: 750px){.mat-mdc-dialog-content{margin:10px 20px}}\n"] }]
57
- }], ctorParameters: () => [{ type: undefined, decorators: [{
58
- type: Inject,
59
- args: [MAT_DIALOG_DATA]
60
- }] }, { type: i1.MatDialogRef }] });
61
-
62
- class DialogIframeComponent {
63
- dialogRef;
64
- titulo;
65
- url;
66
- iframe;
67
- constructor(dados, dialogRef, sanitizer) {
68
- this.dialogRef = dialogRef;
69
- this.titulo = dados.titulo;
70
- this.url = sanitizer.bypassSecurityTrustResourceUrl(dados.url);
71
- }
72
- ngAfterViewInit() {
73
- registerDialogOnIframe(this.iframe.nativeElement, () => this.close());
74
- }
75
- returnValue() {
76
- const fraContent = this.iframe.nativeElement.contentDocument ||
77
- this.iframe.nativeElement.contentWindow?.document;
78
- if (fraContent) {
79
- const divRetornoValue = fraContent.getElementById('returnValue');
80
- if (divRetornoValue) {
81
- const returnValue = divRetornoValue.innerText;
82
- if (returnValue) {
83
- return JSON.parse(returnValue);
84
- }
85
- }
86
- }
87
- return undefined;
88
- }
89
- close() {
90
- this.dialogRef.close(this.returnValue());
91
- }
92
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DialogIframeComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
93
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: DialogIframeComponent, isStandalone: true, selector: "mcl-dialog-iframe", viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: "<div mat-dialog-title >\n <h2>{{titulo}}</h2>\n <button mat-icon-button mat-dialog-close class=\"pull-right\" tabindex=\"-1\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div mat-dialog-content>\n <iframe #iframe width=\"560\" height=\"315\" [src]=\"url\" (close)=\"close()\" frameborder=\"0\"\n ></iframe>\n</div>\n", styles: ["[mat-dialog-title]{display:flex}[mat-dialog-title] h2{font-size:25px;flex:1 1 auto;margin:0 0 20px}[mat-dialog-title] mat-icon{vertical-align:middle}mat-dialog-content{margin:-24px;width:calc(100% + 48px);padding:0}mat-dialog-content iframe{width:100%;height:60vh;border:0}\n"], dependencies: [{ kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
94
- }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DialogIframeComponent, decorators: [{
96
- type: Component,
97
- args: [{ selector: 'mcl-dialog-iframe', imports: [
98
- MatDialogContent,
99
- MatIconButton,
100
- MatDialogTitle,
101
- MatIcon,
102
- MatDialogClose
103
- ], template: "<div mat-dialog-title >\n <h2>{{titulo}}</h2>\n <button mat-icon-button mat-dialog-close class=\"pull-right\" tabindex=\"-1\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div mat-dialog-content>\n <iframe #iframe width=\"560\" height=\"315\" [src]=\"url\" (close)=\"close()\" frameborder=\"0\"\n ></iframe>\n</div>\n", styles: ["[mat-dialog-title]{display:flex}[mat-dialog-title] h2{font-size:25px;flex:1 1 auto;margin:0 0 20px}[mat-dialog-title] mat-icon{vertical-align:middle}mat-dialog-content{margin:-24px;width:calc(100% + 48px);padding:0}mat-dialog-content iframe{width:100%;height:60vh;border:0}\n"] }]
104
- }], ctorParameters: () => [{ type: undefined, decorators: [{
105
- type: Inject,
106
- args: [MAT_DIALOG_DATA]
107
- }] }, { type: i1.MatDialogRef }, { type: i2$1.DomSanitizer }], propDecorators: { iframe: [{
108
- type: ViewChild,
109
- args: ['iframe']
110
- }] } });
111
- function registerDialogOnIframe(iframe, callback) {
112
- window.addEventListener('dialogIframeClosed', () => callback());
113
- }
114
- function closeDialogIframe(returnValue) {
115
- if (returnValue) {
116
- const returnDiv = document.createElement('div');
117
- returnDiv.id = 'returnValue';
118
- returnDiv.innerText = JSON.stringify(returnValue);
119
- returnDiv.style.display = 'none';
120
- document.body.appendChild(returnDiv);
121
- }
122
- window.parent.dispatchEvent(new Event('dialogIframeClosed'));
123
- }
124
-
125
- const SIDEBAR_MODAL_DATA = new InjectionToken('mainclass.SIDEBAR_MODAL_DATA');
126
- const SIDEBAR_MODAL_OPTIONS = new InjectionToken('mainclass.SIDEBAR_MODAL_OPTIONS');
127
- class SidebarModalRef {
128
- $closeSubject = new Subject();
129
- size;
130
- constructor(options) {
131
- this.size = options?.size || 'auto';
132
- }
133
- afterClosed() {
134
- return this.$closeSubject.asObservable();
135
- }
136
- close(result) {
137
- this.$closeSubject.next(result);
138
- this.$closeSubject.complete();
139
- }
140
- }
141
-
142
- class ModalTemplateComponent {
143
- modalRef;
144
- config;
145
- constructor(modalRef, config) {
146
- this.modalRef = modalRef;
147
- this.config = config;
148
- }
149
- get fixed() {
150
- return !this.config.container;
151
- }
152
- get size() {
153
- return this.config.size;
154
- }
155
- close() {
156
- if (this.config.closeable || this.config.closeable === undefined) {
157
- this.modalRef.close();
158
- }
159
- }
160
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalTemplateComponent, deps: [{ token: SidebarModalRef }, { token: SIDEBAR_MODAL_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
161
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: ModalTemplateComponent, isStandalone: true, selector: "mcl-sidebar-modal-template", host: { listeners: { "click": "close()" } }, ngImport: i0, template: "<div class=\"sidebar\" @modal (click)=\"$event.stopPropagation()\"\n [ngClass]=\"{absolute: !fixed}\">\n <div class=\"inner {{size}}\"\n (click)=\"$event.stopPropagation()\">\n <ng-content select=\"br-modal-content\"></ng-content>\n </div>\n</div>\n", styles: [":host{position:fixed;inset:0;z-index:998;display:block;background:transparent}.sidebar{position:fixed;top:0;bottom:0;right:0;width:500px;background:#fff;box-shadow:0 0 10px #0000004d;z-index:999;padding:30px;overflow-y:auto}.sidebar.small{width:300px}.sidebar.medium{width:500px}.sidebar.large{width:800px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
162
- trigger('modal', [
163
- transition(':enter', [
164
- style({ maxWidth: 0 }),
165
- query('.inner', style({ opacity: 0 })),
166
- animate('200ms', style({ maxWidth: 800 })),
167
- query('.inner', animate('200ms', style({ opacity: 1 }))),
168
- ]),
169
- transition(':leave', [
170
- query('.inner', style({ opacity: 1 })),
171
- style({ maxWidth: 800 }),
172
- query('.inner', animate('200ms', style({ opacity: 0 }))),
173
- animate('200ms', style({ maxWidth: 0 })),
174
- ])
175
- ])
176
- ] });
177
- }
178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalTemplateComponent, decorators: [{
179
- type: Component,
180
- args: [{ selector: 'mcl-sidebar-modal-template', imports: [
181
- NgClass
182
- ], animations: [
183
- trigger('modal', [
184
- transition(':enter', [
185
- style({ maxWidth: 0 }),
186
- query('.inner', style({ opacity: 0 })),
187
- animate('200ms', style({ maxWidth: 800 })),
188
- query('.inner', animate('200ms', style({ opacity: 1 }))),
189
- ]),
190
- transition(':leave', [
191
- query('.inner', style({ opacity: 1 })),
192
- style({ maxWidth: 800 }),
193
- query('.inner', animate('200ms', style({ opacity: 0 }))),
194
- animate('200ms', style({ maxWidth: 0 })),
195
- ])
196
- ])
197
- ], template: "<div class=\"sidebar\" @modal (click)=\"$event.stopPropagation()\"\n [ngClass]=\"{absolute: !fixed}\">\n <div class=\"inner {{size}}\"\n (click)=\"$event.stopPropagation()\">\n <ng-content select=\"br-modal-content\"></ng-content>\n </div>\n</div>\n", styles: [":host{position:fixed;inset:0;z-index:998;display:block;background:transparent}.sidebar{position:fixed;top:0;bottom:0;right:0;width:500px;background:#fff;box-shadow:0 0 10px #0000004d;z-index:999;padding:30px;overflow-y:auto}.sidebar.small{width:300px}.sidebar.medium{width:500px}.sidebar.large{width:800px}\n"] }]
198
- }], ctorParameters: () => [{ type: SidebarModalRef }, { type: undefined, decorators: [{
199
- type: Inject,
200
- args: [SIDEBAR_MODAL_OPTIONS]
201
- }] }], propDecorators: { close: [{
202
- type: HostListener,
203
- args: ['click']
204
- }] } });
205
-
206
- class DialogService {
207
- appRef;
208
- injector;
209
- dialog;
210
- constructor(appRef, injector, dialog) {
211
- this.appRef = appRef;
212
- this.injector = injector;
213
- this.dialog = dialog;
214
- }
215
- openSidebar(component, options) {
216
- const dialogRef = new SidebarModalRef(options);
217
- const container = options?.container ?? document.body;
218
- const providers = [
219
- {
220
- provide: SIDEBAR_MODAL_OPTIONS,
221
- useValue: {
222
- type: 'normal',
223
- size: 'medium',
224
- ...(options || {})
225
- }
226
- },
227
- { provide: SIDEBAR_MODAL_DATA, useValue: options?.data },
228
- { provide: SidebarModalRef, useValue: dialogRef }
229
- ];
230
- const newComponent = createComponent(component, {
231
- environmentInjector: createEnvironmentInjector(providers, this.injector)
232
- });
233
- const modal = createComponent(ModalTemplateComponent, {
234
- environmentInjector: createEnvironmentInjector(providers, this.injector),
235
- projectableNodes: [
236
- [newComponent.location.nativeElement],
237
- ],
238
- });
239
- container.appendChild(modal.location.nativeElement);
240
- // Attach views to the changeDetection cycle
241
- this.appRef.attachView(newComponent.hostView);
242
- this.appRef.attachView(modal.hostView);
243
- dialogRef.afterClosed().subscribe(async () => {
244
- this.appRef.detachView(newComponent.hostView);
245
- this.appRef.detachView(modal.hostView);
246
- modal.destroy();
247
- newComponent.destroy();
248
- setTimeout(() => {
249
- if (container.contains(modal.location.nativeElement)) {
250
- container.removeChild(modal.location.nativeElement);
251
- }
252
- }, 300);
253
- });
254
- return dialogRef;
255
- }
256
- confirma(mensagem, config = {}) {
257
- return this.dialog.open(DialogConfirmacaoComponent, {
258
- data: {
259
- titulo: config.titulo || 'mcl.dialog.confirmacao',
260
- mensagem,
261
- okLabel: config.okLabel || 'mcl.dialog.sim',
262
- cancelLabel: config.cancelLabel || 'mcl.dialog.nao'
263
- }
264
- }).afterClosed().pipe(map(result => !!result));
265
- }
266
- informa(mensagem, config = {}) {
267
- return this.dialog.open(DialogConfirmacaoComponent, {
268
- data: {
269
- titulo: config.titulo || 'mcl.dialog.informacao',
270
- mensagem,
271
- okLabel: config.okLabel || 'mcl.dialog.ok',
272
- }
273
- }).afterClosed().pipe(map(result => !!result));
274
- }
275
- iframe(url, titulo) {
276
- if (!!window.parent && window.parent !== window) {
277
- window.location.href = url;
278
- return EMPTY;
279
- }
280
- else {
281
- return this.dialog.open(DialogIframeComponent, {
282
- data: {
283
- titulo,
284
- url,
285
- },
286
- panelClass: 'dialog-frame',
287
- }).afterClosed();
288
- }
289
- }
290
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DialogService, deps: [{ token: i0.ApplicationRef }, { token: i0.Injector }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
291
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DialogService, providedIn: 'root' });
292
- }
293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DialogService, decorators: [{
294
- type: Injectable,
295
- args: [{
296
- providedIn: 'root'
297
- }]
298
- }], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.Injector }, { type: i1.MatDialog }] });
299
-
300
- class ModalComponent {
301
- template;
302
- constructor(template) {
303
- this.template = template;
304
- }
305
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalComponent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Component });
306
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: ModalComponent, isStandalone: true, selector: "mcl-modal", ngImport: i0, template: "<mcl-sidebar-modal-template>\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n</mcl-sidebar-modal-template>\n", styles: [""], dependencies: [{ kind: "component", type: ModalTemplateComponent, selector: "mcl-sidebar-modal-template" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
307
- }
308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalComponent, decorators: [{
309
- type: Component,
310
- args: [{ selector: 'mcl-modal', imports: [
311
- ModalTemplateComponent,
312
- NgTemplateOutlet
313
- ], template: "<mcl-sidebar-modal-template>\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n</mcl-sidebar-modal-template>\n" }]
314
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
315
-
316
- class ModalCloseDirective {
317
- modalRef;
318
- constructor(modalRef) {
319
- this.modalRef = modalRef;
320
- }
321
- onClick() {
322
- this.modalRef.close();
323
- }
324
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalCloseDirective, deps: [{ token: SidebarModalRef }], target: i0.ɵɵFactoryTarget.Directive });
325
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ModalCloseDirective, isStandalone: true, selector: "[mclSidebarModalClose]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
326
- }
327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalCloseDirective, decorators: [{
328
- type: Directive,
329
- args: [{
330
- selector: '[mclSidebarModalClose]',
331
- }]
332
- }], ctorParameters: () => [{ type: SidebarModalRef }], propDecorators: { onClick: [{
333
- type: HostListener,
334
- args: ['click']
335
- }] } });
336
-
337
- class ModalFooterDirective {
338
- constructor() { }
339
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
340
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ModalFooterDirective, isStandalone: true, selector: "[mclSidebarModalFooter]", host: { styleAttribute: "border-top: 1px solid #ddd; margin: 20px -30px -300px; padding: 10px 30px 30px;display: flex; flex-direction: row-reverse; gap: 20px" }, ngImport: i0 });
341
- }
342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalFooterDirective, decorators: [{
343
- type: Directive,
344
- args: [{
345
- selector: '[mclSidebarModalFooter]',
346
- host: {
347
- 'style': 'border-top: 1px solid #ddd; margin: 20px -30px -300px; padding: 10px 30px 30px;display: flex; flex-direction: row-reverse; gap: 20px'
348
- }
349
- }]
350
- }], ctorParameters: () => [] });
351
-
352
- class ModalHeaderDirective {
353
- constructor() { }
354
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
355
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ModalHeaderDirective, isStandalone: true, selector: "[mclSidebarModalHeader]", host: { styleAttribute: "border-bottom: 1px solid #ddd; margin: -30px -30px 20px; padding: 30px 30px 10px" }, ngImport: i0 });
356
- }
357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalHeaderDirective, decorators: [{
358
- type: Directive,
359
- args: [{
360
- selector: '[mclSidebarModalHeader]',
361
- host: {
362
- 'style': 'border-bottom: 1px solid #ddd; margin: -30px -30px 20px; padding: 30px 30px 10px'
363
- }
364
- }]
365
- }], ctorParameters: () => [] });
366
-
367
- class ModalBodyDirective {
368
- config;
369
- constructor(config) {
370
- this.config = config;
371
- }
372
- get size() {
373
- return this.config.size;
374
- }
375
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalBodyDirective, deps: [{ token: SIDEBAR_MODAL_OPTIONS }], target: i0.ɵɵFactoryTarget.Directive });
376
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ModalBodyDirective, isStandalone: true, selector: "[mclSidebarModalBody]", ngImport: i0 });
377
- }
378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ModalBodyDirective, decorators: [{
379
- type: Directive,
380
- args: [{
381
- selector: '[mclSidebarModalBody]',
382
- }]
383
- }], ctorParameters: () => [{ type: undefined, decorators: [{
384
- type: Inject,
385
- args: [SIDEBAR_MODAL_OPTIONS]
386
- }] }] });
387
-
388
- /**
389
- * Generated bundle index. Do not edit.
390
- */
391
-
392
- export { DialogConfirmacaoComponent, DialogIframeComponent, DialogService, ModalBodyDirective, ModalCloseDirective, ModalComponent, ModalFooterDirective, ModalHeaderDirective, ModalTemplateComponent, SIDEBAR_MODAL_DATA, SIDEBAR_MODAL_OPTIONS, SidebarModalRef, closeDialogIframe };
393
- //# sourceMappingURL=main-class-componentes-dialog.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main-class-componentes-dialog.mjs","sources":["../../../../projects/main-class/componentes/dialog/src/dialog-confirmacao/dialog-confirmacao.component.ts","../../../../projects/main-class/componentes/dialog/src/dialog-confirmacao/dialog-confirmacao.component.html","../../../../projects/main-class/componentes/dialog/src/dialog-iframe/dialog-iframe.component.ts","../../../../projects/main-class/componentes/dialog/src/dialog-iframe/dialog-iframe.component.html","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/sidebar-modal-ref.ts","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal-template/modal-template.component.ts","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal-template/modal-template.component.html","../../../../projects/main-class/componentes/dialog/src/dialog.service.ts","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal.component.ts","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal.component.html","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal-template/modal-close.directive.ts","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal-template/modal-footer.directive.ts","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal-template/modal-header.directive.ts","../../../../projects/main-class/componentes/dialog/src/dialog-sidebar/modal-template/modal-body.directive.ts","../../../../projects/main-class/componentes/dialog/main-class-componentes-dialog.ts"],"sourcesContent":["import {Component, Inject, OnInit} from '@angular/core';\nimport {\n MAT_DIALOG_DATA,\n MatDialogActions, MatDialogClose,\n MatDialogContent,\n MatDialogRef,\n MatDialogTitle\n} from '@angular/material/dialog';\nimport {FormsModule, NgForm} from '@angular/forms';\nimport {TranslatePipe} from '@ngx-translate/core';\nimport {MatButton} from '@angular/material/button';\n\nexport interface DialogConfirmacaoData {\n titulo: string;\n mensagem: string;\n okLabel: string;\n cancelLabel?: string;\n}\n\n@Component({\n selector: 'mcl-dialog-confirmacao',\n templateUrl: './dialog-confirmacao.component.html',\n imports: [\n FormsModule,\n TranslatePipe,\n MatDialogTitle,\n MatDialogActions,\n MatButton,\n MatDialogContent,\n MatDialogClose\n ],\n styleUrls: ['./dialog-confirmacao.component.scss']\n})\nexport class DialogConfirmacaoComponent implements OnInit {\n\n constructor(\n @Inject(MAT_DIALOG_DATA) private data: DialogConfirmacaoData,\n private dialogRef: MatDialogRef<any>,\n ) {\n }\n\n get titulo() {\n return this.data.titulo;\n }\n\n get mensagem() {\n return this.data.mensagem;\n }\n\n get okLabel() {\n return this.data.okLabel;\n }\n\n get cancelLabel() {\n return this.data.cancelLabel;\n }\n\n ngOnInit(): void {\n }\n\n confirma(form: NgForm) {\n if (!form.valid) {\n return;\n }\n\n this.dialogRef.close(true);\n }\n}\n","<div mat-dialog-title>\n {{ titulo | translate }}\n</div>\n\n<form (ngSubmit)=\"confirma(form)\" #form=\"ngForm\">\n <div mat-dialog-content>\n\n <p [innerHTML]=\"mensagem | translate\"></p>\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-stroked-button color=\"accent\">\n {{ okLabel | translate }}\n </button>\n @if (!!cancelLabel) {\n <button mat-flat-button color=\"warn\" type=\"button\" mat-dialog-close>\n {{ cancelLabel | translate }}\n </button>\n }\n </div>\n</form>\n","import {AfterViewInit, Component, ElementRef, Inject, ViewChild} from '@angular/core';\nimport {\n MAT_DIALOG_DATA,\n MatDialogClose,\n MatDialogContent,\n MatDialogRef,\n MatDialogTitle\n} from '@angular/material/dialog';\nimport {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser';\nimport {MatIconButton} from '@angular/material/button';\nimport {MatIcon} from '@angular/material/icon';\n\nexport interface DialogIframData {\n url: string;\n titulo: string;\n}\n\n@Component({\n selector: 'mcl-dialog-iframe',\n templateUrl: './dialog-iframe.component.html',\n imports: [\n MatDialogContent,\n MatIconButton,\n MatDialogTitle,\n MatIcon,\n MatDialogClose\n ],\n styleUrls: ['./dialog-iframe.component.scss']\n})\nexport class DialogIframeComponent implements AfterViewInit {\n\n titulo: string;\n url: SafeResourceUrl;\n\n @ViewChild('iframe') iframe!: ElementRef;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) dados: DialogIframData,\n private dialogRef: MatDialogRef<any>,\n sanitizer: DomSanitizer,\n ) {\n this.titulo = dados.titulo;\n this.url = sanitizer.bypassSecurityTrustResourceUrl(dados.url);\n }\n\n ngAfterViewInit() {\n registerDialogOnIframe(this.iframe.nativeElement, () => this.close());\n }\n\n private returnValue() {\n const fraContent = this.iframe.nativeElement.contentDocument ||\n this.iframe.nativeElement.contentWindow?.document;\n\n if (fraContent) {\n const divRetornoValue = fraContent.getElementById('returnValue');\n\n if (divRetornoValue) {\n const returnValue = divRetornoValue.innerText;\n\n if (returnValue) {\n return JSON.parse(returnValue);\n }\n }\n }\n\n return undefined;\n }\n\n close() {\n this.dialogRef.close(this.returnValue());\n }\n}\n\nfunction registerDialogOnIframe(iframe: any, callback: any) {\n window.addEventListener('dialogIframeClosed', () => callback());\n}\n\nexport function closeDialogIframe(returnValue?: any) {\n if (returnValue) {\n const returnDiv = document.createElement('div');\n\n returnDiv.id = 'returnValue';\n returnDiv.innerText = JSON.stringify(returnValue);\n returnDiv.style.display = 'none';\n\n document.body.appendChild(returnDiv);\n }\n\n window.parent.dispatchEvent(new Event('dialogIframeClosed'));\n}\n","<div mat-dialog-title >\n <h2>{{titulo}}</h2>\n <button mat-icon-button mat-dialog-close class=\"pull-right\" tabindex=\"-1\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div mat-dialog-content>\n <iframe #iframe width=\"560\" height=\"315\" [src]=\"url\" (close)=\"close()\" frameborder=\"0\"\n ></iframe>\n</div>\n","import {Observable, Subject} from \"rxjs\";\nimport {InjectionToken} from \"@angular/core\";\n\nexport const SIDEBAR_MODAL_DATA = new InjectionToken<any>('mainclass.SIDEBAR_MODAL_DATA');\n\nexport const SIDEBAR_MODAL_OPTIONS = new InjectionToken<SidebarModalOptions>('mainclass.SIDEBAR_MODAL_OPTIONS');\n\nexport interface SidebarModalOptions {\n size?: 'small' | 'medium' | 'large' | 'auto';\n closeable?: boolean;\n data?: any;\n container?: HTMLElement\n}\n\nexport class SidebarModalRef<T> {\n private $closeSubject: Subject<T | undefined> = new Subject();\n\n readonly size: 'small' | 'medium' | 'large' | 'auto';\n\n constructor(options?: SidebarModalOptions) {\n this.size = options?.size || 'auto';\n }\n\n afterClosed(): Observable<T | undefined> {\n return this.$closeSubject.asObservable();\n }\n\n close(result?: T) {\n this.$closeSubject.next(result);\n this.$closeSubject.complete()\n }\n}\n","import {Component, HostListener, Inject} from '@angular/core';\nimport {SIDEBAR_MODAL_OPTIONS, SidebarModalOptions, SidebarModalRef} from \"../sidebar-modal-ref\";\nimport {animate, query, style, transition, trigger} from \"@angular/animations\";\nimport {NgClass} from \"@angular/common\";\n\n@Component({\n selector: 'mcl-sidebar-modal-template',\n imports: [\n NgClass\n ],\n templateUrl: './modal-template.component.html',\n styleUrl: './modal-template.component.scss',\n animations: [\n trigger('modal', [\n transition(':enter', [\n style({maxWidth: 0}),\n query('.inner', style({opacity: 0})),\n animate('200ms', style({maxWidth: 800})),\n query('.inner', animate('200ms', style({opacity: 1}))),\n\n ]),\n transition(':leave', [\n query('.inner', style({opacity: 1})),\n style({maxWidth: 800}),\n query('.inner', animate('200ms', style({opacity: 0}))),\n animate('200ms', style({maxWidth: 0})),\n ])\n ])\n ]\n})\nexport class ModalTemplateComponent {\n\n constructor(\n public modalRef: SidebarModalRef<any>,\n @Inject(SIDEBAR_MODAL_OPTIONS) private config: SidebarModalOptions\n ) {\n }\n\n get fixed(): boolean {\n return !this.config.container;\n }\n\n get size() {\n return this.config.size;\n }\n\n @HostListener('click')\n close() {\n if (this.config.closeable || this.config.closeable === undefined) {\n this.modalRef.close();\n }\n }\n}\n","<div class=\"sidebar\" @modal (click)=\"$event.stopPropagation()\"\n [ngClass]=\"{absolute: !fixed}\">\n <div class=\"inner {{size}}\"\n (click)=\"$event.stopPropagation()\">\n <ng-content select=\"br-modal-content\"></ng-content>\n </div>\n</div>\n","import {\n ApplicationRef,\n createComponent,\n createEnvironmentInjector,\n EnvironmentInjector,\n Injectable,\n Injector,\n StaticProvider\n} from '@angular/core';\nimport {EMPTY, Observable} from 'rxjs';\nimport {MatDialog} from '@angular/material/dialog';\nimport {DialogConfirmacaoComponent, DialogConfirmacaoData} from './dialog-confirmacao/dialog-confirmacao.component';\nimport {map} from 'rxjs/operators';\nimport {DialogIframeComponent} from './dialog-iframe/dialog-iframe.component';\nimport {\n SIDEBAR_MODAL_DATA,\n SIDEBAR_MODAL_OPTIONS,\n SidebarModalOptions,\n SidebarModalRef\n} from './dialog-sidebar/sidebar-modal-ref';\nimport {ModalTemplateComponent} from './dialog-sidebar/modal-template/modal-template.component';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DialogService {\n\n constructor(\n private appRef: ApplicationRef,\n private injector: Injector,\n private dialog: MatDialog\n ) {\n }\n\n openSidebar<T = any>(component: any, options?: SidebarModalOptions): SidebarModalRef<T> {\n const dialogRef = new SidebarModalRef<T>(options);\n\n const container = options?.container ?? document.body;\n\n const providers = [\n {\n provide: SIDEBAR_MODAL_OPTIONS,\n useValue: {\n type: 'normal',\n size: 'medium',\n ...(options || {})\n }\n },\n {provide: SIDEBAR_MODAL_DATA, useValue: options?.data},\n {provide: SidebarModalRef, useValue: dialogRef}\n ] as Array<StaticProvider>;\n\n const newComponent = createComponent(component, {\n environmentInjector: createEnvironmentInjector(\n providers,\n this.injector as EnvironmentInjector,\n )\n });\n\n const modal = createComponent(ModalTemplateComponent, {\n environmentInjector: createEnvironmentInjector(\n providers,\n this.injector as EnvironmentInjector,\n ),\n projectableNodes: [\n [newComponent.location.nativeElement],\n ],\n });\n\n container.appendChild(modal.location.nativeElement);\n\n // Attach views to the changeDetection cycle\n this.appRef.attachView(newComponent.hostView);\n this.appRef.attachView(modal.hostView);\n\n dialogRef.afterClosed().subscribe(async () => {\n this.appRef.detachView(newComponent.hostView);\n this.appRef.detachView(modal.hostView);\n\n modal.destroy();\n newComponent.destroy();\n\n setTimeout(() => {\n if (container.contains(modal.location.nativeElement)) {\n container.removeChild(modal.location.nativeElement);\n }\n }, 300);\n\n });\n\n return dialogRef;\n }\n\n confirma(mensagem: string, config: {\n icon?: string,\n titulo?: string,\n okLabel?: string,\n cancelLabel?: string\n } = {}): Observable<boolean> {\n return this.dialog.open<DialogConfirmacaoComponent, DialogConfirmacaoData, boolean>(DialogConfirmacaoComponent, {\n data: {\n titulo: config.titulo || 'mcl.dialog.confirmacao',\n mensagem,\n okLabel: config.okLabel || 'mcl.dialog.sim',\n cancelLabel: config.cancelLabel || 'mcl.dialog.nao'\n }\n }).afterClosed().pipe(map(result => !!result));\n }\n\n informa(mensagem: string, config: {\n icon?: string,\n titulo?: string,\n okLabel?: string\n } = {}): Observable<boolean> {\n return this.dialog.open<DialogConfirmacaoComponent, DialogConfirmacaoData, boolean>(DialogConfirmacaoComponent, {\n data: {\n titulo: config.titulo || 'mcl.dialog.informacao',\n mensagem,\n okLabel: config.okLabel || 'mcl.dialog.ok',\n }\n }).afterClosed().pipe(map(result => !!result));\n }\n\n iframe(url: string, titulo: string): Observable<any> {\n if (!!window.parent && window.parent !== window) {\n window.location.href = url;\n return EMPTY;\n } else {\n return this.dialog.open(DialogIframeComponent, {\n data: {\n titulo,\n url,\n },\n panelClass: 'dialog-frame',\n }).afterClosed();\n }\n }\n}\n","import {Component, TemplateRef} from '@angular/core';\nimport {NgTemplateOutlet} from \"@angular/common\";\nimport {ModalTemplateComponent} from \"./modal-template/modal-template.component\";\n\n@Component({\n selector: 'mcl-modal',\n imports: [\n ModalTemplateComponent,\n NgTemplateOutlet\n ],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss'\n})\nexport class ModalComponent {\n\n constructor(\n public template: TemplateRef<any>\n ){}\n\n}\n","<mcl-sidebar-modal-template>\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n</mcl-sidebar-modal-template>\n","import {Directive, HostListener} from '@angular/core';\nimport {SidebarModalRef} from \"../sidebar-modal-ref\";\n\n@Directive({\n selector: '[mclSidebarModalClose]',\n})\nexport class ModalCloseDirective {\n\n constructor(\n private modalRef: SidebarModalRef<any>\n ) {\n }\n\n @HostListener('click')\n onClick() {\n this.modalRef.close();\n }\n\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[mclSidebarModalFooter]',\n host: {\n 'style': 'border-top: 1px solid #ddd; margin: 20px -30px -300px; padding: 10px 30px 30px;display: flex; flex-direction: row-reverse; gap: 20px'\n }\n})\nexport class ModalFooterDirective {\n\n constructor() { }\n\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[mclSidebarModalHeader]',\n host: {\n 'style': 'border-bottom: 1px solid #ddd; margin: -30px -30px 20px; padding: 30px 30px 10px'\n }\n})\nexport class ModalHeaderDirective {\n\n constructor() { }\n\n}\n","import {Directive, Inject} from '@angular/core';\nimport {SIDEBAR_MODAL_OPTIONS, SidebarModalOptions} from \"../sidebar-modal-ref\";\n\n@Directive({\n selector: '[mclSidebarModalBody]',\n})\nexport class ModalBodyDirective {\n\n constructor(\n @Inject(SIDEBAR_MODAL_OPTIONS) private config: SidebarModalOptions\n ) {\n }\n\n get size() {\n return this.config.size;\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1.SidebarModalRef"],"mappings":";;;;;;;;;;;;;;;MAiCa,0BAA0B,CAAA;AAGF,IAAA,IAAA;AACzB,IAAA,SAAA;IAFV,WACmC,CAAA,IAA2B,EACpD,SAA4B,EAAA;QADH,IAAI,CAAA,IAAA,GAAJ,IAAI;QAC7B,IAAS,CAAA,SAAA,GAAT,SAAS;;AAInB,IAAA,IAAI,MAAM,GAAA;AACR,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM;;AAGzB,IAAA,IAAI,Q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