@alauda/ui 6.1.3-beta.7 → 6.1.3-beta.8
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 +152 -147
- 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 +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 +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 +3 -1
- package/esm2015/drawer/drawer.module.ngfactory.js +7 -6
- 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 +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/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 +129 -124
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/table/table-scroll.directive.d.ts +3 -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,
|
|
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, i1, 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
|
|
|
@@ -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,9 +2902,8 @@
|
|
|
2898
2902
|
}());
|
|
2899
2903
|
DialogService.DIALOG_OVERLAY_PANE_CLASS = 'aui-dialog-overlay-pane';
|
|
2900
2904
|
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" });
|
|
2902
2905
|
DialogService.decorators = [
|
|
2903
|
-
{ type: i0.Injectable
|
|
2906
|
+
{ type: i0.Injectable }
|
|
2904
2907
|
];
|
|
2905
2908
|
DialogService.ctorParameters = function () { return [
|
|
2906
2909
|
{ type: i1.Overlay },
|
|
@@ -3050,6 +3053,7 @@
|
|
|
3050
3053
|
DialogCloseDirective,
|
|
3051
3054
|
],
|
|
3052
3055
|
entryComponents: [DialogComponent, ConfirmDialogComponent],
|
|
3056
|
+
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($event.target.value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n />\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('increase')\"\n [disabled]=\"disabled || (value$ | async) >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n</div>\n",
|
|
4843
|
+
template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocus: isFocus,\n isDisabled: disabled\n }\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n>\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('decrease')\"\n [disabled]=\"disabled || (value$ | async) <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($any($event.target).value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n />\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('increase')\"\n [disabled]=\"disabled || (value$ | async) >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n</div>\n",
|
|
4840
4844
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4841
4845
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4842
4846
|
preserveWhitespaces: false,
|
|
@@ -7056,19 +7060,6 @@
|
|
|
7056
7060
|
{ type: i0.ChangeDetectorRef }
|
|
7057
7061
|
]; };
|
|
7058
7062
|
|
|
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
|
-
|
|
7072
7063
|
var BaseMessage = /** @class */ (function () {
|
|
7073
7064
|
function BaseMessage(overlay, injector, applicationRef, cfr, overlayPaneClassName, wrapperClass, componentClass, globalConfig) {
|
|
7074
7065
|
this.overlay = overlay;
|
|
@@ -7164,9 +7155,8 @@
|
|
|
7164
7155
|
}
|
|
7165
7156
|
return MessageService;
|
|
7166
7157
|
}(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" });
|
|
7168
7158
|
MessageService.decorators = [
|
|
7169
|
-
{ type: i0.Injectable
|
|
7159
|
+
{ type: i0.Injectable }
|
|
7170
7160
|
];
|
|
7171
7161
|
MessageService.ctorParameters = function () { return [
|
|
7172
7162
|
{ type: i1.Overlay },
|
|
@@ -7176,6 +7166,20 @@
|
|
|
7176
7166
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MESSAGE_CONFIG,] }] }
|
|
7177
7167
|
]; };
|
|
7178
7168
|
|
|
7169
|
+
var MessageModule = /** @class */ (function () {
|
|
7170
|
+
function MessageModule() {
|
|
7171
|
+
}
|
|
7172
|
+
return MessageModule;
|
|
7173
|
+
}());
|
|
7174
|
+
MessageModule.decorators = [
|
|
7175
|
+
{ type: i0.NgModule, args: [{
|
|
7176
|
+
imports: [common.CommonModule, i1.OverlayModule, IconModule],
|
|
7177
|
+
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7178
|
+
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7179
|
+
providers: [MessageService],
|
|
7180
|
+
},] }
|
|
7181
|
+
];
|
|
7182
|
+
|
|
7179
7183
|
var NotificationWrapperComponent = /** @class */ (function (_super) {
|
|
7180
7184
|
__extends(NotificationWrapperComponent, _super);
|
|
7181
7185
|
function NotificationWrapperComponent(elementRef) {
|
|
@@ -7304,19 +7308,6 @@
|
|
|
7304
7308
|
onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
|
|
7305
7309
|
};
|
|
7306
7310
|
|
|
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
|
-
|
|
7320
7311
|
var NOTIFICATION_CONFIG = new i0.InjectionToken('NOTIFICATION_CONFIG');
|
|
7321
7312
|
var NOTIFICATION_DEFAULT_CONFIG = {
|
|
7322
7313
|
duration: 6000,
|
|
@@ -7330,9 +7321,8 @@
|
|
|
7330
7321
|
}
|
|
7331
7322
|
return NotificationService;
|
|
7332
7323
|
}(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" });
|
|
7334
7324
|
NotificationService.decorators = [
|
|
7335
|
-
{ type: i0.Injectable
|
|
7325
|
+
{ type: i0.Injectable }
|
|
7336
7326
|
];
|
|
7337
7327
|
NotificationService.ctorParameters = function () { return [
|
|
7338
7328
|
{ type: i1.Overlay },
|
|
@@ -7342,6 +7332,20 @@
|
|
|
7342
7332
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [NOTIFICATION_CONFIG,] }] }
|
|
7343
7333
|
]; };
|
|
7344
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, i1.OverlayModule, portal.PortalModule, IconModule],
|
|
7343
|
+
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7344
|
+
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7345
|
+
providers: [NotificationService],
|
|
7346
|
+
},] }
|
|
7347
|
+
];
|
|
7348
|
+
|
|
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: scrolling.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: scrolling.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 = scrolling._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
|
+
}(scrolling.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: scrolling.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
|
+
}(scrolling.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
|
+
}(scrolling.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: scrolling.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: scrolling.CdkScrollable, decorators: [{ type: i0.Optional }] }
|
|
10256
10260
|
]; };
|
|
10257
10261
|
AnchorDirective.propDecorators = {
|
|
10258
10262
|
auiAnchor: [{ type: i0.Input }],
|
|
@@ -11997,7 +12001,7 @@
|
|
|
11997
12001
|
Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
|
|
11998
12002
|
get: function () {
|
|
11999
12003
|
var _c;
|
|
12000
|
-
return Object.assign({
|
|
12004
|
+
return Object.assign({ drawer: true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12001
12005
|
},
|
|
12002
12006
|
enumerable: false,
|
|
12003
12007
|
configurable: true
|
|
@@ -12037,7 +12041,7 @@
|
|
|
12037
12041
|
this.open();
|
|
12038
12042
|
}
|
|
12039
12043
|
else {
|
|
12040
|
-
this.
|
|
12044
|
+
this.closure();
|
|
12041
12045
|
}
|
|
12042
12046
|
}
|
|
12043
12047
|
};
|
|
@@ -12067,7 +12071,7 @@
|
|
|
12067
12071
|
_this.hideOnClickOutside &&
|
|
12068
12072
|
event.target instanceof Node &&
|
|
12069
12073
|
!((_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.
|
|
12074
|
+
_this.closure();
|
|
12071
12075
|
}
|
|
12072
12076
|
});
|
|
12073
12077
|
}
|
|
@@ -12116,7 +12120,7 @@
|
|
|
12116
12120
|
this.updateBodyOverflow();
|
|
12117
12121
|
this.cdr.markForCheck();
|
|
12118
12122
|
};
|
|
12119
|
-
DrawerComponent.prototype.
|
|
12123
|
+
DrawerComponent.prototype.closure = function (result) {
|
|
12120
12124
|
if (result === void 0) { result = null; }
|
|
12121
12125
|
this.visible = false;
|
|
12122
12126
|
this.close.next();
|
|
@@ -12133,7 +12137,7 @@
|
|
|
12133
12137
|
};
|
|
12134
12138
|
DrawerComponent.prototype.maskClick = function () {
|
|
12135
12139
|
if (this.maskClosable && this.mask) {
|
|
12136
|
-
this.
|
|
12140
|
+
this.closure();
|
|
12137
12141
|
}
|
|
12138
12142
|
};
|
|
12139
12143
|
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
@@ -12145,10 +12149,10 @@
|
|
|
12145
12149
|
DrawerComponent.decorators = [
|
|
12146
12150
|
{ type: i0.Component, args: [{
|
|
12147
12151
|
selector: 'aui-drawer',
|
|
12148
|
-
template: "<ng-template #drawerTemplate>\n <div\n
|
|
12152
|
+
template: "<ng-template #drawerTemplate>\n <div\n [class.drawer-mask-open]=\"visible\"\n class=\"drawer-mask\"\n (click)=\"maskClick()\"\n *ngIf=\"mask\"\n ></div>\n <div\n [style.marginTop.px]=\"offsetY\"\n [ngClass]=\"drawerClasses\"\n [class.drawer-open]=\"visible\"\n [ngStyle]=\"{\n transform: transform,\n width: width + 'px'\n }\"\n >\n <div\n class=\"drawer-content\"\n [style.height]=\"'calc(100% - ' + offsetY + 'px)'\"\n >\n <div class=\"drawer-body-wrapper\">\n <div class=\"drawer-header\">\n <div class=\"drawer-title\">\n <ng-container\n *ngIf=\"!isTemplateRef(title || titleTemplate); else elseTemplate\"\n >\n {{ title }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"title || titleTemplate\"\n [ngTemplateOutlet]=\"$any(title || titleTemplate)\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n <div class=\"drawer-close\" *ngIf=\"showClose\" (click)=\"closure()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"drawer-body\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container *ngIf=\"isTemplateRef(content || contentTemplate)\">\n <ng-container\n *ngTemplateOutlet=\"\n $any(content || contentTemplate);\n context: templateContext\n \"\n >\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"drawer-footer\" *ngIf=\"footer\">\n <ng-container\n *ngIf=\"!isTemplateRef(footer || footerTemplate); else elseTemplate\"\n >\n {{ footer }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"footer || titleTemplate\"\n [ngTemplateOutlet]=\"$any(footer || titleTemplate)\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
12149
12153
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12150
12154
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
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))}.
|
|
12155
|
+
styles: [".drawer-open .drawer-content{box-shadow:0 4px 16px 0 rgba(var(--aui-color-n-1),.2)}.drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;opacity:.4;background-color:rgb(var(--aui-color-n-0))}.drawer-mask-open{height:100%}.drawer{height:100%;position:fixed;top:0;right:0;z-index:9999;transition:transform .3s,opacity .3s,box-shaow .3s}.drawer-content{background-color:rgb(var(--aui-color-n-10));position:absolute;height:100%;right:0;width:100%}.drawer-title{flex:1}.drawer-header{margin:20px 20px 0;background:rgb(var(--aui-color-n-10));display:flex;font-size:20px;font-weight:500;padding-bottom:16px;justify-content:space-between;border-bottom:1px solid rgb(var(--aui-color-n-7))}.drawer-close{z-index:10;display:flex;align-items:center;font-size:16px;cursor:pointer;color:rgb(var(--aui-color-n-4));margin-left:16px}.drawer-body-wrapper{width:100%;height:100%;flex-direction:column;flex-wrap:nowrap;display:flex;position:relative;z-index:1;background-clip:padding-box;border:0}.drawer-body{margin:16px 20px;overflow:hidden;overflow-y:auto;font-size:14px;height:calc(100% - 100px)}.drawer-footer{margin:0 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-7))}"]
|
|
12152
12156
|
},] }
|
|
12153
12157
|
];
|
|
12154
12158
|
DrawerComponent.ctorParameters = function () { return [
|
|
@@ -12179,26 +12183,6 @@
|
|
|
12179
12183
|
footerTemplate: [{ type: i0.ContentChild, args: [DrawerFooterDirective, { read: i0.TemplateRef },] }]
|
|
12180
12184
|
};
|
|
12181
12185
|
|
|
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
|
-
|
|
12202
12186
|
var DrawerService = /** @class */ (function () {
|
|
12203
12187
|
function DrawerService(overlay) {
|
|
12204
12188
|
this.overlay = overlay;
|
|
@@ -12206,7 +12190,7 @@
|
|
|
12206
12190
|
}
|
|
12207
12191
|
DrawerService.prototype.open = function (options) {
|
|
12208
12192
|
var _a, _b, _c;
|
|
12209
|
-
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.
|
|
12193
|
+
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.closure();
|
|
12210
12194
|
this.createDrawer();
|
|
12211
12195
|
this.updateOptions(options);
|
|
12212
12196
|
return (_c = this.drawerRef) === null || _c === void 0 ? void 0 : _c.instance;
|
|
@@ -12244,6 +12228,27 @@
|
|
|
12244
12228
|
{ type: i1.Overlay }
|
|
12245
12229
|
]; };
|
|
12246
12230
|
|
|
12231
|
+
var COMMON = [
|
|
12232
|
+
DrawerComponent,
|
|
12233
|
+
DrawerHeaderDirective,
|
|
12234
|
+
DrawerContentDirective,
|
|
12235
|
+
DrawerFooterDirective,
|
|
12236
|
+
];
|
|
12237
|
+
var DrawerModule = /** @class */ (function () {
|
|
12238
|
+
function DrawerModule() {
|
|
12239
|
+
}
|
|
12240
|
+
return DrawerModule;
|
|
12241
|
+
}());
|
|
12242
|
+
DrawerModule.decorators = [
|
|
12243
|
+
{ type: i0.NgModule, args: [{
|
|
12244
|
+
imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
|
|
12245
|
+
declarations: COMMON,
|
|
12246
|
+
exports: COMMON,
|
|
12247
|
+
providers: [DrawerService],
|
|
12248
|
+
entryComponents: [DrawerComponent],
|
|
12249
|
+
},] }
|
|
12250
|
+
];
|
|
12251
|
+
|
|
12247
12252
|
var StepState = {
|
|
12248
12253
|
Default: 'default',
|
|
12249
12254
|
Done: 'done',
|