@alauda/ui 6.1.3-beta → 6.1.3-beta.11
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 +194 -313
- 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.component.d.ts +16 -33
- package/drawer/drawer.service.d.ts +4 -0
- package/drawer/drawer.types.d.ts +14 -0
- package/drawer/public-api.d.ts +2 -2
- 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.component.js +41 -114
- package/esm2015/drawer/component/drawer.component.ngfactory.js +15 -25
- package/esm2015/drawer/component/drawer.component.ngsummary.json +1 -1
- package/esm2015/drawer/component/drawer.component.scss.ngstyle.js +1 -1
- package/esm2015/drawer/drawer.module.js +1 -3
- package/esm2015/drawer/drawer.module.ngfactory.js +7 -8
- package/esm2015/drawer/drawer.module.ngsummary.json +1 -1
- package/esm2015/drawer/drawer.service.js +17 -0
- package/esm2015/drawer/drawer.service.ngsummary.json +1 -0
- package/esm2015/drawer/drawer.types.js +7 -0
- package/esm2015/drawer/drawer.types.ngsummary.json +1 -0
- package/esm2015/drawer/public-api.js +3 -3
- package/esm2015/drawer/public-api.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/esm2015/table/table-scroll.directive.js +9 -4
- package/esm2015/table/table-scroll.directive.ngsummary.json +1 -1
- package/esm2015/table/table-scroll.scss.ngstyle.js +1 -1
- package/esm2015/table/table.component.js +1 -1
- package/esm2015/table/table.component.scss.ngstyle.js +1 -1
- package/fesm2015/alauda-ui.js +158 -257
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/table/table-scroll.directive.d.ts +3 -1
- package/drawer/component/drawer-ref.d.ts +0 -26
- package/drawer/component/drawer.service.d.ts +0 -23
- package/esm2015/drawer/component/drawer-ref.js +0 -9
- package/esm2015/drawer/component/drawer-ref.ngsummary.json +0 -1
- package/esm2015/drawer/component/drawer.service.js +0 -51
- package/esm2015/drawer/component/drawer.service.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, 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
|
|
|
@@ -1068,6 +1068,77 @@
|
|
|
1068
1068
|
hasPanel: [{ type: i0.HostBinding, args: ['class.hasPanel',] }]
|
|
1069
1069
|
};
|
|
1070
1070
|
|
|
1071
|
+
var TableComponent = /** @class */ (function (_super) {
|
|
1072
|
+
__extends(TableComponent, _super);
|
|
1073
|
+
function TableComponent() {
|
|
1074
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1075
|
+
}
|
|
1076
|
+
Object.defineProperty(TableComponent.prototype, "stickyCssClass", {
|
|
1077
|
+
// FIXME: workaround to override because it will break constructor if it is field, but why MatTable works?
|
|
1078
|
+
// @ts-expect-error
|
|
1079
|
+
get: function () {
|
|
1080
|
+
return 'aui-table-sticky';
|
|
1081
|
+
},
|
|
1082
|
+
set: function (_stickyCssClass) {
|
|
1083
|
+
//
|
|
1084
|
+
},
|
|
1085
|
+
enumerable: false,
|
|
1086
|
+
configurable: true
|
|
1087
|
+
});
|
|
1088
|
+
TableComponent.prototype.ngAfterContentInit = function () {
|
|
1089
|
+
this._createPlaceholder();
|
|
1090
|
+
};
|
|
1091
|
+
TableComponent.prototype._createPlaceholder = function () {
|
|
1092
|
+
var footerRow = this._placeholderDef;
|
|
1093
|
+
if (!this._placeholderDef) {
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
var container = this._placeholderOutlet.viewContainer;
|
|
1097
|
+
container.createEmbeddedView(footerRow.templateRef);
|
|
1098
|
+
};
|
|
1099
|
+
TableComponent.prototype._clearPlaceholder = function () {
|
|
1100
|
+
this._placeholderOutlet.viewContainer.clear();
|
|
1101
|
+
};
|
|
1102
|
+
TableComponent.prototype.ngOnDestroy = function () {
|
|
1103
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1104
|
+
this._clearPlaceholder();
|
|
1105
|
+
};
|
|
1106
|
+
return TableComponent;
|
|
1107
|
+
}(table.CdkTable));
|
|
1108
|
+
TableComponent.decorators = [
|
|
1109
|
+
{ type: i0.Component, args: [{
|
|
1110
|
+
selector: 'aui-table',
|
|
1111
|
+
exportAs: 'auiTable',
|
|
1112
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1113
|
+
template: "\n " + table.CDK_TABLE_TEMPLATE + "\n <ng-container auiTablePlaceholderOutlet></ng-container>\n ",
|
|
1114
|
+
host: {
|
|
1115
|
+
class: 'aui-table',
|
|
1116
|
+
},
|
|
1117
|
+
preserveWhitespaces: false,
|
|
1118
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1119
|
+
providers: [
|
|
1120
|
+
{
|
|
1121
|
+
provide: table.CDK_TABLE,
|
|
1122
|
+
useExisting: TableComponent,
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
provide: collections._VIEW_REPEATER_STRATEGY,
|
|
1126
|
+
useClass: collections._DisposeViewRepeaterStrategy,
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
provide: table._COALESCED_STYLE_SCHEDULER,
|
|
1130
|
+
useClass: table._CoalescedStyleScheduler,
|
|
1131
|
+
},
|
|
1132
|
+
],
|
|
1133
|
+
styles: [".aui-table{display:block;padding:0 12px 12px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1));background-color:rgb(var(--aui-color-n-9));border-radius:var(--aui-border-radius-l);overflow:auto}.aui-table::-webkit-scrollbar{width:4px;height:4px}.aui-table::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__header-row,.aui-table__row{display:flex;align-items:center}.aui-table__header-row.hasPanel,.aui-table__row.hasPanel{flex-wrap:wrap}.aui-table__header-row+.aui-table__row{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row{position:relative;border:solid rgb(var(--aui-color-n-8));border-width:1px 1px 0;background-color:rgb(var(--aui-color-n-10));padding:0 9px;min-height:58px;box-sizing:content-box}.aui-table__row:first-child{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row:last-child{border-bottom-width:1px;min-height:58px;border-bottom-left-radius:var(--aui-border-radius-l);border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__row.isDisabled:before{content:\"\";z-index:2;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgb(var(--aui-color-n-10));opacity:.7;cursor:not-allowed}.aui-table__header-row{background-color:rgb(var(--aui-color-n-9));padding:0 10px}.aui-table__cell,.aui-table__header-cell{flex:1}.aui-table__cell{padding:15px 10px;background-color:rgb(var(--aui-color-n-10));overflow:hidden;word-wrap:break-word}.aui-table__header-cell{padding:12px 10px;font-weight:var(--aui-font-weight-bold);background-color:rgb(var(--aui-color-n-9));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aui-table__column-expand-button{display:flex;align-items:center;max-width:calc(10px * 2 + var(--aui-icon-size-m))}.aui-table__column-expand-button.aui-table__cell{height:58px}.aui-table__column-expand-button .aui-expand-button{display:inline-flex;justify-content:center;align-items:center;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m);font-size:var(--aui-icon-size-m);line-height:var(--aui-icon-size-m);color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6));border-radius:50%;border:none;cursor:pointer;transition:transform .1s ease-in-out}.aui-table__column-expand-button .aui-expand-button aui-icon{display:block;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m)}.aui-table__column-expand-button .aui-expand-button:hover{background-color:rgb(var(--aui-color-p-7))}.aui-table__column-expand-button .aui-expand-button:active{background-color:rgb(var(--aui-color-p-5))}.aui-table__column-expand-button .aui-expand-button.isExpanded{transform:rotate(90deg);color:rgb(var(--aui-color-n-10));background-color:rgb(var(--aui-color-primary))}.aui-table__column-expand-button .aui-expand-button.isExpanded:hover{background-color:rgb(var(--aui-color-p-1))}.aui-table__column-expand-button .aui-expand-button.isExpanded:active{background-color:rgb(var(--aui-color-p-0))}.aui-table__column-expand-button .aui-expand-button.isExpanded[disabled],.aui-table__column-expand-button .aui-expand-button[disabled]{background-color:rgb(var(--aui-color-n-8));color:rgb(var(--aui-color-n-6));cursor:not-allowed}.aui-table__column-expand-panel{margin-top:-6px}.aui-table__column-expand-panel.aui-table__header-cell{display:none}.aui-table__column-expand-panel.aui-table__cell{width:100%;flex-shrink:0;flex-basis:100%;padding:0 10px;overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel{border-radius:var(--aui-border-radius-l);overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel-content.hasBackground{padding:16px;background-color:rgb(var(--aui-color-n-9))}", ".aui-table__scroll-wrapper{background-color:rgb(var(--aui-color-n-9));padding:0 12px 12px;border-radius:var(--aui-border-radius-l)}.aui-table__scroll-wrapper::-webkit-scrollbar{width:4px;height:4px}.aui-table__scroll-wrapper::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__scroll-wrapper .aui-table{padding:0}.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableBottomShadow:after,.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableTopShadow:before{transform:none;width:100%;left:0}.aui-table__scroll-shadow.hasTableTopShadow:before{transform:translate3d(-12px,0,0);top:28px;box-shadow:0 10px 10px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow.hasTableBottomShadow:after,.aui-table__scroll-shadow.hasTableTopShadow:before{content:\"\";position:-webkit-sticky;position:sticky;display:block;width:calc(100% + 24px);height:16px;margin-top:-16px;z-index:99}.aui-table__scroll-shadow.hasTableBottomShadow:after{transform:translate3d(-12px,12px,0);bottom:0;box-shadow:0 -10px 10px -4px rgba(var(--aui-color-n-1),.16) inset}.aui-table__scroll-shadow .aui-table__header-row{margin:0;padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:first-of-type{padding-left:20px}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:last-of-type{padding-right:20px}.aui-table__scroll-shadow .aui-table__header-row+.aui-table__row .aui-table__cell:first-of-type{border-top-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__header-row+.aui-table__row .aui-table__cell:last-of-type{border-top-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row{border:none;padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__row .aui-table__cell{border-color:rgb(var(--aui-color-n-8));border-style:solid;border-width:1px 0}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:first-of-type{border-left-width:1px;padding-left:19px}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:last-of-type{border-right-width:1px;padding-right:19px}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:first-of-type{border-bottom-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:last-of-type{border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:not(.aui-table__scroll-shadow .aui-table__row:last-child) .aui-table__cell{border-bottom-width:0}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:after,.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:after{position:absolute;top:0;bottom:-1px;width:20px;transition:box-shadow .3s;content:\"\";pointer-events:none}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:before,.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:before{position:absolute;top:0;bottom:-1px;content:\"\";background:linear-gradient(180deg,rgb(var(--aui-color-n-7)),rgb(var(--aui-color-n-7)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left{padding-right:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:after{right:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:before{right:10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right{padding-left:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:after{left:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:before{left:10px}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):after{box-shadow:inset 8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):after{box-shadow:inset -8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}"]
|
|
1134
|
+
},] }
|
|
1135
|
+
];
|
|
1136
|
+
TableComponent.propDecorators = {
|
|
1137
|
+
enableScrollWrapper: [{ type: i0.Input }],
|
|
1138
|
+
_placeholderOutlet: [{ type: i0.ViewChild, args: [TablePlaceholderOutlet, { static: true },] }],
|
|
1139
|
+
_placeholderDef: [{ type: i0.ContentChild, args: [TablePlaceholderDefDirective, { static: true },] }]
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1071
1142
|
var CLASS_PREFIX = 'aui-table';
|
|
1072
1143
|
var SHADOW_CLASS = CLASS_PREFIX + "__scroll-shadow";
|
|
1073
1144
|
var HAS_SCROLL_CLASS = SHADOW_CLASS + "--has-scroll";
|
|
@@ -1090,8 +1161,9 @@
|
|
|
1090
1161
|
},] }
|
|
1091
1162
|
];
|
|
1092
1163
|
var TableScrollShadowDirective = /** @class */ (function () {
|
|
1093
|
-
function TableScrollShadowDirective(el) {
|
|
1164
|
+
function TableScrollShadowDirective(el, table) {
|
|
1094
1165
|
this.el = el;
|
|
1166
|
+
this.table = table;
|
|
1095
1167
|
this.destroy$$ = new rxjs.Subject();
|
|
1096
1168
|
this.SCROLL_BEFORE_END_CLASS = true;
|
|
1097
1169
|
this.SHADOW_CLASS = true;
|
|
@@ -1124,6 +1196,8 @@
|
|
|
1124
1196
|
var scrollTop = this.containerEl.scrollTop;
|
|
1125
1197
|
this.placeClassList(this.containerEl.classList, scrollTop > 0, HAS_TABLE_TOP_SHADOW);
|
|
1126
1198
|
this.placeClassList(this.containerEl.classList, scrollTop < scrollDis, HAS_TABLE_BOTTOM_SHADOW);
|
|
1199
|
+
// 兼容屏幕缩放是 sticky多列的样式问题
|
|
1200
|
+
this.table.updateStickyColumnStyles();
|
|
1127
1201
|
};
|
|
1128
1202
|
TableScrollShadowDirective.prototype.mutateHorizontalScroll = function () {
|
|
1129
1203
|
var scrollDis = this.containerEl.scrollWidth - this.containerEl.offsetWidth;
|
|
@@ -1146,84 +1220,14 @@
|
|
|
1146
1220
|
},] }
|
|
1147
1221
|
];
|
|
1148
1222
|
TableScrollShadowDirective.ctorParameters = function () { return [
|
|
1149
|
-
{ type: i0.ElementRef }
|
|
1223
|
+
{ type: i0.ElementRef },
|
|
1224
|
+
{ type: TableComponent, decorators: [{ type: i0.Host }] }
|
|
1150
1225
|
]; };
|
|
1151
1226
|
TableScrollShadowDirective.propDecorators = {
|
|
1152
1227
|
SCROLL_BEFORE_END_CLASS: [{ type: i0.HostBinding, args: ["class." + SCROLL_BEFORE_END_CLASS,] }],
|
|
1153
1228
|
SHADOW_CLASS: [{ type: i0.HostBinding, args: ["class." + SHADOW_CLASS,] }]
|
|
1154
1229
|
};
|
|
1155
1230
|
|
|
1156
|
-
var TableComponent = /** @class */ (function (_super) {
|
|
1157
|
-
__extends(TableComponent, _super);
|
|
1158
|
-
function TableComponent() {
|
|
1159
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1160
|
-
}
|
|
1161
|
-
Object.defineProperty(TableComponent.prototype, "stickyCssClass", {
|
|
1162
|
-
// FIXME: workaround to override because it will break constructor if it is field, but why MatTable works?
|
|
1163
|
-
// @ts-expect-error
|
|
1164
|
-
get: function () {
|
|
1165
|
-
return 'aui-table-sticky';
|
|
1166
|
-
},
|
|
1167
|
-
set: function (_stickyCssClass) {
|
|
1168
|
-
//
|
|
1169
|
-
},
|
|
1170
|
-
enumerable: false,
|
|
1171
|
-
configurable: true
|
|
1172
|
-
});
|
|
1173
|
-
TableComponent.prototype.ngAfterContentInit = function () {
|
|
1174
|
-
this._createPlaceholder();
|
|
1175
|
-
};
|
|
1176
|
-
TableComponent.prototype._createPlaceholder = function () {
|
|
1177
|
-
var footerRow = this._placeholderDef;
|
|
1178
|
-
if (!this._placeholderDef) {
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
var container = this._placeholderOutlet.viewContainer;
|
|
1182
|
-
container.createEmbeddedView(footerRow.templateRef);
|
|
1183
|
-
};
|
|
1184
|
-
TableComponent.prototype._clearPlaceholder = function () {
|
|
1185
|
-
this._placeholderOutlet.viewContainer.clear();
|
|
1186
|
-
};
|
|
1187
|
-
TableComponent.prototype.ngOnDestroy = function () {
|
|
1188
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
1189
|
-
this._clearPlaceholder();
|
|
1190
|
-
};
|
|
1191
|
-
return TableComponent;
|
|
1192
|
-
}(table.CdkTable));
|
|
1193
|
-
TableComponent.decorators = [
|
|
1194
|
-
{ type: i0.Component, args: [{
|
|
1195
|
-
selector: 'aui-table',
|
|
1196
|
-
exportAs: 'auiTable',
|
|
1197
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1198
|
-
template: "\n " + table.CDK_TABLE_TEMPLATE + "\n <ng-container auiTablePlaceholderOutlet></ng-container>\n ",
|
|
1199
|
-
host: {
|
|
1200
|
-
class: 'aui-table',
|
|
1201
|
-
},
|
|
1202
|
-
preserveWhitespaces: false,
|
|
1203
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1204
|
-
providers: [
|
|
1205
|
-
{
|
|
1206
|
-
provide: table.CDK_TABLE,
|
|
1207
|
-
useExisting: TableComponent,
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
provide: collections._VIEW_REPEATER_STRATEGY,
|
|
1211
|
-
useClass: collections._DisposeViewRepeaterStrategy,
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
provide: table._COALESCED_STYLE_SCHEDULER,
|
|
1215
|
-
useClass: table._CoalescedStyleScheduler,
|
|
1216
|
-
},
|
|
1217
|
-
],
|
|
1218
|
-
styles: [".aui-table{display:block;padding:0 12px 12px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1));background-color:rgb(var(--aui-color-n-9));border-radius:var(--aui-border-radius-l);overflow:auto}.aui-table::-webkit-scrollbar{width:4px;height:4px}.aui-table::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__header-row,.aui-table__row{display:flex;align-items:center}.aui-table__header-row.hasPanel,.aui-table__row.hasPanel{flex-wrap:wrap}.aui-table__header-row+.aui-table__row{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row{position:relative;border:solid rgb(var(--aui-color-n-8));border-width:1px 1px 0;background-color:rgb(var(--aui-color-n-10));padding:0 10px;min-height:58px;box-sizing:content-box}.aui-table__row:first-child{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row:last-child{border-bottom-width:1px;min-height:58px;border-bottom-left-radius:var(--aui-border-radius-l);border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__row.isDisabled:before{content:\"\";z-index:2;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgb(var(--aui-color-n-10));opacity:.7;cursor:not-allowed}.aui-table__header-row{background-color:rgb(var(--aui-color-n-9));padding:0 10px}.aui-table__cell,.aui-table__header-cell{flex:1}.aui-table__cell{padding:15px 10px;background-color:rgb(var(--aui-color-n-10));overflow:hidden;word-wrap:break-word}.aui-table__header-cell{padding:12px 10px;font-weight:var(--aui-font-weight-bold);background-color:rgb(var(--aui-color-n-9));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aui-table__column-expand-button{display:flex;align-items:center;max-width:calc(10px * 2 + var(--aui-icon-size-m))}.aui-table__column-expand-button.aui-table__cell{height:58px}.aui-table__column-expand-button .aui-expand-button{display:inline-flex;justify-content:center;align-items:center;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m);font-size:var(--aui-icon-size-m);line-height:var(--aui-icon-size-m);color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6));border-radius:50%;border:none;cursor:pointer;transition:transform .1s ease-in-out}.aui-table__column-expand-button .aui-expand-button aui-icon{display:block;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m)}.aui-table__column-expand-button .aui-expand-button:hover{background-color:rgb(var(--aui-color-p-7))}.aui-table__column-expand-button .aui-expand-button:active{background-color:rgb(var(--aui-color-p-5))}.aui-table__column-expand-button .aui-expand-button.isExpanded{transform:rotate(90deg);color:rgb(var(--aui-color-n-10));background-color:rgb(var(--aui-color-primary))}.aui-table__column-expand-button .aui-expand-button.isExpanded:hover{background-color:rgb(var(--aui-color-p-1))}.aui-table__column-expand-button .aui-expand-button.isExpanded:active{background-color:rgb(var(--aui-color-p-0))}.aui-table__column-expand-button .aui-expand-button.isExpanded[disabled],.aui-table__column-expand-button .aui-expand-button[disabled]{background-color:rgb(var(--aui-color-n-8));color:rgb(var(--aui-color-n-6));cursor:not-allowed}.aui-table__column-expand-panel{margin-top:-6px}.aui-table__column-expand-panel.aui-table__header-cell{display:none}.aui-table__column-expand-panel.aui-table__cell{width:100%;flex-shrink:0;flex-basis:100%;padding:0 10px;overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel{border-radius:var(--aui-border-radius-l);overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel-content.hasBackground{padding:16px;background-color:rgb(var(--aui-color-n-9))}", ".aui-table__scroll-wrapper{background-color:rgb(var(--aui-color-n-9));padding:0 12px 12px;border-radius:var(--aui-border-radius-l)}.aui-table__scroll-wrapper::-webkit-scrollbar{width:4px;height:4px}.aui-table__scroll-wrapper::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__scroll-wrapper .aui-table{padding:0}.aui-table__scroll-wrapper .aui-table__header-row.aui-table-sticky{margin:0 -12px;padding:0}.aui-table__scroll-wrapper .aui-table.hasTableTopShadow:before{content:\"\";position:-webkit-sticky;position:sticky;display:block;width:calc(100% + 24px);height:16px;margin-top:-16px;transform:translate3d(-12px,0,0);z-index:99;top:28px;box-shadow:0 10px 10px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-wrapper .aui-table.hasTableBottomShadow:after{content:\"\";position:-webkit-sticky;position:sticky;display:block;width:calc(100% + 24px);height:16px;transform:translate3d(-12px,12px,0);z-index:99;bottom:0;margin-top:-16px;box-shadow:0 -10px 10px -4px rgba(var(--aui-color-n-1),.16) inset}.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableBottomShadow:after,.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableTopShadow:before{transform:none;width:100%;left:0}.aui-table__scroll-shadow .aui-table__header-row.aui-table-sticky{margin:0}.aui-table__scroll-shadow .aui-table__row{border:none;padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__row .aui-table__cell{border-color:rgb(var(--aui-color-n-8));border-style:solid;border-width:1px 0}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:first-of-type{border-left-width:1px;padding-left:20px}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:last-of-type{border-right-width:1px;padding-right:20px}.aui-table__scroll-shadow .aui-table__row:first-child:not(.aui-table__header-row) .aui-table__cell:first-of-type{border-top-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:first-child:not(.aui-table__header-row) .aui-table__cell:last-of-type{border-top-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:first-of-type{border-bottom-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:last-of-type{border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:not(.aui-table__scroll-shadow .aui-table__row:last-child) .aui-table__cell{border-bottom-width:0}.aui-table__scroll-shadow .aui-table__header-row{padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:first-of-type{padding-left:20px}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:last-of-type{padding-right:20px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky:not(.aui-table__header-row):after{position:absolute;top:0;bottom:-1px;width:20px;transition:box-shadow .3s;content:\"\";pointer-events:none}.aui-table__scroll-shadow--has-scroll .aui-table-sticky:not(.aui-table__header-row):before{position:absolute;top:0;bottom:-1px;content:\"\";background:linear-gradient(180deg,rgb(var(--aui-color-n-7)),rgb(var(--aui-color-n-7)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left{padding-right:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:after{right:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:before{right:10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right{padding-left:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:after{left:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:before{left:10px}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):after{box-shadow:inset 8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):after{box-shadow:inset -8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}"]
|
|
1219
|
-
},] }
|
|
1220
|
-
];
|
|
1221
|
-
TableComponent.propDecorators = {
|
|
1222
|
-
enableScrollWrapper: [{ type: i0.Input }],
|
|
1223
|
-
_placeholderOutlet: [{ type: i0.ViewChild, args: [TablePlaceholderOutlet, { static: true },] }],
|
|
1224
|
-
_placeholderDef: [{ type: i0.ContentChild, args: [TablePlaceholderDefDirective, { static: true },] }]
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
1231
|
var TableModule = /** @class */ (function () {
|
|
1228
1232
|
function TableModule() {
|
|
1229
1233
|
}
|
|
@@ -2898,8 +2902,9 @@
|
|
|
2898
2902
|
}());
|
|
2899
2903
|
DialogService.DIALOG_OVERLAY_PANE_CLASS = 'aui-dialog-overlay-pane';
|
|
2900
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" });
|
|
2901
2906
|
DialogService.decorators = [
|
|
2902
|
-
{ type: i0.Injectable }
|
|
2907
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2903
2908
|
];
|
|
2904
2909
|
DialogService.ctorParameters = function () { return [
|
|
2905
2910
|
{ type: i1.Overlay },
|
|
@@ -3049,7 +3054,6 @@
|
|
|
3049
3054
|
DialogCloseDirective,
|
|
3050
3055
|
],
|
|
3051
3056
|
entryComponents: [DialogComponent, ConfirmDialogComponent],
|
|
3052
|
-
providers: [DialogService],
|
|
3053
3057
|
},] }
|
|
3054
3058
|
];
|
|
3055
3059
|
|
|
@@ -4836,7 +4840,7 @@
|
|
|
4836
4840
|
NumberInputComponent.decorators = [
|
|
4837
4841
|
{ type: i0.Component, args: [{
|
|
4838
4842
|
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($
|
|
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",
|
|
4840
4844
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4841
4845
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4842
4846
|
preserveWhitespaces: false,
|
|
@@ -7056,6 +7060,19 @@
|
|
|
7056
7060
|
{ type: i0.ChangeDetectorRef }
|
|
7057
7061
|
]; };
|
|
7058
7062
|
|
|
7063
|
+
var MessageModule = /** @class */ (function () {
|
|
7064
|
+
function MessageModule() {
|
|
7065
|
+
}
|
|
7066
|
+
return MessageModule;
|
|
7067
|
+
}());
|
|
7068
|
+
MessageModule.decorators = [
|
|
7069
|
+
{ type: i0.NgModule, args: [{
|
|
7070
|
+
imports: [common.CommonModule, i1.OverlayModule, IconModule],
|
|
7071
|
+
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7072
|
+
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7073
|
+
},] }
|
|
7074
|
+
];
|
|
7075
|
+
|
|
7059
7076
|
var BaseMessage = /** @class */ (function () {
|
|
7060
7077
|
function BaseMessage(overlay, injector, applicationRef, cfr, overlayPaneClassName, wrapperClass, componentClass, globalConfig) {
|
|
7061
7078
|
this.overlay = overlay;
|
|
@@ -7151,8 +7168,9 @@
|
|
|
7151
7168
|
}
|
|
7152
7169
|
return MessageService;
|
|
7153
7170
|
}(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" });
|
|
7154
7172
|
MessageService.decorators = [
|
|
7155
|
-
{ type: i0.Injectable }
|
|
7173
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7156
7174
|
];
|
|
7157
7175
|
MessageService.ctorParameters = function () { return [
|
|
7158
7176
|
{ type: i1.Overlay },
|
|
@@ -7162,20 +7180,6 @@
|
|
|
7162
7180
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MESSAGE_CONFIG,] }] }
|
|
7163
7181
|
]; };
|
|
7164
7182
|
|
|
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
7183
|
var NotificationWrapperComponent = /** @class */ (function (_super) {
|
|
7180
7184
|
__extends(NotificationWrapperComponent, _super);
|
|
7181
7185
|
function NotificationWrapperComponent(elementRef) {
|
|
@@ -7304,6 +7308,19 @@
|
|
|
7304
7308
|
onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
|
|
7305
7309
|
};
|
|
7306
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
|
+
|
|
7307
7324
|
var NOTIFICATION_CONFIG = new i0.InjectionToken('NOTIFICATION_CONFIG');
|
|
7308
7325
|
var NOTIFICATION_DEFAULT_CONFIG = {
|
|
7309
7326
|
duration: 6000,
|
|
@@ -7317,8 +7334,9 @@
|
|
|
7317
7334
|
}
|
|
7318
7335
|
return NotificationService;
|
|
7319
7336
|
}(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" });
|
|
7320
7338
|
NotificationService.decorators = [
|
|
7321
|
-
{ type: i0.Injectable }
|
|
7339
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7322
7340
|
];
|
|
7323
7341
|
NotificationService.ctorParameters = function () { return [
|
|
7324
7342
|
{ type: i1.Overlay },
|
|
@@ -7328,20 +7346,6 @@
|
|
|
7328
7346
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [NOTIFICATION_CONFIG,] }] }
|
|
7329
7347
|
]; };
|
|
7330
7348
|
|
|
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
7349
|
var TabBodyComponent = /** @class */ (function () {
|
|
7346
7350
|
function TabBodyComponent() {
|
|
7347
7351
|
this.content$ = new rxjs.BehaviorSubject(null);
|
|
@@ -7939,7 +7943,7 @@
|
|
|
7939
7943
|
];
|
|
7940
7944
|
TabHeaderComponent.ctorParameters = function () { return [
|
|
7941
7945
|
{ type: i0.ChangeDetectorRef },
|
|
7942
|
-
{ type:
|
|
7946
|
+
{ type: i2.ViewportRuler }
|
|
7943
7947
|
]; };
|
|
7944
7948
|
TabHeaderComponent.propDecorators = {
|
|
7945
7949
|
type: [{ type: i0.Input }],
|
|
@@ -9931,7 +9935,7 @@
|
|
|
9931
9935
|
exportAs: 'viewPort',
|
|
9932
9936
|
providers: [
|
|
9933
9937
|
{
|
|
9934
|
-
provide:
|
|
9938
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9935
9939
|
useFactory: _tableVirtualScrollDirectiveStrategyFactory,
|
|
9936
9940
|
deps: [i0.forwardRef(function () { return FixedSizeTableVirtualScrollDirective; })],
|
|
9937
9941
|
},
|
|
@@ -9946,21 +9950,21 @@
|
|
|
9946
9950
|
table: [{ type: i0.ContentChild, args: [TableComponent, { static: false },] }]
|
|
9947
9951
|
};
|
|
9948
9952
|
|
|
9949
|
-
var ɵ0 =
|
|
9953
|
+
var ɵ0 = i2._fixedSizeVirtualScrollStrategyFactory;
|
|
9950
9954
|
var FixedSizeVirtualScrollDirective = /** @class */ (function (_super) {
|
|
9951
9955
|
__extends(FixedSizeVirtualScrollDirective, _super);
|
|
9952
9956
|
function FixedSizeVirtualScrollDirective() {
|
|
9953
9957
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9954
9958
|
}
|
|
9955
9959
|
return FixedSizeVirtualScrollDirective;
|
|
9956
|
-
}(
|
|
9960
|
+
}(i2.CdkFixedSizeVirtualScroll));
|
|
9957
9961
|
FixedSizeVirtualScrollDirective.decorators = [
|
|
9958
9962
|
{ type: i0.Directive, args: [{
|
|
9959
9963
|
// tslint:disable-next-line: directive-selector
|
|
9960
9964
|
selector: 'aui-virtual-scroll-viewport[itemSize]',
|
|
9961
9965
|
providers: [
|
|
9962
9966
|
{
|
|
9963
|
-
provide:
|
|
9967
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9964
9968
|
useFactory: ɵ0,
|
|
9965
9969
|
deps: [i0.forwardRef(function () { return FixedSizeVirtualScrollDirective; })],
|
|
9966
9970
|
},
|
|
@@ -10004,7 +10008,7 @@
|
|
|
10004
10008
|
configurable: true
|
|
10005
10009
|
});
|
|
10006
10010
|
return VirtualForOfDirective;
|
|
10007
|
-
}(
|
|
10011
|
+
}(i2.CdkVirtualForOf));
|
|
10008
10012
|
VirtualForOfDirective.decorators = [
|
|
10009
10013
|
{ type: i0.Directive, args: [{
|
|
10010
10014
|
selector: '[auiVirtualFor][auiVirtualForOf]',
|
|
@@ -10023,7 +10027,7 @@
|
|
|
10023
10027
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10024
10028
|
}
|
|
10025
10029
|
return VirtualScrollViewportComponent;
|
|
10026
|
-
}(
|
|
10030
|
+
}(i2.CdkVirtualScrollViewport));
|
|
10027
10031
|
VirtualScrollViewportComponent.decorators = [
|
|
10028
10032
|
{ type: i0.Component, args: [{
|
|
10029
10033
|
selector: 'aui-virtual-scroll-viewport',
|
|
@@ -10038,7 +10042,7 @@
|
|
|
10038
10042
|
preserveWhitespaces: false,
|
|
10039
10043
|
providers: [
|
|
10040
10044
|
{
|
|
10041
|
-
provide:
|
|
10045
|
+
provide: i2.CdkVirtualScrollViewport,
|
|
10042
10046
|
useExisting: VirtualScrollViewportComponent,
|
|
10043
10047
|
},
|
|
10044
10048
|
],
|
|
@@ -10252,7 +10256,7 @@
|
|
|
10252
10256
|
{ type: i0.ApplicationRef },
|
|
10253
10257
|
{ type: i0.Injector },
|
|
10254
10258
|
{ type: i0.ElementRef },
|
|
10255
|
-
{ type:
|
|
10259
|
+
{ type: i2.CdkScrollable, decorators: [{ type: i0.Optional }] }
|
|
10256
10260
|
]; };
|
|
10257
10261
|
AnchorDirective.propDecorators = {
|
|
10258
10262
|
auiAnchor: [{ type: i0.Input }],
|
|
@@ -11908,15 +11912,10 @@
|
|
|
11908
11912
|
];
|
|
11909
11913
|
|
|
11910
11914
|
(function (DrawerSize) {
|
|
11911
|
-
DrawerSize["Small"] = "
|
|
11912
|
-
DrawerSize["Medium"] = "
|
|
11913
|
-
DrawerSize["
|
|
11915
|
+
DrawerSize["Small"] = "400px";
|
|
11916
|
+
DrawerSize["Medium"] = "600px";
|
|
11917
|
+
DrawerSize["Large"] = "800px";
|
|
11914
11918
|
})(exports.DrawerSize || (exports.DrawerSize = {}));
|
|
11915
|
-
var DrawerRef = /** @class */ (function () {
|
|
11916
|
-
function DrawerRef() {
|
|
11917
|
-
}
|
|
11918
|
-
return DrawerRef;
|
|
11919
|
-
}());
|
|
11920
11919
|
|
|
11921
11920
|
/**
|
|
11922
11921
|
* @packageDocumentation
|
|
@@ -11953,65 +11952,26 @@
|
|
|
11953
11952
|
},] }
|
|
11954
11953
|
];
|
|
11955
11954
|
|
|
11956
|
-
var _c;
|
|
11957
11955
|
var DATA = new i0.InjectionToken('drawer-data');
|
|
11958
11956
|
var DRAWER_OVERLAY_CLASS = 'aui-drawer-overlay';
|
|
11959
|
-
var
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
_this.size = exports.DrawerSize.Medium;
|
|
11973
|
-
_this.offsetY = 0;
|
|
11974
|
-
_this.hideOnClickOutside = false;
|
|
11975
|
-
_this.showClose = true;
|
|
11976
|
-
_this._value = SIZE_MAPPER[exports.DrawerSize.Medium];
|
|
11977
|
-
_this.afterClosed$ = new rxjs.Subject();
|
|
11978
|
-
_this.afterOpen$ = new rxjs.Subject();
|
|
11979
|
-
_this.drawerViewInit = new i0.EventEmitter();
|
|
11980
|
-
_this.close = new i0.EventEmitter();
|
|
11981
|
-
_this.onDestroy$ = new rxjs.Subject();
|
|
11982
|
-
_this.isTemplateRef = isTemplateRef;
|
|
11983
|
-
_this.componentInstance = null;
|
|
11984
|
-
_this.templateContext = {};
|
|
11985
|
-
return _this;
|
|
11957
|
+
var DrawerComponent = /** @class */ (function () {
|
|
11958
|
+
function DrawerComponent(viewContainerRef, overlay) {
|
|
11959
|
+
this.viewContainerRef = viewContainerRef;
|
|
11960
|
+
this.overlay = overlay;
|
|
11961
|
+
this.size = exports.DrawerSize.Medium;
|
|
11962
|
+
this.offsetY = '0px';
|
|
11963
|
+
this.hideOnClickOutside = false;
|
|
11964
|
+
this.showClose = true;
|
|
11965
|
+
this.divider = true;
|
|
11966
|
+
this.width = exports.DrawerSize.Medium;
|
|
11967
|
+
this.visibleChange = new i0.EventEmitter();
|
|
11968
|
+
this.destroy$ = new rxjs.Subject();
|
|
11969
|
+
this.templateContext = {};
|
|
11986
11970
|
}
|
|
11987
|
-
Object.defineProperty(DrawerComponent.prototype, "width", {
|
|
11988
|
-
get: function () {
|
|
11989
|
-
return this._value;
|
|
11990
|
-
},
|
|
11991
|
-
set: function (value) {
|
|
11992
|
-
this._value = value;
|
|
11993
|
-
},
|
|
11994
|
-
enumerable: false,
|
|
11995
|
-
configurable: true
|
|
11996
|
-
});
|
|
11997
11971
|
Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
|
|
11998
11972
|
get: function () {
|
|
11999
11973
|
var _c;
|
|
12000
|
-
return Object.assign({ drawer: true }, (
|
|
12001
|
-
},
|
|
12002
|
-
enumerable: false,
|
|
12003
|
-
configurable: true
|
|
12004
|
-
});
|
|
12005
|
-
Object.defineProperty(DrawerComponent.prototype, "afterClosed", {
|
|
12006
|
-
get: function () {
|
|
12007
|
-
return this.afterClosed$.asObservable();
|
|
12008
|
-
},
|
|
12009
|
-
enumerable: false,
|
|
12010
|
-
configurable: true
|
|
12011
|
-
});
|
|
12012
|
-
Object.defineProperty(DrawerComponent.prototype, "afterOpen", {
|
|
12013
|
-
get: function () {
|
|
12014
|
-
return this.afterOpen$.asObservable();
|
|
11974
|
+
return Object.assign({ 'aui-drawer': true, hasDivider: this.divider, isOpen: this.visible }, (this.drawerClass ? (_c = {}, _c[this.drawerClass] = true, _c) : null));
|
|
12015
11975
|
},
|
|
12016
11976
|
enumerable: false,
|
|
12017
11977
|
configurable: true
|
|
@@ -12027,26 +11987,24 @@
|
|
|
12027
11987
|
this.attachOverlay();
|
|
12028
11988
|
this.updateBodyOverflow();
|
|
12029
11989
|
this.templateContext = { $implicit: this.contentParams };
|
|
12030
|
-
this.cdr.detectChanges();
|
|
12031
11990
|
};
|
|
12032
|
-
DrawerComponent.prototype.
|
|
12033
|
-
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
11991
|
+
DrawerComponent.prototype.open = function () {
|
|
11992
|
+
this.visibleChange.emit(true);
|
|
11993
|
+
this.updateBodyOverflow();
|
|
11994
|
+
};
|
|
11995
|
+
DrawerComponent.prototype.close = function () {
|
|
11996
|
+
this.visibleChange.emit(false);
|
|
11997
|
+
this.updateBodyOverflow();
|
|
11998
|
+
};
|
|
11999
|
+
DrawerComponent.prototype.maskClick = function () {
|
|
12000
|
+
if (this.maskClosable && this.mask) {
|
|
12001
|
+
this.close();
|
|
12042
12002
|
}
|
|
12043
12003
|
};
|
|
12044
|
-
DrawerComponent.prototype.
|
|
12045
|
-
|
|
12046
|
-
this.
|
|
12047
|
-
|
|
12048
|
-
_this.drawerViewInit.emit();
|
|
12049
|
-
}, 0);
|
|
12004
|
+
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
12005
|
+
this.destroy$.next();
|
|
12006
|
+
this.destroy$.complete();
|
|
12007
|
+
this.disposeOverlay();
|
|
12050
12008
|
};
|
|
12051
12009
|
DrawerComponent.prototype.attachOverlay = function () {
|
|
12052
12010
|
var _this = this;
|
|
@@ -12058,7 +12016,7 @@
|
|
|
12058
12016
|
this.overlayRef.attach(this.portal);
|
|
12059
12017
|
this.overlayRef
|
|
12060
12018
|
.outsidePointerEvents()
|
|
12061
|
-
.pipe(operators.takeUntil(this.
|
|
12019
|
+
.pipe(operators.takeUntil(this.destroy$))
|
|
12062
12020
|
.subscribe(function (event) {
|
|
12063
12021
|
var _a, _b;
|
|
12064
12022
|
// 判断鼠标点击事件的 target 是否为 overlay-container 的子节点,如果是,则不关闭 drawer。
|
|
@@ -12067,7 +12025,9 @@
|
|
|
12067
12025
|
_this.hideOnClickOutside &&
|
|
12068
12026
|
event.target instanceof Node &&
|
|
12069
12027
|
!((_b = (_a = _this.overlayRef.hostElement) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
|
|
12070
|
-
|
|
12028
|
+
event.stopPropagation();
|
|
12029
|
+
event.preventDefault();
|
|
12030
|
+
_this.close();
|
|
12071
12031
|
}
|
|
12072
12032
|
});
|
|
12073
12033
|
}
|
|
@@ -12079,26 +12039,6 @@
|
|
|
12079
12039
|
scrollStrategy: this.overlay.scrollStrategies.block(),
|
|
12080
12040
|
});
|
|
12081
12041
|
};
|
|
12082
|
-
DrawerComponent.prototype.attachBodyContent = function () {
|
|
12083
|
-
var _a, _b;
|
|
12084
|
-
(_a = this.bodyPortalOutlet) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
12085
|
-
var content = this.content || this.contentTemplate;
|
|
12086
|
-
if (content instanceof i0.Type) {
|
|
12087
|
-
var componentPortal = new portal.ComponentPortal(content, null, i0.Injector.create({
|
|
12088
|
-
providers: [
|
|
12089
|
-
{
|
|
12090
|
-
provide: DATA,
|
|
12091
|
-
useValue: this.contentParams,
|
|
12092
|
-
},
|
|
12093
|
-
],
|
|
12094
|
-
parent: this.injector,
|
|
12095
|
-
}));
|
|
12096
|
-
var componentRef = (_b = this.bodyPortalOutlet) === null || _b === void 0 ? void 0 : _b.attachComponentPortal(componentPortal);
|
|
12097
|
-
this.componentInstance = componentRef.instance;
|
|
12098
|
-
Object.assign(componentRef.instance, this.contentParams);
|
|
12099
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
12100
|
-
}
|
|
12101
|
-
};
|
|
12102
12042
|
DrawerComponent.prototype.updateBodyOverflow = function () {
|
|
12103
12043
|
if (this.overlayRef) {
|
|
12104
12044
|
if (this.visible) {
|
|
@@ -12109,121 +12049,46 @@
|
|
|
12109
12049
|
}
|
|
12110
12050
|
}
|
|
12111
12051
|
};
|
|
12112
|
-
DrawerComponent.prototype.open = function () {
|
|
12113
|
-
this.visible = true;
|
|
12114
|
-
this.afterOpen$.next();
|
|
12115
|
-
this.afterOpen$.complete();
|
|
12116
|
-
this.updateBodyOverflow();
|
|
12117
|
-
this.cdr.markForCheck();
|
|
12118
|
-
};
|
|
12119
|
-
DrawerComponent.prototype.closure = function (result) {
|
|
12120
|
-
if (result === void 0) { result = null; }
|
|
12121
|
-
this.visible = false;
|
|
12122
|
-
this.close.next();
|
|
12123
|
-
this.afterClosed$.next(result);
|
|
12124
|
-
this.afterClosed$.complete();
|
|
12125
|
-
this.updateBodyOverflow();
|
|
12126
|
-
this.cdr.markForCheck();
|
|
12127
|
-
};
|
|
12128
12052
|
DrawerComponent.prototype.disposeOverlay = function () {
|
|
12129
12053
|
if (this.overlayRef) {
|
|
12130
12054
|
this.overlayRef.dispose();
|
|
12131
12055
|
}
|
|
12132
12056
|
this.overlayRef = null;
|
|
12133
12057
|
};
|
|
12134
|
-
DrawerComponent.prototype.maskClick = function () {
|
|
12135
|
-
if (this.maskClosable && this.mask) {
|
|
12136
|
-
this.closure();
|
|
12137
|
-
}
|
|
12138
|
-
};
|
|
12139
|
-
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
12140
|
-
this.onDestroy$.next();
|
|
12141
|
-
this.disposeOverlay();
|
|
12142
|
-
};
|
|
12143
12058
|
return DrawerComponent;
|
|
12144
|
-
}(
|
|
12059
|
+
}());
|
|
12145
12060
|
DrawerComponent.decorators = [
|
|
12146
12061
|
{ type: i0.Component, args: [{
|
|
12147
12062
|
selector: 'aui-drawer',
|
|
12148
|
-
template: "<ng-template #drawerTemplate>\n <div\n
|
|
12149
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
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,\n marginTop: offsetY\n }\"\n >\n <div *ngIf=\"headerRef || showClose\" class=\"aui-drawer__header-wrapper\">\n <div class=\"aui-drawer__header\">\n <ng-content select=\"[auiDrawerHeader]\"></ng-content>\n </div>\n <div *ngIf=\"showClose\" class=\"aui-drawer__close\" (click)=\"close()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"aui-drawer__content\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"aui-drawer__footer\">\n <ng-content select=\"[auiDrawerFooter]\"></ng-content>\n </div>\n </div>\n</ng-template>\n",
|
|
12150
12064
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12151
|
-
|
|
12065
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
12066
|
+
preserveWhitespaces: false,
|
|
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;display:flex;flex-direction:column;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1));background-color:rgb(var(--aui-color-n-10));transition:transform .3s ease-in-out}.aui-drawer.isOpen{box-shadow:0 4px 16px 0 rgba(var(--aui-color-n-1),.2)}.aui-drawer__header-wrapper{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__header{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{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__content{margin:16px 20px;flex:1;overflow:auto}.aui-drawer__content::-webkit-scrollbar{width:4px;height:4px}.aui-drawer__content::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-drawer__footer{margin:0 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-8))}"]
|
|
12152
12068
|
},] }
|
|
12153
12069
|
];
|
|
12154
12070
|
DrawerComponent.ctorParameters = function () { return [
|
|
12155
12071
|
{ type: i0.ViewContainerRef },
|
|
12156
|
-
{ type: i1.Overlay }
|
|
12157
|
-
{ type: i0.Injector },
|
|
12158
|
-
{ type: i0.ChangeDetectorRef }
|
|
12072
|
+
{ type: i1.Overlay }
|
|
12159
12073
|
]; };
|
|
12160
12074
|
DrawerComponent.propDecorators = {
|
|
12161
|
-
title: [{ type: i0.Input }],
|
|
12162
|
-
footer: [{ type: i0.Input }],
|
|
12163
12075
|
size: [{ type: i0.Input }],
|
|
12164
12076
|
offsetY: [{ type: i0.Input }],
|
|
12165
12077
|
visible: [{ type: i0.Input }],
|
|
12166
|
-
content: [{ type: i0.Input }],
|
|
12167
12078
|
hideOnClickOutside: [{ type: i0.Input }],
|
|
12168
12079
|
showClose: [{ type: i0.Input }],
|
|
12169
12080
|
drawerClass: [{ type: i0.Input }],
|
|
12081
|
+
divider: [{ type: i0.Input }],
|
|
12170
12082
|
mask: [{ type: i0.Input }],
|
|
12171
12083
|
maskClosable: [{ type: i0.Input }],
|
|
12172
12084
|
width: [{ type: i0.Input }],
|
|
12173
|
-
|
|
12174
|
-
close: [{ type: i0.Output }],
|
|
12085
|
+
visibleChange: [{ type: i0.Output }],
|
|
12175
12086
|
drawerTemplate: [{ type: i0.ViewChild, args: ['drawerTemplate', { static: true },] }],
|
|
12176
12087
|
bodyPortalOutlet: [{ type: i0.ViewChild, args: [portal.CdkPortalOutlet, { static: false },] }],
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
footerTemplate: [{ type: i0.ContentChild, args: [DrawerFooterDirective, { read: i0.TemplateRef },] }]
|
|
12088
|
+
headerRef: [{ type: i0.ContentChild, args: [DrawerHeaderDirective, { read: i0.TemplateRef },] }],
|
|
12089
|
+
footerRef: [{ type: i0.ContentChild, args: [DrawerFooterDirective, { read: i0.TemplateRef },] }]
|
|
12180
12090
|
};
|
|
12181
12091
|
|
|
12182
|
-
var DrawerService = /** @class */ (function () {
|
|
12183
|
-
function DrawerService(overlay) {
|
|
12184
|
-
this.overlay = overlay;
|
|
12185
|
-
this.unsubscribe$ = new rxjs.Subject();
|
|
12186
|
-
}
|
|
12187
|
-
DrawerService.prototype.open = function (options) {
|
|
12188
|
-
var _a, _b, _c;
|
|
12189
|
-
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.closure();
|
|
12190
|
-
this.createDrawer();
|
|
12191
|
-
this.updateOptions(options);
|
|
12192
|
-
return (_c = this.drawerRef) === null || _c === void 0 ? void 0 : _c.instance;
|
|
12193
|
-
};
|
|
12194
|
-
DrawerService.prototype.updateOptions = function (options) {
|
|
12195
|
-
Object.assign(this.drawerRef.instance, options);
|
|
12196
|
-
};
|
|
12197
|
-
DrawerService.prototype.createDrawer = function () {
|
|
12198
|
-
var _this = this;
|
|
12199
|
-
this.overlayRef = this.overlay.create();
|
|
12200
|
-
this.drawerRef = this.overlayRef.attach(new portal.ComponentPortal(DrawerComponent));
|
|
12201
|
-
this.drawerRef.instance.drawerViewInit
|
|
12202
|
-
.pipe(operators.takeUntil(this.unsubscribe$))
|
|
12203
|
-
.subscribe(function () {
|
|
12204
|
-
_this.drawerRef.instance.open();
|
|
12205
|
-
});
|
|
12206
|
-
this.drawerRef.instance.afterClosed
|
|
12207
|
-
.pipe(operators.takeUntil(this.unsubscribe$))
|
|
12208
|
-
.subscribe(function () {
|
|
12209
|
-
_this.overlayRef.dispose();
|
|
12210
|
-
_this.drawerRef = null;
|
|
12211
|
-
_this.unsubscribe$.next();
|
|
12212
|
-
_this.unsubscribe$.complete();
|
|
12213
|
-
});
|
|
12214
|
-
};
|
|
12215
|
-
return DrawerService;
|
|
12216
|
-
}());
|
|
12217
|
-
DrawerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DrawerService_Factory() { return new DrawerService(i0.ɵɵinject(i1.Overlay)); }, token: DrawerService, providedIn: "root" });
|
|
12218
|
-
DrawerService.decorators = [
|
|
12219
|
-
{ type: i0.Injectable, args: [{
|
|
12220
|
-
providedIn: 'root',
|
|
12221
|
-
},] }
|
|
12222
|
-
];
|
|
12223
|
-
DrawerService.ctorParameters = function () { return [
|
|
12224
|
-
{ type: i1.Overlay }
|
|
12225
|
-
]; };
|
|
12226
|
-
|
|
12227
12092
|
var COMMON = [
|
|
12228
12093
|
DrawerComponent,
|
|
12229
12094
|
DrawerHeaderDirective,
|
|
@@ -12240,11 +12105,28 @@
|
|
|
12240
12105
|
imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
|
|
12241
12106
|
declarations: COMMON,
|
|
12242
12107
|
exports: COMMON,
|
|
12243
|
-
providers: [DrawerService],
|
|
12244
12108
|
entryComponents: [DrawerComponent],
|
|
12245
12109
|
},] }
|
|
12246
12110
|
];
|
|
12247
12111
|
|
|
12112
|
+
var DrawerService = /** @class */ (function () {
|
|
12113
|
+
function DrawerService() {
|
|
12114
|
+
}
|
|
12115
|
+
DrawerService.prototype.open = function (_) {
|
|
12116
|
+
// TODO: need to be refactored
|
|
12117
|
+
};
|
|
12118
|
+
DrawerService.prototype.updateOptions = function (_) {
|
|
12119
|
+
// TODO: need to be refactored
|
|
12120
|
+
};
|
|
12121
|
+
return DrawerService;
|
|
12122
|
+
}());
|
|
12123
|
+
DrawerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DrawerService_Factory() { return new DrawerService(); }, token: DrawerService, providedIn: "root" });
|
|
12124
|
+
DrawerService.decorators = [
|
|
12125
|
+
{ type: i0.Injectable, args: [{
|
|
12126
|
+
providedIn: 'root',
|
|
12127
|
+
},] }
|
|
12128
|
+
];
|
|
12129
|
+
|
|
12248
12130
|
var StepState = {
|
|
12249
12131
|
Default: 'default',
|
|
12250
12132
|
Done: 'done',
|
|
@@ -12252,19 +12134,19 @@
|
|
|
12252
12134
|
Pending: 'pending',
|
|
12253
12135
|
};
|
|
12254
12136
|
|
|
12255
|
-
var _b$1, _c
|
|
12137
|
+
var _b$1, _c;
|
|
12256
12138
|
var StepDefaultIcon = (_b$1 = {},
|
|
12257
12139
|
_b$1[StepState.Default] = 'number',
|
|
12258
12140
|
_b$1[StepState.Done] = 'check_circle',
|
|
12259
12141
|
_b$1[StepState.Error] = 'close_circle',
|
|
12260
12142
|
_b$1[StepState.Pending] = 'sync_circle',
|
|
12261
12143
|
_b$1);
|
|
12262
|
-
var StepSelectedIcon = (_c
|
|
12263
|
-
_c
|
|
12264
|
-
_c
|
|
12265
|
-
_c
|
|
12266
|
-
_c
|
|
12267
|
-
_c
|
|
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);
|
|
12268
12150
|
var StepsComponent = /** @class */ (function () {
|
|
12269
12151
|
function StepsComponent() {
|
|
12270
12152
|
this._steps = [];
|
|
@@ -12534,7 +12416,6 @@
|
|
|
12534
12416
|
exports.DrawerFooterDirective = DrawerFooterDirective;
|
|
12535
12417
|
exports.DrawerHeaderDirective = DrawerHeaderDirective;
|
|
12536
12418
|
exports.DrawerModule = DrawerModule;
|
|
12537
|
-
exports.DrawerRef = DrawerRef;
|
|
12538
12419
|
exports.DrawerService = DrawerService;
|
|
12539
12420
|
exports.DropdownActiveDirective = DropdownActiveDirective;
|
|
12540
12421
|
exports.DropdownButtonComponent = DropdownButtonComponent;
|