primevue 2.9.2 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/LICENSE.md +2 -2
  2. package/accordion/accordion.common.js +67 -68
  3. package/accordion/accordion.umd.js +67 -68
  4. package/accordion/accordion.umd.min.js +1 -1
  5. package/accordiontab/accordiontab.common.js +61 -38
  6. package/accordiontab/accordiontab.umd.js +61 -38
  7. package/accordiontab/accordiontab.umd.min.js +1 -1
  8. package/autocomplete/autocomplete.common.js +213 -109
  9. package/autocomplete/autocomplete.umd.js +213 -109
  10. package/autocomplete/autocomplete.umd.min.js +1 -1
  11. package/avatar/avatar.common.js +65 -60
  12. package/avatar/avatar.umd.js +65 -60
  13. package/avatar/avatar.umd.min.js +1 -1
  14. package/avatargroup/avatargroup.common.js +45 -46
  15. package/avatargroup/avatargroup.umd.js +45 -46
  16. package/avatargroup/avatargroup.umd.min.js +1 -1
  17. package/badge/badge.common.js +23 -22
  18. package/badge/badge.umd.js +23 -22
  19. package/badge/badge.umd.min.js +1 -1
  20. package/blockui/blockui.common.js +67 -68
  21. package/blockui/blockui.umd.js +67 -68
  22. package/blockui/blockui.umd.min.js +1 -1
  23. package/breadcrumb/breadcrumb.common.js +132 -87
  24. package/breadcrumb/breadcrumb.umd.js +132 -87
  25. package/breadcrumb/breadcrumb.umd.min.js +1 -1
  26. package/breadcrumb/breadcrumbitem.common.js +68 -38
  27. package/breadcrumb/breadcrumbitem.umd.js +68 -38
  28. package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
  29. package/button/Button.d.ts +2 -0
  30. package/button/Button.vue +10 -1
  31. package/button/button.common.js +53 -32
  32. package/button/button.umd.js +53 -32
  33. package/button/button.umd.min.js +1 -1
  34. package/calendar/Calendar.vue +7 -3
  35. package/calendar/calendar.common.js +613 -231
  36. package/calendar/calendar.umd.js +613 -231
  37. package/calendar/calendar.umd.min.js +1 -1
  38. package/card/card.common.js +60 -61
  39. package/card/card.umd.js +60 -61
  40. package/card/card.umd.min.js +1 -1
  41. package/carousel/carousel.common.js +178 -111
  42. package/carousel/carousel.umd.js +178 -111
  43. package/carousel/carousel.umd.min.js +1 -1
  44. package/cascadeselect/cascadeselect.common.js +207 -113
  45. package/cascadeselect/cascadeselect.umd.js +207 -113
  46. package/cascadeselect/cascadeselect.umd.min.js +1 -1
  47. package/cascadeselect/cascadeselectsub.common.js +79 -37
  48. package/cascadeselect/cascadeselectsub.umd.js +79 -37
  49. package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
  50. package/chart/chart.common.js +78 -68
  51. package/chart/chart.umd.js +78 -68
  52. package/chart/chart.umd.min.js +1 -1
  53. package/checkbox/checkbox.common.js +62 -29
  54. package/checkbox/checkbox.umd.js +62 -29
  55. package/checkbox/checkbox.umd.min.js +1 -1
  56. package/chip/chip.common.js +67 -51
  57. package/chip/chip.umd.js +67 -51
  58. package/chip/chip.umd.min.js +1 -1
  59. package/chips/chips.common.js +122 -79
  60. package/chips/chips.umd.js +122 -79
  61. package/chips/chips.umd.min.js +1 -1
  62. package/colorpicker/colorpicker.common.js +136 -85
  63. package/colorpicker/colorpicker.umd.js +136 -85
  64. package/colorpicker/colorpicker.umd.min.js +1 -1
  65. package/column/column.common.js +13 -15
  66. package/column/column.umd.js +13 -15
  67. package/columngroup/columngroup.common.js +21 -24
  68. package/columngroup/columngroup.umd.js +21 -24
  69. package/columngroup/columngroup.umd.min.js +1 -1
  70. package/confirmdialog/confirmdialog.common.js +237 -120
  71. package/confirmdialog/confirmdialog.umd.js +237 -120
  72. package/confirmdialog/confirmdialog.umd.min.js +1 -1
  73. package/confirmpopup/confirmpopup.common.js +143 -93
  74. package/confirmpopup/confirmpopup.umd.js +143 -93
  75. package/confirmpopup/confirmpopup.umd.min.js +1 -1
  76. package/contextmenu/contextmenu.common.js +197 -104
  77. package/contextmenu/contextmenu.umd.js +197 -104
  78. package/contextmenu/contextmenu.umd.min.js +1 -1
  79. package/contextmenu/contextmenusub.common.js +126 -50
  80. package/contextmenu/contextmenusub.umd.js +126 -50
  81. package/contextmenu/contextmenusub.umd.min.js +1 -1
  82. package/contextmenu/demo.html +3 -4
  83. package/datatable/BodyCell.vue +11 -2
  84. package/datatable/ColumnFilter.vue +1 -1
  85. package/datatable/DataTable.vue +2 -12
  86. package/datatable/HeaderCheckbox.vue +5 -8
  87. package/datatable/bodycell.common.js +264 -91
  88. package/datatable/bodycell.umd.js +264 -91
  89. package/datatable/bodycell.umd.min.js +1 -1
  90. package/datatable/columnfilter.common.js +489 -183
  91. package/datatable/columnfilter.umd.js +489 -183
  92. package/datatable/columnfilter.umd.min.js +1 -1
  93. package/datatable/columnslot.common.js +13 -15
  94. package/datatable/columnslot.umd.js +13 -15
  95. package/datatable/datatable.common.js +2205 -816
  96. package/datatable/datatable.umd.js +2205 -816
  97. package/datatable/datatable.umd.min.js +1 -1
  98. package/datatable/demo.html +5 -3
  99. package/datatable/footercell.common.js +35 -26
  100. package/datatable/footercell.umd.js +35 -26
  101. package/datatable/footercell.umd.min.js +1 -1
  102. package/datatable/headercell.common.js +641 -231
  103. package/datatable/headercell.umd.js +641 -231
  104. package/datatable/headercell.umd.min.js +1 -1
  105. package/datatable/headercheckbox.common.js +60 -32
  106. package/datatable/headercheckbox.umd.js +60 -32
  107. package/datatable/headercheckbox.umd.min.js +1 -1
  108. package/datatable/rowcheckbox.common.js +62 -29
  109. package/datatable/rowcheckbox.umd.js +62 -29
  110. package/datatable/rowcheckbox.umd.min.js +1 -1
  111. package/datatable/rowradiobutton.common.js +55 -26
  112. package/datatable/rowradiobutton.umd.js +55 -26
  113. package/datatable/rowradiobutton.umd.min.js +1 -1
  114. package/datatable/tablebody.common.js +443 -142
  115. package/datatable/tablebody.umd.js +443 -142
  116. package/datatable/tablebody.umd.min.js +1 -1
  117. package/datatable/tablefooter.common.js +73 -46
  118. package/datatable/tablefooter.umd.js +73 -46
  119. package/datatable/tablefooter.umd.min.js +1 -1
  120. package/datatable/tableheader.common.js +848 -283
  121. package/datatable/tableheader.umd.js +848 -283
  122. package/datatable/tableheader.umd.min.js +1 -1
  123. package/datatable/tableloadingbody.common.js +37 -28
  124. package/datatable/tableloadingbody.umd.js +37 -28
  125. package/datatable/tableloadingbody.umd.min.js +1 -1
  126. package/dataview/dataview.common.js +797 -380
  127. package/dataview/dataview.umd.js +797 -380
  128. package/dataview/dataview.umd.min.js +1 -1
  129. package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +47 -29
  130. package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +47 -29
  131. package/dataviewlayoutoptions/dataviewlayoutoptions.umd.min.js +1 -1
  132. package/deferredcontent/deferredcontent.common.js +23 -24
  133. package/deferredcontent/deferredcontent.umd.js +23 -24
  134. package/deferredcontent/deferredcontent.umd.min.js +1 -1
  135. package/dialog/dialog.common.js +140 -89
  136. package/dialog/dialog.umd.js +140 -89
  137. package/dialog/dialog.umd.min.js +1 -1
  138. package/divider/divider.common.js +50 -48
  139. package/divider/divider.umd.js +50 -48
  140. package/divider/divider.umd.min.js +1 -1
  141. package/dock/dock.common.js +181 -90
  142. package/dock/dock.umd.js +181 -90
  143. package/dock/dock.umd.min.js +1 -1
  144. package/dock/docksub.common.js +133 -51
  145. package/dock/docksub.umd.js +133 -51
  146. package/dock/docksub.umd.min.js +1 -1
  147. package/dropdown/dropdown.common.js +205 -104
  148. package/dropdown/dropdown.umd.js +205 -104
  149. package/dropdown/dropdown.umd.min.js +1 -1
  150. package/editor/editor.common.js +201 -98
  151. package/editor/editor.umd.js +201 -98
  152. package/editor/editor.umd.min.js +3 -3
  153. package/fieldset/fieldset.common.js +121 -87
  154. package/fieldset/fieldset.umd.js +121 -87
  155. package/fieldset/fieldset.umd.min.js +1 -1
  156. package/fileupload/fileupload.common.js +417 -245
  157. package/fileupload/fileupload.umd.js +417 -245
  158. package/fileupload/fileupload.umd.min.js +1 -1
  159. package/fullcalendar/fullcalendar.common.js +75 -57
  160. package/fullcalendar/fullcalendar.umd.js +75 -57
  161. package/fullcalendar/fullcalendar.umd.min.js +4 -18
  162. package/galleria/galleria.common.js +390 -164
  163. package/galleria/galleria.umd.js +390 -164
  164. package/galleria/galleria.umd.min.js +1 -1
  165. package/galleria/galleriacontent.common.js +310 -107
  166. package/galleria/galleriacontent.umd.js +310 -107
  167. package/galleria/galleriacontent.umd.min.js +1 -1
  168. package/galleria/galleriaitem.common.js +111 -45
  169. package/galleria/galleriaitem.umd.js +111 -45
  170. package/galleria/galleriaitem.umd.min.js +1 -1
  171. package/galleria/galleriaitemslot.common.js +13 -15
  172. package/galleria/galleriaitemslot.umd.js +13 -15
  173. package/galleria/galleriathumbnails.common.js +109 -49
  174. package/galleria/galleriathumbnails.umd.js +109 -49
  175. package/galleria/galleriathumbnails.umd.min.js +1 -1
  176. package/imagepreview/imagepreview.common.js +163 -97
  177. package/imagepreview/imagepreview.umd.js +163 -97
  178. package/imagepreview/imagepreview.umd.min.js +1 -1
  179. package/inlinemessage/inlinemessage.common.js +62 -55
  180. package/inlinemessage/inlinemessage.umd.js +62 -55
  181. package/inlinemessage/inlinemessage.umd.min.js +1 -1
  182. package/inplace/inplace.common.js +128 -91
  183. package/inplace/inplace.umd.js +128 -91
  184. package/inplace/inplace.umd.min.js +1 -1
  185. package/inputmask/inputmask.common.js +23 -22
  186. package/inputmask/inputmask.umd.js +23 -22
  187. package/inputmask/inputmask.umd.min.js +1 -1
  188. package/inputnumber/InputNumber.vue +4 -1
  189. package/inputnumber/inputnumber.common.js +172 -100
  190. package/inputnumber/inputnumber.umd.js +172 -100
  191. package/inputnumber/inputnumber.umd.min.js +1 -1
  192. package/inputswitch/inputswitch.common.js +222 -37
  193. package/inputswitch/inputswitch.umd.js +222 -37
  194. package/inputswitch/inputswitch.umd.min.js +1 -1
  195. package/inputtext/inputtext.common.js +28 -22
  196. package/inputtext/inputtext.umd.js +28 -22
  197. package/inputtext/inputtext.umd.min.js +1 -1
  198. package/knob/knob.common.js +101 -72
  199. package/knob/knob.umd.js +101 -72
  200. package/knob/knob.umd.min.js +1 -1
  201. package/listbox/listbox.common.js +139 -84
  202. package/listbox/listbox.umd.js +139 -84
  203. package/listbox/listbox.umd.min.js +1 -1
  204. package/megamenu/MegaMenu.vue +2 -2
  205. package/megamenu/megamenu.common.js +258 -128
  206. package/megamenu/megamenu.umd.js +258 -128
  207. package/megamenu/megamenu.umd.min.js +1 -1
  208. package/menu/menu.common.js +190 -105
  209. package/menu/menu.umd.js +190 -105
  210. package/menu/menu.umd.min.js +1 -1
  211. package/menu/menuitem.common.js +83 -38
  212. package/menu/menuitem.umd.js +83 -38
  213. package/menu/menuitem.umd.min.js +1 -1
  214. package/menubar/demo.html +3 -4
  215. package/menubar/menubar.common.js +209 -111
  216. package/menubar/menubar.umd.js +209 -111
  217. package/menubar/menubar.umd.min.js +1 -1
  218. package/menubar/menubarsub.common.js +127 -49
  219. package/menubar/menubarsub.umd.js +127 -49
  220. package/menubar/menubarsub.umd.min.js +1 -1
  221. package/message/message.common.js +96 -78
  222. package/message/message.umd.js +96 -78
  223. package/message/message.umd.min.js +1 -1
  224. package/multiselect/multiselect.common.js +262 -129
  225. package/multiselect/multiselect.umd.js +262 -129
  226. package/multiselect/multiselect.umd.min.js +1 -1
  227. package/orderlist/orderlist.common.js +183 -106
  228. package/orderlist/orderlist.umd.js +183 -106
  229. package/orderlist/orderlist.umd.min.js +1 -1
  230. package/organizationchart/organizationchart.common.js +177 -114
  231. package/organizationchart/organizationchart.umd.js +177 -114
  232. package/organizationchart/organizationchart.umd.min.js +1 -1
  233. package/organizationchart/organizationchartnode.common.js +110 -59
  234. package/organizationchart/organizationchartnode.umd.js +110 -59
  235. package/organizationchart/organizationchartnode.umd.min.js +1 -1
  236. package/overlaypanel/overlaypanel.common.js +96 -75
  237. package/overlaypanel/overlaypanel.umd.js +96 -75
  238. package/overlaypanel/overlaypanel.umd.min.js +1 -1
  239. package/package.json +2 -2
  240. package/paginator/currentpagereport.common.js +23 -21
  241. package/paginator/currentpagereport.umd.js +23 -21
  242. package/paginator/currentpagereport.umd.min.js +1 -1
  243. package/paginator/firstpagelink.common.js +32 -24
  244. package/paginator/firstpagelink.umd.js +32 -24
  245. package/paginator/firstpagelink.umd.min.js +1 -1
  246. package/paginator/jumptopagedropdown.common.js +227 -112
  247. package/paginator/jumptopagedropdown.umd.js +227 -112
  248. package/paginator/jumptopagedropdown.umd.min.js +1 -1
  249. package/paginator/jumptopageinput.common.js +193 -109
  250. package/paginator/jumptopageinput.umd.js +193 -109
  251. package/paginator/jumptopageinput.umd.min.js +1 -1
  252. package/paginator/lastpagelink.common.js +32 -24
  253. package/paginator/lastpagelink.umd.js +32 -24
  254. package/paginator/lastpagelink.umd.min.js +1 -1
  255. package/paginator/nextpagelink.common.js +32 -24
  256. package/paginator/nextpagelink.umd.js +32 -24
  257. package/paginator/nextpagelink.umd.min.js +1 -1
  258. package/paginator/pagelinks.common.js +42 -24
  259. package/paginator/pagelinks.umd.js +42 -24
  260. package/paginator/pagelinks.umd.min.js +1 -1
  261. package/paginator/paginator.common.js +699 -332
  262. package/paginator/paginator.umd.js +699 -332
  263. package/paginator/paginator.umd.min.js +1 -1
  264. package/paginator/prevpagelink.common.js +32 -24
  265. package/paginator/prevpagelink.umd.js +32 -24
  266. package/paginator/prevpagelink.umd.min.js +1 -1
  267. package/paginator/rowsperpagedropdown.common.js +226 -112
  268. package/paginator/rowsperpagedropdown.umd.js +226 -112
  269. package/paginator/rowsperpagedropdown.umd.min.js +1 -1
  270. package/panel/panel.common.js +117 -86
  271. package/panel/panel.umd.js +117 -86
  272. package/panel/panel.umd.min.js +1 -1
  273. package/panelmenu/panelmenu.common.js +237 -119
  274. package/panelmenu/panelmenu.umd.js +237 -119
  275. package/panelmenu/panelmenu.umd.min.js +1 -1
  276. package/panelmenu/panelmenusub.common.js +111 -50
  277. package/panelmenu/panelmenusub.umd.js +111 -50
  278. package/panelmenu/panelmenusub.umd.min.js +1 -1
  279. package/password/Password.vue +27 -4
  280. package/password/password.common.js +186 -120
  281. package/password/password.umd.js +186 -120
  282. package/password/password.umd.min.js +1 -1
  283. package/picklist/picklist.common.js +309 -134
  284. package/picklist/picklist.umd.js +309 -134
  285. package/picklist/picklist.umd.min.js +1 -1
  286. package/progressbar/progressbar.common.js +84 -75
  287. package/progressbar/progressbar.umd.js +84 -75
  288. package/progressbar/progressbar.umd.min.js +1 -1
  289. package/progressspinner/progressspinner.common.js +548 -45
  290. package/progressspinner/progressspinner.umd.js +548 -45
  291. package/progressspinner/progressspinner.umd.min.js +1 -1
  292. package/radiobutton/radiobutton.common.js +60 -29
  293. package/radiobutton/radiobutton.umd.js +60 -29
  294. package/radiobutton/radiobutton.umd.min.js +1 -1
  295. package/rating/rating.common.js +93 -67
  296. package/rating/rating.umd.js +93 -67
  297. package/rating/rating.umd.min.js +1 -1
  298. package/row/row.common.js +21 -24
  299. package/row/row.umd.js +21 -24
  300. package/row/row.umd.min.js +1 -1
  301. package/scrollpanel/scrollpanel.common.js +88 -74
  302. package/scrollpanel/scrollpanel.umd.js +88 -74
  303. package/scrollpanel/scrollpanel.umd.min.js +1 -1
  304. package/scrolltop/scrolltop.common.js +78 -64
  305. package/scrolltop/scrolltop.umd.js +78 -64
  306. package/scrolltop/scrolltop.umd.min.js +1 -1
  307. package/selectbutton/selectbutton.common.js +69 -31
  308. package/selectbutton/selectbutton.umd.js +69 -31
  309. package/selectbutton/selectbutton.umd.min.js +1 -1
  310. package/sidebar/sidebar.common.js +100 -77
  311. package/sidebar/sidebar.umd.js +100 -77
  312. package/sidebar/sidebar.umd.min.js +1 -1
  313. package/skeleton/skeleton.common.js +58 -56
  314. package/skeleton/skeleton.umd.js +58 -56
  315. package/skeleton/skeleton.umd.min.js +1 -1
  316. package/slider/slider.common.js +158 -74
  317. package/slider/slider.umd.js +158 -74
  318. package/slider/slider.umd.min.js +1 -1
  319. package/speeddial/speeddial.common.js +174 -103
  320. package/speeddial/speeddial.umd.js +174 -103
  321. package/speeddial/speeddial.umd.min.js +1 -1
  322. package/splitbutton/splitbutton.common.js +318 -179
  323. package/splitbutton/splitbutton.umd.js +318 -179
  324. package/splitbutton/splitbutton.umd.min.js +1 -1
  325. package/splitter/splitter.common.js +57 -59
  326. package/splitter/splitter.umd.js +57 -59
  327. package/splitter/splitter.umd.min.js +1 -1
  328. package/splitterpanel/splitterpanel.common.js +13 -15
  329. package/splitterpanel/splitterpanel.umd.js +13 -15
  330. package/steps/steps.common.js +113 -74
  331. package/steps/steps.umd.js +113 -74
  332. package/steps/steps.umd.min.js +1 -1
  333. package/tabmenu/tabmenu.common.js +127 -82
  334. package/tabmenu/tabmenu.umd.js +127 -82
  335. package/tabmenu/tabmenu.umd.min.js +1 -1
  336. package/tabpanel/tabpanel.common.js +32 -24
  337. package/tabpanel/tabpanel.umd.js +32 -24
  338. package/tabpanel/tabpanel.umd.min.js +1 -1
  339. package/tabview/tabview.common.js +154 -89
  340. package/tabview/tabview.umd.js +154 -89
  341. package/tabview/tabview.umd.min.js +1 -1
  342. package/tag/tag.common.js +60 -58
  343. package/tag/tag.umd.js +60 -58
  344. package/tag/tag.umd.min.js +1 -1
  345. package/terminal/terminal.common.js +97 -67
  346. package/terminal/terminal.umd.js +97 -67
  347. package/terminal/terminal.umd.min.js +1 -1
  348. package/textarea/textarea.common.js +73 -66
  349. package/textarea/textarea.umd.js +73 -66
  350. package/textarea/textarea.umd.min.js +1 -1
  351. package/tieredmenu/demo.html +3 -4
  352. package/tieredmenu/tieredmenu.common.js +201 -104
  353. package/tieredmenu/tieredmenu.umd.js +201 -104
  354. package/tieredmenu/tieredmenu.umd.min.js +1 -1
  355. package/tieredmenu/tieredmenusub.common.js +128 -49
  356. package/tieredmenu/tieredmenusub.umd.js +128 -49
  357. package/tieredmenu/tieredmenusub.umd.min.js +1 -1
  358. package/timeline/timeline.common.js +94 -82
  359. package/timeline/timeline.umd.js +94 -82
  360. package/timeline/timeline.umd.min.js +1 -1
  361. package/toast/toast.common.js +134 -91
  362. package/toast/toast.umd.js +134 -91
  363. package/toast/toast.umd.min.js +1 -1
  364. package/toast/toastmessage.common.js +58 -36
  365. package/toast/toastmessage.umd.js +58 -36
  366. package/toast/toastmessage.umd.min.js +1 -1
  367. package/togglebutton/togglebutton.common.js +42 -25
  368. package/togglebutton/togglebutton.umd.js +42 -25
  369. package/togglebutton/togglebutton.umd.min.js +1 -1
  370. package/toolbar/toolbar.common.js +47 -46
  371. package/toolbar/toolbar.umd.js +47 -46
  372. package/toolbar/toolbar.umd.min.js +1 -1
  373. package/tree/tree.common.js +197 -111
  374. package/tree/tree.umd.js +197 -111
  375. package/tree/tree.umd.min.js +1 -1
  376. package/tree/treenode.common.js +91 -44
  377. package/tree/treenode.umd.js +91 -44
  378. package/tree/treenode.umd.min.js +1 -1
  379. package/treetable/footercell.common.js +28 -25
  380. package/treetable/footercell.umd.js +28 -25
  381. package/treetable/footercell.umd.min.js +1 -1
  382. package/treetable/headercell.common.js +47 -29
  383. package/treetable/headercell.umd.js +47 -29
  384. package/treetable/headercell.umd.min.js +1 -1
  385. package/treetable/treetable.common.js +1020 -502
  386. package/treetable/treetable.umd.js +1020 -502
  387. package/treetable/treetable.umd.min.js +1 -1
  388. package/treetable/treetablecolumnslot.common.js +13 -15
  389. package/treetable/treetablecolumnslot.umd.js +13 -15
  390. package/treetable/treetablerow.common.js +87 -38
  391. package/treetable/treetablerow.umd.js +87 -38
  392. package/treetable/treetablerow.umd.min.js +1 -1
  393. package/treetable/treetablerowloader.common.js +87 -38
  394. package/treetable/treetablerowloader.umd.js +87 -38
  395. package/treetable/treetablerowloader.umd.min.js +1 -1
  396. package/tristatecheckbox/tristatecheckbox.common.js +60 -29
  397. package/tristatecheckbox/tristatecheckbox.umd.js +60 -29
  398. package/tristatecheckbox/tristatecheckbox.umd.min.js +1 -1
  399. package/vetur-attributes.json +8 -0
  400. package/vetur-tags.json +3 -1
  401. package/web-types.json +21 -1
