primeng 20.0.0-rc.1 → 20.0.0-rc.2

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 (321) hide show
  1. package/accordion/index.d.ts +1 -3
  2. package/button/index.d.ts +10 -13
  3. package/chart/index.d.ts +1 -0
  4. package/fesm2022/primeng-accordion.mjs +15 -17
  5. package/fesm2022/primeng-accordion.mjs.map +1 -1
  6. package/fesm2022/primeng-autocomplete.mjs +17 -18
  7. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  8. package/fesm2022/primeng-badge.mjs +1 -2
  9. package/fesm2022/primeng-badge.mjs.map +1 -1
  10. package/fesm2022/primeng-base.mjs +5 -170
  11. package/fesm2022/primeng-base.mjs.map +1 -1
  12. package/fesm2022/primeng-basecomponent.mjs +2 -1
  13. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  14. package/fesm2022/primeng-breadcrumb.mjs +9 -9
  15. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/primeng-button.mjs +45 -72
  17. package/fesm2022/primeng-button.mjs.map +1 -1
  18. package/fesm2022/primeng-buttongroup.mjs +1 -2
  19. package/fesm2022/primeng-buttongroup.mjs.map +1 -1
  20. package/fesm2022/primeng-card.mjs +1 -2
  21. package/fesm2022/primeng-card.mjs.map +1 -1
  22. package/fesm2022/primeng-carousel.mjs +13 -13
  23. package/fesm2022/primeng-carousel.mjs.map +1 -1
  24. package/fesm2022/primeng-cascadeselect.mjs +12 -13
  25. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  26. package/fesm2022/primeng-chart.mjs +1 -1
  27. package/fesm2022/primeng-chart.mjs.map +1 -1
  28. package/fesm2022/primeng-checkbox.mjs +7 -8
  29. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  30. package/fesm2022/primeng-chip.mjs +23 -3
  31. package/fesm2022/primeng-chip.mjs.map +1 -1
  32. package/fesm2022/primeng-confirmdialog.mjs +25 -17
  33. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  34. package/fesm2022/primeng-confirmpopup.mjs +17 -9
  35. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  36. package/fesm2022/primeng-contextmenu.mjs +6 -6
  37. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  38. package/fesm2022/primeng-dataview.mjs +3 -3
  39. package/fesm2022/primeng-dataview.mjs.map +1 -1
  40. package/fesm2022/primeng-datepicker.mjs +151 -100
  41. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  42. package/fesm2022/primeng-dialog.mjs +13 -13
  43. package/fesm2022/primeng-dialog.mjs.map +1 -1
  44. package/fesm2022/primeng-dom.mjs +10 -5
  45. package/fesm2022/primeng-dom.mjs.map +1 -1
  46. package/fesm2022/primeng-drawer.mjs +5 -6
  47. package/fesm2022/primeng-drawer.mjs.map +1 -1
  48. package/fesm2022/primeng-dynamicdialog.mjs +27 -31
  49. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  50. package/fesm2022/primeng-fieldset.mjs +7 -9
  51. package/fesm2022/primeng-fieldset.mjs.map +1 -1
  52. package/fesm2022/primeng-fileupload.mjs +63 -52
  53. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  54. package/fesm2022/primeng-floatlabel.mjs +2 -3
  55. package/fesm2022/primeng-floatlabel.mjs.map +1 -1
  56. package/fesm2022/primeng-galleria.mjs +21 -21
  57. package/fesm2022/primeng-galleria.mjs.map +1 -1
  58. package/fesm2022/primeng-icons-angledoubledown.mjs +14 -18
  59. package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
  60. package/fesm2022/primeng-icons-angledoubleleft.mjs +14 -18
  61. package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
  62. package/fesm2022/primeng-icons-angledoubleright.mjs +14 -18
  63. package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
  64. package/fesm2022/primeng-icons-angledoubleup.mjs +14 -18
  65. package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
  66. package/fesm2022/primeng-icons-angledown.mjs +10 -14
  67. package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
  68. package/fesm2022/primeng-icons-angleleft.mjs +10 -14
  69. package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
  70. package/fesm2022/primeng-icons-angleright.mjs +10 -14
  71. package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
  72. package/fesm2022/primeng-icons-angleup.mjs +10 -14
  73. package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
  74. package/fesm2022/primeng-icons-arrowdown.mjs +29 -32
  75. package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
  76. package/fesm2022/primeng-icons-arrowdownleft.mjs +10 -14
  77. package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
  78. package/fesm2022/primeng-icons-arrowdownright.mjs +10 -14
  79. package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
  80. package/fesm2022/primeng-icons-arrowleft.mjs +29 -32
  81. package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
  82. package/fesm2022/primeng-icons-arrowright.mjs +14 -18
  83. package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
  84. package/fesm2022/primeng-icons-arrowup.mjs +29 -32
  85. package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
  86. package/fesm2022/primeng-icons-ban.mjs +25 -28
  87. package/fesm2022/primeng-icons-ban.mjs.map +1 -1
  88. package/fesm2022/primeng-icons-bars.mjs +14 -18
  89. package/fesm2022/primeng-icons-bars.mjs.map +1 -1
  90. package/fesm2022/primeng-icons-baseicon.mjs +21 -29
  91. package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
  92. package/fesm2022/primeng-icons-blank.mjs +3 -11
  93. package/fesm2022/primeng-icons-blank.mjs.map +1 -1
  94. package/fesm2022/primeng-icons-calendar.mjs +10 -14
  95. package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
  96. package/fesm2022/primeng-icons-caretleft.mjs +10 -14
  97. package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
  98. package/fesm2022/primeng-icons-caretright.mjs +10 -14
  99. package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
  100. package/fesm2022/primeng-icons-check.mjs +10 -14
  101. package/fesm2022/primeng-icons-check.mjs.map +1 -1
  102. package/fesm2022/primeng-icons-chevrondown.mjs +10 -14
  103. package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
  104. package/fesm2022/primeng-icons-chevronleft.mjs +10 -14
  105. package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
  106. package/fesm2022/primeng-icons-chevronright.mjs +10 -14
  107. package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
  108. package/fesm2022/primeng-icons-chevronup.mjs +10 -14
  109. package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
  110. package/fesm2022/primeng-icons-exclamationtriangle.mjs +41 -44
  111. package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
  112. package/fesm2022/primeng-icons-eye.mjs +14 -18
  113. package/fesm2022/primeng-icons-eye.mjs.map +1 -1
  114. package/fesm2022/primeng-icons-eyeslash.mjs +29 -32
  115. package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
  116. package/fesm2022/primeng-icons-filter.mjs +25 -28
  117. package/fesm2022/primeng-icons-filter.mjs.map +1 -1
  118. package/fesm2022/primeng-icons-filterfill.mjs +10 -14
  119. package/fesm2022/primeng-icons-filterfill.mjs.map +1 -1
  120. package/fesm2022/primeng-icons-filterslash.mjs +29 -32
  121. package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
  122. package/fesm2022/primeng-icons-home.mjs +29 -32
  123. package/fesm2022/primeng-icons-home.mjs.map +1 -1
  124. package/fesm2022/primeng-icons-infocircle.mjs +29 -32
  125. package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
  126. package/fesm2022/primeng-icons-minus.mjs +10 -14
  127. package/fesm2022/primeng-icons-minus.mjs.map +1 -1
  128. package/fesm2022/primeng-icons-pencil.mjs +25 -28
  129. package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
  130. package/fesm2022/primeng-icons-plus.mjs +25 -28
  131. package/fesm2022/primeng-icons-plus.mjs.map +1 -1
  132. package/fesm2022/primeng-icons-refresh.mjs +29 -32
  133. package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
  134. package/fesm2022/primeng-icons-search.mjs +29 -32
  135. package/fesm2022/primeng-icons-search.mjs.map +1 -1
  136. package/fesm2022/primeng-icons-searchminus.mjs +29 -32
  137. package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
  138. package/fesm2022/primeng-icons-searchplus.mjs +29 -32
  139. package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
  140. package/fesm2022/primeng-icons-sortalt.mjs +37 -40
  141. package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
  142. package/fesm2022/primeng-icons-sortamountdown.mjs +25 -28
  143. package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
  144. package/fesm2022/primeng-icons-sortamountupalt.mjs +25 -28
  145. package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
  146. package/fesm2022/primeng-icons-spinner.mjs +25 -28
  147. package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
  148. package/fesm2022/primeng-icons-star.mjs +25 -28
  149. package/fesm2022/primeng-icons-star.mjs.map +1 -1
  150. package/fesm2022/primeng-icons-starfill.mjs +25 -28
  151. package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
  152. package/fesm2022/primeng-icons-thlarge.mjs +29 -32
  153. package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
  154. package/fesm2022/primeng-icons-times.mjs +10 -14
  155. package/fesm2022/primeng-icons-times.mjs.map +1 -1
  156. package/fesm2022/primeng-icons-timescircle.mjs +29 -32
  157. package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
  158. package/fesm2022/primeng-icons-trash.mjs +29 -32
  159. package/fesm2022/primeng-icons-trash.mjs.map +1 -1
  160. package/fesm2022/primeng-icons-undo.mjs +29 -32
  161. package/fesm2022/primeng-icons-undo.mjs.map +1 -1
  162. package/fesm2022/primeng-icons-upload.mjs +29 -32
  163. package/fesm2022/primeng-icons-upload.mjs.map +1 -1
  164. package/fesm2022/primeng-icons-windowmaximize.mjs +29 -32
  165. package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
  166. package/fesm2022/primeng-icons-windowminimize.mjs +29 -32
  167. package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
  168. package/fesm2022/primeng-iftalabel.mjs +2 -3
  169. package/fesm2022/primeng-iftalabel.mjs.map +1 -1
  170. package/fesm2022/primeng-image.mjs +13 -13
  171. package/fesm2022/primeng-image.mjs.map +1 -1
  172. package/fesm2022/primeng-inplace.mjs +15 -10
  173. package/fesm2022/primeng-inplace.mjs.map +1 -1
  174. package/fesm2022/primeng-inputgroup.mjs +6 -7
  175. package/fesm2022/primeng-inputgroup.mjs.map +1 -1
  176. package/fesm2022/primeng-inputmask.mjs +9 -10
  177. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  178. package/fesm2022/primeng-inputnumber.mjs +18 -19
  179. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  180. package/fesm2022/primeng-inputtext.mjs +3 -4
  181. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  182. package/fesm2022/primeng-listbox.mjs +9 -10
  183. package/fesm2022/primeng-listbox.mjs.map +1 -1
  184. package/fesm2022/primeng-megamenu.mjs +12 -12
  185. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  186. package/fesm2022/primeng-menubar.mjs +12 -12
  187. package/fesm2022/primeng-menubar.mjs.map +1 -1
  188. package/fesm2022/primeng-message.mjs +3 -3
  189. package/fesm2022/primeng-message.mjs.map +1 -1
  190. package/fesm2022/primeng-multiselect.mjs +13 -14
  191. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  192. package/fesm2022/primeng-orderlist.mjs +13 -12
  193. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  194. package/fesm2022/primeng-organizationchart.mjs +5 -5
  195. package/fesm2022/primeng-organizationchart.mjs.map +1 -1
  196. package/fesm2022/primeng-overlay.mjs +6 -1
  197. package/fesm2022/primeng-overlay.mjs.map +1 -1
  198. package/fesm2022/primeng-overlaybadge.mjs +3 -3
  199. package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
  200. package/fesm2022/primeng-paginator.mjs +9 -9
  201. package/fesm2022/primeng-paginator.mjs.map +1 -1
  202. package/fesm2022/primeng-panel.mjs +6 -7
  203. package/fesm2022/primeng-panel.mjs.map +1 -1
  204. package/fesm2022/primeng-panelmenu.mjs +19 -20
  205. package/fesm2022/primeng-panelmenu.mjs.map +1 -1
  206. package/fesm2022/primeng-password.mjs +11 -12
  207. package/fesm2022/primeng-password.mjs.map +1 -1
  208. package/fesm2022/primeng-picklist.mjs +38 -37
  209. package/fesm2022/primeng-picklist.mjs.map +1 -1
  210. package/fesm2022/primeng-popover.mjs +19 -19
  211. package/fesm2022/primeng-popover.mjs.map +1 -1
  212. package/fesm2022/primeng-progressbar.mjs +2 -2
  213. package/fesm2022/primeng-progressbar.mjs.map +1 -1
  214. package/fesm2022/primeng-radiobutton.mjs +5 -6
  215. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  216. package/fesm2022/primeng-rating.mjs +7 -8
  217. package/fesm2022/primeng-rating.mjs.map +1 -1
  218. package/fesm2022/primeng-ripple.mjs +2 -3
  219. package/fesm2022/primeng-ripple.mjs.map +1 -1
  220. package/fesm2022/primeng-scroller.mjs +9 -9
  221. package/fesm2022/primeng-scroller.mjs.map +1 -1
  222. package/fesm2022/primeng-scrollpanel.mjs +1 -2
  223. package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
  224. package/fesm2022/primeng-scrolltop.mjs +4 -4
  225. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  226. package/fesm2022/primeng-select.mjs +17 -18
  227. package/fesm2022/primeng-select.mjs.map +1 -1
  228. package/fesm2022/primeng-selectbutton.mjs +2 -3
  229. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  230. package/fesm2022/primeng-speeddial.mjs +3 -3
  231. package/fesm2022/primeng-speeddial.mjs.map +1 -1
  232. package/fesm2022/primeng-splitbutton.mjs +3 -3
  233. package/fesm2022/primeng-splitbutton.mjs.map +1 -1
  234. package/fesm2022/primeng-stepper.mjs +1 -2
  235. package/fesm2022/primeng-stepper.mjs.map +1 -1
  236. package/fesm2022/primeng-table.mjs +70 -67
  237. package/fesm2022/primeng-table.mjs.map +1 -1
  238. package/fesm2022/primeng-tabs.mjs +5 -5
  239. package/fesm2022/primeng-tabs.mjs.map +1 -1
  240. package/fesm2022/primeng-textarea.mjs +3 -4
  241. package/fesm2022/primeng-textarea.mjs.map +1 -1
  242. package/fesm2022/primeng-tieredmenu.mjs +5 -5
  243. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  244. package/fesm2022/primeng-toast.mjs +21 -19
  245. package/fesm2022/primeng-toast.mjs.map +1 -1
  246. package/fesm2022/primeng-togglebutton.mjs +2 -3
  247. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  248. package/fesm2022/primeng-toggleswitch.mjs +2 -3
  249. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  250. package/fesm2022/primeng-tree.mjs +12 -12
  251. package/fesm2022/primeng-tree.mjs.map +1 -1
  252. package/fesm2022/primeng-treeselect.mjs +16 -11
  253. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  254. package/fesm2022/primeng-treetable.mjs +110 -109
  255. package/fesm2022/primeng-treetable.mjs.map +1 -1
  256. package/galleria/index.d.ts +1 -1
  257. package/icons/angledoubledown/index.d.ts +1 -1
  258. package/icons/angledoubleleft/index.d.ts +1 -1
  259. package/icons/angledoubleright/index.d.ts +1 -1
  260. package/icons/angledoubleup/index.d.ts +1 -1
  261. package/icons/angledown/index.d.ts +1 -1
  262. package/icons/angleleft/index.d.ts +1 -1
  263. package/icons/angleright/index.d.ts +1 -1
  264. package/icons/angleup/index.d.ts +1 -1
  265. package/icons/arrowdown/index.d.ts +1 -1
  266. package/icons/arrowdownleft/index.d.ts +1 -1
  267. package/icons/arrowdownright/index.d.ts +1 -1
  268. package/icons/arrowleft/index.d.ts +1 -1
  269. package/icons/arrowright/index.d.ts +1 -1
  270. package/icons/arrowup/index.d.ts +1 -1
  271. package/icons/ban/index.d.ts +1 -1
  272. package/icons/bars/index.d.ts +1 -1
  273. package/icons/baseicon/index.d.ts +11 -18
  274. package/icons/blank/index.d.ts +1 -1
  275. package/icons/calendar/index.d.ts +1 -1
  276. package/icons/caretleft/index.d.ts +1 -1
  277. package/icons/caretright/index.d.ts +1 -1
  278. package/icons/check/index.d.ts +1 -1
  279. package/icons/chevrondown/index.d.ts +1 -1
  280. package/icons/chevronleft/index.d.ts +1 -1
  281. package/icons/chevronright/index.d.ts +1 -1
  282. package/icons/chevronup/index.d.ts +1 -1
  283. package/icons/exclamationtriangle/index.d.ts +1 -1
  284. package/icons/eye/index.d.ts +1 -1
  285. package/icons/eyeslash/index.d.ts +1 -1
  286. package/icons/filter/index.d.ts +1 -1
  287. package/icons/filterfill/index.d.ts +1 -1
  288. package/icons/filterslash/index.d.ts +1 -1
  289. package/icons/home/index.d.ts +1 -1
  290. package/icons/infocircle/index.d.ts +1 -1
  291. package/icons/minus/index.d.ts +1 -1
  292. package/icons/pencil/index.d.ts +1 -1
  293. package/icons/plus/index.d.ts +1 -1
  294. package/icons/refresh/index.d.ts +1 -1
  295. package/icons/search/index.d.ts +1 -1
  296. package/icons/searchminus/index.d.ts +1 -1
  297. package/icons/searchplus/index.d.ts +1 -1
  298. package/icons/sortalt/index.d.ts +1 -1
  299. package/icons/sortamountdown/index.d.ts +1 -1
  300. package/icons/sortamountupalt/index.d.ts +1 -1
  301. package/icons/spinner/index.d.ts +1 -1
  302. package/icons/star/index.d.ts +1 -1
  303. package/icons/starfill/index.d.ts +1 -1
  304. package/icons/thlarge/index.d.ts +1 -1
  305. package/icons/times/index.d.ts +1 -1
  306. package/icons/timescircle/index.d.ts +1 -1
  307. package/icons/trash/index.d.ts +1 -1
  308. package/icons/undo/index.d.ts +1 -1
  309. package/icons/upload/index.d.ts +1 -1
  310. package/icons/windowmaximize/index.d.ts +1 -1
  311. package/icons/windowminimize/index.d.ts +1 -1
  312. package/inplace/index.d.ts +1 -0
  313. package/inputmask/index.d.ts +1 -3
  314. package/overlay/index.d.ts +1 -3
  315. package/overlaybadge/index.d.ts +1 -3
  316. package/package.json +189 -189
  317. package/popover/index.d.ts +1 -3
  318. package/ripple/index.d.ts +1 -3
  319. package/scroller/index.d.ts +1 -3
  320. package/table/index.d.ts +8 -9
  321. package/treetable/index.d.ts +2 -4
