@alauda/ui 6.1.3-beta.3 → 6.1.3-beta.7
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 +74 -75
- 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 +1 -1
- package/drawer/component/drawer.component.d.ts +2 -2
- package/drawer/component/drawer.service.d.ts +1 -1
- package/esm2015/dialog/dialog.module.js +1 -3
- package/esm2015/dialog/dialog.module.ngfactory.js +7 -8
- package/esm2015/dialog/dialog.module.ngsummary.json +1 -1
- package/esm2015/dialog/dialog.service.js +6 -2
- package/esm2015/drawer/component/drawer-ref.js +1 -1
- package/esm2015/drawer/component/drawer-ref.ngsummary.json +1 -1
- package/esm2015/drawer/component/drawer.component.js +8 -8
- package/esm2015/drawer/component/drawer.component.ngfactory.js +6 -6
- 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 +2 -2
- package/esm2015/drawer/drawer.module.js +1 -3
- package/esm2015/drawer/drawer.module.ngfactory.js +6 -7
- package/esm2015/drawer/drawer.module.ngsummary.json +1 -1
- package/esm2015/input/input.module.ngfactory.js +1 -1
- package/esm2015/input/number-input/number-input.component.js +2 -2
- package/esm2015/input/number-input/number-input.component.ngfactory.js +1 -1
- package/esm2015/message/message.module.js +1 -3
- package/esm2015/message/message.module.ngfactory.js +6 -8
- package/esm2015/message/message.module.ngsummary.json +1 -1
- package/esm2015/message/message.service.js +6 -2
- package/esm2015/notification/notification.module.js +1 -3
- package/esm2015/notification/notification.module.ngfactory.js +6 -8
- package/esm2015/notification/notification.module.ngsummary.json +1 -1
- package/esm2015/notification/notification.service.js +6 -2
- package/fesm2015/alauda-ui.js +57 -58
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -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, i1, portal, clipboardPolyfill, bidi, forms, observers,
|
|
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/scrolling'), require('@angular/cdk/bidi'), require('@angular/forms'), require('@angular/cdk/observers'), 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/scrolling', '@angular/cdk/bidi', '@angular/forms', '@angular/cdk/observers', '@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.scrolling, global.ng.cdk.bidi, global.ng.forms, global.ng.cdk.observers, 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, i2, bidi, forms, observers, 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
|
|
|
@@ -2898,8 +2898,9 @@
|
|
|
2898
2898
|
}());
|
|
2899
2899
|
DialogService.DIALOG_OVERLAY_PANE_CLASS = 'aui-dialog-overlay-pane';
|
|
2900
2900
|
DialogService.DIALOG_BACKDROP_CLASS = 'aui-dialog-backdrop';
|
|
2901
|
+
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" });
|
|
2901
2902
|
DialogService.decorators = [
|
|
2902
|
-
{ type: i0.Injectable }
|
|
2903
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2903
2904
|
];
|
|
2904
2905
|
DialogService.ctorParameters = function () { return [
|
|
2905
2906
|
{ type: i1.Overlay },
|
|
@@ -3049,7 +3050,6 @@
|
|
|
3049
3050
|
DialogCloseDirective,
|
|
3050
3051
|
],
|
|
3051
3052
|
entryComponents: [DialogComponent, ConfirmDialogComponent],
|
|
3052
|
-
providers: [DialogService],
|
|
3053
3053
|
},] }
|
|
3054
3054
|
];
|
|
3055
3055
|
|
|
@@ -4836,7 +4836,7 @@
|
|
|
4836
4836
|
NumberInputComponent.decorators = [
|
|
4837
4837
|
{ type: i0.Component, args: [{
|
|
4838
4838
|
selector: 'aui-number-input',
|
|
4839
|
-
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($
|
|
4839
|
+
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",
|
|
4840
4840
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4841
4841
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4842
4842
|
preserveWhitespaces: false,
|
|
@@ -7056,6 +7056,19 @@
|
|
|
7056
7056
|
{ type: i0.ChangeDetectorRef }
|
|
7057
7057
|
]; };
|
|
7058
7058
|
|
|
7059
|
+
var MessageModule = /** @class */ (function () {
|
|
7060
|
+
function MessageModule() {
|
|
7061
|
+
}
|
|
7062
|
+
return MessageModule;
|
|
7063
|
+
}());
|
|
7064
|
+
MessageModule.decorators = [
|
|
7065
|
+
{ type: i0.NgModule, args: [{
|
|
7066
|
+
imports: [common.CommonModule, i1.OverlayModule, IconModule],
|
|
7067
|
+
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7068
|
+
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7069
|
+
},] }
|
|
7070
|
+
];
|
|
7071
|
+
|
|
7059
7072
|
var BaseMessage = /** @class */ (function () {
|
|
7060
7073
|
function BaseMessage(overlay, injector, applicationRef, cfr, overlayPaneClassName, wrapperClass, componentClass, globalConfig) {
|
|
7061
7074
|
this.overlay = overlay;
|
|
@@ -7151,8 +7164,9 @@
|
|
|
7151
7164
|
}
|
|
7152
7165
|
return MessageService;
|
|
7153
7166
|
}(BaseMessage));
|
|
7167
|
+
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" });
|
|
7154
7168
|
MessageService.decorators = [
|
|
7155
|
-
{ type: i0.Injectable }
|
|
7169
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7156
7170
|
];
|
|
7157
7171
|
MessageService.ctorParameters = function () { return [
|
|
7158
7172
|
{ type: i1.Overlay },
|
|
@@ -7162,20 +7176,6 @@
|
|
|
7162
7176
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MESSAGE_CONFIG,] }] }
|
|
7163
7177
|
]; };
|
|
7164
7178
|
|
|
7165
|
-
var MessageModule = /** @class */ (function () {
|
|
7166
|
-
function MessageModule() {
|
|
7167
|
-
}
|
|
7168
|
-
return MessageModule;
|
|
7169
|
-
}());
|
|
7170
|
-
MessageModule.decorators = [
|
|
7171
|
-
{ type: i0.NgModule, args: [{
|
|
7172
|
-
imports: [common.CommonModule, i1.OverlayModule, IconModule],
|
|
7173
|
-
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7174
|
-
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7175
|
-
providers: [MessageService],
|
|
7176
|
-
},] }
|
|
7177
|
-
];
|
|
7178
|
-
|
|
7179
7179
|
var NotificationWrapperComponent = /** @class */ (function (_super) {
|
|
7180
7180
|
__extends(NotificationWrapperComponent, _super);
|
|
7181
7181
|
function NotificationWrapperComponent(elementRef) {
|
|
@@ -7304,6 +7304,19 @@
|
|
|
7304
7304
|
onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
|
|
7305
7305
|
};
|
|
7306
7306
|
|
|
7307
|
+
var NotificationModule = /** @class */ (function () {
|
|
7308
|
+
function NotificationModule() {
|
|
7309
|
+
}
|
|
7310
|
+
return NotificationModule;
|
|
7311
|
+
}());
|
|
7312
|
+
NotificationModule.decorators = [
|
|
7313
|
+
{ type: i0.NgModule, args: [{
|
|
7314
|
+
imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule, IconModule],
|
|
7315
|
+
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7316
|
+
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7317
|
+
},] }
|
|
7318
|
+
];
|
|
7319
|
+
|
|
7307
7320
|
var NOTIFICATION_CONFIG = new i0.InjectionToken('NOTIFICATION_CONFIG');
|
|
7308
7321
|
var NOTIFICATION_DEFAULT_CONFIG = {
|
|
7309
7322
|
duration: 6000,
|
|
@@ -7317,8 +7330,9 @@
|
|
|
7317
7330
|
}
|
|
7318
7331
|
return NotificationService;
|
|
7319
7332
|
}(BaseMessage));
|
|
7333
|
+
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" });
|
|
7320
7334
|
NotificationService.decorators = [
|
|
7321
|
-
{ type: i0.Injectable }
|
|
7335
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7322
7336
|
];
|
|
7323
7337
|
NotificationService.ctorParameters = function () { return [
|
|
7324
7338
|
{ type: i1.Overlay },
|
|
@@ -7328,20 +7342,6 @@
|
|
|
7328
7342
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [NOTIFICATION_CONFIG,] }] }
|
|
7329
7343
|
]; };
|
|
7330
7344
|
|
|
7331
|
-
var NotificationModule = /** @class */ (function () {
|
|
7332
|
-
function NotificationModule() {
|
|
7333
|
-
}
|
|
7334
|
-
return NotificationModule;
|
|
7335
|
-
}());
|
|
7336
|
-
NotificationModule.decorators = [
|
|
7337
|
-
{ type: i0.NgModule, args: [{
|
|
7338
|
-
imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule, IconModule],
|
|
7339
|
-
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7340
|
-
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7341
|
-
providers: [NotificationService],
|
|
7342
|
-
},] }
|
|
7343
|
-
];
|
|
7344
|
-
|
|
7345
7345
|
var TabBodyComponent = /** @class */ (function () {
|
|
7346
7346
|
function TabBodyComponent() {
|
|
7347
7347
|
this.content$ = new rxjs.BehaviorSubject(null);
|
|
@@ -7939,7 +7939,7 @@
|
|
|
7939
7939
|
];
|
|
7940
7940
|
TabHeaderComponent.ctorParameters = function () { return [
|
|
7941
7941
|
{ type: i0.ChangeDetectorRef },
|
|
7942
|
-
{ type:
|
|
7942
|
+
{ type: i2.ViewportRuler }
|
|
7943
7943
|
]; };
|
|
7944
7944
|
TabHeaderComponent.propDecorators = {
|
|
7945
7945
|
type: [{ type: i0.Input }],
|
|
@@ -9931,7 +9931,7 @@
|
|
|
9931
9931
|
exportAs: 'viewPort',
|
|
9932
9932
|
providers: [
|
|
9933
9933
|
{
|
|
9934
|
-
provide:
|
|
9934
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9935
9935
|
useFactory: _tableVirtualScrollDirectiveStrategyFactory,
|
|
9936
9936
|
deps: [i0.forwardRef(function () { return FixedSizeTableVirtualScrollDirective; })],
|
|
9937
9937
|
},
|
|
@@ -9946,21 +9946,21 @@
|
|
|
9946
9946
|
table: [{ type: i0.ContentChild, args: [TableComponent, { static: false },] }]
|
|
9947
9947
|
};
|
|
9948
9948
|
|
|
9949
|
-
var ɵ0 =
|
|
9949
|
+
var ɵ0 = i2._fixedSizeVirtualScrollStrategyFactory;
|
|
9950
9950
|
var FixedSizeVirtualScrollDirective = /** @class */ (function (_super) {
|
|
9951
9951
|
__extends(FixedSizeVirtualScrollDirective, _super);
|
|
9952
9952
|
function FixedSizeVirtualScrollDirective() {
|
|
9953
9953
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9954
9954
|
}
|
|
9955
9955
|
return FixedSizeVirtualScrollDirective;
|
|
9956
|
-
}(
|
|
9956
|
+
}(i2.CdkFixedSizeVirtualScroll));
|
|
9957
9957
|
FixedSizeVirtualScrollDirective.decorators = [
|
|
9958
9958
|
{ type: i0.Directive, args: [{
|
|
9959
9959
|
// tslint:disable-next-line: directive-selector
|
|
9960
9960
|
selector: 'aui-virtual-scroll-viewport[itemSize]',
|
|
9961
9961
|
providers: [
|
|
9962
9962
|
{
|
|
9963
|
-
provide:
|
|
9963
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9964
9964
|
useFactory: ɵ0,
|
|
9965
9965
|
deps: [i0.forwardRef(function () { return FixedSizeVirtualScrollDirective; })],
|
|
9966
9966
|
},
|
|
@@ -10004,7 +10004,7 @@
|
|
|
10004
10004
|
configurable: true
|
|
10005
10005
|
});
|
|
10006
10006
|
return VirtualForOfDirective;
|
|
10007
|
-
}(
|
|
10007
|
+
}(i2.CdkVirtualForOf));
|
|
10008
10008
|
VirtualForOfDirective.decorators = [
|
|
10009
10009
|
{ type: i0.Directive, args: [{
|
|
10010
10010
|
selector: '[auiVirtualFor][auiVirtualForOf]',
|
|
@@ -10023,7 +10023,7 @@
|
|
|
10023
10023
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10024
10024
|
}
|
|
10025
10025
|
return VirtualScrollViewportComponent;
|
|
10026
|
-
}(
|
|
10026
|
+
}(i2.CdkVirtualScrollViewport));
|
|
10027
10027
|
VirtualScrollViewportComponent.decorators = [
|
|
10028
10028
|
{ type: i0.Component, args: [{
|
|
10029
10029
|
selector: 'aui-virtual-scroll-viewport',
|
|
@@ -10038,7 +10038,7 @@
|
|
|
10038
10038
|
preserveWhitespaces: false,
|
|
10039
10039
|
providers: [
|
|
10040
10040
|
{
|
|
10041
|
-
provide:
|
|
10041
|
+
provide: i2.CdkVirtualScrollViewport,
|
|
10042
10042
|
useExisting: VirtualScrollViewportComponent,
|
|
10043
10043
|
},
|
|
10044
10044
|
],
|
|
@@ -10252,7 +10252,7 @@
|
|
|
10252
10252
|
{ type: i0.ApplicationRef },
|
|
10253
10253
|
{ type: i0.Injector },
|
|
10254
10254
|
{ type: i0.ElementRef },
|
|
10255
|
-
{ type:
|
|
10255
|
+
{ type: i2.CdkScrollable, decorators: [{ type: i0.Optional }] }
|
|
10256
10256
|
]; };
|
|
10257
10257
|
AnchorDirective.propDecorators = {
|
|
10258
10258
|
auiAnchor: [{ type: i0.Input }],
|
|
@@ -11997,7 +11997,7 @@
|
|
|
11997
11997
|
Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
|
|
11998
11998
|
get: function () {
|
|
11999
11999
|
var _c;
|
|
12000
|
-
return Object.assign({ drawer: true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12000
|
+
return Object.assign({ 'aui-drawer': true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12001
12001
|
},
|
|
12002
12002
|
enumerable: false,
|
|
12003
12003
|
configurable: true
|
|
@@ -12037,7 +12037,7 @@
|
|
|
12037
12037
|
this.open();
|
|
12038
12038
|
}
|
|
12039
12039
|
else {
|
|
12040
|
-
this.
|
|
12040
|
+
this.dispose();
|
|
12041
12041
|
}
|
|
12042
12042
|
}
|
|
12043
12043
|
};
|
|
@@ -12067,7 +12067,7 @@
|
|
|
12067
12067
|
_this.hideOnClickOutside &&
|
|
12068
12068
|
event.target instanceof Node &&
|
|
12069
12069
|
!((_b = (_a = _this.overlayRef.hostElement) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
|
|
12070
|
-
_this.
|
|
12070
|
+
_this.dispose();
|
|
12071
12071
|
}
|
|
12072
12072
|
});
|
|
12073
12073
|
}
|
|
@@ -12116,7 +12116,7 @@
|
|
|
12116
12116
|
this.updateBodyOverflow();
|
|
12117
12117
|
this.cdr.markForCheck();
|
|
12118
12118
|
};
|
|
12119
|
-
DrawerComponent.prototype.
|
|
12119
|
+
DrawerComponent.prototype.dispose = function (result) {
|
|
12120
12120
|
if (result === void 0) { result = null; }
|
|
12121
12121
|
this.visible = false;
|
|
12122
12122
|
this.close.next();
|
|
@@ -12133,7 +12133,7 @@
|
|
|
12133
12133
|
};
|
|
12134
12134
|
DrawerComponent.prototype.maskClick = function () {
|
|
12135
12135
|
if (this.maskClosable && this.mask) {
|
|
12136
|
-
this.
|
|
12136
|
+
this.dispose();
|
|
12137
12137
|
}
|
|
12138
12138
|
};
|
|
12139
12139
|
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
@@ -12145,10 +12145,10 @@
|
|
|
12145
12145
|
DrawerComponent.decorators = [
|
|
12146
12146
|
{ type: i0.Component, args: [{
|
|
12147
12147
|
selector: 'aui-drawer',
|
|
12148
|
-
template: "<ng-template #drawerTemplate>\n <div\n
|
|
12148
|
+
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.px]=\"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",
|
|
12149
12149
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12150
12150
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12151
|
-
styles: [".
|
|
12151
|
+
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))}"]
|
|
12152
12152
|
},] }
|
|
12153
12153
|
];
|
|
12154
12154
|
DrawerComponent.ctorParameters = function () { return [
|
|
@@ -12179,6 +12179,26 @@
|
|
|
12179
12179
|
footerTemplate: [{ type: i0.ContentChild, args: [DrawerFooterDirective, { read: i0.TemplateRef },] }]
|
|
12180
12180
|
};
|
|
12181
12181
|
|
|
12182
|
+
var COMMON = [
|
|
12183
|
+
DrawerComponent,
|
|
12184
|
+
DrawerHeaderDirective,
|
|
12185
|
+
DrawerContentDirective,
|
|
12186
|
+
DrawerFooterDirective,
|
|
12187
|
+
];
|
|
12188
|
+
var DrawerModule = /** @class */ (function () {
|
|
12189
|
+
function DrawerModule() {
|
|
12190
|
+
}
|
|
12191
|
+
return DrawerModule;
|
|
12192
|
+
}());
|
|
12193
|
+
DrawerModule.decorators = [
|
|
12194
|
+
{ type: i0.NgModule, args: [{
|
|
12195
|
+
imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
|
|
12196
|
+
declarations: COMMON,
|
|
12197
|
+
exports: COMMON,
|
|
12198
|
+
entryComponents: [DrawerComponent],
|
|
12199
|
+
},] }
|
|
12200
|
+
];
|
|
12201
|
+
|
|
12182
12202
|
var DrawerService = /** @class */ (function () {
|
|
12183
12203
|
function DrawerService(overlay) {
|
|
12184
12204
|
this.overlay = overlay;
|
|
@@ -12186,7 +12206,7 @@
|
|
|
12186
12206
|
}
|
|
12187
12207
|
DrawerService.prototype.open = function (options) {
|
|
12188
12208
|
var _a, _b, _c;
|
|
12189
|
-
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.
|
|
12209
|
+
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
12190
12210
|
this.createDrawer();
|
|
12191
12211
|
this.updateOptions(options);
|
|
12192
12212
|
return (_c = this.drawerRef) === null || _c === void 0 ? void 0 : _c.instance;
|
|
@@ -12224,27 +12244,6 @@
|
|
|
12224
12244
|
{ type: i1.Overlay }
|
|
12225
12245
|
]; };
|
|
12226
12246
|
|
|
12227
|
-
var COMMON = [
|
|
12228
|
-
DrawerComponent,
|
|
12229
|
-
DrawerHeaderDirective,
|
|
12230
|
-
DrawerContentDirective,
|
|
12231
|
-
DrawerFooterDirective,
|
|
12232
|
-
];
|
|
12233
|
-
var DrawerModule = /** @class */ (function () {
|
|
12234
|
-
function DrawerModule() {
|
|
12235
|
-
}
|
|
12236
|
-
return DrawerModule;
|
|
12237
|
-
}());
|
|
12238
|
-
DrawerModule.decorators = [
|
|
12239
|
-
{ type: i0.NgModule, args: [{
|
|
12240
|
-
imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
|
|
12241
|
-
declarations: COMMON,
|
|
12242
|
-
exports: COMMON,
|
|
12243
|
-
providers: [DrawerService],
|
|
12244
|
-
entryComponents: [DrawerComponent],
|
|
12245
|
-
},] }
|
|
12246
|
-
];
|
|
12247
|
-
|
|
12248
12247
|
var StepState = {
|
|
12249
12248
|
Default: 'default',
|
|
12250
12249
|
Done: 'done',
|