ngx-tethys 19.0.13 → 19.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/CHANGELOG.md +29 -2
  2. package/action/action.component.d.ts +12 -20
  3. package/action/actions.component.d.ts +5 -7
  4. package/affix/affix.component.d.ts +7 -10
  5. package/alert/alert.component.d.ts +1 -1
  6. package/anchor/anchor-link.component.d.ts +8 -8
  7. package/anchor/anchor.component.d.ts +15 -21
  8. package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
  9. package/autocomplete/autocomplete.component.d.ts +10 -17
  10. package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
  11. package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
  12. package/avatar/avatar.component.d.ts +25 -39
  13. package/back-top/back-top.component.d.ts +9 -12
  14. package/badge/badge.component.d.ts +19 -59
  15. package/breadcrumb/breadcrumb.component.d.ts +15 -20
  16. package/button/button-icon.component.d.ts +3 -2
  17. package/button/button.component.d.ts +3 -2
  18. package/calendar/calendar-header.component.d.ts +9 -8
  19. package/calendar/calendar.component.d.ts +16 -16
  20. package/card/card.component.d.ts +5 -11
  21. package/card/content.component.d.ts +3 -8
  22. package/card/header.component.d.ts +7 -8
  23. package/carousel/carousel.component.d.ts +22 -27
  24. package/cascader/cascader-li.component.d.ts +13 -21
  25. package/cascader/cascader-search-option.component.d.ts +8 -16
  26. package/cascader/cascader.component.d.ts +58 -80
  27. package/checkbox/checkbox.component.d.ts +2 -5
  28. package/collapse/collapse-item.component.d.ts +12 -19
  29. package/collapse/collapse.component.d.ts +6 -12
  30. package/collapse/collapse.token.d.ts +3 -3
  31. package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
  32. package/color-picker/color-picker-panel.component.d.ts +7 -11
  33. package/color-picker/color-picker.component.d.ts +19 -35
  34. package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
  35. package/color-picker/parts/hue/hue.component.d.ts +6 -6
  36. package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
  37. package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
  38. package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
  39. package/comment/comment.component.d.ts +4 -5
  40. package/copy/copy.directive.d.ts +8 -9
  41. package/date-picker/abstract-picker.component.d.ts +8 -7
  42. package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
  43. package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
  44. package/date-picker/picker.component.d.ts +2 -1
  45. package/date-range/date-range.component.d.ts +2 -2
  46. package/dialog/body/dialog-body.component.d.ts +2 -6
  47. package/dialog/confirm/confirm.component.d.ts +2 -2
  48. package/dialog/footer/dialog-footer.component.d.ts +6 -9
  49. package/dialog/header/dialog-header.component.d.ts +9 -11
  50. package/divider/divider.component.d.ts +12 -16
  51. package/dot/dot.component.d.ts +5 -13
  52. package/drag-drop/drag-handle.directive.d.ts +2 -1
  53. package/drag-drop/drag.directive.d.ts +2 -1
  54. package/drag-drop/drop-container.directive.d.ts +2 -1
  55. package/dropdown/dropdown-menu-item.directive.d.ts +3 -2
  56. package/dropdown/dropdown-menu.component.d.ts +2 -1
  57. package/dropdown/dropdown.directive.d.ts +2 -1
  58. package/empty/empty.component.d.ts +21 -27
  59. package/fesm2022/ngx-tethys-action.mjs +54 -91
  60. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-affix.mjs +29 -26
  62. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-anchor.mjs +91 -118
  64. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  65. package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
  66. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  67. package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
  68. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys-avatar.mjs +117 -162
  70. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  71. package/fesm2022/ngx-tethys-back-top.mjs +33 -46
  72. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  73. package/fesm2022/ngx-tethys-badge.mjs +104 -208
  74. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  75. package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
  76. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  77. package/fesm2022/ngx-tethys-calendar.mjs +85 -87
  78. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  79. package/fesm2022/ngx-tethys-card.mjs +72 -77
  80. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  81. package/fesm2022/ngx-tethys-carousel.mjs +82 -99
  82. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  83. package/fesm2022/ngx-tethys-cascader.mjs +313 -468
  84. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  85. package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
  86. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  87. package/fesm2022/ngx-tethys-collapse.mjs +66 -71
  88. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  89. package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
  90. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  91. package/fesm2022/ngx-tethys-comment.mjs +16 -10
  92. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  93. package/fesm2022/ngx-tethys-copy.mjs +25 -28
  94. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  95. package/fesm2022/ngx-tethys-dialog.mjs +81 -82
  96. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  97. package/fesm2022/ngx-tethys-divider.mjs +49 -58
  98. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  99. package/fesm2022/ngx-tethys-dot.mjs +45 -68
  100. package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
  101. package/fesm2022/ngx-tethys-empty.mjs +107 -95
  102. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  103. package/fesm2022/ngx-tethys-form.mjs +161 -200
  104. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  105. package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
  106. package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
  107. package/fesm2022/ngx-tethys-grid.mjs +160 -152
  108. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  109. package/fesm2022/ngx-tethys-i18n.mjs +25 -25
  110. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  111. package/fesm2022/ngx-tethys-input-number.mjs +101 -114
  112. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  113. package/fesm2022/ngx-tethys-input.mjs +268 -271
  114. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  115. package/fesm2022/ngx-tethys-list.mjs +1 -1
  116. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  117. package/fesm2022/ngx-tethys-loading.mjs +17 -35
  118. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  119. package/fesm2022/ngx-tethys-mention.mjs +52 -74
  120. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  121. package/fesm2022/ngx-tethys-menu.mjs +106 -179
  122. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  123. package/fesm2022/ngx-tethys-nav.mjs +169 -201
  124. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  125. package/fesm2022/ngx-tethys-pagination.mjs +230 -294
  126. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  127. package/fesm2022/ngx-tethys-popover.mjs +67 -70
  128. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  129. package/fesm2022/ngx-tethys-progress.mjs +196 -244
  130. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  131. package/fesm2022/ngx-tethys-property.mjs +102 -105
  132. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  133. package/fesm2022/ngx-tethys-radio.mjs +34 -38
  134. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  135. package/fesm2022/ngx-tethys-result.mjs +46 -28
  136. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  137. package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
  138. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  139. package/fesm2022/ngx-tethys-slider.mjs +75 -108
  140. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  141. package/fesm2022/ngx-tethys-space.mjs +26 -46
  142. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  143. package/fesm2022/ngx-tethys-statistic.mjs +114 -151
  144. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  145. package/fesm2022/ngx-tethys-stepper.mjs +74 -107
  146. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  147. package/fesm2022/ngx-tethys-switch.mjs +80 -140
  148. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  149. package/fesm2022/ngx-tethys-table.mjs +1 -1
  150. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  151. package/fesm2022/ngx-tethys-tabs.mjs +69 -87
  152. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  153. package/fesm2022/ngx-tethys-tag.mjs +42 -64
  154. package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
  155. package/fesm2022/ngx-tethys-timeline.mjs +104 -129
  156. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  157. package/fesm2022/ngx-tethys-typography.mjs +36 -33
  158. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  159. package/fesm2022/ngx-tethys-upload.mjs +91 -130
  160. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  161. package/fesm2022/ngx-tethys-util.mjs.map +1 -1
  162. package/fesm2022/ngx-tethys-watermark.mjs +36 -40
  163. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  164. package/fesm2022/ngx-tethys.mjs +1 -1
  165. package/fesm2022/ngx-tethys.mjs.map +1 -1
  166. package/form/form-group-error/form-group-error.component.d.ts +2 -3
  167. package/form/form-group-label.directive.d.ts +2 -1
  168. package/form/form-group.component.d.ts +17 -24
  169. package/form/form-submit.directive.d.ts +2 -2
  170. package/form/form.directive.d.ts +6 -8
  171. package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
  172. package/form/validator/confirm-validator.directive.d.ts +2 -2
  173. package/form/validator/unique-validator.directive.d.ts +2 -2
  174. package/fullscreen/fullscreen.component.d.ts +7 -7
  175. package/grid/flex.d.ts +14 -19
  176. package/grid/thy-col.directive.d.ts +6 -9
  177. package/grid/thy-grid-item.component.d.ts +3 -4
  178. package/grid/thy-grid.component.d.ts +11 -12
  179. package/grid/thy-row.directive.d.ts +12 -12
  180. package/icon/icon.component.d.ts +3 -2
  181. package/image/image.directive.d.ts +3 -2
  182. package/input/input-count.component.d.ts +4 -5
  183. package/input/input-group.component.d.ts +20 -20
  184. package/input/input-search.component.d.ts +15 -20
  185. package/input/input.component.d.ts +20 -21
  186. package/input/input.directive.d.ts +4 -6
  187. package/input-number/input-number.component.d.ts +21 -29
  188. package/layout/header.component.d.ts +4 -9
  189. package/layout/sidebar-header.component.d.ts +2 -1
  190. package/layout/sidebar.component.d.ts +8 -7
  191. package/list/list.component.d.ts +2 -1
  192. package/list/selection/selection-list.d.ts +4 -3
  193. package/loading/loading.component.d.ts +4 -10
  194. package/mention/mention.directive.d.ts +6 -7
  195. package/mention/suggestions/suggestions.component.d.ts +8 -9
  196. package/menu/group/menu-group.component.d.ts +16 -33
  197. package/menu/item/action/menu-item-action.component.d.ts +7 -8
  198. package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
  199. package/menu/item/menu-item.component.d.ts +4 -4
  200. package/menu/item/name/menu-item-name.component.d.ts +2 -3
  201. package/menu/menu.component.d.ts +3 -7
  202. package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
  203. package/nav/icon-nav/icon-nav.component.d.ts +3 -8
  204. package/nav/nav-ink-bar.directive.d.ts +4 -6
  205. package/nav/nav-item.directive.d.ts +7 -10
  206. package/nav/nav.component.d.ts +20 -48
  207. package/package.json +1 -1
  208. package/pagination/pagination.component.d.ts +48 -109
  209. package/popover/header/popover-header.component.d.ts +7 -6
  210. package/popover/popover.directive.d.ts +11 -18
  211. package/progress/progress-circle.component.d.ts +32 -21
  212. package/progress/progress-strip.component.d.ts +10 -14
  213. package/progress/progress.component.d.ts +15 -23
  214. package/property/examples/single/single.component.scss +6 -0
  215. package/property/properties.component.d.ts +6 -13
  216. package/property/property-item.component.d.ts +21 -26
  217. package/property/styles/properties.scss +124 -52
  218. package/property-operation/property-operation.component.d.ts +6 -5
  219. package/radio/button/radio-button.component.d.ts +2 -2
  220. package/radio/group/radio-group.component.d.ts +8 -7
  221. package/radio/radio.component.d.ts +2 -2
  222. package/radio/radio.token.d.ts +2 -2
  223. package/rate/rate-item.component.d.ts +2 -1
  224. package/rate/rate.component.d.ts +4 -3
  225. package/resizable/resizable.directive.d.ts +4 -9
  226. package/resizable/resize-handle.component.d.ts +2 -1
  227. package/resizable/resize-handles.component.d.ts +2 -1
  228. package/result/result.component.d.ts +9 -10
  229. package/schematics/version.d.ts +1 -1
  230. package/schematics/version.js +1 -1
  231. package/segment/segment-item.component.d.ts +2 -1
  232. package/segment/segment.component.d.ts +2 -1
  233. package/select/custom-select/custom-select.component.d.ts +11 -10
  234. package/select/native-select/native-select.component.d.ts +2 -1
  235. package/shared/base-form-check.component.d.ts +3 -2
  236. package/shared/directives/thy-autofocus.directive.d.ts +3 -2
  237. package/shared/directives/thy-scroll.directive.d.ts +2 -1
  238. package/shared/directives/thy-show.d.ts +2 -1
  239. package/shared/option/group/option-group.component.d.ts +2 -1
  240. package/shared/option/list-option/list-option.component.d.ts +2 -7
  241. package/shared/option/option.component.d.ts +2 -1
  242. package/shared/select/select-control/select-control.component.d.ts +7 -6
  243. package/skeleton/skeleton-circle.component.d.ts +16 -19
  244. package/skeleton/skeleton-rectangle.component.d.ts +20 -23
  245. package/skeleton/skeleton.component.d.ts +5 -6
  246. package/skeleton/stylized/bullet-list.component.d.ts +11 -13
  247. package/skeleton/stylized/list.component.d.ts +10 -12
  248. package/skeleton/stylized/paragraph.component.d.ts +12 -14
  249. package/slide/slide-body/slide-body-section.component.d.ts +2 -1
  250. package/slider/slider.component.d.ts +17 -24
  251. package/space/space.component.d.ts +8 -8
  252. package/statistic/statistic.component.d.ts +35 -40
  253. package/stepper/step-header.component.d.ts +6 -10
  254. package/stepper/step.component.d.ts +6 -6
  255. package/stepper/stepper.component.d.ts +15 -20
  256. package/switch/switch.component.d.ts +24 -35
  257. package/table/table-column.component.d.ts +6 -5
  258. package/table/table-skeleton.component.d.ts +3 -10
  259. package/table/table.component.d.ts +11 -10
  260. package/tabs/tab-content.component.d.ts +4 -4
  261. package/tabs/tab.component.d.ts +4 -5
  262. package/tabs/tabs.component.d.ts +13 -15
  263. package/tag/tag.component.d.ts +10 -16
  264. package/time-picker/time-picker-panel.component.d.ts +3 -2
  265. package/time-picker/time-picker.component.d.ts +6 -5
  266. package/timeline/timeline-item.component.d.ts +9 -13
  267. package/timeline/timeline.component.d.ts +13 -17
  268. package/tooltip/tooltip.directive.d.ts +3 -2
  269. package/tree/tree-node.component.d.ts +6 -15
  270. package/tree/tree.component.d.ts +8 -7
  271. package/tree-select/tree-select.component.d.ts +8 -7
  272. package/typography/bg-color.directive.d.ts +3 -3
  273. package/typography/text/text.component.d.ts +2 -2
  274. package/typography/text-color.directive.d.ts +3 -3
  275. package/upload/file-drop.directive.d.ts +9 -11
  276. package/upload/file-select-base.d.ts +6 -10
  277. package/upload/file-select.component.d.ts +10 -20
  278. package/util/helpers/helpers.d.ts +2 -1
  279. package/vote/vote.component.d.ts +4 -3
  280. package/watermark/watermark.directive.d.ts +7 -9
