@alauda/ui 6.1.3-beta.8 → 6.1.4-beta.0

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 (29) hide show
  1. package/alauda-ui.metadata.json +1 -1
  2. package/bundles/alauda-ui.umd.js +40 -41
  3. package/bundles/alauda-ui.umd.js.map +1 -1
  4. package/bundles/alauda-ui.umd.min.js +1 -1
  5. package/bundles/alauda-ui.umd.min.js.map +1 -1
  6. package/drawer/component/drawer-ref.d.ts +2 -2
  7. package/drawer/component/drawer.component.d.ts +3 -3
  8. package/drawer/{component/drawer.service.d.ts → drawer.service.d.ts} +2 -2
  9. package/drawer/public-api.d.ts +1 -1
  10. package/esm2015/drawer/component/drawer-ref.js +1 -1
  11. package/esm2015/drawer/component/drawer-ref.ngsummary.json +1 -1
  12. package/esm2015/drawer/component/drawer.component.js +12 -10
  13. package/esm2015/drawer/component/drawer.component.ngfactory.js +8 -8
  14. package/esm2015/drawer/component/drawer.component.ngsummary.json +1 -1
  15. package/esm2015/drawer/component/drawer.component.scss.ngstyle.js +1 -1
  16. package/esm2015/drawer/drawer.module.js +3 -3
  17. package/esm2015/drawer/drawer.module.ngfactory.js +1 -1
  18. package/esm2015/drawer/drawer.module.ngsummary.json +1 -1
  19. package/esm2015/drawer/drawer.service.js +46 -0
  20. package/esm2015/drawer/{component/drawer.service.ngsummary.json → drawer.service.ngsummary.json} +0 -0
  21. package/esm2015/drawer/public-api.js +2 -2
  22. package/esm2015/drawer/public-api.ngsummary.json +1 -1
  23. package/esm2015/input/input.module.ngfactory.js +1 -1
  24. package/esm2015/input/number-input/number-input.component.js +2 -2
  25. package/esm2015/input/number-input/number-input.component.ngfactory.js +1 -1
  26. package/fesm2015/alauda-ui.js +15 -16
  27. package/fesm2015/alauda-ui.js.map +1 -1
  28. package/package.json +1 -1
  29. package/esm2015/drawer/component/drawer.service.js +0 -51
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/table'), require('@angular/common'), require('@angular/common/http'), require('@angular/animations'), require('@angular/cdk/collections'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('clipboard-polyfill'), require('@angular/cdk/bidi'), require('@angular/forms'), require('@angular/cdk/observers'), require('@angular/cdk/scrolling'), require('@angular/cdk/accordion'), require('dayjs'), require('dayjs/plugin/customParseFormat'), require('dayjs/plugin/isBetween')) :
3
3
  typeof define === 'function' && define.amd ? define('@alauda/ui', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/cdk/table', '@angular/common', '@angular/common/http', '@angular/animations', '@angular/cdk/collections', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/portal', 'clipboard-polyfill', '@angular/cdk/bidi', '@angular/forms', '@angular/cdk/observers', '@angular/cdk/scrolling', '@angular/cdk/accordion', 'dayjs', 'dayjs/plugin/customParseFormat', 'dayjs/plugin/isBetween'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.alauda = global.alauda || {}, global.alauda.ui = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.cdk.table, global.ng.common, global.ng.common.http, global.ng.animations, global.ng.cdk.collections, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.portal, global.clipboardPolyfill, global.ng.cdk.bidi, global.ng.forms, global.ng.cdk.observers, global.ng.cdk.scrolling, global.ng.cdk.accordion, global.dayjs, global.customParseFormat, global.isBetween));
5
- }(this, (function (exports, i0, rxjs, operators, table, common, http, animations, collections, a11y, i1, portal, clipboardPolyfill, bidi, forms, observers, scrolling, accordion, dayjs, customParseFormat, isBetween) { 'use strict';
5
+ }(this, (function (exports, i0, rxjs, operators, table, common, http, animations, collections, a11y, overlay, portal, clipboardPolyfill, bidi, forms, observers, scrolling, accordion, dayjs, customParseFormat, isBetween) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -1716,7 +1716,7 @@
1716
1716
  },] }
1717
1717
  ];
