ngx-tethys 19.1.0-next.1 → 19.1.0-next.11

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 (145) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/arrow-switcher/arrow-switcher.component.d.ts +5 -1
  3. package/badge/badge.component.d.ts +1 -1
  4. package/color-picker/coordinates.directive.d.ts +1 -2
  5. package/date-picker/abstract-picker.component.d.ts +50 -52
  6. package/date-picker/abstract-picker.directive.d.ts +15 -40
  7. package/date-picker/base-picker.component.d.ts +12 -40
  8. package/date-picker/date-picker.config.d.ts +3 -0
  9. package/date-picker/lib/calendar/calendar-footer.component.d.ts +24 -19
  10. package/date-picker/lib/calendar/calendar-header.component.d.ts +15 -15
  11. package/date-picker/lib/calendar/calendar-table.component.d.ts +15 -16
  12. package/date-picker/lib/date/date-table-cell.component.d.ts +6 -3
  13. package/date-picker/lib/date/date-table.component.d.ts +2 -3
  14. package/date-picker/lib/date-carousel/date-carousel.component.d.ts +2 -3
  15. package/date-picker/lib/decade/decade-header.component.d.ts +2 -5
  16. package/date-picker/lib/decade/decade-table.component.d.ts +3 -5
  17. package/date-picker/lib/month/month-table.component.d.ts +1 -2
  18. package/date-picker/lib/popups/date-popup.component.d.ts +33 -34
  19. package/date-picker/lib/popups/inner-popup.component.d.ts +22 -29
  20. package/date-picker/lib/quarter/quarter-table.component.d.ts +1 -4
  21. package/date-picker/lib/year/year-header.component.d.ts +2 -4
  22. package/date-picker/lib/year/year-table.component.d.ts +2 -4
  23. package/date-picker/month-picker.component.d.ts +2 -2
  24. package/date-picker/picker.component.d.ts +31 -36
  25. package/date-picker/picker.pipes.d.ts +4 -5
  26. package/date-picker/picker.util.d.ts +5 -5
  27. package/date-picker/picker.validators.d.ts +4 -8
  28. package/date-picker/quarter-picker.component.d.ts +2 -3
  29. package/date-picker/styles/range-picker.scss +1 -0
  30. package/date-picker/week-picker.component.d.ts +0 -1
  31. package/date-picker/year-picker.component.d.ts +2 -3
  32. package/dropdown/dropdown-menu.component.d.ts +1 -1
  33. package/dropdown/dropdown.directive.d.ts +4 -3
  34. package/empty/empty.component.d.ts +2 -1
  35. package/fesm2022/ngx-tethys-arrow-switcher.mjs +15 -3
  36. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  37. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
  38. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  39. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  40. package/fesm2022/ngx-tethys-cascader.mjs +1 -1
  41. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  42. package/fesm2022/ngx-tethys-checkbox.mjs +2 -2
  43. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  44. package/fesm2022/ngx-tethys-color-picker.mjs +4 -6
  45. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  46. package/fesm2022/ngx-tethys-copy.mjs +2 -2
  47. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  48. package/fesm2022/ngx-tethys-date-picker.mjs +855 -1072
  49. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  50. package/fesm2022/ngx-tethys-divider.mjs +5 -5
  51. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  52. package/fesm2022/ngx-tethys-dropdown.mjs +9 -11
  53. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  54. package/fesm2022/ngx-tethys-empty.mjs +5 -2
  55. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  56. package/fesm2022/ngx-tethys-flexible-text.mjs +4 -5
  57. package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
  58. package/fesm2022/ngx-tethys-i18n.mjs +26 -6
  59. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  60. package/fesm2022/ngx-tethys-image.mjs +5 -7
  61. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  62. package/fesm2022/ngx-tethys-layout.mjs +291 -334
  63. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  64. package/fesm2022/ngx-tethys-list.mjs +183 -217
  65. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  66. package/fesm2022/ngx-tethys-message.mjs +29 -36
  67. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  68. package/fesm2022/ngx-tethys-notify.mjs +33 -41
  69. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  70. package/fesm2022/ngx-tethys-property.mjs +1 -0
  71. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  72. package/fesm2022/ngx-tethys-radio.mjs +4 -4
  73. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  74. package/fesm2022/ngx-tethys-resizable.mjs +20 -17
  75. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  76. package/fesm2022/ngx-tethys-select.mjs +164 -228
  77. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  78. package/fesm2022/ngx-tethys-shared.mjs +423 -587
  79. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  80. package/fesm2022/ngx-tethys-skeleton.mjs +1 -2
  81. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  82. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  83. package/fesm2022/ngx-tethys-table.mjs +1 -2
  84. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  85. package/fesm2022/ngx-tethys-time-picker.mjs +244 -271
  86. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  87. package/fesm2022/ngx-tethys-tooltip.mjs +109 -93
  88. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  89. package/fesm2022/ngx-tethys-tree-select.mjs +215 -281
  90. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  91. package/fesm2022/ngx-tethys-upload.mjs +2 -2
  92. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  93. package/fesm2022/ngx-tethys.mjs +1 -1
  94. package/fesm2022/ngx-tethys.mjs.map +1 -1
  95. package/i18n/i18n.d.ts +7 -2
  96. package/i18n/locales/de-de.d.ts +5 -1
  97. package/i18n/locales/en-us.d.ts +5 -1
  98. package/i18n/locales/ja-jp.d.ts +5 -1
  99. package/i18n/locales/zh-hans.d.ts +5 -1
  100. package/i18n/locales/zh-hant.d.ts +5 -1
  101. package/image/preview/image-preview.component.d.ts +2 -2
  102. package/layout/header.component.d.ts +15 -19
  103. package/layout/layout.component.d.ts +3 -2
  104. package/layout/sidebar-header.component.d.ts +7 -8
  105. package/layout/sidebar.component.d.ts +32 -62
  106. package/list/list-item-meta.component.d.ts +7 -9
  107. package/list/list-item.component.d.ts +0 -2
  108. package/list/list.component.d.ts +2 -8
  109. package/list/selection/selection-list.d.ts +33 -46
  110. package/message/abstract/abstract-message.component.d.ts +2 -3
  111. package/message/message-container.component.d.ts +0 -1
  112. package/message/message.component.d.ts +1 -3
  113. package/notify/notify-container.component.d.ts +0 -1
  114. package/notify/notify.component.d.ts +7 -12
  115. package/package.json +1 -1
  116. package/resizable/resizable.directive.d.ts +2 -1
  117. package/schematics/version.d.ts +1 -1
  118. package/schematics/version.js +1 -1
  119. package/select/custom-select/custom-select.component.d.ts +33 -56
  120. package/select/native-select/native-select.component.d.ts +7 -13
  121. package/shared/base-form-check.component.d.ts +6 -8
  122. package/shared/directives/string-or-template-outlet.directive.d.ts +5 -6
  123. package/shared/directives/thy-autofocus.directive.d.ts +4 -6
  124. package/shared/directives/thy-contextmenu.directive.d.ts +2 -2
  125. package/shared/directives/thy-ctrl-enter.directive.d.ts +2 -2
  126. package/shared/directives/thy-enter.directive.d.ts +2 -2
  127. package/shared/directives/thy-scroll.directive.d.ts +5 -8
  128. package/shared/directives/thy-show.d.ts +5 -6
  129. package/shared/directives/thy-stop-propagation.directive.d.ts +4 -4
  130. package/shared/directives/view-outlet.directive.d.ts +6 -7
  131. package/shared/ng-transclude.directive.d.ts +2 -3
  132. package/shared/option/group/option-group.component.d.ts +5 -9
  133. package/shared/option/list-option/list-option.component.d.ts +9 -13
  134. package/shared/option/option.component.d.ts +10 -17
  135. package/shared/option/option.token.d.ts +4 -3
  136. package/shared/option/options-container.component.d.ts +1 -1
  137. package/shared/select/select-control/select-control.component.d.ts +38 -53
  138. package/stepper/stepper.component.d.ts +1 -1
  139. package/table/table-column.component.d.ts +15 -5
  140. package/time-picker/inner/inner-time-picker.class.d.ts +15 -13
  141. package/time-picker/inner/inner-time-picker.component.d.ts +26 -26
  142. package/time-picker/time-picker-panel.component.d.ts +18 -20
  143. package/time-picker/time-picker.component.d.ts +22 -30
  144. package/tooltip/tooltip.directive.d.ts +20 -22
  145. package/tree-select/tree-select.component.d.ts +53 -70
