ngx-tethys 19.1.0-next.5 → 19.1.0-next.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/color-picker/coordinates.directive.d.ts +1 -2
  3. package/date-picker/abstract-picker.component.d.ts +50 -52
  4. package/date-picker/abstract-picker.directive.d.ts +15 -40
  5. package/date-picker/base-picker.component.d.ts +12 -40
  6. package/date-picker/date-picker.config.d.ts +1 -0
  7. package/date-picker/lib/calendar/calendar-footer.component.d.ts +24 -19
  8. package/date-picker/lib/calendar/calendar-header.component.d.ts +15 -15
  9. package/date-picker/lib/calendar/calendar-table.component.d.ts +15 -16
  10. package/date-picker/lib/date/date-table-cell.component.d.ts +2 -3
  11. package/date-picker/lib/date/date-table.component.d.ts +2 -3
  12. package/date-picker/lib/date-carousel/date-carousel.component.d.ts +2 -3
  13. package/date-picker/lib/decade/decade-header.component.d.ts +2 -5
  14. package/date-picker/lib/decade/decade-table.component.d.ts +3 -5
  15. package/date-picker/lib/month/month-table.component.d.ts +1 -2
  16. package/date-picker/lib/popups/date-popup.component.d.ts +33 -34
  17. package/date-picker/lib/popups/inner-popup.component.d.ts +22 -29
  18. package/date-picker/lib/quarter/quarter-table.component.d.ts +1 -4
  19. package/date-picker/lib/year/year-header.component.d.ts +2 -4
  20. package/date-picker/lib/year/year-table.component.d.ts +2 -4
  21. package/date-picker/month-picker.component.d.ts +2 -2
  22. package/date-picker/picker.component.d.ts +31 -36
  23. package/date-picker/picker.pipes.d.ts +4 -5
  24. package/date-picker/picker.util.d.ts +5 -5
  25. package/date-picker/picker.validators.d.ts +4 -8
  26. package/date-picker/quarter-picker.component.d.ts +2 -3
  27. package/date-picker/week-picker.component.d.ts +0 -1
  28. package/date-picker/year-picker.component.d.ts +2 -3
  29. package/dropdown/dropdown-menu.component.d.ts +1 -1
  30. package/dropdown/dropdown.directive.d.ts +4 -3
  31. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
  32. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  33. package/fesm2022/ngx-tethys-checkbox.mjs +2 -2
  34. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  35. package/fesm2022/ngx-tethys-color-picker.mjs +4 -6
  36. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  37. package/fesm2022/ngx-tethys-copy.mjs +2 -2
  38. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  39. package/fesm2022/ngx-tethys-date-picker.mjs +841 -1068
  40. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  41. package/fesm2022/ngx-tethys-dropdown.mjs +9 -11
  42. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  43. package/fesm2022/ngx-tethys-flexible-text.mjs +4 -5
  44. package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
  45. package/fesm2022/ngx-tethys-i18n.mjs +11 -6
  46. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  47. package/fesm2022/ngx-tethys-image.mjs +5 -7
  48. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  49. package/fesm2022/ngx-tethys-layout.mjs +291 -334
  50. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  51. package/fesm2022/ngx-tethys-list.mjs +147 -166
  52. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  53. package/fesm2022/ngx-tethys-message.mjs +1 -2
  54. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  55. package/fesm2022/ngx-tethys-radio.mjs +4 -4
  56. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  57. package/fesm2022/ngx-tethys-select.mjs +164 -228
  58. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  59. package/fesm2022/ngx-tethys-shared.mjs +386 -569
  60. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-skeleton.mjs +1 -2
  62. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-table.mjs +1 -2
  64. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  65. package/fesm2022/ngx-tethys-tooltip.mjs +109 -93
  66. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  67. package/fesm2022/ngx-tethys-tree-select.mjs +215 -281
  68. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys.mjs +1 -1
  70. package/fesm2022/ngx-tethys.mjs.map +1 -1
  71. package/i18n/i18n.d.ts +2 -1
  72. package/i18n/locales/de-de.d.ts +2 -1
  73. package/i18n/locales/en-us.d.ts +2 -1
  74. package/i18n/locales/ja-jp.d.ts +2 -1
  75. package/i18n/locales/zh-hans.d.ts +2 -1
  76. package/i18n/locales/zh-hant.d.ts +2 -1
  77. package/image/preview/image-preview.component.d.ts +2 -2
  78. package/layout/header.component.d.ts +15 -19
  79. package/layout/layout.component.d.ts +3 -2
  80. package/layout/sidebar-header.component.d.ts +7 -8
  81. package/layout/sidebar.component.d.ts +32 -62
  82. package/list/selection/selection-list.d.ts +33 -46
  83. package/package.json +1 -1
  84. package/schematics/version.d.ts +1 -1
  85. package/schematics/version.js +1 -1
  86. package/select/custom-select/custom-select.component.d.ts +33 -56
  87. package/select/native-select/native-select.component.d.ts +7 -13
  88. package/shared/base-form-check.component.d.ts +6 -8
  89. package/shared/directives/string-or-template-outlet.directive.d.ts +5 -6
  90. package/shared/directives/thy-autofocus.directive.d.ts +4 -6
  91. package/shared/directives/thy-contextmenu.directive.d.ts +2 -2
  92. package/shared/directives/thy-ctrl-enter.directive.d.ts +2 -2
  93. package/shared/directives/thy-enter.directive.d.ts +2 -2
  94. package/shared/directives/thy-scroll.directive.d.ts +5 -8
  95. package/shared/directives/thy-show.d.ts +5 -6
  96. package/shared/directives/thy-stop-propagation.directive.d.ts +4 -4
  97. package/shared/directives/view-outlet.directive.d.ts +6 -7
  98. package/shared/ng-transclude.directive.d.ts +2 -3
  99. package/shared/option/group/option-group.component.d.ts +5 -9
  100. package/shared/option/list-option/list-option.component.d.ts +9 -13
  101. package/shared/option/option.component.d.ts +10 -17
  102. package/shared/option/option.token.d.ts +4 -3
  103. package/shared/option/options-container.component.d.ts +1 -1
  104. package/shared/select/select-control/select-control.component.d.ts +27 -47
  105. package/table/table-column.component.d.ts +15 -5
  106. package/tooltip/tooltip.directive.d.ts +20 -22
  107. package/tree-select/tree-select.component.d.ts +53 -70
