ngx-tethys 22.0.2 → 22.0.3

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 (181) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/button/styles/button-group.scss +25 -18
  3. package/button/styles/button.scss +3 -1
  4. package/button/styles/mixin.scss +7 -2
  5. package/button/styles/theme.scss +3 -1
  6. package/cascader/styles/cascader.scss +5 -0
  7. package/date-picker/styles/index.scss +5 -0
  8. package/date-picker/styles/picker.scss +5 -0
  9. package/fesm2022/ngx-tethys-action.mjs +13 -4
  10. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  11. package/fesm2022/ngx-tethys-alert.mjs +2 -2
  12. package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
  13. package/fesm2022/ngx-tethys-arrow-switcher.mjs +17 -6
  14. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  15. package/fesm2022/ngx-tethys-autocomplete.mjs +11 -3
  16. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  17. package/fesm2022/ngx-tethys-badge.mjs +17 -5
  18. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  19. package/fesm2022/ngx-tethys-breadcrumb.mjs +1 -1
  20. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/ngx-tethys-button.mjs +39 -21
  22. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  23. package/fesm2022/ngx-tethys-card.mjs +1 -3
  24. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  25. package/fesm2022/ngx-tethys-cascader.mjs +36 -28
  26. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  27. package/fesm2022/ngx-tethys-collapse.mjs +2 -2
  28. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  29. package/fesm2022/ngx-tethys-color-picker.mjs +1 -1
  30. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  31. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  32. package/fesm2022/ngx-tethys-date-picker.mjs +30 -18
  33. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  34. package/fesm2022/ngx-tethys-date-range.mjs +2 -2
  35. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  36. package/fesm2022/ngx-tethys-dialog.mjs +193 -195
  37. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  38. package/fesm2022/ngx-tethys-divider.mjs +18 -7
  39. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  40. package/fesm2022/ngx-tethys-dropdown.mjs +16 -5
  41. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  42. package/fesm2022/ngx-tethys-form.mjs +447 -101
  43. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  44. package/fesm2022/ngx-tethys-image.mjs +1 -1
  45. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  46. package/fesm2022/ngx-tethys-input-number.mjs +10 -4
  47. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  48. package/fesm2022/ngx-tethys-input.mjs +54 -13
  49. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  50. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  51. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  52. package/fesm2022/ngx-tethys-menu.mjs +36 -6
  53. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  54. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  55. package/fesm2022/ngx-tethys-native-table.mjs +26 -11
  56. package/fesm2022/ngx-tethys-native-table.mjs.map +1 -1
  57. package/fesm2022/ngx-tethys-nav.mjs +4 -2
  58. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  59. package/fesm2022/ngx-tethys-notify.mjs +1 -1
  60. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-pagination.mjs +1 -1
  62. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  64. package/fesm2022/ngx-tethys-progress.mjs +81 -55
  65. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  66. package/fesm2022/ngx-tethys-property-operation.mjs +32 -24
  67. package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
  68. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys-radio.mjs +1 -0
  70. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  71. package/fesm2022/ngx-tethys-segment.mjs +0 -1
  72. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  73. package/fesm2022/ngx-tethys-select.mjs +27 -9
  74. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  75. package/fesm2022/ngx-tethys-shared.mjs +16 -7
  76. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  77. package/fesm2022/ngx-tethys-slide.mjs +1 -1
  78. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  79. package/fesm2022/ngx-tethys-slider.mjs +38 -13
  80. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  81. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  82. package/fesm2022/ngx-tethys-statistic.mjs +20 -10
  83. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  84. package/fesm2022/ngx-tethys-stepper.mjs +1 -1
  85. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  86. package/fesm2022/ngx-tethys-strength.mjs +9 -1
  87. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  88. package/fesm2022/ngx-tethys-switch.mjs +20 -11
  89. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  90. package/fesm2022/ngx-tethys-table.mjs +28 -17
  91. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  92. package/fesm2022/ngx-tethys-tabs.mjs +2 -2
  93. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  94. package/fesm2022/ngx-tethys-time-picker.mjs +10 -4
  95. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  96. package/fesm2022/ngx-tethys-timeline.mjs +2 -8
  97. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  98. package/fesm2022/ngx-tethys-tree-select.mjs +11 -6
  99. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  100. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  101. package/fesm2022/ngx-tethys-typography.mjs +0 -1
  102. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  103. package/fesm2022/ngx-tethys.mjs +1 -1
  104. package/fesm2022/ngx-tethys.mjs.map +1 -1
  105. package/form/styles/forms.scss +1 -0
  106. package/form/styles/mixin.scss +37 -0
  107. package/form/styles/theme.scss +1 -0
  108. package/input/styles/input.scss +28 -19
  109. package/input-number/styles/input-number.scss +22 -3
  110. package/menu/examples/variant/variant.component.scss +21 -0
  111. package/package.json +1 -1
  112. package/schematics/ng-update/update-22/badge-dot-hollow-migration.spec.js +4 -4
  113. package/schematics/ng-update/update-22/button-appearance-migration.js +2 -0
  114. package/schematics/ng-update/update-22/button-appearance-migration.spec.js +0 -4
  115. package/schematics/ng-update/update-22/button-group-appearance-migration.d.ts +6 -0
  116. package/schematics/ng-update/update-22/button-group-appearance-migration.js +157 -0
  117. package/schematics/ng-update/update-22/button-group-appearance-migration.spec.d.ts +1 -0
  118. package/schematics/ng-update/update-22/button-group-appearance-migration.spec.js +56 -0
  119. package/schematics/ng-update/update-22/class-name-migration.spec.js +135 -0
  120. package/schematics/ng-update/update-22/divider-deeper-migration.js +12 -5
  121. package/schematics/ng-update/update-22/divider-deeper-migration.spec.js +9 -1
  122. package/schematics/ng-update/update-22/index.js +9 -1
  123. package/schematics/ng-update/update-22/index.spec.js +581 -3
  124. package/schematics/ng-update/update-22/input-search-appearance-migration.d.ts +6 -0
  125. package/schematics/ng-update/update-22/input-search-appearance-migration.js +94 -0
  126. package/schematics/ng-update/update-22/input-search-appearance-migration.spec.d.ts +1 -0
  127. package/schematics/ng-update/update-22/input-search-appearance-migration.spec.js +41 -0
  128. package/schematics/ng-update/update-22/menu-theme-migration.d.ts +14 -0
  129. package/schematics/ng-update/update-22/menu-theme-migration.js +108 -0
  130. package/schematics/ng-update/update-22/menu-theme-migration.spec.d.ts +1 -0
  131. package/schematics/ng-update/update-22/menu-theme-migration.spec.js +42 -0
  132. package/schematics/ng-update/update-22/select-borderless-migration.d.ts +6 -0
  133. package/schematics/ng-update/update-22/select-borderless-migration.js +111 -0
  134. package/schematics/ng-update/update-22/select-borderless-migration.spec.d.ts +1 -0
  135. package/schematics/ng-update/update-22/select-borderless-migration.spec.js +49 -0
  136. package/schematics/ng-update/update-22/update-data.js +102 -1
  137. package/schematics/version.d.ts +1 -1
  138. package/schematics/version.js +1 -1
  139. package/select/styles/custom-select.scss +5 -0
  140. package/select/styles/theme.scss +10 -0
  141. package/shared/select/select-control/select-control.scss +4 -3
  142. package/time-picker/styles/time-picker.scss +11 -2
  143. package/types/ngx-tethys-action.d.ts +14 -5
  144. package/types/ngx-tethys-alert.d.ts +2 -2
  145. package/types/ngx-tethys-arrow-switcher.d.ts +16 -5
  146. package/types/ngx-tethys-autocomplete.d.ts +8 -2
  147. package/types/ngx-tethys-badge.d.ts +14 -4
  148. package/types/ngx-tethys-button.d.ts +28 -9
  149. package/types/ngx-tethys-card.d.ts +3 -6
  150. package/types/ngx-tethys-cascader.d.ts +9 -3
  151. package/types/ngx-tethys-collapse.d.ts +3 -3
  152. package/types/ngx-tethys-core.d.ts +2 -1
  153. package/types/ngx-tethys-date-picker.d.ts +15 -3
  154. package/types/ngx-tethys-dialog.d.ts +1 -3
  155. package/types/ngx-tethys-divider.d.ts +20 -9
  156. package/types/ngx-tethys-dropdown.d.ts +16 -5
  157. package/types/ngx-tethys-form.d.ts +198 -55
  158. package/types/ngx-tethys-input-number.d.ts +8 -2
  159. package/types/ngx-tethys-input.d.ts +39 -8
  160. package/types/ngx-tethys-menu.d.ts +16 -4
  161. package/types/ngx-tethys-native-table.d.ts +21 -6
  162. package/types/ngx-tethys-nav.d.ts +2 -0
  163. package/types/ngx-tethys-progress.d.ts +42 -18
  164. package/types/ngx-tethys-property-operation.d.ts +6 -0
  165. package/types/ngx-tethys-segment.d.ts +0 -1
  166. package/types/ngx-tethys-select.d.ts +23 -5
  167. package/types/ngx-tethys-shared.d.ts +12 -3
  168. package/types/ngx-tethys-slider.d.ts +22 -8
  169. package/types/ngx-tethys-space.d.ts +3 -1
  170. package/types/ngx-tethys-statistic.d.ts +23 -9
  171. package/types/ngx-tethys-stepper.d.ts +1 -1
  172. package/types/ngx-tethys-strength.d.ts +5 -0
  173. package/types/ngx-tethys-switch.d.ts +15 -4
  174. package/types/ngx-tethys-table.d.ts +24 -8
  175. package/types/ngx-tethys-tabs.d.ts +3 -3
  176. package/types/ngx-tethys-time-picker.d.ts +8 -2
  177. package/types/ngx-tethys-timeline.d.ts +13 -14
  178. package/types/ngx-tethys-tree-select.d.ts +8 -3
  179. package/types/ngx-tethys-typography.d.ts +0 -1
  180. /package/action/examples/{type/type.component.scss → color/color.component.scss} +0 -0
  181. /package/badge/examples/{type/type.component.scss → color/color.component.scss} +0 -0
