@datarailsshared/datarailsshared 1.4.81 → 1.4.85-dragons

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 (26) hide show
  1. package/bundles/datarailsshared-datarailsshared.umd.js +297 -22
  2. package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
  3. package/datarailsshared-datarailsshared-1.4.85-dragons.tgz +0 -0
  4. package/datarailsshared-datarailsshared.d.ts +2 -0
  5. package/datarailsshared-datarailsshared.metadata.json +1 -1
  6. package/esm2015/datarailsshared-datarailsshared.js +3 -1
  7. package/esm2015/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.js +70 -0
  8. package/esm2015/lib/dr-dialog/components/dialog-wrapper/dialog-wrapper.component.js +89 -0
  9. package/esm2015/lib/dr-dialog/dialog.module.js +32 -0
  10. package/esm2015/lib/dr-dialog/interfaces/dialog-data.js +21 -0
  11. package/esm2015/lib/dr-dialog/services/dialog.service.js +75 -0
  12. package/esm2015/lib/dr-inputs/dr-select/dr-select.component.js +5 -3
  13. package/esm2015/lib/stepper/stepper.module.js +3 -3
  14. package/esm2015/public-api.js +5 -2
  15. package/fesm2015/datarailsshared-datarailsshared.js +282 -18
  16. package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
  17. package/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.d.ts +23 -0
  18. package/lib/dr-dialog/components/dialog-wrapper/dialog-wrapper.component.d.ts +24 -0
  19. package/lib/dr-dialog/dialog.module.d.ts +2 -0
  20. package/lib/dr-dialog/interfaces/dialog-data.d.ts +109 -0
  21. package/lib/dr-dialog/services/dialog.service.d.ts +27 -0
  22. package/lib/dr-inputs/dr-select/dr-select.component.d.ts +1 -0
  23. package/lib/stepper/stepper.module.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/public-api.d.ts +4 -1
  26. package/datarailsshared-datarailsshared-1.4.81.tgz +0 -0
@@ -1,16 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Component, ViewEncapsulation, Input, Output, ChangeDetectionStrategy, ChangeDetectorRef, forwardRef, ElementRef, Inject, PLATFORM_ID, ContentChildren, Renderer2, HostBinding, ContentChild, Pipe, TemplateRef, HostListener, Directive, ComponentFactoryResolver, ViewContainerRef, ViewChild, Injector, Injectable, Host, NgModule, Optional } from '@angular/core';
3
- import { FormControl, NG_VALUE_ACCESSOR, NgModel, FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
3
+ import { FormControl, NG_VALUE_ACCESSOR, FormGroup, NgModel, FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
4
4
  import { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS, MatNativeDateModule } from '@angular/material/core';
5
5
  import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS, MatMomentDateModule } from '@angular/material-moment-adapter';
6
6
  import * as momentImported from 'moment';
7
7
  import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
8
8
  import { Subject, from, merge, fromEvent, noop as noop$1, BehaviorSubject } from 'rxjs';
9
- import { startWith, switchMap, takeUntil, filter, skip, first, debounceTime, distinctUntilChanged } from 'rxjs/operators';
9
+ import { startWith, switchMap, takeUntil, filter, skip, first, catchError, debounceTime, distinctUntilChanged } from 'rxjs/operators';
10
10
  import { transition, style, animate, trigger, state } from '@angular/animations';
11
11
  import * as i1 from '@angular/cdk/overlay';
12
12
  import { Overlay, OverlayPositionBuilder, OverlayConfig } from '@angular/cdk/overlay';
13
13
  import { ComponentPortal } from '@angular/cdk/portal';
14
+ import * as i1$1 from '@angular/material/dialog';
15
+ import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
16
+ import * as _ from 'lodash';
14
17
  import { MatDatepickerModule, MatCalendar } from '@angular/material/datepicker';
15
18
  import { MatFormFieldModule } from '@angular/material/form-field';
16
19
  import { MatInputModule } from '@angular/material/input';
@@ -243,7 +246,7 @@ const MONTH_FORMATS = {
243
246
  monthYearA11yLabel: "MMMM YYYY"
244
247
  },
245
248
  };
246
- const ɵ0$5 = MONTH_FORMATS;
249
+ const ɵ0$6 = MONTH_FORMATS;
247
250
  class MonthTagComponent extends AnyTagComponent {
248
251
  constructor() {
249
252
  super();
@@ -302,7 +305,7 @@ MonthTagComponent.decorators = [
302
305
  useClass: MomentDateAdapter,
303
306
  deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
304
307
  },
305
- { provide: MAT_DATE_FORMATS, useValue: ɵ0$5 },
308
+ { provide: MAT_DATE_FORMATS, useValue: ɵ0$6 },
306
309
  ]
307
310
  },] }
308
311
  ];
@@ -423,7 +426,7 @@ const WEEK_FORMATS = {
423
426
  monthYearA11yLabel: "MMMM YYYY"
424
427
  },
425
428
  };
426
- const ɵ0$4 = WEEK_FORMATS;
429
+ const ɵ0$5 = WEEK_FORMATS;
427
430
  class WeekTagComponent extends AnyTagComponent {
428
431
  constructor() {
429
432
  super();
@@ -519,7 +522,7 @@ WeekTagComponent.decorators = [
519
522
  useClass: MomentDateAdapter,
520
523
  deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
521
524
  },
522
- { provide: MAT_DATE_FORMATS, useValue: ɵ0$4 },
525
+ { provide: MAT_DATE_FORMATS, useValue: ɵ0$5 },
523
526
  ]
524
527
  },] }