@@ -163,34 +163,66 @@ if (typeof window !== 'undefined') {
163
163
  // Indicate to webpack that this file can be concatenated
164
164
  /* harmony default export */ var setPublicPath = (null);
165
165
 
166
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"28cb4606-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/breadcrumb/BreadcrumbItem.vue?vue&type=template&id=71efe75c&
167
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible())?_c('li',{class:_vm.containerClass(_vm.item)},[(_vm.item.to)?_c('router-link',{attrs:{"to":_vm.item.to,"custom":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
168
- var navigate = ref.navigate;
169
- var href = ref.href;
170
- var isActive = ref.isActive;
171
- var isExactActive = ref.isExactActive;
172
- return [_c('a',{class:_vm.linkClass({isActive: isActive, isExactActive: isExactActive}),attrs:{"href":href},on:{"click":function($event){return _vm.onClick($event, navigate)}}},[(_vm.item.icon)?_c('span',{class:_vm.iconClass}):_vm._e(),(_vm.item.label)?_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(_vm.item)))]):_vm._e()])]}}],null,false,1258197796)}):_c('a',{class:_vm.linkClass(),attrs:{"href":_vm.item.url||'#',"target":_vm.item.target},on:{"click":_vm.onClick}},[(_vm.item.icon)?_c('span',{class:_vm.iconClass}):_vm._e(),(_vm.item.label)?_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(_vm.item)))]):_vm._e()])],1):_vm._e()}
173
- var staticRenderFns = []
166
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"379c0a9c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/breadcrumb/BreadcrumbItem.vue?vue&type=template&id=71efe75c&
167
+ var render = function render() {
168
+ var _vm = this,
169
+ _c = _vm._self._c;
170
+
171
+ return _vm.visible() ? _c('li', {
172
+ class: _vm.containerClass(_vm.item)
173
+ }, [_vm.item.to ? _c('router-link', {
174
+ attrs: {
175
+ "to": _vm.item.to,
176
+ "custom": ""
177
+ },
178
+ scopedSlots: _vm._u([{
179
+ key: "default",
180
+ fn: function fn(_ref) {
181
+ var navigate = _ref.navigate,
182
+ href = _ref.href,
183
+ isActive = _ref.isActive,
184
+ isExactActive = _ref.isExactActive;
185
+ return [_c('a', {
186
+ class: _vm.linkClass({
187
+ isActive: isActive,
188
+ isExactActive: isExactActive
189
+ }),
190
+ attrs: {
191
+ "href": href
192
+ },
193
+ on: {
194
+ "click": function click($event) {
195
+ return _vm.onClick($event, navigate);
196
+ }
197
+ }
198
+ }, [_vm.item.icon ? _c('span', {
199
+ class: _vm.iconClass
200
+ }) : _vm._e(), _vm.item.label ? _c('span', {
201
+ staticClass: "p-menuitem-text"
202
+ }, [_vm._v(_vm._s(_vm.label(_vm.item)))]) : _vm._e()])];
203
+ }
204
+ }], null, false, 1258197796)
205
+ }) : _c('a', {
206
+ class: _vm.linkClass(),
207
+ attrs: {
208
+ "href": _vm.item.url || '#',
209
+ "target": _vm.item.target
210
+ },
211
+ on: {
212
+ "click": _vm.onClick
213
+ }
214
+ }, [_vm.item.icon ? _c('span', {
215
+ class: _vm.iconClass
216
+ }) : _vm._e(), _vm.item.label ? _c('span', {
217
+ staticClass: "p-menuitem-text"
218
+ }, [_vm._v(_vm._s(_vm.label(_vm.item)))]) : _vm._e()])], 1) : _vm._e();
219
+ };
174
220
 
