ngx-tethys 19.1.0-next.0 → 19.1.0-next.10

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 (221) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/README.md +0 -1
  3. package/action/action.component.d.ts +7 -8
  4. package/affix/affix.component.d.ts +3 -4
  5. package/arrow-switcher/arrow-switcher.component.d.ts +5 -1
  6. package/badge/badge.component.d.ts +1 -1
  7. package/button/button-group.component.d.ts +5 -12
  8. package/button/button-icon.component.d.ts +14 -28
  9. package/button/button.component.d.ts +17 -27
  10. package/color-picker/coordinates.directive.d.ts +1 -2
  11. package/date-picker/abstract-picker.component.d.ts +50 -52
  12. package/date-picker/abstract-picker.directive.d.ts +15 -40
  13. package/date-picker/base-picker.component.d.ts +12 -40
  14. package/date-picker/date-picker.config.d.ts +3 -0
  15. package/date-picker/lib/calendar/calendar-footer.component.d.ts +24 -19
  16. package/date-picker/lib/calendar/calendar-header.component.d.ts +15 -15
  17. package/date-picker/lib/calendar/calendar-table.component.d.ts +15 -16
  18. package/date-picker/lib/date/date-table-cell.component.d.ts +6 -3
  19. package/date-picker/lib/date/date-table.component.d.ts +2 -3
  20. package/date-picker/lib/date-carousel/date-carousel.component.d.ts +2 -3
  21. package/date-picker/lib/decade/decade-header.component.d.ts +2 -5
  22. package/date-picker/lib/decade/decade-table.component.d.ts +3 -5
  23. package/date-picker/lib/month/month-table.component.d.ts +1 -2
  24. package/date-picker/lib/popups/date-popup.component.d.ts +33 -34
  25. package/date-picker/lib/popups/inner-popup.component.d.ts +22 -29
  26. package/date-picker/lib/quarter/quarter-table.component.d.ts +1 -4
  27. package/date-picker/lib/year/year-header.component.d.ts +2 -4
  28. package/date-picker/lib/year/year-table.component.d.ts +2 -4
  29. package/date-picker/month-picker.component.d.ts +2 -2
  30. package/date-picker/picker.component.d.ts +31 -36
  31. package/date-picker/picker.pipes.d.ts +4 -5
  32. package/date-picker/picker.util.d.ts +5 -5
  33. package/date-picker/picker.validators.d.ts +4 -8
  34. package/date-picker/quarter-picker.component.d.ts +2 -3
  35. package/date-picker/styles/calendar.scss +1 -1
  36. package/date-picker/styles/range-picker.scss +1 -0
  37. package/date-picker/styles/week-picker.scss +1 -0
  38. package/date-picker/week-picker.component.d.ts +0 -1
  39. package/date-picker/year-picker.component.d.ts +2 -3
  40. package/dropdown/dropdown-active.directive.d.ts +4 -5
  41. package/dropdown/dropdown-menu-item.directive.d.ts +7 -15
  42. package/dropdown/dropdown-menu.component.d.ts +6 -13
  43. package/dropdown/dropdown-submenu.component.d.ts +2 -4
  44. package/dropdown/dropdown.directive.d.ts +15 -25
  45. package/empty/empty.component.d.ts +2 -1
  46. package/fesm2022/ngx-tethys-action.mjs +15 -16
  47. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  48. package/fesm2022/ngx-tethys-affix.mjs +14 -18
  49. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  50. package/fesm2022/ngx-tethys-arrow-switcher.mjs +15 -3
  51. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  52. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
  53. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  54. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  55. package/fesm2022/ngx-tethys-button.mjs +225 -322
  56. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  57. package/fesm2022/ngx-tethys-carousel.mjs +1 -0
  58. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  59. package/fesm2022/ngx-tethys-cascader.mjs +1 -1
  60. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-checkbox.mjs +2 -2
  62. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-collapse.mjs +2 -2
  64. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  65. package/fesm2022/ngx-tethys-color-picker.mjs +4 -6
  66. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  67. package/fesm2022/ngx-tethys-copy.mjs +2 -2
  68. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys-date-picker.mjs +861 -1078
  70. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  71. package/fesm2022/ngx-tethys-divider.mjs +5 -5
  72. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  73. package/fesm2022/ngx-tethys-dropdown.mjs +159 -209
  74. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  75. package/fesm2022/ngx-tethys-empty.mjs +5 -2
  76. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  77. package/fesm2022/ngx-tethys-flexible-text.mjs +68 -88
  78. package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
  79. package/fesm2022/ngx-tethys-grid.mjs +10 -15
  80. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  81. package/fesm2022/ngx-tethys-i18n.mjs +26 -6
  82. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  83. package/fesm2022/ngx-tethys-icon.mjs +44 -59
  84. package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
  85. package/fesm2022/ngx-tethys-image.mjs +44 -42
  86. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  87. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  88. package/fesm2022/ngx-tethys-layout.mjs +291 -334
  89. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  90. package/fesm2022/ngx-tethys-list.mjs +183 -217
  91. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  92. package/fesm2022/ngx-tethys-message.mjs +29 -36
  93. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  94. package/fesm2022/ngx-tethys-notify.mjs +33 -41
  95. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  96. package/fesm2022/ngx-tethys-progress.mjs +7 -11
  97. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  98. package/fesm2022/ngx-tethys-property.mjs +8 -19
  99. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  100. package/fesm2022/ngx-tethys-radio.mjs +46 -58
  101. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  102. package/fesm2022/ngx-tethys-rate.mjs +115 -157
  103. package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
  104. package/fesm2022/ngx-tethys-resizable.mjs +100 -143
  105. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  106. package/fesm2022/ngx-tethys-segment.mjs +84 -103
  107. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  108. package/fesm2022/ngx-tethys-select.mjs +164 -228
  109. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  110. package/fesm2022/ngx-tethys-shared.mjs +423 -586
  111. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  112. package/fesm2022/ngx-tethys-skeleton.mjs +1 -2
  113. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  114. package/fesm2022/ngx-tethys-slide.mjs +37 -56
  115. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  116. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  117. package/fesm2022/ngx-tethys-space.mjs +2 -8
  118. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  119. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  120. package/fesm2022/ngx-tethys-strength.mjs +52 -66
  121. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  122. package/fesm2022/ngx-tethys-table.mjs +1 -2
  123. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  124. package/fesm2022/ngx-tethys-time-picker.mjs +244 -271
  125. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  126. package/fesm2022/ngx-tethys-tooltip.mjs +109 -93
  127. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  128. package/fesm2022/ngx-tethys-transfer.mjs +98 -119
  129. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  130. package/fesm2022/ngx-tethys-tree-select.mjs +216 -284
  131. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  132. package/fesm2022/ngx-tethys-tree.mjs +281 -401
  133. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  134. package/fesm2022/ngx-tethys-upload.mjs +2 -2
  135. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  136. package/fesm2022/ngx-tethys-vote.mjs +53 -99
  137. package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
  138. package/fesm2022/ngx-tethys.mjs +1 -1
  139. package/fesm2022/ngx-tethys.mjs.map +1 -1
  140. package/flexible-text/flexible-text.component.d.ts +9 -15
  141. package/grid/flex.d.ts +1 -3
  142. package/grid/thy-row.directive.d.ts +1 -4
  143. package/i18n/i18n.d.ts +7 -2
  144. package/i18n/locales/de-de.d.ts +5 -1
  145. package/i18n/locales/en-us.d.ts +5 -1
  146. package/i18n/locales/ja-jp.d.ts +5 -1
  147. package/i18n/locales/zh-hans.d.ts +5 -1
  148. package/i18n/locales/zh-hant.d.ts +5 -1
  149. package/icon/icon.component.d.ts +10 -18
  150. package/image/image.directive.d.ts +10 -13
  151. package/image/image.token.d.ts +5 -5
  152. package/image/preview/image-preview.component.d.ts +2 -2
  153. package/input-number/input-number.component.d.ts +1 -1
  154. package/layout/header.component.d.ts +15 -19
  155. package/layout/layout.component.d.ts +3 -2
  156. package/layout/sidebar-header.component.d.ts +7 -8
  157. package/layout/sidebar.component.d.ts +32 -62
  158. package/list/list-item-meta.component.d.ts +7 -9
  159. package/list/list-item.component.d.ts +0 -2
  160. package/list/list.component.d.ts +2 -8
  161. package/list/selection/selection-list.d.ts +33 -46
  162. package/message/abstract/abstract-message.component.d.ts +2 -3
  163. package/message/message-container.component.d.ts +0 -1
  164. package/message/message.component.d.ts +1 -3
  165. package/notify/notify-container.component.d.ts +0 -1
  166. package/notify/notify.component.d.ts +7 -12
  167. package/package.json +1 -1
  168. package/progress/progress-circle.component.d.ts +3 -5
  169. package/progress/progress.component.d.ts +2 -4
  170. package/property/properties.component.d.ts +0 -2
  171. package/property/property-item.component.d.ts +3 -10
  172. package/radio/group/radio-group.component.d.ts +5 -9
  173. package/rate/rate-item.component.d.ts +8 -11
  174. package/rate/rate.component.d.ts +18 -29
  175. package/resizable/resizable.directive.d.ts +20 -32
  176. package/resizable/resize-handle.component.d.ts +6 -7
  177. package/resizable/resize-handles.component.d.ts +5 -9
  178. package/schematics/version.d.ts +1 -1
  179. package/schematics/version.js +1 -1
  180. package/segment/segment-item.component.d.ts +9 -15
  181. package/segment/segment.component.d.ts +11 -15
  182. package/segment/segment.token.d.ts +4 -3
  183. package/select/custom-select/custom-select.component.d.ts +33 -56
  184. package/select/native-select/native-select.component.d.ts +7 -13
  185. package/shared/base-form-check.component.d.ts +6 -8
  186. package/shared/directives/string-or-template-outlet.directive.d.ts +5 -6
  187. package/shared/directives/thy-autofocus.directive.d.ts +4 -6
  188. package/shared/directives/thy-contextmenu.directive.d.ts +2 -2
  189. package/shared/directives/thy-ctrl-enter.directive.d.ts +2 -2
  190. package/shared/directives/thy-enter.directive.d.ts +2 -2
  191. package/shared/directives/thy-scroll.directive.d.ts +5 -8
  192. package/shared/directives/thy-show.d.ts +5 -6
  193. package/shared/directives/thy-stop-propagation.directive.d.ts +4 -4
  194. package/shared/directives/view-outlet.directive.d.ts +6 -7
  195. package/shared/ng-transclude.directive.d.ts +2 -3
  196. package/shared/option/group/option-group.component.d.ts +5 -9
  197. package/shared/option/list-option/list-option.component.d.ts +9 -13
  198. package/shared/option/option.component.d.ts +10 -17
  199. package/shared/option/option.token.d.ts +4 -3
  200. package/shared/option/options-container.component.d.ts +1 -1
  201. package/shared/select/select-control/select-control.component.d.ts +38 -53
  202. package/slide/slide-body/slide-body-section.component.d.ts +2 -6
  203. package/slide/slide-header/slide-header.component.d.ts +6 -9
  204. package/space/space.component.d.ts +5 -11
  205. package/stepper/stepper.component.d.ts +1 -1
  206. package/strength/strength.component.d.ts +8 -13
  207. package/table/table-column.component.d.ts +15 -5
  208. package/time-picker/inner/inner-time-picker.class.d.ts +15 -13
  209. package/time-picker/inner/inner-time-picker.component.d.ts +26 -26
  210. package/time-picker/time-picker-panel.component.d.ts +18 -20
  211. package/time-picker/time-picker.component.d.ts +22 -30
  212. package/tooltip/tooltip.directive.d.ts +20 -22
  213. package/transfer/transfer-list.component.d.ts +15 -15
  214. package/transfer/transfer.component.d.ts +20 -23
  215. package/tree/tree-abstract.d.ts +5 -5
  216. package/tree/tree-node.component.d.ts +24 -37
  217. package/tree/tree.class.d.ts +4 -4
  218. package/tree/tree.component.d.ts +47 -75
  219. package/tree/tree.service.d.ts +3 -4
  220. package/tree-select/tree-select.component.d.ts +54 -71
  221. package/vote/vote.component.d.ts +13 -33