525
528
  ];
@@ -541,7 +544,7 @@ const YEAR_FORMATS = {
541
544
  monthYearA11yLabel: "MMMM YYYY"
542
545
  },
543
546
  };
544
- const ɵ0$3 = YEAR_FORMATS;
547
+ const ɵ0$4 = YEAR_FORMATS;
545
548
  class YearTagComponent extends AnyTagComponent {
546
549
  constructor() {
547
550
  super();
@@ -606,7 +609,7 @@ YearTagComponent.decorators = [
606
609
  useClass: MomentDateAdapter,
607
610
  deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
608
611
  },
609
- { provide: MAT_DATE_FORMATS, useValue: ɵ0$3 },
612
+ { provide: MAT_DATE_FORMATS, useValue: ɵ0$4 },
610
613
  ]
611
614
  },] }
612
615
  ];
@@ -720,7 +723,7 @@ const DAY_FORMATS = {
720
723
  monthYearA11yLabel: "MMMM YYYY"
721
724
  },
722
725
  };
723
- const ɵ0$2 = DAY_FORMATS;
726
+ const ɵ0$3 = DAY_FORMATS;
724
727
  class DayTagComponent extends AnyTagComponent {
725
728
  constructor() {
726
729
  super();
@@ -773,7 +776,7 @@ DayTagComponent.decorators = [
773
776
  useClass: MomentDateAdapter,
774
777
  deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
775
778
  },
776
- { provide: MAT_DATE_FORMATS, useValue: ɵ0$2 },
779
+ { provide: MAT_DATE_FORMATS, useValue: ɵ0$3 },
777
780
  ]
778
781
  },] }
779
782
  ];
