@datarailsshared/datarailsshared 1.3.11 → 1.3.12

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.
@@ -24,6 +24,7 @@ export * from './lib/dr-inputs/dr-date-picker/dr-date-picker.component';
24
24
  export * from './lib/dr-inputs/dr-date-picker/dr-date-picker-format.directive';
25
25
  export * from './lib/dr-popover/dr-popover.directive';
26
26
  export * from './lib/dr-popover/dr-popover.component';
27
+ export * from './lib/dr-popover/dr-popover.service';
27
28
  export * from './lib/dr-dropdown/dr-dropdown.directive';
28
29
  export * from './lib/dr-dropdown/dr-dropdown-position.directive';
29
30
  export * from './lib/dr-dropdown/dr-dropdown.component';
@@ -31,7 +32,7 @@ export * from './lib/dr-dropdown/dr-dropdown.service';
31
32
  export * from './lib/dr-dropdown/dr-dropdown-item-show.pipe';
32
33
  export * from './lib/dr-tabs/dr-tabs.component';
33
34
  export * from './lib/dr-tabs/dr-tab.component';
34
- export { DrPopoverRef } from './lib/models/popover';
35
+ export { DrPopoverRef, } from './lib/models/popover';
35
36
  /* modules */
36
37
  export { DateTagModule } from './lib/date-tags/date-tag.module';
37
38
  export { ListTagModule } from './lib/list-tags/list-tag.module';
@@ -43,4 +44,4 @@ export { DrSpinnerModule } from './lib/dr-spinner/dr-spinner.module';
43
44
  export { DrPopoverModule } from './lib/dr-popover/dr-popover.module';
44
45
  export { DrDropdownModule } from './lib/dr-dropdown/dr-dropdown.module';
45
46
  export { DrTabsModule } from './lib/dr-tabs/dr-tabs.module';
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxnQkFBZ0I7QUFDaEIsY0FB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WxlIH0gZnJvbSAnLi9saWIvZHItZHJvcGRvd24vZHItZHJvcGRvd24ubW9kdWxlJztcclxuZXhwb3J0IHsgRHJUYWJzTW9kdWxlIH0gZnJvbSAnLi9saWIvZHItdGFicy9kci10YWJzLm1vZHVsZSc7XHJcbiJdfQ==
@@ -4,11 +4,12 @@ import { FormControl, NG_VALUE_ACCESSOR, NgControl, FormsModule, ReactiveFormsMo
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
+ import { noop as noop$1, Subject } from 'rxjs';
7
8
  import { transition, style, animate, trigger } from '@angular/animations';
9
+ import * as i1 from '@angular/cdk/overlay';
8
10
  import { Overlay, OverlayPositionBuilder, OverlayConfig } from '@angular/cdk/overlay';
9
11
  import { ComponentPortal } from '@angular/cdk/portal';
10
12
  import { DOCUMENT, CommonModule } from '@angular/common';
11
- import { Subject } from 'rxjs';
12
13
  import { first } from 'rxjs/operators';
13
14
  import { MatDatepickerModule } from '@angular/material/datepicker';
14
15
  import { MatFormFieldModule } from '@angular/material/form-field';
@@ -821,7 +822,7 @@ RadioButtonComponent.decorators = [
821
822
  ],
822
823
  changeDetection: ChangeDetectionStrategy.OnPush,
823
824
  encapsulation: ViewEncapsulation.ShadowDom,
824
- styles: ["label input[type=radio].radiobox+span{vertical-align:middle;line-height:20px}input+span,input+span:after,input+span:before{box-sizing:content-box!important;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important}input{visibility:hidden;position:absolute;width:18px;height:18px}label input+span{position:relative;z-index:19;display:inline-block;margin:0 5px 0 0;line-height:17px;min-height:14px;min-width:14px}label input+span:hover{cursor:pointer}label input+span:before{content:\"\";font-size:14px;border-radius:0;display:inline-block;text-align:center;vertical-align:middle;padding:1px;height:12px;line-height:13px;min-width:12px;margin-right:5px;border:1px solid #C3C4CE;background-color:#fff;font-weight:normal;margin-top:-1px}label input+span:before{border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%}label input:checked+span:before,label:hover input:checked+span:before{background:white;border-color:#579bf2;color:#579bf2}label input:checked+span:before,label:hover input:checked+span:before{font-family:\"DataRails\"!important;content:url('data:image/svg+xml; utf8, <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"5\" cy=\"5\" r=\"4.5\" fill=\"%23579BF2\"/></svg> ');color:#579bf2}label input:disabled+span:before{border-color:#bcbcbc}label input[disabled]:checked+span:before{content:url('data:image/svg+xml; utf8, <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"5\" cy=\"5\" r=\"4.5\" fill=\"%23BCBCBC\"/></svg> ');border-color:#bcbcbc}label span:hover:before{border-color:#85889c}\n"]
825
+ styles: ["label input[type=radio].radiobox+span{vertical-align:middle;line-height:20px}input+span,input+span:after,input+span:before{box-sizing:content-box!important;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important}input{visibility:hidden;position:absolute;width:18px;height:18px}label input+span{position:relative;z-index:19;display:inline-block;margin:0 5px 0 0;line-height:17px;min-height:14px;min-width:14px}label input+span:hover{cursor:pointer}label input+span:before{content:\"\";font-size:14px;border-radius:0;display:inline-block;text-align:center;vertical-align:middle;padding:1px;height:12px;line-height:13px;width:12px;margin-right:5px;border:1px solid #C3C4CE;background-color:#fff;font-weight:normal;margin-top:-1px}label input+span:before{border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%}label input:checked+span:before,label:hover input:checked+span:before{background:white;border-color:#579bf2;color:#579bf2}label input:checked+span:before,label:hover input:checked+span:before{font-family:\"DataRails\"!important;background-image:url('data:image/svg+xml; utf8, <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"5\" cy=\"5\" r=\"4.5\" fill=\"%23579BF2\"/></svg> ');background-repeat:no-repeat;background-position:center;color:#579bf2}label input:disabled+span:before{border-color:#bcbcbc}label input[disabled]:checked+span:before{content:url('data:image/svg+xml; utf8, <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"5\" cy=\"5\" r=\"4.5\" fill=\"%23BCBCBC\"/></svg> ');border-color:#bcbcbc}label span:hover:before{border-color:#85889c}\n"]
825
826
  },] }