1718
1718
  BackTopComponent.ctorParameters = function () { return [
1719
- { type: i1.CdkScrollable, decorators: [{ type: i0.Optional }] }
1719
+ { type: overlay.CdkScrollable, decorators: [{ type: i0.Optional }] }
1720
1720
  ]; };
1721
1721
  BackTopComponent.propDecorators = {
1722
1722
  visibilityHeight: [{ type: i0.Input }],
@@ -2077,7 +2077,7 @@
2077
2077
  Object.assign(Object.assign({}, originPosition.fallback), overlayPosition.fallback),
2078
2078
  ]);
2079
2079
  var scrollStrategy = this.overlay.scrollStrategies.reposition();
2080
- var config = new i1.OverlayConfig({
2080
+ var config = new overlay.OverlayConfig({
2081
2081
  positionStrategy: positionStrategy,
2082
2082
  scrollStrategy: scrollStrategy,
2083
2083
  });
@@ -2160,7 +2160,7 @@
2160
2160
  { type: i0.Directive }
2161
2161
  ];
2162
2162
  BaseTooltip.ctorParameters = function () { return [
2163
- { type: i1.Overlay },
2163
+ { type: overlay.Overlay },
2164
2164
  { type: i0.ViewContainerRef },
2165
2165
  { type: i0.ElementRef },
2166
2166
  { type: i0.Renderer2 },
@@ -2327,7 +2327,7 @@
2327
2327
  },] }
2328
2328
  ];
2329
2329
  TooltipCopyDirective.ctorParameters = function () { return [
2330
- { type: i1.Overlay },
2330
+ { type: overlay.Overlay },
2331
2331
  { type: i0.ViewContainerRef },
2332
2332
  { type: i0.ElementRef },
2333
2333
  { type: i0.Renderer2 },
@@ -2374,7 +2374,7 @@
2374
2374
  },] }
2375
2375
  ];
2376
2376
  TooltipDirective.ctorParameters = function () { return [
2377
- { type: i1.Overlay },
2377
+ { type: overlay.Overlay },
2378
2378
  { type: i0.ViewContainerRef },
2379
2379
  { type: i0.ElementRef },
2380
2380
  { type: i0.Renderer2 },
@@ -2394,7 +2394,7 @@
2394
2394
  }());