@@ -6,7 +6,10 @@ import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
6
6
  import * as i1 from 'ngx-tethys/util';
7
7
  import * as i1$1 from '@angular/common';
8
8
 
9
- type ThySliderType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
9
+ declare const SLIDER_PRESET_COLORS: string[];
10
+ type ThySliderColor = (typeof SLIDER_PRESET_COLORS)[number];
11
+ /** @deprecated use ThySliderColor, will be removed in v23 */
12
+ type ThySliderType = ThySliderColor;
10
13
  type ThySliderSize = 'sm' | 'md' | 'lg';
11
14
  /**
12
15
  * 滑动输入条组件
@@ -45,14 +48,25 @@ declare class ThySlider extends TabIndexDisabledControlValueAccessorMixin implem
45
48
  */
46
49
  readonly thyStep: _angular_core.InputSignalWithTransform<number, unknown>;
47
50
  /**
48
- * 切换主题类型
49
- * @type primary | success | info | warning | danger
51
+ * 滑动条颜色,支持主题色或任意合法 CSS 颜色值
52
+ * @type primary | success | info | warning | danger | string
53
+ * @default success
50
54
  */
51
- readonly thyType: _angular_core.InputSignal<ThySliderType>;
55
+ readonly thyColor: _angular_core.InputSignal<string | undefined>;
52
56
  /**
53
- * 通过变量设置颜色
57
+ * 切换主题类型(已废弃,将在 v23 彻底删除),请使用 thyColor
58
+ * @deprecated please use thyColor, will be removed in v23
59
+ * @type primary | success | info | warning | danger
60
+ * @default success
54
61
  */
55
- readonly thyColor: _angular_core.InputSignal<string | undefined>;
62
+ readonly thyType: _angular_core.InputSignal<string>;
63
+ readonly color: _angular_core.Signal<string>;
64
+ protected readonly trackStyle: _angular_core.Signal<{
65
+ 'background-color': string;
66
+ } | null>;
67
+ protected readonly pointerStyle: _angular_core.Signal<{
68
+ 'border-color': string;
69
+ } | null>;
56
70
  /**
57
71
  * 滑动输入条大小
58
72
  * @type sm | md | lg
@@ -103,7 +117,7 @@ declare class ThySlider extends TabIndexDisabledControlValueAccessorMixin implem
103
117
  private ratioToValue;
104
118
  private getDecimals;
105
119
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThySlider, never>;
106
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThySlider, "thy-slider", never, { "thyVertical": { "alias": "thyVertical"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyMax": { "alias": "thyMax"; "required": false; "isSignal": true; }; "thyMin": { "alias": "thyMin"; "required": false; "isSignal": true; }; "thyStep": { "alias": "thyStep"; "required": false; "isSignal": true; }; "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; }, { "thyAfterChange": "thyAfterChange"; }, never, never, true, never>;
120
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThySlider, "thy-slider", never, { "thyVertical": { "alias": "thyVertical"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyMax": { "alias": "thyMax"; "required": false; "isSignal": true; }; "thyMin": { "alias": "thyMin"; "required": false; "isSignal": true; }; "thyStep": { "alias": "thyStep"; "required": false; "isSignal": true; }; "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; }, { "thyAfterChange": "thyAfterChange"; }, never, never, true, never>;
107
121
  static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
108
122
  }
109
123
 
@@ -114,4 +128,4 @@ declare class ThySliderModule {
114
128
  }
115
129
 
116
130
  export { ThySlider, ThySliderModule };
117
- export type { ThySliderSize, ThySliderType };
131
+ export type { ThySliderColor, ThySliderSize, ThySliderType };
@@ -12,6 +12,7 @@ declare class ThySpaceItemDirective {
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySpaceItemDirective, never>;
13
13
  static ɵdir: i0.ɵɵDirectiveDeclaration<ThySpaceItemDirective, "[thySpaceItem]", never, {}, {}, never, never, true, never>;
14
14
  }
15
+ type ThySpaceAlign = 'start' | 'end' | 'baseline' | 'center';
15
16
  /**
16
17
  * 间距组件
17
18
  * @name thy-space
@@ -32,7 +33,7 @@ declare class ThySpace {
32
33
  /**
33
34
  * 对齐方式,可选择 `start` | `end` | `baseline` | `center`
34
35
  */