@@ -13,24 +13,23 @@ export declare class ThyFormCheckBaseComponent extends TabIndexDisabledControlVa
13
13
  _disabled: boolean;
14
14
  private onTouchedCallback;
15
15
  private onChangeCallback;
16
- _labelText: string;
17
16
  _isFormCheck: boolean;
18
- _isFormCheckInline: boolean;
19
17
  _isChecked: boolean;
20
- get _isNoText(): boolean;
21
18
  /**
22
19
  * 是否同一行展示
23
20
  * @default false
24
21
  */
25
- set thyInline(value: boolean);
22
+ readonly thyInline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
26
23
  /**
27
24
  * Label 展示文本
28
25
  */
29
- set thyLabelText(value: string);
26
+ readonly thyLabelText: import("@angular/core").InputSignal<string>;
30
27
  /**
31
28
  * Label 文本多语言 key
32
29
  */
33
- set thyLabelTextTranslateKey(value: string);
30
+ readonly thyLabelTextTranslateKey: import("@angular/core").InputSignal<string>;
31
+ _labelText: import("@angular/core").Signal<any>;
32
+ _isNoText: import("@angular/core").Signal<boolean>;
34
33
  disabled: boolean;
35
34
  /**
36
35
  * 是否禁用
@@ -47,7 +46,6 @@ export declare class ThyFormCheckBaseComponent extends TabIndexDisabledControlVa
47
46
  change(): void;
48
47
  markForCheck(): void;
49
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyFormCheckBaseComponent, never>;
50
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyFormCheckBaseComponent, never, never, { "thyInline": { "alias": "thyInline"; "required": false; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; }; "thyLabelTextTranslateKey": { "alias": "thyLabelTextTranslateKey"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
51
- static ngAcceptInputType_thyInline: i1.ThyBooleanInput;
49
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyFormCheckBaseComponent, never, never, { "thyInline": { "alias": "thyInline"; "required": false; "isSignal": true; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; "isSignal": true; }; "thyLabelTextTranslateKey": { "alias": "thyLabelTextTranslateKey"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
52
50
  static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
53
51
  }
@@ -1,18 +1,17 @@
1
- import { OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  /**
4
3
  * @name thyStringOrTemplateOutlet
5
4
  */
