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

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 (110) hide show
  1. package/CHANGELOG.md +36 -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/button/button-group.component.d.ts +5 -12
  7. package/button/button-icon.component.d.ts +14 -28
  8. package/button/button.component.d.ts +17 -27
  9. package/date-picker/styles/calendar.scss +1 -1
  10. package/date-picker/styles/range-picker.scss +1 -0
  11. package/date-picker/styles/week-picker.scss +1 -0
  12. package/dropdown/dropdown-active.directive.d.ts +4 -5
  13. package/dropdown/dropdown-menu-item.directive.d.ts +7 -15
  14. package/dropdown/dropdown-menu.component.d.ts +6 -13
  15. package/dropdown/dropdown-submenu.component.d.ts +2 -4
  16. package/dropdown/dropdown.directive.d.ts +14 -25
  17. package/fesm2022/ngx-tethys-action.mjs +15 -16
  18. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  19. package/fesm2022/ngx-tethys-affix.mjs +14 -18
  20. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  21. package/fesm2022/ngx-tethys-arrow-switcher.mjs +15 -3
  22. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  23. package/fesm2022/ngx-tethys-button.mjs +225 -322
  24. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  25. package/fesm2022/ngx-tethys-carousel.mjs +1 -0
  26. package/fesm2022/ngx-tethys-carousel.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-date-picker.mjs +6 -6
  30. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  31. package/fesm2022/ngx-tethys-dropdown.mjs +155 -203
  32. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  33. package/fesm2022/ngx-tethys-flexible-text.mjs +67 -86
  34. package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
  35. package/fesm2022/ngx-tethys-grid.mjs +10 -15
  36. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  37. package/fesm2022/ngx-tethys-icon.mjs +44 -59
  38. package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
  39. package/fesm2022/ngx-tethys-image.mjs +40 -36
  40. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  41. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  42. package/fesm2022/ngx-tethys-progress.mjs +7 -11
  43. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  44. package/fesm2022/ngx-tethys-property.mjs +8 -19
  45. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  46. package/fesm2022/ngx-tethys-radio.mjs +42 -54
  47. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  48. package/fesm2022/ngx-tethys-rate.mjs +115 -157
  49. package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
  50. package/fesm2022/ngx-tethys-resizable.mjs +111 -157
  51. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  52. package/fesm2022/ngx-tethys-segment.mjs +84 -103
  53. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  54. package/fesm2022/ngx-tethys-shared.mjs +2 -1
  55. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  56. package/fesm2022/ngx-tethys-slide.mjs +37 -56
  57. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  58. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  59. package/fesm2022/ngx-tethys-space.mjs +2 -8
  60. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-strength.mjs +52 -66
  62. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-transfer.mjs +98 -119
  64. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  65. package/fesm2022/ngx-tethys-tree-select.mjs +2 -4
  66. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  67. package/fesm2022/ngx-tethys-tree.mjs +281 -401
  68. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys-upload.mjs +2 -2
  70. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  71. package/fesm2022/ngx-tethys-vote.mjs +53 -99
  72. package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
  73. package/fesm2022/ngx-tethys.mjs +1 -1
  74. package/fesm2022/ngx-tethys.mjs.map +1 -1
  75. package/flexible-text/flexible-text.component.d.ts +9 -15
  76. package/grid/flex.d.ts +1 -3
  77. package/grid/thy-row.directive.d.ts +1 -4
  78. package/icon/icon.component.d.ts +10 -18
  79. package/image/image.directive.d.ts +10 -13
  80. package/image/image.token.d.ts +5 -5
  81. package/input-number/input-number.component.d.ts +1 -1
  82. package/package.json +1 -1
  83. package/progress/progress-circle.component.d.ts +3 -5
  84. package/progress/progress.component.d.ts +2 -4
  85. package/property/properties.component.d.ts +0 -2
  86. package/property/property-item.component.d.ts +3 -10
  87. package/radio/group/radio-group.component.d.ts +5 -9
  88. package/rate/rate-item.component.d.ts +8 -11
  89. package/rate/rate.component.d.ts +18 -29
  90. package/resizable/resizable.directive.d.ts +18 -31
  91. package/resizable/resize-handle.component.d.ts +6 -7
  92. package/resizable/resize-handles.component.d.ts +5 -9
  93. package/schematics/version.d.ts +1 -1
  94. package/schematics/version.js +1 -1
  95. package/segment/segment-item.component.d.ts +9 -15
  96. package/segment/segment.component.d.ts +11 -15
  97. package/segment/segment.token.d.ts +4 -3
  98. package/slide/slide-body/slide-body-section.component.d.ts +2 -6
  99. package/slide/slide-header/slide-header.component.d.ts +6 -9
  100. package/space/space.component.d.ts +5 -11
  101. package/strength/strength.component.d.ts +8 -13
  102. package/transfer/transfer-list.component.d.ts +15 -15
  103. package/transfer/transfer.component.d.ts +20 -23
  104. package/tree/tree-abstract.d.ts +5 -5
  105. package/tree/tree-node.component.d.ts +24 -37
  106. package/tree/tree.class.d.ts +4 -4
  107. package/tree/tree.component.d.ts +47 -75
  108. package/tree/tree.service.d.ts +3 -4
  109. package/tree-select/tree-select.component.d.ts +2 -2
  110. package/vote/vote.component.d.ts +13 -33
