@alauda/ui 6.1.3-beta.8 → 6.1.3-beta.9
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 +151 -154
- 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 +2 -2
- package/drawer/component/drawer.component.d.ts +3 -3
- package/drawer/component/drawer.service.d.ts +1 -1
- package/esm2015/dialog/dialog.module.js +1 -3
- package/esm2015/dialog/dialog.module.ngfactory.js +7 -8
- package/esm2015/dialog/dialog.module.ngsummary.json +1 -1
- package/esm2015/dialog/dialog.service.js +6 -2
- package/esm2015/drawer/component/drawer-ref.js +1 -1
- package/esm2015/drawer/component/drawer-ref.ngsummary.json +1 -1
- package/esm2015/drawer/component/drawer.component.js +12 -10
- package/esm2015/drawer/component/drawer.component.ngfactory.js +6 -6
- package/esm2015/drawer/component/drawer.component.ngsummary.json +1 -1
- package/esm2015/drawer/component/drawer.component.scss.ngstyle.js +1 -1
- package/esm2015/drawer/component/drawer.service.js +2 -2
- package/esm2015/drawer/drawer.module.js +1 -3
- package/esm2015/drawer/drawer.module.ngfactory.js +6 -7
- package/esm2015/drawer/drawer.module.ngsummary.json +1 -1
- package/esm2015/input/input.module.ngfactory.js +1 -1
- package/esm2015/input/number-input/number-input.component.js +2 -2
- package/esm2015/input/number-input/number-input.component.ngfactory.js +1 -1
- package/esm2015/message/message.module.js +1 -3
- package/esm2015/message/message.module.ngfactory.js +6 -8
- package/esm2015/message/message.module.ngsummary.json +1 -1
- package/esm2015/message/message.service.js +6 -2
- package/esm2015/notification/notification.module.js +1 -3
- package/esm2015/notification/notification.module.ngfactory.js +6 -8
- package/esm2015/notification/notification.module.ngsummary.json +1 -1
- package/esm2015/notification/notification.service.js +6 -2
- package/esm2015/table/table-scroll.directive.js +4 -9
- 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 +128 -131
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/table/table-scroll.directive.d.ts +1 -3
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,77 +1068,6 @@
|
|
|
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
|
-
|
|
1142
1071
|
var CLASS_PREFIX = 'aui-table';
|
|
1143
1072
|
var SHADOW_CLASS = CLASS_PREFIX + "__scroll-shadow";
|
|
1144
1073
|
var HAS_SCROLL_CLASS = SHADOW_CLASS + "--has-scroll";
|
|
@@ -1161,9 +1090,8 @@
|
|
|
1161
1090
|
},] }
|
|
1162
1091
|
];
|
|
1163
1092
|
var TableScrollShadowDirective = /** @class */ (function () {
|
|
1164
|
-
function TableScrollShadowDirective(el
|
|
1093
|
+
function TableScrollShadowDirective(el) {
|
|
1165
1094
|
this.el = el;
|
|
1166
|
-
this.table = table;
|
|
1167
1095
|
this.destroy$$ = new rxjs.Subject();
|
|
1168
1096
|
this.SCROLL_BEFORE_END_CLASS = true;
|
|
1169
1097
|
this.SHADOW_CLASS = true;
|
|
@@ -1196,8 +1124,6 @@
|
|
|
1196
1124
|
var scrollTop = this.containerEl.scrollTop;
|
|
1197
1125
|
this.placeClassList(this.containerEl.classList, scrollTop > 0, HAS_TABLE_TOP_SHADOW);
|
|
1198
1126
|
this.placeClassList(this.containerEl.classList, scrollTop < scrollDis, HAS_TABLE_BOTTOM_SHADOW);
|
|
1199
|
-
// 兼容屏幕缩放是 sticky多列的样式问题
|
|
1200
|
-
this.table.updateStickyColumnStyles();
|
|
1201
1127
|
};
|
|
1202
1128
|
TableScrollShadowDirective.prototype.mutateHorizontalScroll = function () {
|
|
1203
1129
|
var scrollDis = this.containerEl.scrollWidth - this.containerEl.offsetWidth;
|
|
@@ -1220,14 +1146,84 @@
|
|
|
1220
1146
|
},] }
|
|
1221
1147
|
];
|
|
1222
1148
|
TableScrollShadowDirective.ctorParameters = function () { return [
|
|
1223
|
-
{ type: i0.ElementRef }
|
|
1224
|
-
{ type: TableComponent, decorators: [{ type: i0.Host }] }
|
|
1149
|
+
{ type: i0.ElementRef }
|
|
1225
1150
|
]; };
|
|
1226
1151
|
TableScrollShadowDirective.propDecorators = {
|
|
1227
1152
|
SCROLL_BEFORE_END_CLASS: [{ type: i0.HostBinding, args: ["class." + SCROLL_BEFORE_END_CLASS,] }],
|
|
1228
1153
|
SHADOW_CLASS: [{ type: i0.HostBinding, args: ["class." + SHADOW_CLASS,] }]
|
|
1229
1154
|
};
|
|
1230
1155
|
|
|
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
|
+
|
|
1231
1227
|
var TableModule = /** @class */ (function () {
|
|
1232
1228
|
function TableModule() {
|
|
1233
1229
|
}
|
|
@@ -2902,8 +2898,9 @@
|
|
|
2902
2898
|
}());
|
|
2903
2899
|
DialogService.DIALOG_OVERLAY_PANE_CLASS = 'aui-dialog-overlay-pane';
|
|
2904
2900
|
DialogService.DIALOG_BACKDROP_CLASS = 'aui-dialog-backdrop';
|
|
2901
|
+
DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2.ScrollDispatcher), i0.ɵɵinject(i0.NgZone)); }, token: DialogService, providedIn: "root" });
|
|
2905
2902
|
DialogService.decorators = [
|
|
2906
|
-
{ type: i0.Injectable }
|
|
2903
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2907
2904
|
];
|
|
2908
2905
|
DialogService.ctorParameters = function () { return [
|
|
2909
2906
|
{ type: i1.Overlay },
|
|
@@ -3053,7 +3050,6 @@
|
|
|
3053
3050
|
DialogCloseDirective,
|
|
3054
3051
|
],
|
|
3055
3052
|
entryComponents: [DialogComponent, ConfirmDialogComponent],
|
|
3056
|
-
providers: [DialogService],
|
|
3057
3053
|
},] }
|
|
3058
3054
|
];
|
|
3059
3055
|
|
|
@@ -4840,7 +4836,7 @@
|
|
|
4840
4836
|
NumberInputComponent.decorators = [
|
|
4841
4837
|
{ type: i0.Component, args: [{
|
|
4842
4838
|
selector: 'aui-number-input',
|
|
4843
|
-
template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocus: isFocus,\n isDisabled: disabled\n }\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n>\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('decrease')\"\n [disabled]=\"disabled || (value$ | async) <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($
|
|
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",
|
|
4844
4840
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4845
4841
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4846
4842
|
preserveWhitespaces: false,
|
|
@@ -7060,6 +7056,19 @@
|
|
|
7060
7056
|
{ type: i0.ChangeDetectorRef }
|
|
7061
7057
|
]; };
|
|
7062
7058
|
|
|
7059
|
+
var MessageModule = /** @class */ (function () {
|
|
7060
|
+
function MessageModule() {
|
|
7061
|
+
}
|
|
7062
|
+
return MessageModule;
|
|
7063
|
+
}());
|
|
7064
|
+
MessageModule.decorators = [
|
|
7065
|
+
{ type: i0.NgModule, args: [{
|
|
7066
|
+
imports: [common.CommonModule, i1.OverlayModule, IconModule],
|
|
7067
|
+
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7068
|
+
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7069
|
+
},] }
|
|
7070
|
+
];
|
|
7071
|
+
|
|
7063
7072
|
var BaseMessage = /** @class */ (function () {
|
|
7064
7073
|
function BaseMessage(overlay, injector, applicationRef, cfr, overlayPaneClassName, wrapperClass, componentClass, globalConfig) {
|
|
7065
7074
|
this.overlay = overlay;
|
|
@@ -7155,8 +7164,9 @@
|
|
|
7155
7164
|
}
|
|
7156
7165
|
return MessageService;
|
|
7157
7166
|
}(BaseMessage));
|
|
7167
|
+
MessageService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MessageService_Factory() { return new MessageService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(MESSAGE_CONFIG, 8)); }, token: MessageService, providedIn: "root" });
|
|
7158
7168
|
MessageService.decorators = [
|
|
7159
|
-
{ type: i0.Injectable }
|
|
7169
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7160
7170
|
];
|
|
7161
7171
|
MessageService.ctorParameters = function () { return [
|
|
7162
7172
|
{ type: i1.Overlay },
|
|
@@ -7166,20 +7176,6 @@
|
|
|
7166
7176
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MESSAGE_CONFIG,] }] }
|
|
7167
7177
|
]; };
|
|
7168
7178
|
|
|
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
|
-
|
|
7183
7179
|
var NotificationWrapperComponent = /** @class */ (function (_super) {
|
|
7184
7180
|
__extends(NotificationWrapperComponent, _super);
|
|
7185
7181
|
function NotificationWrapperComponent(elementRef) {
|
|
@@ -7308,6 +7304,19 @@
|
|
|
7308
7304
|
onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
|
|
7309
7305
|
};
|
|
7310
7306
|
|
|
7307
|
+
var NotificationModule = /** @class */ (function () {
|
|
7308
|
+
function NotificationModule() {
|
|
7309
|
+
}
|
|
7310
|
+
return NotificationModule;
|
|
7311
|
+
}());
|
|
7312
|
+
NotificationModule.decorators = [
|
|
7313
|
+
{ type: i0.NgModule, args: [{
|
|
7314
|
+
imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule, IconModule],
|
|
7315
|
+
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7316
|
+
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7317
|
+
},] }
|
|
7318
|
+
];
|
|
7319
|
+
|
|
7311
7320
|
var NOTIFICATION_CONFIG = new i0.InjectionToken('NOTIFICATION_CONFIG');
|
|
7312
7321
|
var NOTIFICATION_DEFAULT_CONFIG = {
|
|
7313
7322
|
duration: 6000,
|
|
@@ -7321,8 +7330,9 @@
|
|
|
7321
7330
|
}
|
|
7322
7331
|
return NotificationService;
|
|
7323
7332
|
}(BaseMessage));
|
|
7333
|
+
NotificationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(NOTIFICATION_CONFIG, 8)); }, token: NotificationService, providedIn: "root" });
|
|
7324
7334
|
NotificationService.decorators = [
|
|
7325
|
-
{ type: i0.Injectable }
|
|
7335
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7326
7336
|
];
|
|
7327
7337
|
NotificationService.ctorParameters = function () { return [
|
|
7328
7338
|
{ type: i1.Overlay },
|
|
@@ -7332,20 +7342,6 @@
|
|
|
7332
7342
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [NOTIFICATION_CONFIG,] }] }
|
|
7333
7343
|
]; };
|
|
7334
7344
|
|
|
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
|
-
|
|
7349
7345
|
var TabBodyComponent = /** @class */ (function () {
|
|
7350
7346
|
function TabBodyComponent() {
|
|
7351
7347
|
this.content$ = new rxjs.BehaviorSubject(null);
|
|
@@ -7943,7 +7939,7 @@
|
|
|
7943
7939
|
];
|
|
7944
7940
|
TabHeaderComponent.ctorParameters = function () { return [
|
|
7945
7941
|
{ type: i0.ChangeDetectorRef },
|
|
7946
|
-
{ type:
|
|
7942
|
+
{ type: i2.ViewportRuler }
|
|
7947
7943
|
]; };
|
|
7948
7944
|
TabHeaderComponent.propDecorators = {
|
|
7949
7945
|
type: [{ type: i0.Input }],
|
|
@@ -9935,7 +9931,7 @@
|
|
|
9935
9931
|
exportAs: 'viewPort',
|
|
9936
9932
|
providers: [
|
|
9937
9933
|
{
|
|
9938
|
-
provide:
|
|
9934
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9939
9935
|
useFactory: _tableVirtualScrollDirectiveStrategyFactory,
|
|
9940
9936
|
deps: [i0.forwardRef(function () { return FixedSizeTableVirtualScrollDirective; })],
|
|
9941
9937
|
},
|
|
@@ -9950,21 +9946,21 @@
|
|
|
9950
9946
|
table: [{ type: i0.ContentChild, args: [TableComponent, { static: false },] }]
|
|
9951
9947
|
};
|
|
9952
9948
|
|
|
9953
|
-
var ɵ0 =
|
|
9949
|
+
var ɵ0 = i2._fixedSizeVirtualScrollStrategyFactory;
|
|
9954
9950
|
var FixedSizeVirtualScrollDirective = /** @class */ (function (_super) {
|
|
9955
9951
|
__extends(FixedSizeVirtualScrollDirective, _super);
|
|
9956
9952
|
function FixedSizeVirtualScrollDirective() {
|
|
9957
9953
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9958
9954
|
}
|
|
9959
9955
|
return FixedSizeVirtualScrollDirective;
|
|
9960
|
-
}(
|
|
9956
|
+
}(i2.CdkFixedSizeVirtualScroll));
|
|
9961
9957
|
FixedSizeVirtualScrollDirective.decorators = [
|
|
9962
9958
|
{ type: i0.Directive, args: [{
|
|
9963
9959
|
// tslint:disable-next-line: directive-selector
|
|
9964
9960
|
selector: 'aui-virtual-scroll-viewport[itemSize]',
|
|
9965
9961
|
providers: [
|
|
9966
9962
|
{
|
|
9967
|
-
provide:
|
|
9963
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9968
9964
|
useFactory: ɵ0,
|
|
9969
9965
|
deps: [i0.forwardRef(function () { return FixedSizeVirtualScrollDirective; })],
|
|
9970
9966
|
},
|
|
@@ -10008,7 +10004,7 @@
|
|
|
10008
10004
|
configurable: true
|
|
10009
10005
|
});
|
|
10010
10006
|
return VirtualForOfDirective;
|
|
10011
|
-
}(
|
|
10007
|
+
}(i2.CdkVirtualForOf));
|
|
10012
10008
|
VirtualForOfDirective.decorators = [
|
|
10013
10009
|
{ type: i0.Directive, args: [{
|
|
10014
10010
|
selector: '[auiVirtualFor][auiVirtualForOf]',
|
|
@@ -10027,7 +10023,7 @@
|
|
|
10027
10023
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10028
10024
|
}
|
|
10029
10025
|
return VirtualScrollViewportComponent;
|
|
10030
|
-
}(
|
|
10026
|
+
}(i2.CdkVirtualScrollViewport));
|
|
10031
10027
|
VirtualScrollViewportComponent.decorators = [
|
|
10032
10028
|
{ type: i0.Component, args: [{
|
|
10033
10029
|
selector: 'aui-virtual-scroll-viewport',
|
|
@@ -10042,7 +10038,7 @@
|
|
|
10042
10038
|
preserveWhitespaces: false,
|
|
10043
10039
|
providers: [
|
|
10044
10040
|
{
|
|
10045
|
-
provide:
|
|
10041
|
+
provide: i2.CdkVirtualScrollViewport,
|
|
10046
10042
|
useExisting: VirtualScrollViewportComponent,
|
|
10047
10043
|
},
|
|
10048
10044
|
],
|
|
@@ -10256,7 +10252,7 @@
|
|
|
10256
10252
|
{ type: i0.ApplicationRef },
|
|
10257
10253
|
{ type: i0.Injector },
|
|
10258
10254
|
{ type: i0.ElementRef },
|
|
10259
|
-
{ type:
|
|
10255
|
+
{ type: i2.CdkScrollable, decorators: [{ type: i0.Optional }] }
|
|
10260
10256
|
]; };
|
|
10261
10257
|
AnchorDirective.propDecorators = {
|
|
10262
10258
|
auiAnchor: [{ type: i0.Input }],
|
|
@@ -11974,7 +11970,7 @@
|
|
|
11974
11970
|
_this.injector = injector;
|
|
11975
11971
|
_this.cdr = cdr;
|
|
11976
11972
|
_this.size = exports.DrawerSize.Medium;
|
|
11977
|
-
_this.offsetY =
|
|
11973
|
+
_this.offsetY = '0px';
|
|
11978
11974
|
_this.hideOnClickOutside = false;
|
|
11979
11975
|
_this.showClose = true;
|
|
11980
11976
|
_this._value = SIZE_MAPPER[exports.DrawerSize.Medium];
|
|
@@ -12001,7 +11997,7 @@
|
|
|
12001
11997
|
Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
|
|
12002
11998
|
get: function () {
|
|
12003
11999
|
var _c;
|
|
12004
|
-
return Object.assign({ drawer: true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12000
|
+
return Object.assign({ 'aui-drawer': true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12005
12001
|
},
|
|
12006
12002
|
enumerable: false,
|
|
12007
12003
|
configurable: true
|
|
@@ -12041,7 +12037,7 @@
|
|
|
12041
12037
|
this.open();
|
|
12042
12038
|
}
|
|
12043
12039
|
else {
|
|
12044
|
-
this.
|
|
12040
|
+
this.dispose();
|
|
12045
12041
|
}
|
|
12046
12042
|
}
|
|
12047
12043
|
};
|
|
@@ -12071,7 +12067,9 @@
|
|
|
12071
12067
|
_this.hideOnClickOutside &&
|
|
12072
12068
|
event.target instanceof Node &&
|
|
12073
12069
|
!((_b = (_a = _this.overlayRef.hostElement) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
|
|
12074
|
-
|
|
12070
|
+
event.stopPropagation();
|
|
12071
|
+
event.preventDefault();
|
|
12072
|
+
_this.dispose();
|
|
12075
12073
|
}
|
|
12076
12074
|
});
|
|
12077
12075
|
}
|
|
@@ -12120,10 +12118,10 @@
|
|
|
12120
12118
|
this.updateBodyOverflow();
|
|
12121
12119
|
this.cdr.markForCheck();
|
|
12122
12120
|
};
|
|
12123
|
-
DrawerComponent.prototype.
|
|
12121
|
+
DrawerComponent.prototype.dispose = function (result) {
|
|
12124
12122
|
if (result === void 0) { result = null; }
|
|
12125
12123
|
this.visible = false;
|
|
12126
|
-
this.close.
|
|
12124
|
+
this.close.emit();
|
|
12127
12125
|
this.afterClosed$.next(result);
|
|
12128
12126
|
this.afterClosed$.complete();
|
|
12129
12127
|
this.updateBodyOverflow();
|
|
@@ -12137,7 +12135,7 @@
|
|
|
12137
12135
|
};
|
|
12138
12136
|
DrawerComponent.prototype.maskClick = function () {
|
|
12139
12137
|
if (this.maskClosable && this.mask) {
|
|
12140
|
-
this.
|
|
12138
|
+
this.dispose();
|
|
12141
12139
|
}
|
|
12142
12140
|
};
|
|
12143
12141
|
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
@@ -12149,10 +12147,10 @@
|
|
|
12149
12147
|
DrawerComponent.decorators = [
|
|
12150
12148
|
{ type: i0.Component, args: [{
|
|
12151
12149
|
selector: 'aui-drawer',
|
|
12152
|
-
template: "<ng-template #drawerTemplate>\n <div\n
|
|
12150
|
+
template: "<ng-template #drawerTemplate>\n <div\n *ngIf=\"mask\"\n class=\"aui-drawer-mask\"\n [class.isOpen]=\"visible\"\n (click)=\"maskClick()\"\n ></div>\n <div\n [style.marginTop]=\"offsetY\"\n [ngClass]=\"drawerClasses\"\n [class.isOpen]=\"visible\"\n [ngStyle]=\"{\n transform: transform,\n width: width + 'px'\n }\"\n >\n <div class=\"aui-drawer__content\">\n <div class=\"aui-drawer__body-wrapper\">\n <div class=\"aui-drawer__header\">\n <div class=\"aui-drawer__title\">\n <ng-container\n *ngIf=\"!isTemplateRef(title || titleTemplate); else elseTemplate\"\n >\n {{ title }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"title || titleTemplate\"\n [ngTemplateOutlet]=\"title || titleTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n <div class=\"aui-drawer__close\" *ngIf=\"showClose\" (click)=\"dispose()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"aui-drawer__body\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container *ngIf=\"isTemplateRef(content || contentTemplate)\">\n <ng-container\n *ngTemplateOutlet=\"\n content || contentTemplate;\n context: templateContext\n \"\n >\n </ng-container>\n </ng-container>\n </div>\n\n <div *ngIf=\"footer || footerTemplate\" class=\"aui-drawer__footer\">\n <ng-container\n *ngIf=\"!isTemplateRef(footer || footerTemplate); else elseTemplate\"\n >\n {{ footer }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"footer || titleTemplate\"\n [ngTemplateOutlet]=\"footer || titleTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
12153
12151
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12154
12152
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12155
|
-
styles: [".
|
|
12153
|
+
styles: [".aui-drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;opacity:.4;background-color:rgb(var(--aui-color-n-0))}.aui-drawer-mask.isOpen{height:100%}.aui-drawer{position:fixed;top:0;bottom:0;right:0;z-index:9999;transition:transform .3s,opacity .3s,box-shaow .3s;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1))}.aui-drawer.isOpen .aui-drawer__content{box-shadow:0 4px 16px 0 rgba(var(--aui-color-n-1),.2)}.aui-drawer__content{background-color:rgb(var(--aui-color-n-10));position:absolute;height:100%;right:0;width:100%}.aui-drawer__header{margin:20px 20px 0;padding-bottom:16px;display:flex;justify-content:space-between;border-bottom:1px solid rgb(var(--aui-color-n-8))}.aui-drawer__title{flex:1;font-size:var(--aui-font-size-xxl);line-height:var(--aui-line-height-xxl);color:rgb(var(--aui-color-n-1));font-weight:var(--aui-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aui-drawer__close{z-index:10;margin-left:16px;display:flex;align-items:center;font-size:var(--aui-icon-size-m);color:rgb(var(--aui-color-n-4));cursor:pointer}.aui-drawer__close:hover{color:rgb(var(--aui-color-primary))}.aui-drawer__body-wrapper{width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;position:relative;z-index:1}.aui-drawer__body{margin:16px 20px;overflow:hidden;overflow-y:auto;height:100%}.aui-drawer__footer{margin:0 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-8))}"]
|
|
12156
12154
|
},] }
|
|
12157
12155
|
];
|
|
12158
12156
|
DrawerComponent.ctorParameters = function () { return [
|
|
@@ -12183,6 +12181,26 @@
|
|
|
12183
12181
|
footerTemplate: [{ type: i0.ContentChild, args: [DrawerFooterDirective, { read: i0.TemplateRef },] }]
|
|
12184
12182
|
};
|
|
12185
12183
|
|
|
12184
|
+
var COMMON = [
|
|
12185
|
+
DrawerComponent,
|
|
12186
|
+
DrawerHeaderDirective,
|
|
12187
|
+
DrawerContentDirective,
|
|
12188
|
+
DrawerFooterDirective,
|
|
12189
|
+
];
|
|
12190
|
+
var DrawerModule = /** @class */ (function () {
|
|
12191
|
+
function DrawerModule() {
|
|
12192
|
+
}
|
|
12193
|
+
return DrawerModule;
|
|
12194
|
+
}());
|
|
12195
|
+
DrawerModule.decorators = [
|
|
12196
|
+
{ type: i0.NgModule, args: [{
|
|
12197
|
+
imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
|
|
12198
|
+
declarations: COMMON,
|
|
12199
|
+
exports: COMMON,
|
|
12200
|
+
entryComponents: [DrawerComponent],
|
|
12201
|
+
},] }
|
|
12202
|
+
];
|
|
12203
|
+
|
|
12186
12204
|
var DrawerService = /** @class */ (function () {
|
|
12187
12205
|
function DrawerService(overlay) {
|
|
12188
12206
|
this.overlay = overlay;
|
|
@@ -12190,7 +12208,7 @@
|
|
|
12190
12208
|
}
|
|
12191
12209
|
DrawerService.prototype.open = function (options) {
|
|
12192
12210
|
var _a, _b, _c;
|
|
12193
|
-
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.
|
|
12211
|
+
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
12194
12212
|
this.createDrawer();
|
|
12195
12213
|
this.updateOptions(options);
|
|
12196
12214
|
return (_c = this.drawerRef) === null || _c === void 0 ? void 0 : _c.instance;
|
|
@@ -12228,27 +12246,6 @@
|
|
|
12228
12246
|
{ type: i1.Overlay }
|
|
12229
12247
|
]; };
|
|
12230
12248
|
|
|
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
|
-
|
|
12252
12249
|
var StepState = {
|
|
12253
12250
|
Default: 'default',
|
|
12254
12251
|
Done: 'done',
|