6
- export declare class ThyStringOrTemplateOutletDirective implements OnChanges {
5
+ export declare class ThyStringOrTemplateOutletDirective {
7
6
  private viewContainerRef;
8
7
  private renderer;
9
8
  private viewRef;
10
9
  private textNode;
11
- thyStringOrTemplateOutletContext: any;
12
- thyStringOrTemplateOutlet: any | TemplateRef<any>;
13
- ngOnChanges(changes: SimpleChanges): void;
10
+ readonly thyStringOrTemplateOutletContext: import("@angular/core").InputSignal<any>;
11
+ readonly thyStringOrTemplateOutlet: import("@angular/core").InputSignal<any>;
12
+ constructor();
14
13
  private updateView;
15
14
  private clear;
16
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyStringOrTemplateOutletDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStringOrTemplateOutletDirective, "[thyStringOrTemplateOutlet]", ["thyStringOrTemplateOutlet"], { "thyStringOrTemplateOutletContext": { "alias": "thyStringOrTemplateOutletContext"; "required": false; }; "thyStringOrTemplateOutlet": { "alias": "thyStringOrTemplateOutlet"; "required": false; }; }, {}, never, never, true, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStringOrTemplateOutletDirective, "[thyStringOrTemplateOutlet]", ["thyStringOrTemplateOutlet"], { "thyStringOrTemplateOutletContext": { "alias": "thyStringOrTemplateOutletContext"; "required": false; "isSignal": true; }; "thyStringOrTemplateOutlet": { "alias": "thyStringOrTemplateOutlet"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
17
  }
@@ -1,5 +1,4 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "ngx-tethys/util";
3
2
  /**
4
3
  * 自动聚焦指令
5
4
  * @name input[thyAutofocus],textarea[thyAutofocus]
@@ -12,14 +11,13 @@ export declare class ThyAutofocusDirective {
12
11
  * 是否自动聚焦
13
12
  * @default false
14
13
  */
15
- set thyAutofocus(value: boolean);
14
+ readonly thyAutofocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
16
15
  /**
17
16
  * 是否自动选择
18
17
  * @default false
19
18
  */
20
- set thyAutoSelect(value: boolean);
19
+ readonly thyAutoSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
20
+ constructor();
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyAutofocusDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyAutofocusDirective, "input[thyAutofocus],textarea[thyAutofocus]", never, { "thyAutofocus": { "alias": "thyAutofocus"; "required": false; }; "thyAutoSelect": { "alias": "thyAutoSelect"; "required": false; }; }, {}, never, never, true, never>;
23
- static ngAcceptInputType_thyAutofocus: i1.ThyBooleanInput;
24
- static ngAcceptInputType_thyAutoSelect: i1.ThyBooleanInput;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyAutofocusDirective, "input[thyAutofocus],textarea[thyAutofocus]", never, { "thyAutofocus": { "alias": "thyAutofocus"; "required": false; "isSignal": true; }; "thyAutoSelect": { "alias": "thyAutoSelect"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
23
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * @name thyContextMenu
@@ -7,7 +7,7 @@ export declare class ThyContextMenuDirective implements OnInit, OnDestroy {
7
7
  private ngZone;
8
8
  private elementRef;
9
9
  private renderer;
10
- thyContextMenu: EventEmitter<any>;
10
+ readonly thyContextMenu: import("@angular/core").OutputEmitterRef<Event>;
11
11
  private removeContextListenerFn;
12
12
  rightClick: (event: Event) => void;
13
13
  ngOnInit(): void;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * @name thyCtrlEnter
@@ -7,7 +7,7 @@ export declare class ThyCtrlEnterDirective implements OnInit, OnDestroy {
7
7
  private ngZone;
8
8
  private elementRef;
9
9
  private renderer;
10
- thyCtrlEnter: EventEmitter<any>;
10
+ readonly thyCtrlEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
11
11
  private removeKeydownListenerFn;
12
12
  onKeydown: (event: KeyboardEvent) => void;
13
13
  ngOnInit(): void;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * 与 (keydown.enter) 区别是支持组合键,当按 Ctrl + Enter 或者 Command + Enter 也会触发
@@ -8,7 +8,7 @@ export declare class ThyEnterDirective implements OnInit, OnDestroy {
8
8
  private ngZone;
9
9
  private elementRef;
10
10
  private renderer;
11
- thyEnter: EventEmitter<any>;
11
+ readonly thyEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
12
12
  onKeydown: (event: KeyboardEvent) => void;
13
13
  private removeKeydownListenerFn;
14
14
  ngOnInit(): void;
@@ -1,6 +1,5 @@
1
- import { ElementRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
1
+ import { ElementRef, OnInit, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- import * as i1 from "ngx-tethys/util";
4
3
  /**
5
4
  * @name thyScroll
6
5
  */
@@ -8,11 +7,9 @@ export declare class ThyScrollDirective implements OnInit, OnDestroy {
8
7
  private elementRef;
9
8
  private ngZone;
10
9
  private _destroyed;
11
- private _enable;
12
- private _initialled;
13
10
  private _subscription;
14
11
  private _elementScrolled;
15
- set thyEnable(value: boolean);
12
+ readonly thyEnable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
16
13
  /**
17
14
  * @description
18
15
  *
@@ -32,11 +29,11 @@ export declare class ThyScrollDirective implements OnInit, OnDestroy {
32
29
  * }
33
30
  * ```
34
31
  */
35
- thyOnScrolled: EventEmitter<ElementRef>;
32
+ readonly thyOnScrolled: import("@angular/core").OutputEmitterRef<ElementRef<any>>;
33
+ constructor();
36
34
  ngOnInit(): void;
37
35
  ngOnDestroy(): void;
38
36
  getElementRef(): ElementRef<HTMLElement>;
39
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyScrollDirective, never>;
40
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyScrollDirective, "[thyScroll]", never, { "thyEnable": { "alias": "thyEnable"; "required": false; }; }, { "thyOnScrolled": "thyOnScrolled"; }, never, never, true, never>;
41
- static ngAcceptInputType_thyEnable: i1.ThyBooleanInput;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyScrollDirective, "[thyScroll]", never, { "thyEnable": { "alias": "thyEnable"; "required": false; "isSignal": true; }; }, { "thyOnScrolled": "thyOnScrolled"; }, never, never, true, never>;
42
39
  }
@@ -1,6 +1,5 @@
1
- import { EventEmitter, OnDestroy } from '@angular/core';
1
+ import { OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- import * as i1 from "ngx-tethys/util";
4
3
  /**
5
4
  * @name thyShow
6
5
  */
@@ -8,13 +7,13 @@ export declare class ThyShowDirective implements OnDestroy {
8
7
  private elementRef;
9
8
  private renderer;
10
9
  private ngZone;
11
- thyShowChange: EventEmitter<any>;
10
+ readonly thyShowChange: import("@angular/core").OutputEmitterRef<boolean>;
12
11
  private hostRenderer;
13
12
  private unListenEvent;
14
13
  private unListenDocument;
15
- set thyShow(condition: boolean);
14
+ readonly thyShow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
15
+ constructor();
16
16
  ngOnDestroy(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyShowDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyShowDirective, "[thyShow]", never, { "thyShow": { "alias": "thyShow"; "required": false; }; }, { "thyShowChange": "thyShowChange"; }, never, never, true, never>;
19
- static ngAcceptInputType_thyShow: i1.ThyBooleanInput;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyShowDirective, "[thyShow]", never, { "thyShow": { "alias": "thyShow"; "required": false; "isSignal": true; }; }, { "thyShowChange": "thyShowChange"; }, never, never, true, never>;
20
19
  }
@@ -5,13 +5,13 @@ import * as i0 from "@angular/core";
5
5
  * @name thyStopPropagation
6
6
  */
7
7
  export declare class ThyStopPropagationDirective implements OnDestroy {
8
- private _eventName;
9
- private _shouldStopPropagation;
10
- set thyStopPropagation(value: string | boolean);
8
+ readonly thyStopPropagation: import("@angular/core").InputSignal<string | boolean>;
9
+ private readonly _eventName;
10
+ private readonly _shouldStopPropagation;
11
11
  private _changes$;
12
12
  private _destroy$;
13
13
  constructor();
14
14
  ngOnDestroy(): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyStopPropagationDirective, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStopPropagationDirective, "[thyStopPropagation]", never, { "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; }; }, {}, never, never, true, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStopPropagationDirective, "[thyStopPropagation]", never, { "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
17
17
  }
@@ -1,12 +1,11 @@
1
- import { OnChanges, SimpleChanges, Type, TemplateRef } from '@angular/core';
2
- import { SafeAny } from 'ngx-tethys/types';
1
+ import { Type, TemplateRef } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  /**
5
4
  * 视图 Outlet 组件,取代 NgComponentOutlet 和 NgTemplateOutlet
6
5
  * @name thyViewOutlet
7
6
  * @order 10
8
7
  */
9
- export declare class ThyViewOutletDirective implements OnChanges {
8
+ export declare class ThyViewOutletDirective {
10
9
  private viewContainerRef;
11
10
  private keyValueDiffers;
12
11
  private componentRef;
@@ -14,14 +13,14 @@ export declare class ThyViewOutletDirective implements OnChanges {
14
13
  /**
15
14
  * 组件或者模板 TemplateRef
16
15
  */
17
- thyViewOutlet: Type<SafeAny> | TemplateRef<SafeAny> | null;
16
+ readonly thyViewOutlet: import("@angular/core").InputSignal<Type<any> | TemplateRef<any>>;
18
17
  /**
19
18
  * 组件和模板上下文传递数据
20
19
  */
21
- thyViewOutletContext?: SafeAny;
20
+ readonly thyViewOutletContext: import("@angular/core").InputSignal<any>;
22
21
  private keyValueDiffer;
23
- ngOnChanges(changes: SimpleChanges): void;
22
+ constructor();
24
23
  private updateContext;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyViewOutletDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyViewOutletDirective, "[thyViewOutlet]", never, { "thyViewOutlet": { "alias": "thyViewOutlet"; "required": false; }; "thyViewOutletContext": { "alias": "thyViewOutletContext"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyViewOutletDirective, "[thyViewOutlet]", never, { "thyViewOutlet": { "alias": "thyViewOutlet"; "required": false; "isSignal": true; }; "thyViewOutletContext": { "alias": "thyViewOutletContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
27
26
  }
@@ -7,9 +7,8 @@ export declare class ThyTranscludeDirective {
7
7
  viewRef: ViewContainerRef;
8
8
  protected _viewRef: ViewContainerRef;
9
9
  protected _ngTransclude: TemplateRef<any>;
10
- set thyTransclude(templateRef: TemplateRef<any>);
11
- get thyTransclude(): TemplateRef<any>;
10
+ readonly thyTransclude: import("@angular/core").InputSignal<TemplateRef<any>>;
12
11
  constructor();
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyTranscludeDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyTranscludeDirective, "[thyTransclude]", never, { "thyTransclude": { "alias": "thyTransclude"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyTranscludeDirective, "[thyTransclude]", never, { "thyTransclude": { "alias": "thyTransclude"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
14
  }
@@ -1,19 +1,16 @@
1
- import { QueryList, OnDestroy, AfterContentInit } from '@angular/core';
1
+ import { OnDestroy, AfterContentInit, QueryList, WritableSignal } from '@angular/core';
2
2
  import { Observable, Subject } from 'rxjs';
3
3
  import { ThyOptionVisibleChangeEvent, ThyOption } from '../option.component';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "ngx-tethys/util";
6
5
  /**
7
6
  * @private
8
7
  */
9
8
  export declare class ThySelectOptionGroup implements OnDestroy, AfterContentInit {
10
9
  private _ngZone;
11
10
  private cdr;
12
- _hidden: boolean;
13
- thyDisabled: boolean;
14
- _isOptionGroup: boolean;
15
- get hidden(): boolean;
16
- thyGroupLabel: string;
11
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
12
+ readonly hidden: WritableSignal<boolean>;
13
+ readonly thyGroupLabel: import("@angular/core").InputSignal<string>;
17
14
  options: QueryList<ThyOption>;
18
15
  _destroy$: Subject<void>;
19
16
  optionVisibleChanges: Observable<ThyOptionVisibleChangeEvent>;
@@ -21,6 +18,5 @@ export declare class ThySelectOptionGroup implements OnDestroy, AfterContentInit
21
18
  _resetOptions(): void;
22
19
  ngOnDestroy(): void;
23
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySelectOptionGroup, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectOptionGroup, "thy-option-group", never, { "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyGroupLabel": { "alias": "thyGroupLabel"; "required": false; }; }, {}, ["options"], ["*"], true, never>;
25
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectOptionGroup, "thy-option-group", never, { "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyGroupLabel": { "alias": "thyGroupLabel"; "required": false; "isSignal": true; }; }, {}, ["options"], ["*"], true, never>;
26
22
  }
@@ -2,27 +2,24 @@ import { ElementRef } from '@angular/core';
2
2
  import { Highlightable } from '@angular/cdk/a11y';
3
3
  import { IThyOptionComponent } from '../option.token';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "ngx-tethys/util";
6
5
  /**
7
6
  * @private
8
7
  * @order 30
9
8
  */
10
9
  export declare class ThyListOption implements IThyOptionComponent, Highlightable {
11
10
  element: ElementRef<HTMLElement>;
12
- private changeDetector;
13
11
  parentSelectionList: import("../option.token").IThyListOptionParentComponent;
14
- get _isListOption(): boolean;
15
- get _parentLayout(): boolean;
16
- _role: string;
17
- _tabIndex: number;
18
- id: string;
19
- thyValue: any;
20
- set thyDisabled(value: boolean);
21
- disabled?: boolean;
12
+ role: string;
13
+ tabIndex: number;
14
+ readonly isMultiple: import("@angular/core").Signal<unknown>;
15
+ readonly isListOption: import("@angular/core").Signal<boolean>;
16
+ readonly isGridOption: import("@angular/core").Signal<boolean>;
17
+ readonly id: import("@angular/core").InputSignal<string>;
18
+ readonly thyValue: import("@angular/core").InputSignal<any>;
19
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
22
20
  /** Whether the option is selected. */
23
21
  get selected(): boolean;
24
22
  onClick(event: Event): void;
25
- /** Allows for programmatic focusing of the option. */
26
23
  setActiveStyles(): void;
27
24
  setInactiveStyles(): void;
28
25
  /**
@@ -31,6 +28,5 @@ export declare class ThyListOption implements IThyOptionComponent, Highlightable
31
28
  */
32
29
  getLabel(): string;
33
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyListOption, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyListOption, "thy-list-option,[thy-list-option]", never, { "id": { "alias": "id"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
35
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyListOption, "thy-list-option,[thy-list-option]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
36
32
  }
@@ -1,8 +1,7 @@
1
- import { TemplateRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
1
+ import { TemplateRef, ElementRef, OnDestroy, WritableSignal } from '@angular/core';
2
2
  import { Highlightable } from '@angular/cdk/a11y';
3
3
  import { SelectOptionBase } from './select-option-base';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "ngx-tethys/util";
6
5
  export declare class ThyOptionSelectionChangeEvent {
7
6
  option: ThyOption;
8
7
  isUserInput: boolean;
@@ -19,24 +18,19 @@ export declare class ThyOption extends SelectOptionBase implements OnDestroy, Hi
19
18
  element: ElementRef<HTMLElement>;
20
19
  parent: import("./option.token").IThyOptionParentComponent;
21
20
  private cdr;
22
- private _selected;
23
- private _hidden;
24
- private _disabled;
25
21
  thyValue: any;
26
22
  thyRawValue: any;
27
23
  thyLabelText: string;
28
- thyShowOptionCustom: boolean;
29
- thySearchKey: string;
30
- _isOptionItem: boolean;
31
- template: TemplateRef<any>;
32
- set thyDisabled(value: boolean);
33
- get thyDisabled(): boolean;
24
+ readonly thyShowOptionCustom: import("@angular/core").InputSignal<boolean>;
25
+ readonly thySearchKey: import("@angular/core").InputSignal<string>;
26
+ readonly template: import("@angular/core").Signal<TemplateRef<any>>;
27
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
28
+ readonly hidden: WritableSignal<boolean>;
34
29
  get disabled(): boolean;
35
- get hidden(): boolean;
36
30
  get tabIndex(): string;
37
- get selected(): boolean;
38
- readonly selectionChange: EventEmitter<ThyOptionSelectionChangeEvent>;
39
- readonly visibleChange: EventEmitter<ThyOptionVisibleChangeEvent>;
31
+ readonly selected: WritableSignal<boolean>;
32
+ readonly selectionChange: import("@angular/core").OutputEmitterRef<ThyOptionSelectionChangeEvent>;
33
+ readonly visibleChange: import("@angular/core").OutputEmitterRef<ThyOptionVisibleChangeEvent>;
40
34
  constructor();
41
35
  getHostElement(): HTMLElement;
42
36
  onClick(event: Event): void;
@@ -53,6 +47,5 @@ export declare class ThyOption extends SelectOptionBase implements OnDestroy, Hi
53
47
  private emitSelectionChangeEvent;
54
48
  ngOnDestroy(): void;
55
49
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyOption, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyOption, "thy-option", never, { "thyValue": { "alias": "thyValue"; "required": false; }; "thyRawValue": { "alias": "thyRawValue"; "required": false; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; }; "thyShowOptionCustom": { "alias": "thyShowOptionCustom"; "required": false; }; "thySearchKey": { "alias": "thySearchKey"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
57
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyOption, "thy-option", never, { "thyValue": { "alias": "thyValue"; "required": false; }; "thyRawValue": { "alias": "thyRawValue"; "required": false; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; }; "thyShowOptionCustom": { "alias": "thyShowOptionCustom"; "required": false; "isSignal": true; }; "thySearchKey": { "alias": "thySearchKey"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
58
51
  }
@@ -1,5 +1,6 @@
1
- import { ElementRef, InjectionToken } from '@angular/core';
1
+ import { ElementRef, InjectionToken, InputSignal } from '@angular/core';
2
2
  import { ThyListLayout } from '../shared.type';
3
+ import { ThyBooleanInput } from 'ngx-tethys/util';
3
4
  export interface IThyOptionParentComponent {
4
5
  isMultiple: boolean;
5
6
  }
@@ -12,8 +13,8 @@ export interface IThyOptionComponent {
12
13
  element: ElementRef<HTMLElement>;
13
14
  }
14
15
  export interface IThyListOptionParentComponent {
15
- multiple?: boolean;
16
- layout?: ThyListLayout;
16
+ multiple?: InputSignal<ThyBooleanInput>;
17
+ layout?: InputSignal<ThyListLayout>;
17
18
  toggleOption(option: IThyOptionComponent, event?: Event): void;
18
19
  setActiveOption(option: IThyOptionComponent, event?: Event): void;
19
20
  scrollIntoView(option: IThyOptionComponent): void;
@@ -1,7 +1,7 @@
1
1
  import { OnInit, TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ThyOptionsContainer implements OnInit {
4
- optionsTemplate: TemplateRef<any>;
4
+ readonly optionsTemplate: import("@angular/core").Signal<TemplateRef<any>>;
5
5
  constructor();
6
6
  ngOnInit(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyOptionsContainer, never>;
@@ -1,8 +1,7 @@
1
1
  import { ThyTagSize } from 'ngx-tethys/tag';
2
- import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
+ import { ElementRef, OnInit, TemplateRef, Signal } from '@angular/core';
3
3
  import { SelectOptionBase } from '../../option/select-option-base';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "ngx-tethys/util";
6
5
  export type SelectControlSize = 'xs' | 'sm' | 'md' | 'lg' | '';
7
6
  /**
8
7
  * @private
@@ -11,54 +10,42 @@ export declare class ThySelectControl implements OnInit {
11
10
  private renderer;
12
11
  inputValue: string;
13
12
  isComposing: boolean;
14
- panelOpened: boolean;
15
- isMultiple: boolean;
16
- showSearch: boolean;
17
- disabled: boolean;
18
- size: SelectControlSize;
19
- selectedOptions: SelectOptionBase | SelectOptionBase[];
20
13
  searchInputControlClass: {
21
14
  [key: string]: boolean;
22
15
  };
23
- tagSize: ThyTagSize;
24
16
  private hostRenderer;
25
- get thyPanelOpened(): boolean;
26
- set thyPanelOpened(value: boolean);
27
- get thyIsMultiple(): boolean;
28
- set thyIsMultiple(value: boolean);
29
- get thyShowSearch(): boolean;
30
- set thyShowSearch(value: boolean);
31
- get thySelectedOptions(): SelectOptionBase | SelectOptionBase[];
32
- set thySelectedOptions(value: SelectOptionBase | SelectOptionBase[]);
33
- get thyDisabled(): boolean;
34
- set thyDisabled(value: boolean);
35
- customDisplayTemplate: TemplateRef<any>;
36
- thyAllowClear: boolean;
37
- thyPlaceholder: string;
38
- get thySize(): SelectControlSize;
39
- set thySize(value: SelectControlSize);
40
- thyMaxTagCount: number;
41
- thyBorderless: boolean;
42
- thyPreset: string;
43
- thyOnSearch: EventEmitter<string>;
44
- thyOnRemove: EventEmitter<{
17
+ readonly thyPanelOpened: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
18
+ readonly thyIsMultiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
19
+ readonly thyShowSearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
20
+ readonly thySelectedOptions: import("@angular/core").InputSignal<SelectOptionBase | SelectOptionBase[]>;
21
+ protected readonly previousSelectedOptions: import("@angular/core").WritableSignal<unknown>;
22
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
23
+ readonly customDisplayTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
24
+ readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
+ readonly thyPlaceholder: import("@angular/core").InputSignal<string>;
26
+ readonly thySize: import("@angular/core").InputSignal<SelectControlSize>;
27
+ readonly tagSize: Signal<ThyTagSize>;
28
+ readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
29
+ readonly thyBorderless: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
30
+ readonly thyPreset: import("@angular/core").InputSignal<string>;
31
+ readonly thyOnSearch: import("@angular/core").OutputEmitterRef<string>;
32
+ readonly thyOnRemove: import("@angular/core").OutputEmitterRef<{
45
33
  item: SelectOptionBase;
46
34
  $eventOrigin: Event;
47
35
  }>;
48
- thyOnClear: EventEmitter<Event>;
49
- thyOnBlur: EventEmitter<Event>;
50
- inputElement: ElementRef;
36
+ readonly thyOnClear: import("@angular/core").OutputEmitterRef<Event>;
37
+ readonly thyOnBlur: import("@angular/core").OutputEmitterRef<Event>;
38
+ readonly inputElement: Signal<ElementRef<any>>;
39
+ isSelectedValue: Signal<boolean>;
40
+ showClearIcon: Signal<boolean>;
41
+ maxSelectedTags: Signal<SelectOptionBase[]>;
51
42
  get selectedValueStyle(): {
52
- [key: string]: string;
43
+ display: string;
53
44
  };
54
45
  get placeholderStyle(): {
55
- [key: string]: string;
46
+ display: string;
56
47
  };
57
- get selectedValue(): any;
58
- get multipleSelectedValue(): any;
59
- get maxSelectedTags(): SelectOptionBase[];
60
- get showClearIcon(): boolean;
61
- get isSelectedValue(): boolean;
48
+ constructor();
62
49
  ngOnInit(): void;
63
50
  setSelectControlClass(): void;
64
51
  setInputValue(value: string): void;
@@ -69,12 +56,5 @@ export declare class ThySelectControl implements OnInit {
69
56
  trackValue(_index: number, option: SelectOptionBase): any;
70
57
  onBlur(event: Event): void;
71
58
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySelectControl, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectControl, "thy-select-control,[thySelectControl]", never, { "thyPanelOpened": { "alias": "thyPanelOpened"; "required": false; }; "thyIsMultiple": { "alias": "thyIsMultiple"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; "thySelectedOptions": { "alias": "thySelectedOptions"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "customDisplayTemplate": { "alias": "customDisplayTemplate"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; }; "thyBorderless": { "alias": "thyBorderless"; "required": false; }; "thyPreset": { "alias": "thyPreset"; "required": false; }; }, { "thyOnSearch": "thyOnSearch"; "thyOnRemove": "thyOnRemove"; "thyOnClear": "thyOnClear"; "thyOnBlur": "thyOnBlur"; }, never, never, true, never>;
73
- static ngAcceptInputType_thyPanelOpened: i1.ThyBooleanInput;
74
- static ngAcceptInputType_thyIsMultiple: i1.ThyBooleanInput;
75
- static ngAcceptInputType_thyShowSearch: i1.ThyBooleanInput;
76
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
77
- static ngAcceptInputType_thyAllowClear: i1.ThyBooleanInput;
78
- static ngAcceptInputType_thyMaxTagCount: unknown;
79
- static ngAcceptInputType_thyBorderless: i1.ThyBooleanInput;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectControl, "thy-select-control,[thySelectControl]", never, { "thyPanelOpened": { "alias": "thyPanelOpened"; "required": false; "isSignal": true; }; "thyIsMultiple": { "alias": "thyIsMultiple"; "required": false; "isSignal": true; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; "isSignal": true; }; "thySelectedOptions": { "alias": "thySelectedOptions"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "customDisplayTemplate": { "alias": "customDisplayTemplate"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; "isSignal": true; }; "thyBorderless": { "alias": "thyBorderless"; "required": false; "isSignal": true; }; "thyPreset": { "alias": "thyPreset"; "required": false; "isSignal": true; }; }, { "thyOnSearch": "thyOnSearch"; "thyOnRemove": "thyOnRemove"; "thyOnClear": "thyOnClear"; "thyOnBlur": "thyOnBlur"; }, never, never, true, never>;
80
60
  }
@@ -113,9 +113,19 @@ export declare class ThyTableColumnComponent implements OnInit {
113
113
  private _generateKey;
114
114
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyTableColumnComponent, never>;
115
115
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyTableColumnComponent, "thy-table-column", never, { "model": { "alias": "thyModelKey"; "required": false; }; "title": { "alias": "thyTitle"; "required": false; }; "type": { "alias": "thyType"; "required": false; }; "thyWidth": { "alias": "thyWidth"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "className": { "alias": "thyClassName"; "required": false; }; "headerClassName": { "alias": "thyHeaderClassName"; "required": false; }; "disabled": { "alias": "thyDisabled"; "required": false; }; "selections": { "alias": "thySelections"; "required": false; }; "defaultText": { "alias": "thyDefaultText"; "required": false; }; "expand": { "alias": "thyExpand"; "required": false; }; "thySortable": { "alias": "thySortable"; "required": false; }; "sortDirection": { "alias": "thySortDirection"; "required": false; }; "fixed": { "alias": "thyFixed"; "required": false; }; "operational": { "alias": "thyOperational"; "required": false; }; "secondary": { "alias": "thySecondary"; "required": false; }; }, { "sortChange": "thySortChange"; }, ["headerTemplateRef", "cellTemplateRef", "templateRef"], ["*"], true, never>;
116
- static ngAcceptInputType_disabled: i1.ThyBooleanInput;
117
- static ngAcceptInputType_expand: i1.ThyBooleanInput;
118
- static ngAcceptInputType_thySortable: i1.ThyBooleanInput;
119
- static ngAcceptInputType_operational: i1.ThyBooleanInput;
120
- static ngAcceptInputType_secondary: i1.ThyBooleanInput;
116
+ static ngAcceptInputType_disabled: i1.ThyBooleanInput /**
117
+ * thyType 为 checkbox 或者 radio 类型时选中的数据 ,支持单个对象,单个 Id,同时支持多个 Id,多个对象
118
+ */;
119
+ static ngAcceptInputType_expand: i1.ThyBooleanInput /**
120
+ * thyType 为 checkbox 或者 radio 类型时选中的数据 ,支持单个对象,单个 Id,同时支持多个 Id,多个对象
121
+ */;
122
+ static ngAcceptInputType_thySortable: i1.ThyBooleanInput /**
123
+ * thyType 为 checkbox 或者 radio 类型时选中的数据 ,支持单个对象,单个 Id,同时支持多个 Id,多个对象
124
+ */;
125
+ static ngAcceptInputType_operational: i1.ThyBooleanInput /**
126
+ * thyType 为 checkbox 或者 radio 类型时选中的数据 ,支持单个对象,单个 Id,同时支持多个 Id,多个对象
127
+ */;
128
+ static ngAcceptInputType_secondary: i1.ThyBooleanInput /**
129
+ * thyType 为 checkbox 或者 radio 类型时选中的数据 ,支持单个对象,单个 Id,同时支持多个 Id,多个对象
130
+ */;
121
131
  }