@alauda/ui 6.0.2-beta.0 → 6.0.2-beta.4
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 +12 -4
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/drawer/component/drawer.component.d.ts +2 -2
- package/drawer/component/drawer.service.d.ts +3 -5
- package/esm2015/drawer/component/drawer.component.js +4 -4
- package/esm2015/drawer/component/drawer.component.ngfactory.js +13 -11
- package/esm2015/drawer/component/drawer.component.ngsummary.json +1 -1
- package/esm2015/drawer/component/drawer.service.js +1 -1
- package/esm2015/drawer/drawer.module.js +3 -2
- package/esm2015/drawer/drawer.module.ngfactory.js +1 -1
- package/esm2015/select/base-select.js +10 -2
- package/fesm2015/alauda-ui.js +12 -4
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
package/fesm2015/alauda-ui.js
CHANGED
|
@@ -4666,6 +4666,14 @@ class BaseSelect extends CommonFormControl {
|
|
|
4666
4666
|
this.customOptions.changes.pipe(startWith(this.customOptions)),
|
|
4667
4667
|
this.contentOptions.changes.pipe(startWith(this.contentOptions)),
|
|
4668
4668
|
]).pipe(map(([customOptions, contentOptions]) => [...customOptions.toArray(), ...contentOptions.toArray()]), publishReplay(1), refCount());
|
|
4669
|
+
// support dynamic options loading on filtering
|
|
4670
|
+
this.allOptions$.pipe(takeUntil(this.destroy$$)).subscribe(() => {
|
|
4671
|
+
if (this.opened) {
|
|
4672
|
+
requestAnimationFrame(() => {
|
|
4673
|
+
this.autoFocusFirstOption();
|
|
4674
|
+
});
|
|
4675
|
+
}
|
|
4676
|
+
});
|
|
4669
4677
|
this.hasMatchedOption$ = combineLatest([
|
|
4670
4678
|
this.allOptions$.pipe(map(customOptions => customOptions.filter(option => option !== this.inputtingOption)),
|
|
4671
4679
|
// eslint-disable-next-line sonarjs/no-identical-functions
|
|
@@ -10287,7 +10295,7 @@ class DrawerComponent extends DrawerRef {
|
|
|
10287
10295
|
});
|
|
10288
10296
|
}
|
|
10289
10297
|
attachBodyContent() {
|
|
10290
|
-
var _a;
|
|
10298
|
+
var _a, _b;
|
|
10291
10299
|
(_a = this.bodyPortalOutlet) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
10292
10300
|
const content = this.content || this.contentTemplate;
|
|
10293
10301
|
if (content instanceof Type) {
|
|
@@ -10300,7 +10308,7 @@ class DrawerComponent extends DrawerRef {
|
|
|
10300
10308
|
],
|
|
10301
10309
|
parent: this.injector,
|
|
10302
10310
|
}));
|
|
10303
|
-
const componentRef = this.bodyPortalOutlet.attachComponentPortal(componentPortal);
|
|
10311
|
+
const componentRef = (_b = this.bodyPortalOutlet) === null || _b === void 0 ? void 0 : _b.attachComponentPortal(componentPortal);
|
|
10304
10312
|
this.componentInstance = componentRef.instance;
|
|
10305
10313
|
Object.assign(componentRef.instance, this.contentParams);
|
|
10306
10314
|
componentRef.changeDetectorRef.detectChanges();
|
|
@@ -10350,7 +10358,7 @@ class DrawerComponent extends DrawerRef {
|
|
|
10350
10358
|
DrawerComponent.decorators = [
|
|
10351
10359
|
{ type: Component, args: [{
|
|
10352
10360
|
selector: 'aui-drawer',
|
|
10353
|
-
template: "<ng-template #drawerTemplate>\n <div\n [class.drawer-mask-open]=\"visible\"\n class=\"drawer-mask\"\n (click)=\"maskClick()\"\n *ngIf=\"mask\"\n ></div>\n <div\n [style.marginTop.px]=\"offsetY\"\n [ngClass]=\"drawerClasses\"\n [class.drawer-open]=\"visible\"\n [ngStyle]=\"{\n transform: transform,\n width: width + 'px'\n }\"\n >\n <div\n class=\"drawer-content\"\n [style.height]=\"'calc(100% - ' + offsetY + 'px)'\"\n >\n <div class=\"drawer-body-wrapper\">\n <div class=\"drawer-header\">\n <div class=\"drawer-title\">\n <ng-container\n *ngIf=\"!isTemplateRef(title || titleTemplate); else elseTemplate\"\n >\n {{ title }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"title || titleTemplate\"\n [ngTemplateOutlet]=\"$any(title || titleTemplate)\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n <div class=\"drawer-close\" *ngIf=\"showClose\" (click)=\"closure()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"drawer-body\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container\n *ngTemplateOutlet=\"\n
|
|
10361
|
+
template: "<ng-template #drawerTemplate>\n <div\n [class.drawer-mask-open]=\"visible\"\n class=\"drawer-mask\"\n (click)=\"maskClick()\"\n *ngIf=\"mask\"\n ></div>\n <div\n [style.marginTop.px]=\"offsetY\"\n [ngClass]=\"drawerClasses\"\n [class.drawer-open]=\"visible\"\n [ngStyle]=\"{\n transform: transform,\n width: width + 'px'\n }\"\n >\n <div\n class=\"drawer-content\"\n [style.height]=\"'calc(100% - ' + offsetY + 'px)'\"\n >\n <div class=\"drawer-body-wrapper\">\n <div class=\"drawer-header\">\n <div class=\"drawer-title\">\n <ng-container\n *ngIf=\"!isTemplateRef(title || titleTemplate); else elseTemplate\"\n >\n {{ title }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"title || titleTemplate\"\n [ngTemplateOutlet]=\"$any(title || titleTemplate)\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n <div class=\"drawer-close\" *ngIf=\"showClose\" (click)=\"closure()\">\n <aui-icon icon=\"close\"></aui-icon>\n </div>\n </div>\n\n <div class=\"drawer-body\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container *ngIf=\"isTemplateRef(content || contentTemplate)\">\n <ng-container\n *ngTemplateOutlet=\"\n $any(content || contentTemplate);\n context: templateContext\n \"\n >\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"drawer-footer\" *ngIf=\"footer\">\n <ng-container\n *ngIf=\"!isTemplateRef(footer || footerTemplate); else elseTemplate\"\n >\n {{ footer }}\n </ng-container>\n <ng-template #elseTemplate>\n <ng-container\n *ngIf=\"footer || titleTemplate\"\n [ngTemplateOutlet]=\"$any(footer || titleTemplate)\"\n [ngTemplateOutletContext]=\"templateContext\"\n ></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
10354
10362
|
encapsulation: ViewEncapsulation.None,
|
|
10355
10363
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10356
10364
|
styles: [".drawer-open .drawer-content{box-shadow:0 4px 16px 0 rgba(var(--aui-color-n-1),.2)}.drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;opacity:.4;background-color:rgb(var(--aui-color-n-0))}.drawer-mask-open{height:100%}.drawer{height:100%;position:fixed;top:0;right:0;z-index:9999;transition:transform .3s,opacity .3s,box-shaow .3s}.drawer-content{background-color:rgb(var(--aui-color-n-10));position:absolute;height:100%;right:0;width:100%}.drawer-header{margin:20px 20px 0;background:rgb(var(--aui-color-n-10));display:flex;font-size:20px;font-weight:500;padding-bottom:16px;justify-content:space-between;border-bottom:1px solid rgb(var(--aui-color-n-7))}.drawer-close{z-index:10;display:flex;align-items:center;font-size:16px;cursor:pointer;color:rgb(var(--aui-color-n-4));margin-left:16px}.drawer-body-wrapper{width:100%;height:100%;flex-direction:column;flex-wrap:nowrap;display:flex;position:relative;z-index:1;background-clip:padding-box;border:0}.drawer-body{margin:16px 20px;overflow:hidden;overflow-y:auto;font-size:14px;height:calc(100% - 100px)}.drawer-footer{margin:0 20px 20px;padding-top:16px;border-top:1px solid rgb(var(--aui-color-n-7))}"]
|
|
@@ -10438,7 +10446,7 @@ class DrawerModule {
|
|
|
10438
10446
|
}
|
|
10439
10447
|
DrawerModule.decorators = [
|
|
10440
10448
|
{ type: NgModule, args: [{
|
|
10441
|
-
imports: [CommonModule, IconModule, IconModule, OverlayModule],
|
|
10449
|
+
imports: [CommonModule, IconModule, IconModule, OverlayModule, PortalModule],
|
|
10442
10450
|
declarations: COMMON,
|
|
10443
10451
|
exports: COMMON,
|
|
10444
10452
|
providers: [DrawerService],
|