@@ -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,64 +1,55 @@
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
+ import { ThySharedLocale } from 'ngx-tethys/i18n';
3
4
  import { SelectOptionBase } from '../../option/select-option-base';
4
5
  import * as i0 from "@angular/core";
5
- import * as i1 from "ngx-tethys/util";
6
6
  export type SelectControlSize = 'xs' | 'sm' | 'md' | 'lg' | '';
7
7
  /**
8
8
  * @private
9
9
  */
10
10
  export declare class ThySelectControl implements OnInit {
11
11
  private renderer;
12
- inputValue: string;
13
- isComposing: boolean;
14
- panelOpened: boolean;
15
- isMultiple: boolean;
16
- showSearch: boolean;
17
- disabled: boolean;
18
- size: SelectControlSize;
19
- selectedOptions: SelectOptionBase | SelectOptionBase[];
12
+ inputValue: import("@angular/core").ModelSignal<string>;
13
+ isComposing: import("@angular/core").WritableSignal<boolean>;
20
14
  searchInputControlClass: {
21
15
  [key: string]: boolean;
22
16
  };
23
- tagSize: ThyTagSize;
17
+ private isFirstPanelOpenedChange;
24
18
  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<{
19
+ readonly thyPanelOpened: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
20
+ readonly thyIsMultiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
21
+ readonly thyShowSearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
22
+ readonly thySelectedOptions: import("@angular/core").InputSignal<SelectOptionBase | SelectOptionBase[]>;
23
+ protected readonly previousSelectedOptions: import("@angular/core").WritableSignal<unknown>;
24
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
+ readonly customDisplayTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
26
+ readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
27
+ readonly thyPlaceholder: import("@angular/core").InputSignal<string>;
28
+ readonly thySize: import("@angular/core").InputSignal<SelectControlSize>;
29
+ readonly tagSize: Signal<ThyTagSize>;
30
+ readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
31
+ readonly thyBorderless: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
32
+ readonly thyPreset: import("@angular/core").InputSignal<string>;
33
+ readonly thyOnSearch: import("@angular/core").OutputEmitterRef<string>;
34
+ readonly thyOnRemove: import("@angular/core").OutputEmitterRef<{
45
35
  item: SelectOptionBase;
46
36
  $eventOrigin: Event;
47
37
  }>;
48
- thyOnClear: EventEmitter<Event>;
49
- thyOnBlur: EventEmitter<Event>;
50
- inputElement: ElementRef;
51
- get selectedValueStyle(): {
52
- [key: string]: string;
53
- };
54
- get placeholderStyle(): {
55
- [key: string]: string;
56
- };
57
- get selectedValue(): any;
58
- get multipleSelectedValue(): any;
59
- get maxSelectedTags(): SelectOptionBase[];
60
- get showClearIcon(): boolean;
61
- get isSelectedValue(): boolean;
38
+ readonly thyOnClear: import("@angular/core").OutputEmitterRef<Event>;
39
+ readonly thyOnBlur: import("@angular/core").OutputEmitterRef<Event>;
40
+ readonly inputElement: Signal<ElementRef<any>>;
41
+ locale: Signal<ThySharedLocale>;
42
+ isSelectedValue: Signal<boolean>;
43
+ showClearIcon: Signal<boolean>;
44
+ maxSelectedTags: Signal<SelectOptionBase[]>;
45
+ collapsedSelectedTags: Signal<SelectOptionBase[]>;
46
+ selectedValueStyle: Signal<{
47
+ display: string;
48
+ }>;
49
+ placeholderStyle: Signal<{
50
+ display: string;
51
+ }>;
52
+ constructor();
62
53
  ngOnInit(): void;
63
54
  setSelectControlClass(): void;
64
55
  setInputValue(value: string): void;
@@ -66,15 +57,9 @@ export declare class ThySelectControl implements OnInit {
66
57
  updateWidth(): void;
67
58
  removeHandle(item: SelectOptionBase, $event: Event): void;
68
59
  clearHandle($event: Event): void;
60
+ compositionChange(isComposing: boolean): void;
69
61
  trackValue(_index: number, option: SelectOptionBase): any;
70
62
  onBlur(event: Event): void;
71
63
  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;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectControl, "thy-select-control,[thySelectControl]", never, { "inputValue": { "alias": "inputValue"; "required": false; "isSignal": true; }; "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; }; }, { "inputValue": "inputValueChange"; "thyOnSearch": "thyOnSearch"; "thyOnRemove": "thyOnRemove"; "thyOnClear": "thyOnClear"; "thyOnBlur": "thyOnBlur"; }, never, never, true, never>;
80
65
  }
@@ -20,7 +20,7 @@ export declare class ThyStepper implements IThyStepperComponent {
20
20
  readonly thyShowStepHeader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
21
21
  readonly selectionChange: import("@angular/core").OutputEmitterRef<any>;
22
22
  readonly steps: import("@angular/core").Signal<readonly ThyStep[]>;
23
- protected selectedIndex: import("@angular/core").WritableSignal<number>;
23
+ readonly selectedIndex: import("@angular/core").WritableSignal<number>;
24
24
  protected readonly selected: import("@angular/core").Signal<ThyStep>;
25
25
  constructor();
26
26
  private updateSelectedIndex;
@@ -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
  }
@@ -1,3 +1,4 @@
1
+ import { InputSignal } from '@angular/core';
1
2
  export interface Time {
2
3
  hour?: string | number;
3
4
  minute?: string | number;
@@ -14,19 +15,20 @@ export interface TimePickerControls {
14
15
  canToggleMeridian: boolean;
15
16
  }
16
17
  export interface TimePickerComponentState {
17
- min: Date;
18
- max: Date;
19
- hourStep: number;
20
- minuteStep: number;
21
- secondsStep: number;
22
- readonlyInput: boolean;
23
- disabled: boolean;
24
- mousewheel: boolean;
25
- arrowKeys: boolean;
26
- showSpinners: boolean;
27
- showMeridian: boolean;
28
- showSeconds: boolean;
29
- meridians: string[];
18
+ min: InputSignal<Date>;
19
+ max: InputSignal<Date>;
20
+ hourStep: InputSignal<number>;
21
+ minuteStep: InputSignal<number>;
22
+ secondsStep: InputSignal<number>;
23
+ readonlyInput: InputSignal<boolean>;
24
+ disabled: InputSignal<boolean>;
25
+ mousewheel: InputSignal<boolean>;
26
+ arrowKeys: InputSignal<boolean>;
27
+ showSpinners: InputSignal<boolean>;
28
+ showMeridian: InputSignal<boolean>;
29
+ showSeconds: InputSignal<boolean>;
30
+ showMinutes?: InputSignal<boolean>;
31
+ meridians: InputSignal<string[]>;
30
32
  }
31
33
  export type TimeChangeSource = 'wheel' | 'key' | '';
32
34
  export interface TimeChangeEvent {
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges, StaticProvider } from '@angular/core';
1
+ import { OnDestroy, StaticProvider } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { TimeChangeSource, TimePickerComponentState, TimePickerControls } from './inner-time-picker.class';
4
4
  import * as i0 from "@angular/core";
@@ -6,52 +6,54 @@ export declare const TIMEPICKER_CONTROL_VALUE_ACCESSOR: StaticProvider;
6
6
  /**
7
7
  * @internal
8
8
  */
9
- export declare class ThyInnerTimePicker implements ControlValueAccessor, TimePickerComponentState, TimePickerControls, OnChanges, OnDestroy {
9
+ export declare class ThyInnerTimePicker implements ControlValueAccessor, TimePickerComponentState, TimePickerControls, OnDestroy {
10
10
  private _cd;
11
11
  private _store;
12
+ private _config;
12
13
  /** hours change step */
13
- hourStep: number;
14
- /** hours change step */
15
- minuteStep: number;
14
+ readonly hourStep: import("@angular/core").InputSignal<number>;
15
+ /** minutes change step */
16
+ readonly minuteStep: import("@angular/core").InputSignal<number>;
16
17
  /** seconds change step */
17
- secondsStep: number;
18
+ readonly secondsStep: import("@angular/core").InputSignal<number>;
18
19
  /** if true hours and minutes fields will be readonly */
19
- readonlyInput: boolean;
20
+ readonly readonlyInput: import("@angular/core").InputSignal<boolean>;
20
21
  /** if true hours and minutes fields will be disabled */
21
- disabled: boolean;
22
+ readonly disabled: import("@angular/core").ModelSignal<boolean>;
22
23
  /** if true scroll inside hours and minutes inputs will change time */
23
- mousewheel: boolean;
24
+ readonly mousewheel: import("@angular/core").InputSignal<boolean>;
24
25
  /** if true the values of hours and minutes can be changed using the up/down arrow keys on the keyboard */
25
- arrowKeys: boolean;
26
+ readonly arrowKeys: import("@angular/core").InputSignal<boolean>;
26
27
  /** if true spinner arrows above and below the inputs will be shown */
27
- showSpinners: boolean;
28
+ readonly showSpinners: import("@angular/core").InputSignal<boolean>;
28
29
  /** if true meridian button will be shown */
29
- showMeridian: boolean;
30
+ readonly showMeridian: import("@angular/core").InputSignal<boolean>;
30
31
  /** show minutes in timePicker */
31
- showMinutes: boolean;
32
+ readonly showMinutes: import("@angular/core").InputSignal<boolean>;
32
33
  /** show seconds in timePicker */
33
- showSeconds: boolean;
34
+ readonly showSeconds: import("@angular/core").InputSignal<boolean>;
34
35
  /** meridian labels based on locale */
35
- meridians: string[];
36
+ readonly meridians: import("@angular/core").InputSignal<string[]>;
36
37
  /** minimum time user can select */
37
- min: Date;
38
+ readonly min: import("@angular/core").InputSignal<Date>;
38
39
  /** maximum time user can select */
39
- max: Date;
40
+ readonly max: import("@angular/core").InputSignal<Date>;
40
41
  /** placeholder for hours field in timePicker */
41
- hoursPlaceholder: string;
42
+ readonly hoursPlaceholder: import("@angular/core").InputSignal<string>;
42
43
  /** placeholder for minutes field in timePicker */
43
- minutesPlaceholder: string;
44
+ readonly minutesPlaceholder: import("@angular/core").InputSignal<string>;
44
45
  /** placeholder for seconds field in timePicker */
45
- secondsPlaceholder: string;
46
+ readonly secondsPlaceholder: import("@angular/core").InputSignal<string>;
46
47
  /** timezone */
47
- timeZone: string;
48
+ readonly timeZone: import("@angular/core").InputSignal<string>;
48
49
  /** emits true if value is a valid date */
49
- isValid: EventEmitter<boolean>;
50
+ readonly isValid: import("@angular/core").OutputEmitterRef<boolean>;
51
+ readonly isEditable: import("@angular/core").Signal<boolean>;
52
+ readonly isPM: import("@angular/core").Signal<boolean>;
50
53
  hours: string;
51
54
  minutes: string;
52
55
  seconds: string;
53
56
  meridian: string;
54
- get isEditable(): boolean;
55
57
  invalidHours: boolean;
56
58
  invalidMinutes: boolean;
57
59
  invalidSeconds: boolean;
@@ -67,10 +69,8 @@ export declare class ThyInnerTimePicker implements ControlValueAccessor, TimePic
67
69
  private timerPickerSubscription;
68
70
  constructor();
69
71
  resetValidation(): void;
70
- isPM(): boolean;
71
72
  prevDef($event: Event): void;
72
73
  wheelSign($event: WheelEventInit): number;
73
- ngOnChanges(changes: SimpleChanges): void;
74
74
  changeHours(step: number, source?: TimeChangeSource): void;
75
75
  changeMinutes(step: number, source?: TimeChangeSource): void;
76
76
  changeSeconds(step: number, source?: TimeChangeSource): void;
@@ -87,5 +87,5 @@ export declare class ThyInnerTimePicker implements ControlValueAccessor, TimePic
87
87
  ngOnDestroy(): void;
88
88
  private _renderTime;
89
89
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyInnerTimePicker, never>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyInnerTimePicker, "thy-inner-time-picker", never, { "hourStep": { "alias": "hourStep"; "required": false; }; "minuteStep": { "alias": "minuteStep"; "required": false; }; "secondsStep": { "alias": "secondsStep"; "required": false; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mousewheel": { "alias": "mousewheel"; "required": false; }; "arrowKeys": { "alias": "arrowKeys"; "required": false; }; "showSpinners": { "alias": "showSpinners"; "required": false; }; "showMeridian": { "alias": "showMeridian"; "required": false; }; "showMinutes": { "alias": "showMinutes"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "meridians": { "alias": "meridians"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "hoursPlaceholder": { "alias": "hoursPlaceholder"; "required": false; }; "minutesPlaceholder": { "alias": "minutesPlaceholder"; "required": false; }; "secondsPlaceholder": { "alias": "secondsPlaceholder"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; }, { "isValid": "isValid"; }, never, never, true, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyInnerTimePicker, "thy-inner-time-picker", never, { "hourStep": { "alias": "hourStep"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "secondsStep": { "alias": "secondsStep"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "mousewheel": { "alias": "mousewheel"; "required": false; "isSignal": true; }; "arrowKeys": { "alias": "arrowKeys"; "required": false; "isSignal": true; }; "showSpinners": { "alias": "showSpinners"; "required": false; "isSignal": true; }; "showMeridian": { "alias": "showMeridian"; "required": false; "isSignal": true; }; "showMinutes": { "alias": "showMinutes"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "meridians": { "alias": "meridians"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "hoursPlaceholder": { "alias": "hoursPlaceholder"; "required": false; "isSignal": true; }; "minutesPlaceholder": { "alias": "minutesPlaceholder"; "required": false; "isSignal": true; }; "secondsPlaceholder": { "alias": "secondsPlaceholder"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "isValid": "isValid"; }, never, never, true, never>;
91
91
  }