ngx-tethys 19.0.13 → 19.1.0-next.0

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 (280) hide show
  1. package/CHANGELOG.md +29 -2
  2. package/action/action.component.d.ts +12 -20
  3. package/action/actions.component.d.ts +5 -7
  4. package/affix/affix.component.d.ts +7 -10
  5. package/alert/alert.component.d.ts +1 -1
  6. package/anchor/anchor-link.component.d.ts +8 -8
  7. package/anchor/anchor.component.d.ts +15 -21
  8. package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
  9. package/autocomplete/autocomplete.component.d.ts +10 -17
  10. package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
  11. package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
  12. package/avatar/avatar.component.d.ts +25 -39
  13. package/back-top/back-top.component.d.ts +9 -12
  14. package/badge/badge.component.d.ts +19 -59
  15. package/breadcrumb/breadcrumb.component.d.ts +15 -20
  16. package/button/button-icon.component.d.ts +3 -2
  17. package/button/button.component.d.ts +3 -2
  18. package/calendar/calendar-header.component.d.ts +9 -8
  19. package/calendar/calendar.component.d.ts +16 -16
  20. package/card/card.component.d.ts +5 -11
  21. package/card/content.component.d.ts +3 -8
  22. package/card/header.component.d.ts +7 -8
  23. package/carousel/carousel.component.d.ts +22 -27
  24. package/cascader/cascader-li.component.d.ts +13 -21
  25. package/cascader/cascader-search-option.component.d.ts +8 -16
  26. package/cascader/cascader.component.d.ts +58 -80
  27. package/checkbox/checkbox.component.d.ts +2 -5
  28. package/collapse/collapse-item.component.d.ts +12 -19
  29. package/collapse/collapse.component.d.ts +6 -12
  30. package/collapse/collapse.token.d.ts +3 -3
  31. package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
  32. package/color-picker/color-picker-panel.component.d.ts +7 -11
  33. package/color-picker/color-picker.component.d.ts +19 -35
  34. package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
  35. package/color-picker/parts/hue/hue.component.d.ts +6 -6
  36. package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
  37. package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
  38. package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
  39. package/comment/comment.component.d.ts +4 -5
  40. package/copy/copy.directive.d.ts +8 -9
  41. package/date-picker/abstract-picker.component.d.ts +8 -7
  42. package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
  43. package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
  44. package/date-picker/picker.component.d.ts +2 -1
  45. package/date-range/date-range.component.d.ts +2 -2
  46. package/dialog/body/dialog-body.component.d.ts +2 -6
  47. package/dialog/confirm/confirm.component.d.ts +2 -2
  48. package/dialog/footer/dialog-footer.component.d.ts +6 -9
  49. package/dialog/header/dialog-header.component.d.ts +9 -11
  50. package/divider/divider.component.d.ts +12 -16
  51. package/dot/dot.component.d.ts +5 -13
  52. package/drag-drop/drag-handle.directive.d.ts +2 -1
  53. package/drag-drop/drag.directive.d.ts +2 -1
  54. package/drag-drop/drop-container.directive.d.ts +2 -1
  55. package/dropdown/dropdown-menu-item.directive.d.ts +3 -2
  56. package/dropdown/dropdown-menu.component.d.ts +2 -1
  57. package/dropdown/dropdown.directive.d.ts +2 -1
  58. package/empty/empty.component.d.ts +21 -27
  59. package/fesm2022/ngx-tethys-action.mjs +54 -91
  60. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-affix.mjs +29 -26
  62. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-anchor.mjs +91 -118
  64. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  65. package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
  66. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  67. package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
  68. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys-avatar.mjs +117 -162
  70. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  71. package/fesm2022/ngx-tethys-back-top.mjs +33 -46
  72. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  73. package/fesm2022/ngx-tethys-badge.mjs +104 -208
  74. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  75. package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
  76. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  77. package/fesm2022/ngx-tethys-calendar.mjs +85 -87
  78. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  79. package/fesm2022/ngx-tethys-card.mjs +72 -77
  80. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  81. package/fesm2022/ngx-tethys-carousel.mjs +82 -99
  82. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  83. package/fesm2022/ngx-tethys-cascader.mjs +313 -468
  84. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  85. package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
  86. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  87. package/fesm2022/ngx-tethys-collapse.mjs +66 -71
  88. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  89. package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
  90. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  91. package/fesm2022/ngx-tethys-comment.mjs +16 -10
  92. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  93. package/fesm2022/ngx-tethys-copy.mjs +25 -28
  94. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  95. package/fesm2022/ngx-tethys-dialog.mjs +81 -82
  96. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  97. package/fesm2022/ngx-tethys-divider.mjs +49 -58
  98. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  99. package/fesm2022/ngx-tethys-dot.mjs +45 -68
  100. package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
  101. package/fesm2022/ngx-tethys-empty.mjs +107 -95
  102. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  103. package/fesm2022/ngx-tethys-form.mjs +161 -200
  104. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  105. package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
  106. package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
  107. package/fesm2022/ngx-tethys-grid.mjs +160 -152
  108. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  109. package/fesm2022/ngx-tethys-i18n.mjs +25 -25
  110. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  111. package/fesm2022/ngx-tethys-input-number.mjs +101 -114
  112. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  113. package/fesm2022/ngx-tethys-input.mjs +268 -271
  114. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  115. package/fesm2022/ngx-tethys-list.mjs +1 -1
  116. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  117. package/fesm2022/ngx-tethys-loading.mjs +17 -35
  118. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  119. package/fesm2022/ngx-tethys-mention.mjs +52 -74
  120. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  121. package/fesm2022/ngx-tethys-menu.mjs +106 -179
  122. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  123. package/fesm2022/ngx-tethys-nav.mjs +169 -201
  124. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  125. package/fesm2022/ngx-tethys-pagination.mjs +230 -294
  126. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  127. package/fesm2022/ngx-tethys-popover.mjs +67 -70
  128. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  129. package/fesm2022/ngx-tethys-progress.mjs +196 -244
  130. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  131. package/fesm2022/ngx-tethys-property.mjs +102 -105
  132. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  133. package/fesm2022/ngx-tethys-radio.mjs +34 -38
  134. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  135. package/fesm2022/ngx-tethys-result.mjs +46 -28
  136. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  137. package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
  138. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  139. package/fesm2022/ngx-tethys-slider.mjs +75 -108
  140. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  141. package/fesm2022/ngx-tethys-space.mjs +26 -46
  142. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  143. package/fesm2022/ngx-tethys-statistic.mjs +114 -151
  144. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  145. package/fesm2022/ngx-tethys-stepper.mjs +74 -107
  146. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  147. package/fesm2022/ngx-tethys-switch.mjs +80 -140
  148. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  149. package/fesm2022/ngx-tethys-table.mjs +1 -1
  150. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  151. package/fesm2022/ngx-tethys-tabs.mjs +69 -87
  152. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  153. package/fesm2022/ngx-tethys-tag.mjs +42 -64
  154. package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
  155. package/fesm2022/ngx-tethys-timeline.mjs +104 -129
  156. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  157. package/fesm2022/ngx-tethys-typography.mjs +36 -33
  158. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  159. package/fesm2022/ngx-tethys-upload.mjs +91 -130
  160. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  161. package/fesm2022/ngx-tethys-util.mjs.map +1 -1
  162. package/fesm2022/ngx-tethys-watermark.mjs +36 -40
  163. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  164. package/fesm2022/ngx-tethys.mjs +1 -1
  165. package/fesm2022/ngx-tethys.mjs.map +1 -1
  166. package/form/form-group-error/form-group-error.component.d.ts +2 -3
  167. package/form/form-group-label.directive.d.ts +2 -1
  168. package/form/form-group.component.d.ts +17 -24
  169. package/form/form-submit.directive.d.ts +2 -2
  170. package/form/form.directive.d.ts +6 -8
  171. package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
  172. package/form/validator/confirm-validator.directive.d.ts +2 -2
  173. package/form/validator/unique-validator.directive.d.ts +2 -2
  174. package/fullscreen/fullscreen.component.d.ts +7 -7
  175. package/grid/flex.d.ts +14 -19
  176. package/grid/thy-col.directive.d.ts +6 -9
  177. package/grid/thy-grid-item.component.d.ts +3 -4
  178. package/grid/thy-grid.component.d.ts +11 -12
  179. package/grid/thy-row.directive.d.ts +12 -12
  180. package/icon/icon.component.d.ts +3 -2
  181. package/image/image.directive.d.ts +3 -2
  182. package/input/input-count.component.d.ts +4 -5
  183. package/input/input-group.component.d.ts +20 -20
  184. package/input/input-search.component.d.ts +15 -20
  185. package/input/input.component.d.ts +20 -21
  186. package/input/input.directive.d.ts +4 -6
  187. package/input-number/input-number.component.d.ts +21 -29
  188. package/layout/header.component.d.ts +4 -9
  189. package/layout/sidebar-header.component.d.ts +2 -1
  190. package/layout/sidebar.component.d.ts +8 -7
  191. package/list/list.component.d.ts +2 -1
  192. package/list/selection/selection-list.d.ts +4 -3
  193. package/loading/loading.component.d.ts +4 -10
  194. package/mention/mention.directive.d.ts +6 -7
  195. package/mention/suggestions/suggestions.component.d.ts +8 -9
  196. package/menu/group/menu-group.component.d.ts +16 -33
  197. package/menu/item/action/menu-item-action.component.d.ts +7 -8
  198. package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
  199. package/menu/item/menu-item.component.d.ts +4 -4
  200. package/menu/item/name/menu-item-name.component.d.ts +2 -3
  201. package/menu/menu.component.d.ts +3 -7
  202. package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
  203. package/nav/icon-nav/icon-nav.component.d.ts +3 -8
  204. package/nav/nav-ink-bar.directive.d.ts +4 -6
  205. package/nav/nav-item.directive.d.ts +7 -10
  206. package/nav/nav.component.d.ts +20 -48
  207. package/package.json +1 -1
  208. package/pagination/pagination.component.d.ts +48 -109
  209. package/popover/header/popover-header.component.d.ts +7 -6
  210. package/popover/popover.directive.d.ts +11 -18
  211. package/progress/progress-circle.component.d.ts +32 -21
  212. package/progress/progress-strip.component.d.ts +10 -14
  213. package/progress/progress.component.d.ts +15 -23
  214. package/property/examples/single/single.component.scss +6 -0
  215. package/property/properties.component.d.ts +6 -13
  216. package/property/property-item.component.d.ts +21 -26
  217. package/property/styles/properties.scss +124 -52
  218. package/property-operation/property-operation.component.d.ts +6 -5
  219. package/radio/button/radio-button.component.d.ts +2 -2
  220. package/radio/group/radio-group.component.d.ts +8 -7
  221. package/radio/radio.component.d.ts +2 -2
  222. package/radio/radio.token.d.ts +2 -2
  223. package/rate/rate-item.component.d.ts +2 -1
  224. package/rate/rate.component.d.ts +4 -3
  225. package/resizable/resizable.directive.d.ts +4 -9
  226. package/resizable/resize-handle.component.d.ts +2 -1
  227. package/resizable/resize-handles.component.d.ts +2 -1
  228. package/result/result.component.d.ts +9 -10
  229. package/schematics/version.d.ts +1 -1
  230. package/schematics/version.js +1 -1
  231. package/segment/segment-item.component.d.ts +2 -1
  232. package/segment/segment.component.d.ts +2 -1
  233. package/select/custom-select/custom-select.component.d.ts +11 -10
  234. package/select/native-select/native-select.component.d.ts +2 -1
  235. package/shared/base-form-check.component.d.ts +3 -2
  236. package/shared/directives/thy-autofocus.directive.d.ts +3 -2
  237. package/shared/directives/thy-scroll.directive.d.ts +2 -1
  238. package/shared/directives/thy-show.d.ts +2 -1
  239. package/shared/option/group/option-group.component.d.ts +2 -1
  240. package/shared/option/list-option/list-option.component.d.ts +2 -7
  241. package/shared/option/option.component.d.ts +2 -1
  242. package/shared/select/select-control/select-control.component.d.ts +7 -6
  243. package/skeleton/skeleton-circle.component.d.ts +16 -19
  244. package/skeleton/skeleton-rectangle.component.d.ts +20 -23
  245. package/skeleton/skeleton.component.d.ts +5 -6
  246. package/skeleton/stylized/bullet-list.component.d.ts +11 -13
  247. package/skeleton/stylized/list.component.d.ts +10 -12
  248. package/skeleton/stylized/paragraph.component.d.ts +12 -14
  249. package/slide/slide-body/slide-body-section.component.d.ts +2 -1
  250. package/slider/slider.component.d.ts +17 -24
  251. package/space/space.component.d.ts +8 -8
  252. package/statistic/statistic.component.d.ts +35 -40
  253. package/stepper/step-header.component.d.ts +6 -10
  254. package/stepper/step.component.d.ts +6 -6
  255. package/stepper/stepper.component.d.ts +15 -20
  256. package/switch/switch.component.d.ts +24 -35
  257. package/table/table-column.component.d.ts +6 -5
  258. package/table/table-skeleton.component.d.ts +3 -10
  259. package/table/table.component.d.ts +11 -10
  260. package/tabs/tab-content.component.d.ts +4 -4
  261. package/tabs/tab.component.d.ts +4 -5
  262. package/tabs/tabs.component.d.ts +13 -15
  263. package/tag/tag.component.d.ts +10 -16
  264. package/time-picker/time-picker-panel.component.d.ts +3 -2
  265. package/time-picker/time-picker.component.d.ts +6 -5
  266. package/timeline/timeline-item.component.d.ts +9 -13
  267. package/timeline/timeline.component.d.ts +13 -17
  268. package/tooltip/tooltip.directive.d.ts +3 -2
  269. package/tree/tree-node.component.d.ts +6 -15
  270. package/tree/tree.component.d.ts +8 -7
  271. package/tree-select/tree-select.component.d.ts +8 -7
  272. package/typography/bg-color.directive.d.ts +3 -3
  273. package/typography/text/text.component.d.ts +2 -2
  274. package/typography/text-color.directive.d.ts +3 -3
  275. package/upload/file-drop.directive.d.ts +9 -11
  276. package/upload/file-select-base.d.ts +6 -10
  277. package/upload/file-select.component.d.ts +10 -20
  278. package/util/helpers/helpers.d.ts +2 -1
  279. package/vote/vote.component.d.ts +4 -3
  280. package/watermark/watermark.directive.d.ts +7 -9