@@ -1,12 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Input, ViewEncapsulation, ChangeDetectionStrategy, Component, InjectionToken, inject, NgModule } from '@angular/core';
2
+ import { input, ViewEncapsulation, ChangeDetectionStrategy, Component, InjectionToken, inject, computed, NgModule } from '@angular/core';
3
3
  import { NgStyle, CommonModule } from '@angular/common';
4
4
  import { PortalModule } from '@angular/cdk/portal';
5
5
  import { ThyGridModule } from 'ngx-tethys/grid';
6
6
  import { ThyListModule } from 'ngx-tethys/list';
7
7
  import { coerceBooleanProperty, isUndefinedOrNull, helpers } from 'ngx-tethys/util';
8
- import { __decorate, __metadata } from 'tslib';
9
- import { InputCssPixel } from 'ngx-tethys/core';
8
+ import { coerceCssPixelValue } from '@angular/cdk/coercion';
10
9
 
11
10
  /**
12
11
  * 骨架屏组件
@@ -14,8 +13,27 @@ import { InputCssPixel } from 'ngx-tethys/core';
14
13
  * @order 10
15
14
  */
16
15
  class ThySkeleton {
16
+ constructor() {
17
+ /**
18
+ * 是否开启动画
19
+ * @default false
20
+ */
21
+ this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
22
+ /**
23
+ * 动画速度
24
+ */
25
+ this.thyAnimatedInterval = input();
26
+ /**
27
+ * 骨架主色调
28
+ */
29
+ this.thyPrimaryColor = input();
30
+ /**
31
+ * 骨架次色调
32
+ */
33
+ this.thySecondaryColor = input();
34
+ }
17
35
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeleton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.8", type: ThySkeleton, isStandalone: true, selector: "thy-skeleton", inputs: { thyAnimated: ["thyAnimated", "thyAnimated", coerceBooleanProperty], thyAnimatedInterval: "thyAnimatedInterval", thyPrimaryColor: "thyPrimaryColor", thySecondaryColor: "thySecondaryColor" }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
36
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.8", type: ThySkeleton, isStandalone: true, selector: "thy-skeleton", inputs: { thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
19
37
  }
