ngx-tethys 19.0.16 → 19.1.0-next.1

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 (322) hide show
  1. package/CHANGELOG.md +31 -11
  2. package/README.md +0 -1
  3. package/action/action.component.d.ts +14 -23
  4. package/action/actions.component.d.ts +5 -7
  5. package/affix/affix.component.d.ts +9 -13
  6. package/alert/alert.component.d.ts +1 -1
  7. package/anchor/anchor-link.component.d.ts +8 -8
  8. package/anchor/anchor.component.d.ts +15 -21
  9. package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
  10. package/autocomplete/autocomplete.component.d.ts +10 -17
  11. package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
  12. package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
  13. package/avatar/avatar.component.d.ts +25 -39
  14. package/back-top/back-top.component.d.ts +9 -12
  15. package/badge/badge.component.d.ts +19 -59
  16. package/breadcrumb/breadcrumb.component.d.ts +15 -20
  17. package/button/button-group.component.d.ts +5 -12
  18. package/button/button-icon.component.d.ts +14 -27
  19. package/button/button.component.d.ts +17 -26
  20. package/calendar/calendar-header.component.d.ts +9 -8
  21. package/calendar/calendar.component.d.ts +16 -16
  22. package/card/card.component.d.ts +5 -11
  23. package/card/content.component.d.ts +3 -8
  24. package/card/header.component.d.ts +7 -8
  25. package/carousel/carousel.component.d.ts +22 -27
  26. package/cascader/cascader-li.component.d.ts +13 -21
  27. package/cascader/cascader-search-option.component.d.ts +8 -16
  28. package/cascader/cascader.component.d.ts +58 -80
  29. package/checkbox/checkbox.component.d.ts +2 -5
  30. package/collapse/collapse-item.component.d.ts +12 -19
  31. package/collapse/collapse.component.d.ts +6 -12
  32. package/collapse/collapse.token.d.ts +3 -3
  33. package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
  34. package/color-picker/color-picker-panel.component.d.ts +7 -11
  35. package/color-picker/color-picker.component.d.ts +19 -35
  36. package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
  37. package/color-picker/parts/hue/hue.component.d.ts +6 -6
  38. package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
  39. package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
  40. package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
  41. package/comment/comment.component.d.ts +4 -5
  42. package/copy/copy.directive.d.ts +8 -9
  43. package/date-picker/abstract-picker.component.d.ts +8 -7
  44. package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
  45. package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
  46. package/date-picker/picker.component.d.ts +2 -1
  47. package/date-range/date-range.component.d.ts +2 -2
  48. package/dialog/body/dialog-body.component.d.ts +2 -6
  49. package/dialog/confirm/confirm.component.d.ts +2 -2
  50. package/dialog/footer/dialog-footer.component.d.ts +6 -9
  51. package/dialog/header/dialog-header.component.d.ts +9 -11
  52. package/divider/divider.component.d.ts +12 -16
  53. package/dot/dot.component.d.ts +5 -13
  54. package/drag-drop/drag-handle.directive.d.ts +2 -1
  55. package/drag-drop/drag.directive.d.ts +2 -1
  56. package/drag-drop/drop-container.directive.d.ts +2 -1
  57. package/dropdown/dropdown-active.directive.d.ts +4 -5
  58. package/dropdown/dropdown-menu-item.directive.d.ts +7 -14
  59. package/dropdown/dropdown-menu.component.d.ts +6 -12
  60. package/dropdown/dropdown-submenu.component.d.ts +2 -4
  61. package/dropdown/dropdown.directive.d.ts +14 -24
  62. package/empty/empty.component.d.ts +21 -27
  63. package/fesm2022/ngx-tethys-action.mjs +63 -101
  64. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  65. package/fesm2022/ngx-tethys-affix.mjs +40 -41
  66. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  67. package/fesm2022/ngx-tethys-anchor.mjs +91 -118
  68. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
  70. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  71. package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
  72. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  73. package/fesm2022/ngx-tethys-avatar.mjs +117 -162
  74. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  75. package/fesm2022/ngx-tethys-back-top.mjs +33 -46
  76. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  77. package/fesm2022/ngx-tethys-badge.mjs +104 -208
  78. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  79. package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
  80. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  81. package/fesm2022/ngx-tethys-button.mjs +225 -322
  82. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  83. package/fesm2022/ngx-tethys-calendar.mjs +85 -87
  84. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  85. package/fesm2022/ngx-tethys-card.mjs +72 -77
  86. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  87. package/fesm2022/ngx-tethys-carousel.mjs +83 -99
  88. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  89. package/fesm2022/ngx-tethys-cascader.mjs +313 -468
  90. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  91. package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
  92. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  93. package/fesm2022/ngx-tethys-collapse.mjs +66 -71
  94. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  95. package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
  96. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  97. package/fesm2022/ngx-tethys-comment.mjs +16 -10
  98. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  99. package/fesm2022/ngx-tethys-copy.mjs +25 -28
  100. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  101. package/fesm2022/ngx-tethys-dialog.mjs +81 -82
  102. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  103. package/fesm2022/ngx-tethys-divider.mjs +49 -58
  104. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  105. package/fesm2022/ngx-tethys-dot.mjs +45 -68
  106. package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
  107. package/fesm2022/ngx-tethys-dropdown.mjs +155 -203
  108. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  109. package/fesm2022/ngx-tethys-empty.mjs +107 -95
  110. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  111. package/fesm2022/ngx-tethys-flexible-text.mjs +67 -86
  112. package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
  113. package/fesm2022/ngx-tethys-form.mjs +161 -200
  114. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  115. package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
  116. package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
  117. package/fesm2022/ngx-tethys-grid.mjs +161 -158
  118. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  119. package/fesm2022/ngx-tethys-i18n.mjs +25 -25
  120. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  121. package/fesm2022/ngx-tethys-icon.mjs +44 -59
  122. package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
  123. package/fesm2022/ngx-tethys-image.mjs +40 -36
  124. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  125. package/fesm2022/ngx-tethys-input-number.mjs +101 -114
  126. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  127. package/fesm2022/ngx-tethys-input.mjs +268 -271
  128. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  129. package/fesm2022/ngx-tethys-list.mjs +1 -1
  130. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  131. package/fesm2022/ngx-tethys-loading.mjs +17 -35
  132. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  133. package/fesm2022/ngx-tethys-mention.mjs +52 -74
  134. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  135. package/fesm2022/ngx-tethys-menu.mjs +106 -179
  136. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  137. package/fesm2022/ngx-tethys-nav.mjs +169 -201
  138. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  139. package/fesm2022/ngx-tethys-pagination.mjs +230 -294
  140. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  141. package/fesm2022/ngx-tethys-popover.mjs +67 -70
  142. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  143. package/fesm2022/ngx-tethys-progress.mjs +194 -246
  144. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  145. package/fesm2022/ngx-tethys-property.mjs +99 -113
  146. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  147. package/fesm2022/ngx-tethys-radio.mjs +60 -76
  148. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  149. package/fesm2022/ngx-tethys-rate.mjs +115 -157
  150. package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
  151. package/fesm2022/ngx-tethys-resizable.mjs +111 -157
  152. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  153. package/fesm2022/ngx-tethys-result.mjs +46 -28
  154. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  155. package/fesm2022/ngx-tethys-segment.mjs +84 -103
  156. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  157. package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
  158. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  159. package/fesm2022/ngx-tethys-slide.mjs +37 -56
  160. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  161. package/fesm2022/ngx-tethys-slider.mjs +75 -108
  162. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  163. package/fesm2022/ngx-tethys-space.mjs +25 -51
  164. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  165. package/fesm2022/ngx-tethys-statistic.mjs +114 -151
  166. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  167. package/fesm2022/ngx-tethys-stepper.mjs +74 -107
  168. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  169. package/fesm2022/ngx-tethys-strength.mjs +52 -66
  170. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  171. package/fesm2022/ngx-tethys-switch.mjs +80 -140
  172. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  173. package/fesm2022/ngx-tethys-table.mjs +1 -1
  174. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  175. package/fesm2022/ngx-tethys-tabs.mjs +69 -87
  176. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  177. package/fesm2022/ngx-tethys-tag.mjs +42 -64
  178. package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
  179. package/fesm2022/ngx-tethys-timeline.mjs +104 -129
  180. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  181. package/fesm2022/ngx-tethys-transfer.mjs +98 -119
  182. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  183. package/fesm2022/ngx-tethys-tree-select.mjs +2 -4
  184. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  185. package/fesm2022/ngx-tethys-tree.mjs +281 -401
  186. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  187. package/fesm2022/ngx-tethys-typography.mjs +36 -33
  188. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  189. package/fesm2022/ngx-tethys-upload.mjs +93 -132
  190. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  191. package/fesm2022/ngx-tethys-util.mjs.map +1 -1
  192. package/fesm2022/ngx-tethys-vote.mjs +53 -99
  193. package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
  194. package/fesm2022/ngx-tethys-watermark.mjs +36 -40
  195. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  196. package/fesm2022/ngx-tethys.mjs +1 -1
  197. package/fesm2022/ngx-tethys.mjs.map +1 -1
  198. package/flexible-text/flexible-text.component.d.ts +9 -15
  199. package/form/form-group-error/form-group-error.component.d.ts +2 -3
  200. package/form/form-group-label.directive.d.ts +2 -1
  201. package/form/form-group.component.d.ts +17 -24
  202. package/form/form-submit.directive.d.ts +2 -2
  203. package/form/form.directive.d.ts +6 -8
  204. package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
  205. package/form/validator/confirm-validator.directive.d.ts +2 -2
  206. package/form/validator/unique-validator.directive.d.ts +2 -2
  207. package/fullscreen/fullscreen.component.d.ts +7 -7
  208. package/grid/flex.d.ts +13 -20
  209. package/grid/thy-col.directive.d.ts +6 -9
  210. package/grid/thy-grid-item.component.d.ts +3 -4
  211. package/grid/thy-grid.component.d.ts +11 -12
  212. package/grid/thy-row.directive.d.ts +11 -14
  213. package/icon/icon.component.d.ts +10 -17
  214. package/image/image.directive.d.ts +10 -12
  215. package/image/image.token.d.ts +5 -5
  216. package/input/input-count.component.d.ts +4 -5
  217. package/input/input-group.component.d.ts +20 -20
  218. package/input/input-search.component.d.ts +15 -20
  219. package/input/input.component.d.ts +20 -21
  220. package/input/input.directive.d.ts +4 -6
  221. package/input-number/input-number.component.d.ts +21 -29
  222. package/layout/header.component.d.ts +4 -9
  223. package/layout/sidebar-header.component.d.ts +2 -1
  224. package/layout/sidebar.component.d.ts +8 -7
  225. package/list/list.component.d.ts +2 -1
  226. package/list/selection/selection-list.d.ts +4 -3
  227. package/loading/loading.component.d.ts +4 -10
  228. package/mention/mention.directive.d.ts +6 -7
  229. package/mention/suggestions/suggestions.component.d.ts +8 -9
  230. package/menu/group/menu-group.component.d.ts +16 -33
  231. package/menu/item/action/menu-item-action.component.d.ts +7 -8
  232. package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
  233. package/menu/item/menu-item.component.d.ts +4 -4
  234. package/menu/item/name/menu-item-name.component.d.ts +2 -3
  235. package/menu/menu.component.d.ts +3 -7
  236. package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
  237. package/nav/icon-nav/icon-nav.component.d.ts +3 -8
  238. package/nav/nav-ink-bar.directive.d.ts +4 -6
  239. package/nav/nav-item.directive.d.ts +7 -10
  240. package/nav/nav.component.d.ts +20 -48
  241. package/package.json +1 -1
  242. package/pagination/pagination.component.d.ts +48 -109
  243. package/popover/header/popover-header.component.d.ts +7 -6
  244. package/popover/popover.directive.d.ts +11 -18
  245. package/progress/progress-circle.component.d.ts +35 -26
  246. package/progress/progress-strip.component.d.ts +10 -14
  247. package/progress/progress.component.d.ts +16 -26
  248. package/property/examples/single/single.component.scss +6 -0
  249. package/property/properties.component.d.ts +6 -15
  250. package/property/property-item.component.d.ts +22 -34
  251. package/property/styles/properties.scss +124 -52
  252. package/property-operation/property-operation.component.d.ts +6 -5
  253. package/radio/button/radio-button.component.d.ts +2 -2
  254. package/radio/group/radio-group.component.d.ts +13 -16
  255. package/radio/radio.component.d.ts +2 -2
  256. package/radio/radio.token.d.ts +2 -2
  257. package/rate/rate-item.component.d.ts +8 -10
  258. package/rate/rate.component.d.ts +20 -30
  259. package/resizable/resizable.directive.d.ts +18 -36
  260. package/resizable/resize-handle.component.d.ts +6 -6
  261. package/resizable/resize-handles.component.d.ts +5 -8
  262. package/result/result.component.d.ts +9 -10
  263. package/schematics/version.d.ts +1 -1
  264. package/schematics/version.js +1 -1
  265. package/segment/segment-item.component.d.ts +9 -14
  266. package/segment/segment.component.d.ts +11 -14
  267. package/segment/segment.token.d.ts +4 -3
  268. package/select/custom-select/custom-select.component.d.ts +11 -10
  269. package/select/native-select/native-select.component.d.ts +2 -1
  270. package/shared/base-form-check.component.d.ts +3 -2
  271. package/shared/directives/thy-autofocus.directive.d.ts +3 -2
  272. package/shared/directives/thy-scroll.directive.d.ts +2 -1
  273. package/shared/directives/thy-show.d.ts +2 -1
  274. package/shared/option/group/option-group.component.d.ts +2 -1
  275. package/shared/option/list-option/list-option.component.d.ts +2 -7
  276. package/shared/option/option.component.d.ts +2 -1
  277. package/shared/select/select-control/select-control.component.d.ts +7 -6
  278. package/skeleton/skeleton-circle.component.d.ts +16 -19
  279. package/skeleton/skeleton-rectangle.component.d.ts +20 -23
  280. package/skeleton/skeleton.component.d.ts +5 -6
  281. package/skeleton/stylized/bullet-list.component.d.ts +11 -13
  282. package/skeleton/stylized/list.component.d.ts +10 -12
  283. package/skeleton/stylized/paragraph.component.d.ts +12 -14
  284. package/slide/slide-body/slide-body-section.component.d.ts +2 -5
  285. package/slide/slide-header/slide-header.component.d.ts +6 -9
  286. package/slider/slider.component.d.ts +17 -24
  287. package/space/space.component.d.ts +10 -16
  288. package/statistic/statistic.component.d.ts +35 -40
  289. package/stepper/step-header.component.d.ts +6 -10
  290. package/stepper/step.component.d.ts +6 -6
  291. package/stepper/stepper.component.d.ts +15 -20
  292. package/strength/strength.component.d.ts +8 -13
  293. package/switch/switch.component.d.ts +24 -35
  294. package/table/table-column.component.d.ts +6 -5
  295. package/table/table-skeleton.component.d.ts +3 -10
  296. package/table/table.component.d.ts +11 -10
  297. package/tabs/tab-content.component.d.ts +4 -4
  298. package/tabs/tab.component.d.ts +4 -5
  299. package/tabs/tabs.component.d.ts +13 -15
  300. package/tag/tag.component.d.ts +10 -16
  301. package/time-picker/time-picker-panel.component.d.ts +3 -2
  302. package/time-picker/time-picker.component.d.ts +6 -5
  303. package/timeline/timeline-item.component.d.ts +9 -13
  304. package/timeline/timeline.component.d.ts +13 -17
  305. package/tooltip/tooltip.directive.d.ts +3 -2
  306. package/transfer/transfer-list.component.d.ts +15 -15
  307. package/transfer/transfer.component.d.ts +20 -23
  308. package/tree/tree-abstract.d.ts +5 -5
  309. package/tree/tree-node.component.d.ts +24 -46
  310. package/tree/tree.class.d.ts +4 -4
  311. package/tree/tree.component.d.ts +47 -74
  312. package/tree/tree.service.d.ts +3 -4
  313. package/tree-select/tree-select.component.d.ts +10 -9
  314. package/typography/bg-color.directive.d.ts +3 -3
  315. package/typography/text/text.component.d.ts +2 -2
  316. package/typography/text-color.directive.d.ts +3 -3
  317. package/upload/file-drop.directive.d.ts +9 -11
  318. package/upload/file-select-base.d.ts +6 -10
  319. package/upload/file-select.component.d.ts +10 -20
  320. package/util/helpers/helpers.d.ts +2 -1
  321. package/vote/vote.component.d.ts +13 -32
  322. package/watermark/watermark.directive.d.ts +7 -9