@@ -1,10 +1,10 @@
1
+ import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
1
2
  import { ThyPopoverConfig } from 'ngx-tethys/popover';
2
3
  import { Observable } from 'rxjs';
3
- import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
4
4
  import { RouterLinkActive } from '@angular/router';
5
+ import { ThyNavLocale } from 'ngx-tethys/i18n';
5
6
  import { ThyNavInkBarDirective } from './nav-ink-bar.directive';
6
7
  import { ThyNavItemDirective } from './nav-item.directive';
7
- import { ThyNavLocale } from 'ngx-tethys/i18n';
8
8
  import * as i0 from "@angular/core";
9
9
  export type ThyNavType = 'pulled' | 'tabs' | 'pills' | 'lite' | 'card' | 'primary' | 'secondary' | 'thirdly' | 'secondary-divider';
10
10
  export type ThyNavSize = 'lg' | 'md' | 'sm';
@@ -20,10 +20,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
20
20
  private changeDetectorRef;
21
21
  private popover;
22
22
  private readonly destroyRef;
23
- type: ThyNavType;
24
- private size;
25
23
  initialized: boolean;
26
- horizontal: ThyNavHorizontal;
27
24
  wrapperOffset: {
28
25
  height: number;
29
26
  width: number;
@@ -42,33 +39,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
42
39
  * @type pulled | tabs | pills | lite | primary | secondary | thirdly | secondary-divider
43
40
  * @default pulled
44
41
  */
45
- set thyType(type: ThyNavType);
42
+ readonly thyType: import("@angular/core").InputSignal<ThyNavType>;
46
43
  /**
47
44
  * 导航大小
48
45
  * @type lg | md | sm
49
46
  * @default md
50
47
  */
51
- set thySize(size: ThyNavSize);
48
+ readonly thySize: import("@angular/core").InputSignal<ThyNavSize>;
52
49
  /**
53
50
  * 水平排列
54
51
  * @type '' | 'start' | 'center' | 'end'
55
52
  * @default false
56
53
  */
57
- set thyHorizontal(horizontal: ThyNavHorizontal);
54
+ readonly thyHorizontal: import("@angular/core").InputSignal<ThyNavHorizontal>;
58
55
  /**
59
56
  * 是否垂直排列
60
57
  * @default false
61
58
  */
62
- thyVertical: boolean;
59
+ readonly thyVertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
63
60
  /**
64
61
  * 是否是填充模式
65
62
  */
66
- thyFill: boolean;
63
+ readonly thyFill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
67
64
  /**
68
65
  * 是否响应式,自动计算宽度存放 thyNavItem,并添加更多弹框
69
66
  * @default false
70
67
  */
71
- thyResponsive: boolean;
68
+ readonly thyResponsive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
72
69
  /**
73
70
  * 支持暂停自适应计算
74
71
  */
@@ -77,7 +74,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
77
74
  * 更多操作的菜单点击内部是否可关闭
78
75
  * @deprecated please use thyPopoverOptions
79
76
  */
80
- thyInsideClosable: boolean;
77
+ readonly thyInsideClosable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
81
78
  /**
82
79
  * 更多菜单弹出框的参数,底层使用 Popover 组件
83
80
  * @type ThyPopoverConfig
@@ -87,7 +84,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
87
84
  * 右侧额外区域模板
88
85
  * @type TemplateRef
89
86
  */
90
- thyExtra: TemplateRef<unknown>;
87
+ readonly thyExtra: import("@angular/core").InputSignal<TemplateRef<unknown>>;
91
88
  /**
92
89
  * @private
93
90
  */
@@ -96,30 +93,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
96
93
  /**
97
94
  * @private
98
95
  */
99
- routers: QueryList<RouterLinkActive>;
96
+ readonly routers: Signal<readonly RouterLinkActive[]>;
100
97
  /**
101
98
  * 响应式模式下更多操作模板
102
99
  * @type TemplateRef
103
100
  */
104
- moreOperation: TemplateRef<unknown>;
101
+ readonly moreOperation: Signal<TemplateRef<unknown>>;
105
102
  /**
106
103
  * 响应式模式下更多弹框模板
107
104
  * @type TemplateRef
108
105
  */
109
- morePopover: TemplateRef<unknown>;
106
+ readonly morePopover: Signal<TemplateRef<unknown>>;
110
107
  /**
111
108
  * 右侧额外区域模板,支持 thyExtra 传参和 <ng-template #extra></ng-template> 模板
112
109
  * @name extra
113
110
  * @type TemplateRef
114
111
  */
115
- extra: TemplateRef<unknown>;
116
- defaultMoreOperation: ElementRef<HTMLAnchorElement>;
117
- inkBar: ThyNavInkBarDirective;
112
+ readonly extra: Signal<TemplateRef<unknown>>;
113
+ readonly defaultMoreOperation: Signal<ElementRef<HTMLAnchorElement>>;
114
+ readonly inkBar: Signal<ThyNavInkBarDirective>;
115
+ readonly horizontal: Signal<string>;
118
116
  get showInkBar(): boolean;
119
117
  private updateClasses;
120
118
  private curActiveIndex;
121
119
  private prevActiveIndex;
122
120
  private navSubscription;
121
+ readonly type: Signal<ThyNavType>;
122
+ constructor();
123
123
  ngOnInit(): void;
124
124
  ngAfterViewInit(): void;
125
125
  ngAfterContentInit(): void;
@@ -138,33 +138,5 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
138
138
  ngOnChanges(changes: SimpleChanges): void;
139
139
  ngOnDestroy(): void;
140
140
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyNav, never>;
141
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; }; "thyVertical": { "alias": "thyVertical"; "required": false; }; "thyFill": { "alias": "thyFill"; "required": false; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; }; }, {}, ["moreOperation", "morePopover", "extra", "links", "routers"], ["*"], true, never>;
142
- static ngAcceptInputType_thyVertical: boolean | string |
143
- /**
144
- * 导航组件
145
- * @name thy-nav
146
- * @order 10
147
- */
148
- number;
149
- static ngAcceptInputType_thyFill: boolean | string |
150
- /**
151
- * 导航组件
152
- * @name thy-nav
153
- * @order 10
154
- */
155
- number;
156
- static ngAcceptInputType_thyResponsive: boolean | string |
157
- /**
158
- * 导航组件
159
- * @name thy-nav
160
- * @order 10
161
- */
162
- number;
163
- static ngAcceptInputType_thyInsideClosable: boolean | string |
164
- /**
165
- * 导航组件
166
- * @name thy-nav
167
- * @order 10
168
- */
169
- number;
141
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; "isSignal": true; }; "thyVertical": { "alias": "thyVertical"; "required": false; "isSignal": true; }; "thyFill": { "alias": "thyFill"; "required": false; "isSignal": true; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; "isSignal": true; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; "isSignal": true; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; "isSignal": true; }; }, {}, ["routers", "moreOperation", "morePopover", "extra", "links"], ["*"], true, never>;
170
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "19.0.13",
3
+ "version": "19.1.0-next.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/atinc/ngx-tethys.git"
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, TemplateRef, Signal } from '@angular/core';
1
+ import { TemplateRef, Signal, WritableSignal, ModelSignal } from '@angular/core';
2
2
  import { isTemplateRef } from 'ngx-tethys/util';
