ngx-tethys 19.1.4 → 19.1.6

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.
@@ -148,6 +148,13 @@ declare const _default: {
148
148
  prev: string;
149
149
  next: string;
150
150
  };
151
+ notify: {
152
+ success: string;
153
+ warning: string;
154
+ error: string;
155
+ info: string;
156
+ detail: string;
157
+ };
151
158
  shared: {
152
159
  comma: string;
153
160
  };
@@ -148,6 +148,13 @@ declare const _default: {
148
148
  prev: string;
149
149
  next: string;
150
150
  };
151
+ notify: {
152
+ success: string;
153
+ warning: string;
154
+ error: string;
155
+ info: string;
156
+ detail: string;
157
+ };
151
158
  shared: {
152
159
  comma: string;
153
160
  };
@@ -148,6 +148,13 @@ declare const _default: {
148
148
  prev: string;
149
149
  next: string;
150
150
  };
151
+ notify: {
152
+ success: string;
153
+ warning: string;
154
+ error: string;
155
+ info: string;
156
+ detail: string;
157
+ };
151
158
  shared: {
152
159
  comma: string;
153
160
  };
@@ -1,8 +1,10 @@
1
+ import { Signal } from '@angular/core';
1
2
  import { ThyGlobalNotifyConfig, ThyNotifyConfig } from './notify.config';
2
3
  import { ThyNotifyRef } from './notify-ref';
3
4
  import { ThyNotifyContainer } from './notify-container.component';
4
5
  import { ThyAbstractMessageService } from 'ngx-tethys/message';
5
6
  import { ComponentTypeOrTemplateRef } from 'ngx-tethys/core';
7
+ import { ThyNotifyLocale } from 'ngx-tethys/i18n';
6
8
  import * as i0 from "@angular/core";
7
9
  /**
8
10
  * @order 20
@@ -10,6 +12,7 @@ import * as i0 from "@angular/core";
10
12
  export declare class ThyNotifyService extends ThyAbstractMessageService<ThyNotifyContainer> {
11
13
  private notifyQueue;
12
14
  protected config: ThyGlobalNotifyConfig;
15
+ locale: Signal<ThyNotifyLocale>;
13
16
  private _lastNotifyId;
14
17
  private defaultConfig;
15
18
  constructor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "19.1.4",
3
+ "version": "19.1.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/atinc/ngx-tethys.git"
@@ -1 +1 @@
1
- export declare const VERSION = "19.1.4";
1
+ export declare const VERSION = "19.1.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '19.1.4';
4
+ exports.VERSION = '19.1.6';
@@ -1,12 +1,12 @@
1
- import { TabIndexDisabledControlValueAccessorMixin, ThyPlacement } from 'ngx-tethys/core';
2
- import { IThyOptionParentComponent, SelectControlSize, ThyOption, ThyOptionSelectionChangeEvent, ThySelectOptionGroup } from 'ngx-tethys/shared';
3
- import { FunctionProp } from 'ngx-tethys/util';
4
- import { Observable } from 'rxjs';
5
1
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
6
2
  import { SelectionModel } from '@angular/cdk/collections';
7
3
  import { CdkConnectedOverlay, ConnectionPositionPair, ScrollStrategy } from '@angular/cdk/overlay';
8
- import { AfterContentInit, AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList, TemplateRef, Signal } from '@angular/core';
4
+ import { AfterContentInit, AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList, Signal, TemplateRef } from '@angular/core';
9
5
  import { ControlValueAccessor } from '@angular/forms';
6
+ import { TabIndexDisabledControlValueAccessorMixin, ThyPlacement } from 'ngx-tethys/core';
7
+ import { IThyOptionParentComponent, SelectControlSize, ThyOption, ThyOptionSelectionChangeEvent, ThySelectOptionGroup } from 'ngx-tethys/shared';
8
+ import { FunctionProp } from 'ngx-tethys/util';
9
+ import { Observable } from 'rxjs';
10
10
  import { ThyDropdownWidthMode, ThySelectConfig } from '../select.config';
11
11
  import * as i0 from "@angular/core";
12
12
  import * as i1 from "ngx-tethys/util";
@@ -179,9 +179,9 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
179
179
  */