@@ -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,43 @@
1
- import { OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { ThyProgressCirclePath, ThyProgressGapPositionType, ThyProgressPathStyle, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
1
+ import { TemplateRef } from '@angular/core';
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
- 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;
23
- get strokeWidth(): number;
24
- value: number | ThyProgressStackedValue[];
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>;
18
+ readonly strokeWidth: import("@angular/core").Signal<number>;
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
- ngOnInit(): void;
27
- ngOnChanges(changes: SimpleChanges): void;
28
- private createCircleProgress;
29
41
  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;
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>;
34
43
  }
@@ -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
  }
@@ -1,4 +1,4 @@
1
- import { OnChanges, OnInit, QueryList, 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,64 +6,54 @@ import * as i0 from "@angular/core";
6
6
  * 进度条组件
7
7
  * @name thy-progress
8
8
  */
9
- export declare class ThyProgress implements ThyParentProgress, OnInit, OnChanges {
10
- value: number | ThyProgressStackedValue[];
11
- bars: ThyProgressStrip[];
12
- barsTotalValue: number;
13
- private settedMax;
9
+ export declare class ThyProgress implements ThyParentProgress {
14
10
  private hostRenderer;
15
- max: number;
16
- isStacked: boolean;
17
- set barsQueryList(value: QueryList<ThyProgressStrip>);
11
+ readonly barsTotalValue: import("@angular/core").Signal<number>;
12
+ readonly max: import("@angular/core").Signal<number>;
13
+ readonly isStacked: import("@angular/core").Signal<boolean>;
14
+ readonly bars: import("@angular/core").Signal<readonly ThyProgressStrip[]>;
18
15
  /**
19
16
  * 进度条类型: `primary` | `success` | `info` | `warning` | `danger`
20
17
  */
21
- thyType: ThyProgressType;
18
+ readonly thyType: import("@angular/core").InputSignal<ThyProgressType>;
22
19
  /**
23
20
  * 进度条大小
24
21
  * @type xs | sm | md
25
22
  * @default md
26
23
  */
27
- set thySize(size: string | number);
24
+ readonly thySize: import("@angular/core").InputSignal<string | number>;
28
25
  /**
29
26
  * 进度值,传入数字时显示百分比 = value / max * 100,当传入数组时显示多个 bar,stacked 模式的进度条
30
27
  * @type number | ThyProgressStackedValue[]
31
28
  */
32
- set thyValue(value: number | ThyProgressStackedValue[]);
29
+ readonly thyValue: import("@angular/core").InputSignalWithTransform<number | ThyProgressStackedValue[], number | ThyProgressStackedValue[]>;
33
30
  /**
34
31
  * 最大值,主要计算百分比进度的分母使用,当 thyValue 传入数组时,自动累加数组中的 value 之和为 max
35
32
  */
36
- set thyMax(max: number);
33
+ readonly thyMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
37
34
  /**
38
35
  * 鼠标移入进度条时显示的提示文案或者模板
39
36
  */
40
- thyTips: string | TemplateRef<unknown>;
37
+ readonly thyTips: import("@angular/core").InputSignal<string | TemplateRef<unknown>>;
41
38
  /**
42
39
  * 进度形状
43
40
  * @type strip | circle
44
41
  */
45
- thyShape: ThyProgressShapeType;
42
+ readonly thyShape: import("@angular/core").InputSignal<ThyProgressShapeType>;
46
43
  /**
47
44
  * 圆形进度条缺口角度,可取值 0 ~ 360
48
45
  */
49
- thyGapDegree?: number;
46
+ readonly thyGapDegree: import("@angular/core").InputSignalWithTransform<number, unknown>;
50
47
  /**
51
48
  * 圆形进度条缺口位置
52
49
  * @type top | bottom | left | right
53
50
  */
54
- thyGapPosition: ThyProgressGapPositionType;
51
+ readonly thyGapPosition: import("@angular/core").InputSignal<ThyProgressGapPositionType>;
55
52
  /**
56
53
  * 圆形进度条线的宽度
57
54
  */
58
- thyStrokeWidth: number;
59
- size: string | number;
55
+ readonly thyStrokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
60
56
  constructor();
61
- ngOnInit(): void;
62
- ngOnChanges(changes: SimpleChanges): void;
63
- calculateMax(): void;
64
57
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgress, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgress, "thy-progress", 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>;
66
- static ngAcceptInputType_thyMax: unknown;
67
- static ngAcceptInputType_thyGapDegree: unknown;
68
- static ngAcceptInputType_thyStrokeWidth: unknown;
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>;
69
59
  }
@@ -0,0 +1,6 @@
1
+ .thy-property-item {
2
+ width: 360px;
3
+ &:not(:first-child) {
4
+ margin-top: 8px;
5
+ }
6
+ }
@@ -1,34 +1,25 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { OnInit } from '@angular/core';
3
1
  import * as i0 from "@angular/core";
4
2
  export type ThyPropertiesLayout = 'horizontal' | 'vertical';
5
3
  /**
6
4
  * 属性列表组件
7
5
  * @name thy-properties
8
6
  */
9
- export declare class ThyProperties implements OnInit {
10
- layout$: BehaviorSubject<ThyPropertiesLayout>;
11
- layout: ThyPropertiesLayout;
7
+ export declare class ThyProperties {
12
8
  /**
13
9
  * 展示布局
14
10
  * @type "horizontal" | "vertical"
15
- * @default horizontal
16
11
  */
17
- set thyLayout(layout: ThyPropertiesLayout);
12
+ readonly layout: import("@angular/core").InputSignal<ThyPropertiesLayout>;
18
13
  /**
19
14
  * 设置一行的可以 property-item 的数量
20
- * @type number
21
15
  */
22
- thyColumn: number;
16
+ readonly thyColumn: import("@angular/core").InputSignalWithTransform<number, unknown>;
23
17
  /**
24
18
  * 设置编辑状态触发方法
25
19
  * @type 'hover' | 'click'
26
20
  */
27
- thyEditTrigger: 'hover' | 'click';
28
- get gridTemplateColumns(): string;
29
- constructor();
30
- ngOnInit(): void;
21
+ readonly thyEditTrigger: import("@angular/core").InputSignal<"hover" | "click">;
22
+ protected readonly gridTemplateColumns: import("@angular/core").Signal<string>;
31
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProperties, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyProperties, "thy-properties", never, { "thyLayout": { "alias": "thyLayout"; "required": false; }; "thyColumn": { "alias": "thyColumn"; "required": false; }; "thyEditTrigger": { "alias": "thyEditTrigger"; "required": false; }; }, {}, never, ["*"], true, never>;
33
- static ngAcceptInputType_thyColumn: unknown;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyProperties, "thy-properties", never, { "layout": { "alias": "thyLayout"; "required": false; "isSignal": true; }; "thyColumn": { "alias": "thyColumn"; "required": false; "isSignal": true; }; "thyEditTrigger": { "alias": "thyEditTrigger"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
34
25
  }