@alauda/ui 6.1.3-beta.11 → 6.1.3-beta.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.
- package/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +235 -113
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/drawer/component/drawer-ref.d.ts +26 -0
- package/drawer/component/drawer.component.d.ts +32 -15
- package/drawer/component/drawer.service.d.ts +23 -0
- package/drawer/public-api.d.ts +2 -2
- package/esm2015/dialog/dialog.module.js +3 -1
- package/esm2015/dialog/dialog.module.ngfactory.js +8 -7
- package/esm2015/dialog/dialog.module.ngsummary.json +1 -1
- package/esm2015/dialog/dialog.service.js +2 -6
- package/esm2015/drawer/component/drawer-ref.js +9 -0
- package/esm2015/drawer/component/drawer-ref.ngsummary.json +1 -0
- package/esm2015/drawer/component/drawer.component.js +113 -38
- package/esm2015/drawer/component/drawer.component.ngfactory.js +24 -14
- package/esm2015/drawer/component/drawer.component.ngsummary.json +1 -1
- package/esm2015/drawer/component/drawer.component.scss.ngstyle.js +1 -1
- package/esm2015/drawer/component/drawer.service.js +46 -0
- package/esm2015/drawer/component/drawer.service.ngsummary.json +1 -0
- package/esm2015/drawer/drawer.module.js +3 -1
- package/esm2015/drawer/drawer.module.ngfactory.js +8 -7
- package/esm2015/drawer/drawer.module.ngsummary.json +1 -1
- package/esm2015/drawer/public-api.js +3 -3
- package/esm2015/drawer/public-api.ngsummary.json +1 -1
- package/esm2015/message/message.module.js +3 -1
- package/esm2015/message/message.module.ngfactory.js +8 -6
- package/esm2015/message/message.module.ngsummary.json +1 -1
- package/esm2015/message/message.service.js +2 -6
- package/esm2015/notification/notification.module.js +3 -1
- package/esm2015/notification/notification.module.ngfactory.js +8 -6
- package/esm2015/notification/notification.module.ngsummary.json +1 -1
- package/esm2015/notification/notification.service.js +2 -6
- package/fesm2015/alauda-ui.js +168 -66
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/drawer/drawer.service.d.ts +0 -4
- package/drawer/drawer.types.d.ts +0 -14
- package/esm2015/drawer/drawer.service.js +0 -17
- package/esm2015/drawer/drawer.service.ngsummary.json +0 -1
- package/esm2015/drawer/drawer.types.js +0 -7
- package/esm2015/drawer/drawer.types.ngsummary.json +0 -1
package/bundles/alauda-ui.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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/
|
|
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/
|
|
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.
|
|
5
|
-
}(this, (function (exports, i0, rxjs, operators, table, common, http, animations, collections, a11y,
|
|
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
|
+
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
|
+
(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, 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:
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
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
|
|
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) {
|
|
@@ -2902,14 +2902,13 @@
|
|
|
2902
2902
|
}());
|
|
2903
2903
|
DialogService.DIALOG_OVERLAY_PANE_CLASS = 'aui-dialog-overlay-pane';
|
|
2904
2904
|
DialogService.DIALOG_BACKDROP_CLASS = 'aui-dialog-backdrop';
|
|
2905
|
-
DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2.ScrollDispatcher), i0.ɵɵinject(i0.NgZone)); }, token: DialogService, providedIn: "root" });
|
|
2906
2905
|
DialogService.decorators = [
|
|
2907
|
-
{ type: i0.Injectable
|
|
2906
|
+
{ type: i0.Injectable }
|
|
2908
2907
|
];
|
|
2909
2908
|
DialogService.ctorParameters = function () { return [
|
|
2910
|
-
{ type:
|
|
2909
|
+
{ type: overlay.Overlay },
|
|
2911
2910
|
{ type: i0.Injector },
|
|
2912
|
-
{ type:
|
|
2911
|
+
{ type: overlay.ScrollDispatcher },
|
|
2913
2912
|
{ type: i0.NgZone }
|
|
2914
2913
|
]; };
|
|
2915
2914
|
|
|
@@ -2954,7 +2953,7 @@
|
|
|
2954
2953
|
return _this;
|
|
2955
2954
|
}
|
|
2956
2955
|
return DialogContentComponent;
|
|
2957
|
-
}(
|
|
2956
|
+
}(overlay.CdkScrollable));
|
|
2958
2957
|
DialogContentComponent.decorators = [
|
|
2959
2958
|
{ type: i0.Component, args: [{
|
|
2960
2959
|
selector: 'aui-dialog-content',
|
|
@@ -2966,7 +2965,7 @@
|
|
|
2966
2965
|
];
|
|
2967
2966
|
DialogContentComponent.ctorParameters = function () { return [
|
|
2968
2967
|
{ type: i0.ElementRef },
|
|
2969
|
-
{ type:
|
|
2968
|
+
{ type: overlay.ScrollDispatcher },
|
|
2970
2969
|
{ type: i0.NgZone },
|
|
2971
2970
|
{ type: bidi.Directionality }
|
|
2972
2971
|
]; };
|
|
@@ -3033,7 +3032,7 @@
|
|
|
3033
3032
|
{ type: i0.NgModule, args: [{
|
|
3034
3033
|
imports: [
|
|
3035
3034
|
common.CommonModule,
|
|
3036
|
-
|
|
3035
|
+
overlay.OverlayModule,
|
|
3037
3036
|
portal.PortalModule,
|
|
3038
3037
|
IconModule,
|
|
3039
3038
|
ButtonModule,
|
|
@@ -3054,6 +3053,7 @@
|
|
|
3054
3053
|
DialogCloseDirective,
|
|
3055
3054
|
],
|
|
3056
3055
|
entryComponents: [DialogComponent, ConfirmDialogComponent],
|
|
3056
|
+
providers: [DialogService],
|
|
3057
3057
|
},] }
|
|
3058
3058
|
];
|
|
3059
3059
|
|
|
@@ -5112,7 +5112,7 @@
|
|
|
5112
5112
|
},] }
|
|
5113
5113
|
];
|
|
5114
5114
|
DropdownDirective.ctorParameters = function () { return [
|
|
5115
|
-
{ type:
|
|
5115
|
+
{ type: overlay.Overlay },
|
|
5116
5116
|
{ type: i0.ViewContainerRef },
|
|
5117
5117
|
{ type: i0.ElementRef },
|
|
5118
5118
|
{ type: i0.Renderer2 },
|
|
@@ -7067,9 +7067,10 @@
|
|
|
7067
7067
|
}());
|
|
7068
7068
|
MessageModule.decorators = [
|
|
7069
7069
|
{ type: i0.NgModule, args: [{
|
|
7070
|
-
imports: [common.CommonModule,
|
|
7070
|
+
imports: [common.CommonModule, overlay.OverlayModule, IconModule],
|
|
7071
7071
|
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7072
7072
|
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7073
|
+
providers: [MessageService],
|
|
7073
7074
|
},] }
|
|
7074
7075
|
];
|
|
7075
7076
|
|
|
@@ -7168,12 +7169,11 @@
|
|
|
7168
7169
|
}
|
|
7169
7170
|
return MessageService;
|
|
7170
7171
|
}(BaseMessage));
|
|
7171
|
-
MessageService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MessageService_Factory() { return new MessageService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(MESSAGE_CONFIG, 8)); }, token: MessageService, providedIn: "root" });
|
|
7172
7172
|
MessageService.decorators = [
|
|
7173
|
-
{ type: i0.Injectable
|
|
7173
|
+
{ type: i0.Injectable }
|
|
7174
7174
|
];
|
|
7175
7175
|
MessageService.ctorParameters = function () { return [
|
|
7176
|
-
{ type:
|
|
7176
|
+
{ type: overlay.Overlay },
|
|
7177
7177
|
{ type: i0.Injector },
|
|
7178
7178
|
{ type: i0.ApplicationRef },
|
|
7179
7179
|
{ type: i0.ComponentFactoryResolver },
|
|
@@ -7308,19 +7308,6 @@
|
|
|
7308
7308
|
onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
|
|
7309
7309
|
};
|
|
7310
7310
|
|
|
7311
|
-
var NotificationModule = /** @class */ (function () {
|
|
7312
|
-
function NotificationModule() {
|
|
7313
|
-
}
|
|
7314
|
-
return NotificationModule;
|
|
7315
|
-
}());
|
|
7316
|
-
NotificationModule.decorators = [
|
|
7317
|
-
{ type: i0.NgModule, args: [{
|
|
7318
|
-
imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule, IconModule],
|
|
7319
|
-
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7320
|
-
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7321
|
-
},] }
|
|
7322
|
-
];
|
|
7323
|
-
|
|
7324
7311
|
var NOTIFICATION_CONFIG = new i0.InjectionToken('NOTIFICATION_CONFIG');
|
|
7325
7312
|
var NOTIFICATION_DEFAULT_CONFIG = {
|
|
7326
7313
|
duration: 6000,
|
|
@@ -7334,18 +7321,31 @@
|
|
|
7334
7321
|
}
|
|
7335
7322
|
return NotificationService;
|
|
7336
7323
|
}(BaseMessage));
|
|
7337
|
-
NotificationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(NOTIFICATION_CONFIG, 8)); }, token: NotificationService, providedIn: "root" });
|
|
7338
7324
|
NotificationService.decorators = [
|
|
7339
|
-
{ type: i0.Injectable
|
|
7325
|
+
{ type: i0.Injectable }
|
|
7340
7326
|
];
|
|
7341
7327
|
NotificationService.ctorParameters = function () { return [
|
|
7342
|
-
{ type:
|
|
7328
|
+
{ type: overlay.Overlay },
|
|
7343
7329
|
{ type: i0.Injector },
|
|
7344
7330
|
{ type: i0.ApplicationRef },
|
|
7345
7331
|
{ type: i0.ComponentFactoryResolver },
|
|
7346
7332
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [NOTIFICATION_CONFIG,] }] }
|
|
7347
7333
|
]; };
|
|
7348
7334
|
|
|
7335
|
+
var NotificationModule = /** @class */ (function () {
|
|
7336
|
+
function NotificationModule() {
|
|
7337
|
+
}
|
|
7338
|
+
return NotificationModule;
|
|
7339
|
+
}());
|
|
7340
|
+
NotificationModule.decorators = [
|
|
7341
|
+
{ type: i0.NgModule, args: [{
|
|
7342
|
+
imports: [common.CommonModule, overlay.OverlayModule, portal.PortalModule, IconModule],
|
|
7343
|
+
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7344
|
+
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7345
|
+
providers: [NotificationService],
|
|
7346
|
+
},] }
|
|
7347
|
+
];
|
|
7348
|
+
|
|
7349
7349
|
var TabBodyComponent = /** @class */ (function () {
|
|
7350
7350
|
function TabBodyComponent() {
|
|
7351
7351
|
this.content$ = new rxjs.BehaviorSubject(null);
|
|
@@ -7943,7 +7943,7 @@
|
|
|
7943
7943
|
];
|
|
7944
7944
|
TabHeaderComponent.ctorParameters = function () { return [
|
|
7945
7945
|
{ type: i0.ChangeDetectorRef },
|
|
7946
|
-
{ type:
|
|
7946
|
+
{ type: scrolling.ViewportRuler }
|
|
7947
7947
|
]; };
|
|
7948
7948
|
TabHeaderComponent.propDecorators = {
|
|
7949
7949
|
type: [{ type: i0.Input }],
|
|
@@ -9074,7 +9074,7 @@
|
|
|
9074
9074
|
},] }
|
|
9075
9075
|
];
|
|
9076
9076
|
AutoCompleteDirective.ctorParameters = function () { return [
|
|
9077
|
-
{ type:
|
|
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,
|
|
9309
|
+
imports: [common.CommonModule, overlay.OverlayModule, TooltipModule],
|
|
9310
9310
|
declarations: [
|
|
9311
9311
|
AutoCompleteDirective,
|
|
9312
9312
|
CustomAutoCompleteDirective,
|
|
@@ -9935,7 +9935,7 @@
|
|
|
9935
9935
|
exportAs: 'viewPort',
|
|
9936
9936
|
providers: [
|
|
9937
9937
|
{
|
|
9938
|
-
provide:
|
|
9938
|
+
provide: scrolling.VIRTUAL_SCROLL_STRATEGY,
|
|
9939
9939
|
useFactory: _tableVirtualScrollDirectiveStrategyFactory,
|
|
9940
9940
|
deps: [i0.forwardRef(function () { return FixedSizeTableVirtualScrollDirective; })],
|
|
9941
9941
|
},
|
|
@@ -9950,21 +9950,21 @@
|
|
|
9950
9950
|
table: [{ type: i0.ContentChild, args: [TableComponent, { static: false },] }]
|
|
9951
9951
|
};
|
|
9952
9952
|
|
|
9953
|
-
var ɵ0 =
|
|
9953
|
+
var ɵ0 = scrolling._fixedSizeVirtualScrollStrategyFactory;
|
|
9954
9954
|
var FixedSizeVirtualScrollDirective = /** @class */ (function (_super) {
|
|
9955
9955
|
__extends(FixedSizeVirtualScrollDirective, _super);
|
|
9956
9956
|
function FixedSizeVirtualScrollDirective() {
|
|
9957
9957
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9958
9958
|
}
|
|
9959
9959
|
return FixedSizeVirtualScrollDirective;
|
|
9960
|
-
}(
|
|
9960
|
+
}(scrolling.CdkFixedSizeVirtualScroll));
|
|
9961
9961
|
FixedSizeVirtualScrollDirective.decorators = [
|
|
9962
9962
|
{ type: i0.Directive, args: [{
|
|
9963
9963
|
// tslint:disable-next-line: directive-selector
|
|
9964
9964
|
selector: 'aui-virtual-scroll-viewport[itemSize]',
|
|
9965
9965
|
providers: [
|
|
9966
9966
|
{
|
|
9967
|
-
provide:
|
|
9967
|
+
provide: scrolling.VIRTUAL_SCROLL_STRATEGY,
|
|
9968
9968
|
useFactory: ɵ0,
|
|
9969
9969
|
deps: [i0.forwardRef(function () { return FixedSizeVirtualScrollDirective; })],
|
|
9970
9970
|
},
|
|
@@ -10008,7 +10008,7 @@
|
|
|
10008
10008
|
configurable: true
|
|
10009
10009
|
});
|
|
10010
10010
|
return VirtualForOfDirective;
|
|
10011
|
-
}(
|
|
10011
|
+
}(scrolling.CdkVirtualForOf));
|
|
10012
10012
|
VirtualForOfDirective.decorators = [
|
|
10013
10013
|
{ type: i0.Directive, args: [{
|
|
10014
10014
|
selector: '[auiVirtualFor][auiVirtualForOf]',
|
|
@@ -10027,7 +10027,7 @@
|
|
|
10027
10027
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10028
10028
|
}
|
|
10029
10029
|
return VirtualScrollViewportComponent;
|
|
10030
|
-
}(
|
|
10030
|
+
}(scrolling.CdkVirtualScrollViewport));
|
|
10031
10031
|
VirtualScrollViewportComponent.decorators = [
|
|
10032
10032
|
{ type: i0.Component, args: [{
|
|
10033
10033
|
selector: 'aui-virtual-scroll-viewport',
|
|
@@ -10042,7 +10042,7 @@
|
|
|
10042
10042
|
preserveWhitespaces: false,
|
|
10043
10043
|
providers: [
|
|
10044
10044
|
{
|
|
10045
|
-
provide:
|
|
10045
|
+
provide: scrolling.CdkVirtualScrollViewport,
|
|
10046
10046
|
useExisting: VirtualScrollViewportComponent,
|
|
10047
10047
|
},
|
|
10048
10048
|
],
|
|
@@ -10256,7 +10256,7 @@
|
|
|
10256
10256
|
{ type: i0.ApplicationRef },
|
|
10257
10257
|
{ type: i0.Injector },
|
|
10258
10258
|
{ type: i0.ElementRef },
|
|
10259
|
-
{ type:
|
|
10259
|
+
{ type: scrolling.CdkScrollable, decorators: [{ type: i0.Optional }] }
|
|
10260
10260
|
]; };
|
|
10261
10261
|
AnchorDirective.propDecorators = {
|
|
10262
10262
|
auiAnchor: [{ type: i0.Input }],
|
|
@@ -11062,7 +11062,7 @@
|
|
|
11062
11062
|
forms.FormsModule,
|
|
11063
11063
|
forms.ReactiveFormsModule,
|
|
11064
11064
|
portal.PortalModule,
|
|
11065
|
-
|
|
11065
|
+
overlay.OverlayModule,
|
|
11066
11066
|
common.CommonModule,
|
|
11067
11067
|
InputModule,
|
|
11068
11068
|
TooltipModule,
|
|
@@ -11912,10 +11912,15 @@
|
|
|
11912
11912
|
];
|
|
11913
11913
|
|
|
11914
11914
|
(function (DrawerSize) {
|
|
11915
|
-
DrawerSize["Small"] = "
|
|
11916
|
-
DrawerSize["Medium"] = "
|
|
11917
|
-
DrawerSize["
|
|
11915
|
+
DrawerSize["Small"] = "small";
|
|
11916
|
+
DrawerSize["Medium"] = "medium";
|
|
11917
|
+
DrawerSize["Big"] = "big";
|
|
11918
11918
|
})(exports.DrawerSize || (exports.DrawerSize = {}));
|
|
11919
|
+
var DrawerRef = /** @class */ (function () {
|
|
11920
|
+
function DrawerRef() {
|
|
11921
|
+
}
|
|
11922
|
+
return DrawerRef;
|
|
11923
|
+
}());
|
|
11919
11924
|
|
|
11920
11925
|
/**
|
|
11921
11926
|
* @packageDocumentation
|
|
@@ -11952,26 +11957,65 @@
|
|
|
11952
11957
|
},] }
|
|
11953
11958
|
];
|
|
11954
11959
|
|
|
11960
|
+
var _c;
|
|
11955
11961
|
var DATA = new i0.InjectionToken('drawer-data');
|
|
11956
11962
|
var DRAWER_OVERLAY_CLASS = 'aui-drawer-overlay';
|
|
11957
|
-
var
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11963
|
+
var SIZE_MAPPER = (_c = {},
|
|
11964
|
+
_c[exports.DrawerSize.Small] = 400,
|
|
11965
|
+
_c[exports.DrawerSize.Medium] = 600,
|
|
11966
|
+
_c[exports.DrawerSize.Big] = 800,
|
|
11967
|
+
_c);
|
|
11968
|
+
var DrawerComponent = /** @class */ (function (_super) {
|
|
11969
|
+
__extends(DrawerComponent, _super);
|
|
11970
|
+
function DrawerComponent(viewContainerRef, overlay, injector, cdr) {
|
|
11971
|
+
var _this = _super.call(this) || this;
|
|
11972
|
+
_this.viewContainerRef = viewContainerRef;
|
|
11973
|
+
_this.overlay = overlay;
|
|
11974
|
+
_this.injector = injector;
|
|
11975
|
+
_this.cdr = cdr;
|
|
11976
|
+
_this.size = exports.DrawerSize.Medium;
|
|
11977
|
+
_this.offsetY = '0px';
|
|
11978
|
+
_this.hideOnClickOutside = false;
|
|
11979
|
+
_this.showClose = true;
|
|
11980
|
+
_this._value = SIZE_MAPPER[exports.DrawerSize.Medium];
|
|
11981
|
+
_this.afterClosed$ = new rxjs.Subject();
|
|
11982
|
+
_this.afterOpen$ = new rxjs.Subject();
|
|
11983
|
+
_this.drawerViewInit = new i0.EventEmitter();
|
|
11984
|
+
_this.close = new i0.EventEmitter();
|
|
11985
|
+
_this.onDestroy$ = new rxjs.Subject();
|
|
11986
|
+
_this.isTemplateRef = isTemplateRef;
|
|
11987
|
+
_this.componentInstance = null;
|
|
11988
|
+
_this.templateContext = {};
|
|
11989
|
+
return _this;
|
|
11970
11990
|
}
|
|
11991
|
+
Object.defineProperty(DrawerComponent.prototype, "width", {
|
|
11992
|
+
get: function () {
|
|
11993
|
+
return this._value;
|
|
11994
|
+
},
|
|
11995
|
+
set: function (value) {
|
|
11996
|
+
this._value = value;
|
|
11997
|
+
},
|
|
11998
|
+
enumerable: false,
|
|
11999
|
+
configurable: true
|
|
12000
|
+
});
|
|
11971
12001
|
Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
|
|
11972
12002
|
get: function () {
|
|
11973
12003
|
var _c;
|
|
11974
|
-
return Object.assign({ 'aui-drawer': true
|
|
12004
|
+
return Object.assign({ 'aui-drawer': true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12005
|
+
},
|
|
12006
|
+
enumerable: false,
|
|
12007
|
+
configurable: true
|
|
12008
|
+
});
|
|
12009
|
+
Object.defineProperty(DrawerComponent.prototype, "afterClosed", {
|
|
12010
|
+
get: function () {
|
|
12011
|
+
return this.afterClosed$.asObservable();
|
|
12012
|
+
},
|
|
12013
|
+
enumerable: false,
|
|
12014
|
+
configurable: true
|
|
12015
|
+
});
|
|
12016
|
+
Object.defineProperty(DrawerComponent.prototype, "afterOpen", {
|
|
12017
|
+
get: function () {
|
|
12018
|
+
return this.afterOpen$.asObservable();
|
|
11975
12019
|
},
|
|
11976
12020
|
enumerable: false,
|
|
11977
12021
|
configurable: true
|
|
@@ -11987,24 +12031,26 @@
|
|
|
11987
12031
|
this.attachOverlay();
|
|
11988
12032
|
this.updateBodyOverflow();
|
|
11989
12033
|
this.templateContext = { $implicit: this.contentParams };
|
|
12034
|
+
this.cdr.detectChanges();
|
|
11990
12035
|
};
|
|
11991
|
-
DrawerComponent.prototype.
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
this.close();
|
|
12036
|
+
DrawerComponent.prototype.ngOnChanges = function (changes) {
|
|
12037
|
+
var visible = changes.visible;
|
|
12038
|
+
if (visible) {
|
|
12039
|
+
var value = visible.currentValue;
|
|
12040
|
+
if (value) {
|
|
12041
|
+
this.open();
|
|
12042
|
+
}
|
|
12043
|
+
else {
|
|
12044
|
+
this.dispose();
|
|
12045
|
+
}
|
|
12002
12046
|
}
|
|
12003
12047
|
};
|
|
12004
|
-
DrawerComponent.prototype.
|
|
12005
|
-
this
|
|
12006
|
-
this.
|
|
12007
|
-
|
|
12048
|
+
DrawerComponent.prototype.ngAfterViewInit = function () {
|
|
12049
|
+
var _this = this;
|
|
12050
|
+
this.attachBodyContent();
|
|
12051
|
+
setTimeout(function () {
|
|
12052
|
+
_this.drawerViewInit.emit();
|
|
12053
|
+
}, 0);
|
|
12008
12054
|
};
|
|
12009
12055
|
DrawerComponent.prototype.attachOverlay = function () {
|
|
12010
12056
|
var _this = this;
|
|
@@ -12016,7 +12062,7 @@
|
|
|
12016
12062
|
this.overlayRef.attach(this.portal);
|
|
12017
12063
|
this.overlayRef
|
|
12018
12064
|
.outsidePointerEvents()
|
|
12019
|
-
.pipe(operators.takeUntil(this.
|
|
12065
|
+
.pipe(operators.takeUntil(this.onDestroy$))
|
|
12020
12066
|
.subscribe(function (event) {
|
|
12021
12067
|
var _a, _b;
|
|
12022
12068
|
// 判断鼠标点击事件的 target 是否为 overlay-container 的子节点,如果是,则不关闭 drawer。
|
|
@@ -12027,18 +12073,38 @@
|
|
|
12027
12073
|
!((_b = (_a = _this.overlayRef.hostElement) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
|
|
12028
12074
|
event.stopPropagation();
|
|
12029
12075
|
event.preventDefault();
|
|
12030
|
-
_this.
|
|
12076
|
+
_this.dispose();
|
|
12031
12077
|
}
|
|
12032
12078
|
});
|
|
12033
12079
|
}
|
|
12034
12080
|
};
|
|
12035
12081
|
DrawerComponent.prototype.getOverlayConfig = function () {
|
|
12036
|
-
return new
|
|
12082
|
+
return new overlay.OverlayConfig({
|
|
12037
12083
|
panelClass: DRAWER_OVERLAY_CLASS,
|
|
12038
12084
|
positionStrategy: this.overlay.position().global(),
|
|
12039
12085
|
scrollStrategy: this.overlay.scrollStrategies.block(),
|
|
12040
12086
|
});
|
|
12041
12087
|
};
|
|
12088
|
+
DrawerComponent.prototype.attachBodyContent = function () {
|
|
12089
|
+
var _a, _b;
|
|
12090
|
+
(_a = this.bodyPortalOutlet) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
12091
|
+
var content = this.content || this.contentTemplate;
|
|
12092
|
+
if (content instanceof i0.Type) {
|
|
12093
|
+
var componentPortal = new portal.ComponentPortal(content, null, i0.Injector.create({
|
|
12094
|
+
providers: [
|
|
12095
|
+
{
|
|
12096
|
+
provide: DATA,
|
|
12097
|
+
useValue: this.contentParams,
|
|
12098
|
+
},
|
|
12099
|
+
],
|
|
12100
|
+
parent: this.injector,
|
|
12101
|
+
}));
|
|
12102
|
+
var componentRef = (_b = this.bodyPortalOutlet) === null || _b === void 0 ? void 0 : _b.attachComponentPortal(componentPortal);
|
|
12103
|
+
this.componentInstance = componentRef.instance;
|
|
12104
|
+
Object.assign(componentRef.instance, this.contentParams);
|
|
12105
|
+
componentRef.changeDetectorRef.detectChanges();
|
|
12106
|
+
}
|
|
12107
|
+
};
|
|
12042
12108
|
DrawerComponent.prototype.updateBodyOverflow = function () {
|
|
12043
12109
|
if (this.overlayRef) {
|
|
12044
12110
|
if (this.visible) {
|
|
@@ -12049,44 +12115,74 @@
|
|
|
12049
12115
|
}
|
|
12050
12116
|
}
|
|
12051
12117
|
};
|
|
12118
|
+
DrawerComponent.prototype.open = function () {
|
|
12119
|
+
this.visible = true;
|
|
12120
|
+
this.afterOpen$.next();
|
|
12121
|
+
this.afterOpen$.complete();
|
|
12122
|
+
this.updateBodyOverflow();
|
|
12123
|
+
this.cdr.markForCheck();
|
|
12124
|
+
};
|
|
12125
|
+
DrawerComponent.prototype.dispose = function (result) {
|
|
12126
|
+
if (result === void 0) { result = null; }
|
|
12127
|
+
this.visible = false;
|
|
12128
|
+
this.close.emit();
|
|
12129
|
+
this.afterClosed$.next(result);
|
|
12130
|
+
this.afterClosed$.complete();
|
|
12131
|
+
this.updateBodyOverflow();
|
|
12132
|
+
this.cdr.markForCheck();
|
|
12133
|
+
};
|
|
12052
12134
|
DrawerComponent.prototype.disposeOverlay = function () {
|
|
12053
12135
|
if (this.overlayRef) {
|
|
12054
12136
|
this.overlayRef.dispose();
|
|
12055
12137
|
}
|
|
12056
12138
|
this.overlayRef = null;
|
|
12057
12139
|
};
|
|
12140
|
+
DrawerComponent.prototype.maskClick = function () {
|
|
12141
|
+
if (this.maskClosable && this.mask) {
|
|
12142
|
+
this.dispose();
|
|
12143
|
+
}
|
|
12144
|
+
};
|
|
12145
|
+
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
12146
|
+
this.onDestroy$.next();
|
|
12147
|
+
this.disposeOverlay();
|
|
12148
|
+
};
|
|
12058
12149
|
return DrawerComponent;
|
|
12059
|
-
}());
|
|
12150
|
+
}(DrawerRef));
|
|
12060
12151
|
DrawerComponent.decorators = [
|
|
12061
12152
|
{ type: i0.Component, args: [{
|
|
12062
12153
|
selector: 'aui-drawer',
|
|
12063
|
-
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 [ngClass]=\"drawerClasses\"\n [ngStyle]=\"{\n transform: transform,\n width: width
|
|
12064
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
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 || titleTemplate\"\n [ngTemplateOutlet]=\"footer || titleTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
12065
12155
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12066
|
-
|
|
12067
|
-
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;
|
|
12156
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
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 0;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{margin:16px 20px;overflow:hidden;overflow-y:auto;height:100%}.aui-drawer__footer{margin:0 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-8))}"]
|
|
12068
12158
|
},] }
|
|
12069
12159
|
];
|
|
12070
12160
|
DrawerComponent.ctorParameters = function () { return [
|
|
12071
12161
|
{ type: i0.ViewContainerRef },
|
|
12072
|
-
{ type:
|
|
12162
|
+
{ type: overlay.Overlay },
|
|
12163
|
+
{ type: i0.Injector },
|
|
12164
|
+
{ type: i0.ChangeDetectorRef }
|
|
12073
12165
|
]; };
|
|
12074
12166
|
DrawerComponent.propDecorators = {
|
|
12167
|
+
title: [{ type: i0.Input }],
|
|
12168
|
+
footer: [{ type: i0.Input }],
|
|
12075
12169
|
size: [{ type: i0.Input }],
|
|
12076
12170
|
offsetY: [{ type: i0.Input }],
|
|
12077
12171
|
visible: [{ type: i0.Input }],
|
|
12172
|
+
content: [{ type: i0.Input }],
|
|
12078
12173
|
hideOnClickOutside: [{ type: i0.Input }],
|
|
12079
12174
|
showClose: [{ type: i0.Input }],
|
|
12080
12175
|
drawerClass: [{ type: i0.Input }],
|
|
12081
|
-
divider: [{ type: i0.Input }],
|
|
12082
12176
|
mask: [{ type: i0.Input }],
|
|
12083
12177
|
maskClosable: [{ type: i0.Input }],
|
|
12084
12178
|
width: [{ type: i0.Input }],
|
|
12085
|
-
|
|
12179
|
+
drawerViewInit: [{ type: i0.Output }],
|
|
12180
|
+
close: [{ type: i0.Output }],
|
|
12086
12181
|
drawerTemplate: [{ type: i0.ViewChild, args: ['drawerTemplate', { static: true },] }],
|
|
12087
12182
|
bodyPortalOutlet: [{ type: i0.ViewChild, args: [portal.CdkPortalOutlet, { static: false },] }],
|
|
12088
|
-
|
|
12089
|
-
|
|
12183
|
+
titleTemplate: [{ type: i0.ContentChild, args: [DrawerHeaderDirective, { read: i0.TemplateRef },] }],
|
|
12184
|
+
contentTemplate: [{ type: i0.ContentChild, args: [DrawerContentDirective, { read: i0.TemplateRef },] }],
|
|
12185
|
+
footerTemplate: [{ type: i0.ContentChild, args: [DrawerFooterDirective, { read: i0.TemplateRef },] }]
|
|
12090
12186
|
};
|
|
12091
12187
|
|
|
12092
12188
|
var COMMON = [
|
|
@@ -12102,30 +12198,55 @@
|
|
|
12102
12198
|
}());
|
|
12103
12199
|
DrawerModule.decorators = [
|
|
12104
12200
|
{ type: i0.NgModule, args: [{
|
|
12105
|
-
imports: [common.CommonModule, IconModule, IconModule,
|
|
12201
|
+
imports: [common.CommonModule, IconModule, IconModule, overlay.OverlayModule, portal.PortalModule],
|
|
12106
12202
|
declarations: COMMON,
|
|
12107
12203
|
exports: COMMON,
|
|
12108
12204
|
entryComponents: [DrawerComponent],
|
|
12205
|
+
providers: [DrawerService],
|
|
12109
12206
|
},] }
|
|
12110
12207
|
];
|
|
12111
12208
|
|
|
12112
12209
|
var DrawerService = /** @class */ (function () {
|
|
12113
|
-
function DrawerService() {
|
|
12210
|
+
function DrawerService(overlay) {
|
|
12211
|
+
this.overlay = overlay;
|
|
12212
|
+
this.unsubscribe$ = new rxjs.Subject();
|
|
12114
12213
|
}
|
|
12115
|
-
DrawerService.prototype.open = function (
|
|
12116
|
-
|
|
12214
|
+
DrawerService.prototype.open = function (options) {
|
|
12215
|
+
var _a, _b, _c;
|
|
12216
|
+
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
12217
|
+
this.createDrawer();
|
|
12218
|
+
this.updateOptions(options);
|
|
12219
|
+
return (_c = this.drawerRef) === null || _c === void 0 ? void 0 : _c.instance;
|
|
12117
12220
|
};
|
|
12118
|
-
DrawerService.prototype.updateOptions = function (
|
|
12119
|
-
|
|
12221
|
+
DrawerService.prototype.updateOptions = function (options) {
|
|
12222
|
+
Object.assign(this.drawerRef.instance, options);
|
|
12223
|
+
};
|
|
12224
|
+
DrawerService.prototype.createDrawer = function () {
|
|
12225
|
+
var _this = this;
|
|
12226
|
+
this.overlayRef = this.overlay.create();
|
|
12227
|
+
this.drawerRef = this.overlayRef.attach(new portal.ComponentPortal(DrawerComponent));
|
|
12228
|
+
this.drawerRef.instance.drawerViewInit
|
|
12229
|
+
.pipe(operators.takeUntil(this.unsubscribe$))
|
|
12230
|
+
.subscribe(function () {
|
|
12231
|
+
_this.drawerRef.instance.open();
|
|
12232
|
+
});
|
|
12233
|
+
this.drawerRef.instance.afterClosed
|
|
12234
|
+
.pipe(operators.takeUntil(this.unsubscribe$))
|
|
12235
|
+
.subscribe(function () {
|
|
12236
|
+
_this.overlayRef.dispose();
|
|
12237
|
+
_this.drawerRef = null;
|
|
12238
|
+
_this.unsubscribe$.next();
|
|
12239
|
+
_this.unsubscribe$.complete();
|
|
12240
|
+
});
|
|
12120
12241
|
};
|
|
12121
12242
|
return DrawerService;
|
|
12122
12243
|
}());
|
|
12123
|
-
DrawerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DrawerService_Factory() { return new DrawerService(); }, token: DrawerService, providedIn: "root" });
|
|
12124
12244
|
DrawerService.decorators = [
|
|
12125
|
-
{ type: i0.Injectable
|
|
12126
|
-
providedIn: 'root',
|
|
12127
|
-
},] }
|
|
12245
|
+
{ type: i0.Injectable }
|
|
12128
12246
|
];
|
|
12247
|
+
DrawerService.ctorParameters = function () { return [
|
|
12248
|
+
{ type: overlay.Overlay }
|
|
12249
|
+
]; };
|
|
12129
12250
|
|
|
12130
12251
|
var StepState = {
|
|
12131
12252
|
Default: 'default',
|
|
@@ -12134,19 +12255,19 @@
|
|
|
12134
12255
|
Pending: 'pending',
|
|
12135
12256
|
};
|
|
12136
12257
|
|
|
12137
|
-
var _b$1, _c;
|
|
12258
|
+
var _b$1, _c$1;
|
|
12138
12259
|
var StepDefaultIcon = (_b$1 = {},
|
|
12139
12260
|
_b$1[StepState.Default] = 'number',
|
|
12140
12261
|
_b$1[StepState.Done] = 'check_circle',
|
|
12141
12262
|
_b$1[StepState.Error] = 'close_circle',
|
|
12142
12263
|
_b$1[StepState.Pending] = 'sync_circle',
|
|
12143
12264
|
_b$1);
|
|
12144
|
-
var StepSelectedIcon = (_c = {},
|
|
12145
|
-
_c[StepState.Default] = 'number',
|
|
12146
|
-
_c[StepState.Done] = 'check_circle_s',
|
|
12147
|
-
_c[StepState.Error] = 'close_circle_s',
|
|
12148
|
-
_c[StepState.Pending] = 'sync_circle_s',
|
|
12149
|
-
_c);
|
|
12265
|
+
var StepSelectedIcon = (_c$1 = {},
|
|
12266
|
+
_c$1[StepState.Default] = 'number',
|
|
12267
|
+
_c$1[StepState.Done] = 'check_circle_s',
|
|
12268
|
+
_c$1[StepState.Error] = 'close_circle_s',
|
|
12269
|
+
_c$1[StepState.Pending] = 'sync_circle_s',
|
|
12270
|
+
_c$1);
|
|
12150
12271
|
var StepsComponent = /** @class */ (function () {
|
|
12151
12272
|
function StepsComponent() {
|
|
12152
12273
|
this._steps = [];
|
|
@@ -12416,6 +12537,7 @@
|
|
|
12416
12537
|
exports.DrawerFooterDirective = DrawerFooterDirective;
|
|
12417
12538
|
exports.DrawerHeaderDirective = DrawerHeaderDirective;
|
|
12418
12539
|
exports.DrawerModule = DrawerModule;
|
|
12540
|
+
exports.DrawerRef = DrawerRef;
|
|
12419
12541
|
exports.DrawerService = DrawerService;
|
|
12420
12542
|
exports.DropdownActiveDirective = DropdownActiveDirective;
|
|
12421
12543
|
exports.DropdownButtonComponent = DropdownButtonComponent;
|