3
3
  import { ThyPaginationConfigModel } from './pagination.class';
4
4
  import { ThyI18nLocale, ThyPaginationLocale } from 'ngx-tethys/i18n';
@@ -8,186 +8,125 @@ import * as i0 from "@angular/core";
8
8
  * @name thy-pagination
9
9
  * @order 10
10
10
  */
11
- export declare class ThyPagination implements OnInit {
11
+ export declare class ThyPagination {
12
12
  private paginationConfig;
13
- private cdr;
14
13
  allLocale: Signal<ThyI18nLocale>;
15
- locale: Signal<ThyPaginationLocale>;
14
+ paginationLocale: Signal<ThyPaginationLocale>;
16
15
  isTemplateRef: typeof isTemplateRef;
17
- config: ThyPaginationConfigModel;
18
16
  /**
19
17
  * 设置当前页,支持双向绑定
20
18
  * @default 1
21
19
  */
22
- set thyPageIndex(pageIndex: number);
20
+ readonly thyPageIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
23
21
  /**
24
22
  * 每页条目数量
25
23
  * @default 20
26
24
  */
27
- set thyPageSize(pageSize: number);
25
+ readonly thyPageSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
28
26
  /**
29
- * 总页数 与 totalPages 二选一传入
27
+ * 数据总数
30
28
  */
31
- set thyTotal(total: number);
29
+ readonly thyTotal: import("@angular/core").InputSignalWithTransform<number, unknown>;
32
30
  /**
33
31
  * 自定义分页页码,设置自定义分页页码后将不根据 Total 和 PageSize 来自动计算页码,完全以传入的页码为准
34
32
  * @type number[]
35
33
  */
36
- set thyCustomPages(pages: number[]);
34
+ readonly thyCustomPages: import("@angular/core").InputSignal<number[]>;
37
35
  /**
38
36
  * 是否禁用
39
37
  */
40
- disabled: boolean;
38
+ readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
41
39
  /**
42
40
  * 是否显示快速跳转
43
41
  * @default false
44
42
  */
45
- set showQuickJumper(value: boolean);
43
+ readonly thyShowQuickJumper: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
46
44
  /**
47
45
  * 设置是否显示总页数信息
48
46
  * @default true
49
47
  */
50
- set showTotalPageCount(value: boolean);
48
+ readonly thyShowTotalPageCount: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
51
49
  /**
52
50
  * 设置分页组件的大小
53
51
  * @type sm | md | lg
54
52
  * @default md
55
53
  */
56
- set size(size: 'sm' | 'md' | 'lg');
54
+ readonly thySize: import("@angular/core").InputSignal<"sm" | "md" | "lg">;
57
55
  /**
58
56
  * 设置最大显示数量,超出最大显示数后会自动进行分割显示
59
57
  * @default 9
60
58
  */
61
- set maxCount(value: number);
59
+ readonly thyMaxCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
62
60
  /**
63
61
  * 设置边缘显示数量
64
62
  * @default 2
65
63
  */
66
- marginalCount: number;
64
+ readonly thyMarginalCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
67
65
  /**
68
66
  * 设置中间区域显示数量
69
67
  * @default 5
70
68
  */
71
- set thyRangeCount(value: number);
72
- set showSizeChanger(value: boolean);
69
+ readonly thyRangeCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
70
+ /**
71
+ * 是否显示分页大小选择器
72
+ * @default false
73
+ */
74
+ readonly thyShowSizeChanger: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
73
75
  /**
74
76
  * @type number[]
75
77
  */
76
- set pageSizeOptions(value: number[]);
78
+ readonly thyPageSizeOptions: import("@angular/core").InputSignal<number[]>;
77
79
  /**
78
80
  * 只有一页时是否隐藏分页器
79
81
  * @default false
80
82
  */
81
- hideOnSinglePage: boolean;
83
+ readonly thyHideOnSinglePage: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
82
84
  /**
83
85
  * 分页器单位
84
86
  * @default 条
85
87
  */
86
- set unit(value: string);
88
+ readonly thyUnit: import("@angular/core").InputSignal<string>;
89
+ /**
90
+ * 是否显示范围和total
91
+ * @default false
92
+ */
93
+ readonly thyShowTotal: import("@angular/core").InputSignal<boolean | TemplateRef<{
94
+ $implicit: number;
95
+ range: {
96
+ from: number;
97
+ to: number;
98
+ };
99
+ }>>;
87
100
  /**
88
101
  * 页码改变的回调
89
102
  */
90
- pageIndexChange: EventEmitter<number>;
103
+ readonly thyPageIndexChange: import("@angular/core").OutputEmitterRef<number>;
91
104
  /**
92
105
  * 与Bootstrap pagination 兼容,后续版本会进行删除,参数保持与 bootstrap 一致
93
106
  */
94
- pageChanged: EventEmitter<{
107
+ readonly thyPageChanged: import("@angular/core").OutputEmitterRef<{
95
108
  page: number;
96
109
  }>;
97
- pageSizeChanged: EventEmitter<number>;
98
- pages: {
99
- index?: number;
100
- text?: string;
101
- active?: boolean;
102
- }[];
103
- pageIndex: number;
104
- pageSize: number;
105
- pageCount: number;
106
- customPages: number[];
107
- total: number;
108
- range: {
110
+ readonly thyPageSizeChanged: import("@angular/core").OutputEmitterRef<number>;
111
+ currentPageIndex: WritableSignal<number>;
112
+ currentPageSize: WritableSignal<number>;
113
+ selectedPageSize: ModelSignal<number>;
114
+ firstIndex: number;
115
+ computedConfig: Signal<ThyPaginationConfigModel>;
116
+ marginalCount: Signal<number>;
117
+ computedPageCount: Signal<number>;
118
+ computedPages: Signal<any[]>;
119
+ computedRange: Signal<{
109
120
  from: number;
110
121
  to: number;
111
- };
112
- firstIndex: number;
113
- isHideOnSinglePage: boolean;
114
- private initialized;
115
- private hostRenderer;
116
- selectSize: string;
117
- selectPageSize: Number;
118
- isPaginationClass: boolean;
119
- /**
120
- * 是否显示范围和total
121
- * @default false
122
- */
123
- showTotal: boolean | TemplateRef<{
124
- $implicit: number;
125
- range: {
126
- from: number;
127
- to: number;
128
- };
129
122
  }>;
130
- ngOnInit(): void;
131
- private setMarginalCount;
123
+ constructor();
132
124
  private setPageIndex;
133
- private calculatePageCount;
134
125
  private makePage;
135
- private initializePages;
136
126
  private pageChange;
137
127
  selectPage(pageIndex: number): void;
138
128
  jumpPage(input: HTMLInputElement): void;
139
129
  onPageSizeChange(event: number): void;
140
130
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyPagination, never>;
141
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyPagination, "thy-pagination", never, { "thyPageIndex": { "alias": "thyPageIndex"; "required": false; }; "thyPageSize": { "alias": "thyPageSize"; "required": false; }; "thyTotal": { "alias": "thyTotal"; "required": false; }; "thyCustomPages": { "alias": "thyCustomPages"; "required": false; }; "disabled": { "alias": "thyDisabled"; "required": false; }; "showQuickJumper": { "alias": "thyShowQuickJumper"; "required": false; }; "showTotalPageCount": { "alias": "thyShowTotalPageCount"; "required": false; }; "size": { "alias": "thySize"; "required": false; }; "maxCount": { "alias": "thyMaxCount"; "required": false; }; "marginalCount": { "alias": "thyMarginalCount"; "required": false; }; "thyRangeCount": { "alias": "thyRangeCount"; "required": false; }; "showSizeChanger": { "alias": "thyShowSizeChanger"; "required": false; }; "pageSizeOptions": { "alias": "thyPageSizeOptions"; "required": false; }; "hideOnSinglePage": { "alias": "thyHideOnSinglePage"; "required": false; }; "unit": { "alias": "thyUnit"; "required": false; }; "showTotal": { "alias": "thyShowTotal"; "required": false; }; }, { "pageIndexChange": "thyPageIndexChange"; "pageChanged": "thyPageChanged"; "pageSizeChanged": "thyPageSizeChanged"; }, never, never, true, never>;
142
- static ngAcceptInputType_thyPageIndex: unknown;
143
- static ngAcceptInputType_thyPageSize: unknown;
144
- static ngAcceptInputType_thyTotal: unknown;
145
- static ngAcceptInputType_disabled: boolean | string
146
- /**
147
- * 设置当前页,支持双向绑定
148
- * @default 1
149
- */
150
- | /**
151
- * 设置当前页,支持双向绑定
152
- * @default 1
153
- */ number;
154
- static ngAcceptInputType_showQuickJumper: boolean | string
155
- /**
156
- * 设置当前页,支持双向绑定
157
- * @default 1
158
- */
159
- | /**
160
- * 设置当前页,支持双向绑定
161
- * @default 1
162
- */ number;
163
- static ngAcceptInputType_showTotalPageCount: boolean | string
164
- /**
165
- * 设置当前页,支持双向绑定
166
- * @default 1
167
- */
168
- | /**
169
- * 设置当前页,支持双向绑定
170
- * @default 1
171
- */ number;
172
- static ngAcceptInputType_maxCount: unknown;
173
- static ngAcceptInputType_marginalCount: unknown;
174
- static ngAcceptInputType_thyRangeCount: unknown;
175
- static ngAcceptInputType_showSizeChanger: boolean | string
176
- /**
177
- * 设置当前页,支持双向绑定
178
- * @default 1
179
- */
180
- | /**
181
- * 设置当前页,支持双向绑定
182
- * @default 1
183
- */ number;
184
- static ngAcceptInputType_hideOnSinglePage: boolean | string
185
- /**
186
- * 设置当前页,支持双向绑定
187
- * @default 1
188
- */
189
- | /**
190
- * 设置当前页,支持双向绑定
191
- * @default 1
192
- */ number;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyPagination, "thy-pagination", never, { "thyPageIndex": { "alias": "thyPageIndex"; "required": false; "isSignal": true; }; "thyPageSize": { "alias": "thyPageSize"; "required": false; "isSignal": true; }; "thyTotal": { "alias": "thyTotal"; "required": false; "isSignal": true; }; "thyCustomPages": { "alias": "thyCustomPages"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyShowQuickJumper": { "alias": "thyShowQuickJumper"; "required": false; "isSignal": true; }; "thyShowTotalPageCount": { "alias": "thyShowTotalPageCount"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyMaxCount": { "alias": "thyMaxCount"; "required": false; "isSignal": true; }; "thyMarginalCount": { "alias": "thyMarginalCount"; "required": false; "isSignal": true; }; "thyRangeCount": { "alias": "thyRangeCount"; "required": false; "isSignal": true; }; "thyShowSizeChanger": { "alias": "thyShowSizeChanger"; "required": false; "isSignal": true; }; "thyPageSizeOptions": { "alias": "thyPageSizeOptions"; "required": false; "isSignal": true; }; "thyHideOnSinglePage": { "alias": "thyHideOnSinglePage"; "required": false; "isSignal": true; }; "thyUnit": { "alias": "thyUnit"; "required": false; "isSignal": true; }; "thyShowTotal": { "alias": "thyShowTotal"; "required": false; "isSignal": true; }; "selectedPageSize": { "alias": "selectedPageSize"; "required": false; "isSignal": true; }; }, { "thyPageIndexChange": "thyPageIndexChange"; "thyPageChanged": "thyPageChanged"; "thyPageSizeChanged": "thyPageSizeChanged"; "selectedPageSize": "selectedPageSizeChange"; }, never, never, true, never>;
193
132
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
1
+ import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * 悬浮层头部组件
@@ -11,24 +11,25 @@ export declare class ThyPopoverHeader {
11
11
  /**
12
12
  * 头部标题
13
13
  */
14
- thyTitle: string;
14
+ readonly thyTitle: import("@angular/core").InputSignal<string>;
15
15
  /**
16
16
  * 标题的多语言 Key
17
17
  */
18
- set thyTitleTranslationKey(key: string);
18
+ readonly thyTitleTranslationKey: import("@angular/core").InputSignal<string>;
19
+ protected readonly titleSignal: import("@angular/core").Signal<any>;
19
20
  /**
20
21
  * 自定义头部模板
21
22
  * @type TemplateRef
22
23
  */
23
- headerTemplate: TemplateRef<any>;
24
+ headerTemplate: import("@angular/core").Signal<TemplateRef<any>>;
24
25
  /**
25
26
  * @internal
26
27
  */
27
- thyClosed: EventEmitter<Event>;
28
+ readonly thyClosed: import("@angular/core").OutputEmitterRef<Event>;
28
29
  /**
29
30
  * @internal
30
31
  */
31
32
  close(event: Event): void;
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyPopoverHeader, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyPopoverHeader, "thy-popover-header", ["thyPopoverHeader"], { "thyTitle": { "alias": "thyTitle"; "required": false; }; "thyTitleTranslationKey": { "alias": "thyTitleTranslationKey"; "required": false; }; }, { "thyClosed": "thyClosed"; }, ["headerTemplate"], never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyPopoverHeader, "thy-popover-header", ["thyPopoverHeader"], { "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; "thyTitleTranslationKey": { "alias": "thyTitleTranslationKey"; "required": false; "isSignal": true; }; }, { "thyClosed": "thyClosed"; }, ["headerTemplate"], never, true, never>;
34
35
  }
@@ -4,6 +4,7 @@ import { ThyOverlayDirectiveBase, ThyOverlayTrigger, ThyPlacement } from 'ngx-te
4
4
  import { ComponentType } from '@angular/cdk/portal';
5
5
  import { ThyPopoverConfig } from './popover.config';
6
6
  import * as i0 from "@angular/core";
7
+ import * as i1 from "ngx-tethys/util";
7
8
  /**
8
9
  * 弹出悬浮层指令
9
10
  * @name thyPopover
@@ -18,36 +19,36 @@ export declare class ThyPopoverDirective extends ThyOverlayDirectiveBase impleme
18
19
  /**
19
20
  * 悬浮组件或者模板
20
21
  */
21
- content: ComponentType<any> | TemplateRef<any>;
22
+ readonly content: import("@angular/core").InputSignal<TemplateRef<any> | ComponentType<any>>;
22
23
  /**
23
24
  * 弹出悬浮层的触发方式
24
25
  */
25
- set thyTrigger(trigger: ThyOverlayTrigger);
26
+ readonly thyTrigger: import("@angular/core").InputSignal<ThyOverlayTrigger>;
26
27
  /**
27
28
  * 弹出悬浮层的位置
28
29
  * @type top | topLeft | topRight | bottom | bottomLeft | bottomRight | left | leftTop | leftBottom | right | rightTop | rightBottom
29
30
  */
30
- thyPlacement: ThyPlacement;
31
+ readonly thyPlacement: import("@angular/core").InputSignal<ThyPlacement>;
31
32
  /**
32
33
  * 弹出悬浮层的偏移量
33
34
  */
34
- thyOffset: number;
35
+ readonly thyOffset: import("@angular/core").InputSignalWithTransform<number, unknown>;
35
36
  /**
36
37
  * 弹出悬浮层的配置
37
38
  */
38
- thyConfig: ThyPopoverConfig;
39
+ readonly thyConfig: import("@angular/core").InputSignal<ThyPopoverConfig<unknown>>;
39
40
  /**
40
41
  * 显示延迟时间
41
42
  */
42
- set thyShowDelay(value: number);
43
+ readonly thyShowDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
43
44
  /**
44
45
  * 隐藏延迟时间
45
46
  */
46
- set thyHideDelay(value: number);
47
+ readonly thyHideDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
47
48
  /**
48
49
  * 自动适配内容变化重新计算位置
49
50
  */
50
- thyAutoAdaptive: boolean;
51
+ readonly thyAutoAdaptive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
51
52
  /**
52
53
  * 是否禁用打开悬浮层
53
54
  * @default false
@@ -61,14 +62,6 @@ export declare class ThyPopoverDirective extends ThyOverlayDirectiveBase impleme
61
62
  hide(delay?: number): void;
62
63
  ngOnDestroy(): void;
63
64
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyPopoverDirective, never>;
64
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyPopoverDirective, "[thyPopover]", never, { "content": { "alias": "thyPopover"; "required": false; }; "thyTrigger": { "alias": "thyTrigger"; "required": false; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; }; "thyOffset": { "alias": "thyOffset"; "required": false; }; "thyConfig": { "alias": "thyConfig"; "required": false; }; "thyShowDelay": { "alias": "thyShowDelay"; "required": false; }; "thyHideDelay": { "alias": "thyHideDelay"; "required": false; }; "thyAutoAdaptive": { "alias": "thyAutoAdaptive"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
65
- static ngAcceptInputType_thyOffset: unknown;
66
- static ngAcceptInputType_thyShowDelay: unknown;
67
- static ngAcceptInputType_thyHideDelay: unknown;
68
- static ngAcceptInputType_thyAutoAdaptive: boolean | string | number /**
69
- * 自动适配内容变化重新计算位置
70
- */;
71
- static ngAcceptInputType_thyDisabled: boolean | string | number /**
72
- * 自动适配内容变化重新计算位置
73
- */;
65
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyPopoverDirective, "[thyPopover]", never, { "content": { "alias": "thyPopover"; "required": false; "isSignal": true; }; "thyTrigger": { "alias": "thyTrigger"; "required": false; "isSignal": true; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; "isSignal": true; }; "thyOffset": { "alias": "thyOffset"; "required": false; "isSignal": true; }; "thyConfig": { "alias": "thyConfig"; "required": false; "isSignal": true; }; "thyShowDelay": { "alias": "thyShowDelay"; "required": false; "isSignal": true; }; "thyHideDelay": { "alias": "thyHideDelay"; "required": false; "isSignal": true; }; "thyAutoAdaptive": { "alias": "thyAutoAdaptive"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
66
+ static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
74
67
  }
@@ -1,34 +1,45 @@
1
1
  import { OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { ThyProgressCirclePath, ThyProgressGapPositionType, ThyProgressPathStyle, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
2
+ import { ThyProgressGapPositionType, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * @private
6
6
  */
7
7
  export declare class ThyProgressCircle implements OnInit, OnChanges {
8
8
  private hostRenderer;
9
- set thyType(type: ThyProgressType);
10
- set thySize(size: string | number);
11
- thyValue: number | ThyProgressStackedValue[];
12
- thyMax: number;
13
- thyTips: string | TemplateRef<unknown>;
14
- thyShape: ThyProgressShapeType;
15
- thyGapDegree?: number;
16
- thyGapPosition: ThyProgressGapPositionType;
17
- thyStrokeWidth: number;
18
- trailPathStyle: ThyProgressPathStyle | null;
19
- progressCirclePath: ThyProgressCirclePath[];
20
- pathString?: string;
21
- width: number;
22
- progressSize: string;
9
+ readonly thyType: import("@angular/core").InputSignal<ThyProgressType>;
10
+ readonly thySize: import("@angular/core").InputSignal<string | number>;
11
+ readonly thyValue: import("@angular/core").InputSignal<number | ThyProgressStackedValue[]>;
12
+ readonly thyMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
13
+ readonly thyTips: import("@angular/core").InputSignal<string | TemplateRef<unknown>>;
14
+ readonly thyShape: import("@angular/core").InputSignal<ThyProgressShapeType>;
15
+ readonly thyGapDegree: import("@angular/core").InputSignalWithTransform<number, unknown>;
16
+ readonly thyGapPosition: import("@angular/core").InputSignal<ThyProgressGapPositionType>;
17
+ readonly thyStrokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
23
18
  get strokeWidth(): number;
24
- value: number | ThyProgressStackedValue[];
19
+ readonly progressSize: import("@angular/core").Signal<string>;
20
+ readonly width: import("@angular/core").Signal<number>;
21
+ readonly circle: import("@angular/core").Signal<{
22
+ pathString: string;
23
+ trailPathStyle: {
24
+ strokeDasharray: string;
25
+ strokeDashoffset: string;
26
+ transition: string;
27
+ };
28
+ progressCirclePath: {
29
+ stroke: string;
30
+ value: number;
31
+ className: string;
32
+ strokePathStyle: {
33
+ stroke: string;
34
+ transition: string;
35
+ strokeDasharray: string;
36
+ strokeDashoffset: string;
37
+ };
38
+ }[];
39
+ }>;
25
40
  constructor();
26
41
  ngOnInit(): void;
27
42
  ngOnChanges(changes: SimpleChanges): void;
28
- private createCircleProgress;
29
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgressCircle, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressCircle, "thy-progress-circle", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyMax": { "alias": "thyMax"; "required": false; }; "thyTips": { "alias": "thyTips"; "required": false; }; "thyShape": { "alias": "thyShape"; "required": false; }; "thyGapDegree": { "alias": "thyGapDegree"; "required": false; }; "thyGapPosition": { "alias": "thyGapPosition"; "required": false; }; "thyStrokeWidth": { "alias": "thyStrokeWidth"; "required": false; }; }, {}, never, ["*"], true, never>;
31
- static ngAcceptInputType_thyMax: unknown;
32
- static ngAcceptInputType_thyGapDegree: unknown;
33
- static ngAcceptInputType_thyStrokeWidth: unknown;
44
+ 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>;
34
45
  }
@@ -1,9 +1,9 @@
1
- import { InjectionToken, TemplateRef } from '@angular/core';
1
+ import { InjectionToken, TemplateRef, Signal } from '@angular/core';
2
2
  import { ThyProgressType } from './interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface ThyParentProgress {
5
- max: number;
6
- bars: ThyProgressStrip[];
5
+ readonly max: Signal<number>;
6
+ readonly bars: Signal<readonly ThyProgressStrip[]>;
7
7
  }
8
8
  export declare const THY_PROGRESS_COMPONENT: InjectionToken<ThyParentProgress>;
9
9
  /**
@@ -11,17 +11,13 @@ export declare const THY_PROGRESS_COMPONENT: InjectionToken<ThyParentProgress>;
11
11
  */
12
12
  export declare class ThyProgressStrip {
13
13
  private progress;
14
- private value;
15
14
  private hostRenderer;
16
- color: string;
17
- isProgressBar: boolean;
18
- percent: number;
19
- thyTips: string | TemplateRef<HTMLElement>;
20
- set thyType(type: ThyProgressType);
21
- set thyValue(value: number);
22
- set thyColor(color: string);
23
- recalculatePercentage(): void;
15
+ readonly thyTips: import("@angular/core").InputSignal<string | TemplateRef<HTMLElement>>;
16
+ readonly thyType: import("@angular/core").InputSignal<ThyProgressType>;
17
+ readonly thyValue: import("@angular/core").InputSignalWithTransform<number, unknown>;
18
+ readonly thyColor: import("@angular/core").InputSignal<string>;
19
+ protected readonly percent: Signal<number>;
20
+ constructor();
24
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgressStrip, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressStrip, "thy-progress-bar", never, { "thyTips": { "alias": "thyTips"; "required": false; }; "thyType": { "alias": "thyType"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyColor": { "alias": "thyColor"; "required": false; }; }, {}, never, ["*"], true, never>;
26
- static ngAcceptInputType_thyValue: unknown;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressStrip, "thy-progress-bar", never, { "thyTips": { "alias": "thyTips"; "required": false; "isSignal": true; }; "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
27
23
  }