@@ -1 +1 @@
1
- {"version":3,"file":"primeng-breadcrumb.mjs","sources":["../../src/breadcrumb/style/breadcrumbstyle.ts","../../src/breadcrumb/breadcrumb.ts","../../src/breadcrumb/primeng-breadcrumb.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@primeuix/styles/breadcrumb';\nimport { BaseStyle } from 'primeng/base';\n\nconst classes = {\n root: () => ['p-breadcrumb p-component'],\n list: 'p-breadcrumb-list',\n homeItem: 'p-breadcrumb-home-item',\n separator: 'p-breadcrumb-separator',\n item: ({ menuitem }) => ['p-breadcrumb-item', { 'p-disabled': menuitem.disabled }],\n itemLink: 'p-breadcrumb-item-link',\n itemIcon: 'p-breadcrumb-item-icon',\n itemLabel: 'p-breadcrumb-item-label'\n};\n\n@Injectable()\nexport class BreadCrumbStyle extends BaseStyle {\n name = 'breadcrumb';\n\n theme = style;\n\n classes = classes;\n}\n\n/**\n *\n * Breadcrumb provides contextual information about page hierarchy.\n *\n * [Live Demo](https://www.primeng.org/breadcrumb/)\n *\n * @module breadcrumbstyle\n *\n */\nexport enum BreadcrumbClasses {\n /**\n * Class name of the root element\n */\n root = 'p-breadcrumb',\n /**\n * Class name of the list element\n */\n list = 'p-breadcrumb-list',\n /**\n * Class name of the home item element\n */\n homeItem = 'p-breadcrumb-home-item',\n /**\n * Class name of the separator element\n */\n separator = 'p-breadcrumb-separator',\n /**\n * Class name of the item element\n */\n item = 'p-breadcrumb-item',\n /**\n * Class name of the item link element\n */\n itemLink = 'p-breadcrumb-item-link',\n /**\n * Class name of the item icon element\n */\n itemIcon = 'p-breadcrumb-item-icon',\n /**\n * Class name of the item label element\n */\n itemLabel = 'p-breadcrumb-item-label'\n}\n\nexport interface BreadcrumbStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, EventEmitter, inject, Input, NgModule, Output, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { Router, RouterModule } from '@angular/router';\nimport { MenuItem, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { ChevronRightIcon, HomeIcon } from 'primeng/icons';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { BreadcrumbItemClickEvent } from './breadcrumb.interface';\nimport { BreadCrumbStyle } from './style/breadcrumbstyle';\n\n/**\n * Breadcrumb provides contextual information about page hierarchy.\n * @group Components\n */\n@Component({\n selector: 'p-breadcrumb',\n standalone: true,\n imports: [CommonModule, RouterModule, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule],\n template: `\n <nav [class]=\"cn(cx('root'), styleClass)\" [style]=\"style\" [attr.data-pc-name]=\"'breadcrumb'\" [attr.data-pc-section]=\"'root'\">\n <ol [attr.data-pc-section]=\"'menu'\" [class]=\"cx('list')\">\n <li [attr.id]=\"home.id\" [class]=\"cn(cx('homeItem'), home.styleClass)\" [ngStyle]=\"home.style\" *ngIf=\"home && home.visible !== false\" pTooltip [tooltipOptions]=\"home.tooltipOptions\" [attr.data-pc-section]=\"'home'\">\n @if (itemTemplate || _itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate || _itemTemplate; context: { $implicit: home }\"></ng-template>\n } @else {\n <a\n [href]=\"home.url ? home.url : null\"\n *ngIf=\"!home.routerLink\"\n [attr.aria-label]=\"homeAriaLabel\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, home)\"\n [target]=\"home.target\"\n [attr.title]=\"home.title\"\n [attr.tabindex]=\"home.disabled ? null : '0'\"\n >\n <span *ngIf=\"home.icon\" [class]=\"cn(cx('itemIcon'), home.icon)\" [ngStyle]=\"home?.style\"></span>\n <HomeIcon *ngIf=\"!home.icon\" [class]=\"cx('itemIcon')\" />\n <ng-container *ngIf=\"home.label\">\n <span *ngIf=\"home.escape !== false; else htmlHomeLabel\" [class]=\"cx('itemLabel')\">{{ home.label }}</span>\n <ng-template #htmlHomeLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"home.label\"></span></ng-template>\n </ng-container>\n </a>\n <a\n *ngIf=\"home.routerLink\"\n [routerLink]=\"home.routerLink\"\n [attr.aria-label]=\"homeAriaLabel\"\n [queryParams]=\"home.queryParams\"\n [routerLinkActiveOptions]=\"home.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, home)\"\n [target]=\"home.target\"\n [attr.title]=\"home.title\"\n [attr.tabindex]=\"home.disabled ? null : '0'\"\n [fragment]=\"home.fragment\"\n [queryParamsHandling]=\"home.queryParamsHandling\"\n [preserveFragment]=\"home.preserveFragment\"\n [skipLocationChange]=\"home.skipLocationChange\"\n [replaceUrl]=\"home.replaceUrl\"\n [state]=\"home.state\"\n >\n <span *ngIf=\"home.icon\" [class]=\"cn(cx('itemIcon'), home.icon)\" [style]=\"home.iconStyle\"></span>\n <HomeIcon *ngIf=\"!home.icon\" [styleClass]=\"cx('itemIcon')\" />\n <ng-container *ngIf=\"home.label\">\n <span *ngIf=\"home.escape !== false; else htmlHomeRouteLabel\" [class]=\"cx('itemLabel')\">{{ home.label }}</span>\n <ng-template #htmlHomeRouteLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"home.label\"></span></ng-template>\n </ng-container>\n </a>\n }\n </li>\n <li *ngIf=\"model && home\" [class]=\"cx('separator')\" [attr.data-pc-section]=\"'separator'\">\n <ChevronRightIcon *ngIf=\"!separatorTemplate && !_separatorTemplate\" />\n <ng-template *ngTemplateOutlet=\"separatorTemplate || _separatorTemplate\"></ng-template>\n </li>\n <ng-template ngFor let-menuitem let-end=\"last\" [ngForOf]=\"model\">\n <li\n *ngIf=\"menuitem.visible !== false\"\n [class]=\"cn(cx('item', { menuitem }), menuitem.styleClass)\"\n [attr.id]=\"menuitem.id\"\n [style]=\"menuitem.style\"\n pTooltip\n [tooltipOptions]=\"menuitem.tooltipOptions\"\n [attr.data-pc-section]=\"'menuitem'\"\n >\n @if (itemTemplate || _itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate || _itemTemplate; context: { $implicit: menuitem }\"></ng-template>\n } @else {\n <a\n *ngIf=\"!menuitem?.routerLink\"\n [attr.href]=\"menuitem?.url ? menuitem?.url : null\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : '0'\"\n >\n <ng-container *ngIf=\"!itemTemplate && !_itemTemplate\">\n <span *ngIf=\"menuitem?.icon\" [class]=\"cn(cx('itemIcon'), menuitem?.icon)\" [style]=\"menuitem?.iconStyle\"></span>\n <ng-container *ngIf=\"menuitem?.label\">\n <span *ngIf=\"menuitem?.escape !== false; else htmlLabel\" [class]=\"cx('itemLabel')\">{{ menuitem?.label }}</span>\n <ng-template #htmlLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"menuitem?.label\"></span></ng-template>\n </ng-container>\n </ng-container>\n </a>\n <a\n *ngIf=\"menuitem?.routerLink\"\n [routerLink]=\"menuitem?.routerLink\"\n [queryParams]=\"menuitem?.queryParams\"\n [routerLinkActiveOptions]=\"menuitem?.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : '0'\"\n [fragment]=\"menuitem?.fragment\"\n [queryParamsHandling]=\"menuitem?.queryParamsHandling\"\n [preserveFragment]=\"menuitem?.preserveFragment\"\n [skipLocationChange]=\"menuitem?.skipLocationChange\"\n [replaceUrl]=\"menuitem?.replaceUrl\"\n [state]=\"menuitem?.state\"\n >\n <span *ngIf=\"menuitem?.icon\" [class]=\"cn(cx('itemIcon'), menuitem?.icon)\" [style]=\"menuitem?.iconStyle\"></span>\n <ng-container *ngIf=\"menuitem?.label\">\n <span *ngIf=\"menuitem?.escape !== false; else htmlRouteLabel\" [class]=\"cx('itemLabel')\">{{ menuitem?.label }}</span>\n <ng-template #htmlRouteLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"menuitem?.label\"></span></ng-template>\n </ng-container>\n </a>\n }\n </li>\n <li *ngIf=\"!end && menuitem.visible !== false\" [class]=\"cx('separator')\" [attr.data-pc-section]=\"'separator'\">\n <ChevronRightIcon *ngIf=\"!separatorTemplate && !_separatorTemplate\" />\n <ng-template *ngTemplateOutlet=\"separatorTemplate || _separatorTemplate\"></ng-template>\n </li>\n </ng-template>\n </ol>\n </nav>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BreadCrumbStyle]\n})\nexport class Breadcrumb extends BaseComponent implements AfterContentInit {\n /**\n * An array of menuitems.\n * @group Props\n */\n @Input() model: MenuItem[] | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * MenuItem configuration for the home icon.\n * @group Props\n */\n @Input() home: MenuItem | undefined;\n /**\n * Defines a string that labels the home icon for accessibility.\n * @group Props\n */\n @Input() homeAriaLabel: string | undefined;\n /**\n * Fired when an item is selected.\n * @param {BreadcrumbItemClickEvent} event - custom click event.\n * @group Emits\n */\n @Output() onItemClick: EventEmitter<BreadcrumbItemClickEvent> = new EventEmitter<BreadcrumbItemClickEvent>();\n\n _componentStyle = inject(BreadCrumbStyle);\n\n constructor(private router: Router) {\n super();\n }\n\n onClick(event: MouseEvent, item: MenuItem) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url && !item.routerLink) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.onItemClick.emit({\n originalEvent: event,\n item: item\n });\n }\n\n /**\n * Defines template option for item.\n * @group Templates\n */\n @ContentChild('item') itemTemplate: TemplateRef<any> | undefined;\n\n /**\n * Defines template option for separator.\n * @group Templates\n */\n @ContentChild('separator') separatorTemplate: TemplateRef<any> | undefined;\n\n @ContentChildren(PrimeTemplate) templates: QueryList<PrimeTemplate> | undefined;\n\n _separatorTemplate: TemplateRef<any> | undefined;\n\n _itemTemplate: TemplateRef<any> | undefined;\n\n ngAfterContentInit() {\n this.templates?.forEach((item) => {\n switch (item.getType()) {\n case 'separator':\n this._separatorTemplate = item.template;\n break;\n\n case 'item':\n this._itemTemplate = item.template;\n break;\n\n default:\n this._itemTemplate = item.template;\n break;\n }\n });\n }\n}\n\n@NgModule({\n imports: [Breadcrumb, SharedModule],\n exports: [Breadcrumb, SharedModule]\n})\nexport class BreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,MAAM,CAAC,0BAA0B,CAAC;AACxC,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE,wBAAwB;AACnC,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAClF,IAAA,QAAQ,EAAE,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OAAA,EAAA,CAHf,UAAU,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;AClPD;;AAEG;;;;"}
1
+ {"version":3,"file":"primeng-breadcrumb.mjs","sources":["../../src/breadcrumb/style/breadcrumbstyle.ts","../../src/breadcrumb/breadcrumb.ts","../../src/breadcrumb/primeng-breadcrumb.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@primeuix/styles/breadcrumb';\nimport { BaseStyle } from 'primeng/base';\n\nconst classes = {\n root: () => ['p-breadcrumb p-component'],\n list: 'p-breadcrumb-list',\n homeItem: 'p-breadcrumb-home-item',\n separator: 'p-breadcrumb-separator',\n item: ({ menuitem }) => ['p-breadcrumb-item', { 'p-disabled': menuitem.disabled }],\n itemLink: 'p-breadcrumb-item-link',\n itemIcon: 'p-breadcrumb-item-icon',\n itemLabel: 'p-breadcrumb-item-label'\n};\n\n@Injectable()\nexport class BreadCrumbStyle extends BaseStyle {\n name = 'breadcrumb';\n\n theme = style;\n\n classes = classes;\n}\n\n/**\n *\n * Breadcrumb provides contextual information about page hierarchy.\n *\n * [Live Demo](https://www.primeng.org/breadcrumb/)\n *\n * @module breadcrumbstyle\n *\n */\nexport enum BreadcrumbClasses {\n /**\n * Class name of the root element\n */\n root = 'p-breadcrumb',\n /**\n * Class name of the list element\n */\n list = 'p-breadcrumb-list',\n /**\n * Class name of the home item element\n */\n homeItem = 'p-breadcrumb-home-item',\n /**\n * Class name of the separator element\n */\n separator = 'p-breadcrumb-separator',\n /**\n * Class name of the item element\n */\n item = 'p-breadcrumb-item',\n /**\n * Class name of the item link element\n */\n itemLink = 'p-breadcrumb-item-link',\n /**\n * Class name of the item icon element\n */\n itemIcon = 'p-breadcrumb-item-icon',\n /**\n * Class name of the item label element\n */\n itemLabel = 'p-breadcrumb-item-label'\n}\n\nexport interface BreadcrumbStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, EventEmitter, inject, Input, NgModule, Output, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { Router, RouterModule } from '@angular/router';\nimport { MenuItem, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { ChevronRightIcon, HomeIcon } from 'primeng/icons';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { BreadcrumbItemClickEvent } from './breadcrumb.interface';\nimport { BreadCrumbStyle } from './style/breadcrumbstyle';\n\n/**\n * Breadcrumb provides contextual information about page hierarchy.\n * @group Components\n */\n@Component({\n selector: 'p-breadcrumb',\n standalone: true,\n imports: [CommonModule, RouterModule, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule],\n template: `\n <nav [class]=\"cn(cx('root'), styleClass)\" [style]=\"style\" [attr.data-pc-name]=\"'breadcrumb'\" [attr.data-pc-section]=\"'root'\">\n <ol [attr.data-pc-section]=\"'menu'\" [class]=\"cx('list')\">\n <li [attr.id]=\"home.id\" [class]=\"cn(cx('homeItem'), home.styleClass)\" [ngStyle]=\"home.style\" *ngIf=\"home && home.visible !== false\" pTooltip [tooltipOptions]=\"home.tooltipOptions\" [attr.data-pc-section]=\"'home'\">\n @if (itemTemplate || _itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate || _itemTemplate; context: { $implicit: home }\"></ng-template>\n } @else {\n <a\n [href]=\"home.url ? home.url : null\"\n *ngIf=\"!home.routerLink\"\n [attr.aria-label]=\"homeAriaLabel\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, home)\"\n [target]=\"home.target\"\n [attr.title]=\"home.title\"\n [attr.tabindex]=\"home.disabled ? null : '0'\"\n >\n <span *ngIf=\"home.icon\" [class]=\"cn(cx('itemIcon'), home.icon)\" [ngStyle]=\"home?.style\"></span>\n <svg data-p-icon=\"home\" *ngIf=\"!home.icon\" [class]=\"cx('itemIcon')\" />\n <ng-container *ngIf=\"home.label\">\n <span *ngIf=\"home.escape !== false; else htmlHomeLabel\" [class]=\"cx('itemLabel')\">{{ home.label }}</span>\n <ng-template #htmlHomeLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"home.label\"></span></ng-template>\n </ng-container>\n </a>\n <a\n *ngIf=\"home.routerLink\"\n [routerLink]=\"home.routerLink\"\n [attr.aria-label]=\"homeAriaLabel\"\n [queryParams]=\"home.queryParams\"\n [routerLinkActiveOptions]=\"home.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, home)\"\n [target]=\"home.target\"\n [attr.title]=\"home.title\"\n [attr.tabindex]=\"home.disabled ? null : '0'\"\n [fragment]=\"home.fragment\"\n [queryParamsHandling]=\"home.queryParamsHandling\"\n [preserveFragment]=\"home.preserveFragment\"\n [skipLocationChange]=\"home.skipLocationChange\"\n [replaceUrl]=\"home.replaceUrl\"\n [state]=\"home.state\"\n >\n <span *ngIf=\"home.icon\" [class]=\"cn(cx('itemIcon'), home.icon)\" [style]=\"home.iconStyle\"></span>\n <svg data-p-icon=\"home\" *ngIf=\"!home.icon\" [class]=\"cx('itemIcon')\" />\n <ng-container *ngIf=\"home.label\">\n <span *ngIf=\"home.escape !== false; else htmlHomeRouteLabel\" [class]=\"cx('itemLabel')\">{{ home.label }}</span>\n <ng-template #htmlHomeRouteLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"home.label\"></span></ng-template>\n </ng-container>\n </a>\n }\n </li>\n <li *ngIf=\"model && home\" [class]=\"cx('separator')\" [attr.data-pc-section]=\"'separator'\">\n <svg data-p-icon=\"chevron-right\" *ngIf=\"!separatorTemplate && !_separatorTemplate\" />\n <ng-template *ngTemplateOutlet=\"separatorTemplate || _separatorTemplate\"></ng-template>\n </li>\n <ng-template ngFor let-menuitem let-end=\"last\" [ngForOf]=\"model\">\n <li\n *ngIf=\"menuitem.visible !== false\"\n [class]=\"cn(cx('item', { menuitem }), menuitem.styleClass)\"\n [attr.id]=\"menuitem.id\"\n [style]=\"menuitem.style\"\n pTooltip\n [tooltipOptions]=\"menuitem.tooltipOptions\"\n [attr.data-pc-section]=\"'menuitem'\"\n >\n @if (itemTemplate || _itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate || _itemTemplate; context: { $implicit: menuitem }\"></ng-template>\n } @else {\n <a\n *ngIf=\"!menuitem?.routerLink\"\n [attr.href]=\"menuitem?.url ? menuitem?.url : null\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : '0'\"\n >\n <ng-container *ngIf=\"!itemTemplate && !_itemTemplate\">\n <span *ngIf=\"menuitem?.icon\" [class]=\"cn(cx('itemIcon'), menuitem?.icon)\" [style]=\"menuitem?.iconStyle\"></span>\n <ng-container *ngIf=\"menuitem?.label\">\n <span *ngIf=\"menuitem?.escape !== false; else htmlLabel\" [class]=\"cx('itemLabel')\">{{ menuitem?.label }}</span>\n <ng-template #htmlLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"menuitem?.label\"></span></ng-template>\n </ng-container>\n </ng-container>\n </a>\n <a\n *ngIf=\"menuitem?.routerLink\"\n [routerLink]=\"menuitem?.routerLink\"\n [queryParams]=\"menuitem?.queryParams\"\n [routerLinkActiveOptions]=\"menuitem?.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cx('itemLink')\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : '0'\"\n [fragment]=\"menuitem?.fragment\"\n [queryParamsHandling]=\"menuitem?.queryParamsHandling\"\n [preserveFragment]=\"menuitem?.preserveFragment\"\n [skipLocationChange]=\"menuitem?.skipLocationChange\"\n [replaceUrl]=\"menuitem?.replaceUrl\"\n [state]=\"menuitem?.state\"\n >\n <span *ngIf=\"menuitem?.icon\" [class]=\"cn(cx('itemIcon'), menuitem?.icon)\" [style]=\"menuitem?.iconStyle\"></span>\n <ng-container *ngIf=\"menuitem?.label\">\n <span *ngIf=\"menuitem?.escape !== false; else htmlRouteLabel\" [class]=\"cx('itemLabel')\">{{ menuitem?.label }}</span>\n <ng-template #htmlRouteLabel><span [class]=\"cx('itemLabel')\" [innerHTML]=\"menuitem?.label\"></span></ng-template>\n </ng-container>\n </a>\n }\n </li>\n <li *ngIf=\"!end && menuitem.visible !== false\" [class]=\"cx('separator')\" [attr.data-pc-section]=\"'separator'\">\n <svg data-p-icon=\"chevron-right\" *ngIf=\"!separatorTemplate && !_separatorTemplate\" />\n <ng-template *ngTemplateOutlet=\"separatorTemplate || _separatorTemplate\"></ng-template>\n </li>\n </ng-template>\n </ol>\n </nav>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BreadCrumbStyle]\n})\nexport class Breadcrumb extends BaseComponent implements AfterContentInit {\n /**\n * An array of menuitems.\n * @group Props\n */\n @Input() model: MenuItem[] | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * MenuItem configuration for the home icon.\n * @group Props\n */\n @Input() home: MenuItem | undefined;\n /**\n * Defines a string that labels the home icon for accessibility.\n * @group Props\n */\n @Input() homeAriaLabel: string | undefined;\n /**\n * Fired when an item is selected.\n * @param {BreadcrumbItemClickEvent} event - custom click event.\n * @group Emits\n */\n @Output() onItemClick: EventEmitter<BreadcrumbItemClickEvent> = new EventEmitter<BreadcrumbItemClickEvent>();\n\n _componentStyle = inject(BreadCrumbStyle);\n\n constructor(private router: Router) {\n super();\n }\n\n onClick(event: MouseEvent, item: MenuItem) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url && !item.routerLink) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.onItemClick.emit({\n originalEvent: event,\n item: item\n });\n }\n\n /**\n * Defines template option for item.\n * @group Templates\n */\n @ContentChild('item') itemTemplate: TemplateRef<any> | undefined;\n\n /**\n * Defines template option for separator.\n * @group Templates\n */\n @ContentChild('separator') separatorTemplate: TemplateRef<any> | undefined;\n\n @ContentChildren(PrimeTemplate) templates: QueryList<PrimeTemplate> | undefined;\n\n _separatorTemplate: TemplateRef<any> | undefined;\n\n _itemTemplate: TemplateRef<any> | undefined;\n\n ngAfterContentInit() {\n this.templates?.forEach((item) => {\n switch (item.getType()) {\n case 'separator':\n this._separatorTemplate = item.template;\n break;\n\n case 'item':\n this._itemTemplate = item.template;\n break;\n\n default:\n this._itemTemplate = item.template;\n break;\n }\n });\n }\n}\n\n@NgModule({\n imports: [Breadcrumb, SharedModule],\n exports: [Breadcrumb, SharedModule]\n})\nexport class BreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,MAAM,CAAC,0BAA0B,CAAC;AACxC,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE,wBAAwB;AACnC,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAClF,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE;CACd;AAGK,MAAO,eAAgB,SAAQ,SAAS,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CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;AClPD;;AAEG;;;;"}
@@ -18,18 +18,20 @@ const classes = {
18
18
  root: ({ instance }) => [
19
19
  'p-button p-component',
20
20
  {
21
- 'p-button-icon-only': (instance.icon || instance.iconTemplate || instance._iconTemplate || instance.loadingIcon || instance.loadingIconTemplate || instance._loadingIconTemplate) && !instance.label,
21
+ 'p-button-icon-only': (instance.icon || instance.buttonProps?.icon || instance.iconTemplate || instance._iconTemplate || instance.loadingIcon || instance.loadingIconTemplate || instance._loadingIconTemplate) &&
22
+ !instance.label &&
23
+ !instance.buttonProps?.label,
22
24
  'p-button-vertical': (instance.iconPos === 'top' || instance.iconPos === 'bottom') && instance.label,
23
- 'p-button-loading': instance.loading,
24
- 'p-button-link': instance.link,
25
- [`p-button-${instance.severity}`]: instance.severity,
26
- 'p-button-raised': instance.raised,
27
- 'p-button-rounded': instance.rounded,
28
- 'p-button-text': instance.text || instance.variant === 'text',
29
- 'p-button-outlined': instance.outlined || instance.variant === 'outlined',
30
- 'p-button-sm': instance.size === 'small',
31
- 'p-button-lg': instance.size === 'large',
32
- 'p-button-plain': instance.plain,
25
+ 'p-button-loading': instance.loading || instance.buttonProps?.loading,
26
+ 'p-button-link': instance.link || instance.buttonProps?.link,
27
+ [`p-button-${instance.severity || instance.buttonProps?.severity}`]: instance.severity || instance.buttonProps?.severity,
28
+ 'p-button-raised': instance.raised || instance.buttonProps?.raised,
29
+ 'p-button-rounded': instance.rounded || instance.buttonProps?.rounded,
30
+ 'p-button-text': instance.text || instance.variant === 'text' || instance.buttonProps?.text || instance.buttonProps?.variant === 'text',
31
+ 'p-button-outlined': instance.outlined || instance.variant === 'outlined' || instance.buttonProps?.outlined || instance.buttonProps?.variant === 'outlined',
32
+ 'p-button-sm': instance.size === 'small' || instance.buttonProps?.size === 'small',
33
+ 'p-button-lg': instance.size === 'large' || instance.buttonProps?.size === 'large',
34
+ 'p-button-plain': instance.plain || instance.buttonProps?.plain,
33
35
  'p-button-fluid': instance.hasFluid
34
36
  }
35
37
  ],
@@ -37,11 +39,12 @@ const classes = {
37
39
  icon: ({ instance }) => [
38
40
  'p-button-icon',
39
41
  {
40
- [`p-button-icon-${instance.iconPos}`]: instance.label,
41
- 'p-button-icon-left': instance.iconPos === 'left' && instance.label,
42
- 'p-button-icon-right': instance.iconPos === 'right' && instance.label
42
+ [`p-button-icon-${instance.iconPos || instance.buttonProps?.iconPos}`]: instance.label || instance.buttonProps?.label,
43
+ 'p-button-icon-left': ((instance.iconPos === 'left' || instance.buttonProps?.iconPos === 'left') && instance.label) || instance.buttonProps?.label,
44
+ 'p-button-icon-right': ((instance.iconPos === 'right' || instance.buttonProps?.iconPos === 'right') && instance.label) || instance.buttonProps?.label
43
45
  },
44
- instance.icon
46
+ instance.icon,
47
+ instance.buttonProps?.icon
45
48
  ],
46
49
  spinnerIcon: ({ instance }) => {
47
50
  return Object.entries(instance.iconClass())
@@ -291,16 +294,6 @@ class ButtonDirective extends BaseComponent {
291
294
  this.createLabel();
292
295
  this.initialized = true;
293
296
  }
294
- ngOnChanges(simpleChanges) {
295
- super.ngOnChanges(simpleChanges);
296
- const { buttonProps } = simpleChanges;
297
- if (buttonProps) {
298
- const props = buttonProps.currentValue;
299
- for (const property in props) {
300
- this[property] = props[property];
301
- }
302
- }
303
- }
304
297
  getStyleClass() {
305
298
  const styleClass = [INTERNAL_BUTTON_CLASSES.button, INTERNAL_BUTTON_CLASSES.component];
306
299
  if (this.icon && !this.label && isEmpty(this.htmlElement.textContent)) {
@@ -432,7 +425,7 @@ class ButtonDirective extends BaseComponent {
432
425
  super.ngOnDestroy();
433
426
  }
434
427
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
435
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.6", type: ButtonDirective, isStandalone: true, selector: "[pButton]", inputs: { iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: false, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", 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 }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "class.p-button-icon-only": "isIconOnly()", "class.p-button-text": "isTextButton()" } }, providers: [ButtonStyle], queries: [{ propertyName: "iconSignal", first: true, predicate: ButtonIcon, descendants: true, isSignal: true }, { propertyName: "labelSignal", first: true, predicate: ButtonLabel, descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
428
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.6", type: ButtonDirective, isStandalone: true, selector: "[pButton]", inputs: { iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: false, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", 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 }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "class.p-button-icon-only": "isIconOnly()", "class.p-button-text": "isTextButton()" } }, providers: [ButtonStyle], queries: [{ propertyName: "iconSignal", first: true, predicate: ButtonIcon, descendants: true, isSignal: true }, { propertyName: "labelSignal", first: true, predicate: ButtonLabel, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
436
429
  }
437
430
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ButtonDirective, decorators: [{
438
431
  type: Directive,
@@ -599,6 +592,11 @@ class Button extends BaseComponent {
599
592
  * @group Props
600
593
  */
601
594
  ariaLabel;
595
+ /**
596
+ * Button props as an object.
597
+ * @group Props
598
+ */
599
+ buttonProps;
602
600
  /**
603
601
  * When present, it specifies that the component should automatically get focus on load.
604
602
  * @group Props
@@ -646,27 +644,12 @@ class Button extends BaseComponent {
646
644
  * @group Templates
647
645
  **/
648
646
  iconTemplate;
649
- _buttonProps;
650
- /**
651
- * Used to pass all properties of the ButtonProps to the Button component.
652
- * @group Props
653
- */
654
- get buttonProps() {
655
- return this._buttonProps;
656
- }
657
- set buttonProps(val) {
658
- this._buttonProps = val;
659
- if (val && typeof val === 'object') {
660
- //@ts-ignore
661
- Object.entries(val).forEach(([k, v]) => this[`_${k}`] !== v && (this[`_${k}`] = v));
662
- }
663
- }
647
+ templates;
664
648
  pcFluid = inject(Fluid, { optional: true, host: true, skipSelf: true });
665
649
  get hasFluid() {
666
650
  return this.fluid() ?? !!this.pcFluid;
667
651
  }
668
652
  _componentStyle = inject(ButtonStyle);
669
- templates;
670
653
  _contentTemplate;
671
654
  _iconTemplate;
672
655
  _loadingIconTemplate;
@@ -688,16 +671,6 @@ class Button extends BaseComponent {
688
671
  }
689
672
  });
690
673
  }
691
- ngOnChanges(simpleChanges) {
692
- super.ngOnChanges(simpleChanges);
693
- const { buttonProps } = simpleChanges;
694
- if (buttonProps) {
695
- const props = buttonProps.currentValue;
696
- for (const property in props) {
697
- this[property] = props[property];
698
- }
699
- }
700
- }
701
674
  spinnerIconClass() {
702
675
  return Object.entries(this.iconClass())
703
676
  .filter(([, value]) => !!value)
@@ -714,28 +687,28 @@ class Button extends BaseComponent {
714
687
  };
715
688
  }
716
689
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: Button, deps: null, target: i0.ɵɵFactoryTarget.Component });
717
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: Button, isStandalone: true, selector: "p-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: false, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", 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 }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: false, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, link: { classPropertyName: "link", publicName: "link", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: false, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, badgeClass: { classPropertyName: "badgeClass", publicName: "badgeClass", isSignal: false, isRequired: false, transformFunction: null }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, providers: [ButtonStyle], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], descendants: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
690
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: Button, isStandalone: true, selector: "p-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: false, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", 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 }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: false, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, link: { classPropertyName: "link", publicName: "link", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: false, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, badgeClass: { classPropertyName: "badgeClass", publicName: "badgeClass", isSignal: false, isRequired: false, transformFunction: null }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, providers: [ButtonStyle], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], descendants: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], usesInheritance: true, ngImport: i0, template: `
718
691
  <button
719
- [attr.type]="type"
720
- [attr.aria-label]="ariaLabel"
721
- [ngStyle]="style"
722
- [disabled]="disabled || loading"
723
- [class]="cn(cx('root'), styleClass)"
692
+ [attr.type]="type || buttonProps?.type"
693
+ [attr.aria-label]="ariaLabel || buttonProps?.ariaLabel"
694
+ [ngStyle]="style || buttonProps?.style"
695
+ [disabled]="disabled || loading || buttonProps?.disabled"
696
+ [class]="cn(cx('root'), styleClass, buttonProps?.styleClass)"
724
697
  (click)="onClick.emit($event)"
725
698
  (focus)="onFocus.emit($event)"
726
699
  (blur)="onBlur.emit($event)"
727
700
  pRipple
728
701
  [attr.data-pc-name]="'button'"
729
702
  [attr.data-pc-section]="'root'"
730
- [attr.tabindex]="tabindex"
731
- [pAutoFocus]="autofocus"
703
+ [attr.tabindex]="tabindex || buttonProps?.tabindex"
704
+ [pAutoFocus]="autofocus || buttonProps?.autofocus"
732
705
  >
733
706
  <ng-content></ng-content>
734
707
  <ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
735
708
  <ng-container *ngIf="loading">
736
709
  <ng-container *ngIf="!loadingIconTemplate && !_loadingIconTemplate">
737
710
  <span *ngIf="loadingIcon" [class]="cx('loadingIcon')" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'"></span>
738
- <SpinnerIcon *ngIf="!loadingIcon" [styleClass]="cn(cx('loadingIcon'), spinnerIconClass())" [spin]="true" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'" />
711
+ <svg data-p-icon="spinner" *ngIf="!loadingIcon" [class]="cn(cx('loadingIcon'), spinnerIconClass())" [spin]="true" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'" />
739
712
  </ng-container>
740
713
  <ng-template [ngIf]="loadingIconTemplate || _loadingIconTemplate" *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate; context: { class: cx('loadingIcon') }"></ng-template>
741
714
  </ng-container>
@@ -746,7 +719,7 @@ class Button extends BaseComponent {
746
719
  <span [class]="cx('label')" [attr.aria-hidden]="icon && !label" *ngIf="!contentTemplate && !_contentTemplate && label" [attr.data-pc-section]="'label'">{{ label }}</span>
747
720
  <p-badge *ngIf="!contentTemplate && !_contentTemplate && badge" [value]="badge" [severity]="badgeSeverity"></p-badge>
748
721
  </button>
749
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: SpinnerIcon, selector: "SpinnerIcon" }, { kind: "ngmodule", type: BadgeModule }, { kind: "component", type: i2.Badge, selector: "p-badge", inputs: ["styleClass", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
722
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "ngmodule", type: BadgeModule }, { kind: "component", type: i2.Badge, selector: "p-badge", inputs: ["styleClass", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
750
723
  }
751
724
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: Button, decorators: [{
752
725
  type: Component,
@@ -756,26 +729,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
756
729
  imports: [CommonModule, Ripple, AutoFocus, SpinnerIcon, BadgeModule, SharedModule],
757
730
  template: `
