@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  68. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  70. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  72. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
  74. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  76. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  78. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  80. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  82. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  84. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  86. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  88. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  90. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  92. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
  94. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
  96. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  98. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  100. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  102. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
  104. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  106. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  108. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  110. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  112. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  114. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  116. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  118. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
  120. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  122. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  124. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  126. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  128. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  130. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
  132. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  134. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  136. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  138. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  140. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  142. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  144. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  146. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
  148. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  150. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  152. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
  154. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  156. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  158. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  160. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  162. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  164. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  166. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
  168. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  170. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  171. package/package.json +5 -5
  172. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  173. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  174. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  175. package/schematics/migrations.json +7 -2
  176. package/schematics/utils/removed-inputs.js +0 -0
  177. package/schematics/utils/renamed-inputs.js +175 -0
  178. package/schematics/utils/styleclass.js +24 -8
  179. package/schematics/utils/versions.json +8 -8
  180. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  181. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  182. package/types/exhaustive-ui-core-api.d.ts +2 -3
  183. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  184. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  185. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  186. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  187. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  188. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  189. package/types/exhaustive-ui-core-button.d.ts +57 -89
  190. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  191. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  192. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  193. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  194. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  195. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  196. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  197. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  198. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  199. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  200. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  201. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  202. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  203. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  204. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  205. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  206. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  207. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  208. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  209. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  210. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  211. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  212. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  213. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  214. package/types/exhaustive-ui-core-image.d.ts +35 -68
  215. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  216. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  217. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  218. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  219. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  220. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  222. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  223. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  224. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  225. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  226. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  227. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  228. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  229. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  230. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  231. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  232. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  233. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  234. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  235. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  236. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  237. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  238. package/types/exhaustive-ui-core-password.d.ts +56 -93
  239. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  240. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  241. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  242. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  243. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  244. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  245. package/types/exhaustive-ui-core-select.d.ts +137 -188
  246. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  247. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  248. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  249. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  250. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  251. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  252. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  253. package/types/exhaustive-ui-core-table.d.ts +349 -453
  254. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  255. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  256. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  257. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  258. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  259. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  260. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  261. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  262. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  263. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  264. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  265. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/metergroup';
2
2
  import * as i1 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, forwardRef, Input, ChangeDetectionStrategy, Component, contentChild, contentChildren, ViewEncapsulation, NgModule } from '@angular/core';
5
+ import { Injectable, input, inject, forwardRef, computed, ChangeDetectionStrategy, Component, afterNextRender, afterEveryRender, contentChild, contentChildren, ViewEncapsulation, NgModule } from '@angular/core';
6
6
  import { getOuterHeight } from '@exhaustive-ui/utils';
7
7
  import { SharedModule, PrimeTemplate } from '@exhaustive-ui/core/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -15,8 +15,8 @@ const classes = {
15
15
  root: ({ instance }) => [
16
16
  'p-metergroup p-component',
17
17
  {
18
- 'p-metergroup-horizontal': instance.orientation === 'horizontal',
19
- 'p-metergroup-vertical': instance.orientation === 'vertical'
18
+ 'p-metergroup-horizontal': instance.orientation() === 'horizontal',
19
+ 'p-metergroup-vertical': instance.orientation() === 'vertical'
20
20
  }
21
21
  ],
22
22
  meters: 'p-metergroup-meters',
@@ -24,8 +24,8 @@ const classes = {
24
24
  labelList: ({ instance }) => [
25
25
  'p-metergroup-label-list',
26
26
  {
27
- 'p-metergroup-label-list-vertical': instance.labelOrientation === 'vertical',
28
- 'p-metergroup-label-list-horizontal': instance.labelOrientation === 'horizontal'
27
+ 'p-metergroup-label-list-vertical': instance.labelOrientation() === 'vertical',
28
+ 'p-metergroup-label-list-horizontal': instance.labelOrientation() === 'horizontal'
29
29
  }
30
30
  ],
31
31
  label: 'p-metergroup-label',
@@ -88,27 +88,31 @@ var MeterGroupClasses;
88
88
  MeterGroupClasses["labelText"] = "p-metergroup-label-text";
89
89
  })(MeterGroupClasses || (MeterGroupClasses = {}));