35
- readonly thyAlign: i0.InputSignal<string | undefined>;
36
+ readonly thyAlign: i0.InputSignal<ThySpaceAlign | undefined>;
36
37
  readonly items: i0.Signal<readonly TemplateRef<any>[]>;
37
38
  constructor();
38
39
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySpace, never>;
@@ -46,3 +47,4 @@ declare class ThySpaceModule {
46
47
  }
47
48
 
48
49
  export { ThySpace, ThySpaceItemDirective, ThySpaceModule };
50
+ export type { ThySpaceAlign };
@@ -4,9 +4,15 @@ import * as i1 from '@angular/common';
4
4
  import * as i2 from 'ngx-tethys/shared';
5
5
  import * as i3 from 'ngx-tethys/icon';
6
6
 
7
- type ThyStatisticColorType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
8
- type ThyStatisticShape = 'card';
9
- type ThyStatisticSizes = 'default';
7
+ type ThyStatisticColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
8
+ /** @deprecated use ThyStatisticColor, will be removed in v23 */
9
+ type ThyStatisticColorType = ThyStatisticColor;
10
+ type ThyStatisticAppearance = 'card';
11
+ /** @deprecated use ThyStatisticAppearance, will be removed in v23 */
12
+ type ThyStatisticShape = ThyStatisticAppearance;
13
+ type ThyStatisticSize = 'default';
14
+ /** @deprecated use ThyStatisticSize, will be removed in v23 */
15
+ type ThyStatisticSizes = ThyStatisticSize;
10
16
  type ThyStatisticTitlePosition = 'top' | 'bottom';
11
17
  /**
12
18
  * 用于展示数据统计
@@ -46,19 +52,27 @@ declare class ThyStatistic {
46
52
  */
47
53
  readonly thyTitlePosition: _angular_core.InputSignal<ThyStatisticTitlePosition>;
48
54
  /**
49
- * @description 展示形状
55
+ * @description 展示外观
56
+ * @type ThyStatisticAppearance
57
+ * @default card
58
+ */
59
+ readonly thyAppearance: _angular_core.InputSignal<"card" | undefined>;
60
+ /**
61
+ * @description 展示形状(已废弃,将在 v23 彻底删除),请使用 thyAppearance
62
+ * @deprecated please use thyAppearance, will be removed in v23
50
63
  * @type ThyStatisticShape
51
64
  * @default card
52
65
  */
53
66
  readonly thyShape: _angular_core.InputSignal<"card" | undefined>;
67
+ readonly appearance: _angular_core.Signal<"card" | undefined>;
54
68
  /**
55
- * @description 主题颜色,可以使用提供的主题色,也可以自定义颜色。 `ThyStatisticColorType` 中包含 `primary` | `success` | `warning` | `danger` | `info`
56
- * @type ThyStatisticColorType | string
69
+ * @description 主题颜色,可以使用提供的主题色,也可以自定义颜色。 `ThyStatisticColor` 中包含 `primary` | `success` | `warning` | `danger` | `info`
70
+ * @type ThyStatisticColor | string
57
71
  */
58
72
  readonly thyColor: _angular_core.InputSignal<string | undefined>;
59
73
  /**
60
74
  * @description 前缀和展示数据字体大小
61
- * @type ThyStatisticSizes
75
+ * @type ThyStatisticSize
62
76
  * @default default
63
77
  */
64
78
  readonly thySize: _angular_core.InputSignal<"default">;