826
827
  ];
827
828
  RadioButtonComponent.ctorParameters = () => [
@@ -892,7 +893,7 @@ class DrInputComponent {
892
893
  this.readonly = false;
893
894
  this.clearable = false;
894
895
  this.blur = new EventEmitter();
895
- this.value = null;
896
+ this.innerValue = null;
896
897
  this._disabled = null;
897
898
  this._elementClass = [];
898
899
  this._buttonOptions = {
@@ -905,6 +906,8 @@ class DrInputComponent {
905
906
  this.searchHandler = new EventEmitter();
906
907
  this.buttonHandler = new EventEmitter();
907
908
  this.tabindex = -1;
909
+ this.onChangeCallback = noop$1;
910
+ this.onTouchedCallback = noop$1;
908
911
  this.onChange = () => { };
909
912
  this.onTouched = () => { };
910
913
  }
@@ -940,6 +943,16 @@ class DrInputComponent {
940
943
  set(val) {
941
944
  this._elementClass = val.split(' ');
942
945
  }
946
+ get value() {
947
+ return this.innerValue;
948
+ }
949
+ set value(v) {
950
+ if (v !== this.innerValue) {
951
+ this.innerValue = v;
952
+ this.onChangeCallback(v);
953
+ }
954
+ this.cdr.markForCheck();
955
+ }
943
956
  ngAfterViewInit() {
944
957
  if (this.clearable) {
945
958
  this._elementClass.push('clearable');
@@ -955,15 +968,17 @@ class DrInputComponent {
955
968
  }
956
969
  }
957
970
  registerOnChange(fn) {
958
- this.onChange = fn;
971
+ this.onChangeCallback = fn;
959
972
  }
960
973
  registerOnTouched(fn) {
961
- this.onTouched = fn;
974
+ this.onTouchedCallback = fn;
962
975
  }
963
976
  writeValue(value) {
964
- this.value = value;
965
- this.updateChanges();
966
- this.cdr.markForCheck();
977
+ if (value !== this.innerValue) {
978
+ this.innerValue = value;
979
+ this.updateChanges();
980
+ this.cdr.markForCheck();
981
+ }
967
982
  }
968
983
  updateChanges() {
969
984
  this.onChange(this.value);
@@ -1495,13 +1510,15 @@ class DrButtonComponent {
1495
1510
  this.click = new EventEmitter();
1496
1511
  }
1497
1512
  onClick($event) {
1513
+ $event.preventDefault();
1514
+ $event.stopPropagation();
1498
1515
  this.click.emit($event);
1499
1516
  }
1500
1517
  }
1501
1518
  DrButtonComponent.decorators = [
1502
1519
  { type: Component, args: [{
1503
1520
  selector: 'dr-button',
1504
- template: "<button (click)=\"onClick($event)\" [attr.disabled]=\"disabled\" [attr.is-loading]=\"isLoading\" [attr.bold]=\"isBold\"\r\n [attr.icon]=\"icon ? true : false\" [attr.theme]=\"theme\">\r\n <ng-container *ngIf=\"!isLoading\">\r\n <i *ngIf=\"icon\" class=\"dr\" [ngClass]=\"icon\"></i>\r\n <ng-content></ng-content>\r\n </ng-container>\r\n <i *ngIf=\"isLoading\" class=\"dr dr-spinner\"></i>\r\n</button>",
1521
+ template: "<button (click)=\"onClick($event)\" [disabled]=\"disabled\" [attr.is-loading]=\"isLoading\" [attr.bold]=\"isBold\"\r\n [attr.icon]=\"icon ? true : false\" [attr.theme]=\"theme\">\r\n <ng-container *ngIf=\"!isLoading\">\r\n <i *ngIf=\"icon\" class=\"dr\" [ngClass]=\"icon\" [style.color]=\"iconColor || 'inherit'\"></i>\r\n <ng-content></ng-content>\r\n </ng-container>\r\n <i *ngIf=\"isLoading\" class=\"dr dr-spinner\"></i>\r\n</button>",
1505
1522
  styles: [":host{display:inline-block}:host button[theme]{cursor:pointer;border-radius:16px;padding:5px 16px;font-family:\"Poppins\";font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#4e566c;border:1px solid #7F7FDD;display:flex;justify-content:space-between;align-items:center;height:32px}:host button[theme] .dr{padding:0;margin-left:5.35px;margin-right:8.64px}:host button[theme] .dr-spinner{animation-name:rotate;animation-iteration-count:infinite;animation-duration:1s}@keyframes rotate{0%{transform:rotate()}to{transform:rotate(360deg)}}:host button[theme][theme~=secondary]{padding:5px 16px;background:#FFFFFF;border-radius:16px;min-width:90px}:host button[theme][theme~=secondary]:hover:not([disabled=\"true\"]){color:#4e566c;transition:.2ms ease-in all;background:#F2F2FB;box-shadow:0 4px 14px #0000001a;border:1px solid #4646CE;border-radius:16px}:host button[theme][theme~=secondary]:active{box-shadow:none;background:#F2F2FB}:host button[theme][theme~=secondary][disabled=true]{background:#F0F1F4;color:#727583;border:none}:host button[theme][theme~=secondary][is-loading=true]{justify-content:center;padding:5px 16px}:host button[theme][theme~=primary]{background:#4646CE;color:#fff;border:none;min-width:90px}:host button[theme][theme~=primary]:hover:not([disabled=\"true\"]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#25258C 0%,#4646CE 100%);box-shadow:0 4px 14px #0000001a;border-radius:16px;border:none}:host button[theme][theme~=primary]:hover[disabled=false]{border:none}:host button[theme][theme~=primary]:active{background:#25258C}:host button[theme][theme~=primary][disabled=true]{background:#F0F1F4;color:#727583;border:none}:host button[theme][theme~=primary][is-loading=true]{justify-content:center;padding:5px 16px}:host button[theme][theme~=ghost]{background:none;border:none;color:#151b3f;padding:4px 8px}:host button[theme][theme~=ghost] .dr{margin-left:4.5px;margin-right:12.5px}:host button[theme][theme~=ghost]:hover:not([disabled=\"true\"]){color:#4646ce;background:#F2F2FB;border-radius:4px}:host button[theme][theme~=ghost][disabled=true]{color:#727583}:host button[theme][theme~=text-link]{background:none;border:none;color:#0b5af9;text-decoration:underline}:host button[theme][theme~=text-link][disabled=true]{color:#727583}:host button[theme][theme~=primary-icon]{padding:8px;width:28px;height:28px;justify-content:center;color:#fff;background:#4646CE;border:none}:host button[theme][theme~=primary-icon]:hover,:host button[theme][theme~=primary-icon]:active{background:linear-gradient(96.89deg,#131318 0%,#4646CE 100%)}:host button[theme][theme~=primary-icon][disabled=true]{color:#bcbcbc;background:#E5E6EA}:host button[theme][theme~=primary-icon] .dr{margin:0}:host button[theme][theme~=secondary-icon]{background:white;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:1px solid #7F7FDD}:host button[theme][theme~=secondary-icon]:hover,:host button[theme][theme~=secondary-icon]:active{color:#4646ce;background:#F2F2FB}:host button[theme][theme~=secondary-icon][disabled=true]{color:#bcbcbc;background:#E5E6EA;border:none}:host button[theme][theme~=secondary-icon] .dr{margin:0}:host button[theme][theme~=icon]{background:none;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:none}:host button[theme][theme~=icon]:hover,:host button[theme][theme~=icon]:active{background:#F0F3FC;color:#4646ce}:host button[theme][theme~=icon][disabled=true]{color:#bcbcbc;border:none}:host button[theme][theme~=icon][disabled=true]:hover,:host button[theme][theme~=icon][disabled=true]:active{background:none}:host button[theme][theme~=icon] .dr{margin:0}:host button[theme][bold=true]{font-weight:600}:host button[theme][icon=true]{padding-left:8px}:host button[theme][icon=false]{justify-content:center}\n"]
1506
1523
  },] }
1507
1524
  ];
@@ -1513,6 +1530,7 @@ DrButtonComponent.propDecorators = {
1513
1530
  icon: [{ type: Input }],
1514
1531
  isBold: [{ type: Input }],
1515
1532
  isLoading: [{ type: Input }],
1533
+ iconColor: [{ type: Input }],
1516
1534
  click: [{ type: Output }]
1517
1535
  };
1518
1536
  // Examples:
@@ -1520,6 +1538,7 @@ DrButtonComponent.propDecorators = {
1520
1538
  <dr-button [icon]="'dr-icon-arrow-down'">hello</dr-button>
1521
1539
  <dr-button [icon]="'dr-icon-refresh'" [theme]="'primary-icon'"></dr-button>
1522
1540
  <dr-button [icon]="'dr-icon-refresh'" [isDisabled]="true" [theme]="'primary-icon'"></dr-button>
1541
+ <dr-button [theme]="'secondary'" [icon]="'dr-icon-excel'" [iconColor]="'#03A678'"></dr-button>
1523
1542
 
1524
1543
  <dr-button [icon]="'dr-icon-refresh'" [theme]="'secondary-icon'"></dr-button>
1525
1544
  <dr-button [icon]="'dr-icon-share'" [isDisabled]="true" [theme]="'secondary-icon'"></dr-button>
@@ -1732,7 +1751,12 @@ class DrPopoverRef {
1732
1751
  constructor(overlayRef) {
1733
1752
  this.overlayRef = overlayRef;
1734
1753
  this.onClose$ = new Subject();
1754
+ // FIXME: this decision was made because of the incompatible rxjs version
1755
+ /**
1756
+ * Correct type is @type {Observable<any>}
1757
+ */
1735
1758
  this.onClose = this.onClose$.asObservable();
1759
+ this.onBackdropClick = this.overlayRef.backdropClick();
1736
1760
  }
1737
1761
  close(res) {
1738
1762
  this.overlayRef.detach();
@@ -1752,28 +1776,30 @@ class DrPopoverComponent {
1752
1776
  this.class = '';
1753
1777
  this.isContentTemplate = false;
1754
1778
  }
1755
- set popoverContainer(template) {
1756
- this.isContentTemplate = this.content instanceof TemplateRef;
1757
- if (!this.isContentTemplate) {
1758
- this.componentRef = this.viewContainerRef.createComponent(this.componentFactoryResolver.resolveComponentFactory(this.content));
1759
- Object.assign(this.componentRef.instance, this.contentContext);
1760
- template.nativeElement.appendChild(this.componentRef.location.nativeElement);
1761
- }
1762
- this.cdr.detectChanges();
1763
- }
1764
1779
  clickOutside(e) {
1765
- const isTargetHost = this.hostRef.nativeElement === e.target || this.hostRef.nativeElement.contains(e.target);
1780
+ const isTargetHost = this.hostRef instanceof ElementRef && (this.hostRef.nativeElement === e.target || this.hostRef.nativeElement.contains(e.target));
1766
1781
  const isTargetInPopover = this.elementRef.nativeElement.contains(e.target);
1767
1782
  const isTargetInDatepicker = e.target.closest('mat-datepicker-popup');
1768
1783
  const isTargetInSelect = e.target.closest('ng-dropdown-panel');
1784
+ const isTargetInDatepickerContent = e.target.closest('mat-datepicker-content');
1769
1785
  if (!isTargetHost
1770
1786
  && !isTargetInPopover
1771
1787
  && !isTargetInDatepicker
1772
1788
  && !isTargetInSelect
1789
+ && !isTargetInDatepickerContent
1773
1790
  && !this.manualClosing) {
1774
1791
  this.popoverRef.close();
1775
1792
  }
1776
1793
  }
1794
+ ngOnInit() {
1795
+ this.isContentTemplate = this.content instanceof TemplateRef;
1796
+ if (!this.isContentTemplate) {
1797
+ this.componentRef = this.viewContainerRef.createComponent(this.componentFactoryResolver.resolveComponentFactory(this.content));
1798
+ Object.assign(this.componentRef.instance, this.contentContext);
1799
+ this.popoverContainer.nativeElement.appendChild(this.componentRef.location.nativeElement);
1800
+ }
1801
+ this.cdr.detectChanges();
1802
+ }
1777
1803
  }
1778
1804
  DrPopoverComponent.decorators = [
1779
1805
  { type: Component, args: [{
@@ -1782,7 +1808,8 @@ DrPopoverComponent.decorators = [
1782
1808
  animations: [
1783
1809
  trigger('popover', POPUP_ANIMATION),
1784
1810
  ],
1785
- styles: [".dr-popover{display:flex;background:#fff;border:1px solid #E5E5E5;border-radius:5px;box-sizing:border-box;box-shadow:0 4px 14px #0003;font-size:12px;color:#545a6b;max-height:100vh;max-width:100vw;overflow:auto}\n"]
1811
+ changeDetection: ChangeDetectionStrategy.OnPush,
1812
+ styles: [".dr-popover{display:flex;background:#fff;border:1px solid #E5E5E5;border-radius:5px;box-sizing:border-box;box-shadow:0 4px 14px #0003;font-size:12px;color:#545a6b;max-height:100vh;max-width:100vw;overflow:auto}::ng-deep .dr-popover-transparent-backdrop{background-color:transparent}\n"]
1786
1813
  },] }
1787
1814
  ];
1788
1815
  DrPopoverComponent.ctorParameters = () => [
@@ -1798,16 +1825,93 @@ DrPopoverComponent.propDecorators = {
1798
1825
  class: [{ type: Input }],
1799
1826
  hostRef: [{ type: Input }],
1800
1827
  manualClosing: [{ type: Input }],
1801
- popoverContainer: [{ type: ViewChild, args: ['popoverContainer', { read: ElementRef },] }],
1828
+ popoverContainer: [{ type: ViewChild, args: ['popoverContainer', { read: ElementRef, static: true },] }],
1802
1829
  clickOutside: [{ type: HostListener, args: ['document:mouseup', ['$event'],] }]
1803
1830
  };
1804
1831
 
1805
- class DrPopoverDirective {
1806
- constructor(overlay, overlayPositionBuilder, elementRef, injector) {
1832
+ const DEFAULT_CONFIG = {
1833
+ hasBackdrop: false,
1834
+ closeOnBackdropClick: false,
1835
+ backdropClass: 'dr-popover-transparent-backdrop',
1836
+ };
1837
+ const DEFAULT_MODEL = {
1838
+ position: 'bottom',
1839
+ class: '',
1840
+ overlayConfig: {},
1841
+ manualClosing: false,
1842
+ };
1843
+
1844
+ class DrPopoverService {
1845
+ constructor(overlay, overlayPositionBuilder, injector) {
1807
1846
  this.overlay = overlay;
1808
1847
  this.overlayPositionBuilder = overlayPositionBuilder;
1809
- this.elementRef = elementRef;
1810
1848
  this.injector = injector;
1849
+ }
1850
+ open(content, popoverModel) {
1851
+ if (!content)
1852
+ return;
1853
+ const model = Object.assign(Object.assign({}, DEFAULT_MODEL), popoverModel);
1854
+ const overlayRef = this.createOverlay(model);
1855
+ const popoverRef = new DrPopoverRef(overlayRef);
1856
+ this.attachOverlayContainer(content, model, overlayRef, popoverRef);
1857
+ this.registerCloseListeners(model, overlayRef, popoverRef);
1858
+ return popoverRef;
1859
+ }
1860
+ attachOverlayContainer(content, { contentContext, position, class: elementClass, manualClosing, hostRef }, overlayRef, popoverRef) {
1861
+ const componentPortal = new ComponentPortal(DrPopoverComponent, null, this.createInjector(popoverRef));
1862
+ const contentRef = overlayRef.attach(componentPortal);
1863
+ popoverRef.componentRef = contentRef;
1864
+ contentRef.instance.content = content;
1865
+ contentRef.instance.contentContext = Object.assign(Object.assign({}, contentContext), { closePopover: popoverRef.close.bind(popoverRef) });
1866
+ contentRef.instance.class = elementClass + ' ' + position;
1867
+ contentRef.instance.manualClosing = manualClosing;
1868
+ contentRef.instance.hostRef = hostRef;
1869
+ }
1870
+ createOverlay(popoverModel) {
1871
+ const overlayConfig = this.getOverlayConfig(popoverModel);
1872
+ return this.overlay.create(overlayConfig);
1873
+ }
1874
+ getOverlayConfig(popoverModel) {
1875
+ const config = Object.assign(Object.assign({}, DEFAULT_CONFIG), popoverModel.overlayConfig || {});
1876
+ const positionStrategy = this.overlayPositionBuilder
1877
+ .flexibleConnectedTo(popoverModel.hostRef)
1878
+ .withPositions([POPUP_POSITIONS[popoverModel.position]]);
1879
+ const overlayConfig = new OverlayConfig(Object.assign({ scrollStrategy: this.overlay.scrollStrategies.noop(), positionStrategy }, config));
1880
+ return overlayConfig;
1881
+ }
1882
+ createInjector(popoverRef) {
1883
+ const injectionTokens = [
1884
+ { provide: DrPopoverRef, useValue: popoverRef },
1885
+ ];
1886
+ return Injector.create({ providers: injectionTokens, parent: this.injector });
1887
+ }
1888
+ registerCloseListeners(popoverModel, overlayRef, popoverRef) {
1889
+ const config = popoverModel.overlayConfig || {};
1890
+ const targetElement = popoverModel.targetElement;
1891
+ if ((config === null || config === void 0 ? void 0 : config.closeOnBackdropClick) && (config === null || config === void 0 ? void 0 : config.hasBackdrop)) {
1892
+ overlayRef.backdropClick().subscribe(() => popoverRef.close());
1893
+ }
1894
+ if (targetElement) {
1895
+ targetElement.addEventListener('mouseup', () => popoverRef.close(), { once: true });
1896
+ }
1897
+ }
1898
+ }
1899
+ DrPopoverService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DrPopoverService_Factory() { return new DrPopoverService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i1.OverlayPositionBuilder), i0.ɵɵinject(i0.INJECTOR)); }, token: DrPopoverService, providedIn: "root" });
1900
+ DrPopoverService.decorators = [
1901
+ { type: Injectable, args: [{
1902
+ providedIn: 'root',
1903
+ },] }
1904
+ ];
1905
+ DrPopoverService.ctorParameters = () => [
1906
+ { type: Overlay },
1907
+ { type: OverlayPositionBuilder },
1908
+ { type: Injector }
1909
+ ];
1910
+
1911
+ class DrPopoverDirective {
1912
+ constructor(elementRef, drPopoverService) {
1913
+ this.elementRef = elementRef;
1914
+ this.drPopoverService = drPopoverService;
1811
1915
  this.contentContext = {};
1812
1916
  this.position = 'bottom';
1813
1917
  this.class = '';
@@ -1815,78 +1919,38 @@ class DrPopoverDirective {
1815
1919
  this.popoverClose = new EventEmitter();
1816
1920
  this.showStateChange = new EventEmitter();
1817
1921
  }
1818
- show() {
1819
- var _a;
1820
- if (this.overlayRef) {
1821
- this.destroyPopover();
1922
+ togglePopover() {
1923
+ if (this.popoverRef) {
1924
+ this.closePopover();
1822
1925
  }
1823
1926
  else {
1824
1927
  this.renderPopover();
1825
- this.showStateChange.emit({ isShown: (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached() });
1928
+ this.showStateChange.emit({ isShown: !!this.popoverRef });
1826
1929
  }
1827
1930
  }
1828
- renderPopover() {
1829
- var _a;
1830
- if (((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) || !this.content)
1831
- return;
1832
- this.overlayRef = this.createOverlay(this.overlayConfig || {});
1833
- this.drPopoverRef = new DrPopoverRef(this.overlayRef);
1834
- this.drPopoverRef.onClose.pipe(first()).subscribe((res) => {
1835
- var _a;
1836
- this.destroyPopover();
1837
- this.popoverClose.emit(res);
1838
- this.showStateChange.emit({ isShown: !!((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) });
1839
- });
1840
- this.attachOverlayContainer();
1841
- }
1842
- destroyPopover() {
1843
- if (this.overlayRef) {
1844
- this.overlayRef.dispose();
1845
- this.overlayRef = null;
1846
- }
1847
- if (this.contentRef) {
1848
- this.contentRef.destroy();
1849
- this.contentRef = null;
1931
+ closePopover(res) {
1932
+ if (this.popoverRef) {
1933
+ this.popoverRef.close(res);
1934
+ this.popoverRef = null;
1850
1935
  }
1851
- if (this.drPopoverRef) {
1852
- this.drPopoverRef.close();
1853
- this.drPopoverRef = null;
1854
- }
1855
- }
1856
- attachOverlayContainer() {
1857
- const componentPortal = new ComponentPortal(DrPopoverComponent, null, this.createInjector(this.drPopoverRef));
1858
- this.contentRef = this.overlayRef.attach(componentPortal);
1859
- this.drPopoverRef.componentRef = this.contentRef;
1860
- this.contentRef.instance.content = this.content;
1861
- this.contentRef.instance.contentContext = Object.assign(Object.assign({}, this.contentContext), { closePopover: this.destroyPopover.bind(this) });
1862
- this.contentRef.instance.class = this.class + ' ' + this.position;
1863
- this.contentRef.instance.manualClosing = this.manualClosing;
1864
- this.contentRef.instance.hostRef = this.elementRef;
1865
- }
1866
- createOverlay(config) {
1867
- const overlayConfig = this.getOverlayConfig(config);
1868
- return this.overlay.create(overlayConfig);
1869
1936
  }
1870
- getOverlayConfig(config) {
1871
- const positionStrategy = this.overlayPositionBuilder
1872
- .flexibleConnectedTo(this.elementRef)
1873
- .withPositions([POPUP_POSITIONS[this.position]]);
1874
- const overlayConfig = new OverlayConfig({
1875
- hasBackdrop: false,
1876
- panelClass: config === null || config === void 0 ? void 0 : config.panelClass,
1877
- scrollStrategy: this.overlay.scrollStrategies.noop(),
1878
- positionStrategy,
1937
+ renderPopover() {
1938
+ const popoverRef = this.popoverRef = this.drPopoverService.open(this.content, {
1939
+ hostRef: this.elementRef,
1940
+ overlayConfig: this.overlayConfig,
1941
+ class: this.class,
1942
+ manualClosing: this.manualClosing,
1943
+ position: this.position,
1944
+ contentContext: this.contentContext,
1945
+ });
1946
+ popoverRef.onClose.pipe(first()).subscribe((res) => {
1947
+ this.closePopover();
1948
+ this.popoverClose.emit(res);
1949
+ this.showStateChange.emit({ isShown: !!this.popoverRef });
1879
1950
  });
1880
- return overlayConfig;
1881
- }
1882
- createInjector(previewOverlayRef) {
1883
- const injectionTokens = [
1884
- { provide: DrPopoverRef, useValue: previewOverlayRef },
1885
- ];
1886
- return Injector.create({ providers: injectionTokens, parent: this.injector });
1887
1951
  }
1888
1952
  ngOnDestroy() {
1889
- this.destroyPopover();
1953
+ this.closePopover();
1890
1954
  }
1891
1955
  }
1892
1956
  DrPopoverDirective.decorators = [
@@ -1895,10 +1959,8 @@ DrPopoverDirective.decorators = [
1895
1959
  },] }
1896
1960
  ];
1897
1961
  DrPopoverDirective.ctorParameters = () => [
1898
- { type: Overlay },
1899
- { type: OverlayPositionBuilder },
1900
1962
  { type: ElementRef },
1901
- { type: Injector }
1963
+ { type: DrPopoverService }
1902
1964
  ];
1903
1965
  DrPopoverDirective.propDecorators = {
1904
1966
  content: [{ type: Input, args: ['drPopover',] }],
@@ -1909,7 +1971,7 @@ DrPopoverDirective.propDecorators = {
1909
1971
  manualClosing: [{ type: Input, args: ['drPopoverManualClosing',] }],
1910
1972
  popoverClose: [{ type: Output, args: ['drPopoverClose',] }],
1911
1973
  showStateChange: [{ type: Output, args: ['drPopoverShowStateChange',] }],
1912
- show: [{ type: HostListener, args: ['click',] }]
1974
+ togglePopover: [{ type: HostListener, args: ['click',] }]
1913
1975
  };
1914
1976
 
1915
1977
  class DrDropdownService {
@@ -2444,5 +2506,5 @@ DrTabsModule.decorators = [
2444
2506
  * Generated bundle index. Do not edit.
2445
2507
  */
2446
2508
 
2447
- export { AnyTagComponent, CheckboxComponent, DateTagComponent, DateTagModule, DayTagComponent, DrAvatarComponent, DrAvatarModule, DrButtonComponent, DrDatePickerComponent, DrDatePickerFormatDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrInputComponent, DrInputsModule, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrSelectComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, ISpinnerOptions, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, TooltipComponent, WeekTagComponent, YearTagComponent, components$2 as ɵa, POPUP_ANIMATION as ɵb, CustomDateFormat as ɵc };
2509
+ export { AnyTagComponent, CheckboxComponent, DateTagComponent, DateTagModule, DayTagComponent, DrAvatarComponent, DrAvatarModule, DrButtonComponent, DrDatePickerComponent, DrDatePickerFormatDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrInputComponent, DrInputsModule, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrSelectComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, ISpinnerOptions, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, TooltipComponent, WeekTagComponent, YearTagComponent, components$2 as ɵa, POPUP_ANIMATION as ɵb, CustomDateFormat as ɵc };
2448
2510
  //# sourceMappingURL=datarailsshared-datarailsshared.js.map