221
+ var staticRenderFns = [];
175
222
 
176
223
  // CONCATENATED MODULE: ./src/components/breadcrumb/BreadcrumbItem.vue?vue&type=template&id=71efe75c&
177
224
 
178
225
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/breadcrumb/BreadcrumbItem.vue?vue&type=script&lang=js&
179
- //
180
- //
181
- //
182
- //
183
- //
184
- //
185
- //
186
- //
187
- //
188
- //
189
- //
190
- //
191
- //
192
- //
193
- //
194
226
  /* harmony default export */ var BreadcrumbItemvue_type_script_lang_js_ = ({
195
227
  props: {
196
228
  item: null,
@@ -245,20 +277,19 @@ var staticRenderFns = []
245
277
  // This module is a runtime utility for cleaner component module output and will
246
278
  // be included in the final webpack user bundle.
247
279
 
248
- function normalizeComponent (
280
+ function normalizeComponent(
249
281
  scriptExports,
250
282
  render,
251
283
  staticRenderFns,
252
284
  functionalTemplate,
253
285
  injectStyles,
254
286
  scopeId,
255
- moduleIdentifier, /* server only */
287
+ moduleIdentifier /* server only */,
256
288
  shadowMode /* vue-cli only */
257
289
  ) {
258
290
  // Vue.extend constructor export interop
259
- var options = typeof scriptExports === 'function'
260
- ? scriptExports.options
261
- : scriptExports
291
+ var options =
292
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
262
293
 
263
294
  // render functions
264
295
  if (render) {
@@ -278,7 +309,8 @@ function normalizeComponent (
278
309
  }
279
310
 
280
311
  var hook
281
- if (moduleIdentifier) { // server build
312
+ if (moduleIdentifier) {
313
+ // server build
282
314
  hook = function (context) {
283
315
  // 2.3 injection
284
316
  context =
@@ -304,11 +336,11 @@ function normalizeComponent (
304
336
  } else if (injectStyles) {
305
337
  hook = shadowMode
306
338
  ? function () {
307
- injectStyles.call(
308
- this,
309
- (options.functional ? this.parent : this).$root.$options.shadowRoot
310
- )
311
- }
339
+ injectStyles.call(
340
+ this,
341
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
342
+ )
343
+ }
312
344
  : injectStyles
313
345
  }
314
346
 
@@ -319,16 +351,14 @@ function normalizeComponent (
319
351
  options._injectStyles = hook
320
352
  // register for functional component in vue file
321
353
  var originalRender = options.render
322
- options.render = function renderWithStyleInjection (h, context) {
354
+ options.render = function renderWithStyleInjection(h, context) {
323
355
  hook.call(context)
324
356
  return originalRender(h, context)
325
357
  }
326
358
  } else {
327
359
  // inject component registration as beforeCreate hook
328
360
  var existing = options.beforeCreate
329
- options.beforeCreate = existing
330
- ? [].concat(existing, hook)
331
- : [hook]
361
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
332
362
  }
333
363
  }
334
364
 
@@ -1 +1 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["breadcrumbitem"]=t():e["breadcrumbitem"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible()?n("li",{class:e.containerClass(e.item)},[e.item.to?n("router-link",{attrs:{to:e.item.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.navigate,r=t.href,o=t.isActive,s=t.isExactActive;return[n("a",{class:e.linkClass({isActive:o,isExactActive:s}),attrs:{href:r},on:{click:function(t){return e.onClick(t,i)}}},[e.item.icon?n("span",{class:e.iconClass}):e._e(),e.item.label?n("span",{staticClass:"p-menuitem-text"},[e._v(e._s(e.label(e.item)))]):e._e()])]}}],null,!1,1258197796)}):n("a",{class:e.linkClass(),attrs:{href:e.item.url||"#",target:e.item.target},on:{click:e.onClick}},[e.item.icon?n("span",{class:e.iconClass}):e._e(),e.item.label?n("span",{staticClass:"p-menuitem-text"},[e._v(e._s(e.label(e.item)))]):e._e()])],1):e._e()},o=[],s={props:{item:null,exact:null},methods:{onClick:function(e,t){this.item.command&&this.item.command({originalEvent:e,item:this.item}),this.item.to&&t&&t(e)},containerClass:function(e){return[{"p-disabled":this.disabled(e)},e.class]},linkClass:function(e){return["p-menuitem-link",{"router-link-active":e&&e.isActive,"router-link-active-exact":this.exact&&e&&e.isExactActive}]},visible:function(){return"function"===typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled:function(e){return"function"===typeof e.disabled?e.disabled():e.disabled},label:function(){return"function"===typeof this.item.label?this.item.label():this.item.label}},computed:{iconClass:function(){return["p-menuitem-icon",this.item.icon]}}},c=s;function a(e,t,n,i,r,o,s,c){var a,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(a=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=a):r&&(a=c?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(l.functional){l._injectStyles=a;var u=l.render;l.render=function(e,t){return a.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,a):[a]}return{exports:e,options:l}}var l=a(c,r,o,!1,null,null,null),u=l.exports;t["default"]=u}})["default"]}));
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["breadcrumbitem"]=t():e["breadcrumbitem"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=function(){var e=this,t=e._self._c;return e.visible()?t("li",{class:e.containerClass(e.item)},[e.item.to?t("router-link",{attrs:{to:e.item.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.navigate,r=n.href,o=n.isActive,s=n.isExactActive;return[t("a",{class:e.linkClass({isActive:o,isExactActive:s}),attrs:{href:r},on:{click:function(t){return e.onClick(t,i)}}},[e.item.icon?t("span",{class:e.iconClass}):e._e(),e.item.label?t("span",{staticClass:"p-menuitem-text"},[e._v(e._s(e.label(e.item)))]):e._e()])]}}],null,!1,1258197796)}):t("a",{class:e.linkClass(),attrs:{href:e.item.url||"#",target:e.item.target},on:{click:e.onClick}},[e.item.icon?t("span",{class:e.iconClass}):e._e(),e.item.label?t("span",{staticClass:"p-menuitem-text"},[e._v(e._s(e.label(e.item)))]):e._e()])],1):e._e()},o=[],s={props:{item:null,exact:null},methods:{onClick:function(e,t){this.item.command&&this.item.command({originalEvent:e,item:this.item}),this.item.to&&t&&t(e)},containerClass:function(e){return[{"p-disabled":this.disabled(e)},e.class]},linkClass:function(e){return["p-menuitem-link",{"router-link-active":e&&e.isActive,"router-link-active-exact":this.exact&&e&&e.isExactActive}]},visible:function(){return"function"===typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled:function(e){return"function"===typeof e.disabled?e.disabled():e.disabled},label:function(){return"function"===typeof this.item.label?this.item.label():this.item.label}},computed:{iconClass:function(){return["p-menuitem-icon",this.item.icon]}}},c=s;function a(e,t,n,i,r,o,s,c){var a,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(a=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=a):r&&(a=c?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(l.functional){l._injectStyles=a;var u=l.render;l.render=function(e,t){return a.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,a):[a]}return{exports:e,options:l}}var l=a(c,r,o,!1,null,null,null),u=l.exports;t["default"]=u}})["default"]}));
@@ -6,6 +6,8 @@ declare class Button extends Vue {
6
6
  iconPos?: string;
7
7
  badge?: string;
8
8
  badgeClass?: string;
9
+ loading?: boolean;
10
+ loadingIcon?: string;
9
11
  }