package/CHANGELOG.md CHANGED
@@ -2,6 +2,42 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ # [19.1.0-next.2](https://github.com/atinc/ngx-tethys/compare/19.1.0-next.1...19.1.0-next.2) (2025-07-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **datePicker:** adjust ranger-picker date-panel-flexible style #TINFR-2562 ([#3491](https://github.com/atinc/ngx-tethys/issues/3491)) ([171b556](https://github.com/atinc/ngx-tethys/commit/171b556f26bf705230207526abf9d459faa4501f)), closes [#TINFR-2562](https://github.com/atinc/ngx-tethys/issues/TINFR-2562)
11
+ * **upload:** add subfix as mime to compatible with browser #TINFR-2565 ([#3492](https://github.com/atinc/ngx-tethys/issues/3492)) ([da9b2c1](https://github.com/atinc/ngx-tethys/commit/da9b2c12da00d63d3b7a30589ad4315fb32a8084)), closes [#TINFR-2565](https://github.com/atinc/ngx-tethys/issues/TINFR-2565)
12
+
13
+
14
+ ### Features
15
+
16
+ * **arrow-switcher:** add setPreviousTooltip and setNextTooltip #TINFR-2390 ([ecb0654](https://github.com/atinc/ngx-tethys/commit/ecb0654fd23439b237d29f2741211a3c6ea22246)), closes [#TINFR-2390](https://github.com/atinc/ngx-tethys/issues/TINFR-2390)
17
+
18
+
19
+
20
+ # [19.1.0-next.1](https://github.com/atinc/ngx-tethys/compare/19.1.0-next.0...19.1.0-next.1) (2025-07-14)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **carousel:** incorrect active state of Indicators when switching slides. ([#3473](https://github.com/atinc/ngx-tethys/issues/3473)) ([2e32978](https://github.com/atinc/ngx-tethys/commit/2e32978b479cd473b75147475b0297fbcb8eb783))
26
+ * **date-picker:** fix date-carousel pick month the end time sometimes is not correctly #TINFR-2309 ([#3476](https://github.com/atinc/ngx-tethys/issues/3476)) ([5dbc857](https://github.com/atinc/ngx-tethys/commit/5dbc8574a58ff81c579908e1af9d669dfd912086)), closes [#TINFR-2309](https://github.com/atinc/ngx-tethys/issues/TINFR-2309)
27
+ * **datePicker:** fix week mode today style error #TINFR-2359 ([#3485](https://github.com/atinc/ngx-tethys/issues/3485)) ([fba5a50](https://github.com/atinc/ngx-tethys/commit/fba5a5082799faccb25df116aadc5e232ba2685c)), closes [#TINFR-2359](https://github.com/atinc/ngx-tethys/issues/TINFR-2359)
28
+ * **shared:** fix select control search style error #TINFR-2321 ([#3479](https://github.com/atinc/ngx-tethys/issues/3479)) ([83df8a2](https://github.com/atinc/ngx-tethys/commit/83df8a24a572cde54599b1735fd76a1e0a528e6c)), closes [#TINFR-2321](https://github.com/atinc/ngx-tethys/issues/TINFR-2321)
29
+
30
+
31
+ ### Features
32
+
33
+ * **action:** update action and affix signal ([#3438](https://github.com/atinc/ngx-tethys/issues/3438)) ([7b15232](https://github.com/atinc/ngx-tethys/commit/7b15232fce159016729c14675709af33936bc501))
34
+ * **dropdown:** migrate to signal for dropdown [@wumeimin](https://github.com/wumeimin) [@luxiaobei](https://github.com/luxiaobei) ([#3429](https://github.com/atinc/ngx-tethys/issues/3429)) ([de68059](https://github.com/atinc/ngx-tethys/commit/de680590d4d6513738d1c98b5e509ea9c97e10f9))
35
+ * **resizable:** migration signal for resizable #TINFR-1764 [@wumeimin](https://github.com/wumeimin) ([#3441](https://github.com/atinc/ngx-tethys/issues/3441)) ([a0833aa](https://github.com/atinc/ngx-tethys/commit/a0833aa634520e6b655f889d65f21c3b256e6e8f)), closes [#TINFR-1764](https://github.com/atinc/ngx-tethys/issues/TINFR-1764)
36
+ * **segment:** migration signal for segment #TINFR-1766 ([#3452](https://github.com/atinc/ngx-tethys/issues/3452)) ([f464004](https://github.com/atinc/ngx-tethys/commit/f46400484627d5f3f84831889e568650224d9d51)), closes [#TINFR-1766](https://github.com/atinc/ngx-tethys/issues/TINFR-1766)
37
+ * **strength:** migrate to signal for strength ([#3469](https://github.com/atinc/ngx-tethys/issues/3469)) ([9502c29](https://github.com/atinc/ngx-tethys/commit/9502c29f8de93ea058d3f34c91af09824c67b205))
38
+
39
+
40
+
5
41
  # [19.1.0-next.0](https://github.com/atinc/ngx-tethys/compare/19.0.12...19.1.0-next.0) (2025-05-23)
6
42
 
7
43
 
package/README.md CHANGED
@@ -73,4 +73,3 @@ running with the flag `--dry-run` allows you to see what commands would be run,
73
73
 
74
74
  1. Don't use `barrel index` (should directly import specify component in module, don't import `index.ts`)
75
75
  1. Should exports component module in `public-api.ts`
76
-
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, OnChanges, OnDestroy, OnInit, Signal, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, OnInit, Signal } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export type ThyActionType = 'primary' | 'success' | 'danger' | 'warning';
4
4
  export type ThyActionFeedback = 'success' | 'error';
@@ -11,22 +11,21 @@ export interface ThyActionFeedbackOptions {
11
11
  * 立即操作组件
12
12
  * @name thy-action,[thyAction]
13
13
  */
14
- export declare class ThyAction implements OnInit, AfterViewInit, OnChanges, OnDestroy {
14
+ export declare class ThyAction implements OnInit, AfterViewInit, OnDestroy {
15
15
  private elementRef;
16
16
  private renderer;
17
17
  private cdr;
18
- icon: Signal<string>;
18
+ readonly icon: Signal<string>;
19
19
  feedback: ThyActionFeedback;
20
20
  feedbackOptions: ThyActionFeedbackOptions;
21
- active: Signal<boolean>;
22
- private type;
21
+ readonly active: Signal<boolean>;
23
22
  private hostRenderer;
24
23
  private feedbackTimer;
25
24
  /**
26
25
  * 操作图标的类型
27
26
  * @type primary | success | danger | warning
28
27
  */
29
- readonly thyType: import("@angular/core").InputSignal<ThyActionType>;
28
+ readonly thyType: import("@angular/core").InputSignalWithTransform<ThyActionType, ThyActionType>;
30
29
  /**
31
30
  * 操作图标,支持传参同时也支持在投影中写 thy-icon 组件
32
31
  */
@@ -55,10 +54,10 @@ export declare class ThyAction implements OnInit, AfterViewInit, OnChanges, OnDe
55
54
  /**
56
55
  * 是否处于禁用状态
57
56
  */
58
- readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, string | number | boolean>;
57
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
59
58
  ngOnInit(): void;
60
59
  ngAfterViewInit(): void;
61
- ngOnChanges(changes: SimpleChanges): void;
60
+ constructor();
62
61
  setMarginRight(marginRight: string): void;
63
62
  /**
64
63
  * 触发成功反馈操作
@@ -1,12 +1,12 @@
1
1
  import { SimpleRect } from 'ngx-tethys/util';
2
- import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { AfterViewInit, OnDestroy } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * 固钉组件
6
6
  * @name thy-affix
7
7
  * @order 10
8
8
  */
9
- export declare class ThyAffix implements AfterViewInit, OnChanges, OnDestroy {
9
+ export declare class ThyAffix implements AfterViewInit, OnDestroy {
10
10
  private scrollService;
11
11
  private ngZone;
12
12
  private platform;
@@ -38,9 +38,8 @@ export declare class ThyAffix implements AfterViewInit, OnChanges, OnDestroy {
38
38
  private destroy$;
39
39
  private timeout?;
40
40
  private document;
41
- private get container();
41
+ private readonly container;
42
42
  constructor();
43
- ngOnChanges(changes: SimpleChanges): void;
44
43
  ngAfterViewInit(): void;
45
44
  ngOnDestroy(): void;
46
45
  private registerListeners;
@@ -44,11 +44,15 @@ export declare class ThyArrowSwitcher implements ControlValueAccessor {
44
44
  */
45
45
  readonly thySize: import("@angular/core").InputSignal<string>;
46
46
  readonly isSmallSize: Signal<boolean>;
47
- index: WritableSignal<number>;
47
+ protected readonly index: WritableSignal<number>;
48
48
  readonly previousDisabled: Signal<boolean>;
49
49
  readonly nextDisabled: Signal<boolean>;
50
50
  private onModelChange;
51
51
  private onModelTouched;
52
+ protected readonly previousTooltip: WritableSignal<string>;
53
+ protected readonly nextTooltip: WritableSignal<string>;
54
+ setPreviousTooltip(value: string): void;
55
+ setNextTooltip(value: string): void;
52
56
  writeValue(value: number): void;
53
57
  registerOnChange(fn: () => void): void;
54
58
  registerOnTouched(fn: () => void): void;
@@ -1,4 +1,3 @@
1
- import { OnInit } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  export type ButtonGroupSize = 'sm' | 'lg' | 'xs' | 'md';
4
3
  export type ButtonGroupType = 'outline-primary' | 'outline-default';
@@ -7,33 +6,27 @@ export type ButtonGroupType = 'outline-primary' | 'outline-default';
7
6
  * @name thy-button-group
8
7
  * @order 30
9
8
  */
10
- export declare class ThyButtonGroup implements OnInit {
11
- private initialized;
12
- private type;
13
- private size;
9
+ export declare class ThyButtonGroup {
14
10
  private hostRenderer;
15
11
  /**
16
12
  * 大小
17
13
  * @type xs | sm | md | lg
18
14
  * @default md
19
15
  */
20
- set thySize(size: ButtonGroupSize);
16
+ readonly thySize: import("@angular/core").InputSignal<ButtonGroupSize>;
21
17
  /**
22
18
  * 类型
23
19
  * @type outline-default | outline-primary
24
20
  * @default outline-default
25
21
  */
26
- set thyType(type: ButtonGroupType);
22
+ readonly thyType: import("@angular/core").InputSignal<ButtonGroupType>;
27
23
  /**
28
24
  * 是否需要最小宽度,默认按钮最小宽度为80px
29
25
  * @default false
30
26
  */
31
- set thyClearMinWidth(value: string);
32
- _isButtonGroup: boolean;
33
- thyClearMinWidthClassName: boolean;
27
+ readonly thyClearMinWidth: import("@angular/core").InputSignalWithTransform<boolean, any>;
34
28
  constructor();
35
- ngOnInit(): void;
36
29
  private setClasses;
37
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyButtonGroup, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyButtonGroup, "thy-button-group", never, { "thySize": { "alias": "thySize"; "required": false; }; "thyType": { "alias": "thyType"; "required": false; }; "thyClearMinWidth": { "alias": "thyClearMinWidth"; "required": false; }; }, {}, never, ["*"], true, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyButtonGroup, "thy-button-group", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thyClearMinWidth": { "alias": "thyClearMinWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
39
32
  }
@@ -1,65 +1,51 @@
1
- import { OnInit } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
- import * as i1 from "ngx-tethys/util";
4
2
  export type ThyButtonIconShape = '' | 'circle-dashed' | 'circle-solid' | 'circle-thick-dashed' | 'circle-thick-solid' | 'self-icon';
5
3
  /**
6
4
  * 操作按钮图标,支持`thy-button-icon`组件和`thyButtonIcon`指令两种形式
7
5
  * @name thy-button-icon,[thy-button-icon],[thyButtonIcon]
8
6
  * @order 20
9
7
  */
10
- export declare class ThyButtonIcon implements OnInit {
8
+ export declare class ThyButtonIcon {
11
9
  /**
12
10
  * 大小
13
11
  * @type xs | sm | md | lg
14
12
  * @default 36px
15
13
  */
16
- set thySize(size: string);
14
+ readonly thySize: import("@angular/core").InputSignal<string>;
17
15
  /**
18
16
  * 图标, 和`thyButtonIcon`相同,当使用`thy-button-icon`时,只能使用 thyIcon 设置图标
19
17
  */
20
- set thyIcon(icon: string);
18
+ readonly thyIcon: import("@angular/core").InputSignal<string>;
21
19
  /**
22
20
  * 图标按钮的图标
23
21
  */
24
- set thyButtonIcon(icon: string);
22
+ readonly thyButtonIcon: import("@angular/core").InputSignal<string>;
25
23
  /**
26
24
  * 展示的形状,默认只显示字体图标图标,circle-dashed, circle-solid 展示成虚线,实线边框圆形图标, circle-thick-dashed, circle-thick-solid 边框加粗
27
25
  */
28
- set thyShape(value: ThyButtonIconShape);
26
+ readonly thyShape: import("@angular/core").InputSignal<ThyButtonIconShape>;
29
27
  /**
30
28
  * 亮色,颜色更浅,适合左侧导航顶部的按钮
31
29
  * @default false
32
30
  */
33
- set thyLight(value: boolean);
31
+ readonly thyLight: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
34
32
  /**
35
33
  * 设置为选中状态
36
34
  * @default false
37
35
  */
38
- set thyActive(value: boolean);
36
+ readonly thyActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
39
37
  /**
40
38
  * 按钮展示类型,默认图标移上去显示主色, danger-weak 鼠标移上去显示 danger 红色
41
39
  */
42
- set thyTheme(value: string);
40
+ readonly thyTheme: import("@angular/core").InputSignal<string>;
41
+ readonly thyColor: import("@angular/core").InputSignal<string>;
43
42
  constructor();
44
- private initialized;
45
- private shape;
46
- private size;
47
43
  private hostRenderer;
48
- iconPrefix: string;
49
- iconClasses: string[];
50
- icon: string;
51
- theme: string;
52
- svgIconName: string;
53
- _isBtn: boolean;
54
- _isBtnIcon: boolean;
55
- _isLighted: boolean;
56
- _isActive: boolean;
57
- thyColor: string;
58
- private setIconClass;
44
+ private icon;
45
+ private isWtfIcon;
46
+ protected svgIconName: import("@angular/core").Signal<string>;
47
+ protected iconClasses: import("@angular/core").Signal<string[]>;
59
48
  private setClasses;
60
- ngOnInit(): void;
61
49
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyButtonIcon, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyButtonIcon, "thy-button-icon,[thy-button-icon],[thyButtonIcon]", never, { "thySize": { "alias": "thySize"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; "thyButtonIcon": { "alias": "thyButtonIcon"; "required": false; }; "thyShape": { "alias": "thyShape"; "required": false; }; "thyLight": { "alias": "thyLight"; "required": false; }; "thyActive": { "alias": "thyActive"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thyColor": { "alias": "thyColor"; "required": false; }; }, {}, never, ["*"], true, never>;
63
- static ngAcceptInputType_thyLight: i1.ThyBooleanInput;
64
- static ngAcceptInputType_thyActive: i1.ThyBooleanInput;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyButtonIcon, "thy-button-icon,[thy-button-icon],[thyButtonIcon]", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; "thyButtonIcon": { "alias": "thyButtonIcon"; "required": false; "isSignal": true; }; "thyShape": { "alias": "thyShape"; "required": false; "isSignal": true; }; "thyLight": { "alias": "thyLight"; "required": false; "isSignal": true; }; "thyActive": { "alias": "thyActive"; "required": false; "isSignal": true; }; "thyTheme": { "alias": "thyTheme"; "required": false; "isSignal": true; }; "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
65
51
  }
@@ -1,25 +1,14 @@
1
- import { OnInit, AfterViewInit } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
- import * as i1 from "ngx-tethys/util";
4
2
  export type ThyButtonType = 'primary' | 'secondary' | 'info' | 'outline-primary' | 'outline-default' | 'danger' | 'link' | 'link-secondary' | 'warning' | 'outline-warning' | 'success' | 'outline-success' | 'outline-info' | 'outline-danger' | 'link-danger-weak' | 'link-danger' | 'link-success';
5
3
  /**
6
4
  * 操作按钮,支持组件`thy-button`和`thyButton`指令两种形式
7
5
  * @name thy-button,[thy-button],[thyButton]
8
6
  * @order 10
9
7
  */
10
- export declare class ThyButton implements OnInit, AfterViewInit {
8
+ export declare class ThyButton {
11
9
  private elementRef;
12
10
  private renderer;
13
- private _initialized;
14
11
  private _originalText;
15
- private _type;
16
- private _size;
17
- private _icon;
18
- private _loading;
19
- private _loadingText;
20
- _isRadiusSquare: boolean;
21
- iconClass: string[];
22
- svgIconName: string;
23
12
  private get nativeElement();
24
13
  private hostRenderer;
25
14
  /**
@@ -27,45 +16,46 @@ export declare class ThyButton implements OnInit, AfterViewInit {
27
16
  * @type primary | info | warning | danger | success
28
17
  * @default primary
29
18
  */
30
- set thyButton(value: ThyButtonType);
19
+ readonly thyButton: import("@angular/core").InputSignal<ThyButtonType>;
31
20
  /**
32
21
  * 和`thyButton`参数一样,一般使用`thyButton`,为了减少参数输入, 当通过`thy-button`使用时,只能使用该参数控制类型
33
22
  * @default primary
34
23
  */
35
- set thyType(value: ThyButtonType);
24
+ readonly thyType: import("@angular/core").InputSignal<ThyButtonType>;
36
25
  /**
37
26
  * 加载状态
38
27
  * @default false
39
28
  */
40
- set thyLoading(value: boolean);
29
+ readonly thyLoading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
41
30
  /**
42
31
  * 加载状态时显示的文案
43
32
  */
44
- set thyLoadingText(value: string);
33
+ readonly thyLoadingText: import("@angular/core").InputSignal<string>;
45
34
  /**
46
35
  * 按钮大小
47
36
  * @type xs | sm | md | default | lg
48
37
  * @default default
49
38
  */
50
- set thySize(size: string);
39
+ readonly thySize: import("@angular/core").InputSignal<string>;
51
40
  /**
52
41
  * 按钮中显示的图标,支持SVG图标名称,比如`angle-left`,也支持传之前的 wtf 字体,比如: wtf-plus
53
42
  */
54
- set thyIcon(icon: string);
43
+ readonly thyIcon: import("@angular/core").InputSignal<string>;
55
44
  /**
56
45
  * 按钮整块展示
57
46
  * @default false
58
47
  */
59
- thyBlock: boolean;
60
- private setBtnType;
61
- private setLoadingText;
62
- private setLoadingStatus;
48
+ readonly thyBlock: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
49
+ private isWtfIcon;
50
+ protected svgIconName: import("@angular/core").Signal<string>;
51
+ protected iconClass: import("@angular/core").Signal<string[]>;
52
+ private buttonType;
53
+ protected isRadiusSquare: import("@angular/core").Signal<boolean>;
54
+ protected type: import("@angular/core").Signal<string>;
55
+ private setButtonText;
63
56
  private updateClasses;
64
- ngOnInit(): void;
65
- ngAfterViewInit(): void;
57
+ constructor();
66
58
  private wrapSpanForText;
67
59
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyButton, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyButton, "thy-button,[thy-button],[thyButton]", never, { "thyButton": { "alias": "thyButton"; "required": false; }; "thyType": { "alias": "thyType"; "required": false; }; "thyLoading": { "alias": "thyLoading"; "required": false; }; "thyLoadingText": { "alias": "thyLoadingText"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; "thyBlock": { "alias": "thyBlock"; "required": false; }; }, {}, never, ["*"], true, never>;
69
- static ngAcceptInputType_thyLoading: i1.ThyBooleanInput;
70
- static ngAcceptInputType_thyBlock: i1.ThyBooleanInput;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyButton, "thy-button,[thy-button],[thyButton]", never, { "thyButton": { "alias": "thyButton"; "required": false; "isSignal": true; }; "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thyLoading": { "alias": "thyLoading"; "required": false; "isSignal": true; }; "thyLoadingText": { "alias": "thyLoadingText"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; "thyBlock": { "alias": "thyBlock"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
71
61
  }
@@ -131,7 +131,7 @@
131
131
  position: relative;
132
132
  border: style.$border-width-base style.$border-style-base transparent;
133
133
  color: style.$disabled-color;
134
- background: style.$disabled-bg;
134
+ background: style.$disabled-bg !important;
135
135
  border-radius: 0;
136
136
  cursor: variables.$disabled-cursor;
137
137
  width: auto;
@@ -40,6 +40,7 @@ $input-box-height: 34px;
40
40
  }
41
41
 
42
42
  &-flexible {
43
+ width: 338px;
43
44
  .#{style.$calendar-prefix-cls}-picker-inner-popup {
44
45
  width: 338px;
45
46
  .thy-calendar-body {
@@ -29,6 +29,7 @@
29
29
  &.#{style.$calendar-prefix-cls}-active-week {
30
30
  .#{style.$calendar-prefix-cls}-date {
31
31
  color: variables.$white;
32
+ background: variables.$primary;
32
33
  }
33
34
  &::after {
34
35
  background: variables.$primary;
@@ -1,4 +1,4 @@
1
- import { QueryList, AfterContentInit, OnInit } from '@angular/core';
1
+ import { AfterContentInit, OnInit, QueryList, Signal } from '@angular/core';
2
2
  import { ThyDropdownDirective } from './dropdown.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
@@ -7,15 +7,14 @@ import * as i0 from "@angular/core";
7
7
  * @order 60
8
8
  */
9
9
  export declare class ThyDropdownActiveDirective implements OnInit, AfterContentInit {
10
- private elementRef;
11
10
  private trigger;
12
- classes: string[];
11
+ readonly classes: Signal<string[]>;
13
12
  private hostRenderer;
14
13
  /**
15
14
  * 设置 Active 样式类,可以是一个或多个CSS类
16
15
  * @type string[] | string
17
16
  */
18
- set thyDropdownActive(data: string[] | string);
17
+ readonly thyDropdownActive: import("@angular/core").InputSignal<string | string[]>;
19
18
  /**
20
19
  * @private
21
20
  */
@@ -24,5 +23,5 @@ export declare class ThyDropdownActiveDirective implements OnInit, AfterContentI
24
23
  ngAfterContentInit(): void;
25
24
  update(active: boolean): void;
26
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropdownActiveDirective, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownActiveDirective, "[thyDropdownActive]", never, { "thyDropdownActive": { "alias": "thyDropdownActive"; "required": false; }; }, {}, ["triggers"], never, true, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownActiveDirective, "[thyDropdownActive]", never, { "thyDropdownActive": { "alias": "thyDropdownActive"; "required": false; "isSignal": true; }; }, {}, ["triggers"], never, true, never>;
28
27
  }
@@ -1,6 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- import * as i1 from "ngx-tethys/util";
4
3
  export type ThyDropdownMenuItemType = 'default' | 'danger' | 'success' | '';
5
4
  /**
6
5
  * 菜单项
@@ -9,21 +8,17 @@ export type ThyDropdownMenuItemType = 'default' | 'danger' | 'success' | '';
9
8
  */
10
9
  export declare class ThyDropdownMenuItemDirective implements OnInit {
11
10
  private elementRef;
12
- className: boolean;
13
- disabled: boolean;
14
- danger: boolean;
15
- success: boolean;
11
+ readonly danger: import("@angular/core").Signal<boolean>;
12
+ readonly success: import("@angular/core").Signal<boolean>;
16
13
  /**
17
14
  * 菜单项类型
18
15
  * @type 'default' | 'danger' | 'success' | ''
19
- * @default default
20
16
  */
21
- set thyType(value: ThyDropdownMenuItemType);
17
+ readonly thyType: import("@angular/core").InputSignal<ThyDropdownMenuItemType>;
22
18
  /**
23
19
  * 菜单项是否处于禁用状态
24
- * @default false
25
20
  */
26
- set thyDisabled(value: boolean);
21
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
27
22
  onClick(event: Event): void;
28
23
  private hostRenderer;
29
24
  ngOnInit(): void;
@@ -31,8 +26,7 @@ export declare class ThyDropdownMenuItemDirective implements OnInit {
31
26
  getElement(): HTMLElement;
32
27
  bindMouseenterEvent(): import("rxjs").Observable<Event>;
33
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropdownMenuItemDirective, never>;
34
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownMenuItemDirective, "[thyDropdownMenuItem]", never, { "thyType": { "alias": "thyType"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
35
- static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
29
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownMenuItemDirective, "[thyDropdownMenuItem]", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
36
30
  }
37
31
  /**
38
32
  * 设置为菜单项图标
@@ -93,11 +87,9 @@ export declare class ThyDropdownMenuItemActiveDirective {
93
87
  /**
94
88
  * 是否激活
95
89
  * @type boolean | string
96
- * @default false
97
90
  */
98
- thyDropdownMenuItemActive: boolean;
91
+ readonly thyDropdownMenuItemActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
99
92
  constructor();
100
93
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropdownMenuItemActiveDirective, never>;
101
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownMenuItemActiveDirective, "[thyDropdownMenuItemActive]", never, { "thyDropdownMenuItemActive": { "alias": "thyDropdownMenuItemActive"; "required": false; }; }, {}, never, never, true, never>;
102
- static ngAcceptInputType_thyDropdownMenuItemActive: i1.ThyBooleanInput;
94
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownMenuItemActiveDirective, "[thyDropdownMenuItemActive]", never, { "thyDropdownMenuItemActive": { "alias": "thyDropdownMenuItemActive"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
103
95
  }
@@ -1,7 +1,5 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import { SafeAny } from 'ngx-tethys/types';
3
2
  import * as i0 from "@angular/core";
4
- import * as i1 from "ngx-tethys/util";
5
3
  export type ThyDropdownMenuDividerType = 'default' | 'crossing' | '';
6
4
  export declare const THY_DROPDOWN_DEFAULT_WIDTH = "240px";
7
5
  /**
@@ -18,22 +16,18 @@ export declare class ThyDropdownAbstractMenu {
18
16
  * @order 20
19
17
  */
20
18
  export declare class ThyDropdownMenuComponent {
21
- get template(): TemplateRef<any>;
22
- templateRef: TemplateRef<SafeAny>;
19
+ readonly templateRef: import("@angular/core").Signal<TemplateRef<any>>;
23
20
  /**
24
21
  * 设置菜单宽度
25
- * @default 240px
26
22
  */
27
- thyWidth: number | string;
23
+ readonly thyWidth: import("@angular/core").InputSignalWithTransform<string, any>;
28
24
  /**
29
25
  * 是否直接渲染 dropdown-menu 中的元素
30
- * @default false
31
26
  */
32
- thyImmediateRender: boolean;
27
+ readonly thyImmediateRender: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
33
28
  constructor();
34
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropdownMenuComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyDropdownMenuComponent, "thy-dropdown-menu", never, { "thyWidth": { "alias": "thyWidth"; "required": false; }; "thyImmediateRender": { "alias": "thyImmediateRender"; "required": false; }; }, {}, never, ["*"], true, never>;
36
- static ngAcceptInputType_thyImmediateRender: i1.ThyBooleanInput;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyDropdownMenuComponent, "thy-dropdown-menu", never, { "thyWidth": { "alias": "thyWidth"; "required": false; "isSignal": true; }; "thyImmediateRender": { "alias": "thyImmediateRender"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
37
31
  }
38
32
  /**
39
33
  * 下拉菜单分组
@@ -41,14 +35,13 @@ export declare class ThyDropdownMenuComponent {
41
35
  * @order 50
42
36
  */
43
37
  export declare class ThyDropdownMenuGroup {
44
- title: string;
45
38
  /**
46
39
  * 分组标题
47
40
  */
48
- set thyTitle(value: string);
41
+ readonly thyTitle: import("@angular/core").InputSignal<string>;
49
42
  constructor();
50
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropdownMenuGroup, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyDropdownMenuGroup, "thy-dropdown-menu-group", never, { "thyTitle": { "alias": "thyTitle"; "required": false; }; }, {}, never, ["*"], true, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyDropdownMenuGroup, "thy-dropdown-menu-group", never, { "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
52
45
  }
53
46
  /**
54
47
  * 下拉菜单分割线
@@ -10,16 +10,14 @@ export declare class ThyDropdownSubmenu implements OnInit {
10
10
  private dropdownMenuItem;
11
11
  private elementRef;
12
12
  private readonly destroyRef;
13
- private direction;
14
13
  /**
15
14
  * 菜单方向
16
15
  * @type left | right | auto
17
- * @default right
18
16
  */
19
- set thyDirection(value: ThyDropdownSubmenuDirection);
17
+ readonly thyDirection: import("@angular/core").InputSignalWithTransform<ThyDropdownSubmenuDirection, ThyDropdownSubmenuDirection>;
20
18
  ngOnInit(): void;
21
19
  private updateClassByDirection;
22
20
  private updateVerticalDirection;
23
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropdownSubmenu, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyDropdownSubmenu, "[thyDropdownSubmenu],thy-dropdown-submenu", never, { "thyDirection": { "alias": "thyDirection"; "required": false; }; }, {}, never, ["*"], true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyDropdownSubmenu, "[thyDropdownSubmenu],thy-dropdown-submenu", never, { "thyDirection": { "alias": "thyDirection"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
25
23
  }