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
@@ -1,41 +1,36 @@
1
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
- import * as i1 from "ngx-tethys/util";
4
2
  /**
5
3
  * 图标组件
6
4
  * @name thy-icon,[thy-icon]
7
5
  * @order 10
8
6
  */
9
- export declare class ThyIcon implements OnInit, OnChanges {
7
+ export declare class ThyIcon {
10
8
  private render;
11
9
  private elementRef;
12
10
  private iconRegistry;
13
- private initialized;
14
11
  /**
15
12
  * 图标的类型
16
13
  * @type outline | fill | twotone
17
14
  */
18
- iconType: 'outline' | 'fill' | 'twotone';
19
- iconTwotoneColor: string;
15
+ readonly thyIconType: import("@angular/core").InputSignal<"fill" | "outline" | "twotone">;
16
+ readonly thyTwotoneColor: import("@angular/core").InputSignal<string>;
20
17
  /**
21
18
  * 图标的名字
22
19
  */
23
- iconName: string;
20
+ readonly thyIconName: import("@angular/core").InputSignal<string>;
24
21
  /**
25
22
  * 图标的旋转角度
26
23
  * @default 0
27
24
  */
28
- iconRotate: number;
29
- iconSet: string;
25
+ readonly thyIconRotate: import("@angular/core").InputSignalWithTransform<number, unknown>;
26
+ readonly thyIconSet: import("@angular/core").InputSignal<string>;
30
27
  /**
31
28
  * 图标打底色,镂空的图标,会透过颜色来
32
- * @default false
33
29
  */
34
- iconLegging: boolean;
35
- iconLinearGradient: boolean;
30
+ readonly thyIconLegging: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
31
+ readonly thyIconLinearGradient: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
36
32
  private hostRenderer;
37
- ngOnInit(): void;
38
- ngOnChanges(changes: SimpleChanges): void;
33
+ constructor();
39
34
  private updateClasses;
40
35
  private setStyleRotate;
41
36
  private setSvgElement;
@@ -48,8 +43,5 @@ export declare class ThyIcon implements OnInit, OnChanges {
48
43
  private setBaseUrl;
49
44
  private clearTitleElement;
50
45
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyIcon, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyIcon, "thy-icon, [thy-icon]", never, { "iconType": { "alias": "thyIconType"; "required": false; }; "iconTwotoneColor": { "alias": "thyTwotoneColor"; "required": false; }; "iconName": { "alias": "thyIconName"; "required": false; }; "iconRotate": { "alias": "thyIconRotate"; "required": false; }; "iconSet": { "alias": "thyIconSet"; "required": false; }; "iconLegging": { "alias": "thyIconLegging"; "required": false; }; "iconLinearGradient": { "alias": "thyIconLinearGradient"; "required": false; }; }, {}, never, ["*"], true, never>;
52
- static ngAcceptInputType_iconRotate: unknown;
53
- static ngAcceptInputType_iconLegging: i1.ThyBooleanInput;
54
- static ngAcceptInputType_iconLinearGradient: i1.ThyBooleanInput;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyIcon, "thy-icon, [thy-icon]", never, { "thyIconType": { "alias": "thyIconType"; "required": false; "isSignal": true; }; "thyTwotoneColor": { "alias": "thyTwotoneColor"; "required": false; "isSignal": true; }; "thyIconName": { "alias": "thyIconName"; "required": true; "isSignal": true; }; "thyIconRotate": { "alias": "thyIconRotate"; "required": false; "isSignal": true; }; "thyIconSet": { "alias": "thyIconSet"; "required": false; "isSignal": true; }; "thyIconLegging": { "alias": "thyIconLegging"; "required": false; "isSignal": true; }; "thyIconLinearGradient": { "alias": "thyIconLinearGradient"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
55
47
  }
@@ -1,53 +1,50 @@
1
- import { OnChanges, OnInit, SimpleChanges, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { OnInit, OnDestroy, AfterViewInit } from '@angular/core';
2
2
  import { IThyImageDirective } from './image.token';
3
3
  import { ThyImageMeta } from './image.class';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "ngx-tethys/util";
6
5
  /**
7
6
  * thyImage: 预览图片指令,只可绑定到 img 标签上
8
7
  * @name img[thyImage]
9
8
  * @order 10
10
9
  */
11
- export declare class ThyImageDirective implements IThyImageDirective, OnInit, OnChanges, AfterViewInit, OnDestroy {
10
+ export declare class ThyImageDirective implements IThyImageDirective, OnInit, AfterViewInit, OnDestroy {
12
11
  private thyImageService;
13
12
  private injector;
14
13
  private elementRef;
15
14
  /**
16
15
  * 图片地址
17
16
  */
18
- thySrc: string;
17
+ readonly thySrc: import("@angular/core").InputSignal<string>;
19
18
  /**
20
19
  * 预览图片地址
21
20
  */
22
- thyPreviewSrc: string;
21
+ readonly thyPreviewSrc: import("@angular/core").InputSignal<string>;
23
22
  /**
24
23
  * 图片原图地址
25
24
  */
26
- thyOriginSrc: string;
25
+ readonly thyOriginSrc: import("@angular/core").InputSignal<string>;
27
26
  /**
28
27
  * 图片附加信息,包含 { name: string, size?: string | number; }
29
28
  */
30
- thyImageMeta: ThyImageMeta;
29
+ readonly thyImageMeta: import("@angular/core").InputSignal<ThyImageMeta>;
31
30
  /**
32
31
  * 是否禁止预览
33
32
  * @default false
34
33
  */
35
- thyDisablePreview: boolean;
34
+ readonly thyDisablePreview: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
36
35
  /**
37
36
  * 是否自动计算图片资源大小
38
37
  */
39
- thyResolveSize: boolean;
38
+ readonly thyResolveSize: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
40
39
  get previewable(): boolean;
41
40
  private parentGroup;
41
+ constructor();
42
42
  ngOnInit(): void;
43
43
  ngAfterViewInit(): void;
44
44
  getParentGroup(): void;
45
45
  addParentImage(): void;
46
- ngOnChanges(changes: SimpleChanges): void;
47
46
  onPreview(event: MouseEvent): void;
48
47
  ngOnDestroy(): void;
49
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyImageDirective, never>;
50
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyImageDirective, "img[thyImage]", ["thyImage"], { "thySrc": { "alias": "thySrc"; "required": false; }; "thyPreviewSrc": { "alias": "thyPreviewSrc"; "required": false; }; "thyOriginSrc": { "alias": "thyOriginSrc"; "required": false; }; "thyImageMeta": { "alias": "thyImageMeta"; "required": false; }; "thyDisablePreview": { "alias": "thyDisablePreview"; "required": false; }; "thyResolveSize": { "alias": "thyResolveSize"; "required": false; }; }, {}, never, never, true, never>;
51
- static ngAcceptInputType_thyDisablePreview: i1.ThyBooleanInput;
52
- static ngAcceptInputType_thyResolveSize: i1.ThyBooleanInput;
49
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyImageDirective, "img[thyImage]", ["thyImage"], { "thySrc": { "alias": "thySrc"; "required": false; "isSignal": true; }; "thyPreviewSrc": { "alias": "thyPreviewSrc"; "required": false; "isSignal": true; }; "thyOriginSrc": { "alias": "thyOriginSrc"; "required": false; "isSignal": true; }; "thyImageMeta": { "alias": "thyImageMeta"; "required": false; "isSignal": true; }; "thyDisablePreview": { "alias": "thyDisablePreview"; "required": false; "isSignal": true; }; "thyResolveSize": { "alias": "thyResolveSize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
53
50
  }
@@ -1,11 +1,11 @@
1
- import { ElementRef, InjectionToken, Injector } from '@angular/core';
1
+ import { ElementRef, InjectionToken, Injector, InputSignal } from '@angular/core';
2
2
  import { ThyImageMeta } from './image.class';
3
3
  export interface IThyImageDirective {
4
4
  previewable: boolean;
5
- thySrc: string;
6
- thyPreviewSrc: string;
7
- thyOriginSrc: string;
8
- thyImageMeta: ThyImageMeta;
5
+ thySrc: InputSignal<string>;
6
+ thyPreviewSrc: InputSignal<string>;
7
+ thyOriginSrc: InputSignal<string>;
8
+ thyImageMeta: InputSignal<ThyImageMeta>;
9
9
  }
10
10
  export interface IThyImageGroupComponent {
11
11
  injector: Injector;
@@ -26,7 +26,7 @@ export declare class ThyInputNumber extends TabIndexDisabledControlValueAccessor
26
26
  * 是否自动聚焦
27
27
  * @default false
28
28
  */
29
- readonly thyAutoFocus: import("@angular/core").InputSignalWithTransform<boolean, string | number | boolean>;
29
+ readonly thyAutoFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
30
30
  /**
31
31
  * 输入框的placeholder
32
32
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "19.1.0-next.0",
3
+ "version": "19.1.0-next.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/atinc/ngx-tethys.git"
@@ -1,10 +1,10 @@
1
- import { OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
1
+ import { TemplateRef } from '@angular/core';
2
2
  import { ThyProgressGapPositionType, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * @private
6
6
  */
7
- export declare class ThyProgressCircle implements OnInit, OnChanges {
7
+ export declare class ThyProgressCircle {
8
8
  private hostRenderer;
9
9
  readonly thyType: import("@angular/core").InputSignal<ThyProgressType>;
10
10
  readonly thySize: import("@angular/core").InputSignal<string | number>;
@@ -15,7 +15,7 @@ export declare class ThyProgressCircle implements OnInit, OnChanges {
15
15
  readonly thyGapDegree: import("@angular/core").InputSignalWithTransform<number, unknown>;
16
16
  readonly thyGapPosition: import("@angular/core").InputSignal<ThyProgressGapPositionType>;
17
17
  readonly thyStrokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
18
- get strokeWidth(): number;
18
+ readonly strokeWidth: import("@angular/core").Signal<number>;
19
19
  readonly progressSize: import("@angular/core").Signal<string>;
20
20
  readonly width: import("@angular/core").Signal<number>;
21
21
  readonly circle: import("@angular/core").Signal<{
@@ -38,8 +38,6 @@ export declare class ThyProgressCircle implements OnInit, OnChanges {
38
38
  }[];
39
39
  }>;
40
40
  constructor();
41
- ngOnInit(): void;
42
- ngOnChanges(changes: SimpleChanges): void;
43
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgressCircle, never>;
44
42
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressCircle, "thy-progress-circle", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyMax": { "alias": "thyMax"; "required": false; "isSignal": true; }; "thyTips": { "alias": "thyTips"; "required": false; "isSignal": true; }; "thyShape": { "alias": "thyShape"; "required": false; "isSignal": true; }; "thyGapDegree": { "alias": "thyGapDegree"; "required": false; "isSignal": true; }; "thyGapPosition": { "alias": "thyGapPosition"; "required": false; "isSignal": true; }; "thyStrokeWidth": { "alias": "thyStrokeWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
45
43
  }
@@ -1,4 +1,4 @@
1
- import { OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
1
+ import { TemplateRef } from '@angular/core';
2
2
  import { ThyProgressGapPositionType, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
3
3
  import { ThyParentProgress, ThyProgressStrip } from './progress-strip.component';
4
4
  import * as i0 from "@angular/core";
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  * 进度条组件
7
7
  * @name thy-progress
8
8
  */
9
- export declare class ThyProgress implements ThyParentProgress, OnInit, OnChanges {
9
+ export declare class ThyProgress implements ThyParentProgress {
10
10
  private hostRenderer;
11
11
  readonly barsTotalValue: import("@angular/core").Signal<number>;
12
12
  readonly max: import("@angular/core").Signal<number>;
@@ -54,8 +54,6 @@ export declare class ThyProgress implements ThyParentProgress, OnInit, OnChanges
54
54
  */
55
55
  readonly thyStrokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
56
56
  constructor();
57
- ngOnInit(): void;
58
- ngOnChanges(changes: SimpleChanges): void;
59
57
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgress, never>;
60
58
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgress, "thy-progress", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyMax": { "alias": "thyMax"; "required": false; "isSignal": true; }; "thyTips": { "alias": "thyTips"; "required": false; "isSignal": true; }; "thyShape": { "alias": "thyShape"; "required": false; "isSignal": true; }; "thyGapDegree": { "alias": "thyGapDegree"; "required": false; "isSignal": true; }; "thyGapPosition": { "alias": "thyGapPosition"; "required": false; "isSignal": true; }; "thyStrokeWidth": { "alias": "thyStrokeWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
61
59
  }
@@ -8,12 +8,10 @@ export declare class ThyProperties {
8
8
  /**
9
9
  * 展示布局
10
10
  * @type "horizontal" | "vertical"
11
- * @default horizontal
12
11
  */
13
12
  readonly layout: import("@angular/core").InputSignal<ThyPropertiesLayout>;
14
13
  /**
15
14
  * 设置一行的可以 property-item 的数量
16
- * @type number
17
15
  */
18
16
  readonly thyColumn: import("@angular/core").InputSignalWithTransform<number, unknown>;
19
17
  /**
@@ -1,5 +1,4 @@
1
- import { Subject } from 'rxjs';
2
- import { ElementRef, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
1
+ import { ElementRef, OnDestroy, TemplateRef } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export type ThyPropertyItemOperationTrigger = 'hover' | 'always';
5
4
  /**
@@ -11,21 +10,17 @@ export declare class ThyPropertyItem implements OnDestroy {
11
10
  private ngZone;
12
11
  private overlayOutsideClickDispatcher;
13
12
  private parent;
13
+ private destroyRef;
14
14
  /**
15
15
  * 属性名称
16
- * @type sting
17
- * @default thyLabelText
18
16
  */
19
17
  readonly thyLabelText: import("@angular/core").InputSignal<string>;
20
18
  /**
21
19
  * 设置属性是否是可编辑的
22
- * @type sting
23
- * @default false
24
20
  */
25
21
  readonly thyEditable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
26
22
  /**
27
23
  * 设置跨列的数量
28
- * @type number
29
24
  */
30
25
  readonly thySpan: import("@angular/core").InputSignalWithTransform<number, unknown>;
31
26
  /**
@@ -63,13 +58,11 @@ export declare class ThyPropertyItem implements OnDestroy {
63
58
  */
64
59
  readonly itemContent: import("@angular/core").Signal<ElementRef<HTMLElement>>;
65
60
  editing: import("@angular/core").WritableSignal<boolean>;
66
- changes$: Subject<SimpleChanges>;
67
- private destroy$;
68
61
  private eventDestroy$;
69
62
  private originOverlays;
70
63
  private clickEventSubscription;
71
64
  protected readonly gridColumn: import("@angular/core").Signal<string>;
72
- isVertical: import("@angular/core").WritableSignal<boolean>;
65
+ readonly isVertical: import("@angular/core").Signal<boolean>;
73
66
  constructor();
74
67
  setEditing(editing: boolean): void;
75
68
  /**
@@ -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,77 +1,75 @@
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;
71
+ readonly thyResizeEnd: import("@angular/core").OutputEmitterRef<ThyResizeEvent>;
72
+ resizing: import("@angular/core").WritableSignal<boolean>;
75
73
  private nativeElement;
76
74
  private nativeElementRect;
77
75
  private sizeCache;
@@ -79,7 +77,6 @@ export declare class ThyResizableDirective implements AfterViewInit, OnDestroy {
79
77
  private currentHandleEvent;
80
78
  private readonly destroyRef;
81
79
  constructor();
82
- ngAfterViewInit(): void;
83
80
  setCursor(): void;
84
81
  endResize(event: MouseEvent | TouchEvent): void;
85
82
  resize(event: MouseEvent | TouchEvent): void;
@@ -89,15 +86,5 @@ export declare class ThyResizableDirective implements AfterViewInit, OnDestroy {
89
86
  removeGhostElement(): void;
90
87
  ngOnDestroy(): void;
91
88
  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;
89
+ 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
90
  }
@@ -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
  }