@@ -111,7 +125,7 @@ declare class ThyStatistic {
111
125
  private setClassesByType;
112
126
  private setColor;
113
127
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThyStatistic, never>;
114
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyStatistic, "thy-statistic", never, { "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyValueStyle": { "alias": "thyValueStyle"; "required": false; "isSignal": true; }; "thyPrefix": { "alias": "thyPrefix"; "required": false; "isSignal": true; }; "thySuffix": { "alias": "thySuffix"; "required": false; "isSignal": true; }; "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; "thyTitlePosition": { "alias": "thyTitlePosition"; "required": false; "isSignal": true; }; "thyShape": { "alias": "thyShape"; "required": false; "isSignal": true; }; "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyValueTemplate": { "alias": "thyValueTemplate"; "required": false; "isSignal": true; }; "thyTitleTemplate": { "alias": "thyTitleTemplate"; "required": false; "isSignal": true; }; "thyPrefixTemplate": { "alias": "thyPrefixTemplate"; "required": false; "isSignal": true; }; "thySuffixTemplate": { "alias": "thySuffixTemplate"; "required": false; "isSignal": true; }; }, {}, ["contentValueTemplate", "contentTitleTemplate", "contentPrefixTemplate", "contentSuffixTemplate"], never, true, never>;
128
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyStatistic, "thy-statistic", never, { "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyValueStyle": { "alias": "thyValueStyle"; "required": false; "isSignal": true; }; "thyPrefix": { "alias": "thyPrefix"; "required": false; "isSignal": true; }; "thySuffix": { "alias": "thySuffix"; "required": false; "isSignal": true; }; "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; "thyTitlePosition": { "alias": "thyTitlePosition"; "required": false; "isSignal": true; }; "thyAppearance": { "alias": "thyAppearance"; "required": false; "isSignal": true; }; "thyShape": { "alias": "thyShape"; "required": false; "isSignal": true; }; "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyValueTemplate": { "alias": "thyValueTemplate"; "required": false; "isSignal": true; }; "thyTitleTemplate": { "alias": "thyTitleTemplate"; "required": false; "isSignal": true; }; "thyPrefixTemplate": { "alias": "thyPrefixTemplate"; "required": false; "isSignal": true; }; "thySuffixTemplate": { "alias": "thySuffixTemplate"; "required": false; "isSignal": true; }; }, {}, ["contentValueTemplate", "contentTitleTemplate", "contentPrefixTemplate", "contentSuffixTemplate"], never, true, never>;
115
129
  }
116
130
 
117
131
  declare class ThyStatisticModule {
@@ -121,4 +135,4 @@ declare class ThyStatisticModule {
121
135
  }
122
136
 
123
137
  export { ThyStatistic, ThyStatisticModule };
124
- export type { ThyStatisticColorType, ThyStatisticShape, ThyStatisticSizes, ThyStatisticTitlePosition };
138
+ export type { ThyStatisticAppearance, ThyStatisticColor, ThyStatisticColorType, ThyStatisticShape, ThyStatisticSize, ThyStatisticSizes, ThyStatisticTitlePosition };
@@ -5,7 +5,7 @@ import * as i1 from '@angular/common';
5
5
  /**
6
6
  * 步骤条头部组件
7
7
  * @name thy-step-header
8
- * @order 25
8
+ * @private
9
9
  */
10
10
  declare class ThyStepHeader {
11
11
  readonly label: _angular_core.InputSignal<string | undefined>;
@@ -13,6 +13,7 @@ declare enum ThyStrengthEnum {
13
13
  /**
14
14
  * 程度展示组件
15
15
  * @name thy-strength
16
+ * @deprecated will be removed in v23
16
17
  * @order 10
17
18
  */
18
19
  declare class ThyStrength implements OnInit, ControlValueAccessor {
@@ -60,6 +61,7 @@ declare class ThyStrength implements OnInit, ControlValueAccessor {
60
61
  readonly lowKey: _angular_core.InputSignalWithTransform<string, string>;
61
62
  private _onChange;
62
63
  private _onTouched;
64
+ constructor();
63
65
  ngOnInit(): void;
64
66
  writeValue(value: ThyStrengthEnum): void;
65
67
  registerOnChange(fn: (value: any) => any): void;
@@ -68,6 +70,9 @@ declare class ThyStrength implements OnInit, ControlValueAccessor {
68
70
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyStrength, "thy-strength", never, { "titleKey": { "alias": "titleKey"; "required": false; "isSignal": true; }; "highestKey": { "alias": "highestKey"; "required": false; "isSignal": true; }; "highKey": { "alias": "highKey"; "required": false; "isSignal": true; }; "averageKey": { "alias": "averageKey"; "required": false; "isSignal": true; }; "lowKey": { "alias": "lowKey"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
69
71
  }
70
72
 
73
+ /**
74
+ * @deprecated ThyStrengthModule will be removed in v23
75
+ */
71
76
  declare class ThyStrengthModule {
72
77
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThyStrengthModule, never>;
73
78
  static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ThyStrengthModule, never, [typeof ThyStrength], [typeof ThyStrength]>;
@@ -4,6 +4,7 @@ import * as i1 from '@angular/common';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
  import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
6
6
 
7
+ type ThySwitchColor = 'primary' | 'info' | 'warning' | 'danger';
7
8
  /**
8
9
  * 开关组件
9
10
  * @name thy-switch
@@ -11,9 +12,18 @@ import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
11
12
  */
12
13
  declare class ThySwitch extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor {
13
14
  /**
14
- * 类型,目前分为: 'primary' |'info' | 'warning' | 'danger'
15
+ * 颜色
16
+ * @type primary | info | warning | danger
17
+ * @default primary
15
18
  */
16
- readonly thyType: _angular_core.InputSignal<string>;
19
+ readonly thyColor: _angular_core.InputSignal<ThySwitchColor | undefined>;
20
+ /**
21
+ * 类型(已废弃,将在 v23 彻底删除),请使用 thyColor
22
+ * @deprecated please use thyColor, will be removed in v23
23
+ * @type primary | info | warning | danger
24
+ * @default primary
25
+ */
26
+ readonly thyType: _angular_core.InputSignal<ThySwitchColor>;
17
27
  /**
18
28
  * 大小
19
29
  * @type xs | sm | md
@@ -36,7 +46,7 @@ declare class ThySwitch extends TabIndexDisabledControlValueAccessorMixin implem
36
46
  model: _angular_core.WritableSignal<boolean>;
37
47
  disabled: _angular_core.WritableSignal<boolean>;
38
48
  get thyDisabled(): boolean;
39
- readonly type: _angular_core.Signal<string>;
49
+ readonly color: _angular_core.Signal<ThySwitchColor>;
40
50
  readonly size: _angular_core.Signal<string>;
41
51
  readonly classNames: _angular_core.Signal<string[]>;
42
52
  readonly loadingCircle: _angular_core.Signal<{
@@ -57,7 +67,7 @@ declare class ThySwitch extends TabIndexDisabledControlValueAccessorMixin implem
57
67
  setDisabledState(isDisabled: boolean): void;
58
68
  toggle(event: Event): void;
59
69
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThySwitch, never>;
60
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThySwitch, "thy-switch", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "inputDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyLoading": { "alias": "thyLoading"; "required": false; "isSignal": true; }; }, { "thyChange": "thyChange"; }, never, never, true, never>;
70
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThySwitch, "thy-switch", never, { "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "inputDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyLoading": { "alias": "thyLoading"; "required": false; "isSignal": true; }; }, { "thyChange": "thyChange"; }, never, never, true, never>;
61
71
  }
62
72
 
63
73
  declare class ThySwitchModule {
@@ -67,3 +77,4 @@ declare class ThySwitchModule {
67
77
  }
68
78
 
69
79
  export { ThySwitch, ThySwitchModule };
80
+ export type { ThySwitchColor };
@@ -104,7 +104,9 @@ interface ThyTableSkeletonColumn {
104
104
  type: ThyTableColumnSkeletonType;
105
105
  }
106
106
 
107
- type ThyTableTheme = 'default' | 'bordered' | 'boxed';
107
+ type ThyTableAppearance = 'default' | 'bordered' | 'boxed';
108
+ /** @deprecated use ThyTableAppearance, will be removed in v23 */
109
+ type ThyTableTheme = ThyTableAppearance;
108
110
  type ThyTableSize = 'md' | 'sm' | 'xs' | 'lg' | 'xlg' | 'default';
109
111
  type ThyTableMode = 'list' | 'group' | 'tree';
110
112
 
@@ -264,7 +266,6 @@ declare class ThyTable implements OnInit, OnChanges, AfterViewInit, OnDestroy, I
264
266
  rowKey: string;
265
267
  groupBy: string;
266
268
  mode: ThyTableMode;
267
- theme: ThyTableTheme;
268
269
  className: string;
269
270
  size: ThyTableSize;
270
271
  rowClassName: string | Function;
@@ -315,11 +316,19 @@ declare class ThyTable implements OnInit, OnChanges, AfterViewInit, OnDestroy, I
315
316
  */
316
317
  set thyModel(value: SafeAny);
317
318
  /**
318
- * 表格的显示风格,`bordered` 时头部有背景色且分割线区别明显
319
+ * 表格的外观,`bordered` 时头部有背景色且分割线区别明显
319
320
  * @type default | bordered | boxed
320
321
  * @default default
321
322
  */
322
- set thyTheme(value: ThyTableTheme);
323
+ thyAppearance?: ThyTableAppearance;
324
+ /**
325
+ * 表格的显示风格(已废弃,将在 v23 彻底删除),请使用 thyAppearance
326
+ * @deprecated please use thyAppearance, will be removed in v23
327
+ * @type default | bordered | boxed
328
+ * @default default
329
+ */
330
+ thyTheme: ThyTableTheme;
331
+ get theme(): ThyTableAppearance;
323
332
  /**
324
333
  * 表格的大小
325
334
  * @type xs | sm | md | lg | xlg | default
@@ -523,7 +532,7 @@ declare class ThyTable implements OnInit, OnChanges, AfterViewInit, OnDestroy, I
523
532
  ngOnChanges(simpleChanges: SimpleChanges): void;
524
533
  ngOnDestroy(): void;
525
534
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyTable, never>;
526
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyTable, "thy-table", never, { "thyMode": { "alias": "thyMode"; "required": false; }; "thyGroupBy": { "alias": "thyGroupBy"; "required": false; }; "thyRowKey": { "alias": "thyRowKey"; "required": false; }; "thyGroups": { "alias": "thyGroups"; "required": false; }; "thyModel": { "alias": "thyModel"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyLayoutFixed": { "alias": "thyLayoutFixed"; "required": false; }; "thyHeaderFixed": { "alias": "thyHeaderFixed"; "required": false; }; "thyHeight": { "alias": "thyHeight"; "required": false; }; "thyClassName": { "alias": "thyClassName"; "required": false; }; "thyRowClassName": { "alias": "thyRowClassName"; "required": false; }; "thyLoadingDone": { "alias": "thyLoadingDone"; "required": false; }; "thyEmptyOptions": { "alias": "thyEmptyOptions"; "required": false; }; "thyDraggable": { "alias": "thyDraggable"; "required": false; }; "thyPageIndex": { "alias": "thyPageIndex"; "required": false; }; "thyPageSize": { "alias": "thyPageSize"; "required": false; }; "thyPageTotal": { "alias": "thyPageTotal"; "required": false; }; "thyWholeRowSelect": { "alias": "thyWholeRowSelect"; "required": false; }; "thyHeadless": { "alias": "thyHeadless"; "required": false; }; "showTotal": { "alias": "thyShowTotal"; "required": false; }; "showSizeChanger": { "alias": "thyShowSizeChanger"; "required": false; }; "pageSizeOptions": { "alias": "thyPageSizeOptions"; "required": false; }; "thyIndent": { "alias": "thyIndent"; "required": false; }; "thyChildrenKey": { "alias": "thyChildrenKey"; "required": false; }; "thyHoverDisplayOperation": { "alias": "thyHoverDisplayOperation"; "required": false; }; "thyDragDisabledPredicate": { "alias": "thyDragDisabledPredicate"; "required": false; }; "thyColumnSkeletonTypes": { "alias": "thyColumnSkeletonTypes"; "required": false; }; }, { "thyOnSwitchChange": "thyOnSwitchChange"; "thyOnPageChange": "thyOnPageChange"; "thyOnPageIndexChange": "thyOnPageIndexChange"; "thyOnPageSizeChange": "thyOnPageSizeChange"; "thyOnMultiSelectChange": "thyOnMultiSelectChange"; "thyOnRadioSelectChange": "thyOnRadioSelectChange"; "thyOnDraggableChange": "thyOnDraggableChange"; "thyOnRowClick": "thyOnRowClick"; "thySortChange": "thySortChange"; "thyOnRowContextMenu": "thyOnRowContextMenu"; }, ["emptyTemplate", "groupTemplate", "listOfColumnComponents"], ["*"], true, never>;
535
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyTable, "thy-table", never, { "thyMode": { "alias": "thyMode"; "required": false; }; "thyGroupBy": { "alias": "thyGroupBy"; "required": false; }; "thyRowKey": { "alias": "thyRowKey"; "required": false; }; "thyGroups": { "alias": "thyGroups"; "required": false; }; "thyModel": { "alias": "thyModel"; "required": false; }; "thyAppearance": { "alias": "thyAppearance"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyLayoutFixed": { "alias": "thyLayoutFixed"; "required": false; }; "thyHeaderFixed": { "alias": "thyHeaderFixed"; "required": false; }; "thyHeight": { "alias": "thyHeight"; "required": false; }; "thyClassName": { "alias": "thyClassName"; "required": false; }; "thyRowClassName": { "alias": "thyRowClassName"; "required": false; }; "thyLoadingDone": { "alias": "thyLoadingDone"; "required": false; }; "thyEmptyOptions": { "alias": "thyEmptyOptions"; "required": false; }; "thyDraggable": { "alias": "thyDraggable"; "required": false; }; "thyPageIndex": { "alias": "thyPageIndex"; "required": false; }; "thyPageSize": { "alias": "thyPageSize"; "required": false; }; "thyPageTotal": { "alias": "thyPageTotal"; "required": false; }; "thyWholeRowSelect": { "alias": "thyWholeRowSelect"; "required": false; }; "thyHeadless": { "alias": "thyHeadless"; "required": false; }; "showTotal": { "alias": "thyShowTotal"; "required": false; }; "showSizeChanger": { "alias": "thyShowSizeChanger"; "required": false; }; "pageSizeOptions": { "alias": "thyPageSizeOptions"; "required": false; }; "thyIndent": { "alias": "thyIndent"; "required": false; }; "thyChildrenKey": { "alias": "thyChildrenKey"; "required": false; }; "thyHoverDisplayOperation": { "alias": "thyHoverDisplayOperation"; "required": false; }; "thyDragDisabledPredicate": { "alias": "thyDragDisabledPredicate"; "required": false; }; "thyColumnSkeletonTypes": { "alias": "thyColumnSkeletonTypes"; "required": false; }; }, { "thyOnSwitchChange": "thyOnSwitchChange"; "thyOnPageChange": "thyOnPageChange"; "thyOnPageIndexChange": "thyOnPageIndexChange"; "thyOnPageSizeChange": "thyOnPageSizeChange"; "thyOnMultiSelectChange": "thyOnMultiSelectChange"; "thyOnRadioSelectChange": "thyOnRadioSelectChange"; "thyOnDraggableChange": "thyOnDraggableChange"; "thyOnRowClick": "thyOnRowClick"; "thySortChange": "thySortChange"; "thyOnRowContextMenu": "thyOnRowContextMenu"; }, ["emptyTemplate", "groupTemplate", "listOfColumnComponents"], ["*"], true, never>;
527
536
  static ngAcceptInputType_thyLayoutFixed: i1.ThyBooleanInput;
528
537
  static ngAcceptInputType_thyHeaderFixed: i1.ThyBooleanInput;
529
538
  static ngAcceptInputType_thyLoadingDone: i1.ThyBooleanInput;
@@ -603,10 +612,17 @@ declare class ThyTableSkeleton implements AfterViewInit {
603
612
  */
604
613
  thyHeadless: boolean;
605
614
  /**
606
- * 骨架屏的风格
615
+ * 骨架屏的外观
616
+ * @type default | bordered | boxed
617
+ */
618
+ thyAppearance?: ThyTableAppearance;
619
+ /**
620
+ * 骨架屏的风格(已废弃,将在 v23 彻底删除),请使用 thyAppearance
621
+ * @deprecated please use thyAppearance, will be removed in v23
607
622
  * @type default | bordered | boxed
608
623
  */
609
624
  thyTheme: ThyTableTheme;
625
+ get appearance(): ThyTableAppearance;
610
626
  /**
611
627
  * 骨架屏的大小
612
628
  * @type xs | sm | md | lg | xlg | default
@@ -640,7 +656,7 @@ declare class ThyTableSkeleton implements AfterViewInit {
640
656
  columns: ThyTableSkeletonColumn[];
641
657
  ngAfterViewInit(): void;
642
658
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyTableSkeleton, never>;
643
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyTableSkeleton, "thy-table-skeleton", never, { "thyBorderRadius": { "alias": "thyBorderRadius"; "required": false; }; "thyRowHeight": { "alias": "thyRowHeight"; "required": false; }; "thyAnimated": { "alias": "thyAnimated"; "required": false; }; "thyAnimatedInterval": { "alias": "thyAnimatedInterval"; "required": false; }; "thyPrimaryColor": { "alias": "thyPrimaryColor"; "required": false; }; "thySecondaryColor": { "alias": "thySecondaryColor"; "required": false; }; "thyRowCount": { "alias": "thyRowCount"; "required": false; }; "thyHeadless": { "alias": "thyHeadless"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyColumns": { "alias": "thyColumns"; "required": false; }; }, {}, never, never, true, never>;
659
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyTableSkeleton, "thy-table-skeleton", never, { "thyBorderRadius": { "alias": "thyBorderRadius"; "required": false; }; "thyRowHeight": { "alias": "thyRowHeight"; "required": false; }; "thyAnimated": { "alias": "thyAnimated"; "required": false; }; "thyAnimatedInterval": { "alias": "thyAnimatedInterval"; "required": false; }; "thyPrimaryColor": { "alias": "thyPrimaryColor"; "required": false; }; "thySecondaryColor": { "alias": "thySecondaryColor"; "required": false; }; "thyRowCount": { "alias": "thyRowCount"; "required": false; }; "thyHeadless": { "alias": "thyHeadless"; "required": false; }; "thyAppearance": { "alias": "thyAppearance"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyColumns": { "alias": "thyColumns"; "required": false; }; }, {}, never, never, true, never>;
644
660
  static ngAcceptInputType_thyAnimated: i1.ThyBooleanInput;
645
661
  static ngAcceptInputType_thyHeadless: i1.ThyBooleanInput;
646
662
  }
@@ -652,4 +668,4 @@ declare class ThyTableModule {
652
668
  }
653
669
 
654
670
  export { THY_TABLE_COLUMN_PARENT_COMPONENT, TableIsValidModelValuePipe, TableRowDragDisabledPipe, ThyFixedDirection, ThyTable, ThyTableColumnComponent, ThyTableColumnSkeletonType, ThyTableModule, ThyTableSkeleton, ThyTableSortDirection };
655
- export type { FixedDirection, IThyTableColumnParentComponent, PageChangedEvent, ThyMultiSelectEvent, ThyPage, ThyPageChangedEvent, ThyRadioSelectEvent, ThySwitchEvent, ThyTableColumn, ThyTableDraggableEvent, ThyTableEmptyOptions, ThyTableEvent, ThyTableMode, ThyTableRowEvent, ThyTableSize, ThyTableSkeletonColumn, ThyTableSortEvent, ThyTableTheme };
671
+ export type { FixedDirection, IThyTableColumnParentComponent, PageChangedEvent, ThyMultiSelectEvent, ThyPage, ThyPageChangedEvent, ThyRadioSelectEvent, ThySwitchEvent, ThyTableAppearance, ThyTableColumn, ThyTableDraggableEvent, ThyTableEmptyOptions, ThyTableEvent, ThyTableMode, ThyTableRowEvent, ThyTableSize, ThyTableSkeletonColumn, ThyTableSortEvent, ThyTableTheme };
@@ -39,7 +39,7 @@ type ThyTabActiveEvent = ThyActiveTabValue;
39
39
 
40
40
  type ThyTabsSize = 'lg' | 'md' | 'sm';
41
41
  type ThyTabsVariant = 'pulled' | 'tabs' | 'pills' | 'lite' | 'card';
42
- /** @deprecated use ThyTabsVariant */
42
+ /** @deprecated use ThyTabsVariant, will be removed in v23 */
43
43
  type ThyTabsType = ThyTabsVariant;
44
44
  type ThyTabsPosition = 'top' | 'left';
45
45
  /**
@@ -58,8 +58,8 @@ declare class ThyTabs implements OnInit {
58
58
  */
59
59
  readonly thyVariant: _angular_core.InputSignal<ThyTabsVariant | undefined>;
60
60
  /**
61
- * 标签类型(已废弃),请使用 thyVariant
62
- * @deprecated please use thyVariant
61
+ * 标签类型(已废弃,将在 v23 中移除),请使用 thyVariant
62
+ * @deprecated please use thyVariant, will be removed in v23
63
63
  * @type pulled | tabs | pills | lite | card
64
64
  * @default tabs
65
65
  */
@@ -10,7 +10,7 @@ import * as _angular_cdk_overlay from '@angular/cdk/overlay';
10
10
  import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
11
11
  import * as i7 from 'ngx-tethys/popover';
12
12
  import * as i8 from 'ngx-tethys/button';
13
- import { ThyFormControlSize, ThyPlacement, MiniStore } from 'ngx-tethys/core';
13
+ import { ThyFormControlSize, ThyFormControlAppearance, ThyPlacement, MiniStore } from 'ngx-tethys/core';
14
14
  import { ThyTimePickerLocale } from 'ngx-tethys/i18n';
15
15
 
16
16
  interface Time {
@@ -200,6 +200,12 @@ declare class ThyTimePicker implements OnInit, ControlValueAccessor {
200
200
  * @default md
201
201
  */
202
202
  readonly thySize: _angular_core.InputSignalWithTransform<ThyFormControlSize, ThyFormControlSize | null | undefined>;
203
+ /**
204
+ * 选择框外观。`outline`: 灰色边框、白色底,hover/focus 时蓝色边框;`subtle`: 无边框,hover/focus 时蓝色边框;`ghost`: 无边框,hover/focus 时也无边框
205
+ * @type outline | subtle | ghost
206
+ * @default outline
207
+ */
208
+ readonly thyAppearance: _angular_core.InputSignalWithTransform<ThyFormControlAppearance, ThyFormControlAppearance | null | undefined>;
203
209
  /**
204
210
  * 输入框提示文字
205
211
  * @type string
@@ -312,7 +318,7 @@ declare class ThyTimePicker implements OnInit, ControlValueAccessor {
312
318
  private validateCustomizeInput;
313
319
  private disabledUserOperation;
314
320
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThyTimePicker, never>;
315
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyTimePicker, "thy-time-picker", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; "isSignal": true; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; "isSignal": true; }; "thyFormat": { "alias": "thyFormat"; "required": false; "isSignal": true; }; "thyHourStep": { "alias": "thyHourStep"; "required": false; "isSignal": true; }; "thyMinuteStep": { "alias": "thyMinuteStep"; "required": false; "isSignal": true; }; "thySecondStep": { "alias": "thySecondStep"; "required": false; "isSignal": true; }; "thyPopupClass": { "alias": "thyPopupClass"; "required": false; "isSignal": true; }; "thyBackdrop": { "alias": "thyBackdrop"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyReadonly": { "alias": "thyReadonly"; "required": false; "isSignal": true; }; "thyShowSelectNow": { "alias": "thyShowSelectNow"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "showText": { "alias": "showText"; "required": false; "isSignal": true; }; }, { "thyDisabled": "thyDisabledChange"; "thyOpenChange": "thyOpenChange"; "showText": "showTextChange"; }, never, never, true, never>;
321
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyTimePicker, "thy-time-picker", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyAppearance": { "alias": "thyAppearance"; "required": false; "isSignal": true; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; "isSignal": true; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; "isSignal": true; }; "thyFormat": { "alias": "thyFormat"; "required": false; "isSignal": true; }; "thyHourStep": { "alias": "thyHourStep"; "required": false; "isSignal": true; }; "thyMinuteStep": { "alias": "thyMinuteStep"; "required": false; "isSignal": true; }; "thySecondStep": { "alias": "thySecondStep"; "required": false; "isSignal": true; }; "thyPopupClass": { "alias": "thyPopupClass"; "required": false; "isSignal": true; }; "thyBackdrop": { "alias": "thyBackdrop"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyReadonly": { "alias": "thyReadonly"; "required": false; "isSignal": true; }; "thyShowSelectNow": { "alias": "thyShowSelectNow"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "showText": { "alias": "showText"; "required": false; "isSignal": true; }; }, { "thyDisabled": "thyDisabledChange"; "thyOpenChange": "thyOpenChange"; "showText": "showTextChange"; }, never, never, true, never>;
316
322
  }
317
323
 
318
324
  /**
@@ -5,9 +5,13 @@ import * as i2 from 'ngx-tethys/shared';
5
5
  import * as i3 from 'ngx-tethys/icon';
6
6
  import { Subject } from 'rxjs';
7
7
 
8
- type ThyTimeMode = 'left' | 'right' | 'center';
8
+ type ThyTimelineMode = 'left' | 'right' | 'center';
9
+ /** @deprecated use ThyTimelineMode, will be removed in v23 */
10
+ type ThyTimeMode = ThyTimelineMode;
9
11
 
10
- type thyColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
12
+ type ThyTimelineColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
13
+ /** @deprecated use ThyTimelineColor, will be removed in v23 */
14
+ type thyColor = ThyTimelineColor;
11
15
  /**
12
16
  * 时间轴节点组件
13
17
  * @name thy-timeline-item
@@ -18,19 +22,19 @@ declare class ThyTimelineItem implements OnInit {
18
22
  readonly template: _angular_core.Signal<TemplateRef<void> | undefined>;
19
23
  isLast: boolean;
20
24
  isFirst: boolean;
21
- position?: ThyTimeMode;
25
+ position?: ThyTimelineMode;
22
26
  reverse: boolean;
23
27
  /**
24
28
  * 指定圆圈颜色
25
29
  * @type primary | success | warning | danger | info
26
30
  * @default primary
27
31
  */
28
- readonly thyColor: _angular_core.InputSignal<thyColor>;
32
+ readonly thyColor: _angular_core.InputSignal<ThyTimelineColor>;
29
33
  /**
30
34
  * 自定义节点位置
31
35
  * @type left | right | center
32
36
  */
33
- readonly thyPosition: _angular_core.InputSignal<ThyTimeMode | undefined>;
37
+ readonly thyPosition: _angular_core.InputSignal<ThyTimelineMode | undefined>;
34
38
  /**
35
39
  * 自定义时间轴点模板
36
40
  * @type TemplateRef
@@ -48,11 +52,6 @@ declare class ThyTimelineItem implements OnInit {
48
52
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyTimelineItem, "thy-timeline-item", ["ThyTimelineItem"], { "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; "thyPosition": { "alias": "thyPosition"; "required": false; "isSignal": true; }; }, {}, ["dot", "description"], ["*"], true, never>;
49
53
  }
50
54
 
51
- declare enum ThyTimeModes {
52
- left = "left",
53
- right = "right",
54
- center = "center"
55
- }
56
55
  type ThyTimeDirection = 'horizontal' | 'vertical';
57
56
  /**
58
57
  * 时间轴组件
@@ -68,11 +67,11 @@ declare class ThyTimeline implements OnInit {
68
67
  */
69
68
  readonly thyReverse: _angular_core.InputSignalWithTransform<boolean, unknown>;
70
69
  /**
71
- * 改变时间轴和内容的相对位置
70
+ * 改变时间轴和内容的相对位置,当 thyDirection 为 vertical 时生效
72
71
  * @type left | right | center
73
72
  * @default left
74
73
  */
75
- readonly thyMode: _angular_core.InputSignal<ThyTimeMode>;
74
+ readonly thyMode: _angular_core.InputSignal<ThyTimelineMode>;
76
75
  /**
77
76
  * 时间轴的方向
78
77
  * @type horizontal | vertical
@@ -105,5 +104,5 @@ declare class ThyTimelineService {
105
104
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThyTimelineService>;
106
105
  }
107
106
 
108
- export { ThyTimeModes, ThyTimeline, ThyTimelineItem, ThyTimelineModule, ThyTimelineService };
109
- export type { ThyTimeDirection, ThyTimeMode, thyColor };
107
+ export { ThyTimeline, ThyTimelineItem, ThyTimelineModule, ThyTimelineService };
108
+ export type { ThyTimeDirection, ThyTimeMode, ThyTimelineColor, ThyTimelineMode, thyColor };
@@ -9,7 +9,7 @@ import * as i4 from 'ngx-tethys/list';
9
9
  import * as i5 from 'ngx-tethys/icon';
10
10
  import * as i6 from 'ngx-tethys/empty';
11
11
  import * as i7 from 'ngx-tethys/shared';
12
- import { TabIndexDisabledControlValueAccessorMixin, ThyFormControlSize } from 'ngx-tethys/core';
12
+ import { TabIndexDisabledControlValueAccessorMixin, ThyFormControlSize, ThyFormControlAppearance } from 'ngx-tethys/core';
13
13
  import { Observable } from 'rxjs';
14
14
 
15
15
  interface ThyTreeSelectNode {
@@ -33,7 +33,6 @@ declare function filterTreeData(treeNodes: ThyTreeSelectNode[], searchText: stri
33
33
  declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor {
34
34
  elementRef: ElementRef<any>;
35
35
  private ngZone;
36
- private ref;
37
36
  private platformId;
38
37
  private thyClickDispatcher;
39
38
  private viewportRuler;
@@ -108,6 +107,12 @@ declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorMixin im
108
107
  * @default md
109
108
  */
110
109
  readonly thySize: _angular_core.InputSignalWithTransform<ThyFormControlSize, ThyFormControlSize | null | undefined>;
110
+ /**
111
+ * 选择框外观。`outline`: 灰色边框、白色底,hover/focus 时蓝色边框;`subtle`: 无边框,hover/focus 时蓝色边框;`ghost`: 无边框,hover/focus 时也无边框
112
+ * @type outline | subtle | ghost
113
+ * @default outline
114
+ */
115
+ readonly thyAppearance: _angular_core.InputSignalWithTransform<ThyFormControlAppearance, ThyFormControlAppearance | null | undefined>;
111
116
  /**
112
117
  * 改变空选项的情况下的提示文本
113
118
  * @type string
@@ -197,7 +202,7 @@ declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorMixin im
197
202
  selectNode(node: ThyTreeSelectNode): void;
198
203
  getNodeChildren(node: ThyTreeSelectNode): Observable<ThyTreeSelectNode[]> | undefined;
199
204
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThyTreeSelect, never>;
200
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyTreeSelect, "thy-tree-select", never, { "thyTreeNodes": { "alias": "thyTreeNodes"; "required": false; "isSignal": true; }; "thyVirtualScroll": { "alias": "thyVirtualScroll"; "required": false; "isSignal": true; }; "thyPrimaryKey": { "alias": "thyPrimaryKey"; "required": false; "isSignal": true; }; "thyShowKey": { "alias": "thyShowKey"; "required": false; "isSignal": true; }; "thyChildCountKey": { "alias": "thyChildCountKey"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; "isSignal": true; }; "thyDisable": { "alias": "thyDisable"; "required": false; "isSignal": true; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyEmptyOptionsText": { "alias": "thyEmptyOptionsText"; "required": false; "isSignal": true; }; "thyHiddenNodeKey": { "alias": "thyHiddenNodeKey"; "required": false; "isSignal": true; }; "thyDisableNodeKey": { "alias": "thyDisableNodeKey"; "required": false; "isSignal": true; }; "thyAsyncNode": { "alias": "thyAsyncNode"; "required": false; "isSignal": true; }; "thyShowWholeName": { "alias": "thyShowWholeName"; "required": false; "isSignal": true; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; "isSignal": true; }; "thyServerSearch": { "alias": "thyServerSearch"; "required": false; "isSignal": true; }; "thyLoadState": { "alias": "thyLoadState"; "required": false; "isSignal": true; }; "thyHiddenNodeFn": { "alias": "thyHiddenNodeFn"; "required": false; }; "thyDisableNodeFn": { "alias": "thyDisableNodeFn"; "required": false; }; "thyGetNodeChildren": { "alias": "thyGetNodeChildren"; "required": false; }; }, { "thyOnSearch": "thyOnSearch"; "thyExpandStatusChange": "thyExpandStatusChange"; }, ["thyTreeSelectTriggerDisplayRef", "treeNodeTemplateRef"], never, true, never>;
205
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThyTreeSelect, "thy-tree-select", never, { "thyTreeNodes": { "alias": "thyTreeNodes"; "required": false; "isSignal": true; }; "thyVirtualScroll": { "alias": "thyVirtualScroll"; "required": false; "isSignal": true; }; "thyPrimaryKey": { "alias": "thyPrimaryKey"; "required": false; "isSignal": true; }; "thyShowKey": { "alias": "thyShowKey"; "required": false; "isSignal": true; }; "thyChildCountKey": { "alias": "thyChildCountKey"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; "isSignal": true; }; "thyDisable": { "alias": "thyDisable"; "required": false; "isSignal": true; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyAppearance": { "alias": "thyAppearance"; "required": false; "isSignal": true; }; "thyEmptyOptionsText": { "alias": "thyEmptyOptionsText"; "required": false; "isSignal": true; }; "thyHiddenNodeKey": { "alias": "thyHiddenNodeKey"; "required": false; "isSignal": true; }; "thyDisableNodeKey": { "alias": "thyDisableNodeKey"; "required": false; "isSignal": true; }; "thyAsyncNode": { "alias": "thyAsyncNode"; "required": false; "isSignal": true; }; "thyShowWholeName": { "alias": "thyShowWholeName"; "required": false; "isSignal": true; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; "isSignal": true; }; "thyServerSearch": { "alias": "thyServerSearch"; "required": false; "isSignal": true; }; "thyLoadState": { "alias": "thyLoadState"; "required": false; "isSignal": true; }; "thyHiddenNodeFn": { "alias": "thyHiddenNodeFn"; "required": false; }; "thyDisableNodeFn": { "alias": "thyDisableNodeFn"; "required": false; }; "thyGetNodeChildren": { "alias": "thyGetNodeChildren"; "required": false; }; }, { "thyOnSearch": "thyOnSearch"; "thyExpandStatusChange": "thyExpandStatusChange"; }, ["thyTreeSelectTriggerDisplayRef", "treeNodeTemplateRef"], never, true, never>;
201
206
  }
202
207
  /**
203
208
  * @private
@@ -45,7 +45,6 @@ declare class ThyTextColorDirective implements OnInit {
45
45
  * @order 30
46
46
  */
47
47
  declare class ThyBackgroundColorDirective {
48
- private elementRef;
49
48
  private bgColor;
50
49
  private hostRenderer;
51
50
  /**