758
731
  <button
759
- [attr.type]="type"
760
- [attr.aria-label]="ariaLabel"
761
- [ngStyle]="style"
762
- [disabled]="disabled || loading"
763
- [class]="cn(cx('root'), styleClass)"
732
+ [attr.type]="type || buttonProps?.type"
733
+ [attr.aria-label]="ariaLabel || buttonProps?.ariaLabel"
734
+ [ngStyle]="style || buttonProps?.style"
735
+ [disabled]="disabled || loading || buttonProps?.disabled"
736
+ [class]="cn(cx('root'), styleClass, buttonProps?.styleClass)"
764
737
  (click)="onClick.emit($event)"
765
738
  (focus)="onFocus.emit($event)"
766
739
  (blur)="onBlur.emit($event)"
767
740
  pRipple
768
741
  [attr.data-pc-name]="'button'"
769
742
  [attr.data-pc-section]="'root'"
770
- [attr.tabindex]="tabindex"
771
- [pAutoFocus]="autofocus"
743
+ [attr.tabindex]="tabindex || buttonProps?.tabindex"
744
+ [pAutoFocus]="autofocus || buttonProps?.autofocus"
772
745
  >
773
746
  <ng-content></ng-content>
774
747
  <ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
775
748
  <ng-container *ngIf="loading">
