ngx-tethys 18.0.8 → 18.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 (275) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/alert/alert.component.d.ts +11 -19
  3. package/anchor/anchor.component.d.ts +1 -3
  4. package/badge/badge.component.d.ts +12 -3
  5. package/date-picker/index.d.ts +26 -27
  6. package/date-picker/lib/date/date-table-cell.component.d.ts +1 -1
  7. package/date-picker/lib/popups/date-popup.component.d.ts +0 -1
  8. package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
  9. package/date-range/date-range.component.d.ts +2 -8
  10. package/divider/divider.component.d.ts +8 -2
  11. package/esm2022/action/action.component.mjs +3 -4
  12. package/esm2022/alert/alert.component.mjs +55 -81
  13. package/esm2022/anchor/anchor-link.component.mjs +15 -7
  14. package/esm2022/anchor/anchor.component.mjs +17 -9
  15. package/esm2022/arrow-switcher/arrow-switcher.component.mjs +4 -5
  16. package/esm2022/autocomplete/autocomplete.component.mjs +5 -5
  17. package/esm2022/avatar/avatar-list/avatar-list.component.mjs +4 -4
  18. package/esm2022/avatar/avatar.component.mjs +4 -4
  19. package/esm2022/back-top/back-top.component.mjs +4 -4
  20. package/esm2022/badge/badge.component.mjs +3 -4
  21. package/esm2022/breadcrumb/breadcrumb.component.mjs +4 -6
  22. package/esm2022/button/button-icon.component.mjs +4 -4
  23. package/esm2022/button/button.component.mjs +4 -4
  24. package/esm2022/calendar/calendar-header.component.mjs +4 -4
  25. package/esm2022/calendar/calendar.component.mjs +3 -4
  26. package/esm2022/card/header.component.mjs +4 -4
  27. package/esm2022/carousel/carousel.component.mjs +4 -4
  28. package/esm2022/cascader/cascader-li.component.mjs +4 -4
  29. package/esm2022/cascader/cascader-search-option.component.mjs +4 -4
  30. package/esm2022/cascader/cascader.component.mjs +5 -7
  31. package/esm2022/checkbox/checkbox.component.mjs +5 -5
  32. package/esm2022/collapse/collapse-item.component.mjs +4 -4
  33. package/esm2022/color-picker/color-picker-panel.component.mjs +4 -4
  34. package/esm2022/comment/comment.component.mjs +4 -4
  35. package/esm2022/date-picker/date-picker.component.mjs +5 -6
  36. package/esm2022/date-picker/index.mjs +27 -28
  37. package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +3 -4
  38. package/esm2022/date-picker/lib/date/date-header.component.mjs +4 -4
  39. package/esm2022/date-picker/lib/date/date-table-cell.component.mjs +4 -4
  40. package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
  41. package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +5 -5
  42. package/esm2022/date-picker/lib/decade/decade-header.component.mjs +4 -4
  43. package/esm2022/date-picker/lib/decade/decade-table.component.mjs +4 -4
  44. package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
  45. package/esm2022/date-picker/lib/month/month-table.component.mjs +4 -4
  46. package/esm2022/date-picker/lib/popups/date-popup.component.mjs +4 -18
  47. package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +3 -8
  48. package/esm2022/date-picker/lib/quarter/quarter-table.component.mjs +4 -4
  49. package/esm2022/date-picker/lib/year/year-header.component.mjs +4 -4
  50. package/esm2022/date-picker/lib/year/year-table.component.mjs +4 -4
  51. package/esm2022/date-picker/month-picker.component.mjs +4 -5
  52. package/esm2022/date-picker/picker.component.mjs +4 -14
  53. package/esm2022/date-picker/quarter-picker.component.mjs +4 -5
  54. package/esm2022/date-picker/range-picker.component.mjs +4 -5
  55. package/esm2022/date-picker/week-picker.component.mjs +4 -5
  56. package/esm2022/date-picker/year-picker.component.mjs +4 -5
  57. package/esm2022/date-range/date-range.component.mjs +4 -4
  58. package/esm2022/date-range/optional-dates/optional-dates.component.mjs +3 -6
  59. package/esm2022/dialog/footer/dialog-footer.component.mjs +4 -4
  60. package/esm2022/dialog/header/dialog-header.component.mjs +4 -4
  61. package/esm2022/divider/divider.component.mjs +21 -13
  62. package/esm2022/dropdown/dropdown-menu.component.mjs +11 -7
  63. package/esm2022/empty/empty.component.mjs +4 -4
  64. package/esm2022/form/form-group-error/form-group-error.component.mjs +4 -4
  65. package/esm2022/form/form-group.component.mjs +4 -4
  66. package/esm2022/form/from-group-footer/form-group-footer.component.mjs +4 -4
  67. package/esm2022/guider/guider-hint/guider-hint.component.mjs +4 -4
  68. package/esm2022/image/preview/image-preview.component.mjs +3 -4
  69. package/esm2022/input/input-group.component.mjs +4 -4
  70. package/esm2022/input/input-search.component.mjs +3 -4
  71. package/esm2022/input/input.component.mjs +4 -4
  72. package/esm2022/layout/header.component.mjs +4 -4
  73. package/esm2022/layout/sidebar-header.component.mjs +4 -4
  74. package/esm2022/layout/sidebar.component.mjs +81 -71
  75. package/esm2022/list/list-item-meta.component.mjs +4 -4
  76. package/esm2022/loading/loading.component.mjs +3 -4
  77. package/esm2022/mention/suggestions/suggestions.component.mjs +4 -4
  78. package/esm2022/menu/group/menu-group.component.mjs +4 -4
  79. package/esm2022/menu/item/menu-item.component.mjs +3 -4
  80. package/esm2022/message/message-container.component.mjs +13 -5
  81. package/esm2022/message/message.component.mjs +3 -4
  82. package/esm2022/nav/icon-nav/icon-nav-link.directive.mjs +4 -5
  83. package/esm2022/nav/nav.component.mjs +4 -6
  84. package/esm2022/notify/notify-container.component.mjs +4 -4
  85. package/esm2022/notify/notify.component.mjs +4 -4
  86. package/esm2022/pagination/pagination.component.mjs +4 -4
  87. package/esm2022/popover/header/popover-header.component.mjs +4 -4
  88. package/esm2022/progress/progress-circle.component.mjs +4 -7
  89. package/esm2022/progress/progress.component.mjs +5 -8
  90. package/esm2022/property/property-item.component.mjs +4 -4
  91. package/esm2022/property-operation/property-operation.component.mjs +4 -4
  92. package/esm2022/radio/radio.component.mjs +5 -5
  93. package/esm2022/rate/rate.component.mjs +5 -5
  94. package/esm2022/resizable/resize-handle.component.mjs +10 -7
  95. package/esm2022/resizable/resize-handles.component.mjs +12 -5
  96. package/esm2022/result/result.component.mjs +4 -4
  97. package/esm2022/segment/segment-item.component.mjs +4 -4
  98. package/esm2022/segment/segment.component.mjs +4 -5
  99. package/esm2022/select/custom-select/custom-select.component.mjs +6 -8
  100. package/esm2022/select/native-select/native-select.component.mjs +5 -6
  101. package/esm2022/shared/option/list-option/list-option.component.mjs +3 -4
  102. package/esm2022/shared/option/option.component.mjs +3 -4
  103. package/esm2022/shared/select/select-control/select-control.component.mjs +5 -5
  104. package/esm2022/skeleton/stylized/bullet-list.component.mjs +8 -9
  105. package/esm2022/skeleton/stylized/list.component.mjs +8 -9
  106. package/esm2022/skeleton/stylized/paragraph.component.mjs +8 -9
  107. package/esm2022/slide/slide-header/slide-header.component.mjs +4 -4
  108. package/esm2022/space/space.component.mjs +4 -4
  109. package/esm2022/statistic/statistic.component.mjs +4 -4
  110. package/esm2022/stepper/stepper.component.mjs +5 -5
  111. package/esm2022/switch/switch.component.mjs +6 -6
  112. package/esm2022/table/table-skeleton.component.mjs +4 -7
  113. package/esm2022/table/table.component.mjs +5 -7
  114. package/esm2022/tabs/tab-content.component.mjs +9 -9
  115. package/esm2022/tabs/tabs.component.mjs +4 -7
  116. package/esm2022/time-picker/inner/inner-time-picker.component.mjs +3 -4
  117. package/esm2022/time-picker/time-picker-panel.component.mjs +5 -8
  118. package/esm2022/time-picker/time-picker.component.mjs +5 -15
  119. package/esm2022/timeline/timeline-item.component.mjs +4 -4
  120. package/esm2022/timeline/timeline.component.mjs +9 -9
  121. package/esm2022/tooltip/tooltip.component.mjs +4 -4
  122. package/esm2022/transfer/transfer-list.component.mjs +4 -4
  123. package/esm2022/transfer/transfer.component.mjs +4 -4
  124. package/esm2022/tree/tree-node.component.mjs +4 -4
  125. package/esm2022/tree/tree.component.mjs +5 -7
  126. package/esm2022/tree-select/tree-select.component.mjs +7 -10
  127. package/esm2022/typography/text/text.component.mjs +3 -4
  128. package/esm2022/version.mjs +2 -2
  129. package/esm2022/vote/vote.component.mjs +4 -4
  130. package/fesm2022/ngx-tethys-action.mjs +3 -3
  131. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  132. package/fesm2022/ngx-tethys-alert.mjs +54 -80
  133. package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
  134. package/fesm2022/ngx-tethys-anchor.mjs +29 -13
  135. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  136. package/fesm2022/ngx-tethys-arrow-switcher.mjs +4 -4
  137. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  138. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
  139. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  140. package/fesm2022/ngx-tethys-avatar.mjs +5 -5
  141. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  142. package/fesm2022/ngx-tethys-back-top.mjs +3 -3
  143. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  144. package/fesm2022/ngx-tethys-badge.mjs +3 -3
  145. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  146. package/fesm2022/ngx-tethys-breadcrumb.mjs +3 -5
  147. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  148. package/fesm2022/ngx-tethys-button.mjs +5 -5
  149. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  150. package/fesm2022/ngx-tethys-calendar.mjs +5 -5
  151. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  152. package/fesm2022/ngx-tethys-card.mjs +3 -3
  153. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  154. package/fesm2022/ngx-tethys-carousel.mjs +3 -3
  155. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  156. package/fesm2022/ngx-tethys-cascader.mjs +8 -10
  157. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  158. package/fesm2022/ngx-tethys-checkbox.mjs +4 -4
  159. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  160. package/fesm2022/ngx-tethys-collapse.mjs +3 -3
  161. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  162. package/fesm2022/ngx-tethys-color-picker.mjs +3 -3
  163. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  164. package/fesm2022/ngx-tethys-comment.mjs +3 -3
  165. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  166. package/fesm2022/ngx-tethys-date-picker.mjs +2428 -2456
  167. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  168. package/fesm2022/ngx-tethys-date-range.mjs +5 -7
  169. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  170. package/fesm2022/ngx-tethys-dialog.mjs +5 -5
  171. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  172. package/fesm2022/ngx-tethys-divider.mjs +20 -12
  173. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  174. package/fesm2022/ngx-tethys-dropdown.mjs +10 -6
  175. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  176. package/fesm2022/ngx-tethys-empty.mjs +3 -3
  177. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  178. package/fesm2022/ngx-tethys-form.mjs +7 -7
  179. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  180. package/fesm2022/ngx-tethys-guider.mjs +3 -3
  181. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  182. package/fesm2022/ngx-tethys-image.mjs +3 -3
  183. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  184. package/fesm2022/ngx-tethys-input.mjs +7 -7
  185. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  186. package/fesm2022/ngx-tethys-layout.mjs +84 -74
  187. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  188. package/fesm2022/ngx-tethys-list.mjs +3 -3
  189. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  190. package/fesm2022/ngx-tethys-loading.mjs +3 -3
  191. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  192. package/fesm2022/ngx-tethys-mention.mjs +3 -3
  193. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  194. package/fesm2022/ngx-tethys-menu.mjs +5 -5
  195. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  196. package/fesm2022/ngx-tethys-message.mjs +14 -6
  197. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  198. package/fesm2022/ngx-tethys-nav.mjs +6 -8
  199. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  200. package/fesm2022/ngx-tethys-notify.mjs +5 -5
  201. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  202. package/fesm2022/ngx-tethys-pagination.mjs +3 -3
  203. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  204. package/fesm2022/ngx-tethys-popover.mjs +3 -3
  205. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  206. package/fesm2022/ngx-tethys-progress.mjs +6 -12
  207. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  208. package/fesm2022/ngx-tethys-property-operation.mjs +3 -3
  209. package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
  210. package/fesm2022/ngx-tethys-property.mjs +3 -3
  211. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  212. package/fesm2022/ngx-tethys-radio.mjs +4 -4
  213. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  214. package/fesm2022/ngx-tethys-rate.mjs +4 -4
  215. package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
  216. package/fesm2022/ngx-tethys-resizable.mjs +21 -9
  217. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  218. package/fesm2022/ngx-tethys-result.mjs +3 -3
  219. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  220. package/fesm2022/ngx-tethys-segment.mjs +6 -6
  221. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  222. package/fesm2022/ngx-tethys-select.mjs +9 -11
  223. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  224. package/fesm2022/ngx-tethys-shared.mjs +8 -8
  225. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  226. package/fesm2022/ngx-tethys-skeleton.mjs +22 -22
  227. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  228. package/fesm2022/ngx-tethys-slide.mjs +3 -3
  229. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  230. package/fesm2022/ngx-tethys-space.mjs +3 -3
  231. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  232. package/fesm2022/ngx-tethys-statistic.mjs +3 -3
  233. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  234. package/fesm2022/ngx-tethys-stepper.mjs +4 -4
  235. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  236. package/fesm2022/ngx-tethys-switch.mjs +5 -5
  237. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  238. package/fesm2022/ngx-tethys-table.mjs +6 -11
  239. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  240. package/fesm2022/ngx-tethys-tabs.mjs +10 -13
  241. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  242. package/fesm2022/ngx-tethys-time-picker.mjs +9 -22
  243. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  244. package/fesm2022/ngx-tethys-timeline.mjs +10 -10
  245. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  246. package/fesm2022/ngx-tethys-tooltip.mjs +3 -3
  247. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  248. package/fesm2022/ngx-tethys-transfer.mjs +5 -5
  249. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  250. package/fesm2022/ngx-tethys-tree-select.mjs +6 -9
  251. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  252. package/fesm2022/ngx-tethys-tree.mjs +6 -8
  253. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  254. package/fesm2022/ngx-tethys-typography.mjs +3 -3
  255. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  256. package/fesm2022/ngx-tethys-vote.mjs +3 -3
  257. package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
  258. package/fesm2022/ngx-tethys.mjs +1 -1
  259. package/fesm2022/ngx-tethys.mjs.map +1 -1
  260. package/menu/group/menu-group.component.d.ts +42 -6
  261. package/package.json +1 -1
  262. package/pagination/pagination.component.d.ts +15 -5
  263. package/progress/progress-circle.component.d.ts +0 -1
  264. package/progress/progress.component.d.ts +0 -1
  265. package/property/property-item.component.d.ts +1 -4
  266. package/resizable/resize-handle.component.d.ts +1 -4
  267. package/schematics/version.d.ts +1 -1
  268. package/schematics/version.js +1 -1
  269. package/segment/segment.component.d.ts +1 -5
  270. package/shared/option/list-option/list-option.component.d.ts +5 -1
  271. package/skeleton/stylized/bullet-list.component.d.ts +9 -1
  272. package/table/table-skeleton.component.d.ts +10 -3
  273. package/tabs/tabs.component.d.ts +0 -1
  274. package/time-picker/time-picker-panel.component.d.ts +0 -1
  275. package/tree/tree-node.component.d.ts +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-vote.mjs","sources":["../../../src/vote/vote.component.ts","../../../src/vote/vote.component.html","../../../src/vote/vote.module.ts","../../../src/vote/ngx-tethys-vote.ts"],"sourcesContent":["import { useHostRenderer } from '@tethys/cdk/dom';\n\nimport { Component, ContentChild, HostBinding, Input, OnInit, TemplateRef } from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgIf, NgTemplateOutlet } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyVoteSizes = 'default' | 'sm';\n\nexport type ThyVoteType = 'primary' | 'success' | 'primary-weak' | 'success-weak';\n\nexport type ThyVoteLayout = 'vertical' | 'horizontal';\n\n/**\n * 投票组件\n * @name thy-vote,[thyVote]\n * @order 10\n */\n@Component({\n selector: 'thy-vote,[thyVote]',\n templateUrl: './vote.component.html',\n host: {\n '[class.thy-vote-disabled]': `thyDisabled`\n },\n standalone: true,\n imports: [NgIf, ThyIcon, NgTemplateOutlet]\n})\nexport class ThyVote implements OnInit {\n _size: ThyVoteSizes;\n\n _type: ThyVoteType;\n\n _layout: ThyVoteLayout;\n\n _initialized = false;\n\n private hostRenderer = useHostRenderer();\n\n @HostBinding(`class.thy-vote`) class = true;\n\n @HostBinding(`class.has-voted`) _hasVoted = true;\n\n /**\n * 大小,thyLayout=\"vertical\" 时,支持: sm | default\n * @default default\n */\n @Input()\n set thySize(value: ThyVoteSizes) {\n this._size = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 标签类型: primary | success | primary-weak | success-weak\n * @default primary\n */\n @Input()\n set thyVote(value: ThyVoteType) {\n this._type = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 是否是偏圆型\n * @default false\n */\n @Input({ transform: coerceBooleanProperty }) thyRound: boolean;\n\n /**\n * 布局: horizontal | vertical\n * @default horizontal\n */\n @Input()\n set thyLayout(value: ThyVoteLayout) {\n this._layout = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 赞同的数量\n */\n @Input() thyVoteCount: number | string;\n\n /**\n * 图标\n * @type string\n */\n @Input() thyIcon = 'thumb-up';\n\n /**\n * 是否赞同\n * @type boolean\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyHasVoted(value: boolean) {\n this._hasVoted = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 是否禁用\n * @type boolean\n */\n @Input({ transform: coerceBooleanProperty }) thyDisabled = false;\n\n /**\n * 自定义Icon模板\n * @type TemplateRef\n */\n @ContentChild('voteIcon') voteIcon: TemplateRef<any>;\n\n constructor() {}\n\n ngOnInit() {\n this._setClassesByType();\n this._initialized = true;\n }\n\n _setClassesByType() {\n const classNames = [];\n if (!this._type) {\n this._type = 'primary';\n }\n if (!this._layout) {\n this._layout = 'horizontal';\n }\n if (!this._size) {\n this._size = 'default';\n }\n if (this.thyRound) {\n classNames.push('thy-vote-round');\n }\n classNames.push(`thy-vote-${this._type}`);\n classNames.push(`thy-vote-${this._layout}`);\n classNames.push(`thy-vote-${this._layout}-size-${this._size}`);\n this.hostRenderer.updateClass(classNames);\n }\n}\n","<thy-icon *ngIf=\"!voteIcon\" [thyIconName]=\"thyIcon\" [thyIconType]=\"_hasVoted ? 'fill' : ''\"></thy-icon>\n<ng-container *ngIf=\"voteIcon\" [ngTemplateOutlet]=\"voteIcon\"></ng-container>\n<div>{{ thyVoteCount }}</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyVote } from './vote.component';\nimport { ThyIconModule } from 'ngx-tethys/icon';\n@NgModule({\n imports: [CommonModule, ThySharedModule, ThyIconModule, ThyVote],\n exports: [ThyVote],\n providers: []\n})\nexport class ThyVoteModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAaA;;;;AAIG;MAUU,OAAO,CAAA;AAehB;;;AAGG;IACH,IACI,OAAO,CAAC,KAAmB,EAAA;AAC3B,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC5B;KACJ;AAED;;;AAGG;IACH,IACI,OAAO,CAAC,KAAkB,EAAA;AAC1B,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC5B;KACJ;AAQD;;;AAGG;IACH,IACI,SAAS,CAAC,KAAoB,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;AACrB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC5B;KACJ;AAaD;;;;AAIG;IACH,IACI,WAAW,CAAC,KAAc,EAAA;AAC1B,QAAA,IAAI,CAAC,SAAS,GAAG,KAAK,C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AAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAb,aAAa,EAAA,OAAA,EAAA,CAJZ,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,CAAA,EAAA,OAAA,EAAA,CACrD,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;AAGR,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAJZ,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAItD,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,CAAC;oBAChE,OAAO,EAAE,CAAC,OAAO,CAAC;AAClB,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-vote.mjs","sources":["../../../src/vote/vote.component.ts","../../../src/vote/vote.component.html","../../../src/vote/vote.module.ts","../../../src/vote/ngx-tethys-vote.ts"],"sourcesContent":["import { useHostRenderer } from '@tethys/cdk/dom';\n\nimport { Component, ContentChild, HostBinding, Input, OnInit, TemplateRef } from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyVoteSizes = 'default' | 'sm';\n\nexport type ThyVoteType = 'primary' | 'success' | 'primary-weak' | 'success-weak';\n\nexport type ThyVoteLayout = 'vertical' | 'horizontal';\n\n/**\n * 投票组件\n * @name thy-vote,[thyVote]\n * @order 10\n */\n@Component({\n selector: 'thy-vote,[thyVote]',\n templateUrl: './vote.component.html',\n host: {\n '[class.thy-vote-disabled]': `thyDisabled`\n },\n standalone: true,\n imports: [ThyIcon, NgTemplateOutlet]\n})\nexport class ThyVote implements OnInit {\n _size: ThyVoteSizes;\n\n _type: ThyVoteType;\n\n _layout: ThyVoteLayout;\n\n _initialized = false;\n\n private hostRenderer = useHostRenderer();\n\n @HostBinding(`class.thy-vote`) class = true;\n\n @HostBinding(`class.has-voted`) _hasVoted = true;\n\n /**\n * 大小,thyLayout=\"vertical\" 时,支持: sm | default\n * @default default\n */\n @Input()\n set thySize(value: ThyVoteSizes) {\n this._size = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 标签类型: primary | success | primary-weak | success-weak\n * @default primary\n */\n @Input()\n set thyVote(value: ThyVoteType) {\n this._type = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 是否是偏圆型\n * @default false\n */\n @Input({ transform: coerceBooleanProperty }) thyRound: boolean;\n\n /**\n * 布局: horizontal | vertical\n * @default horizontal\n */\n @Input()\n set thyLayout(value: ThyVoteLayout) {\n this._layout = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 赞同的数量\n */\n @Input() thyVoteCount: number | string;\n\n /**\n * 图标\n * @type string\n */\n @Input() thyIcon = 'thumb-up';\n\n /**\n * 是否赞同\n * @type boolean\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyHasVoted(value: boolean) {\n this._hasVoted = value;\n if (this._initialized) {\n this._setClassesByType();\n }\n }\n\n /**\n * 是否禁用\n * @type boolean\n */\n @Input({ transform: coerceBooleanProperty }) thyDisabled = false;\n\n /**\n * 自定义Icon模板\n * @type TemplateRef\n */\n @ContentChild('voteIcon') voteIcon: TemplateRef<any>;\n\n constructor() {}\n\n ngOnInit() {\n this._setClassesByType();\n this._initialized = true;\n }\n\n _setClassesByType() {\n const classNames = [];\n if (!this._type) {\n this._type = 'primary';\n }\n if (!this._layout) {\n this._layout = 'horizontal';\n }\n if (!this._size) {\n this._size = 'default';\n }\n if (this.thyRound) {\n classNames.push('thy-vote-round');\n }\n classNames.push(`thy-vote-${this._type}`);\n classNames.push(`thy-vote-${this._layout}`);\n classNames.push(`thy-vote-${this._layout}-size-${this._size}`);\n this.hostRenderer.updateClass(classNames);\n }\n}\n","@if (voteIcon) {\n <ng-container [ngTemplateOutlet]=\"voteIcon\"></ng-container>\n} @else {\n <thy-icon [thyIconName]=\"thyIcon\" [thyIconType]=\"_hasVoted ? 'fill' : ''\"></thy-icon>\n}\n<div>{{ thyVoteCount }}</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyVote } from './vote.component';\nimport { ThyIconModule } from 'ngx-tethys/icon';\n@NgModule({\n imports: [CommonModule, ThySharedModule, ThyIconModule, ThyVote],\n exports: [ThyVote],\n providers: []\n})\nexport class ThyVoteModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAaA;;;;AAIG;MAUU,OAAO,CAAA;AAehB;;;AAGG;IACH,IACI,OAAO,CAAC,KAAmB,EAAA;AAC3B,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC5B;KACJ;AAED;;;AAGG;IACH,IACI,OAAO,CAAC,KAAkB,EAAA;AAC1B,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC5B;KACJ;AAQD;;;AAGG;IACH,IACI,SAAS,CAAC,KAAoB,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;AACrB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;YAC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,UAAU,CAAA;;;ME5Gf,aAAa,CAAA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAb,aAAa,EAAA,OAAA,EAAA,CAJZ,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,CAAA,EAAA,OAAA,EAAA,CACrD,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;AAGR,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAJZ,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAItD,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,CAAC;oBAChE,OAAO,EAAE,CAAC,OAAO,CAAC;AAClB,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
- const VERSION = new Version('18.0.8');
3
+ const VERSION = new Version('18.1.0-next.0');
4
4
 
5
5
  /**
6
6
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys.mjs","sources":["../../../src/version.ts","../../../src/ngx-tethys.ts"],"sourcesContent":["import { Version } from '@angular/core';\n\nexport const VERSION = new Version('18.0.8');\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MAEa,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ;;ACF3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys.mjs","sources":["../../../src/version.ts","../../../src/ngx-tethys.ts"],"sourcesContent":["import { Version } from '@angular/core';\n\nexport const VERSION = new Version('18.1.0-next.0');\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MAEa,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe;;ACFlD;;AAEG;;;;"}
@@ -71,10 +71,46 @@ export declare class ThyMenuGroup implements OnInit {
71
71
  onActionClick(event: Event): void;
72
72
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuGroup, never>;
73
73
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuGroup, "thy-menu-group,[thy-menu-group],[thyMenuGroup]", never, { "thyTitle": { "alias": "thyTitle"; "required": false; }; "thyExpand": { "alias": "thyExpand"; "required": false; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; }; "thyCollapsible": { "alias": "thyCollapsible"; "required": false; }; "thyShowIcon": { "alias": "thyShowIcon"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; "thyActionIcon": { "alias": "thyActionIcon"; "required": false; }; "thyShowAction": { "alias": "thyShowAction"; "required": false; }; "thyActionStopPropagation": { "alias": "thyActionStopPropagation"; "required": false; }; "thyActionMenu": { "alias": "thyActionMenu"; "required": false; }; }, { "thyOnActionClick": "thyOnActionClick"; "thyCollapsedChange": "thyCollapsedChange"; }, ["headerContentTemplateRef"], ["*"], true, never>;
74
- static ngAcceptInputType_thyExpand: boolean | string | number;
75
- static ngAcceptInputType_thyCollapsed: boolean | string | number;
76
- static ngAcceptInputType_thyCollapsible: boolean | string | number;
77
- static ngAcceptInputType_thyShowIcon: boolean | string | number;
78
- static ngAcceptInputType_thyShowAction: boolean | string | number;
79
- static ngAcceptInputType_thyActionStopPropagation: boolean | string | number;
74
+ static ngAcceptInputType_thyExpand: boolean | string /**
75
+ * 已废弃,请使用 thyCollapsed
76
+ * @deprecated
77
+ */ | /**
78
+ * 已废弃,请使用 thyCollapsed
79
+ * @deprecated
80
+ */ number;
81
+ static ngAcceptInputType_thyCollapsed: boolean | string /**
82
+ * 已废弃,请使用 thyCollapsed
83
+ * @deprecated
84
+ */ | /**
85
+ * 已废弃,请使用 thyCollapsed
86
+ * @deprecated
87
+ */ number;
88
+ static ngAcceptInputType_thyCollapsible: boolean | string /**
89
+ * 已废弃,请使用 thyCollapsed
90
+ * @deprecated
91
+ */ | /**
92
+ * 已废弃,请使用 thyCollapsed
93
+ * @deprecated
94
+ */ number;
95
+ static ngAcceptInputType_thyShowIcon: boolean | string /**
96
+ * 已废弃,请使用 thyCollapsed
97
+ * @deprecated
98
+ */ | /**
99
+ * 已废弃,请使用 thyCollapsed
100
+ * @deprecated
101
+ */ number;
102
+ static ngAcceptInputType_thyShowAction: boolean | string /**
103
+ * 已废弃,请使用 thyCollapsed
104
+ * @deprecated
105
+ */ | /**
106
+ * 已废弃,请使用 thyCollapsed
107
+ * @deprecated
108
+ */ number;
109
+ static ngAcceptInputType_thyActionStopPropagation: boolean | string /**
110
+ * 已废弃,请使用 thyCollapsed
111
+ * @deprecated
112
+ */ | /**
113
+ * 已废弃,请使用 thyCollapsed
114
+ * @deprecated
115
+ */ number;
80
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "18.0.8",
3
+ "version": "18.1.0-next.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/atinc/ngx-tethys.git"
@@ -141,12 +141,22 @@ export declare class ThyPagination implements OnInit {
141
141
  static ngAcceptInputType_thyPageIndex: unknown;
142
142
  static ngAcceptInputType_thyPageSize: unknown;
143
143
  static ngAcceptInputType_thyTotal: unknown;
144
- static ngAcceptInputType_disabled: boolean | string | number;
145
- static ngAcceptInputType_showQuickJumper: boolean | string | number;
146
- static ngAcceptInputType_showTotalPageCount: boolean | string | number;
144
+ static ngAcceptInputType_disabled: boolean | string | number /**
145
+ * 总页数 totalPages 二选一传入
146
+ */;
147
+ static ngAcceptInputType_showQuickJumper: boolean | string | number /**
148
+ * 总页数 与 totalPages 二选一传入
149
+ */;
150
+ static ngAcceptInputType_showTotalPageCount: boolean | string | number /**
151
+ * 总页数 与 totalPages 二选一传入
152
+ */;
147
153
  static ngAcceptInputType_maxCount: unknown;
148
154
  static ngAcceptInputType_marginalCount: unknown;
149
155
  static ngAcceptInputType_thyRangeCount: unknown;
150
- static ngAcceptInputType_showSizeChanger: boolean | string | number;
151
- static ngAcceptInputType_hideOnSinglePage: boolean | string | number;
156
+ static ngAcceptInputType_showSizeChanger: boolean | string | number /**
157
+ * 总页数 totalPages 二选一传入
158
+ */;
159
+ static ngAcceptInputType_hideOnSinglePage: boolean | string | number /**
160
+ * 总页数 与 totalPages 二选一传入
161
+ */;
152
162
  }
@@ -26,7 +26,6 @@ export declare class ThyProgressCircle implements OnInit, OnChanges {
26
26
  ngOnInit(): void;
27
27
  ngOnChanges(changes: SimpleChanges): void;
28
28
  private createCircleProgress;
29
- trackByFn(index: number): number;
30
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgressCircle, never>;
31
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>;
32
31
  static ngAcceptInputType_thyMax: unknown;
@@ -61,7 +61,6 @@ export declare class ThyProgress implements ThyParentProgress, OnInit, OnChanges
61
61
  ngOnInit(): void;
62
62
  ngOnChanges(changes: SimpleChanges): void;
63
63
  calculateMax(): void;
64
- trackByFn(index: number): number;
65
64
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgress, never>;
66
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>;
67
66
  static ngAcceptInputType_thyMax: unknown;
@@ -85,9 +85,6 @@ export declare class ThyPropertyItem implements OnInit, OnChanges, OnDestroy {
85
85
  ngOnDestroy(): void;
86
86
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyPropertyItem, never>;
87
87
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyPropertyItem, "thy-property-item", never, { "thyLabelText": { "alias": "thyLabelText"; "required": false; }; "thyEditable": { "alias": "thyEditable"; "required": false; }; "thySpan": { "alias": "thySpan"; "required": false; }; "thyOperationTrigger": { "alias": "thyOperationTrigger"; "required": false; }; }, { "thyEditingChange": "thyEditingChange"; }, ["label", "editor", "operation"], ["*"], true, never>;
88
- static ngAcceptInputType_thyEditable: boolean /**
89
- * 属性名称自定义模板
90
- * @type TemplateRef
91
- */ | string | number;
88
+ static ngAcceptInputType_thyEditable: boolean | string | number;
92
89
  static ngAcceptInputType_thySpan: unknown;
93
90
  }
@@ -34,8 +34,5 @@ export declare class ThyResizeHandle implements OnInit {
34
34
  ngOnInit(): void;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizeHandle, never>;
36
36
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandle, "thy-resize-handle, [thy-resize-handle]", ["thyResizeHandle"], { "thyDirection": { "alias": "thyDirection"; "required": false; }; "thyLine": { "alias": "thyLine"; "required": false; }; }, { "thyMouseDown": "thyMouseDown"; }, never, ["*"], true, never>;
37
- static ngAcceptInputType_thyLine: /**
38
- * 调整方向
39
- * @type top | right | bottom | left | topRight | bottomRight | bottomLeft | topLeft
40
- */ boolean | string | number;
37
+ static ngAcceptInputType_thyLine: boolean | string | number;
41
38
  }
@@ -1 +1 @@
1
- export declare const VERSION = "18.0.8";
1
+ export declare const VERSION = "18.1.0-next.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '18.0.8';
4
+ exports.VERSION = '18.1.0-next.0';
@@ -54,10 +54,6 @@ export declare class ThySegment implements IThySegmentComponent, AfterContentIni
54
54
  handleThumbAnimationDone(event: AnimationEvent): void;
55
55
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySegment, never>;
56
56
  static ɵcmp: i0.ɵɵComponentDeclaration<ThySegment, "thy-segment", ["thySegment"], { "thySize": { "alias": "thySize"; "required": false; }; "thyMode": { "alias": "thyMode"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyActiveIndex": { "alias": "thyActiveIndex"; "required": false; }; }, { "thySelectChange": "thySelectChange"; }, ["options"], ["*"], true, never>;
57
- static ngAcceptInputType_thyDisabled: boolean | string /**
58
- * 是否禁用分段控制器
59
- */ | /**
60
- * 是否禁用分段控制器
61
- */ number;
57
+ static ngAcceptInputType_thyDisabled: boolean | string | number;
62
58
  static ngAcceptInputType_thyActiveIndex: unknown;
63
59
  }
@@ -36,5 +36,9 @@ export declare class ThyListOption implements Highlightable {
36
36
  getLabel(): string;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyListOption, [null, null, { optional: true; }]>;
38
38
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyListOption, "thy-list-option,[thy-list-option]", never, { "id": { "alias": "id"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
39
- static ngAcceptInputType_thyDisabled: boolean | string | number;
39
+ static ngAcceptInputType_thyDisabled: boolean
40
+ /** Allows for programmatic focusing of the option. */
41
+ | // @HostListener('focus', ['$event'])
42
+ /** Allows for programmatic focusing of the option. */
43
+ string | number;
40
44
  }
@@ -53,5 +53,13 @@ export declare class ThySkeletonBulletList {
53
53
  constructor();
54
54
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySkeletonBulletList, never>;
55
55
  static ɵcmp: i0.ɵɵComponentDeclaration<ThySkeletonBulletList, "thy-skeleton-bullet-list", never, { "thyRowWidth": { "alias": "thyRowWidth"; "required": false; }; "thyRowHeight": { "alias": "thyRowHeight"; "required": false; }; "thyBorderRadius": { "alias": "thyBorderRadius"; "required": false; }; "thyAnimated": { "alias": "thyAnimated"; "required": false; }; "thyAnimatedInterval": { "alias": "thyAnimatedInterval"; "required": false; }; "thyPrimaryColor": { "alias": "thyPrimaryColor"; "required": false; }; "thySecondaryColor": { "alias": "thySecondaryColor"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyRowCount": { "alias": "thyRowCount"; "required": false; }; }, {}, never, never, true, never>;
56
- static ngAcceptInputType_thyAnimated: boolean | string | number;
56
+ static ngAcceptInputType_thyAnimated: boolean
57
+ /**
58
+ * 骨架边框圆角
59
+ * @default 4px
60
+ */
61
+ | /**
62
+ * 骨架边框圆角
63
+ * @default 4px
64
+ */ string | number;
57
65
  }
@@ -84,11 +84,18 @@ export declare class ThyTableSkeleton implements AfterViewInit {
84
84
  };
85
85
  private defaultColumns;
86
86
  columns: ThyTableSkeletonColumn[];
87
- trackByFn(index: number): number;
88
87
  constructor(cdr: ChangeDetectorRef);
89
88
  ngAfterViewInit(): void;
90
89
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyTableSkeleton, never>;
91
90
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyTableSkeleton, "thy-table-skeleton", never, { "thyBorderRadius": { "alias": "thyBorderRadius"; "required": false; }; "thyRowHeight": { "alias": "thyRowHeight"; "required": false; }; "thyAnimated": { "alias": "thyAnimated"; "required": false; }; "thyAnimatedInterval": { "alias": "thyAnimatedInterval"; "required": false; }; "thyPrimaryColor": { "alias": "thyPrimaryColor"; "required": false; }; "thySecondaryColor": { "alias": "thySecondaryColor"; "required": false; }; "thyRowCount": { "alias": "thyRowCount"; "required": false; }; "thyHeadless": { "alias": "thyHeadless"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyColumns": { "alias": "thyColumns"; "required": false; }; }, {}, never, never, true, never>;
92
- static ngAcceptInputType_thyAnimated: boolean | string | number;
93
- static ngAcceptInputType_thyHeadless: boolean | string | number;
91
+ static ngAcceptInputType_thyAnimated: boolean | string /**
92
+ * 行数
93
+ */ | /**
94
+ * 行数
95
+ */ number;
96
+ static ngAcceptInputType_thyHeadless: boolean | string /**
97
+ * 行数
98
+ */ | /**
99
+ * 行数
100
+ */ number;
94
101
  }
@@ -59,7 +59,6 @@ export declare class ThyTabs implements OnInit, OnChanges, AfterContentInit {
59
59
  get tabPaneAnimated(): boolean;
60
60
  getTabContentMarginLeft(): string;
61
61
  activeTab(tab: ThyTab, index: number): void;
62
- tabTrackBy(index: number, item: ThyTab): number;
63
62
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyTabs, never>;
64
63
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyTabs, "thy-tabs", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyActiveTab": { "alias": "thyActiveTab"; "required": false; }; "thyExtra": { "alias": "thyExtra"; "required": false; }; "thyPosition": { "alias": "thyPosition"; "required": false; }; "thyAnimated": { "alias": "thyAnimated"; "required": false; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; }; }, { "thyActiveTabChange": "thyActiveTabChange"; }, ["tabs"], never, true, never>;
65
64
  static ngAcceptInputType_thyAnimated: boolean | string | number;
@@ -99,7 +99,6 @@ export declare class ThyTimePanel implements OnInit, OnDestroy, ControlValueAcce
99
99
  writeValue(value: Date | number): void;
100
100
  registerOnChange(fn: (value: Date) => void): void;
101
101
  registerOnTouched(fn: () => void): void;
102
- trackByFn(index: number): number;
103
102
  private initialValue;
104
103
  private buildTimeRange;
105
104
  private setHMSProperty;
@@ -99,26 +99,26 @@ export declare class ThyTreeNodeComponent implements OnDestroy, OnInit, OnChange
99
99
  ngOnDestroy(): void;
100
100
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyTreeNodeComponent, never>;
101
101
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyTreeNodeComponent, "thy-tree-node", never, { "node": { "alias": "node"; "required": false; }; "thyAsync": { "alias": "thyAsync"; "required": false; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; }; "thyDraggable": { "alias": "thyDraggable"; "required": false; }; "thyCheckable": { "alias": "thyCheckable"; "required": false; }; "thyClickBehavior": { "alias": "thyClickBehavior"; "required": false; }; "thyTitleTruncate": { "alias": "thyTitleTruncate"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; "emptyChildrenTemplateRef": { "alias": "emptyChildrenTemplateRef"; "required": false; }; "thyItemSize": { "alias": "thyItemSize"; "required": false; }; "thyIndent": { "alias": "thyIndent"; "required": false; }; }, { "thyOnClick": "thyOnClick"; "thyDblClick": "thyDblClick"; "thyOnExpandChange": "thyOnExpandChange"; "thyOnCheckboxChange": "thyOnCheckboxChange"; }, ["childrenTreeTemplateRef"], never, true, never>;
102
- static ngAcceptInputType_thyAsync: boolean | string | number /**
102
+ static ngAcceptInputType_thyAsync: boolean | string /**
103
103
  * 设置节点名称是否支持超出截取
104
104
  * @default false
105
- */;
106
- static ngAcceptInputType_thyMultiple: boolean | string | number /**
105
+ */ | number;
106
+ static ngAcceptInputType_thyMultiple: boolean | string /**
107
107
  * 设置节点名称是否支持超出截取
108
108
  * @default false
109
- */;
110
- static ngAcceptInputType_thyDraggable: boolean | string | number /**
109
+ */ | number;
110
+ static ngAcceptInputType_thyDraggable: boolean | string /**
111
111
  * 设置节点名称是否支持超出截取
112
112
  * @default false
113
- */;
114
- static ngAcceptInputType_thyCheckable: boolean | string | number /**
113
+ */ | number;
114
+ static ngAcceptInputType_thyCheckable: boolean | string /**
115
115
  * 设置节点名称是否支持超出截取
116
116
  * @default false
117
- */;
118
- static ngAcceptInputType_thyTitleTruncate: boolean | string | number /**
117
+ */ | number;
118
+ static ngAcceptInputType_thyTitleTruncate: boolean | string /**
119
119
  * 设置节点名称是否支持超出截取
120
120
  * @default false
121
- */;
121
+ */ | number;
122
122
  static ngAcceptInputType_thyItemSize: unknown;
123
123
  static ngAcceptInputType_thyIndent: unknown;
124
124
  }