20
38
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeleton, decorators: [{
21
39
  type: Component,
@@ -25,16 +43,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
25
43
  changeDetection: ChangeDetectionStrategy.OnPush,
26
44
  encapsulation: ViewEncapsulation.None
27
45
  }]
28
- }], propDecorators: { thyAnimated: [{
29
- type: Input,
30
- args: [{ transform: coerceBooleanProperty }]
31
- }], thyAnimatedInterval: [{
32
- type: Input
33
- }], thyPrimaryColor: [{
34
- type: Input
35
- }], thySecondaryColor: [{
36
- type: Input
37
- }] } });
46
+ }] });
38
47
 
39
48
  const THY_SKELETON_CONFIG = new InjectionToken('THY_SKELETON_CONFIG', {
40
49
  providedIn: 'root',
@@ -51,54 +60,72 @@ const THY_SKELETON_CONFIG = new InjectionToken('THY_SKELETON_CONFIG', {
51
60
  class ThySkeletonRectangle {
52
61
  constructor() {
53
62
  this.skeletonConfigModel = inject(THY_SKELETON_CONFIG, { optional: true });
54
- this._parent = inject(ThySkeleton, { optional: true });
55
- this.afterStyles = {};
56
- }
57
- ngOnInit() {
58
- const config = {
59
- ...this.skeletonConfigModel,
60
- ...(this._parent || {}),
61
- ...(!isUndefinedOrNull(this._parent?.thyAnimated) && { thyAnimated: this._parent.thyAnimated })
62
- };
63
- const { thyAnimatedInterval, thyPrimaryColor, thySecondaryColor, thyAnimated } = config;
64
- for (let key in { thyAnimatedInterval, thyPrimaryColor, thySecondaryColor, thyAnimated }) {
65
- this[key] = !isUndefinedOrNull(this[key]) ? this[key] : config[key];
66
- }
67
- this.crateAfterStyles();
68
- }
69
- crateAfterStyles() {
70
- this.afterStyles = {
71
- ...(this.thySecondaryColor && {
72
- background: `linear-gradient(90deg, ${helpers.hexToRgb(this.thySecondaryColor, 0)}, ${helpers.hexToRgb(this.thySecondaryColor, 0.15)}, ${helpers.hexToRgb(this.thySecondaryColor, 0)}`
73
- }),
74
- animation: ![false, 'false'].includes(this.thyAnimated)
75
- ? `thy-skeleton-animation ${this.thyAnimatedInterval}s infinite`
76
- : 'none'
77
- };
78
- }
79
- ngOnChanges(changes) {
80
- const { thySecondaryColor, thyAnimated, thyAnimatedInterval } = changes;
81
- if ((thySecondaryColor && !thySecondaryColor?.firstChange) ||
82
- (thyAnimated && !thyAnimated?.firstChange) ||
83
- (thyAnimatedInterval && !thyAnimatedInterval?.firstChange)) {
84
- this.crateAfterStyles();
85
- }
63
+ this.parent = inject(ThySkeleton, { optional: true });
64
+ /**
65
+ * 是否展示动画
66
+ * @default true
67
+ */
68
+ this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
69
+ /**
70
+ * 动画速度
71
+ * @default 1.5s
72
+ */
73
+ this.thyAnimatedInterval = input();
74
+ /**
75
+ * 骨架边框圆角
76
+ * @default 4px
77
+ */
78
+ this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
79
+ /**
80
+ * 骨架宽度
81
+ * @default 100%
82
+ */
83
+ this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
84
+ /**
85
+ * 骨架高度
86
+ * @default 20px
87
+ */
88
+ this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
89
+ /**
90
+ * 骨架主色
91
+ * @default #F7F7F7
92
+ */
93
+ this.thyPrimaryColor = input();
94
+ /**
95
+ * 骨架次色
96
+ * @default #aaaaaa
97
+ */
98
+ this.thySecondaryColor = input();
99
+ this.animatedInterval = computed(() => {
100
+ return this.thyAnimatedInterval() || this.parent?.thyAnimatedInterval() || this.skeletonConfigModel.thyAnimatedInterval;
101
+ });
102
+ this.primaryColor = computed(() => {
103
+ return this.thyPrimaryColor() || this.parent?.thyPrimaryColor() || this.skeletonConfigModel.thyPrimaryColor;
104
+ });
105
+ this.secondaryColor = computed(() => {
106
+ return this.thySecondaryColor() || this.parent?.thySecondaryColor() || this.skeletonConfigModel.thySecondaryColor;
107
+ });
108
+ this.animated = computed(() => {
109
+ if (!isUndefinedOrNull(this.thyAnimated())) {
110
+ return this.thyAnimated();
111
+ }
112
+ if (!isUndefinedOrNull(this.parent?.thyAnimated())) {
113
+ return this.parent.thyAnimated();
114
+ }
115
+ return this.skeletonConfigModel.thyAnimated;
116
+ });
117
+ this.afterStyles = computed(() => {
118
+ return {
119
+ ...(this.secondaryColor() && {
120
+ background: `linear-gradient(90deg, ${helpers.hexToRgb(this.secondaryColor(), 0)}, ${helpers.hexToRgb(this.secondaryColor(), 0.15)}, ${helpers.hexToRgb(this.secondaryColor(), 0)}`
121
+ }),
122
+ animation: ![false, 'false'].includes(this.animated()) ? `thy-skeleton-animation ${this.animatedInterval()}s infinite` : 'none'
123
+ };
124
+ });
86
125
  }
87
126
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonRectangle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
88
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.8", type: ThySkeletonRectangle, isStandalone: true, selector: "thy-skeleton-rectangle", inputs: { thyAnimated: ["thyAnimated", "thyAnimated", coerceBooleanProperty], thyAnimatedInterval: "thyAnimatedInterval", thyBorderRadius: "thyBorderRadius", thyRowWidth: "thyRowWidth", thyRowHeight: "thyRowHeight", thyPrimaryColor: "thyPrimaryColor", thySecondaryColor: "thySecondaryColor" }, host: { properties: { "class.thy-skeleton": "true", "class.thy-skeleton-rectangle": "true", "style.background": "thyPrimaryColor", "style.width": "thyRowWidth", "style.height": "thyRowHeight", "style.borderRadius": "thyBorderRadius" } }, usesOnChanges: true, ngImport: i0, template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles"></div> `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
127
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.8", type: ThySkeletonRectangle, isStandalone: true, selector: "thy-skeleton-rectangle", inputs: { thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton": "true", "class.thy-skeleton-rectangle": "true", "style.background": "primaryColor()", "style.width": "thyRowWidth()", "style.height": "thyRowHeight()", "style.borderRadius": "thyBorderRadius()" } }, ngImport: i0, template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
89
128
  }
90
- __decorate([
91
- InputCssPixel(),
92
- __metadata("design:type", Object)
93
- ], ThySkeletonRectangle.prototype, "thyBorderRadius", void 0);
94
- __decorate([
95
- InputCssPixel(),
96
- __metadata("design:type", Object)
97
- ], ThySkeletonRectangle.prototype, "thyRowWidth", void 0);
98
- __decorate([
99
- InputCssPixel(),
100
- __metadata("design:type", Object)
101
- ], ThySkeletonRectangle.prototype, "thyRowHeight", void 0);
102
129
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonRectangle, decorators: [{
103
130
  type: Component,
104
131
  args: [{
@@ -106,32 +133,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
106
133
  host: {
107
134
  '[class.thy-skeleton]': 'true',
108
135
  '[class.thy-skeleton-rectangle]': 'true',
109
- '[style.background]': 'thyPrimaryColor',
110
- '[style.width]': 'thyRowWidth',
111
- '[style.height]': 'thyRowHeight',
112
- '[style.borderRadius]': 'thyBorderRadius'
136
+ '[style.background]': 'primaryColor()',
137
+ '[style.width]': 'thyRowWidth()',
138
+ '[style.height]': 'thyRowHeight()',
139
+ '[style.borderRadius]': 'thyBorderRadius()'
113
140
  },
114
- template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles"></div> `,
141
+ template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `,
115
142
  changeDetection: ChangeDetectionStrategy.OnPush,
116
143
  encapsulation: ViewEncapsulation.None,
117
144
  imports: [NgStyle]
118
145
  }]
119
- }], propDecorators: { thyAnimated: [{
120
- type: Input,
121
- args: [{ transform: coerceBooleanProperty }]
122
- }], thyAnimatedInterval: [{
123
- type: Input
124
- }], thyBorderRadius: [{
125
- type: Input
126
- }], thyRowWidth: [{
127
- type: Input
128
- }], thyRowHeight: [{
129
- type: Input
130
- }], thyPrimaryColor: [{
131
- type: Input
132
- }], thySecondaryColor: [{
133
- type: Input
134
- }] } });
146
+ }] });
135
147
 
136
148
  /**
137
149
  * 骨架屏圆形组件
@@ -141,51 +153,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
141
153
  class ThySkeletonCircle {
142
154
  constructor() {
143
155
  this.skeletonConfigModel = inject(THY_SKELETON_CONFIG, { optional: true });
144
- this._parent = inject(ThySkeleton, { optional: true });
156
+ this.parent = inject(ThySkeleton, { optional: true });
157
+ /**
158
+ * 动画速度
159
+ * @default 1.5s
160
+ */
161
+ this.thyAnimatedInterval = input();
145
162
  /**
146
163
  * 骨架尺寸
147
164
  * @default 20px
148
165
  */
149
- this.thySize = 20;
150
- this.afterStyles = {};
151
- }
152
- ngOnInit() {
153
- const config = {
154
- ...this.skeletonConfigModel,
155
- ...(this._parent || {}),
156
- ...(!isUndefinedOrNull(this._parent?.thyAnimated) && { thyAnimated: this._parent.thyAnimated }) // do it because @InputBoolean() lead to cannot get thyAnimated from _parent inject
157
- };
158
- const { thyAnimatedInterval, thyPrimaryColor, thySecondaryColor, thyAnimated } = config;
159
- for (let key in { thyAnimatedInterval, thyPrimaryColor, thySecondaryColor, thyAnimated }) {
160
- this[key] = !isUndefinedOrNull(this[key]) ? this[key] : config[key];
161
- }
162
- this.crateAfterStyles();
163
- }
164
- crateAfterStyles() {
165
- this.afterStyles = {
166
- ...(this.thySecondaryColor && {
167
- background: `linear-gradient(90deg, ${helpers.hexToRgb(this.thySecondaryColor, 0)}, ${helpers.hexToRgb(this.thySecondaryColor, 0.15)}, ${helpers.hexToRgb(this.thySecondaryColor, 0)}`
168
- }),
169
- animation: ![false, 'false'].includes(this.thyAnimated)
170
- ? `thy-skeleton-animation ${this.thyAnimatedInterval}s infinite`
171
- : 'none'
172
- };
173
- }
174
- ngOnChanges(changes) {
175
- const { thySecondaryColor, thyAnimated, thyAnimatedInterval } = changes;
176
- if ((thySecondaryColor && !thySecondaryColor?.firstChange) ||
177
- (thyAnimated && !thyAnimated?.firstChange) ||
178
- (thyAnimatedInterval && !thyAnimatedInterval?.firstChange)) {
179
- this.crateAfterStyles();
180
- }
166
+ this.thySize = input(`20px`, { transform: coerceCssPixelValue });
167
+ /**
168
+ * 骨架主色
169
+ * @default #F7F7F7
170
+ */
171
+ this.thyPrimaryColor = input();
172
+ /**
173
+ * 骨架次色
174
+ * @default #aaaaaa
175
+ */
176
+ this.thySecondaryColor = input();
177
+ /**
178
+ * 是否展示动画
179
+ * @default true
180
+ */
181
+ this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
182
+ this.animatedInterval = computed(() => {
183
+ return this.thyAnimatedInterval() || this.parent?.thyAnimatedInterval() || this.skeletonConfigModel.thyAnimatedInterval;
184
+ });
185
+ this.primaryColor = computed(() => {
186
+ return this.thyPrimaryColor() || this.parent?.thyPrimaryColor() || this.skeletonConfigModel.thyPrimaryColor;
187
+ });
188
+ this.secondaryColor = computed(() => {
189
+ return this.thySecondaryColor() || this.parent?.thySecondaryColor() || this.skeletonConfigModel.thySecondaryColor;
190
+ });
191
+ this.animated = computed(() => {
192
+ if (!isUndefinedOrNull(this.thyAnimated())) {
193
+ return this.thyAnimated();
194
+ }
195
+ if (!isUndefinedOrNull(this.parent?.thyAnimated())) {
196
+ return this.parent.thyAnimated();
197
+ }
198
+ return this.skeletonConfigModel.thyAnimated;
199
+ });
200
+ this.afterStyles = computed(() => {
201
+ return {
202
+ ...(this.secondaryColor() && {
203
+ background: `linear-gradient(90deg, ${helpers.hexToRgb(this.secondaryColor(), 0)}, ${helpers.hexToRgb(this.secondaryColor(), 0.15)}, ${helpers.hexToRgb(this.secondaryColor(), 0)}`
204
+ }),
205
+ animation: ![false, 'false'].includes(this.animated()) ? `thy-skeleton-animation ${this.animatedInterval()}s infinite` : 'none'
206
+ };
207
+ });
181
208
  }
182
209
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonCircle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
183
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.8", type: ThySkeletonCircle, isStandalone: true, selector: "thy-skeleton-circle", inputs: { thyAnimatedInterval: "thyAnimatedInterval", thySize: "thySize", thyPrimaryColor: "thyPrimaryColor", thySecondaryColor: "thySecondaryColor", thyAnimated: ["thyAnimated", "thyAnimated", coerceBooleanProperty] }, host: { properties: { "class.thy-skeleton": "true", "class.thy-skeleton-circle": "true", "style.background": "thyPrimaryColor", "style.width": "thySize", "style.height": "thySize" } }, usesOnChanges: true, ngImport: i0, template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles"></div> `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
210
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.8", type: ThySkeletonCircle, isStandalone: true, selector: "thy-skeleton-circle", inputs: { thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thySize: { classPropertyName: "thySize", publicName: "thySize", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton": "true", "class.thy-skeleton-circle": "true", "style.background": "primaryColor()", "style.width": "thySize()", "style.height": "thySize()" } }, ngImport: i0, template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
184
211
  }
185
- __decorate([
186
- InputCssPixel(),
187
- __metadata("design:type", Object)
188
- ], ThySkeletonCircle.prototype, "thySize", void 0);
189
212
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonCircle, decorators: [{
190
213
  type: Component,
191
214
  args: [{
@@ -193,27 +216,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
193
216
  host: {
194
217
  '[class.thy-skeleton]': 'true',
195
218
  '[class.thy-skeleton-circle]': 'true',
196
- '[style.background]': 'thyPrimaryColor',
197
- '[style.width]': 'thySize',
198
- '[style.height]': 'thySize'
219
+ '[style.background]': 'primaryColor()',
220
+ '[style.width]': 'thySize()',
221
+ '[style.height]': 'thySize()'
199
222
  },
200
- template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles"></div> `,
223
+ template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `,
201
224
  changeDetection: ChangeDetectionStrategy.OnPush,
202
225
  encapsulation: ViewEncapsulation.None,
203
226
  imports: [NgStyle]
204
227
  }]
205
- }], propDecorators: { thyAnimatedInterval: [{
206
- type: Input
207
- }], thySize: [{
208
- type: Input
209
- }], thyPrimaryColor: [{
210
- type: Input
211
- }], thySecondaryColor: [{
212
- type: Input
213
- }], thyAnimated: [{
214
- type: Input,
215
- args: [{ transform: coerceBooleanProperty }]
216
- }] } });
228
+ }] });
217
229
 
218
230
  /**
219
231
  * 骨架屏列表组件
@@ -222,86 +234,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
222
234
  */
223
235
  class ThySkeletonList {
224
236
  constructor() {
225
- this.rowCount = [];
226
- }
227
- /**
228
- * 行数
229
- */
230
- set thyRowCount(value) {
231
- this.rowCount = Array.from({ length: +value });
232
- }
233
- get thyRowCount() {
234
- return this.rowCount.length;
237
+ /**
238
+ * 骨架宽度
239
+ */
240
+ this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
241
+ /**
242
+ * 骨架高度
243
+ */
244
+ this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
245
+ /**
246
+ * 骨架边框圆角
247
+ */
248
+ this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
249
+ /**
250
+ * 是否开启动画
251
+ * @default false
252
+ */
253
+ this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
254
+ /**
255
+ * 动画速度
256
+ */
257
+ this.thyAnimatedInterval = input();
258
+ /**
259
+ * 骨架主色
260
+ */
261
+ this.thyPrimaryColor = input();
262
+ /**
263
+ * 骨架次色
264
+ */
265
+ this.thySecondaryColor = input();
266
+ /**
267
+ * 行数
268
+ */
269
+ this.thyRowCount = input();
270
+ this.rows = computed(() => {
271
+ return Array.from({ length: +this.thyRowCount() });
272
+ });
235
273
  }
236
274
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
237
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonList, isStandalone: true, selector: "thy-skeleton-list", inputs: { thyRowWidth: "thyRowWidth", thyRowHeight: "thyRowHeight", thyBorderRadius: "thyBorderRadius", thyAnimated: ["thyAnimated", "thyAnimated", coerceBooleanProperty], thyAnimatedInterval: "thyAnimatedInterval", thyPrimaryColor: "thyPrimaryColor", thySecondaryColor: "thySecondaryColor", thyRowCount: "thyRowCount" }, host: { properties: { "class.thy-skeleton-list": "true" } }, ngImport: i0, template: `
238
- @for (k of rowCount; track $index; let i = $index) {
275
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonList, isStandalone: true, selector: "thy-skeleton-list", inputs: { thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thyRowCount: { classPropertyName: "thyRowCount", publicName: "thyRowCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton-list": "true" } }, ngImport: i0, template: `
276
+ @for (k of rows(); track $index; let i = $index) {
239
277
  <thy-skeleton-rectangle
240
278
  class="vertical-gap"
241
- [thyRowWidth]="thyRowWidth"
242
- [thyRowHeight]="thyRowHeight"
243
- [thyAnimated]="thyAnimated"
244
- [thyPrimaryColor]="thyPrimaryColor"
245
- [thySecondaryColor]="thySecondaryColor"
246
- [thyBorderRadius]="thyBorderRadius"
247
- [thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
279
+ [thyRowWidth]="thyRowWidth()"
280
+ [thyRowHeight]="thyRowHeight()"
281
+ [thyAnimated]="thyAnimated()"
282
+ [thyPrimaryColor]="thyPrimaryColor()"
283
+ [thySecondaryColor]="thySecondaryColor()"
284
+ [thyBorderRadius]="thyBorderRadius()"
285
+ [thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
248
286
  }
249
287
  `, isInline: true, dependencies: [{ kind: "component", type: ThySkeletonRectangle, selector: "thy-skeleton-rectangle", inputs: ["thyAnimated", "thyAnimatedInterval", "thyBorderRadius", "thyRowWidth", "thyRowHeight", "thyPrimaryColor", "thySecondaryColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
250
288
  }
251
- __decorate([
252
- InputCssPixel(),
253
- __metadata("design:type", Object)
254
- ], ThySkeletonList.prototype, "thyRowWidth", void 0);
255
- __decorate([
256
- InputCssPixel(),
257
- __metadata("design:type", Object)
258
- ], ThySkeletonList.prototype, "thyRowHeight", void 0);
259
- __decorate([
260
- InputCssPixel(),
261
- __metadata("design:type", Object)
262
- ], ThySkeletonList.prototype, "thyBorderRadius", void 0);
263
289
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonList, decorators: [{
264
290
  type: Component,
265
291
  args: [{
266
292
  selector: 'thy-skeleton-list',
267
293
  template: `
268
- @for (k of rowCount; track $index; let i = $index) {
294
+ @for (k of rows(); track $index; let i = $index) {
269
295
  <thy-skeleton-rectangle
270
296
  class="vertical-gap"
271
- [thyRowWidth]="thyRowWidth"
272
- [thyRowHeight]="thyRowHeight"
273
- [thyAnimated]="thyAnimated"
274
- [thyPrimaryColor]="thyPrimaryColor"
275
- [thySecondaryColor]="thySecondaryColor"
276
- [thyBorderRadius]="thyBorderRadius"
277
- [thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
297
+ [thyRowWidth]="thyRowWidth()"
298
+ [thyRowHeight]="thyRowHeight()"
299
+ [thyAnimated]="thyAnimated()"
300
+ [thyPrimaryColor]="thyPrimaryColor()"
301
+ [thySecondaryColor]="thySecondaryColor()"
302
+ [thyBorderRadius]="thyBorderRadius()"
303
+ [thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
278
304
  }
279
305
  `,
280
- host: {
281
- '[class.thy-skeleton-list]': 'true'
282
- },
306
+ host: { '[class.thy-skeleton-list]': 'true' },
283
307
  changeDetection: ChangeDetectionStrategy.OnPush,
284
308
  encapsulation: ViewEncapsulation.None,
285
309
  imports: [ThySkeletonRectangle]
286
310
  }]
287
- }], propDecorators: { thyRowWidth: [{
288
- type: Input
289
- }], thyRowHeight: [{
290
- type: Input
291
- }], thyBorderRadius: [{
292
- type: Input
293
- }], thyAnimated: [{
294
- type: Input,
295
- args: [{ transform: coerceBooleanProperty }]
296
- }], thyAnimatedInterval: [{
297
- type: Input
298
- }], thyPrimaryColor: [{
299
- type: Input
300
- }], thySecondaryColor: [{
301
- type: Input
302
- }], thyRowCount: [{
303
- type: Input
304
- }] } });
311
+ }] });
305
312
 
306
313
  /**
307
314
  * 骨架屏段落组件
@@ -310,98 +317,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
310
317
  */
311
318
  class ThySkeletonParagraph {
312
319
  constructor() {
313
- this.rowCount = [];
314
- }
315
- /**
316
- * 行数
317
- */
318
- set thyRowCount(value) {
319
- this.rowCount = Array.from({ length: +value });
320
- }
321
- get thyRowCount() {
322
- return this.rowCount.length;
320
+ /**
321
+ * 首行宽度
322
+ */
323
+ this.thyFirstWidth = input(undefined, { transform: coerceCssPixelValue });
324
+ /**
325
+ * 尾行宽度
326
+ */
327
+ this.thyLastWidth = input(undefined, { transform: coerceCssPixelValue });
328
+ /**
329
+ * 骨架宽度
330
+ */
331
+ this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
332
+ /**
333
+ * 骨架高度
334
+ */
335
+ this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
336
+ /**
337
+ * 骨架边框圆角
338
+ */
339
+ this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
340
+ /**
341
+ * 是否开启动画
342
+ * @default false
343
+ */
344
+ this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
345
+ /**
346
+ * 动画速度
347
+ */
348
+ this.thyAnimatedInterval = input();
349
+ /**
350
+ * 骨架主色
351
+ */
352
+ this.thyPrimaryColor = input();
353
+ /**
354
+ * 骨架次色
355
+ */
356
+ this.thySecondaryColor = input();
357
+ /**
358
+ * 行数
359
+ */
360
+ this.thyRowCount = input();
361
+ this.rows = computed(() => {
362
+ return Array.from({ length: +this.thyRowCount() });
363
+ });
323
364
  }
324
365
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonParagraph, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
325
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonParagraph, isStandalone: true, selector: "thy-skeleton-paragraph", inputs: { thyFirstWidth: "thyFirstWidth", thyLastWidth: "thyLastWidth", thyRowWidth: "thyRowWidth", thyRowHeight: "thyRowHeight", thyBorderRadius: "thyBorderRadius", thyAnimated: ["thyAnimated", "thyAnimated", coerceBooleanProperty], thyAnimatedInterval: "thyAnimatedInterval", thyPrimaryColor: "thyPrimaryColor", thySecondaryColor: "thySecondaryColor", thyRowCount: "thyRowCount" }, host: { properties: { "class.thy-skeleton-paragraph": "true" } }, ngImport: i0, template: `
326
- @for (k of rowCount; track $index; let i = $index) {
366
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonParagraph, isStandalone: true, selector: "thy-skeleton-paragraph", inputs: { thyFirstWidth: { classPropertyName: "thyFirstWidth", publicName: "thyFirstWidth", isSignal: true, isRequired: false, transformFunction: null }, thyLastWidth: { classPropertyName: "thyLastWidth", publicName: "thyLastWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thyRowCount: { classPropertyName: "thyRowCount", publicName: "thyRowCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton-paragraph": "true" } }, ngImport: i0, template: `
367
+ @for (k of rows(); track $index; let i = $index) {
327
368
  <thy-skeleton-rectangle
328
369
  class="vertical-gap"
329
- [thyRowWidth]="i === 0 ? thyFirstWidth : i === rowCount.length - 1 ? thyLastWidth : thyRowWidth"
330
- [thyRowHeight]="thyRowHeight"
331
- [thyAnimated]="thyAnimated"
332
- [thyPrimaryColor]="thyPrimaryColor"
333
- [thySecondaryColor]="thySecondaryColor"
334
- [thyBorderRadius]="thyBorderRadius"
335
- [thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
370
+ [thyRowWidth]="i === 0 ? thyFirstWidth() : i === rows().length - 1 ? thyLastWidth() : thyRowWidth()"
371
+ [thyRowHeight]="thyRowHeight()"
372
+ [thyAnimated]="thyAnimated()"
373
+ [thyPrimaryColor]="thyPrimaryColor()"
374
+ [thySecondaryColor]="thySecondaryColor()"
375
+ [thyBorderRadius]="thyBorderRadius()"
376
+ [thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
336
377
  }
337
378
  `, isInline: true, dependencies: [{ kind: "component", type: ThySkeletonRectangle, selector: "thy-skeleton-rectangle", inputs: ["thyAnimated", "thyAnimatedInterval", "thyBorderRadius", "thyRowWidth", "thyRowHeight", "thyPrimaryColor", "thySecondaryColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
338
379
  }
339
- __decorate([
340
- InputCssPixel(),
341
- __metadata("design:type", Object)
342
- ], ThySkeletonParagraph.prototype, "thyFirstWidth", void 0);
343
- __decorate([
344
- InputCssPixel(),
345
- __metadata("design:type", Object)
346
- ], ThySkeletonParagraph.prototype, "thyLastWidth", void 0);
347
- __decorate([
348
- InputCssPixel(),
349
- __metadata("design:type", Object)
350
- ], ThySkeletonParagraph.prototype, "thyRowWidth", void 0);
351
- __decorate([
352
- InputCssPixel(),
353
- __metadata("design:type", Object)
354
- ], ThySkeletonParagraph.prototype, "thyRowHeight", void 0);
355
- __decorate([
356
- InputCssPixel(),
357
- __metadata("design:type", Object)
358
- ], ThySkeletonParagraph.prototype, "thyBorderRadius", void 0);
359
380
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonParagraph, decorators: [{
360
381
  type: Component,
361
382
  args: [{
362
383
  selector: 'thy-skeleton-paragraph',
363
384
  template: `
364
- @for (k of rowCount; track $index; let i = $index) {
385
+ @for (k of rows(); track $index; let i = $index) {
365
386
  <thy-skeleton-rectangle
366
387
  class="vertical-gap"
367
- [thyRowWidth]="i === 0 ? thyFirstWidth : i === rowCount.length - 1 ? thyLastWidth : thyRowWidth"
368
- [thyRowHeight]="thyRowHeight"
369
- [thyAnimated]="thyAnimated"
370
- [thyPrimaryColor]="thyPrimaryColor"
371
- [thySecondaryColor]="thySecondaryColor"
372
- [thyBorderRadius]="thyBorderRadius"
373
- [thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
388
+ [thyRowWidth]="i === 0 ? thyFirstWidth() : i === rows().length - 1 ? thyLastWidth() : thyRowWidth()"
389
+ [thyRowHeight]="thyRowHeight()"
390
+ [thyAnimated]="thyAnimated()"
391
+ [thyPrimaryColor]="thyPrimaryColor()"
392
+ [thySecondaryColor]="thySecondaryColor()"
393
+ [thyBorderRadius]="thyBorderRadius()"
394
+ [thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
374
395
  }
375
396
  `,
376
- host: {
377
- '[class.thy-skeleton-paragraph]': 'true'
378
- },
397
+ host: { '[class.thy-skeleton-paragraph]': 'true' },
379
398
  changeDetection: ChangeDetectionStrategy.OnPush,
380
399
  encapsulation: ViewEncapsulation.None,
381
400
  imports: [ThySkeletonRectangle]
382
401
  }]
383
- }], propDecorators: { thyFirstWidth: [{
384
- type: Input
385
- }], thyLastWidth: [{
386
- type: Input
387
- }], thyRowWidth: [{
388
- type: Input
389
- }], thyRowHeight: [{
390
- type: Input
391
- }], thyBorderRadius: [{
392
- type: Input
393
- }], thyAnimated: [{
394
- type: Input,
395
- args: [{ transform: coerceBooleanProperty }]
396
- }], thyAnimatedInterval: [{
397
- type: Input
398
- }], thyPrimaryColor: [{
399
- type: Input
400
- }], thySecondaryColor: [{
401
- type: Input
402
- }], thyRowCount: [{
403
- type: Input
404
- }] } });
402
+ }] });
405
403
 
406
404
  /**
407
405
  * 骨架屏无序列表组件
@@ -409,115 +407,114 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
409
407
  * @order 50
410
408
  */
411
409
  class ThySkeletonBulletList {
412
- /**
413
- * 行数
414
- */
415
- set thyRowCount(value) {
416
- this.rowCount = Array.from({ length: +value });
417
- }
418
- get thyRowCount() {
419
- return this.rowCount.length;
420
- }
421
410
  constructor() {
422
- this.rowCount = [];
411
+ /**
412
+ * 骨架宽度
413
+ * @default 100%
414
+ */
415
+ this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
416
+ /**
417
+ * 骨架高度
418
+ * @default 20px
419
+ */
420
+ this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
421
+ /**
422
+ * 骨架边框圆角
423
+ * @default 4px
424
+ */
425
+ this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
426
+ /**
427
+ * 是否开启动画
428
+ * @default true
429
+ */
430
+ this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
431
+ /**
432
+ * 动画速度
433
+ * @default 1.5s
434
+ */
435
+ this.thyAnimatedInterval = input();
436
+ /**
437
+ * 骨架主色
438
+ * @default #f7f7f7
439
+ */
440
+ this.thyPrimaryColor = input();
441
+ /**
442
+ * 骨架次色
443
+ * @default #aaaaaa
444
+ */
445
+ this.thySecondaryColor = input();
446
+ /**
447
+ * circle类型骨架尺寸
448
+ */
449
+ this.thySize = input(undefined, { transform: coerceCssPixelValue });
450
+ /**
451
+ * 行数
452
+ */
453
+ this.thyRowCount = input();
454
+ this.rows = computed(() => {
455
+ return Array.from({ length: +this.thyRowCount() });
456
+ });
423
457
  }
424
458
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonBulletList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
425
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonBulletList, isStandalone: true, selector: "thy-skeleton-bullet-list", inputs: { thyRowWidth: "thyRowWidth", thyRowHeight: "thyRowHeight", thyBorderRadius: "thyBorderRadius", thyAnimated: ["thyAnimated", "thyAnimated", coerceBooleanProperty], thyAnimatedInterval: "thyAnimatedInterval", thyPrimaryColor: "thyPrimaryColor", thySecondaryColor: "thySecondaryColor", thySize: "thySize", thyRowCount: "thyRowCount" }, host: { properties: { "class.thy-skeleton-bullet-list": "true" } }, ngImport: i0, template: `
426
- @for (item of rowCount; track $index; let i = $index) {
459
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonBulletList, isStandalone: true, selector: "thy-skeleton-bullet-list", inputs: { thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySize: { classPropertyName: "thySize", publicName: "thySize", isSignal: true, isRequired: false, transformFunction: null }, thyRowCount: { classPropertyName: "thyRowCount", publicName: "thyRowCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton-bullet-list": "true" } }, ngImport: i0, template: `
460
+ @for (item of rows(); track $index; let i = $index) {
427
461
  <div class="d-flex vertical-gap">
428
462
  <thy-skeleton-circle
429
- [thyAnimated]="thyAnimated"
430
- [thyAnimatedInterval]="thyAnimatedInterval"
431
- [thySize]="thySize"
432
- [thyPrimaryColor]="thyPrimaryColor"
433
- [thySecondaryColor]="thySecondaryColor">
463
+ [thyAnimated]="thyAnimated()"
464
+ [thyAnimatedInterval]="thyAnimatedInterval()"
465
+ [thySize]="thySize()"
466
+ [thyPrimaryColor]="thyPrimaryColor()"
467
+ [thySecondaryColor]="thySecondaryColor()">
434
468
  </thy-skeleton-circle>
435
469
  <div class="horizontal-gap"></div>
436
470
  <div style="flex: 1">
437
471
  <thy-skeleton-rectangle
438
- [thyRowWidth]="thyRowWidth"
439
- [thyRowHeight]="thyRowHeight"
440
- [thyAnimated]="thyAnimated"
441
- [thyPrimaryColor]="thyPrimaryColor"
442
- [thySecondaryColor]="thySecondaryColor"
443
- [thyBorderRadius]="thyBorderRadius"
444
- [thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
472
+ [thyRowWidth]="thyRowWidth()"
473
+ [thyRowHeight]="thyRowHeight()"
474
+ [thyAnimated]="thyAnimated()"
475
+ [thyPrimaryColor]="thyPrimaryColor()"
476
+ [thySecondaryColor]="thySecondaryColor()"
477
+ [thyBorderRadius]="thyBorderRadius()"
478
+ [thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
445
479
  </div>
446
480
  </div>
447
481
  }
448
482
  `, isInline: true, dependencies: [{ kind: "component", type: ThySkeletonCircle, selector: "thy-skeleton-circle", inputs: ["thyAnimatedInterval", "thySize", "thyPrimaryColor", "thySecondaryColor", "thyAnimated"] }, { kind: "component", type: ThySkeletonRectangle, selector: "thy-skeleton-rectangle", inputs: ["thyAnimated", "thyAnimatedInterval", "thyBorderRadius", "thyRowWidth", "thyRowHeight", "thyPrimaryColor", "thySecondaryColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
449
483
  }
450
- __decorate([
451
- InputCssPixel(),
452
- __metadata("design:type", Object)
453
- ], ThySkeletonBulletList.prototype, "thyRowWidth", void 0);
454
- __decorate([
455
- InputCssPixel(),
456
- __metadata("design:type", Object)
457
- ], ThySkeletonBulletList.prototype, "thyRowHeight", void 0);
458
- __decorate([
459
- InputCssPixel(),
460
- __metadata("design:type", Object)
461
- ], ThySkeletonBulletList.prototype, "thyBorderRadius", void 0);
462
- __decorate([
463
- InputCssPixel(),
464
- __metadata("design:type", Object)
465
- ], ThySkeletonBulletList.prototype, "thySize", void 0);
466
484
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonBulletList, decorators: [{
467
485
  type: Component,
468
486
  args: [{
469
487
  selector: 'thy-skeleton-bullet-list',
470
488
  template: `
471
- @for (item of rowCount; track $index; let i = $index) {
489
+ @for (item of rows(); track $index; let i = $index) {
472
490
  <div class="d-flex vertical-gap">
473
491
  <thy-skeleton-circle
474
- [thyAnimated]="thyAnimated"
475
- [thyAnimatedInterval]="thyAnimatedInterval"
476
- [thySize]="thySize"
477
- [thyPrimaryColor]="thyPrimaryColor"
478
- [thySecondaryColor]="thySecondaryColor">
492
+ [thyAnimated]="thyAnimated()"
493
+ [thyAnimatedInterval]="thyAnimatedInterval()"
494
+ [thySize]="thySize()"
495
+ [thyPrimaryColor]="thyPrimaryColor()"
496
+ [thySecondaryColor]="thySecondaryColor()">
479
497
  </thy-skeleton-circle>
480
498
  <div class="horizontal-gap"></div>
481
499
  <div style="flex: 1">
482
500
  <thy-skeleton-rectangle
483
- [thyRowWidth]="thyRowWidth"
484
- [thyRowHeight]="thyRowHeight"
485
- [thyAnimated]="thyAnimated"
486
- [thyPrimaryColor]="thyPrimaryColor"
487
- [thySecondaryColor]="thySecondaryColor"
488
- [thyBorderRadius]="thyBorderRadius"
489
- [thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
501
+ [thyRowWidth]="thyRowWidth()"
502
+ [thyRowHeight]="thyRowHeight()"
503
+ [thyAnimated]="thyAnimated()"
504
+ [thyPrimaryColor]="thyPrimaryColor()"
505
+ [thySecondaryColor]="thySecondaryColor()"
506
+ [thyBorderRadius]="thyBorderRadius()"
507
+ [thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
490
508
  </div>
491
509
  </div>
492
510
  }
493
511
  `,
494
- host: {
495
- '[class.thy-skeleton-bullet-list]': 'true'
496
- },
512
+ host: { '[class.thy-skeleton-bullet-list]': 'true' },
497
513
  changeDetection: ChangeDetectionStrategy.OnPush,
498
514
  encapsulation: ViewEncapsulation.None,
499
515
  imports: [ThySkeletonCircle, ThySkeletonRectangle]
500
516
  }]
501
- }], ctorParameters: () => [], propDecorators: { thyRowWidth: [{
502
- type: Input
503
- }], thyRowHeight: [{
504
- type: Input
505
- }], thyBorderRadius: [{
506
- type: Input
507
- }], thyAnimated: [{
508
- type: Input,
509
- args: [{ transform: coerceBooleanProperty }]
510
- }], thyAnimatedInterval: [{
511
- type: Input
512
- }], thyPrimaryColor: [{
513
- type: Input
514
- }], thySecondaryColor: [{
515
- type: Input
516
- }], thySize: [{
517
- type: Input
518
- }], thyRowCount: [{
519
- type: Input
520
- }] } });
517
+ }], ctorParameters: () => [] });
521
518
 
522
519
  const components = [ThySkeleton, ThySkeletonRectangle, ThySkeletonCircle, ThySkeletonList, ThySkeletonParagraph, ThySkeletonBulletList];
523
520
  class ThySkeletonModule {