@alauda/ui 6.1.3-beta.1 → 6.1.3-beta.10
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 +155 -150
- 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 +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 +132 -127
- 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, bidi, forms, observers,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/table'), require('@angular/common'), require('@angular/common/http'), require('@angular/animations'), require('@angular/cdk/collections'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('clipboard-polyfill'), require('@angular/cdk/scrolling'), require('@angular/cdk/bidi'), require('@angular/forms'), require('@angular/cdk/observers'), require('@angular/cdk/accordion'), require('dayjs'), require('dayjs/plugin/customParseFormat'), require('dayjs/plugin/isBetween')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@alauda/ui', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/cdk/table', '@angular/common', '@angular/common/http', '@angular/animations', '@angular/cdk/collections', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/portal', 'clipboard-polyfill', '@angular/cdk/scrolling', '@angular/cdk/bidi', '@angular/forms', '@angular/cdk/observers', '@angular/cdk/accordion', 'dayjs', 'dayjs/plugin/customParseFormat', 'dayjs/plugin/isBetween'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.alauda = global.alauda || {}, global.alauda.ui = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.cdk.table, global.ng.common, global.ng.common.http, global.ng.animations, global.ng.cdk.collections, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.portal, global.clipboardPolyfill, global.ng.cdk.scrolling, global.ng.cdk.bidi, global.ng.forms, global.ng.cdk.observers, global.ng.cdk.accordion, global.dayjs, global.customParseFormat, global.isBetween));
|
|
5
|
+
}(this, (function (exports, i0, rxjs, operators, table, common, http, animations, collections, a11y, i1, portal, clipboardPolyfill, i2, bidi, forms, observers, accordion, dayjs, customParseFormat, isBetween) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1068,6 +1068,77 @@
|
|
|
1068
1068
|
hasPanel: [{ type: i0.HostBinding, args: ['class.hasPanel',] }]
|
|
1069
1069
|
};
|
|
1070
1070
|
|
|
1071
|
+
var TableComponent = /** @class */ (function (_super) {
|
|
1072
|
+
__extends(TableComponent, _super);
|
|
1073
|
+
function TableComponent() {
|
|
1074
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1075
|
+
}
|
|
1076
|
+
Object.defineProperty(TableComponent.prototype, "stickyCssClass", {
|
|
1077
|
+
// FIXME: workaround to override because it will break constructor if it is field, but why MatTable works?
|
|
1078
|
+
// @ts-expect-error
|
|
1079
|
+
get: function () {
|
|
1080
|
+
return 'aui-table-sticky';
|
|
1081
|
+
},
|
|
1082
|
+
set: function (_stickyCssClass) {
|
|
1083
|
+
//
|
|
1084
|
+
},
|
|
1085
|
+
enumerable: false,
|
|
1086
|
+
configurable: true
|
|
1087
|
+
});
|
|
1088
|
+
TableComponent.prototype.ngAfterContentInit = function () {
|
|
1089
|
+
this._createPlaceholder();
|
|
1090
|
+
};
|
|
1091
|
+
TableComponent.prototype._createPlaceholder = function () {
|
|
1092
|
+
var footerRow = this._placeholderDef;
|
|
1093
|
+
if (!this._placeholderDef) {
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
var container = this._placeholderOutlet.viewContainer;
|
|
1097
|
+
container.createEmbeddedView(footerRow.templateRef);
|
|
1098
|
+
};
|
|
1099
|
+
TableComponent.prototype._clearPlaceholder = function () {
|
|
1100
|
+
this._placeholderOutlet.viewContainer.clear();
|
|
1101
|
+
};
|
|
1102
|
+
TableComponent.prototype.ngOnDestroy = function () {
|
|
1103
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1104
|
+
this._clearPlaceholder();
|
|
1105
|
+
};
|
|
1106
|
+
return TableComponent;
|
|
1107
|
+
}(table.CdkTable));
|
|
1108
|
+
TableComponent.decorators = [
|
|
1109
|
+
{ type: i0.Component, args: [{
|
|
1110
|
+
selector: 'aui-table',
|
|
1111
|
+
exportAs: 'auiTable',
|
|
1112
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1113
|
+
template: "\n " + table.CDK_TABLE_TEMPLATE + "\n <ng-container auiTablePlaceholderOutlet></ng-container>\n ",
|
|
1114
|
+
host: {
|
|
1115
|
+
class: 'aui-table',
|
|
1116
|
+
},
|
|
1117
|
+
preserveWhitespaces: false,
|
|
1118
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1119
|
+
providers: [
|
|
1120
|
+
{
|
|
1121
|
+
provide: table.CDK_TABLE,
|
|
1122
|
+
useExisting: TableComponent,
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
provide: collections._VIEW_REPEATER_STRATEGY,
|
|
1126
|
+
useClass: collections._DisposeViewRepeaterStrategy,
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
provide: table._COALESCED_STYLE_SCHEDULER,
|
|
1130
|
+
useClass: table._CoalescedStyleScheduler,
|
|
1131
|
+
},
|
|
1132
|
+
],
|
|
1133
|
+
styles: [".aui-table{display:block;padding:0 12px 12px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1));background-color:rgb(var(--aui-color-n-9));border-radius:var(--aui-border-radius-l);overflow:auto}.aui-table::-webkit-scrollbar{width:4px;height:4px}.aui-table::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__header-row,.aui-table__row{display:flex;align-items:center}.aui-table__header-row.hasPanel,.aui-table__row.hasPanel{flex-wrap:wrap}.aui-table__header-row+.aui-table__row{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row{position:relative;border:solid rgb(var(--aui-color-n-8));border-width:1px 1px 0;background-color:rgb(var(--aui-color-n-10));padding:0 9px;min-height:58px;box-sizing:content-box}.aui-table__row:first-child{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row:last-child{border-bottom-width:1px;min-height:58px;border-bottom-left-radius:var(--aui-border-radius-l);border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__row.isDisabled:before{content:\"\";z-index:2;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgb(var(--aui-color-n-10));opacity:.7;cursor:not-allowed}.aui-table__header-row{background-color:rgb(var(--aui-color-n-9));padding:0 10px}.aui-table__cell,.aui-table__header-cell{flex:1}.aui-table__cell{padding:15px 10px;background-color:rgb(var(--aui-color-n-10));overflow:hidden;word-wrap:break-word}.aui-table__header-cell{padding:12px 10px;font-weight:var(--aui-font-weight-bold);background-color:rgb(var(--aui-color-n-9));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aui-table__column-expand-button{display:flex;align-items:center;max-width:calc(10px * 2 + var(--aui-icon-size-m))}.aui-table__column-expand-button.aui-table__cell{height:58px}.aui-table__column-expand-button .aui-expand-button{display:inline-flex;justify-content:center;align-items:center;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m);font-size:var(--aui-icon-size-m);line-height:var(--aui-icon-size-m);color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6));border-radius:50%;border:none;cursor:pointer;transition:transform .1s ease-in-out}.aui-table__column-expand-button .aui-expand-button aui-icon{display:block;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m)}.aui-table__column-expand-button .aui-expand-button:hover{background-color:rgb(var(--aui-color-p-7))}.aui-table__column-expand-button .aui-expand-button:active{background-color:rgb(var(--aui-color-p-5))}.aui-table__column-expand-button .aui-expand-button.isExpanded{transform:rotate(90deg);color:rgb(var(--aui-color-n-10));background-color:rgb(var(--aui-color-primary))}.aui-table__column-expand-button .aui-expand-button.isExpanded:hover{background-color:rgb(var(--aui-color-p-1))}.aui-table__column-expand-button .aui-expand-button.isExpanded:active{background-color:rgb(var(--aui-color-p-0))}.aui-table__column-expand-button .aui-expand-button.isExpanded[disabled],.aui-table__column-expand-button .aui-expand-button[disabled]{background-color:rgb(var(--aui-color-n-8));color:rgb(var(--aui-color-n-6));cursor:not-allowed}.aui-table__column-expand-panel{margin-top:-6px}.aui-table__column-expand-panel.aui-table__header-cell{display:none}.aui-table__column-expand-panel.aui-table__cell{width:100%;flex-shrink:0;flex-basis:100%;padding:0 10px;overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel{border-radius:var(--aui-border-radius-l);overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel-content.hasBackground{padding:16px;background-color:rgb(var(--aui-color-n-9))}", ".aui-table__scroll-wrapper{background-color:rgb(var(--aui-color-n-9));padding:0 12px 12px;border-radius:var(--aui-border-radius-l)}.aui-table__scroll-wrapper::-webkit-scrollbar{width:4px;height:4px}.aui-table__scroll-wrapper::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__scroll-wrapper .aui-table{padding:0}.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableBottomShadow:after,.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableTopShadow:before{transform:none;width:100%;left:0}.aui-table__scroll-shadow.hasTableTopShadow:before{transform:translate3d(-12px,0,0);top:28px;box-shadow:0 10px 10px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow.hasTableBottomShadow:after,.aui-table__scroll-shadow.hasTableTopShadow:before{content:\"\";position:-webkit-sticky;position:sticky;display:block;width:calc(100% + 24px);height:16px;margin-top:-16px;z-index:99}.aui-table__scroll-shadow.hasTableBottomShadow:after{transform:translate3d(-12px,12px,0);bottom:0;box-shadow:0 -10px 10px -4px rgba(var(--aui-color-n-1),.16) inset}.aui-table__scroll-shadow .aui-table__header-row{margin:0;padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:first-of-type{padding-left:20px}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:last-of-type{padding-right:20px}.aui-table__scroll-shadow .aui-table__header-row+.aui-table__row .aui-table__cell:first-of-type{border-top-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__header-row+.aui-table__row .aui-table__cell:last-of-type{border-top-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row{border:none;padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__row .aui-table__cell{border-color:rgb(var(--aui-color-n-8));border-style:solid;border-width:1px 0}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:first-of-type{border-left-width:1px;padding-left:19px}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:last-of-type{border-right-width:1px;padding-right:19px}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:first-of-type{border-bottom-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:last-of-type{border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:not(.aui-table__scroll-shadow .aui-table__row:last-child) .aui-table__cell{border-bottom-width:0}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:after,.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:after{position:absolute;top:0;bottom:-1px;width:20px;transition:box-shadow .3s;content:\"\";pointer-events:none}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:before,.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:before{position:absolute;top:0;bottom:-1px;content:\"\";background:linear-gradient(180deg,rgb(var(--aui-color-n-7)),rgb(var(--aui-color-n-7)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left{padding-right:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:after{right:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:before{right:10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right{padding-left:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:after{left:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:before{left:10px}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):after{box-shadow:inset 8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):after{box-shadow:inset -8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}"]
|
|
1134
|
+
},] }
|
|
1135
|
+
];
|
|
1136
|
+
TableComponent.propDecorators = {
|
|
1137
|
+
enableScrollWrapper: [{ type: i0.Input }],
|
|
1138
|
+
_placeholderOutlet: [{ type: i0.ViewChild, args: [TablePlaceholderOutlet, { static: true },] }],
|
|
1139
|
+
_placeholderDef: [{ type: i0.ContentChild, args: [TablePlaceholderDefDirective, { static: true },] }]
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1071
1142
|
var CLASS_PREFIX = 'aui-table';
|
|
1072
1143
|
var SHADOW_CLASS = CLASS_PREFIX + "__scroll-shadow";
|
|
1073
1144
|
var HAS_SCROLL_CLASS = SHADOW_CLASS + "--has-scroll";
|
|
@@ -1090,8 +1161,9 @@
|
|
|
1090
1161
|
},] }
|
|
1091
1162
|
];
|
|
1092
1163
|
var TableScrollShadowDirective = /** @class */ (function () {
|
|
1093
|
-
function TableScrollShadowDirective(el) {
|
|
1164
|
+
function TableScrollShadowDirective(el, table) {
|
|
1094
1165
|
this.el = el;
|
|
1166
|
+
this.table = table;
|
|
1095
1167
|
this.destroy$$ = new rxjs.Subject();
|
|
1096
1168
|
this.SCROLL_BEFORE_END_CLASS = true;
|
|
1097
1169
|
this.SHADOW_CLASS = true;
|
|
@@ -1124,6 +1196,8 @@
|
|
|
1124
1196
|
var scrollTop = this.containerEl.scrollTop;
|
|
1125
1197
|
this.placeClassList(this.containerEl.classList, scrollTop > 0, HAS_TABLE_TOP_SHADOW);
|
|
1126
1198
|
this.placeClassList(this.containerEl.classList, scrollTop < scrollDis, HAS_TABLE_BOTTOM_SHADOW);
|
|
1199
|
+
// 兼容屏幕缩放是 sticky多列的样式问题
|
|
1200
|
+
this.table.updateStickyColumnStyles();
|
|
1127
1201
|
};
|
|
1128
1202
|
TableScrollShadowDirective.prototype.mutateHorizontalScroll = function () {
|
|
1129
1203
|
var scrollDis = this.containerEl.scrollWidth - this.containerEl.offsetWidth;
|
|
@@ -1146,84 +1220,14 @@
|
|
|
1146
1220
|
},] }
|
|
1147
1221
|
];
|
|
1148
1222
|
TableScrollShadowDirective.ctorParameters = function () { return [
|
|
1149
|
-
{ type: i0.ElementRef }
|
|
1223
|
+
{ type: i0.ElementRef },
|
|
1224
|
+
{ type: TableComponent, decorators: [{ type: i0.Host }] }
|
|
1150
1225
|
]; };
|
|
1151
1226
|
TableScrollShadowDirective.propDecorators = {
|
|
1152
1227
|
SCROLL_BEFORE_END_CLASS: [{ type: i0.HostBinding, args: ["class." + SCROLL_BEFORE_END_CLASS,] }],
|
|
1153
1228
|
SHADOW_CLASS: [{ type: i0.HostBinding, args: ["class." + SHADOW_CLASS,] }]
|
|
1154
1229
|
};
|
|
1155
1230
|
|
|
1156
|
-
var TableComponent = /** @class */ (function (_super) {
|
|
1157
|
-
__extends(TableComponent, _super);
|
|
1158
|
-
function TableComponent() {
|
|
1159
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1160
|
-
}
|
|
1161
|
-
Object.defineProperty(TableComponent.prototype, "stickyCssClass", {
|
|
1162
|
-
// FIXME: workaround to override because it will break constructor if it is field, but why MatTable works?
|
|
1163
|
-
// @ts-expect-error
|
|
1164
|
-
get: function () {
|
|
1165
|
-
return 'aui-table-sticky';
|
|
1166
|
-
},
|
|
1167
|
-
set: function (_stickyCssClass) {
|
|
1168
|
-
//
|
|
1169
|
-
},
|
|
1170
|
-
enumerable: false,
|
|
1171
|
-
configurable: true
|
|
1172
|
-
});
|
|
1173
|
-
TableComponent.prototype.ngAfterContentInit = function () {
|
|
1174
|
-
this._createPlaceholder();
|
|
1175
|
-
};
|
|
1176
|
-
TableComponent.prototype._createPlaceholder = function () {
|
|
1177
|
-
var footerRow = this._placeholderDef;
|
|
1178
|
-
if (!this._placeholderDef) {
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
var container = this._placeholderOutlet.viewContainer;
|
|
1182
|
-
container.createEmbeddedView(footerRow.templateRef);
|
|
1183
|
-
};
|
|
1184
|
-
TableComponent.prototype._clearPlaceholder = function () {
|
|
1185
|
-
this._placeholderOutlet.viewContainer.clear();
|
|
1186
|
-
};
|
|
1187
|
-
TableComponent.prototype.ngOnDestroy = function () {
|
|
1188
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
1189
|
-
this._clearPlaceholder();
|
|
1190
|
-
};
|
|
1191
|
-
return TableComponent;
|
|
1192
|
-
}(table.CdkTable));
|
|
1193
|
-
TableComponent.decorators = [
|
|
1194
|
-
{ type: i0.Component, args: [{
|
|
1195
|
-
selector: 'aui-table',
|
|
1196
|
-
exportAs: 'auiTable',
|
|
1197
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1198
|
-
template: "\n " + table.CDK_TABLE_TEMPLATE + "\n <ng-container auiTablePlaceholderOutlet></ng-container>\n ",
|
|
1199
|
-
host: {
|
|
1200
|
-
class: 'aui-table',
|
|
1201
|
-
},
|
|
1202
|
-
preserveWhitespaces: false,
|
|
1203
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1204
|
-
providers: [
|
|
1205
|
-
{
|
|
1206
|
-
provide: table.CDK_TABLE,
|
|
1207
|
-
useExisting: TableComponent,
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
provide: collections._VIEW_REPEATER_STRATEGY,
|
|
1211
|
-
useClass: collections._DisposeViewRepeaterStrategy,
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
provide: table._COALESCED_STYLE_SCHEDULER,
|
|
1215
|
-
useClass: table._CoalescedStyleScheduler,
|
|
1216
|
-
},
|
|
1217
|
-
],
|
|
1218
|
-
styles: [".aui-table{display:block;padding:0 12px 12px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1));background-color:rgb(var(--aui-color-n-9));border-radius:var(--aui-border-radius-l);overflow:auto}.aui-table::-webkit-scrollbar{width:4px;height:4px}.aui-table::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__header-row,.aui-table__row{display:flex;align-items:center}.aui-table__header-row.hasPanel,.aui-table__row.hasPanel{flex-wrap:wrap}.aui-table__header-row+.aui-table__row{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row{position:relative;border:solid rgb(var(--aui-color-n-8));border-width:1px 1px 0;background-color:rgb(var(--aui-color-n-10));padding:0 10px;min-height:58px;box-sizing:content-box}.aui-table__row:first-child{border-top-left-radius:var(--aui-border-radius-l);border-top-right-radius:var(--aui-border-radius-l)}.aui-table__row:last-child{border-bottom-width:1px;min-height:58px;border-bottom-left-radius:var(--aui-border-radius-l);border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__row.isDisabled:before{content:\"\";z-index:2;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgb(var(--aui-color-n-10));opacity:.7;cursor:not-allowed}.aui-table__header-row{background-color:rgb(var(--aui-color-n-9));padding:0 10px}.aui-table__cell,.aui-table__header-cell{flex:1}.aui-table__cell{padding:15px 10px;background-color:rgb(var(--aui-color-n-10));overflow:hidden;word-wrap:break-word}.aui-table__header-cell{padding:12px 10px;font-weight:var(--aui-font-weight-bold);background-color:rgb(var(--aui-color-n-9));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aui-table__column-expand-button{display:flex;align-items:center;max-width:calc(10px * 2 + var(--aui-icon-size-m))}.aui-table__column-expand-button.aui-table__cell{height:58px}.aui-table__column-expand-button .aui-expand-button{display:inline-flex;justify-content:center;align-items:center;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m);font-size:var(--aui-icon-size-m);line-height:var(--aui-icon-size-m);color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6));border-radius:50%;border:none;cursor:pointer;transition:transform .1s ease-in-out}.aui-table__column-expand-button .aui-expand-button aui-icon{display:block;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m)}.aui-table__column-expand-button .aui-expand-button:hover{background-color:rgb(var(--aui-color-p-7))}.aui-table__column-expand-button .aui-expand-button:active{background-color:rgb(var(--aui-color-p-5))}.aui-table__column-expand-button .aui-expand-button.isExpanded{transform:rotate(90deg);color:rgb(var(--aui-color-n-10));background-color:rgb(var(--aui-color-primary))}.aui-table__column-expand-button .aui-expand-button.isExpanded:hover{background-color:rgb(var(--aui-color-p-1))}.aui-table__column-expand-button .aui-expand-button.isExpanded:active{background-color:rgb(var(--aui-color-p-0))}.aui-table__column-expand-button .aui-expand-button.isExpanded[disabled],.aui-table__column-expand-button .aui-expand-button[disabled]{background-color:rgb(var(--aui-color-n-8));color:rgb(var(--aui-color-n-6));cursor:not-allowed}.aui-table__column-expand-panel{margin-top:-6px}.aui-table__column-expand-panel.aui-table__header-cell{display:none}.aui-table__column-expand-panel.aui-table__cell{width:100%;flex-shrink:0;flex-basis:100%;padding:0 10px;overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel{border-radius:var(--aui-border-radius-l);overflow:hidden}.aui-table__column-expand-panel.aui-table__cell .aui-table__cell-expand-panel-content.hasBackground{padding:16px;background-color:rgb(var(--aui-color-n-9))}", ".aui-table__scroll-wrapper{background-color:rgb(var(--aui-color-n-9));padding:0 12px 12px;border-radius:var(--aui-border-radius-l)}.aui-table__scroll-wrapper::-webkit-scrollbar{width:4px;height:4px}.aui-table__scroll-wrapper::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3)}.aui-table__scroll-wrapper .aui-table{padding:0}.aui-table__scroll-wrapper .aui-table__header-row.aui-table-sticky{margin:0 -12px;padding:0}.aui-table__scroll-wrapper .aui-table.hasTableTopShadow:before{content:\"\";position:-webkit-sticky;position:sticky;display:block;width:calc(100% + 24px);height:16px;margin-top:-16px;transform:translate3d(-12px,0,0);z-index:99;top:28px;box-shadow:0 10px 10px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-wrapper .aui-table.hasTableBottomShadow:after{content:\"\";position:-webkit-sticky;position:sticky;display:block;width:calc(100% + 24px);height:16px;transform:translate3d(-12px,12px,0);z-index:99;bottom:0;margin-top:-16px;box-shadow:0 -10px 10px -4px rgba(var(--aui-color-n-1),.16) inset}.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableBottomShadow:after,.aui-table__scroll-wrapper .aui-table__scroll-shadow.hasTableTopShadow:before{transform:none;width:100%;left:0}.aui-table__scroll-shadow .aui-table__header-row.aui-table-sticky{margin:0}.aui-table__scroll-shadow .aui-table__row{border:none;padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__row .aui-table__cell{border-color:rgb(var(--aui-color-n-8));border-style:solid;border-width:1px 0}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:first-of-type{border-left-width:1px;padding-left:20px}.aui-table__scroll-shadow .aui-table__row .aui-table__cell:last-of-type{border-right-width:1px;padding-right:20px}.aui-table__scroll-shadow .aui-table__row:first-child:not(.aui-table__header-row) .aui-table__cell:first-of-type{border-top-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:first-child:not(.aui-table__header-row) .aui-table__cell:last-of-type{border-top-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:first-of-type{border-bottom-left-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:last-child .aui-table__cell:last-of-type{border-bottom-right-radius:var(--aui-border-radius-l)}.aui-table__scroll-shadow .aui-table__row:not(.aui-table__scroll-shadow .aui-table__row:last-child) .aui-table__cell{border-bottom-width:0}.aui-table__scroll-shadow .aui-table__header-row{padding:0;align-items:stretch}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:first-of-type{padding-left:20px}.aui-table__scroll-shadow .aui-table__header-row .aui-table__header-cell:last-of-type{padding-right:20px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky:not(.aui-table__header-row):after{position:absolute;top:0;bottom:-1px;width:20px;transition:box-shadow .3s;content:\"\";pointer-events:none}.aui-table__scroll-shadow--has-scroll .aui-table-sticky:not(.aui-table__header-row):before{position:absolute;top:0;bottom:-1px;content:\"\";background:linear-gradient(180deg,rgb(var(--aui-color-n-7)),rgb(var(--aui-color-n-7)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left{padding-right:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:after{right:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-left:before{right:10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right{padding-left:30px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:after{left:-10px}.aui-table__scroll-shadow--has-scroll .aui-table-sticky-border-elem-right:before{left:10px}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):after{box-shadow:inset 8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--scrolling .aui-table-sticky-border-elem-left:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):after{box-shadow:inset -8px 0 4px -4px rgba(var(--aui-color-n-1),.16)}.aui-table__scroll-shadow--before-end .aui-table-sticky-border-elem-right:not(.aui-table__header-row):before{background:linear-gradient(180deg,rgb(var(--aui-color-primary)),rgb(var(--aui-color-primary)) 8px,transparent 0,transparent);width:1px;background-size:100% 14px;height:100%}"]
|
|
1219
|
-
},] }
|
|
1220
|
-
];
|
|
1221
|
-
TableComponent.propDecorators = {
|
|
1222
|
-
enableScrollWrapper: [{ type: i0.Input }],
|
|
1223
|
-
_placeholderOutlet: [{ type: i0.ViewChild, args: [TablePlaceholderOutlet, { static: true },] }],
|
|
1224
|
-
_placeholderDef: [{ type: i0.ContentChild, args: [TablePlaceholderDefDirective, { static: true },] }]
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
1231
|
var TableModule = /** @class */ (function () {
|
|
1228
1232
|
function TableModule() {
|
|
1229
1233
|
}
|
|
@@ -2898,8 +2902,9 @@
|
|
|
2898
2902
|
}());
|
|
2899
2903
|
DialogService.DIALOG_OVERLAY_PANE_CLASS = 'aui-dialog-overlay-pane';
|
|
2900
2904
|
DialogService.DIALOG_BACKDROP_CLASS = 'aui-dialog-backdrop';
|
|
2905
|
+
DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2.ScrollDispatcher), i0.ɵɵinject(i0.NgZone)); }, token: DialogService, providedIn: "root" });
|
|
2901
2906
|
DialogService.decorators = [
|
|
2902
|
-
{ type: i0.Injectable }
|
|
2907
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2903
2908
|
];
|
|
2904
2909
|
DialogService.ctorParameters = function () { return [
|
|
2905
2910
|
{ type: i1.Overlay },
|
|
@@ -3049,7 +3054,6 @@
|
|
|
3049
3054
|
DialogCloseDirective,
|
|
3050
3055
|
],
|
|
3051
3056
|
entryComponents: [DialogComponent, ConfirmDialogComponent],
|
|
3052
|
-
providers: [DialogService],
|
|
3053
3057
|
},] }
|
|
3054
3058
|
];
|
|
3055
3059
|
|
|
@@ -4836,7 +4840,7 @@
|
|
|
4836
4840
|
NumberInputComponent.decorators = [
|
|
4837
4841
|
{ type: i0.Component, args: [{
|
|
4838
4842
|
selector: 'aui-number-input',
|
|
4839
|
-
template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocus: isFocus,\n isDisabled: disabled\n }\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n>\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('decrease')\"\n [disabled]=\"disabled || (value$ | async) <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($
|
|
4843
|
+
template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocus: isFocus,\n isDisabled: disabled\n }\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n>\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('decrease')\"\n [disabled]=\"disabled || (value$ | async) <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($event.target.value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n />\n <button\n *ngIf=\"controls\"\n aui-button\n type=\"button\"\n [ngClass]=\"bem.element('increase')\"\n [disabled]=\"disabled || (value$ | async) >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n</div>\n",
|
|
4840
4844
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4841
4845
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4842
4846
|
preserveWhitespaces: false,
|
|
@@ -7056,6 +7060,19 @@
|
|
|
7056
7060
|
{ type: i0.ChangeDetectorRef }
|
|
7057
7061
|
]; };
|
|
7058
7062
|
|
|
7063
|
+
var MessageModule = /** @class */ (function () {
|
|
7064
|
+
function MessageModule() {
|
|
7065
|
+
}
|
|
7066
|
+
return MessageModule;
|
|
7067
|
+
}());
|
|
7068
|
+
MessageModule.decorators = [
|
|
7069
|
+
{ type: i0.NgModule, args: [{
|
|
7070
|
+
imports: [common.CommonModule, i1.OverlayModule, IconModule],
|
|
7071
|
+
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7072
|
+
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7073
|
+
},] }
|
|
7074
|
+
];
|
|
7075
|
+
|
|
7059
7076
|
var BaseMessage = /** @class */ (function () {
|
|
7060
7077
|
function BaseMessage(overlay, injector, applicationRef, cfr, overlayPaneClassName, wrapperClass, componentClass, globalConfig) {
|
|
7061
7078
|
this.overlay = overlay;
|
|
@@ -7151,8 +7168,9 @@
|
|
|
7151
7168
|
}
|
|
7152
7169
|
return MessageService;
|
|
7153
7170
|
}(BaseMessage));
|
|
7171
|
+
MessageService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MessageService_Factory() { return new MessageService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(MESSAGE_CONFIG, 8)); }, token: MessageService, providedIn: "root" });
|
|
7154
7172
|
MessageService.decorators = [
|
|
7155
|
-
{ type: i0.Injectable }
|
|
7173
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7156
7174
|
];
|
|
7157
7175
|
MessageService.ctorParameters = function () { return [
|
|
7158
7176
|
{ type: i1.Overlay },
|
|
@@ -7162,20 +7180,6 @@
|
|
|
7162
7180
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MESSAGE_CONFIG,] }] }
|
|
7163
7181
|
]; };
|
|
7164
7182
|
|
|
7165
|
-
var MessageModule = /** @class */ (function () {
|
|
7166
|
-
function MessageModule() {
|
|
7167
|
-
}
|
|
7168
|
-
return MessageModule;
|
|
7169
|
-
}());
|
|
7170
|
-
MessageModule.decorators = [
|
|
7171
|
-
{ type: i0.NgModule, args: [{
|
|
7172
|
-
imports: [common.CommonModule, i1.OverlayModule, IconModule],
|
|
7173
|
-
declarations: [MessageWrapperComponent, MessageComponent],
|
|
7174
|
-
entryComponents: [MessageWrapperComponent, MessageComponent],
|
|
7175
|
-
providers: [MessageService],
|
|
7176
|
-
},] }
|
|
7177
|
-
];
|
|
7178
|
-
|
|
7179
7183
|
var NotificationWrapperComponent = /** @class */ (function (_super) {
|
|
7180
7184
|
__extends(NotificationWrapperComponent, _super);
|
|
7181
7185
|
function NotificationWrapperComponent(elementRef) {
|
|
@@ -7304,6 +7308,19 @@
|
|
|
7304
7308
|
onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
|
|
7305
7309
|
};
|
|
7306
7310
|
|
|
7311
|
+
var NotificationModule = /** @class */ (function () {
|
|
7312
|
+
function NotificationModule() {
|
|
7313
|
+
}
|
|
7314
|
+
return NotificationModule;
|
|
7315
|
+
}());
|
|
7316
|
+
NotificationModule.decorators = [
|
|
7317
|
+
{ type: i0.NgModule, args: [{
|
|
7318
|
+
imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule, IconModule],
|
|
7319
|
+
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7320
|
+
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7321
|
+
},] }
|
|
7322
|
+
];
|
|
7323
|
+
|
|
7307
7324
|
var NOTIFICATION_CONFIG = new i0.InjectionToken('NOTIFICATION_CONFIG');
|
|
7308
7325
|
var NOTIFICATION_DEFAULT_CONFIG = {
|
|
7309
7326
|
duration: 6000,
|
|
@@ -7317,8 +7334,9 @@
|
|
|
7317
7334
|
}
|
|
7318
7335
|
return NotificationService;
|
|
7319
7336
|
}(BaseMessage));
|
|
7337
|
+
NotificationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(NOTIFICATION_CONFIG, 8)); }, token: NotificationService, providedIn: "root" });
|
|
7320
7338
|
NotificationService.decorators = [
|
|
7321
|
-
{ type: i0.Injectable }
|
|
7339
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7322
7340
|
];
|
|
7323
7341
|
NotificationService.ctorParameters = function () { return [
|
|
7324
7342
|
{ type: i1.Overlay },
|
|
@@ -7328,20 +7346,6 @@
|
|
|
7328
7346
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [NOTIFICATION_CONFIG,] }] }
|
|
7329
7347
|
]; };
|
|
7330
7348
|
|
|
7331
|
-
var NotificationModule = /** @class */ (function () {
|
|
7332
|
-
function NotificationModule() {
|
|
7333
|
-
}
|
|
7334
|
-
return NotificationModule;
|
|
7335
|
-
}());
|
|
7336
|
-
NotificationModule.decorators = [
|
|
7337
|
-
{ type: i0.NgModule, args: [{
|
|
7338
|
-
imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule, IconModule],
|
|
7339
|
-
declarations: [NotificationWrapperComponent, NotificationComponent],
|
|
7340
|
-
entryComponents: [NotificationWrapperComponent, NotificationComponent],
|
|
7341
|
-
providers: [NotificationService],
|
|
7342
|
-
},] }
|
|
7343
|
-
];
|
|
7344
|
-
|
|
7345
7349
|
var TabBodyComponent = /** @class */ (function () {
|
|
7346
7350
|
function TabBodyComponent() {
|
|
7347
7351
|
this.content$ = new rxjs.BehaviorSubject(null);
|
|
@@ -7939,7 +7943,7 @@
|
|
|
7939
7943
|
];
|
|
7940
7944
|
TabHeaderComponent.ctorParameters = function () { return [
|
|
7941
7945
|
{ type: i0.ChangeDetectorRef },
|
|
7942
|
-
{ type:
|
|
7946
|
+
{ type: i2.ViewportRuler }
|
|
7943
7947
|
]; };
|
|
7944
7948
|
TabHeaderComponent.propDecorators = {
|
|
7945
7949
|
type: [{ type: i0.Input }],
|
|
@@ -9931,7 +9935,7 @@
|
|
|
9931
9935
|
exportAs: 'viewPort',
|
|
9932
9936
|
providers: [
|
|
9933
9937
|
{
|
|
9934
|
-
provide:
|
|
9938
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9935
9939
|
useFactory: _tableVirtualScrollDirectiveStrategyFactory,
|
|
9936
9940
|
deps: [i0.forwardRef(function () { return FixedSizeTableVirtualScrollDirective; })],
|
|
9937
9941
|
},
|
|
@@ -9946,21 +9950,21 @@
|
|
|
9946
9950
|
table: [{ type: i0.ContentChild, args: [TableComponent, { static: false },] }]
|
|
9947
9951
|
};
|
|
9948
9952
|
|
|
9949
|
-
var ɵ0 =
|
|
9953
|
+
var ɵ0 = i2._fixedSizeVirtualScrollStrategyFactory;
|
|
9950
9954
|
var FixedSizeVirtualScrollDirective = /** @class */ (function (_super) {
|
|
9951
9955
|
__extends(FixedSizeVirtualScrollDirective, _super);
|
|
9952
9956
|
function FixedSizeVirtualScrollDirective() {
|
|
9953
9957
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9954
9958
|
}
|
|
9955
9959
|
return FixedSizeVirtualScrollDirective;
|
|
9956
|
-
}(
|
|
9960
|
+
}(i2.CdkFixedSizeVirtualScroll));
|
|
9957
9961
|
FixedSizeVirtualScrollDirective.decorators = [
|
|
9958
9962
|
{ type: i0.Directive, args: [{
|
|
9959
9963
|
// tslint:disable-next-line: directive-selector
|
|
9960
9964
|
selector: 'aui-virtual-scroll-viewport[itemSize]',
|
|
9961
9965
|
providers: [
|
|
9962
9966
|
{
|
|
9963
|
-
provide:
|
|
9967
|
+
provide: i2.VIRTUAL_SCROLL_STRATEGY,
|
|
9964
9968
|
useFactory: ɵ0,
|
|
9965
9969
|
deps: [i0.forwardRef(function () { return FixedSizeVirtualScrollDirective; })],
|
|
9966
9970
|
},
|
|
@@ -10004,7 +10008,7 @@
|
|
|
10004
10008
|
configurable: true
|
|
10005
10009
|
});
|
|
10006
10010
|
return VirtualForOfDirective;
|
|
10007
|
-
}(
|
|
10011
|
+
}(i2.CdkVirtualForOf));
|
|
10008
10012
|
VirtualForOfDirective.decorators = [
|
|
10009
10013
|
{ type: i0.Directive, args: [{
|
|
10010
10014
|
selector: '[auiVirtualFor][auiVirtualForOf]',
|
|
@@ -10023,7 +10027,7 @@
|
|
|
10023
10027
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10024
10028
|
}
|
|
10025
10029
|
return VirtualScrollViewportComponent;
|
|
10026
|
-
}(
|
|
10030
|
+
}(i2.CdkVirtualScrollViewport));
|
|
10027
10031
|
VirtualScrollViewportComponent.decorators = [
|
|
10028
10032
|
{ type: i0.Component, args: [{
|
|
10029
10033
|
selector: 'aui-virtual-scroll-viewport',
|
|
@@ -10038,7 +10042,7 @@
|
|
|
10038
10042
|
preserveWhitespaces: false,
|
|
10039
10043
|
providers: [
|
|
10040
10044
|
{
|
|
10041
|
-
provide:
|
|
10045
|
+
provide: i2.CdkVirtualScrollViewport,
|
|
10042
10046
|
useExisting: VirtualScrollViewportComponent,
|
|
10043
10047
|
},
|
|
10044
10048
|
],
|
|
@@ -10252,7 +10256,7 @@
|
|
|
10252
10256
|
{ type: i0.ApplicationRef },
|
|
10253
10257
|
{ type: i0.Injector },
|
|
10254
10258
|
{ type: i0.ElementRef },
|
|
10255
|
-
{ type:
|
|
10259
|
+
{ type: i2.CdkScrollable, decorators: [{ type: i0.Optional }] }
|
|
10256
10260
|
]; };
|
|
10257
10261
|
AnchorDirective.propDecorators = {
|
|
10258
10262
|
auiAnchor: [{ type: i0.Input }],
|
|
@@ -11970,7 +11974,7 @@
|
|
|
11970
11974
|
_this.injector = injector;
|
|
11971
11975
|
_this.cdr = cdr;
|
|
11972
11976
|
_this.size = exports.DrawerSize.Medium;
|
|
11973
|
-
_this.offsetY =
|
|
11977
|
+
_this.offsetY = '0px';
|
|
11974
11978
|
_this.hideOnClickOutside = false;
|
|
11975
11979
|
_this.showClose = true;
|
|
11976
11980
|
_this._value = SIZE_MAPPER[exports.DrawerSize.Medium];
|
|
@@ -11997,7 +12001,7 @@
|
|
|
11997
12001
|
Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
|
|
11998
12002
|
get: function () {
|
|
11999
12003
|
var _c;
|
|
12000
|
-
return Object.assign({ drawer: true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12004
|
+
return Object.assign({ 'aui-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.dispose();
|
|
12041
12045
|
}
|
|
12042
12046
|
}
|
|
12043
12047
|
};
|
|
@@ -12067,7 +12071,9 @@
|
|
|
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
|
-
|
|
12074
|
+
event.stopPropagation();
|
|
12075
|
+
event.preventDefault();
|
|
12076
|
+
_this.dispose();
|
|
12071
12077
|
}
|
|
12072
12078
|
});
|
|
12073
12079
|
}
|
|
@@ -12116,10 +12122,10 @@
|
|
|
12116
12122
|
this.updateBodyOverflow();
|
|
12117
12123
|
this.cdr.markForCheck();
|
|
12118
12124
|
};
|
|
12119
|
-
DrawerComponent.prototype.
|
|
12125
|
+
DrawerComponent.prototype.dispose = function (result) {
|
|
12120
12126
|
if (result === void 0) { result = null; }
|
|
12121
12127
|
this.visible = false;
|
|
12122
|
-
this.close.
|
|
12128
|
+
this.close.emit();
|
|
12123
12129
|
this.afterClosed$.next(result);
|
|
12124
12130
|
this.afterClosed$.complete();
|
|
12125
12131
|
this.updateBodyOverflow();
|
|
@@ -12133,7 +12139,7 @@
|
|
|
12133
12139
|
};
|
|
12134
12140
|
DrawerComponent.prototype.maskClick = function () {
|
|
12135
12141
|
if (this.maskClosable && this.mask) {
|
|
12136
|
-
this.
|
|
12142
|
+
this.dispose();
|
|
12137
12143
|
}
|
|
12138
12144
|
};
|
|
12139
12145
|
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
@@ -12145,10 +12151,10 @@
|
|
|
12145
12151
|
DrawerComponent.decorators = [
|
|
12146
12152
|
{ type: i0.Component, args: [{
|
|
12147
12153
|
selector: 'aui-drawer',
|
|
12148
|
-
template: "<ng-template #drawerTemplate>\n <div\n
|
|
12154
|
+
template: "<ng-template #drawerTemplate>\n <div\n *ngIf=\"mask\"\n class=\"aui-drawer-mask\"\n [class.isOpen]=\"visible\"\n (click)=\"maskClick()\"\n ></div>\n <div\n [style.marginTop]=\"offsetY\"\n [ngClass]=\"drawerClasses\"\n [class.isOpen]=\"visible\"\n [ngStyle]=\"{\n transform: transform,\n width: width + 'px'\n }\"\n >\n <div class=\"aui-drawer__content\">\n <div class=\"aui-drawer__body-wrapper\">\n <div class=\"aui-drawer__header\">\n <div class=\"aui-drawer__title\">\n <ng-container\n *ngIf=\"!isTemplateRef(title || titleTemplate); else elseTemplate\"\n >\n {{ title }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"title || titleTemplate\"\n [ngTemplateOutlet]=\"title || titleTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n <div class=\"aui-drawer__close\" *ngIf=\"showClose\" (click)=\"dispose()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"aui-drawer__body\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container *ngIf=\"isTemplateRef(content || contentTemplate)\">\n <ng-container\n *ngTemplateOutlet=\"\n content || contentTemplate;\n context: templateContext\n \"\n >\n </ng-container>\n </ng-container>\n </div>\n\n <div *ngIf=\"footer || footerTemplate\" class=\"aui-drawer__footer\">\n <ng-container\n *ngIf=\"!isTemplateRef(footer || footerTemplate); else elseTemplate\"\n >\n {{ footer }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"footer || titleTemplate\"\n [ngTemplateOutlet]=\"footer || titleTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
12149
12155
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12150
12156
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12151
|
-
styles: [".
|
|
12157
|
+
styles: [".aui-drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;opacity:.4;background-color:rgb(var(--aui-color-n-0))}.aui-drawer-mask.isOpen{height:100%}.aui-drawer{position:fixed;top:0;bottom:0;right:0;z-index:9999;transition:transform .3s,opacity .3s,box-shaow .3s;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);color:rgb(var(--aui-color-n-1))}.aui-drawer.isOpen .aui-drawer__content{box-shadow:0 4px 16px 0 rgba(var(--aui-color-n-1),.2)}.aui-drawer__content{background-color:rgb(var(--aui-color-n-10));position:absolute;height:100%;right:0;width:100%}.aui-drawer__header{margin:20px 20px 0;padding-bottom:16px;display:flex;justify-content:space-between;border-bottom:1px solid rgb(var(--aui-color-n-8))}.aui-drawer__title{flex:1;font-size:var(--aui-font-size-xxl);line-height:var(--aui-line-height-xxl);color:rgb(var(--aui-color-n-1));font-weight:var(--aui-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aui-drawer__close{z-index:10;margin-left:16px;display:flex;align-items:center;font-size:var(--aui-icon-size-m);color:rgb(var(--aui-color-n-4));cursor:pointer}.aui-drawer__close:hover{color:rgb(var(--aui-color-primary))}.aui-drawer__body-wrapper{width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;position:relative;z-index:1}.aui-drawer__body{margin:16px 20px;overflow:hidden;overflow-y:auto;height:100%}.aui-drawer__footer{margin:0 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-8))}"]
|
|
12152
12158
|
},] }
|
|
12153
12159
|
];
|
|
12154
12160
|
DrawerComponent.ctorParameters = function () { return [
|
|
@@ -12179,6 +12185,26 @@
|
|
|
12179
12185
|
footerTemplate: [{ type: i0.ContentChild, args: [DrawerFooterDirective, { read: i0.TemplateRef },] }]
|
|
12180
12186
|
};
|
|
12181
12187
|
|
|
12188
|
+
var COMMON = [
|
|
12189
|
+
DrawerComponent,
|
|
12190
|
+
DrawerHeaderDirective,
|
|
12191
|
+
DrawerContentDirective,
|
|
12192
|
+
DrawerFooterDirective,
|
|
12193
|
+
];
|
|
12194
|
+
var DrawerModule = /** @class */ (function () {
|
|
12195
|
+
function DrawerModule() {
|
|
12196
|
+
}
|
|
12197
|
+
return DrawerModule;
|
|
12198
|
+
}());
|
|
12199
|
+
DrawerModule.decorators = [
|
|
12200
|
+
{ type: i0.NgModule, args: [{
|
|
12201
|
+
imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
|
|
12202
|
+
declarations: COMMON,
|
|
12203
|
+
exports: COMMON,
|
|
12204
|
+
entryComponents: [DrawerComponent],
|
|
12205
|
+
},] }
|
|
12206
|
+
];
|
|
12207
|
+
|
|
12182
12208
|
var DrawerService = /** @class */ (function () {
|
|
12183
12209
|
function DrawerService(overlay) {
|
|
12184
12210
|
this.overlay = overlay;
|
|
@@ -12186,7 +12212,7 @@
|
|
|
12186
12212
|
}
|
|
12187
12213
|
DrawerService.prototype.open = function (options) {
|
|
12188
12214
|
var _a, _b, _c;
|
|
12189
|
-
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.
|
|
12215
|
+
(_b = (_a = this.drawerRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
12190
12216
|
this.createDrawer();
|
|
12191
12217
|
this.updateOptions(options);
|
|
12192
12218
|
return (_c = this.drawerRef) === null || _c === void 0 ? void 0 : _c.instance;
|
|
@@ -12224,27 +12250,6 @@
|
|
|
12224
12250
|
{ type: i1.Overlay }
|
|
12225
12251
|
]; };
|
|
12226
12252
|
|
|
12227
|
-
var COMMON = [
|
|
12228
|
-
DrawerComponent,
|
|
12229
|
-
DrawerHeaderDirective,
|
|
12230
|
-
DrawerContentDirective,
|
|
12231
|
-
DrawerFooterDirective,
|
|
12232
|
-
];
|
|
12233
|
-
var DrawerModule = /** @class */ (function () {
|
|
12234
|
-
function DrawerModule() {
|
|
12235
|
-
}
|
|
12236
|
-
return DrawerModule;
|
|
12237
|
-
}());
|
|
12238
|
-
DrawerModule.decorators = [
|
|
12239
|
-
{ type: i0.NgModule, args: [{
|
|
12240
|
-
imports: [common.CommonModule, IconModule, IconModule, i1.OverlayModule, portal.PortalModule],
|
|
12241
|
-
declarations: COMMON,
|
|
12242
|
-
exports: COMMON,
|
|
12243
|
-
providers: [DrawerService],
|
|
12244
|
-
entryComponents: [DrawerComponent],
|
|
12245
|
-
},] }
|
|
12246
|
-
];
|
|
12247
|
-
|
|
12248
12253
|
var StepState = {
|
|
12249
12254
|
Default: 'default',
|
|
12250
12255
|
Done: 'done',
|