@alauda/ui 7.2.1-beta.7 → 7.2.1-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/drawer/component/drawer.component.d.ts +14 -47
- package/drawer/component/internal/internal.component.d.ts +32 -0
- package/drawer/drawer-ref.d.ts +12 -0
- package/drawer/drawer.module.d.ts +1 -1
- package/drawer/drawer.service.d.ts +14 -23
- package/drawer/index.d.ts +3 -2
- package/drawer/types.d.ts +23 -0
- package/esm2022/autocomplete/suggestion/suggestion.component.mjs +8 -4
- package/esm2022/drawer/component/drawer.component.mjs +31 -196
- package/esm2022/drawer/component/internal/internal.component.mjs +161 -0
- package/esm2022/drawer/drawer-ref.mjs +27 -0
- package/esm2022/drawer/drawer.module.mjs +3 -3
- package/esm2022/drawer/drawer.service.mjs +97 -22
- package/esm2022/drawer/{component/helper-directives.mjs → helper-directives.mjs} +1 -1
- package/esm2022/drawer/index.mjs +4 -3
- package/esm2022/drawer/types.mjs +7 -0
- package/esm2022/form/form-item/form-item.component.mjs +3 -3
- package/fesm2022/alauda-ui.mjs +326 -236
- package/fesm2022/alauda-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/drawer/component/drawer-ref.d.ts +0 -27
- package/esm2022/drawer/component/drawer-ref.mjs +0 -9
- /package/drawer/{component/helper-directives.d.ts → helper-directives.d.ts} +0 -0
|
@@ -1,63 +1,30 @@
|
|
|
1
|
-
import { ComponentType
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { DrawerRef, DrawerSize } from './drawer-ref';
|
|
1
|
+
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
|
+
import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
|
+
import { DrawerService } from '../drawer.service';
|
|
4
|
+
import { DrawerSize } from '../types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare
|
|
8
|
-
|
|
9
|
-
private readonly viewContainerRef;
|
|
10
|
-
private readonly overlay;
|
|
11
|
-
private readonly injector;
|
|
12
|
-
private readonly cdr;
|
|
6
|
+
export declare class DrawerComponent implements AfterViewInit, OnChanges {
|
|
7
|
+
private readonly drawerService;
|
|
13
8
|
title: string | TemplateRef<unknown>;
|
|
14
9
|
footer: string | TemplateRef<unknown>;
|
|
15
10
|
size: DrawerSize;
|
|
16
11
|
offsetY: string;
|
|
17
12
|
visible: boolean;
|
|
18
|
-
content: TemplateRef<
|
|
13
|
+
content: TemplateRef<unknown> | ComponentType<unknown>;
|
|
19
14
|
hideOnClickOutside: boolean;
|
|
20
15
|
showClose: boolean;
|
|
21
16
|
drawerClass: string;
|
|
22
17
|
mask: boolean;
|
|
23
18
|
maskClosable: boolean;
|
|
24
19
|
divider: boolean;
|
|
25
|
-
private _value;
|
|
26
|
-
set width(value: number);
|
|
27
|
-
get width(): number;
|
|
28
|
-
get drawerClasses(): Record<string, boolean>;
|
|
29
|
-
private readonly afterClosed$;
|
|
30
|
-
get afterClosed(): Observable<R>;
|
|
31
|
-
private readonly afterOpen$;
|
|
32
|
-
get afterOpen(): Observable<void>;
|
|
33
|
-
drawerViewInit: EventEmitter<void>;
|
|
34
20
|
readonly close: EventEmitter<MouseEvent>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
footerTemplate: TemplateRef<T>;
|
|
40
|
-
onDestroy$: Subject<void>;
|
|
41
|
-
isTemplateRef: (label: any) => label is TemplateRef<unknown>;
|
|
42
|
-
componentInstance: T | null;
|
|
43
|
-
contentParams: D;
|
|
44
|
-
overlayRef: OverlayRef;
|
|
45
|
-
portal: TemplatePortal;
|
|
46
|
-
templateContext: {};
|
|
47
|
-
get transform(): string;
|
|
48
|
-
constructor(viewContainerRef: ViewContainerRef, overlay: Overlay, injector: Injector, cdr: ChangeDetectorRef);
|
|
49
|
-
ngOnInit(): void;
|
|
21
|
+
private readonly titleTemplate;
|
|
22
|
+
private readonly contentTemplateOrComponent;
|
|
23
|
+
private readonly footerTemplate;
|
|
24
|
+
constructor(drawerService: DrawerService);
|
|
50
25
|
ngOnChanges(changes: SimpleChanges): void;
|
|
51
26
|
ngAfterViewInit(): void;
|
|
52
|
-
private
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
private updateBodyOverflow;
|
|
56
|
-
open(): void;
|
|
57
|
-
dispose(result?: R): void;
|
|
58
|
-
private disposeOverlay;
|
|
59
|
-
maskClick(): void;
|
|
60
|
-
ngOnDestroy(): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent<any, any, any>, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent<any, any, any>, "aui-drawer", never, { "title": { "alias": "title"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "size": { "alias": "size"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "content": { "alias": "content"; "required": false; }; "hideOnClickOutside": { "alias": "hideOnClickOutside"; "required": false; }; "showClose": { "alias": "showClose"; "required": false; }; "drawerClass": { "alias": "drawerClass"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "maskClosable": { "alias": "maskClosable"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "drawerViewInit": "drawerViewInit"; "close": "close"; }, ["titleTemplate", "contentTemplate", "footerTemplate"], never, true, never>;
|
|
27
|
+
private open;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "aui-drawer", never, { "title": { "alias": "title"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "size": { "alias": "size"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "content": { "alias": "content"; "required": false; }; "hideOnClickOutside": { "alias": "hideOnClickOutside"; "required": false; }; "showClose": { "alias": "showClose"; "required": false; }; "drawerClass": { "alias": "drawerClass"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "maskClosable": { "alias": "maskClosable"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, { "close": "close"; }, ["titleTemplate", "contentTemplateOrComponent", "footerTemplate"], never, true, never>;
|
|
63
30
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AnimationEvent } from '@angular/animations';
|
|
2
|
+
import { ComponentType } from '@angular/cdk/overlay';
|
|
3
|
+
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
4
|
+
import { ChangeDetectorRef, EventEmitter, InjectionToken, Injector } from '@angular/core';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { DrawerOptions } from '../../types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare const DATA: InjectionToken<unknown>;
|
|
9
|
+
export declare const duration = "300ms";
|
|
10
|
+
type Step = 'showStart' | 'showDone' | 'hideStart' | 'hideDone';
|
|
11
|
+
export declare class DrawerInternalComponent<T = ComponentType<unknown>> {
|
|
12
|
+
private readonly cdr;
|
|
13
|
+
private readonly injector;
|
|
14
|
+
maskClick: EventEmitter<MouseEvent>;
|
|
15
|
+
closeClick: EventEmitter<any>;
|
|
16
|
+
bodyPortalOutlet: CdkPortalOutlet;
|
|
17
|
+
animationStep$: Subject<Step>;
|
|
18
|
+
options: DrawerOptions;
|
|
19
|
+
showHide: string;
|
|
20
|
+
get drawerClasses(): Record<string, boolean>;
|
|
21
|
+
get width(): number;
|
|
22
|
+
isTemplateRef: (label: any) => label is import("@angular/core").TemplateRef<unknown>;
|
|
23
|
+
constructor(cdr: ChangeDetectorRef, injector: Injector);
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
private attachBodyContent;
|
|
26
|
+
onAnimation(event: AnimationEvent): void;
|
|
27
|
+
show(): void;
|
|
28
|
+
hide(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerInternalComponent<any>, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerInternalComponent<any>, "ng-component", never, {}, { "maskClick": "maskClick"; "closeClick": "closeClick"; }, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { DrawerInternalComponent } from './component/internal/internal.component';
|
|
3
|
+
export declare class DrawerRef<R = any> {
|
|
4
|
+
drawerInstance: DrawerInternalComponent;
|
|
5
|
+
private result;
|
|
6
|
+
private readonly afterOpen$;
|
|
7
|
+
private readonly afterClosed$;
|
|
8
|
+
get afterOpen(): Observable<void>;
|
|
9
|
+
get afterClosed(): Observable<R>;
|
|
10
|
+
constructor(drawerInstance: DrawerInternalComponent);
|
|
11
|
+
dispose(result?: R): void;
|
|
12
|
+
}
|
|
@@ -4,7 +4,7 @@ import * as i2 from "../icon/icon.module";
|
|
|
4
4
|
import * as i3 from "@angular/cdk/overlay";
|
|
5
5
|
import * as i4 from "@angular/cdk/portal";
|
|
6
6
|
import * as i5 from "./component/drawer.component";
|
|
7
|
-
import * as i6 from "./
|
|
7
|
+
import * as i6 from "./helper-directives";
|
|
8
8
|
export declare class DrawerModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerModule, never>;
|
|
10
10
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, never, [typeof i1.CommonModule, typeof i2.IconModule, typeof i3.OverlayModule, typeof i4.PortalModule, typeof i5.DrawerComponent, typeof i6.DrawerHeaderDirective, typeof i6.DrawerContentDirective, typeof i6.DrawerFooterDirective], [typeof i5.DrawerComponent, typeof i6.DrawerHeaderDirective, typeof i6.DrawerContentDirective, typeof i6.DrawerFooterDirective]>;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { ComponentRef } from '@angular/core';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { DrawerInternalComponent } from './component/internal/internal.component';
|
|
5
|
+
import { DrawerRef } from './drawer-ref';
|
|
6
|
+
import { DrawerOptions } from './types';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export interface DrawerOptions<T = any, D = any> {
|
|
8
|
-
title?: string | TemplateRef<unknown>;
|
|
9
|
-
width?: number;
|
|
10
|
-
content?: ComponentType<T> | TemplateRef<T>;
|
|
11
|
-
contentParams?: D;
|
|
12
|
-
footer?: string | TemplateRef<unknown>;
|
|
13
|
-
offsetY?: string;
|
|
14
|
-
divider?: boolean;
|
|
15
|
-
drawerClass?: string;
|
|
16
|
-
size?: DrawerSize;
|
|
17
|
-
visible?: boolean;
|
|
18
|
-
hideOnClickOutside?: boolean;
|
|
19
|
-
showClose?: boolean;
|
|
20
|
-
mask?: boolean;
|
|
21
|
-
maskClosable?: boolean;
|
|
22
|
-
}
|
|
23
8
|
export declare class DrawerService {
|
|
24
9
|
private readonly overlay;
|
|
25
|
-
private drawerRef;
|
|
26
10
|
private overlayRef;
|
|
27
|
-
|
|
11
|
+
options: DrawerOptions;
|
|
12
|
+
onDestroy$: Subject<void>;
|
|
13
|
+
drawerCpt: ComponentRef<DrawerInternalComponent>;
|
|
28
14
|
constructor(overlay: Overlay);
|
|
29
|
-
open
|
|
15
|
+
open(options: DrawerOptions): DrawerRef<any>;
|
|
16
|
+
close(): void;
|
|
30
17
|
updateOptions(options: DrawerOptions): void;
|
|
18
|
+
private createOverlay;
|
|
31
19
|
private createDrawer;
|
|
20
|
+
private getOverlayConfig;
|
|
21
|
+
private disposeOverlay;
|
|
22
|
+
ngOnDestroy(): void;
|
|
32
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerService, never>;
|
|
33
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerService>;
|
|
34
25
|
}
|
package/drawer/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './component/drawer.component';
|
|
2
|
-
export * from './component/drawer-ref';
|
|
3
|
-
export * from './component/helper-directives';
|
|
4
2
|
export * from './drawer.module';
|
|
5
3
|
export * from './drawer.service';
|
|
4
|
+
export * from './drawer-ref';
|
|
5
|
+
export * from './helper-directives';
|
|
6
|
+
export * from './types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
export declare enum DrawerSize {
|
|
4
|
+
Small = "small",
|
|
5
|
+
Medium = "medium",
|
|
6
|
+
Big = "big"
|
|
7
|
+
}
|
|
8
|
+
export interface DrawerOptions<T = any, D = any> {
|
|
9
|
+
title?: string | TemplateRef<unknown>;
|
|
10
|
+
content?: ComponentType<T> | TemplateRef<T>;
|
|
11
|
+
footer?: string | TemplateRef<unknown>;
|
|
12
|
+
contentParams?: D;
|
|
13
|
+
width?: number;
|
|
14
|
+
size?: DrawerSize;
|
|
15
|
+
offsetY?: string;
|
|
16
|
+
divider?: boolean;
|
|
17
|
+
drawerClass?: string;
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
showClose?: boolean;
|
|
20
|
+
mask?: boolean;
|
|
21
|
+
maskClosable?: boolean;
|
|
22
|
+
hideOnClickOutside?: boolean;
|
|
23
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AsyncPipe } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, ViewChild, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Inject, Input, ViewChild, ViewEncapsulation, forwardRef, } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject, combineLatest, map, switchMap, take, tap, } from 'rxjs';
|
|
4
4
|
import { buildBem, coerceAttrBoolean, publishRef } from '../../utils';
|
|
5
|
+
import { AutocompleteComponent } from '../autocomplete.component';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
import * as i1 from "../autocomplete.component";
|
|
7
8
|
export class SuggestionComponent {
|
|
@@ -59,13 +60,16 @@ export class SuggestionComponent {
|
|
|
59
60
|
this.focused = false;
|
|
60
61
|
this.cdr.markForCheck();
|
|
61
62
|
}
|
|
62
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: SuggestionComponent, deps: [{ token: i0.ChangeDetectorRef }, { token:
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: SuggestionComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: forwardRef(() => AutocompleteComponent) }], target: i0.ɵɵFactoryTarget.Component });
|
|
63
64
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.3", type: SuggestionComponent, isStandalone: true, selector: "aui-suggestion", inputs: { value: "value", disabled: ["disabled", "disabled", coerceAttrBoolean] }, viewQueries: [{ propertyName: "elRef", first: true, predicate: ["elRef"], descendants: true, static: true }], ngImport: i0, template: "<div\n #elRef\n [hidden]=\"!(visible$ | async)\"\n [class]=\"bem.block('medium')\"\n [class.isDisabled]=\"disabled\"\n [class.isSelected]=\"selected$ | async\"\n [class.isFocused]=\"focused\"\n (click)=\"onClick()\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".aui-suggestion{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-main-text));font-weight:var(--aui-font-weight-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.aui-suggestion--large{padding:calc((var(--aui-inline-height-l) - var(--aui-line-height-l)) / 2);line-height:var(--aui-line-height-l);font-size:var(--aui-font-size-l)}.aui-suggestion--medium{padding:calc((var(--aui-inline-height-m) - var(--aui-line-height-m)) / 2);line-height:var(--aui-line-height-m);font-size:var(--aui-font-size-m)}.aui-suggestion--small{padding:calc((var(--aui-inline-height-s) - var(--aui-line-height-m)) / 2);line-height:var(--aui-line-height-m);font-size:var(--aui-font-size-m)}.aui-suggestion--mini{padding:calc((var(--aui-inline-height-xs) - var(--aui-line-height-s)) / 2);line-height:var(--aui-line-height-s);font-size:var(--aui-font-size-s)}.aui-suggestion:not(.isMulti).isSelected{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6))}.aui-suggestion:hover,.aui-suggestion.isFocused{background-color:rgb(var(--aui-color-p-6))}.aui-suggestion.isDisabled{color:rgb(var(--aui-color-n-6));cursor:not-allowed}.aui-suggestion__pointer{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m);margin-right:var(--aui-spacing-m);border-radius:var(--aui-border-radius-m);border:1px solid rgb(var(--aui-color-n-7));color:#fff;background-color:rgb(var(--aui-color-main-bg));position:relative;vertical-align:middle;transition:all .3s ease}.aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary))}:root .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-suggestion.isSelected .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-primary))}.aui-suggestion.isIndeterminate .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-main-bg))}.aui-suggestion.isIndeterminate .aui-suggestion__pointer:before{content:\"\";display:block;width:8px;height:8px;border-radius:1px;background-color:rgb(var(--aui-color-primary))}.aui-suggestion.isSelected.isDisabled .aui-suggestion__pointer{border-color:rgb(var(--aui-color-p-4));background-color:rgb(var(--aui-color-p-4))}.aui-suggestion.isDisabled .aui-suggestion__label{cursor:not-allowed}.aui-suggestion.isDisabled .aui-suggestion__pointer{border-color:rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8))}.aui-suggestion:not(.isDisabled):hover .aui-suggestion__pointer,.aui-suggestion:not(.isDisabled).isFocused .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary))}.aui-suggestion__divider{display:block;width:100%;height:1px;background-color:rgb(var(--aui-color-divider))}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
64
65
|
}
|
|
65
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: SuggestionComponent, decorators: [{
|
|
66
67
|
type: Component,
|
|
67
68
|
args: [{ selector: 'aui-suggestion', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, standalone: true, imports: [AsyncPipe], template: "<div\n #elRef\n [hidden]=\"!(visible$ | async)\"\n [class]=\"bem.block('medium')\"\n [class.isDisabled]=\"disabled\"\n [class.isSelected]=\"selected$ | async\"\n [class.isFocused]=\"focused\"\n (click)=\"onClick()\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".aui-suggestion{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-main-text));font-weight:var(--aui-font-weight-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.aui-suggestion--large{padding:calc((var(--aui-inline-height-l) - var(--aui-line-height-l)) / 2);line-height:var(--aui-line-height-l);font-size:var(--aui-font-size-l)}.aui-suggestion--medium{padding:calc((var(--aui-inline-height-m) - var(--aui-line-height-m)) / 2);line-height:var(--aui-line-height-m);font-size:var(--aui-font-size-m)}.aui-suggestion--small{padding:calc((var(--aui-inline-height-s) - var(--aui-line-height-m)) / 2);line-height:var(--aui-line-height-m);font-size:var(--aui-font-size-m)}.aui-suggestion--mini{padding:calc((var(--aui-inline-height-xs) - var(--aui-line-height-s)) / 2);line-height:var(--aui-line-height-s);font-size:var(--aui-font-size-s)}.aui-suggestion:not(.isMulti).isSelected{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6))}.aui-suggestion:hover,.aui-suggestion.isFocused{background-color:rgb(var(--aui-color-p-6))}.aui-suggestion.isDisabled{color:rgb(var(--aui-color-n-6));cursor:not-allowed}.aui-suggestion__pointer{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:var(--aui-icon-size-m);height:var(--aui-icon-size-m);margin-right:var(--aui-spacing-m);border-radius:var(--aui-border-radius-m);border:1px solid rgb(var(--aui-color-n-7));color:#fff;background-color:rgb(var(--aui-color-main-bg));position:relative;vertical-align:middle;transition:all .3s ease}.aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary))}:root .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-suggestion.cdk-keyboard-focused .aui-suggestion__pointer{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-suggestion.isSelected .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-primary))}.aui-suggestion.isIndeterminate .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-main-bg))}.aui-suggestion.isIndeterminate .aui-suggestion__pointer:before{content:\"\";display:block;width:8px;height:8px;border-radius:1px;background-color:rgb(var(--aui-color-primary))}.aui-suggestion.isSelected.isDisabled .aui-suggestion__pointer{border-color:rgb(var(--aui-color-p-4));background-color:rgb(var(--aui-color-p-4))}.aui-suggestion.isDisabled .aui-suggestion__label{cursor:not-allowed}.aui-suggestion.isDisabled .aui-suggestion__pointer{border-color:rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8))}.aui-suggestion:not(.isDisabled):hover .aui-suggestion__pointer,.aui-suggestion:not(.isDisabled).isFocused .aui-suggestion__pointer{border-color:rgb(var(--aui-color-primary))}.aui-suggestion__divider{display:block;width:100%;height:1px;background-color:rgb(var(--aui-color-divider))}\n"] }]
|
|
68
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.AutocompleteComponent
|
|
69
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.AutocompleteComponent, decorators: [{
|
|
70
|
+
type: Inject,
|
|
71
|
+
args: [forwardRef(() => AutocompleteComponent)]
|
|
72
|
+
}] }]; }, propDecorators: { value: [{
|
|
69
73
|
type: Input
|
|
70
74
|
}], disabled: [{
|
|
71
75
|
type: Input,
|
|
@@ -74,4 +78,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImpor
|
|
|
74
78
|
type: ViewChild,
|
|
75
79
|
args: ['elRef', { static: true }]
|
|
76
80
|
}] } });
|
|
77
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VnZ2VzdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXV0b2NvbXBsZXRlL3N1Z2dlc3Rpb24vc3VnZ2VzdGlvb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