@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/splitbutton';
2
2
  import * as i2 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, input, computed, output, viewChild, contentChild, contentChildren, signal, booleanAttribute, numberAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, inject, afterEveryRender, input, booleanAttribute, computed, numberAttribute, output, viewChild, contentChild, contentChildren, signal, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { uuid } from '@exhaustive-ui/utils';
7
7
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { AutoFocus } from '@exhaustive-ui/core/autofocus';
@@ -22,11 +22,11 @@ const classes = {
22
22
  root: ({ instance }) => [
23
23
  'p-splitbutton p-component',
24
24
  {
25
- 'p-splitbutton-raised': instance.raised,
26
- 'p-splitbutton-rounded': instance.rounded,
27
- 'p-splitbutton-outlined': instance.outlined,
28
- 'p-splitbutton-text': instance.text,
29
- [`p-splitbutton-${instance.size === 'small' ? 'sm' : 'lg'}`]: instance.size
25
+ 'p-splitbutton-raised': instance.raised(),
26
+ 'p-splitbutton-rounded': instance.rounded(),
27
+ 'p-splitbutton-outlined': instance.outlined(),
28
+ 'p-splitbutton-text': instance.text(),
29
+ [`p-splitbutton-${instance.size() === 'small' ? 'sm' : 'lg'}`]: instance.size()
30
30
  }
31
31
  ],
32
32
  pcButton: 'p-splitbutton-button',
@@ -76,95 +76,96 @@ class SplitButton extends BaseComponent {
76
76
  componentName = 'SplitButton';
77
77
  $pcSplitButton = inject(SPLITBUTTON_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
78
78
  bindDirectiveInstance = inject(Bind, { self: true });
79
- onAfterViewChecked() {
80
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
79
+ constructor() {
80
+ super();
81
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
81
82
  }
82
83
  /**
83
84
  * MenuModel instance to define the overlay items.
84
85
  * @group Props
85
86
  */
86
- model;
87
+ model = input(/* @ts-ignore */
88
+ ...(ngDevMode ? [undefined, { debugName: "model" }] : /* istanbul ignore next */ []));
87
89
  /**
88
90
  * Defines the style of the button.
89
91
  * @group Props
90
92
  */
91
- severity;
93
+ severity = input(/* @ts-ignore */
94
+ ...(ngDevMode ? [undefined, { debugName: "severity" }] : /* istanbul ignore next */ []));
92
95
  /**
93
96
  * Add a shadow to indicate elevation.
94
97
  * @group Props
95
98
  */
96
- raised = false;
99
+ raised = input(false, { ...(ngDevMode ? { debugName: "raised" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
97
100
  /**
98
101
  * Add a circular border radius to the button.
99
102
  * @group Props
100
103
  */
101
- rounded = false;
104
+ rounded = input(false, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
102
105
  /**
103
106
  * Add a textual class to the button without a background initially.
104
107
  * @group Props
105
108
  */
106
- text = false;
109
+ text = input(false, { ...(ngDevMode ? { debugName: "text" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
107
110
  /**
108
111
  * Add a border class without a background initially.
109
112
  * @group Props
110
113
  */
111
- outlined = false;
114
+ outlined = input(false, { ...(ngDevMode ? { debugName: "outlined" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
112
115
  /**
113
116
  * Defines the size of the button.
114
117
  * @group Props
115
118
  */
116
- size = null;
117
- /**
118
- * Add a plain textual class to the button without a background initially.
119
- * @group Props
120
- */
121
- plain = false;
119
+ size = input(null, /* @ts-ignore */
120
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
122
121
  /**
123
122
  * Name of the icon.
124
123
  * @group Props
125
124
  */
126
- icon;
125
+ icon = input(/* @ts-ignore */
126
+ ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
127
127
  /**
128
128
  * Position of the icon.
129
129
  * @group Props
130
130
  */
131
- iconPos = 'left';
131
+ iconPos = input('left', /* @ts-ignore */
132
+ ...(ngDevMode ? [{ debugName: "iconPos" }] : /* istanbul ignore next */ []));
132
133
  /**
133
134
  * Text of the button.
134
135
  * @group Props
135
136
  */
136
- label;
137
+ label = input(/* @ts-ignore */
138
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
137
139
  /**
138
140
  * Tooltip for the main button.
139
141
  * @group Props
140
142
  */
141
- tooltip;
143
+ tooltip = input(/* @ts-ignore */
144
+ ...(ngDevMode ? [undefined, { debugName: "tooltip" }] : /* istanbul ignore next */ []));
142
145
  /**
143
146
  * Tooltip options for the main button.
144
147
  * @group Props
145
148
  */
146
- tooltipOptions;
147
- /**
148
- * Class of the element.
149
- * @deprecated since v20.0.0, use `class` instead.
150
- * @group Props
151
- */
152
- styleClass;
149
+ tooltipOptions = input(/* @ts-ignore */
150
+ ...(ngDevMode ? [undefined, { debugName: "tooltipOptions" }] : /* istanbul ignore next */ []));
153
151
  /**
154
152
  * Inline style of the overlay menu.
155
153
  * @group Props
156
154
  */
157
- menuStyle;
155
+ menuStyle = input(/* @ts-ignore */
156
+ ...(ngDevMode ? [undefined, { debugName: "menuStyle" }] : /* istanbul ignore next */ []));
158
157
  /**
159
158
  * Style class of the overlay menu.
160
159
  * @group Props
161
160
  */
162
- menuStyleClass;
161
+ menuStyleClass = input(/* @ts-ignore */
162
+ ...(ngDevMode ? [undefined, { debugName: "menuStyleClass" }] : /* istanbul ignore next */ []));
163
163
  /**
164
164
  * Name of the dropdown icon.
165
165
  * @group Props
166
166
  */
167
- dropdownIcon;
167
+ dropdownIcon = input(/* @ts-ignore */
168
+ ...(ngDevMode ? [undefined, { debugName: "dropdownIcon" }] : /* istanbul ignore next */ []));
168
169
  /**
169
170
  * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
170
171
  * @defaultValue 'body'
@@ -172,28 +173,12 @@ class SplitButton extends BaseComponent {
172
173
  */
173
174
  appendTo = input('body', /* @ts-ignore */
174
175
  ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
175
- /**
176
- * Indicates the direction of the element.
177
- * @group Props
178
- */
179
- dir;
180
176
  /**
181
177
  * Defines a string that labels the expand button for accessibility.
182
178
  * @group Props
183
179
  */
184
- expandAriaLabel;
185
- /**
186
- * Transition options of the show animation.
187
- * @group Props
188
- * @deprecated since v21.0.0. Use `motionOptions` instead.
189
- */
190
- showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
191
- /**
192
- * Transition options of the hide animation.
193
- * @group Props
194
- * @deprecated since v21.0.0. Use `motionOptions` instead.
195
- */
196
- hideTransitionOptions = '.1s linear';
180
+ expandAriaLabel = input(/* @ts-ignore */
181
+ ...(ngDevMode ? [undefined, { debugName: "expandAriaLabel" }] : /* istanbul ignore next */ []));
197
182
  /**
198
183
  * The motion options.
199
184
  * @group Props
@@ -210,43 +195,42 @@ class SplitButton extends BaseComponent {
210
195
  /**
211
196
  * Button Props
212
197
  */
213
- buttonProps;
198
+ buttonProps = input(/* @ts-ignore */
199
+ ...(ngDevMode ? [undefined, { debugName: "buttonProps" }] : /* istanbul ignore next */ []));
214
200
  /**
215
201
  * Menu Button Props
216
202
  */
217
- menuButtonProps;
203
+ menuButtonProps = input(/* @ts-ignore */
204
+ ...(ngDevMode ? [undefined, { debugName: "menuButtonProps" }] : /* istanbul ignore next */ []));
218
205
  /**
219
206
  * When present, it specifies that the component should automatically get focus on load.
220
207
  * @group Props
221
208
  */
222
- autofocus;
209
+ autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
223
210
  /**
224
211
  * When present, it specifies that the element should be disabled.
225
212
  * @group Props
226
213
  */
227
- set disabled(v) {
228
- this._disabled = v ?? false;
229
- this.buttonDisabled = v ?? false;
230
- this.menuButtonDisabled = v ?? false;
231
- }
232
- get disabled() {
233
- return this._disabled;
234
- }
214
+ disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
235
215
  /**
236
216
  * Index of the element in tabbing order.
237
217
  * @group Props
238
218
  */
239
- tabindex;
219
+ tabindex = input(undefined, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
240
220
  /**
241
221
  * When present, it specifies that the menu button element should be disabled.
242
222
  * @group Props
243
223
  */
244
- menuButtonDisabled = false;
224
+ menuButtonDisabled = input(false, { ...(ngDevMode ? { debugName: "menuButtonDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
245
225
  /**
246
226
  * When present, it specifies that the button element should be disabled.
247
227
  * @group Props
248
228
  */
249
- buttonDisabled = false;
229
+ buttonDisabled = input(false, { ...(ngDevMode ? { debugName: "buttonDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
230
+ $buttonDisabled = computed(() => this.disabled() || this.buttonDisabled(), /* @ts-ignore */
231
+ ...(ngDevMode ? [{ debugName: "$buttonDisabled" }] : /* istanbul ignore next */ []));
232
+ $menuButtonDisabled = computed(() => this.disabled() || this.menuButtonDisabled(), /* @ts-ignore */
233
+ ...(ngDevMode ? [{ debugName: "$menuButtonDisabled" }] : /* istanbul ignore next */ []));
250
234
  /**
251
235
  * Callback to invoke when default command button is clicked.
252
236
  * @param {MouseEvent} event - Mouse event.
@@ -283,33 +267,20 @@ class SplitButton extends BaseComponent {
283
267
  dropdownIconTemplate = contentChild('dropdownicon', { ...(ngDevMode ? { debugName: "dropdownIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
284
268
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
285
269
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
286
- ariaId;
270
+ ariaId = uuid('pn_id_');
287
271
  isExpanded = signal(false, /* @ts-ignore */
288
272
  ...(ngDevMode ? [{ debugName: "isExpanded" }] : /* istanbul ignore next */ []));
289
- _disabled;
290
273
  _componentStyle = inject(SplitButtonStyle);
291
- _contentTemplate;
292
- _dropdownIconTemplate;
274
+ _contentTemplate = computed(() => this.templates()
275
+ .filter((item) => item.getType() !== 'dropdownicon')
276
+ .at(-1)?.template, /* @ts-ignore */
277
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
278
+ _dropdownIconTemplate = computed(() => this.templates()
279
+ .filter((item) => item.getType() === 'dropdownicon')
280
+ .at(-1)?.template, /* @ts-ignore */
281
+ ...(ngDevMode ? [{ debugName: "_dropdownIconTemplate" }] : /* istanbul ignore next */ []));
293
282
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
294
283
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
295
- onInit() {
296
- this.ariaId = uuid('pn_id_');
297
- }
298
- onAfterContentInit() {
299
- this.templates()?.forEach((item) => {
300
- switch (item.getType()) {
301
- case 'content':
302
- this._contentTemplate = item.template;
303
- break;
304
- case 'dropdownicon':
305
- this._dropdownIconTemplate = item.template;
306
- break;
307
- default:
308
- this._contentTemplate = item.template;
309
- break;
310
- }
311
- });
312
- }
313
284
  onDefaultButtonClick(event) {
314
285
  this.onClick?.emit(event);
315
286
  this.menu().hide();
@@ -332,32 +303,32 @@ class SplitButton extends BaseComponent {
332
303
  this.isExpanded.set(true);
333
304
  this.onMenuShow.emit(undefined);
334
305
  }
335
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SplitButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
336
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: SplitButton, isStandalone: true, selector: "p-splitbutton, p-splitButton, p-split-button", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: false, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: false, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipOptions: { classPropertyName: "tooltipOptions", publicName: "tooltipOptions", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, menuStyle: { classPropertyName: "menuStyle", publicName: "menuStyle", isSignal: false, isRequired: false, transformFunction: null }, menuStyleClass: { classPropertyName: "menuStyleClass", publicName: "menuStyleClass", isSignal: false, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: false, isRequired: false, transformFunction: null }, expandAriaLabel: { classPropertyName: "expandAriaLabel", publicName: "expandAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: false, isRequired: false, transformFunction: null }, menuButtonProps: { classPropertyName: "menuButtonProps", publicName: "menuButtonProps", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, menuButtonDisabled: { classPropertyName: "menuButtonDisabled", publicName: "menuButtonDisabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "buttonDisabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, outputs: { onClick: "onClick", onMenuHide: "onMenuHide", onMenuShow: "onMenuShow", onDropdownClick: "onDropdownClick" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p-severity": "severity" } }, providers: [SplitButtonStyle, { provide: SPLITBUTTON_INSTANCE, useExisting: SplitButton }, { provide: PARENT_INSTANCE, useExisting: SplitButton }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
337
- @if (contentTemplate() || _contentTemplate) {
306
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SplitButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
307
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: SplitButton, isStandalone: true, selector: "p-splitbutton, p-splitButton, p-split-button", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipOptions: { classPropertyName: "tooltipOptions", publicName: "tooltipOptions", isSignal: true, isRequired: false, transformFunction: null }, menuStyle: { classPropertyName: "menuStyle", publicName: "menuStyle", isSignal: true, isRequired: false, transformFunction: null }, menuStyleClass: { classPropertyName: "menuStyleClass", publicName: "menuStyleClass", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, expandAriaLabel: { classPropertyName: "expandAriaLabel", publicName: "expandAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: true, isRequired: false, transformFunction: null }, menuButtonProps: { classPropertyName: "menuButtonProps", publicName: "menuButtonProps", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, menuButtonDisabled: { classPropertyName: "menuButtonDisabled", publicName: "menuButtonDisabled", isSignal: true, isRequired: false, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "buttonDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onMenuHide: "onMenuHide", onMenuShow: "onMenuShow", onDropdownClick: "onDropdownClick" }, host: { properties: { "class": "cx('root')", "attr.data-p-severity": "severity()" } }, providers: [SplitButtonStyle, { provide: SPLITBUTTON_INSTANCE, useExisting: SplitButton }, { provide: PARENT_INSTANCE, useExisting: SplitButton }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
308
+ @if (contentTemplate() || _contentTemplate()) {
338
309
  <button
339
310
  [class]="cx('pcButton')"
340
311
  type="button"
341
312
  pButton
342
313
  pRipple
343
- [severity]="severity"
344
- [text]="text"
345
- [outlined]="outlined"
346
- [size]="size"
347
- [icon]="icon"
348
- [iconPos]="iconPos"
314
+ [severity]="severity()"
315
+ [text]="text()"
316
+ [outlined]="outlined()"
317
+ [size]="size()"
318
+ [icon]="icon()"
319
+ [iconPos]="iconPos()"
349
320
  (click)="onDefaultButtonClick($event)"
350
- [disabled]="disabled"
351
- [attr.tabindex]="tabindex"
352
- [attr.aria-label]="buttonProps?.['ariaLabel'] || label"
353
- [pAutoFocus]="autofocus"
354
- [pTooltip]="tooltip"
321
+ [disabled]="disabled()"
322
+ [attr.tabindex]="tabindex()"
323
+ [attr.aria-label]="buttonProps()?.['ariaLabel'] || label()"
324
+ [pAutoFocus]="autofocus()"
325
+ [pTooltip]="tooltip()"
355
326
  [pTooltipUnstyled]="unstyled()"
356
- [tooltipOptions]="tooltipOptions"
327
+ [tooltipOptions]="tooltipOptions()"
357
328
  [pt]="ptm('pcButton')"
358
329
  [unstyled]="unstyled()"
359
330
  >
360
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
331
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
361
332
  </button>
362
333
  } @else {
363
334
  <button
@@ -366,21 +337,21 @@ class SplitButton extends BaseComponent {
366
337
  type="button"
367
338
  pButton
368
339
  pRipple
369
- [severity]="severity"
370
- [text]="text"
371
- [outlined]="outlined"
372
- [size]="size"
373
- [icon]="icon"
374
- [iconPos]="iconPos"
375
- [label]="label"
340
+ [severity]="severity()"
341
+ [text]="text()"
342
+ [outlined]="outlined()"
343
+ [size]="size()"
344
+ [icon]="icon()"
345
+ [iconPos]="iconPos()"
346
+ [label]="label()"
376
347
  (click)="onDefaultButtonClick($event)"
377
- [disabled]="buttonDisabled"
378
- [attr.tabindex]="tabindex"
379
- [attr.aria-label]="buttonProps?.['ariaLabel']"
380
- [pAutoFocus]="autofocus"
381
- [pTooltip]="tooltip"
348
+ [disabled]="$buttonDisabled()"
349
+ [attr.tabindex]="tabindex()"
350
+ [attr.aria-label]="buttonProps()?.['ariaLabel']"
351
+ [pAutoFocus]="autofocus()"
352
+ [pTooltip]="tooltip()"
382
353
  [pTooltipUnstyled]="unstyled()"
383
- [tooltipOptions]="tooltipOptions"
354
+ [tooltipOptions]="tooltipOptions()"
384
355
  [pt]="ptm('pcButton')"
385
356
  [unstyled]="unstyled()"
386
357
  ></button>
@@ -389,38 +360,38 @@ class SplitButton extends BaseComponent {
389
360
  type="button"
390
361
  pButton
391
362
  pRipple
392
- [size]="size"
393
- [severity]="severity"
394
- [text]="text"
395
- [outlined]="outlined"
363
+ [size]="size()"
364
+ [severity]="severity()"
365
+ [text]="text()"
366
+ [outlined]="outlined()"
396
367
  [class]="cx('pcDropdown')"
397
368
  (click)="onDropdownButtonClick($event)"
398
369
  (keydown)="onDropdownButtonKeydown($event)"
399
- [disabled]="menuButtonDisabled"
400
- [attr.aria-label]="menuButtonProps?.['ariaLabel'] || expandAriaLabel"
401
- [attr.aria-haspopup]="menuButtonProps?.['ariaHasPopup'] || true"
402
- [attr.aria-expanded]="menuButtonProps?.['ariaExpanded'] || isExpanded()"
403
- [attr.aria-controls]="menuButtonProps?.['ariaControls'] || ariaId"
370
+ [disabled]="$menuButtonDisabled()"
371
+ [attr.aria-label]="menuButtonProps()?.['ariaLabel'] || expandAriaLabel()"
372
+ [attr.aria-haspopup]="menuButtonProps()?.['ariaHasPopup'] || true"
373
+ [attr.aria-expanded]="menuButtonProps()?.['ariaExpanded'] || isExpanded()"
374
+ [attr.aria-controls]="menuButtonProps()?.['ariaControls'] || ariaId"
404
375
  [pt]="ptm('pcDropdown')"
405
376
  [unstyled]="unstyled()"
406
377
  >
407
- @if (dropdownIcon) {
408
- <span [class]="dropdownIcon"></span>
378
+ @if (dropdownIcon()) {
379
+ <span [class]="dropdownIcon()"></span>
409
380
  }
410
- @if (!dropdownIcon) {
411
- @if (!dropdownIconTemplate() && !_dropdownIconTemplate) {
381
+ @if (!dropdownIcon()) {
382
+ @if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
412
383
  <svg data-p-icon="chevron-down" />
413
384
  }
414
- <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate"></ng-template>
385
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate()"></ng-template>
415
386
  }
416
387
  </button>
417
388
  <p-tieredmenu
418
389
  [id]="ariaId"
419
390
  #menu
420
391
  [popup]="true"
421
- [model]="model"
422
- [style]="menuStyle"
423
- [styleClass]="menuStyleClass"
392
+ [model]="model()"
393
+ [style]="menuStyle()"
394
+ [styleClass]="menuStyleClass()"
424
395
  [appendTo]="$appendTo()"
425
396
  [motionOptions]="computedMotionOptions()"
426
397
  (onHide)="onHide()"
@@ -428,39 +399,38 @@ class SplitButton extends BaseComponent {
428
399
  [pt]="ptm('pcMenu')"
429
400
  [unstyled]="unstyled()"
430
401
  ></p-tieredmenu>
431
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "component", type: TieredMenu, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "showTransitionOptions", "hideTransitionOptions", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
402
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "component", type: TieredMenu, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
432
403
  }
433
404
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SplitButton, decorators: [{
434
405
  type: Component,
435
406
  args: [{
436
407
  selector: 'p-splitbutton, p-splitButton, p-split-button',
437
- standalone: true,
438
408
  imports: [CommonModule, ButtonDirective, TieredMenu, AutoFocus, ChevronDownIcon, Ripple, TooltipModule, SharedModule],
439
409
  template: `
440
- @if (contentTemplate() || _contentTemplate) {
410
+ @if (contentTemplate() || _contentTemplate()) {
441
411
  <button
442
412
  [class]="cx('pcButton')"
443
413
  type="button"
444
414
  pButton
445
415
  pRipple
446
- [severity]="severity"
447
- [text]="text"
448
- [outlined]="outlined"
449
- [size]="size"
450
- [icon]="icon"
451
- [iconPos]="iconPos"
416
+ [severity]="severity()"
417
+ [text]="text()"
418
+ [outlined]="outlined()"
419
+ [size]="size()"
420
+ [icon]="icon()"
421
+ [iconPos]="iconPos()"
452
422
  (click)="onDefaultButtonClick($event)"
453
- [disabled]="disabled"
454
- [attr.tabindex]="tabindex"
455
- [attr.aria-label]="buttonProps?.['ariaLabel'] || label"
456
- [pAutoFocus]="autofocus"
457
- [pTooltip]="tooltip"
423
+ [disabled]="disabled()"
424
+ [attr.tabindex]="tabindex()"
425
+ [attr.aria-label]="buttonProps()?.['ariaLabel'] || label()"
426
+ [pAutoFocus]="autofocus()"
427
+ [pTooltip]="tooltip()"
458
428
  [pTooltipUnstyled]="unstyled()"
459
- [tooltipOptions]="tooltipOptions"
429
+ [tooltipOptions]="tooltipOptions()"
460
430
  [pt]="ptm('pcButton')"
461
431
  [unstyled]="unstyled()"
462
432
  >
463
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
433
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
464
434
  </button>
465
435
  } @else {
466
436
  <button
@@ -469,21 +439,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
469
439
  type="button"
470
440
  pButton
471
441
  pRipple
472
- [severity]="severity"
473
- [text]="text"
474
- [outlined]="outlined"
475
- [size]="size"
476
- [icon]="icon"
477
- [iconPos]="iconPos"
478
- [label]="label"
442
+ [severity]="severity()"
443
+ [text]="text()"
444
+ [outlined]="outlined()"
445
+ [size]="size()"
446
+ [icon]="icon()"
447
+ [iconPos]="iconPos()"
448
+ [label]="label()"
479
449
  (click)="onDefaultButtonClick($event)"
480
- [disabled]="buttonDisabled"
481
- [attr.tabindex]="tabindex"
482
- [attr.aria-label]="buttonProps?.['ariaLabel']"
483
- [pAutoFocus]="autofocus"
484
- [pTooltip]="tooltip"
450
+ [disabled]="$buttonDisabled()"
451
+ [attr.tabindex]="tabindex()"
452
+ [attr.aria-label]="buttonProps()?.['ariaLabel']"
453
+ [pAutoFocus]="autofocus()"
454
+ [pTooltip]="tooltip()"
485
455
  [pTooltipUnstyled]="unstyled()"
486
- [tooltipOptions]="tooltipOptions"
456
+ [tooltipOptions]="tooltipOptions()"
487
457
  [pt]="ptm('pcButton')"
488
458
  [unstyled]="unstyled()"
489
459
  ></button>
@@ -492,38 +462,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
492
462
  type="button"
493
463
  pButton
494
464
  pRipple
495
- [size]="size"
496
- [severity]="severity"
497
- [text]="text"
498
- [outlined]="outlined"
465
+ [size]="size()"
466
+ [severity]="severity()"
467
+ [text]="text()"
468
+ [outlined]="outlined()"
499
469
  [class]="cx('pcDropdown')"
500
470
  (click)="onDropdownButtonClick($event)"
501
471
  (keydown)="onDropdownButtonKeydown($event)"
502
- [disabled]="menuButtonDisabled"
503
- [attr.aria-label]="menuButtonProps?.['ariaLabel'] || expandAriaLabel"
504
- [attr.aria-haspopup]="menuButtonProps?.['ariaHasPopup'] || true"
505
- [attr.aria-expanded]="menuButtonProps?.['ariaExpanded'] || isExpanded()"
506
- [attr.aria-controls]="menuButtonProps?.['ariaControls'] || ariaId"
472
+ [disabled]="$menuButtonDisabled()"
473
+ [attr.aria-label]="menuButtonProps()?.['ariaLabel'] || expandAriaLabel()"
474
+ [attr.aria-haspopup]="menuButtonProps()?.['ariaHasPopup'] || true"
475
+ [attr.aria-expanded]="menuButtonProps()?.['ariaExpanded'] || isExpanded()"
476
+ [attr.aria-controls]="menuButtonProps()?.['ariaControls'] || ariaId"
507
477
  [pt]="ptm('pcDropdown')"
508
478
  [unstyled]="unstyled()"
509
479
  >
510
- @if (dropdownIcon) {
511
- <span [class]="dropdownIcon"></span>
480
+ @if (dropdownIcon()) {
481
+ <span [class]="dropdownIcon()"></span>
512
482
  }
513
- @if (!dropdownIcon) {
514
- @if (!dropdownIconTemplate() && !_dropdownIconTemplate) {
483
+ @if (!dropdownIcon()) {
484
+ @if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
515
485
  <svg data-p-icon="chevron-down" />
516
486
  }
517
- <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate"></ng-template>
487
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate()"></ng-template>
518
488
  }
519
489
  </button>
520
490
  <p-tieredmenu
521
491
  [id]="ariaId"
522
492
  #menu
523
493
  [popup]="true"
524
- [model]="model"
525
- [style]="menuStyle"
526
- [styleClass]="menuStyleClass"
494
+ [model]="model()"
495
+ [style]="menuStyle()"
496
+ [styleClass]="menuStyleClass()"
527
497
  [appendTo]="$appendTo()"
528
498
  [motionOptions]="computedMotionOptions()"
529
499
  (onHide)="onHide()"
@@ -536,78 +506,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
536
506
  providers: [SplitButtonStyle, { provide: SPLITBUTTON_INSTANCE, useExisting: SplitButton }, { provide: PARENT_INSTANCE, useExisting: SplitButton }],
537
507
  encapsulation: ViewEncapsulation.None,
538
508
  host: {
539
- '[class]': "cn(cx('root'), styleClass)",
540
- '[attr.data-p-severity]': 'severity'
509
+ '[class]': "cx('root')",
510
+ '[attr.data-p-severity]': 'severity()'
541
511
  },
542
512
  hostDirectives: [Bind]
543
513
  }]
544
- }], propDecorators: { model: [{
545
- type: Input
546
- }], severity: [{
547
- type: Input
548
- }], raised: [{
549
- type: Input,
550
- args: [{ transform: booleanAttribute }]
551
- }], rounded: [{
552
- type: Input,
553
- args: [{ transform: booleanAttribute }]
554
- }], text: [{
555
- type: Input,
556
- args: [{ transform: booleanAttribute }]
557
- }], outlined: [{
558
- type: Input,
559
- args: [{ transform: booleanAttribute }]
560
- }], size: [{
561
- type: Input
562
- }], plain: [{
563
- type: Input,
564
- args: [{ transform: booleanAttribute }]
565
- }], icon: [{
566
- type: Input
567
- }], iconPos: [{
568
- type: Input
569
- }], label: [{
570
- type: Input
571
- }], tooltip: [{
572
- type: Input
573
- }], tooltipOptions: [{
574
- type: Input
575
- }], styleClass: [{
576
- type: Input
577
- }], menuStyle: [{
578
- type: Input
579
- }], menuStyleClass: [{
580
- type: Input
581
- }], dropdownIcon: [{
582
- type: Input
583
- }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], dir: [{
584
- type: Input
585
- }], expandAriaLabel: [{
586
- type: Input
587
- }], showTransitionOptions: [{
588
- type: Input
589
- }], hideTransitionOptions: [{
590
- type: Input
591
- }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], buttonProps: [{
592
- type: Input
593
- }], menuButtonProps: [{
594
- type: Input
595
- }], autofocus: [{
596
- type: Input,
597
- args: [{ transform: booleanAttribute }]
598
- }], disabled: [{
599
- type: Input,
600
- args: [{ transform: booleanAttribute }]
601
- }], tabindex: [{
602
- type: Input,
603
- args: [{ transform: numberAttribute }]
604
- }], menuButtonDisabled: [{
605
- type: Input,
606
- args: [{ transform: booleanAttribute }]
607
- }], buttonDisabled: [{
608
- type: Input,
609
- args: [{ transform: booleanAttribute }]
610
- }], onClick: [{ type: i0.Output, args: ["onClick"] }], onMenuHide: [{ type: i0.Output, args: ["onMenuHide"] }], onMenuShow: [{ type: i0.Output, args: ["onMenuShow"] }], onDropdownClick: [{ type: i0.Output, args: ["onDropdownClick"] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
514
+ }], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], outlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlined", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOptions", required: false }] }], menuStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuStyle", required: false }] }], menuStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuStyleClass", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], expandAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandAriaLabel", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], buttonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonProps", required: false }] }], menuButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuButtonProps", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], menuButtonDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuButtonDisabled", required: false }] }], buttonDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisabled", required: false }] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onMenuHide: [{ type: i0.Output, args: ["onMenuHide"] }], onMenuShow: [{ type: i0.Output, args: ["onMenuShow"] }], onDropdownClick: [{ type: i0.Output, args: ["onDropdownClick"] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
611
515
  class SplitButtonModule {
612
516
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
613
517
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: SplitButtonModule, imports: [SplitButton, SharedModule], exports: [SplitButton, SharedModule] });