@alauda/ui 6.1.5-beta.4 → 6.1.5-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +4 -2
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/drawer/component/drawer-ref.d.ts +1 -0
- package/drawer/component/drawer.component.d.ts +1 -0
- package/esm2015/drawer/component/drawer-ref.js +1 -1
- package/esm2015/drawer/component/drawer.component.js +5 -3
- package/esm2015/drawer/component/drawer.component.ngfactory.js +1 -1
- package/esm2015/drawer/component/drawer.component.ngsummary.json +1 -1
- package/esm2015/drawer/component/drawer.component.scss.ngstyle.js +1 -1
- package/fesm2015/alauda-ui.js +4 -2
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
package/bundles/alauda-ui.umd.js
CHANGED
|
@@ -11981,6 +11981,7 @@
|
|
|
11981
11981
|
_this.offsetY = '0px';
|
|
11982
11982
|
_this.hideOnClickOutside = false;
|
|
11983
11983
|
_this.showClose = true;
|
|
11984
|
+
_this.divider = true;
|
|
11984
11985
|
_this._value = SIZE_MAPPER[exports.DrawerSize.Medium];
|
|
11985
11986
|
_this.afterClosed$ = new rxjs.Subject();
|
|
11986
11987
|
_this.afterOpen$ = new rxjs.Subject();
|
|
@@ -12005,7 +12006,7 @@
|
|
|
12005
12006
|
Object.defineProperty(DrawerComponent.prototype, "drawerClasses", {
|
|
12006
12007
|
get: function () {
|
|
12007
12008
|
var _c;
|
|
12008
|
-
return Object.assign({ 'aui-drawer': true }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12009
|
+
return Object.assign({ 'aui-drawer': true, hasDivider: this.divider }, (!this.drawerClass ? null : (_c = {}, _c[this.drawerClass] = true, _c)));
|
|
12009
12010
|
},
|
|
12010
12011
|
enumerable: false,
|
|
12011
12012
|
configurable: true
|
|
@@ -12158,7 +12159,7 @@
|
|
|
12158
12159
|
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 || footerTemplate\"\n [ngTemplateOutlet]=\"footer || footerTemplate\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
12159
12160
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12160
12161
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12161
|
-
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
|
|
12162
|
+
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;display:flex;justify-content:space-between}.aui-drawer.hasDivider .aui-drawer__header{margin:20px 20px -4px;padding-bottom:16px;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:20px;overflow:hidden;overflow-y:auto;height:100%}.aui-drawer__footer{margin:-4px 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-8))}"]
|
|
12162
12163
|
},] }
|
|
12163
12164
|
];
|
|
12164
12165
|
DrawerComponent.ctorParameters = function () { return [
|
|
@@ -12179,6 +12180,7 @@
|
|
|
12179
12180
|
drawerClass: [{ type: i0.Input }],
|
|
12180
12181
|
mask: [{ type: i0.Input }],
|
|
12181
12182
|
maskClosable: [{ type: i0.Input }],
|
|
12183
|
+
divider: [{ type: i0.Input }],
|
|
12182
12184
|
width: [{ type: i0.Input }],
|
|
12183
12185
|
drawerViewInit: [{ type: i0.Output }],
|
|
12184
12186
|
close: [{ type: i0.Output }],
|