90
90
 
91
- const METERGROUP_INSTANCE = new InjectionToken('METERGROUP_INSTANCE');
92
91
  class MeterGroupLabel extends BaseComponent {
93
- value = [];
94
- labelPosition = 'end';
95
- labelOrientation = 'horizontal';
96
- min;
97
- max;
98
- iconTemplate;
92
+ value = input([], /* @ts-ignore */
93
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
94
+ labelPosition = input('end', /* @ts-ignore */
95
+ ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
96
+ labelOrientation = input('horizontal', /* @ts-ignore */
97
+ ...(ngDevMode ? [{ debugName: "labelOrientation" }] : /* istanbul ignore next */ []));
98
+ min = input(/* @ts-ignore */
99
+ ...(ngDevMode ? [undefined, { debugName: "min" }] : /* istanbul ignore next */ []));
100
+ max = input(/* @ts-ignore */
101
+ ...(ngDevMode ? [undefined, { debugName: "max" }] : /* istanbul ignore next */ []));
102
+ iconTemplate = input(/* @ts-ignore */
103
+ ...(ngDevMode ? [undefined, { debugName: "iconTemplate" }] : /* istanbul ignore next */ []));
99
104
  parentInstance = inject(forwardRef(() => MeterGroup));
100
105
  _componentStyle = inject(MeterGroupStyle);
101
- get dataP() {
102
- return this.cn({
103
- [this.labelOrientation]: this.labelOrientation
104
- });
105
- }
106
+ dataP = computed(() => this.cn({
107
+ [this.labelOrientation()]: this.labelOrientation()
108
+ }), /* @ts-ignore */
109
+ ...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
106
110
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MeterGroupLabel, deps: null, target: i0.ɵɵFactoryTarget.Component });
107
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MeterGroupLabel, isStandalone: true, selector: "p-meterGroupLabel, p-metergrouplabel", inputs: { value: "value", labelPosition: "labelPosition", labelOrientation: "labelOrientation", min: "min", max: "max", iconTemplate: "iconTemplate" }, usesInheritance: true, ngImport: i0, template: `
108
- <ol [class]="cx('labelList')" [pBind]="ptm('labelList')" [attr.data-p]="dataP">
109
- @for (labelItem of value; track parentInstance.trackByFn(index); let index = $index) {
111
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MeterGroupLabel, isStandalone: true, selector: "p-meterGroupLabel, p-metergrouplabel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, labelOrientation: { classPropertyName: "labelOrientation", publicName: "labelOrientation", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, iconTemplate: { classPropertyName: "iconTemplate", publicName: "iconTemplate", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
112
+ <ol [class]="cx('labelList')" [pBind]="ptm('labelList')" [attr.data-p]="dataP()">
113
+ @for (labelItem of value(); track parentInstance.trackByFn(index); let index = $index) {
110
114
  <li [class]="cx('label')" [pBind]="ptm('label')">
111
- @if (!iconTemplate) {
115
+ @if (!iconTemplate()) {
112
116
  @if (labelItem.icon) {
113
117
  <i [class]="labelItem.icon" [ngClass]="cx('labelIcon')" [pBind]="ptm('labelIcon')" [ngStyle]="{ color: labelItem.color }"></i>
114
118
  }
@@ -116,25 +120,24 @@ class MeterGroupLabel extends BaseComponent {
116
120
  <span [class]="cx('labelMarker')" [pBind]="ptm('labelMarker')" [ngStyle]="{ backgroundColor: labelItem.color }"></span>
117
121
  }
118
122
  }
119
- <ng-container *ngTemplateOutlet="iconTemplate; context: { $implicit: labelItem, icon: labelItem.icon }"></ng-container>
123
+ <ng-container *ngTemplateOutlet="iconTemplate(); context: { $implicit: labelItem, icon: labelItem.icon }"></ng-container>
120
124
  <span [class]="cx('labelText')" [pBind]="ptm('labelText')">{{ labelItem.label }} ({{ parentInstance.percentValue(labelItem.value) }})</span>
121
125
  </li>
122
126
  }
123
127
  </ol>
124
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
128
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
125
129
  }
126
130
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MeterGroupLabel, decorators: [{
127
131
  type: Component,
128
132
  args: [{
129
- changeDetection: ChangeDetectionStrategy.Eager,
133
+ changeDetection: ChangeDetectionStrategy.OnPush,
130
134
  selector: 'p-meterGroupLabel, p-metergrouplabel',
131
- standalone: true,
132
135
  imports: [CommonModule, SharedModule, Bind],
133
136
  template: `
134
- <ol [class]="cx('labelList')" [pBind]="ptm('labelList')" [attr.data-p]="dataP">
135
- @for (labelItem of value; track parentInstance.trackByFn(index); let index = $index) {
137
+ <ol [class]="cx('labelList')" [pBind]="ptm('labelList')" [attr.data-p]="dataP()">
138
+ @for (labelItem of value(); track parentInstance.trackByFn(index); let index = $index) {
136
139
  <li [class]="cx('label')" [pBind]="ptm('label')">
137
- @if (!iconTemplate) {
140
+ @if (!iconTemplate()) {
138
141
  @if (labelItem.icon) {
139
142
  <i [class]="labelItem.icon" [ngClass]="cx('labelIcon')" [pBind]="ptm('labelIcon')" [ngStyle]="{ color: labelItem.color }"></i>
140
143
  }
@@ -142,73 +145,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
142
145
  <span [class]="cx('labelMarker')" [pBind]="ptm('labelMarker')" [ngStyle]="{ backgroundColor: labelItem.color }"></span>
143
146
  }
144
147
  }
145
- <ng-container *ngTemplateOutlet="iconTemplate; context: { $implicit: labelItem, icon: labelItem.icon }"></ng-container>
148
+ <ng-container *ngTemplateOutlet="iconTemplate(); context: { $implicit: labelItem, icon: labelItem.icon }"></ng-container>
146
149
  <span [class]="cx('labelText')" [pBind]="ptm('labelText')">{{ labelItem.label }} ({{ parentInstance.percentValue(labelItem.value) }})</span>
147
150
  </li>
148
151
  }
149
152
  </ol>
150
153
  `
151
154
  }]
152
- }], propDecorators: { value: [{
153
- type: Input
154
- }], labelPosition: [{
155
- type: Input
156
- }], labelOrientation: [{
157
- type: Input
158
- }], min: [{
159
- type: Input
160
- }], max: [{
161
- type: Input
162
- }], iconTemplate: [{
163
- type: Input
164
- }] } });
155
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], labelOrientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOrientation", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], iconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTemplate", required: false }] }] } });
165
156
  /**
166
157
  * MeterGroup displays scalar measurements within a known range.
167
158
  * @group Components
168
159
  */
169
160
  class MeterGroup extends BaseComponent {
170
161
  componentName = 'MeterGroup';
171
- $pcMeterGroup = inject(METERGROUP_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
172
162
  bindDirectiveInstance = inject(Bind, { self: true });
163
+ constructor() {
164
+ super();
165
+ afterNextRender(() => {
166
+ const _container = this.el.nativeElement;
167
+ const height = getOuterHeight(_container);
168
+ this.vertical() && (_container.style.height = height + 'px');
169
+ });
170
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
171
+ }
173
172
  /**
174
173
  * Current value of the metergroup.
175
174
  * @group Props
176
175
  */
177
- value;
176
+ value = input(/* @ts-ignore */
177
+ ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
178
178
  /**
179
179
  * Mininum boundary value.
180
180
  * @group Props
181
181
  */
182
- min = 0;
182
+ min = input(0, /* @ts-ignore */
183
+ ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
183
184
  /**
184
185
  * Maximum boundary value.
185
186
  * @group Props
186
187
  */
187
- max = 100;
188
+ max = input(100, /* @ts-ignore */
189
+ ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
188
190
  /**
189
191
  * Specifies the layout of the component, valid values are 'horizontal' and 'vertical'.
190
192
  * @group Props
191
193
  */
192
- orientation = 'horizontal';
194
+ orientation = input('horizontal', /* @ts-ignore */
195
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
193
196
  /**
194
197
  * Specifies the label position of the component, valid values are 'start' and 'end'.
195
198
  * @group Props
196
199
  */
197
- labelPosition = 'end';
200
+ labelPosition = input('end', /* @ts-ignore */
201
+ ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
198
202
  /**
199
203
  * Specifies the label orientation of the component, valid values are 'horizontal' and 'vertical'.
200
204
  * @group Props
201
205
  */
202
- labelOrientation = 'horizontal';
203
- /**
204
- * Style class of the element.
205
- * @deprecated since v20.0.0, use `class` instead.
206
- * @group Props
207
- */
208
- styleClass;
209
- get vertical() {
210
- return this.orientation === 'vertical';
211
- }
206
+ labelOrientation = input('horizontal', /* @ts-ignore */
207
+ ...(ngDevMode ? [{ debugName: "labelOrientation" }] : /* istanbul ignore next */ []));
208
+ vertical = computed(() => this.orientation() === 'vertical', /* @ts-ignore */
209
+ ...(ngDevMode ? [{ debugName: "vertical" }] : /* istanbul ignore next */ []));
212
210
  /**
213
211
  * Custom label template.
214
212
  * @param {MeterGroupLabelTemplateContext} context - label context.
@@ -246,46 +244,32 @@ class MeterGroup extends BaseComponent {
246
244
  iconTemplate = contentChild('icon', { ...(ngDevMode ? { debugName: "iconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
247
245
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
248
246
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
249
- _labelTemplate;
250
- _meterTemplate;
251
- _endTemplate;
252
- _startTemplate;
253
- _iconTemplate;
254
- onAfterViewChecked() {
255
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
256
- }
247
+ _labelTemplate = computed(() => this.templates()
248
+ .filter((item) => item.getType() === 'label')
249
+ .at(-1)?.template, /* @ts-ignore */
250
+ ...(ngDevMode ? [{ debugName: "_labelTemplate" }] : /* istanbul ignore next */ []));
251
+ _meterTemplate = computed(() => this.templates()
252
+ .filter((item) => item.getType() === 'meter')
253
+ .at(-1)?.template, /* @ts-ignore */
254
+ ...(ngDevMode ? [{ debugName: "_meterTemplate" }] : /* istanbul ignore next */ []));
255
+ _endTemplate = computed(() => this.templates()
256
+ .filter((item) => item.getType() === 'end')
257
+ .at(-1)?.template, /* @ts-ignore */
258
+ ...(ngDevMode ? [{ debugName: "_endTemplate" }] : /* istanbul ignore next */ []));
259
+ _startTemplate = computed(() => this.templates()
260
+ .filter((item) => item.getType() === 'start')
261
+ .at(-1)?.template, /* @ts-ignore */
262
+ ...(ngDevMode ? [{ debugName: "_startTemplate" }] : /* istanbul ignore next */ []));
263
+ _iconTemplate = computed(() => this.templates()
264
+ .filter((item) => item.getType() === 'icon')
265
+ .at(-1)?.template, /* @ts-ignore */
266
+ ...(ngDevMode ? [{ debugName: "_iconTemplate" }] : /* istanbul ignore next */ []));
257
267
  _componentStyle = inject(MeterGroupStyle);
258
- onAfterViewInit() {
259
- const _container = this.el.nativeElement;
260
- const height = getOuterHeight(_container);
261
- this.vertical && (_container.style.height = height + 'px');
262
- }
263
- onAfterContentInit() {
264
- this.templates()?.forEach((item) => {
265
- switch (item.getType()) {
266
- case 'label':
267
- this._labelTemplate = item.template;
268
- break;
269
- case 'meter':
270
- this._meterTemplate = item.template;
271
- break;
272
- case 'icon':
273
- this._iconTemplate = item.template;
274
- break;
275
- case 'start':
276
- this._startTemplate = item.template;
277
- break;
278
- case 'end':
279
- this._endTemplate = item.template;
280
- break;
281
- }
282
- });
283
- }
284
268
  percent(meter = 0) {
285
- if (this.max === this.min) {
269
+ if (this.max() === this.min()) {
286
270
  return 100; // When min = max, any value should be 100%
287
271
  }
288
- const percentOfItem = ((meter - this.min) / (this.max - this.min)) * 100;
272
+ const percentOfItem = ((meter - this.min()) / (this.max() - this.min())) * 100;
289
273
  return Math.round(Math.max(0, Math.min(100, percentOfItem)));
290
274
  }
291
275
  percentValue(meter) {
@@ -294,73 +278,76 @@ class MeterGroup extends BaseComponent {
294
278
  meterStyle(val) {
295
279
  return {
296
280
  backgroundColor: val.color,
297
- width: this.orientation === 'horizontal' && this.percentValue(val.value || 0),
298
- height: this.orientation === 'vertical' && this.percentValue(val.value || 0)
281
+ width: this.orientation() === 'horizontal' && this.percentValue(val.value || 0),
282
+ height: this.orientation() === 'vertical' && this.percentValue(val.value || 0)
299
283
  };
300
284
  }
301
- totalPercent() {
302
- if (!this.value) {
285
+ totalPercent = computed(() => {
286
+ const value = this.value();
287
+ if (!value) {
303
288
  return 0;
304
289
  }
305
- return this.percent(this.value.reduce((total, val) => total + (val.value || 0), 0));
306
- }
307
- percentages() {
308
- if (!this.value) {
290
+ return this.percent(value.reduce((total, val) => total + (val.value || 0), 0));
291
+ }, /* @ts-ignore */
292
+ ...(ngDevMode ? [{ debugName: "totalPercent" }] : /* istanbul ignore next */ []));
293
+ percentages = computed(() => {
294
+ const value = this.value();
295
+ if (!value) {
309
296
  return [];
310
297
  }
311
298
  let sum = 0;
312
299
  const sumsArray = [];
313
- this.value.forEach((item) => {
300
+ value.forEach((item) => {
314
301
  sum += item.value || 0;
315
302
  sumsArray.push(sum);
316
303
  });
317
304
  return sumsArray;
318
- }
305
+ }, /* @ts-ignore */
306
+ ...(ngDevMode ? [{ debugName: "percentages" }] : /* istanbul ignore next */ []));
319
307
  trackByFn(index) {
320
308
  return index;
321
309
  }
322
- get dataP() {
323
- return this.cn({
324
- [this.orientation]: this.orientation
325
- });
326
- }
327
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MeterGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
328
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MeterGroup, isStandalone: true, selector: "p-meterGroup, p-metergroup, p-meter-group", inputs: { value: "value", min: "min", max: "max", orientation: "orientation", labelPosition: "labelPosition", labelOrientation: "labelOrientation", styleClass: "styleClass" }, host: { properties: { "attr.aria-valuemin": "min", "attr.role": "\"meter\"", "attr.aria-valuemax": "max", "attr.aria-valuenow": "totalPercent()", "attr.data-p": "dataP", "class": "cn(cx('root'), styleClass)" } }, providers: [MeterGroupStyle, { provide: METERGROUP_INSTANCE, useExisting: MeterGroup }, { provide: PARENT_INSTANCE, useExisting: MeterGroup }], queries: [{ propertyName: "labelTemplate", first: true, predicate: ["label"], isSignal: true }, { propertyName: "meterTemplate", first: true, predicate: ["meter"], isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
329
- @if (labelPosition === 'start') {
330
- @if (!labelTemplate() && !_labelTemplate) {
331
- <p-meterGroupLabel [value]="value" [labelPosition]="labelPosition" [labelOrientation]="labelOrientation" [min]="min" [max]="max" [iconTemplate]="iconTemplate() || _iconTemplate" [pt]="pt" [unstyled]="unstyled()" />
310
+ dataP = computed(() => this.cn({
311
+ [this.orientation()]: this.orientation()
312
+ }), /* @ts-ignore */
313
+ ...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
314
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MeterGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
315
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MeterGroup, isStandalone: true, selector: "p-meterGroup, p-metergroup, p-meter-group", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, labelOrientation: { classPropertyName: "labelOrientation", publicName: "labelOrientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-valuemin": "min()", "attr.role": "\"meter\"", "attr.aria-valuemax": "max()", "attr.aria-valuenow": "totalPercent()", "attr.data-p": "dataP()", "class": "cx('root')" } }, providers: [MeterGroupStyle, { provide: PARENT_INSTANCE, useExisting: MeterGroup }], queries: [{ propertyName: "labelTemplate", first: true, predicate: ["label"], isSignal: true }, { propertyName: "meterTemplate", first: true, predicate: ["meter"], isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
316
+ @if (labelPosition() === 'start') {
317
+ @if (!labelTemplate() && !_labelTemplate()) {
318
+ <p-meterGroupLabel [value]="value()" [labelPosition]="labelPosition()" [labelOrientation]="labelOrientation()" [min]="min()" [max]="max()" [iconTemplate]="iconTemplate() || _iconTemplate()" [pt]="pt()" [unstyled]="unstyled()" />
332
319
  }
333
- <ng-container *ngTemplateOutlet="labelTemplate() || labelTemplate(); context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
320
+ <ng-container *ngTemplateOutlet="labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
334
321
  }
335
- <ng-container *ngTemplateOutlet="startTemplate() || _startTemplate; context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
336
- <div [class]="cx('meters')" [pBind]="ptm('meters')" [attr.data-p]="dataP">
337
- @for (meterItem of value; track trackByFn(index); let index = $index) {
322
+ <ng-container *ngTemplateOutlet="startTemplate() || _startTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
323
+ <div [class]="cx('meters')" [pBind]="ptm('meters')" [attr.data-p]="dataP()">
324
+ @for (meterItem of value(); track trackByFn(index); let index = $index) {
338
325
  <ng-container
339
326
  *ngTemplateOutlet="
340
- meterTemplate() || _meterTemplate;
327
+ meterTemplate() || _meterTemplate();
341
328
  context: {
342
329
  $implicit: meterItem,
343
330
  index: index,
344
- orientation: this.orientation,
331
+ orientation: orientation(),
345
332
  class: cx('meter'),
346
333
  size: percentValue(meterItem.value),
347
334
  totalPercent: totalPercent(),
348
- dataP: dataP
335
+ dataP: dataP()
349
336
  }
350
337
  "
351
338
  >
352
339
  </ng-container>
353
- @if (!meterTemplate() && !_meterTemplate && meterItem.value > 0) {
354
- <span [class]="cx('meter')" [attr.data-p]="dataP" [pBind]="ptm('meter')" [ngStyle]="meterStyle(meterItem)"></span>
340
+ @if (!meterTemplate() && !_meterTemplate() && meterItem.value > 0) {
341
+ <span [class]="cx('meter')" [attr.data-p]="dataP()" [pBind]="ptm('meter')" [ngStyle]="meterStyle(meterItem)"></span>
355
342
  }
356
343
  }
357
344
  </div>
358
- <ng-container *ngTemplateOutlet="endTemplate() || _endTemplate; context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
359
- @if (labelPosition === 'end') {
360
- @if (!labelTemplate() && !_labelTemplate) {
361
- <p-meterGroupLabel [value]="value" [labelPosition]="labelPosition" [labelOrientation]="labelOrientation" [min]="min" [max]="max" [iconTemplate]="iconTemplate() || _iconTemplate" [pt]="pt" [unstyled]="unstyled()" />
345
+ <ng-container *ngTemplateOutlet="endTemplate() || _endTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
346
+ @if (labelPosition() === 'end') {
347
+ @if (!labelTemplate() && !_labelTemplate()) {
348
+ <p-meterGroupLabel [value]="value()" [labelPosition]="labelPosition()" [labelOrientation]="labelOrientation()" [min]="min()" [max]="max()" [iconTemplate]="iconTemplate() || _iconTemplate()" [pt]="pt()" [unstyled]="unstyled()" />
362
349
  }
363
- <ng-container *ngTemplateOutlet="labelTemplate() || _labelTemplate; context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
350
+ <ng-container *ngTemplateOutlet="labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
364
351
  }
365
352
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MeterGroupLabel, selector: "p-meterGroupLabel, p-metergrouplabel", inputs: ["value", "labelPosition", "labelOrientation", "min", "max", "iconTemplate"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
366
353
  }
@@ -368,74 +355,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
368
355
  type: Component,
369
356
  args: [{
370
357
  selector: 'p-meterGroup, p-metergroup, p-meter-group',
371
- standalone: true,
372
358
  imports: [CommonModule, MeterGroupLabel, SharedModule, Bind],
373
359
  template: `
374
- @if (labelPosition === 'start') {
375
- @if (!labelTemplate() && !_labelTemplate) {
376
- <p-meterGroupLabel [value]="value" [labelPosition]="labelPosition" [labelOrientation]="labelOrientation" [min]="min" [max]="max" [iconTemplate]="iconTemplate() || _iconTemplate" [pt]="pt" [unstyled]="unstyled()" />
360
+ @if (labelPosition() === 'start') {
361
+ @if (!labelTemplate() && !_labelTemplate()) {
362
+ <p-meterGroupLabel [value]="value()" [labelPosition]="labelPosition()" [labelOrientation]="labelOrientation()" [min]="min()" [max]="max()" [iconTemplate]="iconTemplate() || _iconTemplate()" [pt]="pt()" [unstyled]="unstyled()" />
377
363
  }
378
- <ng-container *ngTemplateOutlet="labelTemplate() || labelTemplate(); context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
364
+ <ng-container *ngTemplateOutlet="labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
379
365
  }
380
- <ng-container *ngTemplateOutlet="startTemplate() || _startTemplate; context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
381
- <div [class]="cx('meters')" [pBind]="ptm('meters')" [attr.data-p]="dataP">
382
- @for (meterItem of value; track trackByFn(index); let index = $index) {
366
+ <ng-container *ngTemplateOutlet="startTemplate() || _startTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
367
+ <div [class]="cx('meters')" [pBind]="ptm('meters')" [attr.data-p]="dataP()">
368
+ @for (meterItem of value(); track trackByFn(index); let index = $index) {
383
369
  <ng-container
384
370
  *ngTemplateOutlet="
385
- meterTemplate() || _meterTemplate;
371
+ meterTemplate() || _meterTemplate();
386
372
  context: {
387
373
  $implicit: meterItem,
388
374
  index: index,
389
- orientation: this.orientation,
375
+ orientation: orientation(),
390
376
  class: cx('meter'),
391
377
  size: percentValue(meterItem.value),
392
378
  totalPercent: totalPercent(),
393
- dataP: dataP
379
+ dataP: dataP()
394
380
  }
395
381
  "
396
382
  >
397
383
  </ng-container>
398
- @if (!meterTemplate() && !_meterTemplate && meterItem.value > 0) {
399
- <span [class]="cx('meter')" [attr.data-p]="dataP" [pBind]="ptm('meter')" [ngStyle]="meterStyle(meterItem)"></span>
384
+ @if (!meterTemplate() && !_meterTemplate() && meterItem.value > 0) {
385
+ <span [class]="cx('meter')" [attr.data-p]="dataP()" [pBind]="ptm('meter')" [ngStyle]="meterStyle(meterItem)"></span>
400
386
  }
401
387
  }
402
388
  </div>
403
- <ng-container *ngTemplateOutlet="endTemplate() || _endTemplate; context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
404
- @if (labelPosition === 'end') {
405
- @if (!labelTemplate() && !_labelTemplate) {
406
- <p-meterGroupLabel [value]="value" [labelPosition]="labelPosition" [labelOrientation]="labelOrientation" [min]="min" [max]="max" [iconTemplate]="iconTemplate() || _iconTemplate" [pt]="pt" [unstyled]="unstyled()" />
389
+ <ng-container *ngTemplateOutlet="endTemplate() || _endTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
390
+ @if (labelPosition() === 'end') {
391
+ @if (!labelTemplate() && !_labelTemplate()) {
392
+ <p-meterGroupLabel [value]="value()" [labelPosition]="labelPosition()" [labelOrientation]="labelOrientation()" [min]="min()" [max]="max()" [iconTemplate]="iconTemplate() || _iconTemplate()" [pt]="pt()" [unstyled]="unstyled()" />
407
393
  }
408
- <ng-container *ngTemplateOutlet="labelTemplate() || _labelTemplate; context: { $implicit: value, totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
394
+ <ng-container *ngTemplateOutlet="labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }"></ng-container>
409
395
  }
410
396
  `,
411
397
  changeDetection: ChangeDetectionStrategy.OnPush,
412
398
  encapsulation: ViewEncapsulation.None,
413
- providers: [MeterGroupStyle, { provide: METERGROUP_INSTANCE, useExisting: MeterGroup }, { provide: PARENT_INSTANCE, useExisting: MeterGroup }],
399
+ providers: [MeterGroupStyle, { provide: PARENT_INSTANCE, useExisting: MeterGroup }],
414
400
  host: {
415
- '[attr.aria-valuemin]': 'min',
401
+ '[attr.aria-valuemin]': 'min()',
416
402
  '[attr.role]': '"meter"',
417
- '[attr.aria-valuemax]': 'max',
403
+ '[attr.aria-valuemax]': 'max()',
418
404
  '[attr.aria-valuenow]': 'totalPercent()',
419
- '[attr.data-p]': 'dataP',
420
- '[class]': "cn(cx('root'), styleClass)"
405
+ '[attr.data-p]': 'dataP()',
406
+ '[class]': "cx('root')"
421
407
  },
422
408
  hostDirectives: [Bind]
423
409
  }]
424
- }], propDecorators: { value: [{
425
- type: Input
426
- }], min: [{
427
- type: Input
428
- }], max: [{
429
- type: Input
430
- }], orientation: [{
431
- type: Input
432
- }], labelPosition: [{
433
- type: Input
434
- }], labelOrientation: [{
435
- type: Input
436
- }], styleClass: [{
437
- type: Input
438
- }], labelTemplate: [{ type: i0.ContentChild, args: ['label', { ...{ descendants: false }, isSignal: true }] }], meterTemplate: [{ type: i0.ContentChild, args: ['meter', { ...{ descendants: false }, isSignal: true }] }], endTemplate: [{ type: i0.ContentChild, args: ['end', { ...{ descendants: false }, isSignal: true }] }], startTemplate: [{ type: i0.ContentChild, args: ['start', { ...{ descendants: false }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
410
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], labelOrientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOrientation", required: false }] }], labelTemplate: [{ type: i0.ContentChild, args: ['label', { ...{ descendants: false }, isSignal: true }] }], meterTemplate: [{ type: i0.ContentChild, args: ['meter', { ...{ descendants: false }, isSignal: true }] }], endTemplate: [{ type: i0.ContentChild, args: ['end', { ...{ descendants: false }, isSignal: true }] }], startTemplate: [{ type: i0.ContentChild, args: ['start', { ...{ descendants: false }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
439
411
  class MeterGroupModule {
440
412
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MeterGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
441
413
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: MeterGroupModule, imports: [MeterGroup, SharedModule], exports: [MeterGroup, SharedModule] });