@eui/components 17.0.0-next.24 → 17.0.0-next.25
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/docs/classes/EuiAutoCompleteItem.html +1 -1
- package/docs/components/ChartComponent.html +1 -1
- package/docs/components/CollapsedBreadcrumbComponent.html +1 -1
- package/docs/components/EclMessageWcComponent.html +1 -1
- package/docs/components/EuiAccessibleButtonIconComponent.html +2 -2
- package/docs/components/EuiAlertComponent.html +1 -1
- package/docs/components/EuiAppBreadcrumbComponent.html +1 -1
- package/docs/components/EuiAppComponent.html +1 -1
- package/docs/components/EuiAppFooterComponent.html +1 -1
- package/docs/components/EuiAppHeaderComponent.html +1 -1
- package/docs/components/EuiAppSidebarBodyComponent.html +1 -1
- package/docs/components/EuiAppSidebarComponent.html +1 -1
- package/docs/components/EuiAppSidebarDrawerComponent.html +1 -1
- package/docs/components/EuiAppSidebarFooterComponent.html +1 -1
- package/docs/components/EuiAppSidebarHeaderComponent.html +1 -1
- package/docs/components/EuiAppSidebarHeaderUserProfileComponent.html +1 -1
- package/docs/components/EuiAppSidebarMenuComponent.html +1 -1
- package/docs/components/EuiAppToolbarComponent.html +1 -1
- package/docs/components/EuiAppTopMessageComponent.html +1 -1
- package/docs/components/EuiAutocompleteAsyncTestComponent.html +5 -4
- package/docs/components/EuiAutocompleteChipsAsyncTestComponent.html +3 -3
- package/docs/components/EuiAutocompleteChipsTestComponent.html +3 -4
- package/docs/components/EuiAutocompleteComponent.html +621 -2340
- package/docs/components/EuiAutocompleteOptionComponent.html +531 -0
- package/docs/components/EuiAutocompleteOptionGroupComponent.html +427 -0
- package/docs/components/EuiAutocompleteTestComponent.html +10 -9
- package/docs/components/EuiAvatarBadgeComponent.html +1 -1
- package/docs/components/EuiAvatarComponent.html +1 -1
- package/docs/components/EuiAvatarIconComponent.html +1 -1
- package/docs/components/EuiAvatarImageComponent.html +1 -1
- package/docs/components/EuiAvatarListComponent.html +1 -1
- package/docs/components/EuiAvatarTextComponent.html +1 -1
- package/docs/components/EuiBadgeComponent.html +1 -1
- package/docs/components/EuiBlockContentComponent.html +1 -1
- package/docs/components/EuiBlockDocumentComponent.html +1 -1
- package/docs/components/EuiBreadcrumbComponent.html +1 -1
- package/docs/components/EuiBreadcrumbItemComponent.html +1 -1
- package/docs/components/EuiButtonComponent.html +1 -1
- package/docs/components/EuiButtonGroupComponent.html +1 -1
- package/docs/components/EuiButtonsComponent.html +1 -1
- package/docs/components/EuiCardComponent.html +1 -1
- package/docs/components/EuiCardContentComponent.html +1 -1
- package/docs/components/EuiCardFooterActionButtonsComponent.html +1 -1
- package/docs/components/EuiCardFooterActionIconsComponent.html +1 -1
- package/docs/components/EuiCardFooterComponent.html +1 -1
- package/docs/components/EuiCardFooterMenuContentComponent.html +1 -1
- package/docs/components/EuiCardHeaderBodyComponent.html +1 -1
- package/docs/components/EuiCardHeaderComponent.html +1 -1
- package/docs/components/EuiCardHeaderLeftContentComponent.html +1 -1
- package/docs/components/EuiCardHeaderRightContentComponent.html +1 -1
- package/docs/components/EuiCardHeaderSubtitleComponent.html +1 -1
- package/docs/components/EuiCardHeaderTitleComponent.html +1 -1
- package/docs/components/EuiCardMediaComponent.html +1 -1
- package/docs/components/EuiChipComponent.html +1 -1
- package/docs/components/EuiChipListComponent.html +1 -1
- package/docs/components/EuiCommonHeaderComponent.html +1 -1
- package/docs/components/EuiDashboardButtonComponent.html +1 -1
- package/docs/components/EuiDashboardCardComponent.html +1 -1
- package/docs/components/EuiDateRangeSelectorComponent.html +1 -1
- package/docs/components/EuiDatepickerComponent.html +1 -1
- package/docs/components/EuiDialogComponent.html +1 -1
- package/docs/components/EuiDialogContainerComponent.html +1 -1
- package/docs/components/EuiDimmerComponent.html +1 -1
- package/docs/components/EuiDisableContentComponent.html +1 -1
- package/docs/components/EuiDiscussionThreadComponent.html +1 -1
- package/docs/components/EuiDiscussionThreadItemComponent.html +1 -1
- package/docs/components/EuiDropdownComponent.html +1 -1
- package/docs/components/EuiDropdownItemComponent.html +1 -1
- package/docs/components/EuiEclBannerComponent.html +1 -1
- package/docs/components/EuiEclButtonComponent.html +1 -1
- package/docs/components/EuiEclCarouselComponent.html +1 -1
- package/docs/components/EuiEclCarouselItemComponent.html +1 -1
- package/docs/components/EuiEclIconComponent.html +1 -1
- package/docs/components/EuiEclMessageComponent.html +1 -1
- package/docs/components/EuiEditorComponent.html +1 -1
- package/docs/components/EuiEditorCountersComponent.html +1 -1
- package/docs/components/EuiEditorHtmlViewComponent.html +1 -1
- package/docs/components/EuiEditorImageDialogComponent.html +1 -1
- package/docs/components/EuiEditorJsonViewComponent.html +1 -1
- package/docs/components/EuiExpandContentComponent.html +1 -1
- package/docs/components/EuiFeedbackMessageComponent.html +1 -1
- package/docs/components/EuiFieldsetComponent.html +1 -1
- package/docs/components/EuiFilePreviewComponent.html +1 -1
- package/docs/components/EuiFileUploadComponent.html +1 -1
- package/docs/components/EuiFileUploadProgressComponent.html +1 -1
- package/docs/components/EuiFooterComponent.html +1 -1
- package/docs/components/EuiGrowlComponent.html +1 -1
- package/docs/components/EuiHeaderAppComponent.html +1 -1
- package/docs/components/EuiHeaderAppNameComponent.html +1 -1
- package/docs/components/EuiHeaderAppNameLogoComponent.html +1 -1
- package/docs/components/EuiHeaderAppSubtitleComponent.html +1 -1
- package/docs/components/EuiHeaderComponent.html +1 -1
- package/docs/components/EuiHeaderEnvironmentComponent.html +1 -1
- package/docs/components/EuiHeaderLogoComponent.html +1 -1
- package/docs/components/EuiHeaderUserProfileComponent.html +1 -1
- package/docs/components/EuiIconColorComponent.html +1 -1
- package/docs/components/EuiIconComponent.html +1 -1
- package/docs/components/EuiIconSvgComponent.html +1 -1
- package/docs/components/EuiIconToggleComponent.html +1 -1
- package/docs/components/EuiInputCheckboxComponent.html +1 -1
- package/docs/components/EuiInputGroupComponent.html +1 -1
- package/docs/components/EuiInputNumberComponent.html +1 -1
- package/docs/components/EuiInputRadioComponent.html +1 -1
- package/docs/components/EuiInputTextComponent.html +1 -1
- package/docs/components/EuiLabelComponent.html +1 -1
- package/docs/components/EuiLanguageSelectorComponent.html +1 -1
- package/docs/components/EuiListComponent.html +1 -1
- package/docs/components/EuiListItemComponent.html +1 -1
- package/docs/components/EuiMenuComponent.html +1 -1
- package/docs/components/EuiMenuItemComponent.html +1 -1
- package/docs/components/EuiMessageBoxComponent.html +1 -1
- package/docs/components/EuiModalSelectorComponent.html +1 -1
- package/docs/components/EuiNotificationItemComponent.html +1 -1
- package/docs/components/EuiNotificationItemV2Component.html +1 -1
- package/docs/components/EuiNotificationsComponent.html +1 -1
- package/docs/components/EuiNotificationsV2Component.html +1 -1
- package/docs/components/EuiOverlayBodyComponent.html +1 -1
- package/docs/components/EuiOverlayComponent.html +1 -1
- package/docs/components/EuiOverlayFooterComponent.html +1 -1
- package/docs/components/EuiOverlayHeaderComponent.html +1 -1
- package/docs/components/EuiOverlayHeaderTitleComponent.html +1 -1
- package/docs/components/EuiPageBreadcrumbComponent.html +1 -1
- package/docs/components/EuiPageColumnComponent.html +1 -1
- package/docs/components/EuiPageColumnsComponent.html +1 -1
- package/docs/components/EuiPageComponent.html +1 -1
- package/docs/components/EuiPageContentComponent.html +1 -1
- package/docs/components/EuiPageFooterComponent.html +1 -1
- package/docs/components/EuiPageHeaderComponent.html +1 -1
- package/docs/components/EuiPageHeroHeaderComponent.html +1 -1
- package/docs/components/EuiPageTopContentComponent.html +1 -1
- package/docs/components/EuiPaginatorComponent.html +1 -1
- package/docs/components/EuiPopoverComponent.html +1 -1
- package/docs/components/EuiProgressBarComponent.html +1 -1
- package/docs/components/EuiProgressCircleComponent.html +1 -1
- package/docs/components/EuiResizableComponent.html +1 -1
- package/docs/components/EuiSearchComponent.html +1 -1
- package/docs/components/EuiSelectComponent.html +1 -1
- package/docs/components/EuiSidebarMenuComponent.html +1 -1
- package/docs/components/EuiSidebarToggleComponent.html +1 -1
- package/docs/components/EuiSlideToggleComponent.html +1 -1
- package/docs/components/EuiSlideToggleTestComponent.html +1 -1
- package/docs/components/EuiTabComponent.html +1 -1
- package/docs/components/EuiTabContentComponent.html +1 -1
- package/docs/components/EuiTabLabelComponent.html +1 -1
- package/docs/components/EuiTableComponent.html +1 -1
- package/docs/components/EuiTableExpandableRowComponent.html +1 -1
- package/docs/components/EuiTableFilterComponent.html +1 -1
- package/docs/components/EuiTableSelectableHeaderComponent.html +1 -1
- package/docs/components/EuiTableSelectableRowComponent.html +1 -1
- package/docs/components/EuiTableSortableColComponent.html +1 -1
- package/docs/components/EuiTabsComponent.html +1 -1
- package/docs/components/EuiTextareaComponent.html +1 -1
- package/docs/components/EuiTimebarComponent.html +1 -1
- package/docs/components/EuiTimelineComponent.html +1 -1
- package/docs/components/EuiTimelineItemComponent.html +1 -1
- package/docs/components/EuiTimepickerComponent.html +1 -1
- package/docs/components/EuiToolbarAppComponent.html +1 -1
- package/docs/components/EuiToolbarCenterComponent.html +1 -1
- package/docs/components/EuiToolbarComponent.html +1 -1
- package/docs/components/EuiToolbarEnvironmentComponent.html +1 -1
- package/docs/components/EuiToolbarItemComponent.html +1 -1
- package/docs/components/EuiToolbarItemNotificationsComponent.html +1 -1
- package/docs/components/EuiToolbarItemSearchComponent.html +1 -1
- package/docs/components/EuiToolbarItemUserProfileComponent.html +1 -1
- package/docs/components/EuiToolbarItemsComponent.html +1 -1
- package/docs/components/EuiToolbarLogoComponent.html +1 -1
- package/docs/components/EuiToolbarMenuComponent.html +1 -1
- package/docs/components/EuiTooltipContainerComponent.html +1 -1
- package/docs/components/EuiTreeComponent.html +1 -1
- package/docs/components/EuiTreeListComponent.html +1 -1
- package/docs/components/EuiTreeListItemComponent.html +1 -1
- package/docs/components/EuiTreeListItemContentComponent.html +1 -1
- package/docs/components/EuiTreeListToolbarComponent.html +1 -1
- package/docs/components/EuiUserProfileCardComponent.html +1 -1
- package/docs/components/EuiUserProfileComponent.html +1 -1
- package/docs/components/EuiUserProfileMenuComponent.html +1 -1
- package/docs/components/EuiUserProfileMenuItemComponent.html +1 -1
- package/docs/components/EuiUxTreeComponent.html +1 -1
- package/docs/components/EuiUxTreeNodeComponent.html +1 -1
- package/docs/components/EuiUxTreeToolbarComponent.html +1 -1
- package/docs/components/EuiWizardComponent.html +1 -1
- package/docs/components/EuiWizardStepComponent.html +1 -1
- package/docs/components/QuillEditorComponent.html +1 -1
- package/docs/dependencies.html +2 -2
- package/docs/index.html +1 -1
- package/docs/js/menu-wc.js +9 -3
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +83 -0
- package/docs/modules/EuiAutocompleteModule.html +6 -3
- package/esm2022/eui-autocomplete/animations/animations.mjs +15 -0
- package/esm2022/eui-autocomplete/eui-autocomplete-option/eui-autocomplete-option.component.mjs +60 -0
- package/esm2022/eui-autocomplete/eui-autocomplete-option-group/eui-autocomplete-option-group.component.mjs +25 -0
- package/esm2022/eui-autocomplete/eui-autocomplete.component.mjs +627 -560
- package/esm2022/eui-autocomplete/eui-autocomplete.module.mjs +29 -21
- package/esm2022/eui-autocomplete/index.mjs +2 -1
- package/esm2022/eui-autocomplete/models/eui-autocomplete-item.model.mjs +1 -3
- package/esm2022/eui-autocomplete/validators/force-selection-from-data.validator.mjs +27 -0
- package/esm2022/eui-dropdown/dropdown-item/eui-dropdown-item.component.mjs +2 -2
- package/esm2022/eui-dropdown/eui-dropdown.component.mjs +3 -3
- package/esm2022/shared/eui-accessible-button-icon/eui-accessible-button-icon.component.mjs +3 -3
- package/eui-autocomplete/animations/animations.d.ts +3 -0
- package/eui-autocomplete/animations/animations.d.ts.map +1 -0
- package/eui-autocomplete/eui-autocomplete-option/eui-autocomplete-option.component.d.ts +16 -0
- package/eui-autocomplete/eui-autocomplete-option/eui-autocomplete-option.component.d.ts.map +1 -0
- package/eui-autocomplete/eui-autocomplete-option-group/eui-autocomplete-option-group.component.d.ts +9 -0
- package/eui-autocomplete/eui-autocomplete-option-group/eui-autocomplete-option-group.component.d.ts.map +1 -0
- package/eui-autocomplete/eui-autocomplete.component.d.ts +111 -137
- package/eui-autocomplete/eui-autocomplete.component.d.ts.map +1 -1
- package/eui-autocomplete/eui-autocomplete.module.d.ts +11 -9
- package/eui-autocomplete/eui-autocomplete.module.d.ts.map +1 -1
- package/eui-autocomplete/index.d.ts +1 -0
- package/eui-autocomplete/index.d.ts.map +1 -1
- package/eui-autocomplete/models/eui-autocomplete-item.model.d.ts +2 -2
- package/eui-autocomplete/models/eui-autocomplete-item.model.d.ts.map +1 -1
- package/eui-autocomplete/validators/force-selection-from-data.validator.d.ts +27 -0
- package/eui-autocomplete/validators/force-selection-from-data.validator.d.ts.map +1 -0
- package/fesm2022/eui-components-eui-autocomplete.mjs +765 -578
- package/fesm2022/eui-components-eui-autocomplete.mjs.map +1 -1
- package/fesm2022/eui-components-eui-dropdown.mjs +4 -4
- package/fesm2022/eui-components-eui-dropdown.mjs.map +1 -1
- package/fesm2022/eui-components-shared.mjs +2 -2
- package/fesm2022/eui-components-shared.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,146 +1,130 @@
|
|
1
|
-
import { OnInit, OnDestroy,
|
2
|
-
import {
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges, AfterViewInit, ViewContainerRef, TemplateRef, ElementRef, EventEmitter, ChangeDetectorRef, QueryList } from '@angular/core';
|
2
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
4
|
+
import { Overlay } from '@angular/cdk/overlay';
|
5
|
+
import { CdkVirtualScrollViewport, ScrollDispatcher } from '@angular/cdk/scrolling';
|
3
6
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { ScrollDispatcher, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
7
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
8
|
+
import { EuiChipDragDrop } from '@eui/components/eui-chip-list';
|
7
9
|
import { EuiChip } from '@eui/components/eui-chip';
|
8
|
-
import { EuiChipDragDrop, EuiChipListComponent } from '@eui/components/eui-chip-list';
|
9
10
|
import { EuiTemplateDirective } from '@eui/components/directives';
|
10
|
-
import { BaseDirective } from '@eui/components/shared';
|
11
11
|
import { EuiAutoCompleteItem } from './models/eui-autocomplete-item.model';
|
12
12
|
import * as i0 from "@angular/core";
|
13
|
-
|
13
|
+
import * as i1 from "@eui/components/shared";
|
14
|
+
export declare class EuiAutocompleteComponent implements OnInit, OnDestroy, ControlValueAccessor, OnChanges, AfterViewInit {
|
15
|
+
private overlay;
|
14
16
|
private cd;
|
15
|
-
private
|
16
|
-
private scrollDispatcher;
|
17
|
+
private viewContainerRef;
|
17
18
|
private elementRef;
|
18
|
-
|
19
|
-
|
19
|
+
private liveAnnouncer;
|
20
|
+
private scrollDispatcher;
|
21
|
+
private control;
|
20
22
|
autocompleteData: EuiAutoCompleteItem[];
|
23
|
+
visibleOptions: number;
|
24
|
+
matching: 'startWith' | 'contains';
|
25
|
+
placeholder: string;
|
21
26
|
autocompleteDataSelected: EuiAutoCompleteItem[];
|
22
27
|
chipsSortOrder: 'ASC' | 'DESC';
|
23
28
|
itemsSortOrder: 'ASC' | 'DESC';
|
24
|
-
placeholder: string;
|
25
|
-
matching: 'startWith' | 'contains';
|
26
29
|
chipsPosition: 'top' | 'bottom' | 'inside';
|
27
|
-
panelWidth: string | number;
|
28
|
-
visibleOptions: number;
|
29
|
-
classList: string;
|
30
30
|
groupBy: string;
|
31
|
+
toggleLinkMoreLabel: string;
|
32
|
+
toggleLinkLessLabel: string;
|
33
|
+
classList: string;
|
34
|
+
panelWidth: string | number;
|
31
35
|
dragAndDropSourceName: string;
|
32
36
|
dragAndDropConnectedTo: string[];
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
37
|
+
isFreeValueAllowed: BooleanInput;
|
38
|
+
isReadonly: BooleanInput;
|
39
|
+
isLoading: BooleanInput;
|
40
|
+
hasChips: BooleanInput;
|
41
|
+
isAsync: BooleanInput;
|
42
|
+
isChipsSorted: BooleanInput;
|
43
|
+
isItemsSorted: BooleanInput;
|
44
|
+
isChipsRemovable: BooleanInput;
|
45
|
+
isDuplicateValueAllowed: BooleanInput;
|
46
|
+
isAddOnBlur: BooleanInput;
|
47
|
+
isForceSelection: BooleanInput;
|
48
|
+
maxVisibleChipsCount: NumberInput;
|
49
|
+
chipsLabelTruncateCount: NumberInput;
|
50
|
+
isMaxVisibleChipsOpened: BooleanInput;
|
51
|
+
isChipsDragAndDrop: BooleanInput;
|
52
|
+
autocompleteOptions: BehaviorSubject<EuiAutoCompleteItem[]>;
|
53
|
+
selectedOptionIndex: number;
|
54
|
+
autocompleteControl: FormControl<string>;
|
55
|
+
isDisabled: boolean;
|
56
|
+
chips: EuiChip[];
|
57
|
+
distinctOptionGroups: string[];
|
58
|
+
groupedOptions: BehaviorSubject<{
|
59
|
+
[id: string]: {
|
60
|
+
options: EuiAutoCompleteItem[];
|
61
|
+
ancestorLength: number;
|
54
62
|
};
|
55
63
|
}>;
|
64
|
+
globalOptionIndex: number;
|
65
|
+
itemSize: number;
|
66
|
+
autocompleteOptionTemplate: TemplateRef<{
|
67
|
+
$implicit: EuiAutoCompleteItem;
|
68
|
+
}>;
|
56
69
|
autocompleteOptGroupTemplate: TemplateRef<{
|
57
70
|
$implicit: {
|
58
71
|
label: string;
|
59
72
|
};
|
60
73
|
}>;
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
get async(): boolean;
|
80
|
-
set async(value: BooleanInput);
|
81
|
-
private _async;
|
82
|
-
get addOnBlur(): boolean;
|
83
|
-
set addOnBlur(value: BooleanInput);
|
84
|
-
private _addOnBlur;
|
85
|
-
get isFreeValueAllowed(): boolean;
|
86
|
-
set isFreeValueAllowed(value: BooleanInput);
|
87
|
-
private _isFreeValueAllowed;
|
88
|
-
get isDuplicateValueAllowed(): boolean;
|
89
|
-
set isDuplicateValueAllowed(value: BooleanInput);
|
90
|
-
private _isDuplicateValueAllowed;
|
91
|
-
get isLoading(): boolean;
|
92
|
-
set isLoading(value: BooleanInput);
|
93
|
-
private _isLoading;
|
94
|
-
get isChipsRemovable(): boolean;
|
95
|
-
set isChipsRemovable(value: BooleanInput);
|
96
|
-
private _isChipsRemovable;
|
97
|
-
get maxVisibleChipsCount(): number;
|
98
|
-
set maxVisibleChipsCount(value: NumberInput);
|
99
|
-
private _maxVisibleChipsCount;
|
100
|
-
get chipsLabelTruncateCount(): number;
|
101
|
-
set chipsLabelTruncateCount(value: NumberInput);
|
102
|
-
private _chipsLabelTruncateCount;
|
103
|
-
get isMaxVisibleChipsOpened(): boolean;
|
104
|
-
set isMaxVisibleChipsOpened(value: BooleanInput);
|
105
|
-
private _isMaxVisibleChipsOpened;
|
106
|
-
get readonly(): boolean;
|
107
|
-
set readonly(value: BooleanInput);
|
108
|
-
private _readonly;
|
109
|
-
get isChipsSorted(): boolean;
|
110
|
-
set isChipsSorted(value: BooleanInput);
|
111
|
-
private _isChipsSorted;
|
112
|
-
get isItemsSorted(): boolean;
|
113
|
-
set isItemsSorted(value: BooleanInput);
|
114
|
-
private _isItemsSorted;
|
115
|
-
get isChipsDragAndDrop(): boolean;
|
116
|
-
set isChipsDragAndDrop(value: BooleanInput);
|
117
|
-
private _isChipsDragAndDrop;
|
118
|
-
get isForceSelection(): boolean;
|
119
|
-
set isForceSelection(value: BooleanInput);
|
120
|
-
private _isForceSelection;
|
121
|
-
get autoActiveFirstOption(): boolean;
|
122
|
-
set autoActiveFirstOption(value: BooleanInput);
|
123
|
-
private _autoActiveFirstOption;
|
124
|
-
get isChipsGrid(): boolean;
|
74
|
+
get cssClasses(): string;
|
75
|
+
templates: QueryList<EuiTemplateDirective>;
|
76
|
+
templatePortalContent: TemplateRef<ElementRef>;
|
77
|
+
inputContainerRef: ElementRef;
|
78
|
+
virtualScrolling: CdkVirtualScrollViewport;
|
79
|
+
input: ElementRef;
|
80
|
+
panelClose: EventEmitter<any>;
|
81
|
+
panelOpen: EventEmitter<any>;
|
82
|
+
inputFocus: EventEmitter<any>;
|
83
|
+
inputBlur: EventEmitter<any>;
|
84
|
+
clear: EventEmitter<any>;
|
85
|
+
selectionChange: EventEmitter<EuiAutoCompleteItem[]>;
|
86
|
+
itemAdd: EventEmitter<EuiAutoCompleteItem>;
|
87
|
+
itemRemove: EventEmitter<EuiAutoCompleteItem>;
|
88
|
+
inputChange: EventEmitter<string>;
|
89
|
+
chipDragStart: EventEmitter<EuiChipDragDrop>;
|
90
|
+
chipDragRelease: EventEmitter<EuiChipDragDrop>;
|
91
|
+
chipDrop: EventEmitter<EuiChipDragDrop>;
|
125
92
|
private destroy$;
|
126
|
-
private
|
127
|
-
private
|
128
|
-
private
|
129
|
-
private fieldValue;
|
130
|
-
private scrollDispatcherSubscription;
|
93
|
+
private overlayRef;
|
94
|
+
private isOpen$;
|
95
|
+
private templatePortal;
|
131
96
|
private keyboardOptionSelectorHandlerSubscription;
|
132
|
-
|
97
|
+
private addOnBlurClickHandlerSubscription;
|
98
|
+
private isForceSelectionSubscription;
|
99
|
+
private keyboardSubscription;
|
100
|
+
private autocompleteOptionsSubscription;
|
101
|
+
private scrollDispatcherSubscription;
|
102
|
+
private windowResizeSubscription;
|
103
|
+
private value;
|
104
|
+
private TOP;
|
105
|
+
private BOTTOM;
|
106
|
+
private preferredPositons;
|
107
|
+
constructor(overlay: Overlay, cd: ChangeDetectorRef, viewContainerRef: ViewContainerRef, elementRef: ElementRef, liveAnnouncer: LiveAnnouncer, scrollDispatcher: ScrollDispatcher, control: NgControl);
|
133
108
|
ngOnChanges(c: SimpleChanges): void;
|
134
109
|
ngOnInit(): void;
|
135
|
-
ngDoCheck(): void;
|
136
110
|
ngAfterViewInit(): void;
|
137
111
|
ngOnDestroy(): void;
|
138
|
-
get nbOptionsVisible(): number;
|
139
112
|
get cdkVirtualScrollViewport(): number;
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
113
|
+
get isOpen(): boolean;
|
114
|
+
get hasOptionsResult(): boolean;
|
115
|
+
openPanel(): void;
|
116
|
+
closePanel(): void;
|
117
|
+
onOptionSelected(e: EuiAutoCompleteItem): void;
|
118
|
+
add(value: string): void;
|
119
|
+
groupsTrackByFn(index: number, group: string): string;
|
120
|
+
optionsTrackByFn(index: number, item: EuiAutoCompleteItem): string | number;
|
121
|
+
writeValue(value: EuiAutoCompleteItem | EuiAutoCompleteItem[]): void;
|
122
|
+
setDisabledState(isDisabled: boolean): void;
|
123
|
+
registerOnChange(fn: () => void): void;
|
124
|
+
registerOnTouched(fn: () => void): void;
|
125
|
+
onClear(): void;
|
126
|
+
onFocus(): void;
|
127
|
+
onBlur(): void;
|
144
128
|
onChipRemove(e: {
|
145
129
|
chips: EuiChip[];
|
146
130
|
removed: EuiChip | {
|
@@ -148,31 +132,21 @@ export declare class EuiAutocompleteComponent extends BaseDirective implements O
|
|
148
132
|
event: Event;
|
149
133
|
};
|
150
134
|
}): void;
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
onChipDragReleased(e: any): void;
|
163
|
-
onClear(): void;
|
164
|
-
onChipListFocus(): void;
|
165
|
-
onKeyDownBackspace(): void;
|
135
|
+
onChipDropped(e: EuiChipDragDrop): void;
|
136
|
+
onChipDragStarted(e: EuiChipDragDrop): void;
|
137
|
+
onChipDragReleased(e: EuiChipDragDrop): void;
|
138
|
+
private getItemSize;
|
139
|
+
private setOptions;
|
140
|
+
private getPositionStrategy;
|
141
|
+
private getScrollStrategy;
|
142
|
+
private filterOptions;
|
143
|
+
private mapToChip;
|
144
|
+
private orderArray;
|
145
|
+
private groupingHandler;
|
166
146
|
private isVisible;
|
167
|
-
private inputValueHandler;
|
168
147
|
private onChange;
|
169
148
|
private onTouch;
|
170
|
-
|
171
|
-
|
172
|
-
private generateId;
|
173
|
-
private orderItems;
|
174
|
-
private groupingHandler;
|
175
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EuiAutocompleteComponent, [null, { optional: true; self: true; }, null, null]>;
|
176
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EuiAutocompleteComponent, "eui-autocomplete, input[euiAutocomplete]", never, { "toggleLinkMoreLabel": { "alias": "toggleLinkMoreLabel"; "required": false; }; "toggleLinkLessLabel": { "alias": "toggleLinkLessLabel"; "required": false; }; "autocompleteData": { "alias": "autocompleteData"; "required": false; }; "autocompleteDataSelected": { "alias": "autocompleteDataSelected"; "required": false; }; "chipsSortOrder": { "alias": "chipsSortOrder"; "required": false; }; "itemsSortOrder": { "alias": "itemsSortOrder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "matching": { "alias": "matching"; "required": false; }; "chipsPosition": { "alias": "chipsPosition"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "visibleOptions": { "alias": "visibleOptions"; "required": false; }; "classList": { "alias": "classList"; "required": false; }; "groupBy": { "alias": "groupBy"; "required": false; }; "dragAndDropSourceName": { "alias": "dragAndDropSourceName"; "required": false; }; "dragAndDropConnectedTo": { "alias": "dragAndDropConnectedTo"; "required": false; }; "hasChips": { "alias": "hasChips"; "required": false; }; "isGrid": { "alias": "isGrid"; "required": false; }; "async": { "alias": "async"; "required": false; }; "addOnBlur": { "alias": "addOnBlur"; "required": false; }; "isFreeValueAllowed": { "alias": "isFreeValueAllowed"; "required": false; }; "isDuplicateValueAllowed": { "alias": "isDuplicateValueAllowed"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isChipsRemovable": { "alias": "isChipsRemovable"; "required": false; }; "maxVisibleChipsCount": { "alias": "maxVisibleChipsCount"; "required": false; }; "chipsLabelTruncateCount": { "alias": "chipsLabelTruncateCount"; "required": false; }; "isMaxVisibleChipsOpened": { "alias": "isMaxVisibleChipsOpened"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isChipsSorted": { "alias": "isChipsSorted"; "required": false; }; "isItemsSorted": { "alias": "isItemsSorted"; "required": false; }; "isChipsDragAndDrop": { "alias": "isChipsDragAndDrop"; "required": false; }; "isForceSelection": { "alias": "isForceSelection"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; }, { "clear": "clear"; "panelClose": "panelClose"; "panelOpen": "panelOpen"; "inputBlur": "inputBlur"; "selectionChange": "selectionChange"; "itemAdd": "itemAdd"; "itemRemove": "itemRemove"; "inputChange": "inputChange"; "chipDragStart": "chipDragStart"; "chipDragRelease": "chipDragRelease"; "chipDrop": "chipDrop"; }, ["templates"], never, false, never>;
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EuiAutocompleteComponent, [null, null, null, null, null, null, { optional: true; self: true; }]>;
|
150
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EuiAutocompleteComponent, "eui-autocomplete, input[euiAutocomplete]", never, { "autocompleteData": { "alias": "autocompleteData"; "required": false; }; "visibleOptions": { "alias": "visibleOptions"; "required": false; }; "matching": { "alias": "matching"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocompleteDataSelected": { "alias": "autocompleteDataSelected"; "required": false; }; "chipsSortOrder": { "alias": "chipsSortOrder"; "required": false; }; "itemsSortOrder": { "alias": "itemsSortOrder"; "required": false; }; "chipsPosition": { "alias": "chipsPosition"; "required": false; }; "groupBy": { "alias": "groupBy"; "required": false; }; "toggleLinkMoreLabel": { "alias": "toggleLinkMoreLabel"; "required": false; }; "toggleLinkLessLabel": { "alias": "toggleLinkLessLabel"; "required": false; }; "classList": { "alias": "classList"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "dragAndDropSourceName": { "alias": "dragAndDropSourceName"; "required": false; }; "dragAndDropConnectedTo": { "alias": "dragAndDropConnectedTo"; "required": false; }; "isFreeValueAllowed": { "alias": "isFreeValueAllowed"; "required": false; }; "isReadonly": { "alias": "isReadonly"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "hasChips": { "alias": "hasChips"; "required": false; }; "isAsync": { "alias": "isAsync"; "required": false; }; "isChipsSorted": { "alias": "isChipsSorted"; "required": false; }; "isItemsSorted": { "alias": "isItemsSorted"; "required": false; }; "isChipsRemovable": { "alias": "isChipsRemovable"; "required": false; }; "isDuplicateValueAllowed": { "alias": "isDuplicateValueAllowed"; "required": false; }; "isAddOnBlur": { "alias": "isAddOnBlur"; "required": false; }; "isForceSelection": { "alias": "isForceSelection"; "required": false; }; "maxVisibleChipsCount": { "alias": "maxVisibleChipsCount"; "required": false; }; "chipsLabelTruncateCount": { "alias": "chipsLabelTruncateCount"; "required": false; }; "isMaxVisibleChipsOpened": { "alias": "isMaxVisibleChipsOpened"; "required": false; }; "isChipsDragAndDrop": { "alias": "isChipsDragAndDrop"; "required": false; }; }, { "panelClose": "panelClose"; "panelOpen": "panelOpen"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; "clear": "clear"; "selectionChange": "selectionChange"; "itemAdd": "itemAdd"; "itemRemove": "itemRemove"; "inputChange": "inputChange"; "chipDragStart": "chipDragStart"; "chipDragRelease": "chipDragRelease"; "chipDrop": "chipDrop"; }, ["templates"], never, false, [{ directive: typeof i1.BaseStatesDirective; inputs: { "euiSecondary": "euiSecondary"; "euiSuccess": "euiSuccess"; "euiInfo": "euiInfo"; "euiWarning": "euiWarning"; "euiDanger": "euiDanger"; "euiAccent": "euiAccent"; }; outputs: {}; }]>;
|
177
151
|
}
|
178
152
|
//# sourceMappingURL=eui-autocomplete.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-autocomplete.component.d.ts","sourceRoot":"","sources":["../../eui-autocomplete/eui-autocomplete.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"eui-autocomplete.component.d.ts","sourceRoot":"","sources":["../../eui-autocomplete/eui-autocomplete.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAe,aAAa,EAAE,gBAAgB,EAC1I,WAAW,EAAE,UAAU,EAAS,YAAY,EAA0B,iBAAiB,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1J,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAuD,MAAM,MAAM,CAAC;AAE5F,OAAO,EAAmE,OAAO,EAChF,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAiB,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAkB,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;;;AAG3E,qBAqBa,wBAAyB,YAAW,MAAM,EAAE,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE,aAAa;IA+F1G,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,gBAAgB;IACJ,OAAO,CAAC,OAAO;IApG9B,gBAAgB,E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gB/F,aAAa,CAAC,CAAC,EAAE,eAAe,GAAG,IAAI;IAYvC,iBAAiB,CAAC,CAAC,EAAE,eAAe,GAAG,IAAI;IAI3C,kBAAkB,CAAC,CAAC,EAAE,eAAe,GAAG,IAAI;IAInD,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,aAAa;IAgCrB,OAAO,CAAC,SAAS;IAoBjB,OAAO,CAAC,UAAU;IA2BlB,OAAO,CAAC,eAAe;IAoBvB,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,QAAQ,CAEd;IAEF,OAAO,CAAC,OAAO,CAEb;yCA7uBO,wBAAwB;2CAAxB,wBAAwB;CA8uBpC"}
|
@@ -1,16 +1,18 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./eui-autocomplete.component";
|
3
|
-
import * as i2 from "
|
4
|
-
import * as i3 from "
|
5
|
-
import * as i4 from "@angular/
|
6
|
-
import * as i5 from "@
|
7
|
-
import * as i6 from "@
|
8
|
-
import * as i7 from "@eui/components/eui-
|
9
|
-
import * as i8 from "@
|
10
|
-
import * as i9 from "@angular/cdk/
|
3
|
+
import * as i2 from "./eui-autocomplete-option/eui-autocomplete-option.component";
|
4
|
+
import * as i3 from "./eui-autocomplete-option-group/eui-autocomplete-option-group.component";
|
5
|
+
import * as i4 from "@angular/common";
|
6
|
+
import * as i5 from "@angular/forms";
|
7
|
+
import * as i6 from "@angular/cdk/overlay";
|
8
|
+
import * as i7 from "@eui/components/eui-input-text";
|
9
|
+
import * as i8 from "@angular/cdk/scrolling";
|
10
|
+
import * as i9 from "@angular/cdk/a11y";
|
11
|
+
import * as i10 from "@eui/components/eui-chip-list";
|
12
|
+
import * as i11 from "@eui/components/eui-chip";
|
11
13
|
export declare class EuiAutocompleteModule {
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiAutocompleteModule, never>;
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiAutocompleteModule, [typeof i1.EuiAutocompleteComponent
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiAutocompleteModule, [typeof i1.EuiAutocompleteComponent, typeof i2.EuiAutocompleteOptionComponent, typeof i3.EuiAutocompleteOptionGroupComponent], [typeof i4.CommonModule, typeof i5.ReactiveFormsModule, typeof i6.OverlayModule, typeof i7.EuiInputTextModule, typeof i8.ScrollingModule, typeof i9.A11yModule, typeof i10.EuiChipListModule, typeof i11.EuiChipModule], [typeof i1.EuiAutocompleteComponent]>;
|
14
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<EuiAutocompleteModule>;
|
15
17
|
}
|
16
18
|
//# sourceMappingURL=eui-autocomplete.module.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-autocomplete.module.d.ts","sourceRoot":"","sources":["../../eui-autocomplete/eui-autocomplete.module.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"eui-autocomplete.module.d.ts","sourceRoot":"","sources":["../../eui-autocomplete/eui-autocomplete.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAeA,qBAkBa,qBAAqB;yCAArB,qBAAqB;0CAArB,qBAAqB;0CAArB,qBAAqB;CAAG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../eui-autocomplete/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../eui-autocomplete/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { EuiChipTooltip } from '@eui/components/eui-chip';
|
2
|
-
export declare class EuiAutoCompleteItem
|
2
|
+
export declare class EuiAutoCompleteItem {
|
3
3
|
id: string | number;
|
4
4
|
euiInternalId: string;
|
5
5
|
label: string;
|
@@ -12,7 +12,7 @@ export declare class EuiAutoCompleteItem<METADATA = any> {
|
|
12
12
|
dragAndDropSource: string;
|
13
13
|
isDisabled: boolean;
|
14
14
|
tooltip?: EuiChipTooltip;
|
15
|
-
metadata?:
|
15
|
+
metadata?: any;
|
16
16
|
constructor(values?: {});
|
17
17
|
}
|
18
18
|
//# sourceMappingURL=eui-autocomplete-item.model.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-autocomplete-item.model.d.ts","sourceRoot":"","sources":["../../../eui-autocomplete/models/eui-autocomplete-item.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"eui-autocomplete-item.model.d.ts","sourceRoot":"","sources":["../../../eui-autocomplete/models/eui-autocomplete-item.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBAAa,mBAAmB;IAC5B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC/E,SAAS,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,UAAS;IACnB,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB,QAAQ,CAAC,EAAE,GAAG,CAAC;gBAEH,MAAM,KAAK;CAG1B"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
2
|
+
import { EuiAutoCompleteItem } from '../models/eui-autocomplete-item.model';
|
3
|
+
/**
|
4
|
+
* @description
|
5
|
+
* Validator checking if the user choose the value in the panel.
|
6
|
+
*
|
7
|
+
* @usageNotes
|
8
|
+
* ```typescript
|
9
|
+
* autocompleteData: EuiAutoCompleteItem[] = [
|
10
|
+
* new EuiAutoCompleteItem({ id: 1, label: 'Ananas' }),
|
11
|
+
* new EuiAutoCompleteItem({ id: 2, label: 'Apple' }),
|
12
|
+
* new EuiAutoCompleteItem({ id: 3, label: 'Banana' }),
|
13
|
+
* ]
|
14
|
+
* const autocomplete = new FormControl({ label: 'abcdef' }, euiAutocompleteForceSelectionFromData);
|
15
|
+
* console.log(autocomplete.errors); // { isInData: { isInData: false, invalidValues: { label: 'abcdef' } } }
|
16
|
+
* ```
|
17
|
+
*
|
18
|
+
* @returns A validator function that returns an error with the `isInData` to false and a list of invalid values if the validation
|
19
|
+
* check fails, otherwise `null`.
|
20
|
+
*/
|
21
|
+
export declare const euiAutocompleteForceSelectionFromData: (control: AbstractControl<EuiAutoCompleteItem | EuiAutoCompleteItem[]>) => {
|
22
|
+
isInData: {
|
23
|
+
isInData: boolean;
|
24
|
+
invalidValues: EuiAutoCompleteItem | EuiAutoCompleteItem[];
|
25
|
+
};
|
26
|
+
} | null;
|
27
|
+
//# sourceMappingURL=force-selection-from-data.validator.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"force-selection-from-data.validator.d.ts","sourceRoot":"","sources":["../../../eui-autocomplete/validators/force-selection-from-data.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAE5E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qCAAqC,YAAa,gBAAgB,mBAAmB,GAAG,mBAAmB,EAAE,CAAC,KACvH;IAAE,QAAQ,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,mBAAmB,GAAG,mBAAmB,EAAE,CAAA;KAAE,CAAA;CAAE,GAAG,IASrG,CAAC"}
|