10
12
 
11
13
  export default Button;
package/button/Button.vue CHANGED
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <button :class="buttonClass" v-on="$listeners" type="button" v-ripple>
3
3
  <slot>
4
+ <span v-if="loading && !icon" :class="iconClass"></span>
4
5
  <span v-if="icon" :class="iconClass"></span>
5
6
  <span class="p-button-label">{{label||'&nbsp;'}}</span>
6
7
  <span class="p-badge" v-if="badge" :class="badgeStyleClass">{{badge}}</span>
@@ -29,6 +30,14 @@ export default {
29
30
  badgeClass: {
30
31
  type: String,
31
32
  default: null
33
+ },
34
+ loading: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+ loadingIcon: {
39
+ type: String,
40
+ default: 'pi pi-spinner pi-spin'
32
41
  }
33
42
  },
34
43
  computed: {
@@ -42,7 +51,7 @@ export default {
42
51
  },
43
52
  iconClass() {
44
53
  return [
45
- this.icon,
54
+ this.loading ? this.loadingIcon : this.icon,
46
55
  'p-button-icon',
47
56
  {
48
57
  'p-button-icon-left': this.iconPos === 'left' && this.label,
@@ -2782,12 +2782,37 @@ if (typeof window !== 'undefined') {
2782
2782
  // Indicate to webpack that this file can be concatenated
2783
2783
  /* harmony default export */ var setPublicPath = (null);
2784
2784
 
2785
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"28cb4606-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/Button.vue?vue&type=template&id=3d0cb6ac&
2786
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g({directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.buttonClass,attrs:{"type":"button"}},_vm.$listeners),[_vm._t("default",function(){return [(_vm.icon)?_c('span',{class:_vm.iconClass}):_vm._e(),_c('span',{staticClass:"p-button-label"},[_vm._v(_vm._s(_vm.label||' '))]),(_vm.badge)?_c('span',{staticClass:"p-badge",class:_vm.badgeStyleClass},[_vm._v(_vm._s(_vm.badge))]):_vm._e()]})],2)}
2787
- var staticRenderFns = []
2788
-
2789
-
2790
- // CONCATENATED MODULE: ./src/components/button/Button.vue?vue&type=template&id=3d0cb6ac&
2785
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"379c0a9c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/Button.vue?vue&type=template&id=44f787be&
2786
+ var render = function render() {
2787
+ var _vm = this,
2788
+ _c = _vm._self._c;
2789
+
2790
+ return _c('button', _vm._g({
2791
+ directives: [{
2792
+ name: "ripple",
2793
+ rawName: "v-ripple"
2794
+ }],
2795
+ class: _vm.buttonClass,
2796
+ attrs: {
2797
+ "type": "button"
2798
+ }
2799
+ }, _vm.$listeners), [_vm._t("default", function () {
2800
+ return [_vm.loading && !_vm.icon ? _c('span', {
2801
+ class: _vm.iconClass
2802
+ }) : _vm._e(), _vm.icon ? _c('span', {
2803
+ class: _vm.iconClass
2804
+ }) : _vm._e(), _c('span', {
2805
+ staticClass: "p-button-label"
2806
+ }, [_vm._v(_vm._s(_vm.label || ' '))]), _vm.badge ? _c('span', {
2807
+ staticClass: "p-badge",
2808
+ class: _vm.badgeStyleClass
2809
+ }, [_vm._v(_vm._s(_vm.badge))]) : _vm._e()];
2810
+ })], 2);
2811
+ };
2812
+
2813
+ var staticRenderFns = [];
2814
+
2815
+ // CONCATENATED MODULE: ./src/components/button/Button.vue?vue&type=template&id=44f787be&
2791
2816
 
2792
2817
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.symbol.async-iterator.js
2793
2818
  var es7_symbol_async_iterator = __webpack_require__("ac4d");
@@ -3507,16 +3532,6 @@ var Ripple = {
3507
3532
  };
3508
3533
  /* harmony default export */ var ripple_Ripple = (Ripple);
3509
3534
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/Button.vue?vue&type=script&lang=js&
3510
- //
3511
- //
3512
- //
3513
- //
3514
- //
3515
- //
3516
- //
3517
- //
3518
- //
3519
- //
3520
3535
 
3521
3536
  /* harmony default export */ var Buttonvue_type_script_lang_js_ = ({
3522
3537
  props: {
@@ -3536,6 +3551,14 @@ var Ripple = {
3536
3551
  badgeClass: {
3537
3552
  type: String,
3538
3553
  default: null
3554
+ },
3555
+ loading: {
3556
+ type: Boolean,
3557
+ default: false
3558
+ },
3559
+ loadingIcon: {
3560
+ type: String,
3561
+ default: 'pi pi-spinner pi-spin'
3539
3562
  }
3540
3563
  },
3541
3564
  computed: {
@@ -3548,7 +3571,7 @@ var Ripple = {
3548
3571
  };
3549
3572
  },
3550
3573
  iconClass: function iconClass() {
3551
- return [this.icon, 'p-button-icon', {
3574
+ return [this.loading ? this.loadingIcon : this.icon, 'p-button-icon', {
3552
3575
  'p-button-icon-left': this.iconPos === 'left' && this.label,
3553
3576
  'p-button-icon-right': this.iconPos === 'right' && this.label,
3554
3577
  'p-button-icon-top': this.iconPos === 'top' && this.label,
@@ -3574,20 +3597,19 @@ var Ripple = {
3574
3597
  // This module is a runtime utility for cleaner component module output and will
3575
3598
  // be included in the final webpack user bundle.
3576
3599
 
3577
- function normalizeComponent (
3600
+ function normalizeComponent(
3578
3601
  scriptExports,
3579
3602
  render,
3580
3603
  staticRenderFns,
3581
3604
  functionalTemplate,
3582
3605
  injectStyles,
3583
3606
  scopeId,
3584
- moduleIdentifier, /* server only */
3607
+ moduleIdentifier /* server only */,
3585
3608
  shadowMode /* vue-cli only */
3586
3609
  ) {
3587
3610
  // Vue.extend constructor export interop
3588
- var options = typeof scriptExports === 'function'
3589
- ? scriptExports.options
3590
- : scriptExports
3611
+ var options =
3612
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
3591
3613
 
3592
3614
  // render functions
3593
3615
  if (render) {
@@ -3607,7 +3629,8 @@ function normalizeComponent (
3607
3629
  }
3608
3630
 
3609
3631
  var hook
3610
- if (moduleIdentifier) { // server build
3632
+ if (moduleIdentifier) {
3633
+ // server build
3611
3634
  hook = function (context) {
3612
3635
  // 2.3 injection
3613
3636
  context =
@@ -3633,11 +3656,11 @@ function normalizeComponent (
3633
3656
  } else if (injectStyles) {
3634
3657
  hook = shadowMode
3635
3658
  ? function () {
3636
- injectStyles.call(
3637
- this,
3638
- (options.functional ? this.parent : this).$root.$options.shadowRoot
3639
- )
3640
- }
3659
+ injectStyles.call(
3660
+ this,
3661
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
3662
+ )
3663
+ }
3641
3664
  : injectStyles
3642
3665
  }
3643
3666
 
@@ -3648,16 +3671,14 @@ function normalizeComponent (
3648
3671
  options._injectStyles = hook
3649
3672
  // register for functional component in vue file
3650
3673
  var originalRender = options.render
3651
- options.render = function renderWithStyleInjection (h, context) {
3674
+ options.render = function renderWithStyleInjection(h, context) {
3652
3675
  hook.call(context)
3653
3676
  return originalRender(h, context)
3654
3677
  }
3655
3678
  } else {
3656
3679
  // inject component registration as beforeCreate hook
3657
3680
  var existing = options.beforeCreate
3658
- options.beforeCreate = existing
3659
- ? [].concat(existing, hook)
3660
- : [hook]
3681
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
3661
3682
  }
3662
3683
  }
3663
3684
 
@@ -2791,12 +2791,37 @@ if (typeof window !== 'undefined') {
2791
2791
  // Indicate to webpack that this file can be concatenated
2792
2792
  /* harmony default export */ var setPublicPath = (null);
2793
2793
 
2794
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"28cb4606-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/Button.vue?vue&type=template&id=3d0cb6ac&
2795
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g({directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.buttonClass,attrs:{"type":"button"}},_vm.$listeners),[_vm._t("default",function(){return [(_vm.icon)?_c('span',{class:_vm.iconClass}):_vm._e(),_c('span',{staticClass:"p-button-label"},[_vm._v(_vm._s(_vm.label||' '))]),(_vm.badge)?_c('span',{staticClass:"p-badge",class:_vm.badgeStyleClass},[_vm._v(_vm._s(_vm.badge))]):_vm._e()]})],2)}
2796
- var staticRenderFns = []
2797
-
2798
-
2799
- // CONCATENATED MODULE: ./src/components/button/Button.vue?vue&type=template&id=3d0cb6ac&
2794
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"379c0a9c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/Button.vue?vue&type=template&id=44f787be&
2795
+ var render = function render() {
2796
+ var _vm = this,
2797
+ _c = _vm._self._c;
2798
+
2799
+ return _c('button', _vm._g({
2800
+ directives: [{
2801
+ name: "ripple",
2802
+ rawName: "v-ripple"
2803
+ }],
2804
+ class: _vm.buttonClass,
2805
+ attrs: {
2806
+ "type": "button"
2807
+ }
2808
+ }, _vm.$listeners), [_vm._t("default", function () {
2809
+ return [_vm.loading && !_vm.icon ? _c('span', {
2810
+ class: _vm.iconClass
2811
+ }) : _vm._e(), _vm.icon ? _c('span', {
2812
+ class: _vm.iconClass
2813
+ }) : _vm._e(), _c('span', {
2814
+ staticClass: "p-button-label"
2815
+ }, [_vm._v(_vm._s(_vm.label || ' '))]), _vm.badge ? _c('span', {
2816
+ staticClass: "p-badge",
2817
+ class: _vm.badgeStyleClass
2818
+ }, [_vm._v(_vm._s(_vm.badge))]) : _vm._e()];
2819
+ })], 2);
2820
+ };
2821
+
2822
+ var staticRenderFns = [];
2823
+
2824
+ // CONCATENATED MODULE: ./src/components/button/Button.vue?vue&type=template&id=44f787be&
2800
2825
 
2801
2826
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.symbol.async-iterator.js
2802
2827
  var es7_symbol_async_iterator = __webpack_require__("ac4d");
@@ -3516,16 +3541,6 @@ var Ripple = {
3516
3541
  };
3517
3542
  /* harmony default export */ var ripple_Ripple = (Ripple);
3518
3543
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/Button.vue?vue&type=script&lang=js&
3519
- //
3520
- //
3521
- //
3522
- //
3523
- //
3524
- //
3525
- //
3526
- //
3527
- //
3528
- //
3529
3544
 
3530
3545
  /* harmony default export */ var Buttonvue_type_script_lang_js_ = ({
3531
3546
  props: {
@@ -3545,6 +3560,14 @@ var Ripple = {
3545
3560
  badgeClass: {
3546
3561
  type: String,
3547
3562
  default: null
3563
+ },
3564
+ loading: {
3565
+ type: Boolean,
3566
+ default: false
3567
+ },
3568
+ loadingIcon: {
3569
+ type: String,
3570
+ default: 'pi pi-spinner pi-spin'
3548
3571
  }
3549
3572
  },
3550
3573
  computed: {
@@ -3557,7 +3580,7 @@ var Ripple = {
3557
3580
  };
3558
3581
  },
3559
3582
  iconClass: function iconClass() {
3560
- return [this.icon, 'p-button-icon', {
3583
+ return [this.loading ? this.loadingIcon : this.icon, 'p-button-icon', {
3561
3584
  'p-button-icon-left': this.iconPos === 'left' && this.label,
3562
3585
  'p-button-icon-right': this.iconPos === 'right' && this.label,
3563
3586
  'p-button-icon-top': this.iconPos === 'top' && this.label,
@@ -3583,20 +3606,19 @@ var Ripple = {
3583
3606
  // This module is a runtime utility for cleaner component module output and will
3584
3607
  // be included in the final webpack user bundle.
3585
3608
 
3586
- function normalizeComponent (
3609
+ function normalizeComponent(
3587
3610
  scriptExports,
3588
3611
  render,
3589
3612
  staticRenderFns,
3590
3613
  functionalTemplate,
3591
3614
  injectStyles,
3592
3615
  scopeId,
3593
- moduleIdentifier, /* server only */
3616
+ moduleIdentifier /* server only */,
3594
3617
  shadowMode /* vue-cli only */
3595
3618
  ) {
3596
3619
  // Vue.extend constructor export interop
3597
- var options = typeof scriptExports === 'function'
3598
- ? scriptExports.options
3599
- : scriptExports
3620
+ var options =
3621
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
3600
3622
 
3601
3623
  // render functions
3602
3624
  if (render) {
@@ -3616,7 +3638,8 @@ function normalizeComponent (
3616
3638
  }
3617
3639
 
3618
3640
  var hook
3619
- if (moduleIdentifier) { // server build
3641
+ if (moduleIdentifier) {
3642
+ // server build
3620
3643
  hook = function (context) {
3621
3644
  // 2.3 injection
3622
3645
  context =
@@ -3642,11 +3665,11 @@ function normalizeComponent (
3642
3665
  } else if (injectStyles) {
3643
3666
  hook = shadowMode
3644
3667
  ? function () {
3645
- injectStyles.call(
3646
- this,
3647
- (options.functional ? this.parent : this).$root.$options.shadowRoot
3648
- )
3649
- }
3668
+ injectStyles.call(
3669
+ this,
3670
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
3671
+ )
3672
+ }
3650
3673
  : injectStyles
3651
3674
  }
3652
3675
 
@@ -3657,16 +3680,14 @@ function normalizeComponent (
3657
3680
  options._injectStyles = hook
3658
3681
  // register for functional component in vue file
3659
3682
  var originalRender = options.render
3660
- options.render = function renderWithStyleInjection (h, context) {
3683
+ options.render = function renderWithStyleInjection(h, context) {
3661
3684
  hook.call(context)
3662
3685
  return originalRender(h, context)
3663
3686
  }
3664
3687
  } else {
3665
3688
  // inject component registration as beforeCreate hook
3666
3689
  var existing = options.beforeCreate
3667
- options.beforeCreate = existing
3668
- ? [].concat(existing, hook)
3669
- : [hook]
3690
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
3670
3691
  }
3671
3692
  }
3672
3693