@@ -1,4 +1,3 @@
1
- import { AfterContentInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
1
  import { ControlValueAccessor } from '@angular/forms';
3
2
  import { ThyRadioButton } from '../button/radio-button.component';
4
3
  import { ThyRadio } from '../radio.component';
@@ -8,11 +7,10 @@ import * as i0 from "@angular/core";
8
7
  * @name thy-radio-group
9
8
  * @order 20
10
9
  */
11
- export declare class ThyRadioGroup implements IThyRadioGroupComponent, ControlValueAccessor, OnInit, OnChanges, AfterContentInit {
10
+ export declare class ThyRadioGroup implements IThyRadioGroupComponent, ControlValueAccessor {
12
11
  private changeDetectorRef;
13
- thyRadioGroup: boolean;
14
- isButtonGroup: boolean;
15
- isButtonGroupOutline: boolean;
12
+ isButtonGroup: import("@angular/core").WritableSignal<boolean>;
13
+ isButtonGroupOutline: import("@angular/core").WritableSignal<boolean>;
16
14
  /**
17
15
  * 大小
18
16
  * @type sm | md | lg
@@ -41,10 +39,8 @@ export declare class ThyRadioGroup implements IThyRadioGroupComponent, ControlVa
41
39
  registerOnTouched(fn: any): void;
42
40
  setDisabledState?(isDisabled: boolean): void;
43
41
  setGroup(): void;
44
- ngOnInit(): void;
45
- ngOnChanges(changes: SimpleChanges): void;
46
- ngAfterContentInit(): void;
47
- private _setClasses;
42
+ constructor();
43
+ private setClasses;
48
44
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyRadioGroup, never>;
49
45
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyRadioGroup, "thy-radio-group", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyLayout": { "alias": "thyLayout"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
50
46
  }
@@ -1,20 +1,17 @@
1
- import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
1
+ import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- import * as i1 from "ngx-tethys/util";
4
3
  /**
5
4
  * @private
6
5
  */
7
- export declare class ThyRateItem implements OnInit {
8
- allowHalf: boolean;
9
- iconValue: string;
10
- iconTemplate: TemplateRef<any>;
11
- readonly itemHover: EventEmitter<boolean>;
12
- readonly itemClick: EventEmitter<boolean>;
6
+ export declare class ThyRateItem {
7
+ readonly allowHalf: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8
+ readonly iconValue: import("@angular/core").InputSignal<string>;
9
+ readonly iconTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
10
+ readonly itemHover: import("@angular/core").OutputEmitterRef<boolean>;
11
+ readonly itemClick: import("@angular/core").OutputEmitterRef<boolean>;
13
12
  constructor();
14
- ngOnInit(): void;
15
13
  hoverRateItem(isHalf: boolean): void;
16
14
  clickRateItem(isHalf: boolean): void;
17
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyRateItem, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyRateItem, "thy-rate-item, [thy-rate-item]", never, { "allowHalf": { "alias": "allowHalf"; "required": false; }; "iconValue": { "alias": "iconValue"; "required": false; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; }; }, { "itemHover": "itemHover"; "itemClick": "itemClick"; }, never, never, true, never>;
19
- static ngAcceptInputType_allowHalf: i1.ThyBooleanInput;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyRateItem, "thy-rate-item, [thy-rate-item]", never, { "allowHalf": { "alias": "allowHalf"; "required": false; "isSignal": true; }; "iconValue": { "alias": "iconValue"; "required": false; "isSignal": true; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; "isSignal": true; }; }, { "itemHover": "itemHover"; "itemClick": "itemClick"; }, never, never, true, never>;
20
17
  }
@@ -1,5 +1,5 @@
1
1
  import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
2
- import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { TemplateRef, ModelSignal } from '@angular/core';
3
3
  import { ControlValueAccessor } from '@angular/forms';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "ngx-tethys/util";
@@ -8,22 +8,17 @@ import * as i1 from "ngx-tethys/util";
8
8
  * @name thy-rate
9
9
  * @order 10
10
10
  */
11
- export declare class ThyRate extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor, OnInit, OnChanges {
11
+ export declare class ThyRate extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor {
12
12
  private cdr;
13
- private _value;
14
- private currentValue;
15
- private hasHalf;
16
- rateArray: number[];
17
- rateStyleArray: Record<string, boolean>[];
18
- private icons;
19
- iconValue: string;
20
- iconTemplate: TemplateRef<any>;
13
+ readonly thyValue: ModelSignal<number>;
14
+ readonly currentValue: ModelSignal<number>;
15
+ readonly hasHalf: ModelSignal<boolean>;
21
16
  private onTouchedCallback;
22
17
  private onChangeCallback;
23
18
  /**
24
19
  * 自定义评分的总数
25
20
  */
26
- thyCount: number;
21
+ readonly thyCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
27
22
  /**
28
23
  * 是否只读
29
24
  * @default false
@@ -35,46 +30,40 @@ export declare class ThyRate extends TabIndexDisabledControlValueAccessorMixin i
35
30
  * 是否允许半选
36
31
  * @default false
37
32
  */
38
- thyAllowHalf: boolean;
33
+ readonly thyAllowHalf: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
39
34
  /**
40
35
  * 是否允许再次点击后清除
41
36
  */
42
- thyAllowClear: boolean;
37
+ readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
43
38
  /**
44
39
  * 自定义每项的提示信息
45
40
  * @type string[]
46
41
  */
47
- thyTooltips: string[];
42
+ readonly thyTooltips: import("@angular/core").InputSignal<string[]>;
48
43
  /**
49
44
  * 自定义模板,目前支持传单个模板或图标名称、数组(模板 | 图标名称)
50
45
  * @type string | TemplateRef<any> | string[] | TemplateRef<any>[]
51
46
  */
52
- set thyIconTemplate(value: string | TemplateRef<any> | string[] | TemplateRef<any>[]);
47
+ readonly thyIconTemplate: import("@angular/core").InputSignal<string | string[] | TemplateRef<any> | TemplateRef<any>[]>;
53
48
  /**
54
49
  * 当前值hover时的回调
55
50
  */
56
- readonly thyItemHoverChange: EventEmitter<number>;
57
- className: boolean;
51
+ readonly thyItemHoverChange: import("@angular/core").OutputEmitterRef<number>;
52
+ readonly iconValue: import("@angular/core").Signal<any>;
53
+ readonly iconTemplate: import("@angular/core").Signal<TemplateRef<any>>;
54
+ readonly rateArray: import("@angular/core").Signal<number[]>;
55
+ readonly rateStyleArray: import("@angular/core").Signal<Record<string, boolean>[]>;
58
56
  constructor();
59
- get thyValue(): number;
60
- set thyValue(value: number);
61
57
  writeValue(value: number): void;
62
- ngOnInit(): void;
63
- ngOnChanges(changes: SimpleChanges): void;
64
58
  itemHover(isHalf: boolean, index: number): void;
65
59
  itemClick(isHalf: boolean, index: number): void;
66
60
  onRateLeave(event: Event): void;
67
- updateRateArray(): void;
68
- updateItemStyle(): void;
69
- updateIcon(): void;
70
- setIconTemplate(): void;
61
+ updateRateArray(): number[];
62
+ updateItemStyle(): Record<string, boolean>[];
71
63
  registerOnChange(fn: any): void;
72
64
  registerOnTouched(fn: any): void;
73
65
  trackByFn(index: number, item: any): any;
74
66
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyRate, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyRate, "thy-rate", never, { "thyCount": { "alias": "thyCount"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyAllowHalf": { "alias": "thyAllowHalf"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyTooltips": { "alias": "thyTooltips"; "required": false; }; "thyIconTemplate": { "alias": "thyIconTemplate"; "required": false; }; }, { "thyItemHoverChange": "thyItemHoverChange"; }, never, never, true, never>;
76
- static ngAcceptInputType_thyCount: unknown;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyRate, "thy-rate", never, { "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "currentValue": { "alias": "currentValue"; "required": false; "isSignal": true; }; "hasHalf": { "alias": "hasHalf"; "required": false; "isSignal": true; }; "thyCount": { "alias": "thyCount"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyAllowHalf": { "alias": "thyAllowHalf"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyTooltips": { "alias": "thyTooltips"; "required": false; "isSignal": true; }; "thyIconTemplate": { "alias": "thyIconTemplate"; "required": false; "isSignal": true; }; }, { "thyValue": "thyValueChange"; "currentValue": "currentValueChange"; "hasHalf": "hasHalfChange"; "thyItemHoverChange": "thyItemHoverChange"; }, never, never, true, never>;
77
68
  static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
78
- static ngAcceptInputType_thyAllowHalf: i1.ThyBooleanInput;
79
- static ngAcceptInputType_thyAllowClear: i1.ThyBooleanInput;
80
69
  }
@@ -1,85 +1,83 @@
1
- import { AfterViewInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core';
1
+ import { OnDestroy, ElementRef } from '@angular/core';
2
2
  import { ThyResizeEvent } from './interface';
3
3
  import * as i0 from "@angular/core";
4
- import * as i1 from "ngx-tethys/util";
5
4
  /**
6
5
  * 调整尺寸
7
6
  * @name thyResizable
8
7
  */
9
- export declare class ThyResizableDirective implements AfterViewInit, OnDestroy {
8
+ export declare class ThyResizableDirective implements OnDestroy {
10
9
  private elementRef;
11
10
  private renderer;
12
11
  private platform;
13
12
  private ngZone;
14
13
  private thyResizableService;
15
- private changeDetectorRef;
16
14
  /**
17
15
  * 调整尺寸的边界
18
16
  * @default parent
19
17
  * @type 'window' | 'parent' | ElementRef<HTMLElement>
20
18
  */
21
- thyBounds: 'window' | 'parent' | ElementRef<HTMLElement>;
19
+ readonly thyBounds: import("@angular/core").InputSignal<"window" | ElementRef<HTMLElement> | "parent">;
22
20
  /**
23
21
  * 最大高度(超过边界部分忽略)
24
22
  */
25
- thyMaxHeight?: number;
23
+ readonly thyMaxHeight: import("@angular/core").InputSignalWithTransform<number, unknown>;
26
24
  /**
27
25
  * 最大宽度(超过边界部分忽略)
28
26
  */
29
- thyMaxWidth?: number;
27
+ readonly thyMaxWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
30
28
  /**
31
29
  * 最小高度
32
30
  */
33
- thyMinHeight: number;
31
+ readonly thyMinHeight: import("@angular/core").InputSignalWithTransform<number, unknown>;
34
32
  /**
35
33
  * 最小宽度
36
34
  */
37
- thyMinWidth: number;
35
+ readonly thyMinWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
38
36
  /**
39
37
  * 栅格列数(-1 为不栅格)
40
38
  */
41
- thyGridColumnCount: number;
39
+ readonly thyGridColumnCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
42
40
  /**
43
41
  * 栅格最大列数
44
42
  */
45
- thyMaxColumn: number;
43
+ readonly thyMaxColumn: import("@angular/core").InputSignalWithTransform<number, unknown>;
46
44
  /**
47
45
  * 栅格最小列数
48
46
  */
49
- thyMinColumn: number;
47
+ readonly thyMinColumn: import("@angular/core").InputSignalWithTransform<number, unknown>;
50
48
  /**
51
49
  * 锁定宽高比
52
50
  */
53
- thyLockAspectRatio: boolean;
51
+ readonly thyLockAspectRatio: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
54
52
  /**
55
53
  * 是否预览模式
56
54
  */
57
- thyPreview: boolean;
55
+ readonly thyPreview: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
58
56
  /**
59
57
  * 是否禁用调整大小
60
58
  */
61
- thyDisabled: boolean;
59
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
62
60
  /**
63
61
  * 调整尺寸时的事件
64
62
  */
65
- readonly thyResize: EventEmitter<ThyResizeEvent>;
63
+ readonly thyResize: import("@angular/core").OutputEmitterRef<ThyResizeEvent>;
66
64
  /**
67
65
  * 开始调整尺寸时的事件
68
66
  */
69
- readonly thyResizeStart: EventEmitter<ThyResizeEvent>;
67
+ readonly thyResizeStart: import("@angular/core").OutputEmitterRef<ThyResizeEvent>;
70
68
  /**
71
69
  * 结束调整尺寸时的事件
72
70
  */
73
- readonly thyResizeEnd: EventEmitter<ThyResizeEvent>;
74
- resizing: boolean;
75
- private nativeElement;
71
+ readonly thyResizeEnd: import("@angular/core").OutputEmitterRef<ThyResizeEvent>;
72
+ resizing: import("@angular/core").WritableSignal<boolean>;
73
+ private get nativeElement();
76
74
  private nativeElementRect;
77
75
  private sizeCache;
78
76
  private ghostElement;
79
77
  private currentHandleEvent;
80
78
  private readonly destroyRef;
81
79
  constructor();
82
- ngAfterViewInit(): void;
80
+ private bindMouseEnterAndLeaveEvents;
83
81
  setCursor(): void;
84
82
  endResize(event: MouseEvent | TouchEvent): void;
85
83
  resize(event: MouseEvent | TouchEvent): void;
@@ -89,15 +87,5 @@ export declare class ThyResizableDirective implements AfterViewInit, OnDestroy {
89
87
  removeGhostElement(): void;
90
88
  ngOnDestroy(): void;
91
89
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizableDirective, never>;
92
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyResizableDirective, "[thyResizable]", never, { "thyBounds": { "alias": "thyBounds"; "required": false; }; "thyMaxHeight": { "alias": "thyMaxHeight"; "required": false; }; "thyMaxWidth": { "alias": "thyMaxWidth"; "required": false; }; "thyMinHeight": { "alias": "thyMinHeight"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyGridColumnCount": { "alias": "thyGridColumnCount"; "required": false; }; "thyMaxColumn": { "alias": "thyMaxColumn"; "required": false; }; "thyMinColumn": { "alias": "thyMinColumn"; "required": false; }; "thyLockAspectRatio": { "alias": "thyLockAspectRatio"; "required": false; }; "thyPreview": { "alias": "thyPreview"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "thyResize": "thyResize"; "thyResizeStart": "thyResizeStart"; "thyResizeEnd": "thyResizeEnd"; }, never, never, true, never>;
93
- static ngAcceptInputType_thyMaxHeight: unknown;
94
- static ngAcceptInputType_thyMaxWidth: unknown;
95
- static ngAcceptInputType_thyMinHeight: unknown;
96
- static ngAcceptInputType_thyMinWidth: unknown;
97
- static ngAcceptInputType_thyGridColumnCount: unknown;
98
- static ngAcceptInputType_thyMaxColumn: unknown;
99
- static ngAcceptInputType_thyMinColumn: unknown;
100
- static ngAcceptInputType_thyLockAspectRatio: i1.ThyBooleanInput;
101
- static ngAcceptInputType_thyPreview: i1.ThyBooleanInput;
102
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
90
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyResizableDirective, "[thyResizable]", never, { "thyBounds": { "alias": "thyBounds"; "required": false; "isSignal": true; }; "thyMaxHeight": { "alias": "thyMaxHeight"; "required": false; "isSignal": true; }; "thyMaxWidth": { "alias": "thyMaxWidth"; "required": false; "isSignal": true; }; "thyMinHeight": { "alias": "thyMinHeight"; "required": false; "isSignal": true; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; "isSignal": true; }; "thyGridColumnCount": { "alias": "thyGridColumnCount"; "required": false; "isSignal": true; }; "thyMaxColumn": { "alias": "thyMaxColumn"; "required": false; "isSignal": true; }; "thyMinColumn": { "alias": "thyMinColumn"; "required": false; "isSignal": true; }; "thyLockAspectRatio": { "alias": "thyLockAspectRatio"; "required": false; "isSignal": true; }; "thyPreview": { "alias": "thyPreview"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, { "thyResize": "thyResize"; "thyResizeStart": "thyResizeStart"; "thyResizeEnd": "thyResizeEnd"; }, never, never, true, never>;
103
91
  }
@@ -1,7 +1,6 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { ThyResizeDirection, ThyResizeHandleMouseDownEvent } from './interface';
3
3
  import * as i0 from "@angular/core";
4
- import * as i1 from "ngx-tethys/util";
5
4
  /**
6
5
  * 定义调整手柄及方向
7
6
  * @name thy-resize-handle
@@ -14,19 +13,19 @@ export declare class ThyResizeHandle implements OnInit {
14
13
  * 调整方向
15
14
  * @type top | right | bottom | left | topRight | bottomRight | bottomLeft | topLeft
16
15
  */
17
- thyDirection: ThyResizeDirection;
16
+ readonly thyDirection: import("@angular/core").InputSignal<ThyResizeDirection>;
18
17
  /**
19
18
  * 是否展示拖拽线
19
+ * @type boolean
20
20
  */
21
- thyLine: boolean;
21
+ readonly thyLine: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
22
22
  /**
23
23
  * MouseDown 回调事件
24
24
  */
25
- readonly thyMouseDown: EventEmitter<ThyResizeHandleMouseDownEvent>;
25
+ readonly thyMouseDown: import("@angular/core").OutputEmitterRef<ThyResizeHandleMouseDownEvent>;
26
26
  private hostRenderer;
27
27
  private readonly destroyRef;
28
28
  ngOnInit(): void;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizeHandle, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandle, "thy-resize-handle, [thy-resize-handle]", ["thyResizeHandle"], { "thyDirection": { "alias": "thyDirection"; "required": false; }; "thyLine": { "alias": "thyLine"; "required": false; }; }, { "thyMouseDown": "thyMouseDown"; }, never, ["*"], true, never>;
31
- static ngAcceptInputType_thyLine: i1.ThyBooleanInput;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandle, "thy-resize-handle, [thy-resize-handle]", ["thyResizeHandle"], { "thyDirection": { "alias": "thyDirection"; "required": false; "isSignal": true; }; "thyLine": { "alias": "thyLine"; "required": false; "isSignal": true; }; }, { "thyMouseDown": "thyMouseDown"; }, never, ["*"], true, never>;
32
31
  }
@@ -1,25 +1,21 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
1
  import { ThyResizeDirection } from './interface';
3
2
  import * as i0 from "@angular/core";
4
- import * as i1 from "ngx-tethys/util";
5
3
  export declare const DEFAULT_RESIZE_DIRECTION: ThyResizeDirection[];
6
4
  /**
7
5
  * 定义调整手柄的快捷组件
8
6
  * @name thy-resize-handles
9
7
  */
10
- export declare class ThyResizeHandles implements OnChanges {
8
+ export declare class ThyResizeHandles {
11
9
  /**
12
10
  * 定义调整手柄的方向
13
11
  * @type ThyResizeDirection[]
14
12
  */
15
- thyDirections: ThyResizeDirection[];
13
+ readonly thyDirections: import("@angular/core").InputSignal<ThyResizeDirection[]>;
16
14
  /**
17
15
  * 是否展示拖拽线
18
16
  */
19
- thyLine: boolean;
20
- directions: Set<ThyResizeDirection>;
21
- ngOnChanges(changes: SimpleChanges): void;
17
+ readonly thyLine: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
18
+ readonly directions: import("@angular/core").Signal<Set<ThyResizeDirection>>;
22
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizeHandles, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandles, "thy-resize-handles", ["thyResizeHandles"], { "thyDirections": { "alias": "thyDirections"; "required": false; }; "thyLine": { "alias": "thyLine"; "required": false; }; }, {}, never, never, true, never>;
24
- static ngAcceptInputType_thyLine: i1.ThyBooleanInput;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandles, "thy-resize-handles", ["thyResizeHandles"], { "thyDirections": { "alias": "thyDirections"; "required": false; "isSignal": true; }; "thyLine": { "alias": "thyLine"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
21
  }
@@ -1 +1 @@
1
- export declare const VERSION = "19.1.0-next.0";
1
+ export declare const VERSION = "19.1.0-next.10";
@@ -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.0-next.0';
4
+ exports.VERSION = '19.1.0-next.10';
@@ -1,40 +1,34 @@
1
- import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
1
+ import { ElementRef } from '@angular/core';
2
2
  import { IThySegmentItemComponent } from './segment.token';
3
- import { SafeAny } from 'ngx-tethys/types';
4
3
  import * as i0 from "@angular/core";
5
- import * as i1 from "ngx-tethys/util";
6
4
  /**
7
5
  * 分段控制器的选项组件
8
6
  * @name thy-segment-item,[thy-segment-item]
9
7
  */
10
- export declare class ThySegmentItem implements IThySegmentItemComponent, AfterViewInit, OnDestroy {
8
+ export declare class ThySegmentItem implements IThySegmentItemComponent {
11
9
  elementRef: ElementRef<any>;
12
10
  private ngZone;
13
- private cdr;
14
11
  private renderer;
15
12
  private parent;
16
13
  /**
17
14
  * 选项的值
18
15
  */
19
- thyValue: SafeAny;
16
+ readonly thyValue: import("@angular/core").InputSignal<any>;
20
17
  /**
21
18
  * 选项的图标
22
19
  */
23
- thyIcon: string;
20
+ readonly thyIcon: import("@angular/core").InputSignal<string>;
24
21
  /**
25
22
  * 是否禁用该选项
26
23
  */
27
- thyDisabled: boolean;
28
- isOnlyIcon: boolean;
29
- isWithText: boolean;
30
- private destroy$;
24
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
+ isOnlyIcon: import("@angular/core").WritableSignal<boolean>;
26
+ isWithText: import("@angular/core").WritableSignal<boolean>;
27
+ private destroyRef;
31
28
  constructor();
32
- ngAfterViewInit(): void;
33
29
  select(): void;
34
30
  unselect(): void;
35
31
  private wrapSpanForText;
36
- ngOnDestroy(): void;
37
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySegmentItem, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<ThySegmentItem, "thy-segment-item,[thy-segment-item]", never, { "thyValue": { "alias": "thyValue"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
39
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThySegmentItem, "thy-segment-item,[thy-segment-item]", never, { "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
40
34
  }
@@ -1,59 +1,55 @@
1
- import { AfterContentInit, EventEmitter, QueryList } from '@angular/core';
2
1
  import { ThumbAnimationProps } from 'ngx-tethys/core';
3
2
  import { ThySegmentItem } from './segment-item.component';
4
3
  import { IThySegmentComponent } from './segment.token';
5
4
  import { ThySegmentEvent } from './types';
6
5
  import { AnimationEvent } from '@angular/animations';
7
6
  import * as i0 from "@angular/core";
8
- import * as i1 from "ngx-tethys/util";
9
7
  export type ThySegmentSize = 'xs' | 'sm' | 'md' | 'default';
10
8
  export type ThySegmentMode = 'block' | 'inline';
11
9
  /**
12
10
  * 分段控制器组件
13
11
  * @name thy-segment
14
12
  */
15
- export declare class ThySegment implements IThySegmentComponent, AfterContentInit {
13
+ export declare class ThySegment implements IThySegmentComponent {
16
14
  private cdr;
17
15
  private destroyRef;
18
16
  /**
19
17
  * @internal
20
18
  */
21
- options: QueryList<ThySegmentItem>;
19
+ readonly options: import("@angular/core").Signal<readonly ThySegmentItem[]>;
22
20
  /**
23
21
  * 大小
24
22
  * @type xs | sm | md | default
25
23
  */
26
- thySize: ThySegmentSize;
24
+ readonly thySize: import("@angular/core").InputSignal<ThySegmentSize>;
27
25
  /**
28
26
  * 模式
29
27
  * @type block | inline
30
28
  */
31
- thyMode: ThySegmentMode;
29
+ readonly thyMode: import("@angular/core").InputSignal<ThySegmentMode>;
32
30
  /**
33
31
  * 是否禁用分段控制器
34
32
  */
35
- thyDisabled: boolean;
33
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
36
34
  /**
37
35
  * 选中选项的索引
38
36
  */
39
- set thyActiveIndex(value: number);
37
+ readonly thyActiveIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
40
38
  /**
41
39
  * 选项被选中的回调事件
42
40
  */
43
- readonly thySelectChange: EventEmitter<ThySegmentEvent<unknown>>;
41
+ readonly thySelectChange: import("@angular/core").OutputEmitterRef<ThySegmentEvent<unknown>>;
44
42
  selectedItem: ThySegmentItem;
45
43
  private newActiveIndex;
46
44
  private activeIndex;
47
- animationState: null | {
45
+ animationState: import("@angular/core").WritableSignal<{
48
46
  value: string;
49
47
  params: ThumbAnimationProps;
50
- };
48
+ }>;
51
49
  transitionedTo: any;
52
- ngAfterContentInit(): void;
50
+ constructor();
53
51
  changeSelectedItem(item: ThySegmentItem, event?: Event): void;
54
52
  handleThumbAnimationDone(event: AnimationEvent): void;
55
53
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySegment, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<ThySegment, "thy-segment", ["thySegment"], { "thySize": { "alias": "thySize"; "required": false; }; "thyMode": { "alias": "thyMode"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyActiveIndex": { "alias": "thyActiveIndex"; "required": false; }; }, { "thySelectChange": "thySelectChange"; }, ["options"], ["*"], true, never>;
57
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
58
- static ngAcceptInputType_thyActiveIndex: unknown;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThySegment, "thy-segment", ["thySegment"], { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyMode": { "alias": "thyMode"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyActiveIndex": { "alias": "thyActiveIndex"; "required": false; "isSignal": true; }; }, { "thySelectChange": "thySelectChange"; }, ["options"], ["*"], true, never>;
59
55
  }
@@ -1,5 +1,6 @@
1
- import { ElementRef, InjectionToken } from '@angular/core';
1
+ import { ElementRef, InjectionToken, InputSignal, InputSignalWithTransform } from '@angular/core';
2
2
  import { SafeAny } from 'ngx-tethys/types';
3
+ import { ThyBooleanInput } from 'ngx-tethys/util';
3
4
  export interface IThySegmentItemComponent {
4
5
  elementRef: ElementRef<HTMLElement>;
5
6
  thyValue: SafeAny;
@@ -7,8 +8,8 @@ export interface IThySegmentItemComponent {
7
8
  select: () => void;
8
9
  }
9
10
  export interface IThySegmentComponent {
10
- thyMode: string;
11
- thyDisabled: boolean;
11
+ thyMode: InputSignal<string>;
12
+ thyDisabled: InputSignalWithTransform<boolean, ThyBooleanInput> | InputSignal<boolean>;
12
13
  selectedItem: IThySegmentItemComponent;
13
14
  changeSelectedItem: (item: IThySegmentItemComponent, event?: Event) => void;
14
15
  }