ngx-tethys 21.0.6 → 21.0.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/CHANGELOG.md +20 -0
- package/button/styles/button-group.scss +6 -0
- package/fesm2022/ngx-tethys-autocomplete.mjs +17 -13
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-button.mjs +4 -3
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +27 -18
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +21 -21
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +32 -33
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +214 -205
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +30 -33
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +5 -6
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property-operation.mjs +5 -7
- package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +27 -30
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +37 -43
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +25 -20
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/types/ngx-tethys-autocomplete.d.ts +3 -2
- package/types/ngx-tethys-button.d.ts +2 -2
- package/types/ngx-tethys-carousel.d.ts +9 -8
- package/types/ngx-tethys-dropdown.d.ts +4 -4
- package/types/ngx-tethys-form.d.ts +6 -5
- package/types/ngx-tethys-layout.d.ts +4 -1
- package/types/ngx-tethys-list.d.ts +3 -5
- package/types/ngx-tethys-menu.d.ts +3 -4
- package/types/ngx-tethys-property-operation.d.ts +1 -1
- package/types/ngx-tethys-shared.d.ts +4 -5
- package/types/ngx-tethys-table.d.ts +8 -7
- package/types/ngx-tethys-tabs.d.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [21.0.8](github.com/atinc/ngx-tethys/compare/21.0.7...21.0.8) (2026-08-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **button:** 修复button-group 样式 #TINFR-3823 ([#3844](/github.com/atinc/ngx-tethys/issues/3844)) ([c1eb10d](github.com/atinc/ngx-tethys/commits/c1eb10d01ca6b2c85494549f534b76ebcd87fd47)), closes [#TINFR-3823](github.com/atinc/ngx-tethys/issues/TINFR-3823)
|
|
11
|
+
* update ngAfterViewInit to afterNextRender support dynamic updated #TINFR-3818 ([#3841](/github.com/atinc/ngx-tethys/issues/3841)) ([9889022](github.com/atinc/ngx-tethys/commits/98890225cde6e772c65881e92a1da38c7dc4b4ef)), closes [#TINFR-3818](github.com/atinc/ngx-tethys/issues/TINFR-3818)
|
|
12
|
+
|
|
13
|
+
## [21.0.7](github.com/atinc/ngx-tethys/compare/21.0.6...21.0.7) (2026-08-04)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **button:** 修复button type参数无默认值 #TINFR-3815 ([6839cc6](github.com/atinc/ngx-tethys/commits/6839cc6c21b642772ad03b88a8526e0d29a3e75c)), closes [#TINFR-3815](github.com/atinc/ngx-tethys/issues/TINFR-3815)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add sidebar to thy-layout set has-sidebar class #NEXUS-3955 ([cd02729](github.com/atinc/ngx-tethys/commits/cd027295ad942f9427399feeb2da9dcd7d746ab7)), closes [#NEXUS-3955](github.com/atinc/ngx-tethys/issues/NEXUS-3955)
|
|
24
|
+
|
|
5
25
|
## [21.0.6](github.com/atinc/ngx-tethys/compare/21.0.5...21.0.6) (2026-07-02)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -153,10 +153,16 @@
|
|
|
153
153
|
|
|
154
154
|
.btn-group-outline-#{$color} > .btn {
|
|
155
155
|
@extend .btn-outline-#{$color};
|
|
156
|
+
&:hover {
|
|
157
|
+
@include shadow.box-shadow(none);
|
|
158
|
+
}
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
.btn-group-outline-default > .btn {
|
|
159
162
|
@extend .btn-outline-default;
|
|
163
|
+
&:hover {
|
|
164
|
+
@include shadow.box-shadow(none);
|
|
165
|
+
}
|
|
160
166
|
}
|
|
161
167
|
|
|
162
168
|
// The clickable button for toggling the menu
|
|
@@ -2,20 +2,20 @@ import { FlexibleConnectedPositionStrategy, Overlay, ScrollDispatcher, OverlayCo
|
|
|
2
2
|
import { PortalModule, ComponentPortal } from '@angular/cdk/portal';
|
|
3
3
|
import { NgClass, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { inject, ChangeDetectorRef, DestroyRef, signal, computed, viewChild, viewChildren, input, output, afterRenderEffect,
|
|
5
|
+
import { inject, ChangeDetectorRef, DestroyRef, signal, computed, viewChild, contentChildren, viewChildren, input, output, afterRenderEffect, ChangeDetectionStrategy, Component, InjectionToken, ElementRef, DOCUMENT, NgZone, EventEmitter, ViewChild, Injector, Injectable, ViewContainerRef, numberAttribute, HostBinding, Directive, NgModule } from '@angular/core';
|
|
6
6
|
import { FormsModule } from '@angular/forms';
|
|
7
7
|
import { ThyEmpty, ThyEmptyModule } from 'ngx-tethys/empty';
|
|
8
8
|
import { ThyIconModule } from 'ngx-tethys/icon';
|
|
9
9
|
import { ThyInputModule } from 'ngx-tethys/input';
|
|
10
10
|
import { ThyLoadingModule } from 'ngx-tethys/loading';
|
|
11
|
-
import { ThyOptionRender, ThyOptionSelectionChangeEvent, ThyStopPropagationDirective,
|
|
11
|
+
import { ThyOption, ThyOptionRender, ThyOptionSelectionChangeEvent, ThyStopPropagationDirective, ThyOptionModule, ThySharedModule } from 'ngx-tethys/shared';
|
|
12
12
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
13
13
|
import { coerceBooleanProperty, ESCAPE, ENTER, UP_ARROW, DOWN_ARROW, TAB } from 'ngx-tethys/util';
|
|
14
14
|
import { injectLocale } from 'ngx-tethys/i18n';
|
|
15
15
|
import { injectPanelEmptyIcon, ThyAbstractOverlayConfig, ThyAbstractOverlayContainer, ThyClickDispatcher, ThyPortalOutlet, ThyAbstractOverlayRef, ThyAbstractInternalOverlayRef, ThyAbstractOverlayService, getOverlayGlobalConfig, getFlexiblePositions, THY_GLOBAL_CONFIG, ScrollToService } from 'ngx-tethys/core';
|
|
16
|
-
import { takeUntilDestroyed, outputToObservable } from '@angular/core/rxjs-interop';
|
|
16
|
+
import { takeUntilDestroyed, outputToObservable, toObservable } from '@angular/core/rxjs-interop';
|
|
17
17
|
import { Subject, merge, of, from, fromEvent } from 'rxjs';
|
|
18
|
-
import { filter, takeUntil, map, delay, switchMap, take } from 'rxjs/operators';
|
|
18
|
+
import { filter, takeUntil, map, delay, skip, switchMap, take } from 'rxjs/operators';
|
|
19
19
|
import { coerceElement, coerceArray } from '@angular/cdk/coercion';
|
|
20
20
|
import { Platform } from '@angular/cdk/platform';
|
|
21
21
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
@@ -43,6 +43,10 @@ class ThyAutocomplete {
|
|
|
43
43
|
this.contentTemplateRef = viewChild('contentTemplate', ...(ngDevMode ? [{ debugName: "contentTemplateRef" }] : /* istanbul ignore next */ []));
|
|
44
44
|
// scroll element container
|
|
45
45
|
this.optionsContainer = viewChild('panel', ...(ngDevMode ? [{ debugName: "optionsContainer" }] : /* istanbul ignore next */ []));
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
this.options = contentChildren(ThyOption, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), descendants: true });
|
|
46
50
|
this.optionRenders = viewChildren(ThyOptionRender, ...(ngDevMode ? [{ debugName: "optionRenders" }] : /* istanbul ignore next */ []));
|
|
47
51
|
/**
|
|
48
52
|
* 空选项时的文本
|
|
@@ -78,7 +82,7 @@ class ThyAutocomplete {
|
|
|
78
82
|
const optionRenders = this.optionRenders();
|
|
79
83
|
this.keyManager = new ActiveDescendantKeyManager(optionRenders).withWrap();
|
|
80
84
|
this.keyManager.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(index => {
|
|
81
|
-
this.thyOptionActivated.emit({ source: this, option: this.options
|
|
85
|
+
this.thyOptionActivated.emit({ source: this, option: this.options()[index] || null });
|
|
82
86
|
});
|
|
83
87
|
}
|
|
84
88
|
open() {
|
|
@@ -92,7 +96,7 @@ class ThyAutocomplete {
|
|
|
92
96
|
}
|
|
93
97
|
optionClick(event) {
|
|
94
98
|
const { value, isUserInput } = event;
|
|
95
|
-
const option = this.options
|
|
99
|
+
const option = this.options().find(option => option.thyValue() === value);
|
|
96
100
|
if (option) {
|
|
97
101
|
option.selectionChange.emit({ option, isUserInput: !!isUserInput });
|
|
98
102
|
}
|
|
@@ -100,15 +104,12 @@ class ThyAutocomplete {
|
|
|
100
104
|
this.thyOptionSelected.emit(new ThyOptionSelectionChangeEvent(option, false));
|
|
101
105
|
}
|
|
102
106
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ThyAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
103
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: ThyAutocomplete, isStandalone: true, selector: "thy-autocomplete", inputs: { thyEmptyText: { classPropertyName: "thyEmptyText", publicName: "thyEmptyText", isSignal: true, isRequired: false, transformFunction: null }, thyAutoActiveFirstOption: { classPropertyName: "thyAutoActiveFirstOption", publicName: "thyAutoActiveFirstOption", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { thyOptionSelected: "thyOptionSelected", thyOpened: "thyOpened", thyClosed: "thyClosed", thyOptionActivated: "thyOptionActivated" }, queries: [{ propertyName: "options", predicate: ThyOption, descendants: true }], viewQueries: [{ propertyName: "contentTemplateRef", first: true, predicate: ["contentTemplate"], descendants: true, isSignal: true }, { propertyName: "optionsContainer", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "optionRenders", predicate: ThyOptionRender, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #contentTemplate>\n <div thyStopPropagation [ngClass]=\"dropDownClass\">\n <div #panel class=\"thy-select-dropdown-options\">\n @for (option of options; track option.thyValue()) {\n <thy-option-render\n [thyValue]=\"option.thyValue()\"\n [thyRawValue]=\"option.thyRawValue()\"\n [thyLabelText]=\"option.thyLabelText()\"\n [thyShowOptionCustom]=\"option.thyShowOptionCustom()\"\n [thySearchKey]=\"option.thySearchKey()\"\n [thyDisabled]=\"option.thyDisabled()\"\n [thyTemplate]=\"option.template()\"\n [thySelectedValuesMap]=\"selectedValuesMap()\"\n (optionClick)=\"optionClick($event)\">\n </thy-option-render>\n }\n @if (options.length <= 0) {\n <thy-empty [thyMessage]=\"thyEmptyText()\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n }\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ThyEmpty, selector: "thy-empty", inputs: ["thyMessage", "thyTranslationKey", "thyTranslationValues", "thyEntityName", "thyEntityNameTranslateKey", "thyIconName", "thySize", "thyMarginTop", "thyTopAuto", "thyContainer", "thyImageUrl", "thyImageLoading", "thyImageFetchPriority", "thyDescription"] }, { kind: "component", type: ThyOptionRender, selector: "thy-option-render", inputs: ["thyValue", "thyRawValue", "thyLabelText", "thySearchKey", "thyDisabled", "thyShowOptionCustom", "thyTemplate", "thyTemplateContext", "thyShowCheckedIcon", "thySelectedValuesMap", "thyActivatedValue"], outputs: ["optionClick", "optionHover"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
107
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: ThyAutocomplete, isStandalone: true, selector: "thy-autocomplete", inputs: { thyEmptyText: { classPropertyName: "thyEmptyText", publicName: "thyEmptyText", isSignal: true, isRequired: false, transformFunction: null }, thyAutoActiveFirstOption: { classPropertyName: "thyAutoActiveFirstOption", publicName: "thyAutoActiveFirstOption", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { thyOptionSelected: "thyOptionSelected", thyOpened: "thyOpened", thyClosed: "thyClosed", thyOptionActivated: "thyOptionActivated" }, queries: [{ propertyName: "options", predicate: ThyOption, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "contentTemplateRef", first: true, predicate: ["contentTemplate"], descendants: true, isSignal: true }, { propertyName: "optionsContainer", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "optionRenders", predicate: ThyOptionRender, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #contentTemplate>\n <div thyStopPropagation [ngClass]=\"dropDownClass\">\n <div #panel class=\"thy-select-dropdown-options\">\n @for (option of options(); track option.thyValue()) {\n <thy-option-render\n [thyValue]=\"option.thyValue()\"\n [thyRawValue]=\"option.thyRawValue()\"\n [thyLabelText]=\"option.thyLabelText()\"\n [thyShowOptionCustom]=\"option.thyShowOptionCustom()\"\n [thySearchKey]=\"option.thySearchKey()\"\n [thyDisabled]=\"option.thyDisabled()\"\n [thyTemplate]=\"option.template()\"\n [thySelectedValuesMap]=\"selectedValuesMap()\"\n (optionClick)=\"optionClick($event)\">\n </thy-option-render>\n }\n @if (options().length <= 0) {\n <thy-empty [thyMessage]=\"thyEmptyText()\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n }\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ThyEmpty, selector: "thy-empty", inputs: ["thyMessage", "thyTranslationKey", "thyTranslationValues", "thyEntityName", "thyEntityNameTranslateKey", "thyIconName", "thySize", "thyMarginTop", "thyTopAuto", "thyContainer", "thyImageUrl", "thyImageLoading", "thyImageFetchPriority", "thyDescription"] }, { kind: "component", type: ThyOptionRender, selector: "thy-option-render", inputs: ["thyValue", "thyRawValue", "thyLabelText", "thySearchKey", "thyDisabled", "thyShowOptionCustom", "thyTemplate", "thyTemplateContext", "thyShowCheckedIcon", "thySelectedValuesMap", "thyActivatedValue"], outputs: ["optionClick", "optionHover"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
104
108
|
}
|
|
105
109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ThyAutocomplete, decorators: [{
|
|
106
110
|
type: Component,
|
|
107
|
-
args: [{ selector: 'thy-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ThyStopPropagationDirective, NgClass, ThyEmpty, ThyOptionRender], template: "<ng-template #contentTemplate>\n <div thyStopPropagation [ngClass]=\"dropDownClass\">\n <div #panel class=\"thy-select-dropdown-options\">\n @for (option of options; track option.thyValue()) {\n <thy-option-render\n [thyValue]=\"option.thyValue()\"\n [thyRawValue]=\"option.thyRawValue()\"\n [thyLabelText]=\"option.thyLabelText()\"\n [thyShowOptionCustom]=\"option.thyShowOptionCustom()\"\n [thySearchKey]=\"option.thySearchKey()\"\n [thyDisabled]=\"option.thyDisabled()\"\n [thyTemplate]=\"option.template()\"\n [thySelectedValuesMap]=\"selectedValuesMap()\"\n (optionClick)=\"optionClick($event)\">\n </thy-option-render>\n }\n @if (options.length <= 0) {\n <thy-empty [thyMessage]=\"thyEmptyText()\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n }\n </div>\n </div>\n</ng-template>\n" }]
|
|
108
|
-
}], ctorParameters: () => [], propDecorators: { contentTemplateRef: [{ type: i0.ViewChild, args: ['contentTemplate', { isSignal: true }] }], optionsContainer: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], options: [{
|
|
109
|
-
type: ContentChildren,
|
|
110
|
-
args: [ThyOption, { descendants: true }]
|
|
111
|
-
}], optionRenders: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ThyOptionRender), { isSignal: true }] }], thyEmptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyEmptyText", required: false }] }], thyAutoActiveFirstOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyAutoActiveFirstOption", required: false }] }], thyOptionSelected: [{ type: i0.Output, args: ["thyOptionSelected"] }], thyOpened: [{ type: i0.Output, args: ["thyOpened"] }], thyClosed: [{ type: i0.Output, args: ["thyClosed"] }], thyOptionActivated: [{ type: i0.Output, args: ["thyOptionActivated"] }] } });
|
|
111
|
+
args: [{ selector: 'thy-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ThyStopPropagationDirective, NgClass, ThyEmpty, ThyOptionRender], template: "<ng-template #contentTemplate>\n <div thyStopPropagation [ngClass]=\"dropDownClass\">\n <div #panel class=\"thy-select-dropdown-options\">\n @for (option of options(); track option.thyValue()) {\n <thy-option-render\n [thyValue]=\"option.thyValue()\"\n [thyRawValue]=\"option.thyRawValue()\"\n [thyLabelText]=\"option.thyLabelText()\"\n [thyShowOptionCustom]=\"option.thyShowOptionCustom()\"\n [thySearchKey]=\"option.thySearchKey()\"\n [thyDisabled]=\"option.thyDisabled()\"\n [thyTemplate]=\"option.template()\"\n [thySelectedValuesMap]=\"selectedValuesMap()\"\n (optionClick)=\"optionClick($event)\">\n </thy-option-render>\n }\n @if (options().length <= 0) {\n <thy-empty [thyMessage]=\"thyEmptyText()\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n }\n </div>\n </div>\n</ng-template>\n" }]
|
|
112
|
+
}], ctorParameters: () => [], propDecorators: { contentTemplateRef: [{ type: i0.ViewChild, args: ['contentTemplate', { isSignal: true }] }], optionsContainer: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], options: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => ThyOption), { ...{ descendants: true }, isSignal: true }] }], optionRenders: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ThyOptionRender), { isSignal: true }] }], thyEmptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyEmptyText", required: false }] }], thyAutoActiveFirstOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyAutoActiveFirstOption", required: false }] }], thyOptionSelected: [{ type: i0.Output, args: ["thyOptionSelected"] }], thyOpened: [{ type: i0.Output, args: ["thyOpened"] }], thyClosed: [{ type: i0.Output, args: ["thyClosed"] }], thyOptionActivated: [{ type: i0.Output, args: ["thyOptionActivated"] }] } });
|
|
112
113
|
|
|
113
114
|
const animationBody = [state('void, exit', style({ opacity: 0, transform: 'scale(0.1)' })), state('enter', style({ transform: 'none' }))];
|
|
114
115
|
/**
|
|
@@ -332,6 +333,7 @@ class ThyAutocompleteTriggerDirective {
|
|
|
332
333
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
333
334
|
this.document = inject(DOCUMENT, { optional: true });
|
|
334
335
|
this.cdr = inject(ChangeDetectorRef);
|
|
336
|
+
this.injector = inject(Injector);
|
|
335
337
|
this.overlayRef = null;
|
|
336
338
|
this.closeKeyEventStream = new Subject();
|
|
337
339
|
this.panelOpened = false;
|
|
@@ -476,7 +478,9 @@ class ThyAutocompleteTriggerDirective {
|
|
|
476
478
|
*/
|
|
477
479
|
subscribeToClosingActions() {
|
|
478
480
|
const firstStable = from(Promise.resolve());
|
|
479
|
-
const optionChanges = this.autocompleteComponent().options.
|
|
481
|
+
const optionChanges = toObservable(this.autocompleteComponent().options, { injector: this.injector }).pipe(
|
|
482
|
+
// Skip the initial emission to match QueryList.changes behavior.
|
|
483
|
+
skip(1),
|
|
480
484
|
// Defer emitting to the stream until the next tick, because changing
|
|
481
485
|
// bindings in here will cause "changed after checked" errors.
|
|
482
486
|
delay(0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-autocomplete.mjs","sources":["../../../src/autocomplete/autocomplete.component.ts","../../../src/autocomplete/autocomplete.component.html","../../../src/autocomplete/overlay/autocomplete-animations.ts","../../../src/autocomplete/overlay/autocomplete.config.ts","../../../src/autocomplete/overlay/autocomplete.options.ts","../../../src/autocomplete/overlay/autocomplete-container.component.ts","../../../src/autocomplete/overlay/autocomplete-container.component.html","../../../src/autocomplete/overlay/autocomplete-ref.ts","../../../src/autocomplete/overlay/autocomplete.service.ts","../../../src/autocomplete/autocomplete.trigger.directive.ts","../../../src/autocomplete/module.ts","../../../src/autocomplete/ngx-tethys-autocomplete.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n ChangeDetectionStrategy,\n ContentChildren,\n QueryList,\n ChangeDetectorRef,\n ElementRef,\n inject,\n Signal,\n viewChild,\n input,\n output,\n viewChildren,\n signal,\n DestroyRef,\n afterRenderEffect,\n computed\n} from '@angular/core';\nimport { ThyOption, ThyOptionRender, ThyOptionSelectionChangeEvent, ThyStopPropagationDirective } from 'ngx-tethys/shared';\nimport { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { ThyEmpty } from 'ngx-tethys/empty';\nimport { NgClass } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\nimport { injectLocale, ThyAutoCompleteLocale } from 'ngx-tethys/i18n';\nimport { injectPanelEmptyIcon } from 'ngx-tethys/core';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n/** Event object that is emitted when an autocomplete option is activated. */\nexport interface ThyAutocompleteActivatedEvent {\n /** Reference to the autocomplete panel that emitted the event. */\n source: ThyAutocomplete;\n\n /** Option that was selected. */\n option: ThyOption | null;\n}\n\n/**\n * 自动完成组件\n * @name thy-autocomplete\n */\n@Component({\n selector: 'thy-autocomplete',\n templateUrl: 'autocomplete.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ThyStopPropagationDirective, NgClass, ThyEmpty, ThyOptionRender]\n})\nexport class ThyAutocomplete {\n private changeDetectorRef = inject(ChangeDetectorRef);\n\n private destroyRef = inject(DestroyRef);\n\n private locale: Signal<ThyAutoCompleteLocale> = injectLocale('autocomplete');\n\n emptyIcon: Signal<string> = injectPanelEmptyIcon();\n\n dropDownClass: { [key: string]: boolean } = {\n 'thy-select-dropdown': true,\n 'thy-select-dropdown-single': true\n };\n\n isOpened = false;\n\n readonly selectedValues = signal<SafeAny[]>([]);\n\n readonly selectedValuesMap = computed<Map<SafeAny, boolean>>(() => {\n return new Map(this.selectedValues().map(value => [value, true]));\n });\n\n /** Manages active item in option list based on key events. */\n keyManager?: ActiveDescendantKeyManager<ThyOptionRender>;\n\n readonly contentTemplateRef = viewChild<TemplateRef<any>>('contentTemplate');\n\n // scroll element container\n readonly optionsContainer = viewChild<ElementRef<any>>('panel');\n\n /**\n * @private\n */\n @ContentChildren(ThyOption, { descendants: true }) options!: QueryList<ThyOption>;\n\n readonly optionRenders = viewChildren(ThyOptionRender);\n\n /**\n * 空选项时的文本\n * @default 没有任何数据\n */\n readonly thyEmptyText = input<string>(this.locale().empty);\n\n /**\n * 是否默认高亮第一个选项\n */\n readonly thyAutoActiveFirstOption = input(false, { transform: coerceBooleanProperty });\n\n /**\n * 被选中时调用,参数包含选中项的 value 值\n */\n readonly thyOptionSelected = output<ThyOptionSelectionChangeEvent>();\n\n /**\n * 只读,展开下拉菜单的回调\n */\n readonly thyOpened = output<void>();\n\n /**\n * 只读,关闭下拉菜单的回调\n */\n readonly thyClosed = output<void>();\n\n /** Emits whenever an option is activated using the keyboard. */\n /**\n * 只读,option 激活状态变化时,调用此函数\n */\n readonly thyOptionActivated = output<ThyAutocompleteActivatedEvent>();\n\n constructor() {\n afterRenderEffect(() => {\n this.initKeyManager();\n });\n }\n\n initKeyManager() {\n const optionRenders = this.optionRenders();\n this.keyManager = new ActiveDescendantKeyManager<ThyOptionRender>(optionRenders).withWrap();\n this.keyManager.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(index => {\n this.thyOptionActivated.emit({ source: this, option: this.options.toArray()[index] || null });\n });\n }\n\n open() {\n this.isOpened = true;\n this.changeDetectorRef.markForCheck();\n this.thyOpened.emit();\n }\n\n close() {\n this.isOpened = false;\n this.thyClosed.emit();\n }\n\n optionClick(event: { value: SafeAny; isUserInput?: boolean }) {\n const { value, isUserInput } = event;\n const option = this.options.toArray().find(option => option.thyValue() === value);\n if (option) {\n option.selectionChange.emit({ option, isUserInput: !!isUserInput });\n }\n\n this.selectedValues.set([value]);\n this.thyOptionSelected.emit(new ThyOptionSelectionChangeEvent(option!, false));\n }\n}\n","<ng-template #contentTemplate>\n <div thyStopPropagation [ngClass]=\"dropDownClass\">\n <div #panel class=\"thy-select-dropdown-options\">\n @for (option of options; track option.thyValue()) {\n <thy-option-render\n [thyValue]=\"option.thyValue()\"\n [thyRawValue]=\"option.thyRawValue()\"\n [thyLabelText]=\"option.thyLabelText()\"\n [thyShowOptionCustom]=\"option.thyShowOptionCustom()\"\n [thySearchKey]=\"option.thySearchKey()\"\n [thyDisabled]=\"option.thyDisabled()\"\n [thyTemplate]=\"option.template()\"\n [thySelectedValuesMap]=\"selectedValuesMap()\"\n (optionClick)=\"optionClick($event)\">\n </thy-option-render>\n }\n @if (options.length <= 0) {\n <thy-empty [thyMessage]=\"thyEmptyText()\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n }\n </div>\n </div>\n</ng-template>\n","import { animate, state, style, transition, trigger, AnimationTriggerMetadata } from '@angular/animations';\n\nconst animationBody = [state('void, exit', style({ opacity: 0, transform: 'scale(0.1)' })), state('enter', style({ transform: 'none' }))];\n\n/**\n * Animations used by ThyAutocomplete.\n * @docs-private\n */\nexport const thyAutocompleteAnimations: {\n readonly autocompleteContainer: AnimationTriggerMetadata;\n} = {\n autocompleteContainer: trigger('autocompleteContainer', animationBody)\n};\n","import { ElementRef, InjectionToken } from '@angular/core';\nimport { ThyPlacement, ThyAbstractOverlayConfig } from 'ngx-tethys/core';\nimport { ScrollStrategy } from '@angular/cdk/overlay';\n\nexport class ThyAutocompleteConfig<TData = any> extends ThyAbstractOverlayConfig<TData> {\n /** Origin Element, for overlay flexible connected to */\n // @ts-ignore\n origin: ElementRef<any> | HTMLElement;\n\n /** Placement be relative to origin, topCenter, topLeft, topRight, bottomCenter, bottomLeft, bottomRight ...*/\n placement?: ThyPlacement;\n\n /** Click inside can been close */\n insideClosable?: boolean;\n\n /** Offset be relative to origin, default is 4*/\n offset?: number;\n\n /** Manually close it, default rules is which auto close last autocomplete when open a new unless set manualClosure as true */\n manualClosure?: boolean;\n\n /** Origin active class when autocomplete is opened */\n originActiveClass?: string | string[];\n\n /**\n * 滚动策略\n */\n scrollStrategy?: ScrollStrategy;\n\n /** Click outside can been close */\n outsideClosable?: boolean;\n}\n\nexport const THY_AUTOCOMPLETE_DEFAULT_CONFIG = new InjectionToken<ThyAutocompleteConfig>('thy-autocomplete-default-config');\n\nexport const THY_AUTOCOMPLETE_DEFAULT_CONFIG_PROVIDER = {\n provide: THY_AUTOCOMPLETE_DEFAULT_CONFIG,\n useValue: {\n hasBackdrop: false,\n panelClass: '',\n closeOnNavigation: true,\n insideClosable: true,\n manualClosure: false,\n outsideClosable: true,\n originActiveClass: 'thy-autocomplete-origin-active'\n }\n};\n","import { ThyAbstractOverlayOptions } from 'ngx-tethys/core';\n\nexport const autocompleteAbstractOverlayOptions: ThyAbstractOverlayOptions = {\n name: 'autocomplete',\n animationEnabled: true,\n disposeWhenClose: true\n};\n","import { ThyAbstractOverlayContainer, ThyClickDispatcher, ThyPortalOutlet } from 'ngx-tethys/core';\nimport { Observable } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { AnimationEvent } from '@angular/animations';\nimport { PortalModule } from '@angular/cdk/portal';\n\nimport { AfterViewInit, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone, ViewChild, inject, DOCUMENT } from '@angular/core';\n\nimport { thyAutocompleteAnimations } from './autocomplete-animations';\nimport { ThyAutocompleteConfig } from './autocomplete.config';\nimport { autocompleteAbstractOverlayOptions } from './autocomplete.options';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-autocomplete-container',\n templateUrl: './autocomplete-container.component.html',\n animations: [thyAutocompleteAnimations.autocompleteContainer],\n host: {\n class: 'thy-autocomplete-container',\n tabindex: '-1',\n '[attr.role]': `'autocomplete'`,\n '[@autocompleteContainer]': 'animationState',\n '(@autocompleteContainer.start)': 'onAnimationStart($event)',\n '(@autocompleteContainer.done)': 'onAnimationDone($event)'\n },\n imports: [PortalModule, ThyPortalOutlet]\n})\nexport class ThyAutocompleteContainer extends ThyAbstractOverlayContainer implements AfterViewInit {\n private elementRef = inject(ElementRef);\n private document = inject(DOCUMENT);\n config = inject(ThyAutocompleteConfig);\n private thyClickDispatcher = inject(ThyClickDispatcher);\n private ngZone = inject(NgZone);\n\n @ViewChild(ThyPortalOutlet, { static: true })\n portalOutlet!: ThyPortalOutlet;\n\n /** State of the autocomplete animation. */\n animationState: 'void' | 'enter' | 'exit' = 'enter';\n\n /** Emits when an animation state changes. */\n animationStateChanged = new EventEmitter<AnimationEvent>();\n\n animationOpeningDone!: Observable<AnimationEvent>;\n animationClosingDone!: Observable<AnimationEvent>;\n\n beforeAttachPortal(): void {}\n\n constructor() {\n const changeDetectorRef = inject(ChangeDetectorRef);\n\n super(autocompleteAbstractOverlayOptions, changeDetectorRef);\n\n this.animationOpeningDone = this.animationStateChanged.pipe(\n filter((event: AnimationEvent) => {\n return event.phaseName === 'done' && event.toState === 'enter';\n })\n );\n this.animationClosingDone = this.animationStateChanged.pipe(\n filter((event: AnimationEvent) => {\n return event.phaseName === 'done' && event.toState === 'exit';\n })\n );\n }\n\n ngAfterViewInit() {}\n\n /** Callback, invoked whenever an animation on the host completes. */\n onAnimationDone(event: AnimationEvent) {\n this.animationStateChanged.emit(event);\n }\n\n /** Callback, invoked when an animation on the host starts. */\n onAnimationStart(event: AnimationEvent) {\n this.animationStateChanged.emit(event);\n }\n\n startExitAnimation(): void {\n this.animationState = 'exit';\n this.changeDetectorRef.markForCheck();\n }\n}\n","<ng-template thyPortalOutlet></ng-template>\n","import { ThyAbstractInternalOverlayRef, ThyAbstractOverlayOptions, ThyAbstractOverlayRef } from 'ngx-tethys/core';\nimport { ThyAutocompleteContainer } from './autocomplete-container.component';\nimport { ThyAutocompleteConfig } from './autocomplete.config';\nimport { autocompleteAbstractOverlayOptions } from './autocomplete.options';\n\nexport abstract class ThyAutocompleteRef<T, TResult = any> extends ThyAbstractOverlayRef<T, ThyAutocompleteContainer, TResult> {}\n\nexport class ThyInternalAutocompleteRef<T, TResult = any>\n extends ThyAbstractInternalOverlayRef<T, ThyAutocompleteContainer, TResult, ThyAutocompleteConfig>\n implements ThyAutocompleteRef<T, TResult>\n{\n constructor() {\n super();\n }\n\n protected get options(): ThyAbstractOverlayOptions {\n return autocompleteAbstractOverlayOptions;\n }\n\n /**\n * Updates the autocomplete's position.\n * @param position New autocomplete position.\n */\n updatePosition(): this {\n this.overlayRef.updatePosition();\n return this;\n }\n}\n","import { getFlexiblePositions, getOverlayGlobalConfig, THY_GLOBAL_CONFIG, ThyAbstractOverlayService, ThyGlobalConfig } from 'ngx-tethys/core';\nimport { of, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { Directionality } from '@angular/cdk/bidi';\nimport { coerceArray, coerceElement } from '@angular/cdk/coercion';\nimport {\n ComponentType,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayContainer,\n OverlayRef,\n PositionStrategy,\n ScrollDispatcher\n} from '@angular/cdk/overlay';\nimport { Platform } from '@angular/cdk/platform';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ViewportRuler } from '@angular/cdk/scrolling';\n\nimport { ElementRef, Injectable, Injector, NgZone, OnDestroy, StaticProvider, TemplateRef, inject, DOCUMENT } from '@angular/core';\n\nimport { ThyAutocompleteContainer } from './autocomplete-container.component';\nimport { ThyAutocompleteRef, ThyInternalAutocompleteRef } from './autocomplete-ref';\nimport { THY_AUTOCOMPLETE_DEFAULT_CONFIG, ThyAutocompleteConfig } from './autocomplete.config';\nimport { autocompleteAbstractOverlayOptions } from './autocomplete.options';\n\n/**\n * @private\n */\n@Injectable()\nexport class ThyAutocompleteService\n extends ThyAbstractOverlayService<ThyAutocompleteConfig, ThyAutocompleteContainer>\n implements OnDestroy\n{\n private scrollDispatcher = inject(ScrollDispatcher);\n private ngZone = inject(NgZone);\n private _viewportRuler = inject(ViewportRuler);\n private _document = inject(DOCUMENT);\n private _platform = inject(Platform);\n private _overlayContainer = inject(OverlayContainer);\n private globalConfig = inject<ThyGlobalConfig>(THY_GLOBAL_CONFIG, { optional: true });\n\n private readonly ngUnsubscribe$ = new Subject();\n\n private originInstancesMap = new Map<\n ElementRef | HTMLElement,\n {\n config: ThyAutocompleteConfig;\n autocompleteRef: ThyAutocompleteRef<any, any>;\n }\n >();\n\n private buildPositionStrategy<TData>(config: ThyAutocompleteConfig<TData>): PositionStrategy {\n const positionStrategy = new FlexibleConnectedPositionStrategy(\n config.origin,\n this._viewportRuler,\n this._document,\n this._platform,\n this._overlayContainer\n );\n const flexiblePosition = getOverlayGlobalConfig(this.globalConfig).flexiblePosition !== false;\n const positions = getFlexiblePositions(config.placement!, config.offset, 'thy-autocomplete', flexiblePosition);\n positionStrategy.withPositions(positions);\n positionStrategy.withGrowAfterOpen(true);\n positionStrategy.positionChanges.pipe(takeUntil(this.ngUnsubscribe$)).subscribe(change => {\n if (change.scrollableViewProperties.isOverlayClipped) {\n // After position changes occur and the overlay is clipped by\n // a parent scrollable then close the tooltip.\n this.ngZone.run(() => this.close());\n }\n });\n return positionStrategy;\n }\n\n protected buildOverlayConfig<TData>(config: ThyAutocompleteConfig<TData>): OverlayConfig {\n const strategy = this.buildPositionStrategy(config);\n const overlayConfig = this.buildBaseOverlayConfig(config);\n overlayConfig.positionStrategy = strategy;\n overlayConfig.scrollStrategy = config.scrollStrategy || this.overlay.scrollStrategies.block();\n overlayConfig.width = config.width;\n return overlayConfig;\n }\n\n protected attachOverlayContainer(overlay: OverlayRef, config: ThyAutocompleteConfig<any>): ThyAutocompleteContainer {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n const injector = Injector.create({\n parent: userInjector || this.injector,\n providers: [{ provide: ThyAutocompleteConfig, useValue: config }]\n });\n const containerPortal = new ComponentPortal(ThyAutocompleteContainer, config.viewContainerRef, injector);\n const containerRef = overlay.attach<ThyAutocompleteContainer>(containerPortal);\n return containerRef.instance;\n }\n\n protected createAbstractOverlayRef<T>(\n overlayRef: OverlayRef,\n containerInstance: ThyAutocompleteContainer,\n config: ThyAutocompleteConfig<any>\n ): ThyInternalAutocompleteRef<T> {\n const autocompleteRef = new ThyInternalAutocompleteRef<T>();\n autocompleteRef.initialize(overlayRef, containerInstance, config);\n return autocompleteRef;\n }\n\n protected createInjectorProviders<T>(\n autocompleteRef: ThyAutocompleteRef<T>,\n autocompleteContainer: ThyAutocompleteContainer\n ): StaticProvider[] {\n return [\n {\n provide: ThyAutocompleteContainer,\n useValue: autocompleteContainer\n },\n {\n provide: ThyAutocompleteRef,\n useValue: autocompleteRef\n }\n ];\n }\n\n private originElementAddActiveClass(config: ThyAutocompleteConfig) {\n if (config.originActiveClass) {\n coerceElement<HTMLElement>(config.origin).classList.add(...coerceArray(config.originActiveClass));\n }\n }\n\n private originElementRemoveActiveClass(config: ThyAutocompleteConfig) {\n if (config.originActiveClass) {\n coerceElement<HTMLElement>(config.origin).classList.remove(...coerceArray(config.originActiveClass));\n }\n }\n\n constructor() {\n const overlay = inject(Overlay);\n const injector = inject(Injector);\n const defaultConfig = inject(THY_AUTOCOMPLETE_DEFAULT_CONFIG);\n\n super(autocompleteAbstractOverlayOptions, overlay, injector, defaultConfig);\n }\n\n open<T, TData = any, TResult = any>(\n componentOrTemplateRef: ComponentType<T> | TemplateRef<T>,\n config?: ThyAutocompleteConfig<TData>\n ): ThyAutocompleteRef<T, TResult> {\n const originElement = coerceElement(config?.origin);\n const autocompleteRef = this.openOverlay(componentOrTemplateRef, config) as ThyAutocompleteRef<T>;\n config = autocompleteRef.containerInstance.config;\n autocompleteRef.afterClosed().subscribe(() => {\n this.originElementRemoveActiveClass(config);\n this.originInstancesMap.delete(originElement);\n });\n\n this.originElementAddActiveClass(config);\n this.originInstancesMap.set(originElement, {\n config,\n autocompleteRef\n });\n\n return autocompleteRef;\n }\n\n ngOnDestroy() {\n this.dispose();\n }\n}\n","import {\n Directive,\n ElementRef,\n NgZone,\n OnDestroy,\n OnInit,\n ViewContainerRef,\n HostBinding,\n ChangeDetectorRef,\n numberAttribute,\n inject,\n input,\n computed,\n Signal,\n DOCUMENT\n} from '@angular/core';\nimport { OverlayRef, Overlay } from '@angular/cdk/overlay';\nimport { ThyPlacement, ScrollToService } from 'ngx-tethys/core';\nimport { ThyAutocompleteService } from './overlay/autocomplete.service';\nimport { ThyAutocompleteRef } from './overlay/autocomplete-ref';\nimport { ThyAutocomplete } from './autocomplete.component';\nimport { ThyOptionRender, ThyOptionSelectionChangeEvent } from 'ngx-tethys/shared';\nimport { Subject, Observable, merge, fromEvent, of, Subscription, from } from 'rxjs';\nimport { ESCAPE, UP_ARROW, ENTER, DOWN_ARROW, TAB, coerceBooleanProperty } from 'ngx-tethys/util';\nimport { filter, map, take, delay, switchMap } from 'rxjs/operators';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\n\n/**\n * 自动完成触发指令\n * @name thyAutocomplete\n */\n@Directive({\n selector:\n 'input[thyAutocompleteTrigger], textarea[thyAutocompleteTrigger], thy-input[thyAutocompleteTrigger], thy-input-search[thyAutocompleteTrigger], input[thyAutocomplete], textarea[thyAutocomplete], thy-input[thyAutocomplete], thy-input-search[thyAutocomplete]',\n exportAs: 'thyAutocompleteTrigger, thyAutocomplete',\n host: {\n '(input)': 'handleInput($event)',\n '(focusin)': 'onFocus()',\n '(keydown)': 'onKeydown($event)'\n }\n})\nexport class ThyAutocompleteTriggerDirective implements OnInit, OnDestroy {\n private elementRef = inject(ElementRef);\n private ngZone = inject(NgZone);\n private overlay = inject(Overlay);\n private autocompleteService = inject(ThyAutocompleteService);\n private viewContainerRef = inject(ViewContainerRef);\n private document = inject(DOCUMENT, { optional: true })!;\n private cdr = inject(ChangeDetectorRef);\n\n protected overlayRef: OverlayRef | null = null;\n\n private autocompleteRef!: ThyAutocompleteRef<ThyAutocomplete>;\n\n private readonly closeKeyEventStream = new Subject<void>();\n\n private closingActionsSubscription!: Subscription;\n\n @HostBinding(`class.thy-autocomplete-opened`) panelOpened = false;\n\n /**\n * 下拉菜单组件实例。已废弃,请使用 thyAutocomplete\n * @type thyAutocompleteComponent\n * @deprecated\n */\n readonly thyAutocompleteComponent = input<ThyAutocomplete>();\n\n /**\n * 下拉菜单组件实例\n * @type thyAutocompleteComponent\n */\n readonly thyAutocomplete = input<ThyAutocomplete>();\n\n readonly autocompleteComponent: Signal<ThyAutocomplete> = computed(() => {\n return this.thyAutocomplete() || this.thyAutocompleteComponent()!;\n });\n\n /**\n * 弹出框默认 offset\n */\n readonly thyOffset = input<number, unknown>(4, { transform: numberAttribute });\n\n /**\n * 下拉菜单的宽度,不设置默认与输入框同宽\n */\n readonly thyAutocompleteWidth = input<number, unknown>(undefined, { transform: numberAttribute });\n\n /**\n * 下拉菜单的显示位置,'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom'\n */\n readonly thyPlacement = input<ThyPlacement>('bottomLeft');\n\n /**\n * 是否允许聚焦时打开下拉菜单\n */\n readonly thyIsFocusOpen = input(true, { transform: coerceBooleanProperty });\n\n readonly activeOption: Signal<ThyOptionRender | null> = computed(() => {\n if (this.autocompleteComponent() && this.autocompleteComponent().keyManager) {\n return this.autocompleteComponent().keyManager!.activeItem;\n }\n return null;\n });\n\n get panelClosingActions(): Observable<ThyOptionSelectionChangeEvent | null> {\n return merge(\n outputToObservable(this.autocompleteComponent().thyOptionSelected),\n this.autocompleteComponent().keyManager!.tabOut.pipe(filter(() => this.panelOpened)),\n this.closeKeyEventStream,\n this.getOutsideClickStream(),\n this.overlayRef ? this.overlayRef.detachments().pipe(filter(() => this.panelOpened)) : of()\n ).pipe(\n // Normalize the output so we return a consistent type.\n map(event => (event instanceof ThyOptionSelectionChangeEvent ? event : null))\n );\n }\n\n ngOnInit(): void {}\n\n onFocus() {\n if (this.canOpen() && this.thyIsFocusOpen()) {\n this.openPanel();\n }\n }\n\n onKeydown(event: KeyboardEvent) {\n const keyCode = event.keyCode;\n // Prevent the default action on all escape key presses. This is here primarily to bring IE\n // in line with other browsers. By default, pressing escape on IE will cause it to revert\n // the input value to the one that it had on focus, however it won't dispatch any events\n // which means that the model value will be out of sync with the view.\n if (keyCode === ESCAPE) {\n event.preventDefault();\n }\n const autocompleteComponent = this.autocompleteComponent();\n if (this.activeOption() && keyCode === ENTER && this.panelOpened) {\n this.activeOption()!.selectViaInteraction();\n this.resetActiveItem();\n event.preventDefault();\n } else if (autocompleteComponent) {\n const prevActiveItem = autocompleteComponent.keyManager!.activeItem;\n const isArrowKey = keyCode === UP_ARROW || keyCode === DOWN_ARROW;\n if (this.panelOpened || keyCode === TAB) {\n autocompleteComponent.keyManager!.onKeydown(event);\n } else if (isArrowKey && this.canOpen()) {\n this.openPanel();\n }\n if (\n (isArrowKey || autocompleteComponent.keyManager!.activeItem !== prevActiveItem) &&\n autocompleteComponent.keyManager!.activeItem\n ) {\n ScrollToService.scrollToElement(\n autocompleteComponent.keyManager!.activeItem.element.nativeElement,\n autocompleteComponent.optionsContainer()!.nativeElement\n );\n }\n }\n }\n\n handleInput(event: KeyboardEvent) {\n if (this.canOpen() && document.activeElement === event.target) {\n this.openPanel();\n }\n }\n\n openPanel() {\n if (this.overlayRef && this.overlayRef.hasAttached()) {\n return;\n }\n const overlayRef = this.createOverlay();\n this.overlayRef = overlayRef;\n overlayRef.keydownEvents().subscribe(event => {\n // Close when pressing ESCAPE or ALT + UP_ARROW, based on the a11y guidelines.\n // See: https://www.w3.org/TR/wai-aria-practices-1.1/#textbox-keyboard-interaction\n if (event.keyCode === ESCAPE || (event.keyCode === UP_ARROW && event.altKey)) {\n this.resetActiveItem();\n this.closeKeyEventStream.next();\n // We need to stop propagation, otherwise the event will eventually\n // reach the input itself and cause the overlay to be reopened.\n event.stopPropagation();\n event.preventDefault();\n }\n });\n this.panelOpened = true;\n this.autocompleteComponent().open();\n }\n\n closePanel() {\n if (this.autocompleteRef) {\n this.autocompleteRef.close();\n this.cdr.detectChanges();\n this.closingActionsSubscription.unsubscribe();\n }\n }\n\n createOverlay(): OverlayRef {\n const config = Object.assign({\n origin: this.elementRef.nativeElement,\n viewContainerRef: this.viewContainerRef,\n placement: this.thyPlacement(),\n offset: this.thyOffset(),\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n width: this.thyAutocompleteWidth() || this.elementRef.nativeElement.clientWidth\n });\n const autocompleteComponent = this.autocompleteComponent();\n this.autocompleteRef = this.autocompleteService.open(autocompleteComponent.contentTemplateRef()!, config);\n this.autocompleteRef.afterClosed().subscribe(() => {\n this.panelOpened = false;\n autocompleteComponent.close();\n });\n // delay 200ms to prevent emit document click rightnow\n this.autocompleteRef\n .afterOpened()\n .pipe(delay(200))\n .subscribe(() => {\n this.closingActionsSubscription = this.subscribeToClosingActions();\n });\n return this.autocompleteRef.getOverlayRef();\n }\n\n /**\n * This method listens to a stream of panel closing actions and resets the\n * stream every time the option list changes.\n */\n private subscribeToClosingActions(): Subscription {\n const firstStable = from(Promise.resolve());\n const optionChanges = this.autocompleteComponent().options.changes.pipe(\n // Defer emitting to the stream until the next tick, because changing\n // bindings in here will cause \"changed after checked\" errors.\n delay(0)\n );\n // When the zone is stable initially, and when the option list changes...\n return (\n merge(firstStable, optionChanges)\n .pipe(\n // create a new stream of panelClosingActions, replacing any previous streams\n // that were created, and flatten it so our stream only emits closing events...\n switchMap(() => {\n this.resetActiveItem();\n\n if (this.panelOpened) {\n this.overlayRef!.updatePosition();\n }\n return this.panelClosingActions;\n }),\n // when the first closing event occurs...\n take(1)\n )\n // set the value, close the panel, and complete.\n .subscribe(event => this.setValueAndClose(event))\n );\n }\n\n private setValueAndClose(event: ThyOptionSelectionChangeEvent | null): void {\n if (event && event.option) {\n this.setValue(event.option.thyLabelText()!);\n }\n this.closePanel();\n }\n\n /** Stream of clicks outside of the autocomplete panel. */\n private getOutsideClickStream(): Observable<any> {\n return merge(\n fromEvent(this.document, 'click') as Observable<MouseEvent>,\n fromEvent(this.document, 'touchend') as Observable<TouchEvent>\n ).pipe(\n filter(event => {\n // If we're in the Shadow DOM, the event target will be the shadow root, so we have to\n // fall back to check the first element in the path of the click event.\n const clickTarget = event.target as HTMLElement;\n const formField: any = null;\n\n return (\n this.panelOpened &&\n clickTarget !== this.elementRef.nativeElement &&\n !this.elementRef.nativeElement.contains(clickTarget) &&\n (!formField || !formField.contains(clickTarget)) &&\n !!this.overlayRef &&\n !this.overlayRef.overlayElement.contains(clickTarget)\n );\n })\n );\n }\n\n private setValue(value: string) {\n const input = this.elementRef.nativeElement.querySelector('input');\n const element = input ? input : this.elementRef.nativeElement;\n element.value = value;\n element.focus();\n }\n\n private canOpen(): boolean {\n const element: HTMLInputElement = this.elementRef.nativeElement;\n return !element.readOnly && !element.disabled;\n }\n\n private resetActiveItem(): void {\n const autocompleteComponent = this.autocompleteComponent();\n const index = autocompleteComponent.thyAutoActiveFirstOption() ? 0 : -1;\n autocompleteComponent.keyManager!.setActiveItem(index);\n }\n\n private destroyPanel(): void {\n if (this.overlayRef) {\n this.closePanel();\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n\n ngOnDestroy() {\n this.closeKeyEventStream.complete();\n this.destroyPanel();\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ThyEmptyModule } from 'ngx-tethys/empty';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyInputModule } from 'ngx-tethys/input';\nimport { ThyLoadingModule } from 'ngx-tethys/loading';\nimport { ThyOptionModule, ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyAutocomplete } from './autocomplete.component';\nimport { ThyAutocompleteTriggerDirective } from './autocomplete.trigger.directive';\nimport { ThyAutocompleteContainer } from './overlay/autocomplete-container.component';\nimport { THY_AUTOCOMPLETE_DEFAULT_CONFIG_PROVIDER } from './overlay/autocomplete.config';\nimport { ThyAutocompleteService } from './overlay/autocomplete.service';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ThyInputModule,\n OverlayModule,\n PortalModule,\n ThyLoadingModule,\n ThySharedModule,\n ThyIconModule,\n ThyEmptyModule,\n ThyOptionModule,\n ThyAutocompleteTriggerDirective,\n ThyAutocomplete,\n ThyAutocompleteContainer\n ],\n exports: [ThyAutocompleteTriggerDirective, ThyAutocomplete, ThyAutocompleteContainer, ThyOptionModule],\n providers: [THY_AUTOCOMPLETE_DEFAULT_CONFIG_PROVIDER, ThyAutocompleteService]\n})\nexport class ThyAutocompleteModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\n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ACd,aAAa;YACb,YAAY;YACZ,gBAAgB;YAChB,eAAe;YACf,aAAa;YACb,cAAc;YACd,eAAe;YAEf,eAAe;AACf,YAAA,wBAAwB,EAE0D,eAAe,CAAA,EAAA,CAAA,CAAA;;4FAG5F,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAnBjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,aAAa;wBACb,YAAY;wBACZ,gBAAgB;wBAChB,eAAe;wBACf,aAAa;wBACb,cAAc;wBACd,eAAe;wBACf,+BAA+B;wBAC/B,eAAe;wBACf;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,+BAA+B,EAAE,eAAe,EAAE,wBAAwB,EAAE,eAAe,CAAC;AACtG,oBAAA,SAAS,EAAE,CAAC,wCAAwC,EAAE,sBAAsB;AAC/E,iBAAA;;;AClCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-tethys-autocomplete.mjs","sources":["../../../src/autocomplete/autocomplete.component.ts","../../../src/autocomplete/autocomplete.component.html","../../../src/autocomplete/overlay/autocomplete-animations.ts","../../../src/autocomplete/overlay/autocomplete.config.ts","../../../src/autocomplete/overlay/autocomplete.options.ts","../../../src/autocomplete/overlay/autocomplete-container.component.ts","../../../src/autocomplete/overlay/autocomplete-container.component.html","../../../src/autocomplete/overlay/autocomplete-ref.ts","../../../src/autocomplete/overlay/autocomplete.service.ts","../../../src/autocomplete/autocomplete.trigger.directive.ts","../../../src/autocomplete/module.ts","../../../src/autocomplete/ngx-tethys-autocomplete.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n ElementRef,\n inject,\n Signal,\n viewChild,\n input,\n output,\n viewChildren,\n signal,\n DestroyRef,\n afterRenderEffect,\n computed,\n contentChildren\n} from '@angular/core';\nimport { ThyOption, ThyOptionRender, ThyOptionSelectionChangeEvent, ThyStopPropagationDirective } from 'ngx-tethys/shared';\nimport { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { ThyEmpty } from 'ngx-tethys/empty';\nimport { NgClass } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\nimport { injectLocale, ThyAutoCompleteLocale } from 'ngx-tethys/i18n';\nimport { injectPanelEmptyIcon } from 'ngx-tethys/core';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n/** Event object that is emitted when an autocomplete option is activated. */\nexport interface ThyAutocompleteActivatedEvent {\n /** Reference to the autocomplete panel that emitted the event. */\n source: ThyAutocomplete;\n\n /** Option that was selected. */\n option: ThyOption | null;\n}\n\n/**\n * 自动完成组件\n * @name thy-autocomplete\n */\n@Component({\n selector: 'thy-autocomplete',\n templateUrl: 'autocomplete.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ThyStopPropagationDirective, NgClass, ThyEmpty, ThyOptionRender]\n})\nexport class ThyAutocomplete {\n private changeDetectorRef = inject(ChangeDetectorRef);\n\n private destroyRef = inject(DestroyRef);\n\n private locale: Signal<ThyAutoCompleteLocale> = injectLocale('autocomplete');\n\n emptyIcon: Signal<string> = injectPanelEmptyIcon();\n\n dropDownClass: { [key: string]: boolean } = {\n 'thy-select-dropdown': true,\n 'thy-select-dropdown-single': true\n };\n\n isOpened = false;\n\n readonly selectedValues = signal<SafeAny[]>([]);\n\n readonly selectedValuesMap = computed<Map<SafeAny, boolean>>(() => {\n return new Map(this.selectedValues().map(value => [value, true]));\n });\n\n /** Manages active item in option list based on key events. */\n keyManager?: ActiveDescendantKeyManager<ThyOptionRender>;\n\n readonly contentTemplateRef = viewChild<TemplateRef<any>>('contentTemplate');\n\n // scroll element container\n readonly optionsContainer = viewChild<ElementRef<any>>('panel');\n\n /**\n * @private\n */\n readonly options = contentChildren(ThyOption, { descendants: true });\n\n readonly optionRenders = viewChildren(ThyOptionRender);\n\n /**\n * 空选项时的文本\n * @default 没有任何数据\n */\n readonly thyEmptyText = input<string>(this.locale().empty);\n\n /**\n * 是否默认高亮第一个选项\n */\n readonly thyAutoActiveFirstOption = input(false, { transform: coerceBooleanProperty });\n\n /**\n * 被选中时调用,参数包含选中项的 value 值\n */\n readonly thyOptionSelected = output<ThyOptionSelectionChangeEvent>();\n\n /**\n * 只读,展开下拉菜单的回调\n */\n readonly thyOpened = output<void>();\n\n /**\n * 只读,关闭下拉菜单的回调\n */\n readonly thyClosed = output<void>();\n\n /** Emits whenever an option is activated using the keyboard. */\n /**\n * 只读,option 激活状态变化时,调用此函数\n */\n readonly thyOptionActivated = output<ThyAutocompleteActivatedEvent>();\n\n constructor() {\n afterRenderEffect(() => {\n this.initKeyManager();\n });\n }\n\n initKeyManager() {\n const optionRenders = this.optionRenders();\n this.keyManager = new ActiveDescendantKeyManager<ThyOptionRender>(optionRenders).withWrap();\n this.keyManager.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(index => {\n this.thyOptionActivated.emit({ source: this, option: this.options()[index] || null });\n });\n }\n\n open() {\n this.isOpened = true;\n this.changeDetectorRef.markForCheck();\n this.thyOpened.emit();\n }\n\n close() {\n this.isOpened = false;\n this.thyClosed.emit();\n }\n\n optionClick(event: { value: SafeAny; isUserInput?: boolean }) {\n const { value, isUserInput } = event;\n const option = this.options().find(option => option.thyValue() === value);\n if (option) {\n option.selectionChange.emit({ option, isUserInput: !!isUserInput });\n }\n\n this.selectedValues.set([value]);\n this.thyOptionSelected.emit(new ThyOptionSelectionChangeEvent(option!, false));\n }\n}\n","<ng-template #contentTemplate>\n <div thyStopPropagation [ngClass]=\"dropDownClass\">\n <div #panel class=\"thy-select-dropdown-options\">\n @for (option of options(); track option.thyValue()) {\n <thy-option-render\n [thyValue]=\"option.thyValue()\"\n [thyRawValue]=\"option.thyRawValue()\"\n [thyLabelText]=\"option.thyLabelText()\"\n [thyShowOptionCustom]=\"option.thyShowOptionCustom()\"\n [thySearchKey]=\"option.thySearchKey()\"\n [thyDisabled]=\"option.thyDisabled()\"\n [thyTemplate]=\"option.template()\"\n [thySelectedValuesMap]=\"selectedValuesMap()\"\n (optionClick)=\"optionClick($event)\">\n </thy-option-render>\n }\n @if (options().length <= 0) {\n <thy-empty [thyMessage]=\"thyEmptyText()\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n }\n </div>\n </div>\n</ng-template>\n","import { animate, state, style, transition, trigger, AnimationTriggerMetadata } from '@angular/animations';\n\nconst animationBody = [state('void, exit', style({ opacity: 0, transform: 'scale(0.1)' })), state('enter', style({ transform: 'none' }))];\n\n/**\n * Animations used by ThyAutocomplete.\n * @docs-private\n */\nexport const thyAutocompleteAnimations: {\n readonly autocompleteContainer: AnimationTriggerMetadata;\n} = {\n autocompleteContainer: trigger('autocompleteContainer', animationBody)\n};\n","import { ElementRef, InjectionToken } from '@angular/core';\nimport { ThyPlacement, ThyAbstractOverlayConfig } from 'ngx-tethys/core';\nimport { ScrollStrategy } from '@angular/cdk/overlay';\n\nexport class ThyAutocompleteConfig<TData = any> extends ThyAbstractOverlayConfig<TData> {\n /** Origin Element, for overlay flexible connected to */\n // @ts-ignore\n origin: ElementRef<any> | HTMLElement;\n\n /** Placement be relative to origin, topCenter, topLeft, topRight, bottomCenter, bottomLeft, bottomRight ...*/\n placement?: ThyPlacement;\n\n /** Click inside can been close */\n insideClosable?: boolean;\n\n /** Offset be relative to origin, default is 4*/\n offset?: number;\n\n /** Manually close it, default rules is which auto close last autocomplete when open a new unless set manualClosure as true */\n manualClosure?: boolean;\n\n /** Origin active class when autocomplete is opened */\n originActiveClass?: string | string[];\n\n /**\n * 滚动策略\n */\n scrollStrategy?: ScrollStrategy;\n\n /** Click outside can been close */\n outsideClosable?: boolean;\n}\n\nexport const THY_AUTOCOMPLETE_DEFAULT_CONFIG = new InjectionToken<ThyAutocompleteConfig>('thy-autocomplete-default-config');\n\nexport const THY_AUTOCOMPLETE_DEFAULT_CONFIG_PROVIDER = {\n provide: THY_AUTOCOMPLETE_DEFAULT_CONFIG,\n useValue: {\n hasBackdrop: false,\n panelClass: '',\n closeOnNavigation: true,\n insideClosable: true,\n manualClosure: false,\n outsideClosable: true,\n originActiveClass: 'thy-autocomplete-origin-active'\n }\n};\n","import { ThyAbstractOverlayOptions } from 'ngx-tethys/core';\n\nexport const autocompleteAbstractOverlayOptions: ThyAbstractOverlayOptions = {\n name: 'autocomplete',\n animationEnabled: true,\n disposeWhenClose: true\n};\n","import { ThyAbstractOverlayContainer, ThyClickDispatcher, ThyPortalOutlet } from 'ngx-tethys/core';\nimport { Observable } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { AnimationEvent } from '@angular/animations';\nimport { PortalModule } from '@angular/cdk/portal';\n\nimport { AfterViewInit, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone, ViewChild, inject, DOCUMENT } from '@angular/core';\n\nimport { thyAutocompleteAnimations } from './autocomplete-animations';\nimport { ThyAutocompleteConfig } from './autocomplete.config';\nimport { autocompleteAbstractOverlayOptions } from './autocomplete.options';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-autocomplete-container',\n templateUrl: './autocomplete-container.component.html',\n animations: [thyAutocompleteAnimations.autocompleteContainer],\n host: {\n class: 'thy-autocomplete-container',\n tabindex: '-1',\n '[attr.role]': `'autocomplete'`,\n '[@autocompleteContainer]': 'animationState',\n '(@autocompleteContainer.start)': 'onAnimationStart($event)',\n '(@autocompleteContainer.done)': 'onAnimationDone($event)'\n },\n imports: [PortalModule, ThyPortalOutlet]\n})\nexport class ThyAutocompleteContainer extends ThyAbstractOverlayContainer implements AfterViewInit {\n private elementRef = inject(ElementRef);\n private document = inject(DOCUMENT);\n config = inject(ThyAutocompleteConfig);\n private thyClickDispatcher = inject(ThyClickDispatcher);\n private ngZone = inject(NgZone);\n\n @ViewChild(ThyPortalOutlet, { static: true })\n portalOutlet!: ThyPortalOutlet;\n\n /** State of the autocomplete animation. */\n animationState: 'void' | 'enter' | 'exit' = 'enter';\n\n /** Emits when an animation state changes. */\n animationStateChanged = new EventEmitter<AnimationEvent>();\n\n animationOpeningDone!: Observable<AnimationEvent>;\n animationClosingDone!: Observable<AnimationEvent>;\n\n beforeAttachPortal(): void {}\n\n constructor() {\n const changeDetectorRef = inject(ChangeDetectorRef);\n\n super(autocompleteAbstractOverlayOptions, changeDetectorRef);\n\n this.animationOpeningDone = this.animationStateChanged.pipe(\n filter((event: AnimationEvent) => {\n return event.phaseName === 'done' && event.toState === 'enter';\n })\n );\n this.animationClosingDone = this.animationStateChanged.pipe(\n filter((event: AnimationEvent) => {\n return event.phaseName === 'done' && event.toState === 'exit';\n })\n );\n }\n\n ngAfterViewInit() {}\n\n /** Callback, invoked whenever an animation on the host completes. */\n onAnimationDone(event: AnimationEvent) {\n this.animationStateChanged.emit(event);\n }\n\n /** Callback, invoked when an animation on the host starts. */\n onAnimationStart(event: AnimationEvent) {\n this.animationStateChanged.emit(event);\n }\n\n startExitAnimation(): void {\n this.animationState = 'exit';\n this.changeDetectorRef.markForCheck();\n }\n}\n","<ng-template thyPortalOutlet></ng-template>\n","import { ThyAbstractInternalOverlayRef, ThyAbstractOverlayOptions, ThyAbstractOverlayRef } from 'ngx-tethys/core';\nimport { ThyAutocompleteContainer } from './autocomplete-container.component';\nimport { ThyAutocompleteConfig } from './autocomplete.config';\nimport { autocompleteAbstractOverlayOptions } from './autocomplete.options';\n\nexport abstract class ThyAutocompleteRef<T, TResult = any> extends ThyAbstractOverlayRef<T, ThyAutocompleteContainer, TResult> {}\n\nexport class ThyInternalAutocompleteRef<T, TResult = any>\n extends ThyAbstractInternalOverlayRef<T, ThyAutocompleteContainer, TResult, ThyAutocompleteConfig>\n implements ThyAutocompleteRef<T, TResult>\n{\n constructor() {\n super();\n }\n\n protected get options(): ThyAbstractOverlayOptions {\n return autocompleteAbstractOverlayOptions;\n }\n\n /**\n * Updates the autocomplete's position.\n * @param position New autocomplete position.\n */\n updatePosition(): this {\n this.overlayRef.updatePosition();\n return this;\n }\n}\n","import { getFlexiblePositions, getOverlayGlobalConfig, THY_GLOBAL_CONFIG, ThyAbstractOverlayService, ThyGlobalConfig } from 'ngx-tethys/core';\nimport { of, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { Directionality } from '@angular/cdk/bidi';\nimport { coerceArray, coerceElement } from '@angular/cdk/coercion';\nimport {\n ComponentType,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayContainer,\n OverlayRef,\n PositionStrategy,\n ScrollDispatcher\n} from '@angular/cdk/overlay';\nimport { Platform } from '@angular/cdk/platform';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ViewportRuler } from '@angular/cdk/scrolling';\n\nimport { ElementRef, Injectable, Injector, NgZone, OnDestroy, StaticProvider, TemplateRef, inject, DOCUMENT } from '@angular/core';\n\nimport { ThyAutocompleteContainer } from './autocomplete-container.component';\nimport { ThyAutocompleteRef, ThyInternalAutocompleteRef } from './autocomplete-ref';\nimport { THY_AUTOCOMPLETE_DEFAULT_CONFIG, ThyAutocompleteConfig } from './autocomplete.config';\nimport { autocompleteAbstractOverlayOptions } from './autocomplete.options';\n\n/**\n * @private\n */\n@Injectable()\nexport class ThyAutocompleteService\n extends ThyAbstractOverlayService<ThyAutocompleteConfig, ThyAutocompleteContainer>\n implements OnDestroy\n{\n private scrollDispatcher = inject(ScrollDispatcher);\n private ngZone = inject(NgZone);\n private _viewportRuler = inject(ViewportRuler);\n private _document = inject(DOCUMENT);\n private _platform = inject(Platform);\n private _overlayContainer = inject(OverlayContainer);\n private globalConfig = inject<ThyGlobalConfig>(THY_GLOBAL_CONFIG, { optional: true });\n\n private readonly ngUnsubscribe$ = new Subject();\n\n private originInstancesMap = new Map<\n ElementRef | HTMLElement,\n {\n config: ThyAutocompleteConfig;\n autocompleteRef: ThyAutocompleteRef<any, any>;\n }\n >();\n\n private buildPositionStrategy<TData>(config: ThyAutocompleteConfig<TData>): PositionStrategy {\n const positionStrategy = new FlexibleConnectedPositionStrategy(\n config.origin,\n this._viewportRuler,\n this._document,\n this._platform,\n this._overlayContainer\n );\n const flexiblePosition = getOverlayGlobalConfig(this.globalConfig).flexiblePosition !== false;\n const positions = getFlexiblePositions(config.placement!, config.offset, 'thy-autocomplete', flexiblePosition);\n positionStrategy.withPositions(positions);\n positionStrategy.withGrowAfterOpen(true);\n positionStrategy.positionChanges.pipe(takeUntil(this.ngUnsubscribe$)).subscribe(change => {\n if (change.scrollableViewProperties.isOverlayClipped) {\n // After position changes occur and the overlay is clipped by\n // a parent scrollable then close the tooltip.\n this.ngZone.run(() => this.close());\n }\n });\n return positionStrategy;\n }\n\n protected buildOverlayConfig<TData>(config: ThyAutocompleteConfig<TData>): OverlayConfig {\n const strategy = this.buildPositionStrategy(config);\n const overlayConfig = this.buildBaseOverlayConfig(config);\n overlayConfig.positionStrategy = strategy;\n overlayConfig.scrollStrategy = config.scrollStrategy || this.overlay.scrollStrategies.block();\n overlayConfig.width = config.width;\n return overlayConfig;\n }\n\n protected attachOverlayContainer(overlay: OverlayRef, config: ThyAutocompleteConfig<any>): ThyAutocompleteContainer {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n const injector = Injector.create({\n parent: userInjector || this.injector,\n providers: [{ provide: ThyAutocompleteConfig, useValue: config }]\n });\n const containerPortal = new ComponentPortal(ThyAutocompleteContainer, config.viewContainerRef, injector);\n const containerRef = overlay.attach<ThyAutocompleteContainer>(containerPortal);\n return containerRef.instance;\n }\n\n protected createAbstractOverlayRef<T>(\n overlayRef: OverlayRef,\n containerInstance: ThyAutocompleteContainer,\n config: ThyAutocompleteConfig<any>\n ): ThyInternalAutocompleteRef<T> {\n const autocompleteRef = new ThyInternalAutocompleteRef<T>();\n autocompleteRef.initialize(overlayRef, containerInstance, config);\n return autocompleteRef;\n }\n\n protected createInjectorProviders<T>(\n autocompleteRef: ThyAutocompleteRef<T>,\n autocompleteContainer: ThyAutocompleteContainer\n ): StaticProvider[] {\n return [\n {\n provide: ThyAutocompleteContainer,\n useValue: autocompleteContainer\n },\n {\n provide: ThyAutocompleteRef,\n useValue: autocompleteRef\n }\n ];\n }\n\n private originElementAddActiveClass(config: ThyAutocompleteConfig) {\n if (config.originActiveClass) {\n coerceElement<HTMLElement>(config.origin).classList.add(...coerceArray(config.originActiveClass));\n }\n }\n\n private originElementRemoveActiveClass(config: ThyAutocompleteConfig) {\n if (config.originActiveClass) {\n coerceElement<HTMLElement>(config.origin).classList.remove(...coerceArray(config.originActiveClass));\n }\n }\n\n constructor() {\n const overlay = inject(Overlay);\n const injector = inject(Injector);\n const defaultConfig = inject(THY_AUTOCOMPLETE_DEFAULT_CONFIG);\n\n super(autocompleteAbstractOverlayOptions, overlay, injector, defaultConfig);\n }\n\n open<T, TData = any, TResult = any>(\n componentOrTemplateRef: ComponentType<T> | TemplateRef<T>,\n config?: ThyAutocompleteConfig<TData>\n ): ThyAutocompleteRef<T, TResult> {\n const originElement = coerceElement(config?.origin);\n const autocompleteRef = this.openOverlay(componentOrTemplateRef, config) as ThyAutocompleteRef<T>;\n config = autocompleteRef.containerInstance.config;\n autocompleteRef.afterClosed().subscribe(() => {\n this.originElementRemoveActiveClass(config);\n this.originInstancesMap.delete(originElement);\n });\n\n this.originElementAddActiveClass(config);\n this.originInstancesMap.set(originElement, {\n config,\n autocompleteRef\n });\n\n return autocompleteRef;\n }\n\n ngOnDestroy() {\n this.dispose();\n }\n}\n","import {\n Directive,\n ElementRef,\n NgZone,\n OnDestroy,\n OnInit,\n ViewContainerRef,\n HostBinding,\n ChangeDetectorRef,\n numberAttribute,\n inject,\n input,\n computed,\n Signal,\n DOCUMENT,\n Injector\n} from '@angular/core';\nimport { OverlayRef, Overlay } from '@angular/cdk/overlay';\nimport { ThyPlacement, ScrollToService } from 'ngx-tethys/core';\nimport { ThyAutocompleteService } from './overlay/autocomplete.service';\nimport { ThyAutocompleteRef } from './overlay/autocomplete-ref';\nimport { ThyAutocomplete } from './autocomplete.component';\nimport { ThyOptionRender, ThyOptionSelectionChangeEvent } from 'ngx-tethys/shared';\nimport { Subject, Observable, merge, fromEvent, of, Subscription, from } from 'rxjs';\nimport { ESCAPE, UP_ARROW, ENTER, DOWN_ARROW, TAB, coerceBooleanProperty } from 'ngx-tethys/util';\nimport { filter, map, take, delay, switchMap, skip } from 'rxjs/operators';\nimport { outputToObservable, toObservable } from '@angular/core/rxjs-interop';\n\n/**\n * 自动完成触发指令\n * @name thyAutocomplete\n */\n@Directive({\n selector:\n 'input[thyAutocompleteTrigger], textarea[thyAutocompleteTrigger], thy-input[thyAutocompleteTrigger], thy-input-search[thyAutocompleteTrigger], input[thyAutocomplete], textarea[thyAutocomplete], thy-input[thyAutocomplete], thy-input-search[thyAutocomplete]',\n exportAs: 'thyAutocompleteTrigger, thyAutocomplete',\n host: {\n '(input)': 'handleInput($event)',\n '(focusin)': 'onFocus()',\n '(keydown)': 'onKeydown($event)'\n }\n})\nexport class ThyAutocompleteTriggerDirective implements OnInit, OnDestroy {\n private elementRef = inject(ElementRef);\n private ngZone = inject(NgZone);\n private overlay = inject(Overlay);\n private autocompleteService = inject(ThyAutocompleteService);\n private viewContainerRef = inject(ViewContainerRef);\n private document = inject(DOCUMENT, { optional: true })!;\n private cdr = inject(ChangeDetectorRef);\n private injector = inject(Injector);\n\n protected overlayRef: OverlayRef | null = null;\n\n private autocompleteRef!: ThyAutocompleteRef<ThyAutocomplete>;\n\n private readonly closeKeyEventStream = new Subject<void>();\n\n private closingActionsSubscription!: Subscription;\n\n @HostBinding(`class.thy-autocomplete-opened`) panelOpened = false;\n\n /**\n * 下拉菜单组件实例。已废弃,请使用 thyAutocomplete\n * @type thyAutocompleteComponent\n * @deprecated\n */\n readonly thyAutocompleteComponent = input<ThyAutocomplete>();\n\n /**\n * 下拉菜单组件实例\n * @type thyAutocompleteComponent\n */\n readonly thyAutocomplete = input<ThyAutocomplete>();\n\n readonly autocompleteComponent: Signal<ThyAutocomplete> = computed(() => {\n return this.thyAutocomplete() || this.thyAutocompleteComponent()!;\n });\n\n /**\n * 弹出框默认 offset\n */\n readonly thyOffset = input<number, unknown>(4, { transform: numberAttribute });\n\n /**\n * 下拉菜单的宽度,不设置默认与输入框同宽\n */\n readonly thyAutocompleteWidth = input<number, unknown>(undefined, { transform: numberAttribute });\n\n /**\n * 下拉菜单的显示位置,'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom'\n */\n readonly thyPlacement = input<ThyPlacement>('bottomLeft');\n\n /**\n * 是否允许聚焦时打开下拉菜单\n */\n readonly thyIsFocusOpen = input(true, { transform: coerceBooleanProperty });\n\n readonly activeOption: Signal<ThyOptionRender | null> = computed(() => {\n if (this.autocompleteComponent() && this.autocompleteComponent().keyManager) {\n return this.autocompleteComponent().keyManager!.activeItem;\n }\n return null;\n });\n\n get panelClosingActions(): Observable<ThyOptionSelectionChangeEvent | null> {\n return merge(\n outputToObservable(this.autocompleteComponent().thyOptionSelected),\n this.autocompleteComponent().keyManager!.tabOut.pipe(filter(() => this.panelOpened)),\n this.closeKeyEventStream,\n this.getOutsideClickStream(),\n this.overlayRef ? this.overlayRef.detachments().pipe(filter(() => this.panelOpened)) : of()\n ).pipe(\n // Normalize the output so we return a consistent type.\n map(event => (event instanceof ThyOptionSelectionChangeEvent ? event : null))\n );\n }\n\n ngOnInit(): void {}\n\n onFocus() {\n if (this.canOpen() && this.thyIsFocusOpen()) {\n this.openPanel();\n }\n }\n\n onKeydown(event: KeyboardEvent) {\n const keyCode = event.keyCode;\n // Prevent the default action on all escape key presses. This is here primarily to bring IE\n // in line with other browsers. By default, pressing escape on IE will cause it to revert\n // the input value to the one that it had on focus, however it won't dispatch any events\n // which means that the model value will be out of sync with the view.\n if (keyCode === ESCAPE) {\n event.preventDefault();\n }\n const autocompleteComponent = this.autocompleteComponent();\n if (this.activeOption() && keyCode === ENTER && this.panelOpened) {\n this.activeOption()!.selectViaInteraction();\n this.resetActiveItem();\n event.preventDefault();\n } else if (autocompleteComponent) {\n const prevActiveItem = autocompleteComponent.keyManager!.activeItem;\n const isArrowKey = keyCode === UP_ARROW || keyCode === DOWN_ARROW;\n if (this.panelOpened || keyCode === TAB) {\n autocompleteComponent.keyManager!.onKeydown(event);\n } else if (isArrowKey && this.canOpen()) {\n this.openPanel();\n }\n if (\n (isArrowKey || autocompleteComponent.keyManager!.activeItem !== prevActiveItem) &&\n autocompleteComponent.keyManager!.activeItem\n ) {\n ScrollToService.scrollToElement(\n autocompleteComponent.keyManager!.activeItem.element.nativeElement,\n autocompleteComponent.optionsContainer()!.nativeElement\n );\n }\n }\n }\n\n handleInput(event: KeyboardEvent) {\n if (this.canOpen() && document.activeElement === event.target) {\n this.openPanel();\n }\n }\n\n openPanel() {\n if (this.overlayRef && this.overlayRef.hasAttached()) {\n return;\n }\n const overlayRef = this.createOverlay();\n this.overlayRef = overlayRef;\n overlayRef.keydownEvents().subscribe(event => {\n // Close when pressing ESCAPE or ALT + UP_ARROW, based on the a11y guidelines.\n // See: https://www.w3.org/TR/wai-aria-practices-1.1/#textbox-keyboard-interaction\n if (event.keyCode === ESCAPE || (event.keyCode === UP_ARROW && event.altKey)) {\n this.resetActiveItem();\n this.closeKeyEventStream.next();\n // We need to stop propagation, otherwise the event will eventually\n // reach the input itself and cause the overlay to be reopened.\n event.stopPropagation();\n event.preventDefault();\n }\n });\n this.panelOpened = true;\n this.autocompleteComponent().open();\n }\n\n closePanel() {\n if (this.autocompleteRef) {\n this.autocompleteRef.close();\n this.cdr.detectChanges();\n this.closingActionsSubscription.unsubscribe();\n }\n }\n\n createOverlay(): OverlayRef {\n const config = Object.assign({\n origin: this.elementRef.nativeElement,\n viewContainerRef: this.viewContainerRef,\n placement: this.thyPlacement(),\n offset: this.thyOffset(),\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n width: this.thyAutocompleteWidth() || this.elementRef.nativeElement.clientWidth\n });\n const autocompleteComponent = this.autocompleteComponent();\n this.autocompleteRef = this.autocompleteService.open(autocompleteComponent.contentTemplateRef()!, config);\n this.autocompleteRef.afterClosed().subscribe(() => {\n this.panelOpened = false;\n autocompleteComponent.close();\n });\n // delay 200ms to prevent emit document click rightnow\n this.autocompleteRef\n .afterOpened()\n .pipe(delay(200))\n .subscribe(() => {\n this.closingActionsSubscription = this.subscribeToClosingActions();\n });\n return this.autocompleteRef.getOverlayRef();\n }\n\n /**\n * This method listens to a stream of panel closing actions and resets the\n * stream every time the option list changes.\n */\n private subscribeToClosingActions(): Subscription {\n const firstStable = from(Promise.resolve());\n const optionChanges = toObservable(this.autocompleteComponent().options, { injector: this.injector }).pipe(\n // Skip the initial emission to match QueryList.changes behavior.\n skip(1),\n // Defer emitting to the stream until the next tick, because changing\n // bindings in here will cause \"changed after checked\" errors.\n delay(0)\n );\n // When the zone is stable initially, and when the option list changes...\n return (\n merge(firstStable, optionChanges)\n .pipe(\n // create a new stream of panelClosingActions, replacing any previous streams\n // that were created, and flatten it so our stream only emits closing events...\n switchMap(() => {\n this.resetActiveItem();\n\n if (this.panelOpened) {\n this.overlayRef!.updatePosition();\n }\n return this.panelClosingActions;\n }),\n // when the first closing event occurs...\n take(1)\n )\n // set the value, close the panel, and complete.\n .subscribe(event => this.setValueAndClose(event))\n );\n }\n\n private setValueAndClose(event: ThyOptionSelectionChangeEvent | null): void {\n if (event && event.option) {\n this.setValue(event.option.thyLabelText()!);\n }\n this.closePanel();\n }\n\n /** Stream of clicks outside of the autocomplete panel. */\n private getOutsideClickStream(): Observable<any> {\n return merge(\n fromEvent(this.document, 'click') as Observable<MouseEvent>,\n fromEvent(this.document, 'touchend') as Observable<TouchEvent>\n ).pipe(\n filter(event => {\n // If we're in the Shadow DOM, the event target will be the shadow root, so we have to\n // fall back to check the first element in the path of the click event.\n const clickTarget = event.target as HTMLElement;\n const formField: any = null;\n\n return (\n this.panelOpened &&\n clickTarget !== this.elementRef.nativeElement &&\n !this.elementRef.nativeElement.contains(clickTarget) &&\n (!formField || !formField.contains(clickTarget)) &&\n !!this.overlayRef &&\n !this.overlayRef.overlayElement.contains(clickTarget)\n );\n })\n );\n }\n\n private setValue(value: string) {\n const input = this.elementRef.nativeElement.querySelector('input');\n const element = input ? input : this.elementRef.nativeElement;\n element.value = value;\n element.focus();\n }\n\n private canOpen(): boolean {\n const element: HTMLInputElement = this.elementRef.nativeElement;\n return !element.readOnly && !element.disabled;\n }\n\n private resetActiveItem(): void {\n const autocompleteComponent = this.autocompleteComponent();\n const index = autocompleteComponent.thyAutoActiveFirstOption() ? 0 : -1;\n autocompleteComponent.keyManager!.setActiveItem(index);\n }\n\n private destroyPanel(): void {\n if (this.overlayRef) {\n this.closePanel();\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n\n ngOnDestroy() {\n this.closeKeyEventStream.complete();\n this.destroyPanel();\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ThyEmptyModule } from 'ngx-tethys/empty';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyInputModule } from 'ngx-tethys/input';\nimport { ThyLoadingModule } from 'ngx-tethys/loading';\nimport { ThyOptionModule, ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyAutocomplete } from './autocomplete.component';\nimport { ThyAutocompleteTriggerDirective } from './autocomplete.trigger.directive';\nimport { ThyAutocompleteContainer } from './overlay/autocomplete-container.component';\nimport { THY_AUTOCOMPLETE_DEFAULT_CONFIG_PROVIDER } from './overlay/autocomplete.config';\nimport { ThyAutocompleteService } from './overlay/autocomplete.service';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ThyInputModule,\n OverlayModule,\n PortalModule,\n ThyLoadingModule,\n ThySharedModule,\n ThyIconModule,\n ThyEmptyModule,\n ThyOptionModule,\n ThyAutocompleteTriggerDirective,\n ThyAutocomplete,\n ThyAutocompleteContainer\n ],\n exports: [ThyAutocompleteTriggerDirective, ThyAutocomplete, ThyAutocompleteContainer, ThyOptionModule],\n providers: [THY_AUTOCOMPLETE_DEFAULT_CONFIG_PROVIDER, ThyAutocompleteService]\n})\nexport class ThyAutocompleteModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqCA;;;AAGG;MAOU,eAAe,CAAA;AAqExB,IAAA,WAAA,GAAA;AApEQ,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAE7C,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAE/B,QAAA,IAAA,CAAA,MAAM,GAAkC,YAAY,CAAC,cAAc,CAAC;QAE5E,IAAA,CAAA,SAAS,GAAmB,oBAAoB,EAAE;AAElD,QAAA,IAAA,CAAA,aAAa,GAA+B;AACxC,YAAA,qBAAqB,EAAE,IAAI;AAC3B,YAAA,4BAA4B,EAAE;SACjC;QAED,IAAA,CAAA,QAAQ,GAAG,KAAK;AAEP,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAY,EAAE,qFAAC;AAEtC,QAAA,IAAA,CAAA,iBAAiB,GAAG,QAAQ,CAAwB,MAAK;YAC9D,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACrE,QAAA,CAAC,wFAAC;AAKO,QAAA,IAAA,CAAA,kBAAkB,GAAG,SAAS,CAAmB,iBAAiB,yFAAC;;AAGnE,QAAA,IAAA,CAAA,gBAAgB,GAAG,SAAS,CAAkB,OAAO,uFAAC;AAE/D;;AAEG;QACM,IAAA,CAAA,OAAO,GAAG,eAAe,CAAC,SAAS,+EAAI,WAAW,EAAE,IAAI,EAAA,CAAG;AAE3D,QAAA,IAAA,CAAA,aAAa,GAAG,YAAY,CAAC,eAAe,oFA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
|
|
@@ -211,8 +211,9 @@ class ThyButton {
|
|
|
211
211
|
setButtonText() {
|
|
212
212
|
const text = this.thyLoading() ? this.thyLoadingText() : this._originalText;
|
|
213
213
|
const spanElement = this.nativeElement.querySelector('span');
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
const textNode = spanElement?.firstChild;
|
|
215
|
+
if (spanElement && textNode && text) {
|
|
216
|
+
this.renderer.setValue(textNode, text);
|
|
216
217
|
}
|
|
217
218
|
}
|
|
218
219
|
updateClasses() {
|
|
@@ -309,7 +310,7 @@ class ThyButton {
|
|
|
309
310
|
return null;
|
|
310
311
|
}, ...(ngDevMode ? [{ debugName: "iconClass" }] : /* istanbul ignore next */ []));
|
|
311
312
|
this.buttonType = computed(() => {
|
|
312
|
-
return this.thyButton() || this.thyType();
|
|
313
|
+
return this.thyButton() || this.thyType() || 'primary';
|
|
313
314
|
}, ...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
|
|
314
315
|
this.isRadiusSquare = computed(() => {
|
|
315
316
|
const type = this.buttonType();
|