2395
2395
  TooltipModule.decorators = [
2396
2396
  { type: i0.NgModule, args: [{
2397
- imports: [common.CommonModule, i1.OverlayModule],
2397
+ imports: [common.CommonModule, overlay.OverlayModule],
2398
2398
  declarations: [
2399
2399
  TooltipDirective,
2400
2400
  TooltipComponent,
@@ -2518,7 +2518,7 @@
2518
2518
  this.afterOpen$ = new rxjs.Subject();
2519
2519
  this.afterClosed$ = new rxjs.Subject();
2520
2520
  dialogInstance.id = this.id;
2521
- this.scrollable = new i1.CdkScrollable({ nativeElement: overlayRef.overlayElement }, scrollDispatcher, ngZone);
2521
+ this.scrollable = new overlay.CdkScrollable({ nativeElement: overlayRef.overlayElement }, scrollDispatcher, ngZone);
2522
2522
  this.scrollable.ngOnInit();
2523
2523
  }
2524
2524
  DialogRef.prototype.close = function (result) {
@@ -2906,9 +2906,9 @@
2906
2906
  { type: i0.Injectable }
2907
2907
  ];
2908
2908
  DialogService.ctorParameters = function () { return [
2909
- { type: i1.Overlay },
2909
+ { type: overlay.Overlay },
2910
2910
  { type: i0.Injector },
2911
- { type: i1.ScrollDispatcher },
2911
+ { type: overlay.ScrollDispatcher },
2912
2912
  { type: i0.NgZone }
2913
2913
  ]; };
2914
2914
 
@@ -2953,7 +2953,7 @@
2953
2953
  return _this;
2954
2954
  }
2955
2955
  return DialogContentComponent;
2956
- }(i1.CdkScrollable));
2956
+ }(overlay.CdkScrollable));
2957
2957
  DialogContentComponent.decorators = [
2958
2958
  { type: i0.Component, args: [{
2959
2959
  selector: 'aui-dialog-content',
@@ -2965,7 +2965,7 @@
2965
2965
  ];
2966
2966
  DialogContentComponent.ctorParameters = function () { return [
2967
2967
  { type: i0.ElementRef },
2968
- { type: i1.ScrollDispatcher },
2968
+ { type: overlay.ScrollDispatcher },
2969
2969
  { type: i0.NgZone },
2970
2970
  { type: bidi.Directionality }
2971
2971
  ]; };
@@ -3032,7 +3032,7 @@
3032
3032
  { type: i0.NgModule, args: [{
3033
3033
  imports: [
3034
3034
  common.CommonModule,
3035
- i1.OverlayModule,
3035
+ overlay.OverlayModule,
3036
3036
  portal.PortalModule,
3037
3037
  IconModule,
3038
3038
  ButtonModule,
@@ -4840,7 +4840,7 @@
4840
4840
  NumberInputComponent.decorators = [
4841
4841
  { type: i0.Component, args: [{
4842
4842
  selector: 'aui-number-input',
4843
- template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocus: isFocus,\n isDisabled: disabled\n }\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n>\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('decrease')\"\n [disabled]=\"disabled || (value$ | async) <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($any($event.target).value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n />\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('increase')\"\n [disabled]=\"disabled || (value$ | async) >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n</div>\n",
4843
+ template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocus: isFocus,\n isDisabled: disabled\n }\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n>\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('decrease')\"\n [disabled]=\"disabled || (value$ | async) <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($event.target.value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n />\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('increase')\"\n [disabled]=\"disabled || (value$ | async) >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n</div>\n",
4844
4844
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4845
4845
  encapsulation: i0.ViewEncapsulation.None,
4846
4846
  preserveWhitespaces: false,
@@ -5112,7 +5112,7 @@
5112
5112
  },] }
5113
5113
  ];
5114
5114
  DropdownDirective.ctorParameters = function () { return [
5115
- { type: i1.Overlay },
5115
+ { type: overlay.Overlay },
5116
5116
  { type: i0.ViewContainerRef },
5117
5117
  { type: i0.ElementRef },
5118
5118
  { type: i0.Renderer2 },
@@ -7159,7 +7159,7 @@
7159
7159
  { type: i0.Injectable }
7160
7160
  ];
7161
7161
  MessageService.ctorParameters = function () { return [
7162
- { type: i1.Overlay },
7162
+ { type: overlay.Overlay },
7163
7163
  { type: i0.Injector },
7164
7164
  { type: i0.ApplicationRef },
7165
7165
  { type: i0.ComponentFactoryResolver },
@@ -7173,7 +7173,7 @@
7173
7173
  }());
7174
7174
  MessageModule.decorators = [
7175
7175
  { type: i0.NgModule, args: [{
7176
- imports: [common.CommonModule, i1.OverlayModule, IconModule],
7176
+ imports: [common.CommonModule, overlay.OverlayModule, IconModule],
7177
7177
  declarations: [MessageWrapperComponent, MessageComponent],
7178
7178
  entryComponents: [MessageWrapperComponent, MessageComponent],
7179
7179
  providers: [MessageService],
@@ -7325,7 +7325,7 @@
7325
7325
  { type: i0.Injectable }
7326
7326
  ];
7327
7327
  NotificationService.ctorParameters = function () { return [
7328
- { type: i1.Overlay },
7328
+ { type: overlay.Overlay },
7329
7329
  { type: i0.Injector },
7330
7330
  { type: i0.ApplicationRef },
7331
7331
  { type: i0.ComponentFactoryResolver },
@@ -7339,7 +7339,7 @@
7339
7339
  }());
7340
7340
  NotificationModule.decorators = [
7341
7341
  { type: i0.NgModule, args: [{
7342
- imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule, IconModule],
7342
+ imports: [common.CommonModule, overlay.OverlayModule, portal.PortalModule, IconModule],
7343
7343
  declarations: [NotificationWrapperComponent, NotificationComponent],
7344
7344
  entryComponents: [NotificationWrapperComponent, NotificationComponent],
7345
7345
  providers: [NotificationService],
@@ -9074,7 +9074,7 @@
9074
9074
  },] }
9075
9075
  ];
9076
9076
  AutoCompleteDirective.ctorParameters = function () { return [
9077
- { type: i1.Overlay },
9077
+ { type: overlay.Overlay },
9078
9078
  { type: i0.ViewContainerRef },
9079
9079
  { type: i0.ElementRef },
9080
9080
  { type: i0.Renderer2 },
@@ -9306,7 +9306,7 @@
9306
9306
  }());
9307
9307
  AutocompleteModule.decorators = [
9308
9308
  { type: i0.NgModule, args: [{
9309
- imports: [common.CommonModule, i1.OverlayModule, TooltipModule],
9309
+ imports: [common.CommonModule, overlay.OverlayModule, TooltipModule],
9310
9310
  declarations: [
9311
9311
  AutoCompleteDirective,
9312
9312
  CustomAutoCompleteDirective,
@@ -11062,7 +11062,7 @@
11062
11062
  forms.FormsModule,
11063
11063
  forms.ReactiveFormsModule,
11064
11064
  portal.PortalModule,
11065
- i1.OverlayModule,
11065
+ overlay.OverlayModule,
11066
11066
  common.CommonModule,
11067
11067
  InputModule,
11068
11068
  TooltipModule,
@@ -11974,7 +11974,7 @@
11974
11974
  _this.injector = injector;
11975
11975
  _this.cdr = cdr;
11976
11976
  _this.size = exports.DrawerSize.Medium;
11977
- _this.offsetY = 0;
11977
+ _this.offsetY = '0px';
11978
11978
  _this.hideOnClickOutside = false;
11979
11979
  _this.showClose = true;
11980
11980
  _this._value = SIZE_MAPPER[exports.DrawerSize.Medium];
@@ -12001,7 +12001,7 @@
12001
12001
  Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
12002
12002
  get: function () {
12003
12003
  var _c;
12004
- return Object.assign({ drawer: true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
12004
+ return Object.assign({ 'aui-drawer': true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
12005
12005
  },
12006
12006
  enumerable: false,
12007
12007
  configurable: true
@@ -12041,7 +12041,7 @@
12041
12041
  this.open();
12042
12042
  }
12043
12043
  else {
12044
- this.closure();
12044
+ this.dispose();
12045
12045
  }
12046
12046
  }
12047
12047
  };
@@ -12071,13 +12071,15 @@
12071
12071
  _this.hideOnClickOutside &&
12072
12072
  event.target instanceof Node &&
12073
12073
  !((_b = (_a = _this.overlayRef.hostElement) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
12074
- _this.closure();
12074
+ event.stopPropagation();
12075
+ event.preventDefault();
12076
+ _this.dispose();
12075
12077
  }
12076
12078
  });
12077
12079
  }
12078
12080
  };
12079
12081
  DrawerComponent.prototype.getOverlayConfig = function () {
12080
- return new i1.OverlayConfig({
12082
+ return new overlay.OverlayConfig({
12081
12083
  panelClass: DRAWER_OVERLAY_CLASS,
12082
12084
  positionStrategy: this.overlay.position().global(),
12083
12085
  scrollStrategy: this.overlay.scrollStrategies.block(),
@@ -12120,10 +12122,10 @@
12120
12122
  this.updateBodyOverflow();
12121
12123
  this.cdr.markForCheck();
12122
12124
  };
12123
- DrawerComponent.prototype.closure = function (result) {
12125
+ DrawerComponent.prototype.dispose = function (result) {
12124
12126
  if (result === void 0) { result = null; }
12125
12127
  this.visible = false;
12126
- this.close.next();
12128
+ this.close.emit();
12127
12129
  this.afterClosed$.next(result);
12128
12130
  this.afterClosed$.complete();
12129
12131
  this.updateBodyOverflow();
@@ -12137,7 +12139,7 @@
12137
12139
  };
12138
12140
  DrawerComponent.prototype.maskClick = function () {
12139
12141
  if (this.maskClosable && this.mask) {
12140
- this.closure();
12142
+ this.dispose();
12141
12143
  }
12142
12144
  };
12143
12145
  DrawerComponent.prototype.ngOnDestroy = function () {
@@ -12149,15 +12151,15 @@
12149
12151
  DrawerComponent.decorators = [
12150
12152
  { type: i0.Component, args: [{
12151
12153
  selector: 'aui-drawer',
12152
- template: "<ng-template #drawerTemplate>\n <div\n [class.drawer-mask-open]=\"visible\"\n class=\"drawer-mask\"\n (click)=\"maskClick()\"\n *ngIf=\"mask\"\n ></div>\n <div\n [style.marginTop.px]=\"offsetY\"\n [ngClass]=\"drawerClasses\"\n [class.drawer-open]=\"visible\"\n [ngStyle]=\"{\n transform: transform,\n width: width + 'px'\n }\"\n >\n <div\n class=\"drawer-content\"\n [style.height]=\"'calc(100% - ' + offsetY + 'px)'\"\n >\n <div class=\"drawer-body-wrapper\">\n <div class=\"drawer-header\">\n <div class=\"drawer-title\">\n <ng-container\n *ngIf=\"!isTemplateRef(title || titleTemplate); else elseTemplate\"\n >\n {{ title }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"title || titleTemplate\"\n [ngTemplateOutlet]=\"$any(title || titleTemplate)\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n <div class=\"drawer-close\" *ngIf=\"showClose\" (click)=\"closure()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"drawer-body\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container *ngIf=\"isTemplateRef(content || contentTemplate)\">\n <ng-container\n *ngTemplateOutlet=\"\n $any(content || contentTemplate);\n context: templateContext\n \"\n >\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"drawer-footer\" *ngIf=\"footer\">\n <ng-container\n *ngIf=\"!isTemplateRef(footer || footerTemplate); else elseTemplate\"\n >\n {{ footer }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"footer || titleTemplate\"\n [ngTemplateOutlet]=\"$any(footer || titleTemplate)\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
12154
+ template: "<ng-template #drawerTemplate>\n <div\n *ngIf=\"mask\"\n class=\"aui-drawer-mask\"\n [class.isOpen]=\"visible\"\n (click)=\"maskClick()\"\n ></div>\n <div\n [style.marginTop]=\"offsetY\"\n [ngClass]=\"drawerClasses\"\n [class.isOpen]=\"visible\"\n [ngStyle]=\"{\n transform: transform,\n width: width + 'px'\n }\"\n >\n <div class=\"aui-drawer__content\">\n <div class=\"aui-drawer__body-wrapper\">\n <div class=\"aui-drawer__header\">\n <div class=\"aui-drawer__title\">\n <ng-container\n *ngIf=\"!isTemplateRef(title || titleTemplate); else elseTemplate\"\n >\n {{ title }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"title || titleTemplate\"\n [ngTemplateOutlet]=\"title || titleTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n <div class=\"aui-drawer__close\" *ngIf=\"showClose\" (click)=\"dispose()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"aui-drawer__body\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container *ngIf=\"isTemplateRef(content || contentTemplate)\">\n <ng-container\n *ngTemplateOutlet=\"\n content || contentTemplate;\n context: templateContext\n \"\n >\n </ng-container>\n </ng-container>\n </div>\n\n <div *ngIf=\"footer || footerTemplate\" class=\"aui-drawer__footer\">\n <ng-container\n *ngIf=\"!isTemplateRef(footer || footerTemplate); else elseTemplate\"\n >\n {{ footer }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"footer || footerTemplate\"\n [ngTemplateOutlet]=\"footer || footerTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
12153
12155
  encapsulation: i0.ViewEncapsulation.None,
12154
12156
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
12155
- styles: [".drawer-open .drawer-content{box-shadow:0 4px 16px 0 rgba(var(--aui-color-n-1),.2)}.drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;opacity:.4;background-color:rgb(var(--aui-color-n-0))}.drawer-mask-open{height:100%}.drawer{height:100%;position:fixed;top:0;right:0;z-index:9999;transition:transform .3s,opacity .3s,box-shaow .3s}.drawer-content{background-color:rgb(var(--aui-color-n-10));position:absolute;height:100%;right:0;width:100%}.drawer-title{flex:1}.drawer-header{margin:20px 20px 0;background:rgb(var(--aui-color-n-10));display:flex;font-size:20px;font-weight:500;padding-bottom:16px;justify-content:space-between;border-bottom:1px solid rgb(var(--aui-color-n-7))}.drawer-close{z-index:10;display:flex;align-items:center;font-size:16px;cursor:pointer;color:rgb(var(--aui-color-n-4));margin-left:16px}.drawer-body-wrapper{width:100%;height:100%;flex-direction:column;flex-wrap:nowrap;display:flex;position:relative;z-index:1;background-clip:padding-box;border:0}.drawer-body{margin:16px 20px;overflow:hidden;overflow-y:auto;font-size:14px;height:calc(100% - 100px)}.drawer-footer{margin:0 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-7))}"]
12157
+ styles: [".aui-drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;opacity:.4;background-color:rgb(var(--aui-color-n-0))}.aui-drawer-mask.isOpen{height:100%}.aui-drawer{position:fixed;top:0;bottom:0;right:0;z-index:9999;transition:transform .3s,opacity .3s,box-shaow .3s;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1))}.aui-drawer.isOpen .aui-drawer__content{box-shadow:0 4px 16px 0 rgba(var(--aui-color-n-1),.2)}.aui-drawer__content{background-color:rgb(var(--aui-color-n-10));position:absolute;height:100%;right:0;width:100%}.aui-drawer__header{margin:20px 20px -4px;padding-bottom:16px;display:flex;justify-content:space-between;border-bottom:1px solid rgb(var(--aui-color-n-8))}.aui-drawer__title{flex:1;font-size:var(--aui-font-size-xxl);line-height:var(--aui-line-height-xxl);color:rgb(var(--aui-color-n-1));font-weight:var(--aui-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aui-drawer__close{z-index:10;margin-left:16px;display:flex;align-items:center;font-size:var(--aui-icon-size-m);color:rgb(var(--aui-color-n-4));cursor:pointer}.aui-drawer__close:hover{color:rgb(var(--aui-color-primary))}.aui-drawer__body-wrapper{width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;position:relative;z-index:1}.aui-drawer__body{padding:20px;overflow:hidden;overflow-y:auto;height:100%}.aui-drawer__footer{margin:-4px 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-8))}"]
12156
12158
  },] }
12157
12159
  ];
12158
12160
  DrawerComponent.ctorParameters = function () { return [
12159
12161
  { type: i0.ViewContainerRef },
12160
- { type: i1.Overlay },
12162
+ { type: overlay.Overlay },
12161
12163
  { type: i0.Injector },
12162
12164
  { type: i0.ChangeDetectorRef }
12163
12165
  ]; };
@@ -12190,7 +12192,7 @@
12190
12192
  }
12191
12193
  DrawerService.prototype.open = function (options) {
12192
12194
  var _a, _b, _c;
12193
- (_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.closure();
12195
+ (_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.dispose();
12194
12196
  this.createDrawer();
12195
12197
  this.updateOptions(options);
12196
12198
  return (_c = this.drawerRef) === null || _c === void 0 ? void 0 : _c.instance;
@@ -12218,14 +12220,11 @@
12218
12220
  };
12219
12221
  return DrawerService;
12220
12222
  }());
12221
- DrawerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DrawerService_Factory() { return new DrawerService(i0.ɵɵinject(i1.Overlay)); }, token: DrawerService, providedIn: "root" });
12222
12223
  DrawerService.decorators = [
12223
- { type: i0.Injectable, args: [{
12224
- providedIn: 'root',
12225
- },] }
12224
+ { type: i0.Injectable }
12226
12225
  ];
12227
12226
  DrawerService.ctorParameters = function () { return [
12228
- { type: i1.Overlay }
12227
+ { type: overlay.Overlay }
12229
12228
  ]; };
12230
12229
 
12231
12230
  var COMMON = [
@@ -12241,11 +12240,11 @@
12241
12240
  }());
12242
12241
  DrawerModule.decorators = [
12243
12242
  { type: i0.NgModule, args: [{
12244
- imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
12243
+ imports: [common.CommonModule, IconModule, IconModule, overlay.OverlayModule, portal.PortalModule],
12245
12244
  declarations: COMMON,
12246
12245
  exports: COMMON,
12247
- providers: [DrawerService],
12248
12246
  entryComponents: [DrawerComponent],
12247
+ providers: [DrawerService],
12249
12248
  },] }
12250
12249
  ];
12251
12250