180
180
  readonly thyHasBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
181
181
  /**
182
- * 设置多选时最大显示的标签数量,0 表示不限制
182
+ * 设置多选时最大显示的标签数量,0 表示不限制,'auto' 表示自动计算显示数量,默认值为 0
183
183
  */
184
- readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
184
+ readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number | "auto", number | "auto">;
185
185
  /**
186
186
  * 是否隐藏选择框边框
187
187
  */
@@ -1,5 +1,5 @@
1
1
  import { ThyTagSize } from 'ngx-tethys/tag';
2
- import { ElementRef, OnInit, TemplateRef, Signal } from '@angular/core';
2
+ import { AfterViewInit, ElementRef, OnInit, Signal, TemplateRef } from '@angular/core';
3
3
  import { ThySharedLocale } from 'ngx-tethys/i18n';
4
4
  import { SelectOptionBase } from '../../option/select-option-base';
5
5
  import * as i0 from "@angular/core";
@@ -7,8 +7,11 @@ export type SelectControlSize = 'xs' | 'sm' | 'md' | 'lg' | '';
7
7
  /**
8
8
  * @private
9
9
  */
10
- export declare class ThySelectControl implements OnInit {
10
+ export declare class ThySelectControl implements OnInit, AfterViewInit {
11
11
  private renderer;
12
+ private cdr;
13
+ private ngZone;
14
+ private readonly destroyRef;
12
15
  inputValue: import("@angular/core").ModelSignal<string>;
13
16
  isComposing: import("@angular/core").WritableSignal<boolean>;
14
17
  searchInputControlClass: {
@@ -27,7 +30,7 @@ export declare class ThySelectControl implements OnInit {
27
30
  readonly thyPlaceholder: import("@angular/core").InputSignal<string>;
28
31
  readonly thySize: import("@angular/core").InputSignal<SelectControlSize>;
29
32
  readonly tagSize: Signal<ThyTagSize>;
30
- readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
33
+ readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number | "auto", number | "auto">;
31
34
  readonly thyBorderless: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
32
35
  readonly thyPreset: import("@angular/core").InputSignal<string>;
33
36
  readonly thyOnSearch: import("@angular/core").OutputEmitterRef<string>;
@@ -40,8 +43,10 @@ export declare class ThySelectControl implements OnInit {
40
43
  readonly inputElement: Signal<ElementRef<any>>;
41
44
  locale: Signal<ThySharedLocale>;
42
45
  isSelectedValue: Signal<boolean>;
46
+ readonly tagsContainer: Signal<ElementRef<any>>;
47
+ visibleTagCount: import("@angular/core").WritableSignal<number>;
43
48
  showClearIcon: Signal<boolean>;
44
- maxSelectedTags: Signal<SelectOptionBase[]>;
49
+ selectedTags: Signal<SelectOptionBase[]>;
45
50
  collapsedSelectedTags: Signal<SelectOptionBase[]>;
46
51
  selectedValueStyle: Signal<{
47
52
  display: string;
@@ -51,6 +56,9 @@ export declare class ThySelectControl implements OnInit {
51
56
  }>;
52
57
  constructor();
53
58
  ngOnInit(): void;
59
+ ngAfterViewInit(): void;
60
+ private resizeObserver;
61
+ private calculateVisibleTags;
54
62
  setSelectControlClass(): void;
55
63
  setInputValue(value: string): void;
56
64
  handleBackspace(event: Event): void;
@@ -153,6 +153,14 @@
153
153
  color: variables.$gray-500;
154
154
  }
155
155
  }
156
+ .custom-choice-item,
157
+ .choice-item {
158
+ &.hidden {
159
+ opacity: 0;
160
+ height: 0;
161
+ position: absolute;
162
+ }
163
+ }
156
164
  }
157
165
  .select-control-borderless {
158
166
  border-color: transparent !important;