776
749
  <ng-container *ngIf="!loadingIconTemplate && !_loadingIconTemplate">
777
750
  <span *ngIf="loadingIcon" [class]="cx('loadingIcon')" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'"></span>
778
- <SpinnerIcon *ngIf="!loadingIcon" [styleClass]="cn(cx('loadingIcon'), spinnerIconClass())" [spin]="true" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'" />
751
+ <svg data-p-icon="spinner" *ngIf="!loadingIcon" [class]="cn(cx('loadingIcon'), spinnerIconClass())" [spin]="true" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'" />
779
752
  </ng-container>
780
753
  <ng-template [ngIf]="loadingIconTemplate || _loadingIconTemplate" *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate; context: { class: cx('loadingIcon') }"></ng-template>
781
754
  </ng-container>
@@ -846,6 +819,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
846
819
  type: Input
847
820
  }], ariaLabel: [{
848
821
  type: Input
822
+ }], buttonProps: [{
823
+ type: Input
849
824
  }], autofocus: [{
850
825
  type: Input,
851
826
  args: [{ transform: booleanAttribute }]
@@ -864,8 +839,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
864
839
  }], iconTemplate: [{
865
840
  type: ContentChild,
866
841
  args: ['icon']
867
- }], buttonProps: [{
868
- type: Input
869
842
  }], templates: [{
870
843
  type: ContentChildren,
871
844
  args: [PrimeTemplate]