@@ -1263,6 +1266,7 @@ class DrSelectComponent {
1263
1266
  this.items = [];
1264
1267
  this.appendTo = 'body';
1265
1268
  this.disabled = false;
1269
+ this.groupBy = null;
1266
1270
  this.optionWithDescription = false;
1267
1271
  this.keyDownFn = () => true;
1268
1272
  this.change = new EventEmitter();
@@ -1305,13 +1309,13 @@ class DrSelectComponent {
1305
1309
  DrSelectComponent.decorators = [
1306
1310
  { type: Component, args: [{
1307
1311
  selector: 'dr-select',
1308
- template: " <ng-select [(ngModel)]=\"selectedItem\"\n [items]=\"items\"\n [bindLabel]=\"bindLabel\"\n [bindValue]=\"bindValue\"\n [multiple]=\"multiple\"\n [addTag]=\"addTag\"\n [appendTo]=\"appendTo\"\n [clearable]=\"clearable\"\n [searchable]=\"searchable\"\n [hideSelected]=\"hideSelected\"\n [placeholder]=\"placeholder\"\n [loading]=\"loading\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [keyDownFn]=\"keyDownFn\"\n [searchFn]=\"searchFn\"\n [isOpen]=\"isOpen\"\n [attr.autofocus]=\"autofocus\"\n (change)=\"onChange(selectedItem); change.emit(selectedItem)\"\n (open)=\"open.emit($event)\"\n class=\"dr-select\">\n <ng-template *ngIf=\"optionHeaderTemplate\" ng-header-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionHeaderTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"labelTemplate\" ng-label-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionTemplate\" ng-option-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionWithDescription\" ng-option-tmp let-item=\"item\">\n <div class=\"dr-select__option-with-desc__wrapper\">\n <div>{{ item.name }}</div>\n <div class=\"dr-select__option-with-desc__description\"\n >{{ item?.description }}</div>\n </div>\n </ng-template>\n <ng-template *ngIf=\"optionFooterTemplate\" ng-footer-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionFooterTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n </ng-select>\n",
1312
+ template: " <ng-select [(ngModel)]=\"selectedItem\"\n [items]=\"items\"\n [bindLabel]=\"bindLabel\"\n [bindValue]=\"bindValue\"\n [multiple]=\"multiple\"\n [addTag]=\"addTag\"\n [appendTo]=\"appendTo\"\n [clearable]=\"clearable\"\n [searchable]=\"searchable\"\n [hideSelected]=\"hideSelected\"\n [placeholder]=\"placeholder\"\n [loading]=\"loading\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [keyDownFn]=\"keyDownFn\"\n [searchFn]=\"searchFn\"\n [isOpen]=\"isOpen\"\n [groupBy]=\"groupBy\"\n [attr.autofocus]=\"autofocus\"\n (change)=\"onChange(selectedItem); change.emit(selectedItem)\"\n (open)=\"open.emit($event)\"\n class=\"dr-select\">\n <ng-template *ngIf=\"optionHeaderTemplate\" ng-header-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionHeaderTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"labelTemplate\" ng-label-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionTemplate\" ng-option-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionWithDescription\" ng-option-tmp let-item=\"item\">\n <div class=\"dr-select__option-with-desc__wrapper\">\n <div>{{ item.name }}</div>\n <div class=\"dr-select__option-with-desc__description\"\n >{{ item?.description }}</div>\n </div>\n </ng-template>\n <ng-template *ngIf=\"optionFooterTemplate\" ng-footer-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionFooterTemplate\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"groupBy\" ng-optgroup-tmp let-item=\"item\">\n {{ item[groupBy] }}\n </ng-template>\n </ng-select>\n",
1309
1313
  providers: [{
1310
1314
  provide: NG_VALUE_ACCESSOR,
1311
1315
  useExisting: DrSelectComponent,
1312
1316
  multi: true
1313
1317
  }],
1314
- styles: [":host{width:100%;height:32px}:host.textView::ng-deep{width:auto}:host.textView::ng-deep ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#0b5af9}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow{border:none;width:auto;height:auto;display:flex;-webkit-text-decoration-line:none;text-decoration-line:none;top:0}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow:before{content:\"\\e959\";font-family:DataRails;font-size:24px;color:#000}:host.no-left-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}:host.no-right-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}:host.no-right-border ::ng-deep ng-select.ng-select .ng-select-container{border-right:none!important}:host.no-left-border ::ng-deep ng-select.ng-select .ng-select-container{border-left:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px!important;border:1px solid #C3C4CE;box-shadow:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container:hover{border-color:#85889c}:host ::ng-deep ng-select.ng-select .ng-select-container:focus-within{border-color:#21b8f1}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#151b3f;font-size:14px;font-weight:400}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#151a41;height:24px;padding:2px 8px;font-size:12px;margin:2px 2px 2px 0;background:#E5E6EA;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0 0 0 9px!important;color:#51566f;font-size:16px;font-weight:bold}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon,:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:hover{background:transparent!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#E5E6EA!important;border:1px solid #E5E6EA!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#bcbcbc!important}:host ::ng-deep ng-select.ng-select.ng-select-single.ng-invalid.ng-touched .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-multiple.ng-invalid.ng-touched .ng-select-container{border-color:#de2833}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select{border:1px solid #DBDEE3;border-radius:6px!important;margin-top:8px!important;overflow:hidden}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:empty{display:none}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;min-height:36px;padding:8px 12px;font-size:14px;line-height:22px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option>.ng-option-label{text-overflow:ellipsis;overflow:hidden}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{background:#fff}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#F6F7F8}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background:#F3F7FF;color:#151b3f}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected span,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked span{font-weight:normal!important}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:hover,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected:hover,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked:hover{background:#F6F7F8}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{max-width:97%;word-break:break-word;color:#4e566c;font-weight:400;font-size:12px;line-height:20px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected.ng-option-marked .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#0c142b}\n"]
1318
+ styles: [":host{width:100%;height:32px}:host.textView::ng-deep{width:auto}:host.textView::ng-deep ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#0b5af9}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow{border:none;width:auto;height:auto;display:flex;-webkit-text-decoration-line:none;text-decoration-line:none;top:0}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow:before{content:\"\\e959\";font-family:DataRails;font-size:24px;color:#000}:host.no-left-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}:host.no-right-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}:host.no-right-border ::ng-deep ng-select.ng-select .ng-select-container{border-right:none!important}:host.no-left-border ::ng-deep ng-select.ng-select .ng-select-container{border-left:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px!important;border:1px solid #C3C4CE;box-shadow:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container:hover{border-color:#85889c}:host ::ng-deep ng-select.ng-select .ng-select-container:focus-within{border-color:#21b8f1}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#151b3f;font-size:14px;font-weight:400}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#151a41;height:24px;padding:2px 8px;font-size:12px;margin:2px 2px 2px 0;background:#E5E6EA;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0 0 0 9px!important;color:#51566f;font-size:16px;font-weight:bold}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon,:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:hover{background:transparent!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#E5E6EA!important;border:1px solid #E5E6EA!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#bcbcbc!important}:host ::ng-deep ng-select.ng-select.ng-select-single.ng-invalid.ng-touched .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-multiple.ng-invalid.ng-touched .ng-select-container{border-color:#de2833}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select{border:1px solid #DBDEE3;border-radius:6px!important;margin-top:8px!important;overflow:hidden}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:empty{display:none}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;min-height:36px;padding:8px 12px;font-size:14px;line-height:22px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option>.ng-option-label{text-overflow:ellipsis;overflow:hidden}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{background:#fff}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#F6F7F8}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background:#F3F7FF;color:#151b3f}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected span,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked span{font-weight:normal!important}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:hover,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected:hover,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked:hover{background:#F6F7F8}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option-disabled[role=group]{font-size:14px;line-height:22px;color:#0c142b}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option-disabled[role=group]:not(:first-of-type){border-top:1px solid #BCBCBC}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{max-width:97%;word-break:break-word;color:#4e566c;font-weight:400;font-size:12px;line-height:20px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected.ng-option-marked .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#0c142b}\n"]
1315
1319
  },] }
1316
1320
  ];
1317
1321
  DrSelectComponent.ctorParameters = () => [
@@ -1333,6 +1337,7 @@ DrSelectComponent.propDecorators = {
1333
1337
  loading: [{ type: Input }],
1334
1338
  readonly: [{ type: Input }],
1335
1339
  disabled: [{ type: Input }],
1340
+ groupBy: [{ type: Input }],
1336
1341
  optionWithDescription: [{ type: Input }],
1337
1342
  id: [{ type: Input }],
1338
1343
  keyDownFn: [{ type: Input }],
@@ -2993,6 +2998,222 @@ DrErrorComponent.propDecorators = {
2993
2998
  label: [{ type: Input }]
2994
2999
  };
2995
3000
 
3001
+ class DialogWrapperComponent {
3002
+ constructor(dialogRef, dialogService, cdr, componentFactoryResolver, dialogData) {
3003
+ var _a, _b, _c, _d;
3004
+ this.dialogRef = dialogRef;
3005
+ this.dialogService = dialogService;
3006
+ this.cdr = cdr;
3007
+ this.componentFactoryResolver = componentFactoryResolver;
3008
+ this.dialogData = dialogData;
3009
+ this.class = ((_b = (_a = this.dialogData) === null || _a === void 0 ? void 0 : _a.theme) === null || _b === void 0 ? void 0 : _b.noThemeSizeClass) ? null : ((_d = (_c = this.dialogData) === null || _c === void 0 ? void 0 : _c.theme) === null || _d === void 0 ? void 0 : _d.themeSize) || 'medium-modal';
3010
+ this.saving$ = new BehaviorSubject(false);
3011
+ this.destroy$ = new Subject();
3012
+ }
3013
+ ngAfterViewInit() {
3014
+ if (!this.dialogData.child) {
3015
+ return new Error('Expected componentTypeChild');
3016
+ }
3017
+ const componentFactory = this.componentFactoryResolver.resolveComponentFactory(this.dialogData.child);
3018
+ this.childComponent = this.content.createComponent(componentFactory).instance;
3019
+ this.childComponent.closeDialog = this.closeDialog.bind(this);
3020
+ this.childComponent.onAcceptDialog = this.onAcceptDialog.bind(this);
3021
+ // pass data to component child
3022
+ if (this.dialogData.childData) {
3023
+ _.assign(this.childComponent, this.dialogData.childData);
3024
+ }
3025
+ // call component child init func - looks like double init
3026
+ // if (this.childComponent.ngOnInit) {
3027
+ // this.childComponent.ngOnInit();
3028
+ // }
3029
+ this.cdr.detectChanges();
3030
+ }
3031
+ closeDialog(data) {
3032
+ this.dialogRef.close(data || false);
3033
+ }
3034
+ onDecline() {
3035
+ this.dialogRef.close(undefined);
3036
+ }
3037
+ onAcceptDialog(data) {
3038
+ if (!this.childComponent) {
3039
+ this.dialogRef.close(data || true);
3040
+ return;
3041
+ }
3042
+ const funcName = this.dialogData.acceptButton.functions;
3043
+ if (this.childComponent[funcName])
3044
+ this.childComponent[funcName]();
3045
+ const loadFuncName = this.dialogData.acceptButton.loading;
3046
+ if (this.childComponent[loadFuncName])
3047
+ this.isLoading = this.childComponent[loadFuncName]();
3048
+ if (this.dialogData.confirmFn) {
3049
+ this.saving$.next(true);
3050
+ this.dialogData.confirmFn().pipe(takeUntil(this.destroy$), catchError(error => this.dialogService.throwErr(error, this.saving$))).subscribe(() => {
3051
+ this.saving$.next(false);
3052
+ this.dialogRef.close(data || true);
3053
+ });
3054
+ }
3055
+ if (this.childComponent && !this.childComponent[funcName]) {
3056
+ this.dialogRef.close(data || true);
3057
+ return;
3058
+ }
3059
+ }
3060
+ ngOnDestroy() {
3061
+ this.destroy$.next(null);
3062
+ this.destroy$.complete();
3063
+ }
3064
+ }
3065
+ DialogWrapperComponent.decorators = [
3066
+ { type: Component, args: [{
3067
+ selector: 'dr-dialog-wrapper',
3068
+ template: "<div class=\"dialog-wrapper\"\n [class.dialog-wrapper--confirmation-no-title]=\"dialogData.theme?.isConfirmation && !dialogData.title\">\n <i class=\"dr-icon-exit\" data-test=\"close_btn\" (click)=\"closeDialog()\" *ngIf=\"!dialogData?.hideCloseBtn\"></i>\n\n <div header class=\"dialog-wrapper__header\" *ngIf=\"dialogData.title\">\n <h1 class=\"dialog-wrapper__header__title\" data-test=\"dialogTitle\">{{dialogData.title}}</h1>\n <h1 class=\"dialog-wrapper__header__subtitle\" data-test=\"dialogSubtitle\"\n *ngIf=\"dialogData.subtitle\">{{dialogData.subtitle}}</h1>\n </div>\n <div class=\"dialog-wrapper__content\"\n [class.dialog-wrapper__content--no-padding]=\"dialogData.theme?.contentNoPadding\">\n <span *ngIf=\"dialogData.contentIcon?.class\" class=\"dialog-wrapper__content__icon\">\n <i [ngClass]=\"dialogData.contentIcon.class\" [style.color]=\"dialogData.contentIcon?.color || 'inherit'\"></i>\n </span>\n <span [innerHTML]=\"dialogData.content\"></span>\n <span #content class=\"dialog-wrapper__content__anchor\"> </span>\n </div>\n <div footer class=\"dialog-wrapper__footer\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <div class=\"dialog-wrapper__footer__buttons\">\n <dr-button *ngIf=\"dialogData.customButton\"\n (click)=\"onDecline()\"\n [theme]=\"'secondary'\"\n [isLoading]=\"isLoading\"\n data-test=\"declineBtn\"\n [drTooltip]=\"dialogData.tooltips?.custom\">\n {{dialogData.customButton.label}}\n </dr-button>\n <dr-button *ngIf=\"dialogData.cancelButton\"\n (click)=\"closeDialog()\"\n [theme]=\"'secondary'\"\n data-test=\"closeBtn\"\n [drTooltip]=\"dialogData.tooltips?.cancel\">\n {{dialogData.cancelButton.label}}\n </dr-button>\n <dr-button *ngIf=\"dialogData.acceptButton\"\n (click)=\"onAcceptDialog()\"\n [theme]=\"dialogData.acceptButton?.theme || 'primary'\"\n [isLoading]=\"isLoading\"\n data-test=\"acceptBtn\"\n [drTooltip]=\"dialogData.tooltips?.accept\">\n {{dialogData.acceptButton.label}}\n </dr-button>\n </div>\n </div>\n</div>\n",
3069
+ styles: [":host.small-modal{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.large-modal{min-width:750px;max-width:750px}:host.medium-large-modal{min-width:669px;max-width:669px}:host.xl-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:1100px}:host.xl-custom-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:100%}::ng-deep .dialog-wrapper{display:flex;justify-content:space-between;flex-direction:column;position:relative}::ng-deep .dialog-wrapper>.dr-icon-exit{z-index:1;position:absolute;right:32px;top:20px;color:#51566f;cursor:pointer}::ng-deep .dialog-wrapper__header{display:flex;flex-direction:column;padding:8px 52px 8px 32px;border-bottom:1px solid #e5e6ea}::ng-deep .dialog-wrapper__header__title{color:#151b3f;position:static;font-weight:600;font-size:18px;line-height:24px}::ng-deep .dialog-wrapper__header__subtitle{font-size:14px;line-height:20px;margin:0}::ng-deep .dialog-wrapper--confirmation-no-title{padding-top:16px;height:100%}::ng-deep .dialog-wrapper__content{overflow-y:inherit;font-size:14px;font-weight:400;line-height:22px;padding:24px 32px 32px}::ng-deep .dialog-wrapper__content__anchor{display:none}::ng-deep .dialog-wrapper__content--no-padding{padding:0}::ng-deep .dialog-wrapper__content__icon{margin-right:10px;top:5px;position:relative}::ng-deep .dialog-wrapper__footer{border-top:1px solid #e5e6ea}::ng-deep .dialog-wrapper__footer__buttons{display:flex;justify-content:flex-end;padding-top:10px;padding-right:32px;padding-bottom:11px}::ng-deep .dialog-wrapper__footer__buttons dr-button:nth-child(n+2){margin-left:12px}\n"]
3070
+ },] }
3071
+ ];
3072
+ DialogWrapperComponent.ctorParameters = () => [
3073
+ { type: MatDialogRef },
3074
+ { type: DialogService },
3075
+ { type: ChangeDetectorRef },
3076
+ { type: ComponentFactoryResolver },
3077
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
3078
+ ];
3079
+ DialogWrapperComponent.propDecorators = {
3080
+ content: [{ type: ViewChild, args: ['content', { read: ViewContainerRef },] }],
3081
+ class: [{ type: HostBinding, args: ['class',] }]
3082
+ };
3083
+
3084
+ class DialogModalWrapperComponent {
3085
+ constructor(dialogRef, dialogService, dialogData) {
3086
+ var _a, _b;
3087
+ this.dialogRef = dialogRef;
3088
+ this.dialogService = dialogService;
3089
+ this.dialogData = dialogData;
3090
+ this.class = (_b = (_a = this === null || this === void 0 ? void 0 : this.dialogData) === null || _a === void 0 ? void 0 : _a.theme) === null || _b === void 0 ? void 0 : _b.themeSize;
3091
+ this.saving$ = new BehaviorSubject(false);
3092
+ this.isLoading = false;
3093
+ this.showServerErrorMessage = false;
3094
+ this.destroy$ = new Subject();
3095
+ }
3096
+ ngOnInit() {
3097
+ if (this.dialogData.fields) {
3098
+ this.form = new FormGroup(this.dialogData.fields.reduce((accumulator, currentValue) => {
3099
+ const currentFormControl = {};
3100
+ currentFormControl[currentValue.name] = new FormControl(currentValue.default || null, currentValue.validators || []);
3101
+ return Object.assign(accumulator, currentFormControl);
3102
+ }, {}));
3103
+ }
3104
+ }
3105
+ onAccept() {
3106
+ if (!this.dialogData.confirmFn)
3107
+ return this.dialogRef.close(this.form.value || true);
3108
+ this.isLoading = true;
3109
+ this.saving$.next(true);
3110
+ this.dialogData.confirmFn(this.form.value)
3111
+ .pipe(takeUntil(this.destroy$), catchError((err) => {
3112
+ this.showServerErrorMessage = true;
3113
+ this.isLoading = false;
3114
+ return this.dialogService.throwErr(err, this.saving$);
3115
+ }))
3116
+ .subscribe(() => {
3117
+ this.saving$.next(false);
3118
+ this.dialogRef.close(this.form.value || true);
3119
+ });
3120
+ }
3121
+ footerAction() {
3122
+ this.dialogData.footerTemplateData.action(this.form.value);
3123
+ }
3124
+ closeDialog() {
3125
+ this.dialogRef.close(false);
3126
+ }
3127
+ ngOnDestroy() {
3128
+ this.destroy$.next(null);
3129
+ this.destroy$.complete();
3130
+ }
3131
+ }
3132
+ DialogModalWrapperComponent.decorators = [
3133
+ { type: Component, args: [{
3134
+ selector: 'dr-dialog-modal-wrapper',
3135
+ template: "<div header class=\"header-dialog\">\n <h1 class=\"title-dialog\" data-test=\"modalTitle\">{{dialogData.title}}</h1>\n <i mat-icon-button *ngIf=\"!dialogData.hideCloseBtn\" (click)=\"closeDialog()\" class=\"dr-icon-exit icon-close\"\n data-test=\"xBtn\"></i>\n</div>\n<div *ngIf=\"dialogData.content\" class=\"content-dialog\">\n <ng-container>{{dialogData.content}}</ng-container>\n <span #content class=\"content-anchor\"></span>\n</div>\n<form *ngIf=\"dialogData.fields\" [formGroup]=\"form\" class=\"dr-smart-from\">\n <div class=\"dr-smart-form_wrapper\">\n <div *ngFor=\"let field of dialogData.fields\" class=\"dr-smart-form_group\"\n [ngStyle]=\"{'display': field.isLabelFullWidth ? 'block' : 'flex'}\">\n <label *ngIf=\"field.label\" [ngClass]=\"field.isLabelFullWidth ? 'col-md-12 mb-2' : 'col-md-2'\"\n class=\"label p-0 d-flex align-items-center\">{{field.label}}</label>\n <div class=\"input-group p-0\"\n [ngClass]=\"{'col-md-10': field.label && !field.isLabelFullWidth, 'col-md-12': !field.label || field.isLabelFullWidth}\">\n <dr-select *ngIf=\"field.type === 'select'\"\n [searchable]=\"dialogData.searchable\"\n [clearable]=\"dialogData.clearable\"\n [formControlName]=\"field.name\"\n [bindLabel]=\"field.bindLabel || null\"\n [bindValue]=\"field.bindValue || null\"\n [selectedItem]=\"field.default\"\n [items]=\"field.items || (field.items$ | async)\"\n [required]=\"true\"\n [placeholder]=\"field.placeholder\">\n <ng-template *ngIf=\"dialogData?.footerTemplateData\" #optionFooterTemplate>\n <button (click)=\"footerAction()\" class=\"dr-select-footer__btn\">\n <i *ngIf=\"dialogData.footerTemplateData.icon\"\n class=\"{{dialogData.footerTemplateData.icon}}\"></i>\n {{dialogData.footerTemplateData.label}}</button>\n </ng-template>\n </dr-select>\n <dr-input *ngIf=\"field.type === 'input'\" data-test=\"modalInput\" class=\"form-control\"\n [formControlName]=\"field.name\" [placeholder]=\"field.placeholder\"></dr-input>\n <label class=\"form-error-alert\" *ngIf=\"dialogData.errorMessage && !form.pristine && form.invalid\">\n {{dialogData.errorMessage}}\n </label>\n <label class=\"form-error-alert\"\n *ngIf=\"form.valid && showServerErrorMessage && dialogData.serverErrorMessage\">\n {{dialogData.serverErrorMessage}}\n </label>\n </div>\n </div>\n </div>\n</form>\n\n<div footer class=\"footer-dialog\">\n <div class=\"buttons-wrapper\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <dr-button *ngIf=\"dialogData.cancelButton\" data-test=\"modalCloseBtn\" (click)=\"closeDialog()\"\n [theme]=\"'secondary'\"> {{dialogData.cancelButton.label}}</dr-button>\n <dr-button *ngIf=\"dialogData.acceptButton\" data-test=\"modalAddBtn\" (click)=\"onAccept()\" [theme]=\"'primary'\"\n [isLoading]=\"isLoading\" [disabled]=\"form.invalid\"> {{dialogData.acceptButton.label}}</dr-button>\n </div>\n</div>\n",
3136
+ styles: [":host{display:flex;justify-content:space-between;flex-direction:column}:host.small-modal{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal{min-height:188px;max-height:467px;min-width:632px;max-width:632px}.header-dialog{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:8px 39px 8px 32px;border-bottom:1px solid #e5e6ea}.title-dialog{color:#151b3f;position:static;font-weight:bold;font-size:18px;line-height:24px}.content-dialog{font-weight:400;font-size:14px;padding:16px 32px 5px}.icon-close{color:#51566f;cursor:pointer}.dr-smart-from{font-size:14px;font-weight:500;line-height:22px;padding:16px 32px 22px}.content-dialog{padding:16px 32px 0;font-weight:400;font-size:14px;line-height:22px}.content-anchor{display:none}.footer-dialog{border-top:1px solid #e5e6ea}.buttons-wrapper{display:flex;justify-content:flex-end;padding-top:10px;padding-right:32px;padding-bottom:11px}.buttons-wrapper dr-button:nth-of-type(2){margin-left:12px}.form-error-alert{position:absolute;margin-top:5px;font-size:12px;color:red}.dr-select-footer__btn{background-color:transparent;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}\n"]
3137
+ },] }
3138
+ ];
3139
+ DialogModalWrapperComponent.ctorParameters = () => [
3140
+ { type: MatDialogRef },
3141
+ { type: DialogService },
3142
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
3143
+ ];
3144
+ DialogModalWrapperComponent.propDecorators = {
3145
+ class: [{ type: HostBinding, args: ['class',] }]
3146
+ };
3147
+
3148
+ const DEFAULT_PANE_CLASS_NAME = 'wrapper-dialog';
3149
+ const DEFAULT_CONFIRM_THEME = { themeSize: 'small-modal' };
3150
+ class DialogService {
3151
+ constructor(dialog) {
3152
+ this.dialog = dialog;
3153
+ }
3154
+ /**
3155
+ * Function to open modal with custom form
3156
+ */
3157
+ openDialogWrapper(componentTypeChild, dialogData, componentTypeWrapper) {
3158
+ if (!componentTypeWrapper)
3159
+ componentTypeWrapper = DialogWrapperComponent;
3160
+ dialogData.data.child = componentTypeChild;
3161
+ if (dialogData.panelClass instanceof Array) {
3162
+ dialogData.panelClass.push(DEFAULT_PANE_CLASS_NAME);
3163
+ }
3164
+ else {
3165
+ dialogData.panelClass = [dialogData.panelClass || '', DEFAULT_PANE_CLASS_NAME];
3166
+ }
3167
+ this.wrapperComponent = this.openDialog(componentTypeWrapper, dialogData);
3168
+ return this.wrapperComponent;
3169
+ }
3170
+ /**
3171
+ * Function to open confirmation modal
3172
+ */
3173
+ openConfirmDialog(confirmDialogData) {
3174
+ const dialogData = { panelClass: DEFAULT_PANE_CLASS_NAME, data: null };
3175
+ Object.assign(dialogData, { data: confirmDialogData });
3176
+ if (!dialogData.data.theme)
3177
+ dialogData.data.theme = DEFAULT_CONFIRM_THEME;
3178
+ dialogData.data.theme.isConfirmation = true;
3179
+ return this.openDialog(DialogWrapperComponent, dialogData);
3180
+ }
3181
+ /**
3182
+ * Function to open confirmation modal with inputs
3183
+ */
3184
+ openConfirmDialogModal(confirmDialogData) {
3185
+ const dialogData = { panelClass: DEFAULT_PANE_CLASS_NAME, data: null };
3186
+ Object.assign(dialogData, { data: confirmDialogData });
3187
+ if (!dialogData.data.theme)
3188
+ dialogData.data.theme = DEFAULT_CONFIRM_THEME;
3189
+ return this.openDialog(DialogModalWrapperComponent, dialogData);
3190
+ }
3191
+ close(params) {
3192
+ this.wrapperComponent.close(params);
3193
+ }
3194
+ changeDialogThemeSize(theme) {
3195
+ this.wrapperComponent.componentInstance.class = theme;
3196
+ }
3197
+ openDialog(componentType, dialogData) {
3198
+ return this.dialog.open(componentType, dialogData);
3199
+ }
3200
+ throwErr(err, load) {
3201
+ if (load) {
3202
+ load.next(false);
3203
+ }
3204
+ throw err;
3205
+ }
3206
+ }
3207
+ DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i1$1.MatDialog)); }, token: DialogService, providedIn: "root" });
3208
+ DialogService.decorators = [
3209
+ { type: Injectable, args: [{
3210
+ providedIn: 'root'
3211
+ },] }
3212
+ ];
3213
+ DialogService.ctorParameters = () => [
3214
+ { type: MatDialog }
3215
+ ];
3216
+
2996
3217
  var TooltipPosition;
