ngx-tethys 19.1.5 → 19.1.7

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 CHANGED
@@ -2,6 +2,24 @@
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
+ ## [19.1.7](https://github.com/atinc/ngx-tethys/compare/19.1.6...19.1.7) (2025-10-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **tree-select:** fix valueIsObject #TINFR-2935 ([#3577](https://github.com/atinc/ngx-tethys/issues/3577)) ([4ee67fe](https://github.com/atinc/ngx-tethys/commit/4ee67fe6f6a5eb40603743a570c9a4ad6a73e613)), closes [#TINFR-2935](https://github.com/atinc/ngx-tethys/issues/TINFR-2935)
11
+
12
+
13
+
14
+ ## [19.1.6](https://github.com/atinc/ngx-tethys/compare/19.1.5...19.1.6) (2025-09-26)
15
+
16
+
17
+ ### Features
18
+
19
+ * **select:** thyMaxTagCount support auto #TINFR-2868 ([#3563](https://github.com/atinc/ngx-tethys/issues/3563)) ([b6a51de](https://github.com/atinc/ngx-tethys/commit/b6a51dea592ab71c25bc003445c37f02a70c0778)), closes [#TINFR-2868](https://github.com/atinc/ngx-tethys/issues/TINFR-2868)
20
+
21
+
22
+
5
23
  ## [19.1.5](https://github.com/atinc/ngx-tethys/compare/19.1.4...19.1.5) (2025-09-24)
6
24
 
7
25
 
@@ -1,5 +1,5 @@
1
1
  import { CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';
2
- import { AfterContentInit, ElementRef, OnDestroy, OnInit, TemplateRef, Signal } from '@angular/core';
2
+ import { AfterContentInit, ElementRef, OnDestroy, OnInit, Signal, TemplateRef } from '@angular/core';
3
3
  import { ControlValueAccessor } from '@angular/forms';
4
4
  import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
5
5
  import { SelectControlSize, SelectOptionBase } from 'ngx-tethys/shared';
@@ -130,10 +130,9 @@ export declare class ThyCascader extends TabIndexDisabledControlValueAccessorMix
130
130
  */
131
131
  readonly thyMultiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
132
132
  /**
133
- * 设置多选时最大显示的标签数量,0 表示不限制
134
- * @type number
133
+ * 设置多选时最大显示的标签数量,0 表示不限制,'auto' 表示自动计算显示数量,默认值为 0
135
134
  */
136
- readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
135
+ readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number | "auto", number | "auto">;
137
136
  /**
138
137
  * 是否仅允许选择叶子项
139
138
  * @default true
@@ -15,11 +15,11 @@ import { coerceBooleanProperty, isEmpty, isArray, get, isUndefinedOrNull, helper
15
15
  import { ThyBreadcrumb, ThyBreadcrumbItem } from 'ngx-tethys/breadcrumb';
16
16
  import { useHostRenderer } from '@tethys/cdk/dom';
17
17
  import { TabIndexDisabledControlValueAccessorMixin, ThyClickDispatcher, injectPanelEmptyIcon, EXPANDED_DROPDOWN_POSITIONS, ScrollToService, DebounceTimeWrapper, scaleYMotion } from 'ngx-tethys/core';
18
+ import { ThyDivider } from 'ngx-tethys/divider';
19
+ import { injectLocale } from 'ngx-tethys/i18n';
18
20
  import { Subject, BehaviorSubject, timer, Observable } from 'rxjs';
19
21
  import { map, debounceTime, takeUntil, take, distinctUntilChanged, filter } from 'rxjs/operators';
20
- import { ThyDivider } from 'ngx-tethys/divider';
21
22
  import { SelectionModel } from '@angular/cdk/collections';
22
- import { injectLocale } from 'ngx-tethys/i18n';
23
23
 
24
24
  /**
25
25
  * @internal
@@ -793,10 +793,15 @@ class ThyCascader extends TabIndexDisabledControlValueAccessorMixin {
793
793
  */
794
794
  this.thyMultiple = input(false, { transform: coerceBooleanProperty });
795
795
  /**
796
- * 设置多选时最大显示的标签数量,0 表示不限制
797
- * @type number
796
+ * 设置多选时最大显示的标签数量,0 表示不限制,'auto' 表示自动计算显示数量,默认值为 0
798
797
  */
799
- this.thyMaxTagCount = input(0, { transform: numberAttribute });
798
+ this.thyMaxTagCount = input(0, {
799
+ transform: (value) => {
800
+ if (value === 'auto')
801
+ return 'auto';
802
+ return numberAttribute(value, 0);
803
+ }
804
+ });
800
805
  /**
801
806
  * 是否仅允许选择叶子项
802
807
  * @default true