2997
3218
  (function (TooltipPosition) {
2998
3219
  TooltipPosition["TOP"] = "top";
@@ -3009,6 +3230,27 @@ var TooltipPosition;
3009
3230
  TooltipPosition["LEFT_BOTTOM"] = "left-bottom";
3010
3231
  })(TooltipPosition || (TooltipPosition = {}));
3011
3232
 
3233
+ var DIALOG_SIZE;
3234
+ (function (DIALOG_SIZE) {
3235
+ DIALOG_SIZE["SMALL"] = "small-modal";
3236
+ DIALOG_SIZE["MEDIUM"] = "medium-modal";
3237
+ DIALOG_SIZE["MEDIUM_LARGE"] = "medium-large-modal";
3238
+ DIALOG_SIZE["LARGE"] = "large-modal";
3239
+ DIALOG_SIZE["X_LARGE"] = "xl-modal";
3240
+ DIALOG_SIZE["X_CUSTOM_LARGE"] = "xl-custom-modal";
3241
+ })(DIALOG_SIZE || (DIALOG_SIZE = {}));
3242
+ var DIALOG_BUTTON_LABEL;
3243
+ (function (DIALOG_BUTTON_LABEL) {
3244
+ DIALOG_BUTTON_LABEL["SAVE"] = "Save";
3245
+ DIALOG_BUTTON_LABEL["CANCEL"] = "Cancel";
3246
+ DIALOG_BUTTON_LABEL["CLOSE"] = "Close";
3247
+ })(DIALOG_BUTTON_LABEL || (DIALOG_BUTTON_LABEL = {}));
3248
+ var DIALOG_FIELD_TYPE;
3249
+ (function (DIALOG_FIELD_TYPE) {
3250
+ DIALOG_FIELD_TYPE["INPUT"] = "input";
3251
+ DIALOG_FIELD_TYPE["SELECT"] = "select";
3252
+ })(DIALOG_FIELD_TYPE || (DIALOG_FIELD_TYPE = {}));
3253
+
3012
3254
  class DrModelDebounceChangeDirective {
3013
3255
  constructor(ngModel) {
3014
3256
  this.ngModel = ngModel;
@@ -3111,7 +3353,7 @@ const components$3 = [DateTagComponent,
3111
3353
  AnyTagComponent,
3112
3354
  YearTagComponent,
3113
3355
  ForecastTagComponent];
3114
- const ɵ0$1 = { useUtc: true };
3356
+ const ɵ0$2 = { useUtc: true };
3115
3357
  class DateTagModule {
3116
3358
  }
3117
3359
  DateTagModule.decorators = [
@@ -3129,7 +3371,7 @@ DateTagModule.decorators = [
3129
3371
  ],
3130
3372
  exports: components$3,
3131
3373
  providers: [
3132
- { provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: ɵ0$1 }
3374
+ { provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: ɵ0$2 }
3133
3375
  ],
3134
3376
  declarations: components$3,
3135
3377
  },] }
@@ -3394,7 +3636,7 @@ DrDatePickerCustomHeaderComponent.ctorParameters = () => [
3394
3636
 
3395
3637
  const moment = require('moment');
3396
3638
  const noop = () => { };
3397
- const ɵ0 = noop;
3639
+ const ɵ0$1 = noop;
3398
3640
  class DrDatePickerComponent {
3399
3641
  constructor(cdr, dateAdapter, datePickerService) {
3400
3642
  this.cdr = cdr;
@@ -4034,9 +4276,9 @@ StepperComponent.propDecorators = {
4034
4276
  stepper: [{ type: ViewChild, args: ['stepper', { read: ElementRef },] }]
4035
4277
  };
4036
4278
 
4037
- class StepperModule {
4279
+ class DrStepperModule {
4038
4280
  }
4039
- StepperModule.decorators = [
4281
+ DrStepperModule.decorators = [
4040
4282
  { type: NgModule, args: [{
4041
4283
  declarations: [StepperComponent],
4042
4284
  imports: [
@@ -4047,11 +4289,33 @@ StepperModule.decorators = [
4047
4289
  },] }
4048
4290
  ];
4049
4291
 
4292
+ const ɵ0 = {}, ɵ1 = {};
4293
+ class DrDialogModule {
4294
+ }
4295
+ DrDialogModule.decorators = [
4296
+ { type: NgModule, args: [{
4297
+ declarations: [DialogWrapperComponent, DialogModalWrapperComponent],
4298
+ imports: [
4299
+ CommonModule,
4300
+ MatDialogModule,
4301
+ DrInputsModule,
4302
+ ReactiveFormsModule,
4303
+ DrTooltipModule
4304
+ ],
4305
+ exports: [DialogWrapperComponent, DialogModalWrapperComponent],
4306
+ providers: [
4307
+ { provide: MatDialogRef, useValue: ɵ0 },
4308
+ { provide: MAT_DIALOG_DATA, useValue: ɵ1 },
4309
+ DialogService
4310
+ ]
4311
+ },] }
4312
+ ];
4313
+
4050
4314
  /* components */
4051
4315
 
4052
4316
  /**
4053
4317
  * Generated bundle index. Do not edit.
4054
4318
  */
4055
4319
 
4056
- export { AnyTagComponent, CalendarView, CheckboxComponent, CustomDateFormat, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DayTagComponent, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrButtonComponent, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrErrorComponent, DrErrorModule, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrSelectComponent, DrSharedUtils, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, SpinnerSize, SpinnerType, StepperModule, TimeframeOption, TooltipComponent, TooltipPosition, WeekTagComponent, YearTagComponent, components$3 as ɵa, POPUP_ANIMATION as ɵb, DrDatePickerComponent as ɵc, DrDatePickerService as ɵd, DrDatePickerWithTimeframeComponent as ɵe, DrDatePickerFormatDirective as ɵf, DrDatePickerCustomHeaderComponent as ɵg, DrShowTimeframePipe as ɵh, TooltipInfoComponent as ɵi, TooltipInfoSimpleComponent as ɵj, TooltipNoBodyComponent as ɵk, TooltipProcessDefaultComponent as ɵl, StepperComponent as ɵm };
4320
+ export { AnyTagComponent, CalendarView, CheckboxComponent, CustomDateFormat, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DayTagComponent, DialogService, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrButtonComponent, DrDialogModule, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrErrorComponent, DrErrorModule, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrSelectComponent, DrSharedUtils, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, SpinnerSize, SpinnerType, TimeframeOption, TooltipComponent, TooltipPosition, WeekTagComponent, YearTagComponent, components$3 as ɵa, POPUP_ANIMATION as ɵb, DrDatePickerComponent as ɵc, DrDatePickerService as ɵd, DrDatePickerWithTimeframeComponent as ɵe, DrDatePickerFormatDirective as ɵf, DrDatePickerCustomHeaderComponent as ɵg, DrShowTimeframePipe as ɵh, TooltipInfoComponent as ɵi, TooltipInfoSimpleComponent as ɵj, TooltipNoBodyComponent as ɵk, TooltipProcessDefaultComponent as ɵl, StepperComponent as ɵm, DialogWrapperComponent as ɵn, DialogModalWrapperComponent as ɵo };
4057
4321
  //# sourceMappingURL=datarailsshared-datarailsshared.js.map