primevue 2.9.2 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +150 -3
  3. package/accordion/accordion.common.js +66 -72
  4. package/accordion/accordion.umd.js +66 -72
  5. package/accordion/accordion.umd.min.js +1 -1
  6. package/accordiontab/accordiontab.common.js +73 -103
  7. package/accordiontab/accordiontab.umd.js +73 -103
  8. package/accordiontab/accordiontab.umd.min.js +1 -1
  9. package/api/Api.d.ts +24 -2
  10. package/api/Api.js +0 -6
  11. package/api/FilterService.js +2 -55
  12. package/api/PrimeIcons.js +24 -2
  13. package/api/api.common.js +35 -98
  14. package/api/api.umd.js +35 -98
  15. package/api/api.umd.min.js +1 -1
  16. package/api/filterservice.common.js +11 -96
  17. package/api/filterservice.umd.js +11 -96
  18. package/api/primeicons.common.js +24 -2
  19. package/api/primeicons.umd.js +24 -2
  20. package/api/primeicons.umd.min.js +1 -1
  21. package/autocomplete/autocomplete.common.js +241 -293
  22. package/autocomplete/autocomplete.umd.js +241 -293
  23. package/autocomplete/autocomplete.umd.min.js +1 -1
  24. package/avatar/avatar.common.js +64 -61
  25. package/avatar/avatar.umd.js +64 -61
  26. package/avatar/avatar.umd.min.js +1 -1
  27. package/avatargroup/avatargroup.common.js +44 -47
  28. package/avatargroup/avatargroup.umd.js +44 -47
  29. package/avatargroup/avatargroup.umd.min.js +1 -1
  30. package/badge/badge.common.js +22 -23
  31. package/badge/badge.umd.js +22 -23
  32. package/badge/badge.umd.min.js +1 -1
  33. package/badgedirective/BadgeDirective.js +0 -13
  34. package/badgedirective/badgedirective.common.js +13 -71
  35. package/badgedirective/badgedirective.umd.js +13 -71
  36. package/blockui/blockui.common.js +79 -138
  37. package/blockui/blockui.umd.js +79 -138
  38. package/blockui/blockui.umd.min.js +1 -1
  39. package/breadcrumb/breadcrumb.common.js +130 -90
  40. package/breadcrumb/breadcrumb.umd.js +130 -90
  41. package/breadcrumb/breadcrumb.umd.min.js +1 -1
  42. package/breadcrumb/breadcrumbitem.common.js +67 -40
  43. package/breadcrumb/breadcrumbitem.umd.js +67 -40
  44. package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
  45. package/button/Button.d.ts +2 -0
  46. package/button/Button.vue +10 -1
  47. package/button/button.common.js +64 -109
  48. package/button/button.umd.js +64 -109
  49. package/button/button.umd.min.js +1 -1
  50. package/calendar/Calendar.vue +7 -3
  51. package/calendar/calendar.common.js +714 -721
  52. package/calendar/calendar.umd.js +714 -721
  53. package/calendar/calendar.umd.min.js +1 -1
  54. package/card/card.common.js +59 -62
  55. package/card/card.umd.js +59 -62
  56. package/card/card.umd.min.js +1 -1
  57. package/carousel/carousel.common.js +190 -231
  58. package/carousel/carousel.umd.js +190 -231
  59. package/carousel/carousel.umd.min.js +1 -1
  60. package/cascadeselect/cascadeselect.common.js +230 -294
  61. package/cascadeselect/cascadeselect.umd.js +230 -294
  62. package/cascadeselect/cascadeselect.umd.min.js +1 -1
  63. package/cascadeselect/cascadeselectsub.common.js +101 -183
  64. package/cascadeselect/cascadeselectsub.umd.js +101 -183
  65. package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
  66. package/cascadeselect/demo.html +4 -3
  67. package/chart/chart.common.js +77 -74
  68. package/chart/chart.umd.js +77 -74
  69. package/chart/chart.umd.min.js +1 -1
  70. package/checkbox/checkbox.common.js +70 -87
  71. package/checkbox/checkbox.umd.js +70 -87
  72. package/checkbox/checkbox.umd.min.js +1 -1
  73. package/chip/chip.common.js +66 -52
  74. package/chip/chip.umd.js +66 -52
  75. package/chip/chip.umd.min.js +1 -1
  76. package/chips/chips.common.js +122 -96
  77. package/chips/chips.umd.js +122 -96
  78. package/chips/chips.umd.min.js +1 -1
  79. package/colorpicker/colorpicker.common.js +149 -193
  80. package/colorpicker/colorpicker.umd.js +149 -193
  81. package/colorpicker/colorpicker.umd.min.js +1 -1
  82. package/column/column.common.js +13 -15
  83. package/column/column.umd.js +13 -15
  84. package/columngroup/columngroup.common.js +20 -25
  85. package/columngroup/columngroup.umd.js +20 -25
  86. package/columngroup/columngroup.umd.min.js +1 -1
  87. package/config/PrimeVue.js +0 -5
  88. package/config/primevue.common.js +35 -102
  89. package/config/primevue.umd.js +35 -102
  90. package/config/primevue.umd.min.js +1 -1
  91. package/confirmationeventbus/ConfirmationEventBus.js +0 -4
  92. package/confirmationeventbus/confirmationeventbus.common.js +0 -2
  93. package/confirmationeventbus/confirmationeventbus.umd.js +0 -2
  94. package/confirmationservice/ConfirmationService.js +0 -3
  95. package/confirmationservice/confirmationservice.common.js +0 -2
  96. package/confirmationservice/confirmationservice.umd.js +0 -2
  97. package/confirmdialog/confirmdialog.common.js +247 -218
  98. package/confirmdialog/confirmdialog.umd.js +247 -218
  99. package/confirmdialog/confirmdialog.umd.min.js +1 -1
  100. package/confirmpopup/confirmpopup.common.js +154 -196
  101. package/confirmpopup/confirmpopup.umd.js +154 -196
  102. package/confirmpopup/confirmpopup.umd.min.js +1 -1
  103. package/contextmenu/contextmenu.common.js +216 -206
  104. package/contextmenu/contextmenu.umd.js +216 -206
  105. package/contextmenu/contextmenu.umd.min.js +1 -1
  106. package/contextmenu/contextmenusub.common.js +138 -134
  107. package/contextmenu/contextmenusub.umd.js +138 -134
  108. package/contextmenu/contextmenusub.umd.min.js +1 -1
  109. package/contextmenu/demo.html +3 -4
  110. package/datatable/BodyCell.vue +11 -2
  111. package/datatable/ColumnFilter.vue +1 -1
  112. package/datatable/DataTable.vue +2 -12
  113. package/datatable/HeaderCheckbox.vue +5 -8
  114. package/datatable/bodycell.common.js +283 -246
  115. package/datatable/bodycell.umd.js +283 -246
  116. package/datatable/bodycell.umd.min.js +1 -1
  117. package/datatable/columnfilter.common.js +516 -422
  118. package/datatable/columnfilter.umd.js +516 -422
  119. package/datatable/columnfilter.umd.min.js +1 -1
  120. package/datatable/columnslot.common.js +13 -15
  121. package/datatable/columnslot.umd.js +13 -15
  122. package/datatable/datatable.common.js +2250 -1551
  123. package/datatable/datatable.umd.js +2250 -1551
  124. package/datatable/datatable.umd.min.js +1 -1
  125. package/datatable/footercell.common.js +56 -142
  126. package/datatable/footercell.umd.js +56 -142
  127. package/datatable/footercell.umd.min.js +1 -1
  128. package/datatable/headercell.common.js +666 -483
  129. package/datatable/headercell.umd.js +666 -483
  130. package/datatable/headercell.umd.min.js +1 -1
  131. package/datatable/headercheckbox.common.js +59 -33
  132. package/datatable/headercheckbox.umd.js +59 -33
  133. package/datatable/headercheckbox.umd.min.js +1 -1
  134. package/datatable/rowcheckbox.common.js +61 -30
  135. package/datatable/rowcheckbox.umd.js +61 -30
  136. package/datatable/rowcheckbox.umd.min.js +1 -1
  137. package/datatable/rowradiobutton.common.js +54 -27
  138. package/datatable/rowradiobutton.umd.js +54 -27
  139. package/datatable/rowradiobutton.umd.min.js +1 -1
  140. package/datatable/tablebody.common.js +461 -321
  141. package/datatable/tablebody.umd.js +461 -321
  142. package/datatable/tablebody.umd.min.js +1 -1
  143. package/datatable/tablefooter.common.js +94 -175
  144. package/datatable/tablefooter.umd.js +94 -175
  145. package/datatable/tablefooter.umd.min.js +1 -1
  146. package/datatable/tableheader.common.js +872 -539
  147. package/datatable/tableheader.umd.js +872 -539
  148. package/datatable/tableheader.umd.min.js +1 -1
  149. package/datatable/tableloadingbody.common.js +36 -29
  150. package/datatable/tableloadingbody.umd.js +36 -29
  151. package/datatable/tableloadingbody.umd.min.js +1 -1
  152. package/dataview/dataview.common.js +851 -720
  153. package/dataview/dataview.umd.js +851 -720
  154. package/dataview/dataview.umd.min.js +1 -1
  155. package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +46 -30
  156. package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +46 -30
  157. package/dataviewlayoutoptions/dataviewlayoutoptions.umd.min.js +1 -1
  158. package/deferredcontent/deferredcontent.common.js +22 -28
  159. package/deferredcontent/deferredcontent.umd.js +22 -28
  160. package/deferredcontent/deferredcontent.umd.min.js +1 -1
  161. package/dialog/dialog.common.js +152 -179
  162. package/dialog/dialog.umd.js +152 -179
  163. package/dialog/dialog.umd.min.js +1 -1
  164. package/divider/divider.common.js +49 -49
  165. package/divider/divider.umd.js +49 -49
  166. package/divider/divider.umd.min.js +1 -1
  167. package/dock/dock.common.js +179 -95
  168. package/dock/dock.umd.js +179 -95
  169. package/dock/dock.umd.min.js +1 -1
  170. package/dock/docksub.common.js +132 -54
  171. package/dock/docksub.umd.js +132 -54
  172. package/dock/docksub.umd.min.js +1 -1
  173. package/dropdown/dropdown.common.js +233 -289
  174. package/dropdown/dropdown.umd.js +233 -289
  175. package/dropdown/dropdown.umd.min.js +1 -1
  176. package/editor/editor.common.js +194 -104
  177. package/editor/editor.umd.js +194 -104
  178. package/editor/editor.umd.min.js +3 -3
  179. package/fieldset/fieldset.common.js +133 -165
  180. package/fieldset/fieldset.umd.js +133 -165
  181. package/fieldset/fieldset.umd.min.js +1 -1
  182. package/fileupload/fileupload.common.js +431 -373
  183. package/fileupload/fileupload.umd.js +431 -373
  184. package/fileupload/fileupload.umd.min.js +1 -1
  185. package/fullcalendar/fullcalendar.common.js +75 -64
  186. package/fullcalendar/fullcalendar.umd.js +75 -64
  187. package/fullcalendar/fullcalendar.umd.min.js +4 -18
  188. package/galleria/galleria.common.js +403 -299
  189. package/galleria/galleria.umd.js +403 -299
  190. package/galleria/galleria.umd.min.js +1 -1
  191. package/galleria/galleriacontent.common.js +324 -235
  192. package/galleria/galleriacontent.umd.js +324 -235
  193. package/galleria/galleriacontent.umd.min.js +1 -1
  194. package/galleria/galleriaitem.common.js +127 -135
  195. package/galleria/galleriaitem.umd.js +127 -135
  196. package/galleria/galleriaitem.umd.min.js +1 -1
  197. package/galleria/galleriaitemslot.common.js +17 -25
  198. package/galleria/galleriaitemslot.umd.js +17 -25
  199. package/galleria/galleriathumbnails.common.js +125 -171
  200. package/galleria/galleriathumbnails.umd.js +125 -171
  201. package/galleria/galleriathumbnails.umd.min.js +1 -1
  202. package/imagepreview/imagepreview.common.js +174 -163
  203. package/imagepreview/imagepreview.umd.js +174 -163
  204. package/imagepreview/imagepreview.umd.min.js +1 -1
  205. package/inlinemessage/inlinemessage.common.js +61 -57
  206. package/inlinemessage/inlinemessage.umd.js +61 -57
  207. package/inlinemessage/inlinemessage.umd.min.js +1 -1
  208. package/inplace/inplace.common.js +139 -170
  209. package/inplace/inplace.umd.js +139 -170
  210. package/inplace/inplace.umd.min.js +1 -1
  211. package/inputmask/inputmask.common.js +51 -174
  212. package/inputmask/inputmask.umd.js +51 -174
  213. package/inputmask/inputmask.umd.min.js +1 -1
  214. package/inputnumber/InputNumber.vue +6 -3
  215. package/inputnumber/inputnumber.common.js +205 -293
  216. package/inputnumber/inputnumber.umd.js +205 -293
  217. package/inputnumber/inputnumber.umd.min.js +1 -1
  218. package/inputswitch/inputswitch.common.js +219 -37
  219. package/inputswitch/inputswitch.umd.js +219 -37
  220. package/inputswitch/inputswitch.umd.min.js +1 -1
  221. package/inputtext/inputtext.common.js +27 -28
  222. package/inputtext/inputtext.umd.js +27 -28
  223. package/inputtext/inputtext.umd.min.js +1 -1
  224. package/knob/knob.common.js +102 -74
  225. package/knob/knob.umd.js +102 -74
  226. package/knob/knob.umd.min.js +1 -1
  227. package/listbox/listbox.common.js +163 -237
  228. package/listbox/listbox.umd.js +163 -237
  229. package/listbox/listbox.umd.min.js +1 -1
  230. package/megamenu/MegaMenu.vue +2 -2
  231. package/megamenu/megamenu.common.js +273 -230
  232. package/megamenu/megamenu.umd.js +273 -230
  233. package/megamenu/megamenu.umd.min.js +1 -1
  234. package/menu/menu.common.js +201 -203
  235. package/menu/menu.umd.js +201 -203
  236. package/menu/menu.umd.min.js +1 -1
  237. package/menu/menuitem.common.js +95 -116
  238. package/menu/menuitem.umd.js +95 -116
  239. package/menu/menuitem.umd.min.js +1 -1
  240. package/menubar/menubar.common.js +223 -214
  241. package/menubar/menubar.umd.js +223 -214
  242. package/menubar/menubar.umd.min.js +1 -1
  243. package/menubar/menubarsub.common.js +142 -149
  244. package/menubar/menubarsub.umd.js +142 -149
  245. package/menubar/menubarsub.umd.min.js +1 -1
  246. package/message/message.common.js +108 -157
  247. package/message/message.umd.js +108 -157
  248. package/message/message.umd.min.js +1 -1
  249. package/multiselect/multiselect.common.js +291 -315
  250. package/multiselect/multiselect.umd.js +291 -315
  251. package/multiselect/multiselect.umd.min.js +1 -1
  252. package/orderlist/orderlist.common.js +206 -263
  253. package/orderlist/orderlist.umd.js +206 -263
  254. package/orderlist/orderlist.umd.min.js +1 -1
  255. package/organizationchart/organizationchart.common.js +188 -190
  256. package/organizationchart/organizationchart.umd.js +188 -190
  257. package/organizationchart/organizationchart.umd.min.js +1 -1
  258. package/organizationchart/organizationchartnode.common.js +122 -124
  259. package/organizationchart/organizationchartnode.umd.js +122 -124
  260. package/organizationchart/organizationchartnode.umd.min.js +1 -1
  261. package/overlayeventbus/OverlayEventBus.js +0 -4
  262. package/overlayeventbus/overlayeventbus.common.js +0 -2
  263. package/overlayeventbus/overlayeventbus.umd.js +0 -2
  264. package/overlaypanel/overlaypanel.common.js +108 -176
  265. package/overlaypanel/overlaypanel.umd.js +108 -176
  266. package/overlaypanel/overlaypanel.umd.min.js +1 -1
  267. package/package.json +3 -3
  268. package/paginator/currentpagereport.common.js +22 -22
  269. package/paginator/currentpagereport.umd.js +22 -22
  270. package/paginator/currentpagereport.umd.min.js +1 -1
  271. package/paginator/firstpagelink.common.js +44 -102
  272. package/paginator/firstpagelink.umd.js +44 -102
  273. package/paginator/firstpagelink.umd.min.js +1 -1
  274. package/paginator/jumptopagedropdown.common.js +254 -300
  275. package/paginator/jumptopagedropdown.umd.js +254 -300
  276. package/paginator/jumptopagedropdown.umd.min.js +1 -1
  277. package/paginator/jumptopageinput.common.js +225 -303
  278. package/paginator/jumptopageinput.umd.js +225 -303
  279. package/paginator/jumptopageinput.umd.min.js +1 -1
  280. package/paginator/lastpagelink.common.js +44 -102
  281. package/paginator/lastpagelink.umd.js +44 -102
  282. package/paginator/lastpagelink.umd.min.js +1 -1
  283. package/paginator/nextpagelink.common.js +44 -102
  284. package/paginator/nextpagelink.umd.js +44 -102
  285. package/paginator/nextpagelink.umd.min.js +1 -1
  286. package/paginator/pagelinks.common.js +54 -102
  287. package/paginator/pagelinks.umd.js +54 -102
  288. package/paginator/pagelinks.umd.min.js +1 -1
  289. package/paginator/paginator.common.js +741 -654
  290. package/paginator/paginator.umd.js +741 -654
  291. package/paginator/paginator.umd.min.js +1 -1
  292. package/paginator/prevpagelink.common.js +44 -102
  293. package/paginator/prevpagelink.umd.js +44 -102
  294. package/paginator/prevpagelink.umd.min.js +1 -1
  295. package/paginator/rowsperpagedropdown.common.js +253 -300
  296. package/paginator/rowsperpagedropdown.umd.js +253 -300
  297. package/paginator/rowsperpagedropdown.umd.min.js +1 -1
  298. package/panel/panel.common.js +129 -164
  299. package/panel/panel.umd.js +129 -164
  300. package/panel/panel.umd.min.js +1 -1
  301. package/panelmenu/panelmenu.common.js +235 -129
  302. package/panelmenu/panelmenu.umd.js +235 -129
  303. package/panelmenu/panelmenu.umd.min.js +1 -1
  304. package/panelmenu/panelmenusub.common.js +110 -55
  305. package/panelmenu/panelmenusub.umd.js +110 -55
  306. package/panelmenu/panelmenusub.umd.min.js +1 -1
  307. package/password/Password.vue +64 -14
  308. package/password/password.common.js +243 -239
  309. package/password/password.umd.js +243 -239
  310. package/password/password.umd.min.js +1 -1
  311. package/picklist/picklist.common.js +332 -323
  312. package/picklist/picklist.umd.js +332 -323
  313. package/picklist/picklist.umd.min.js +1 -1
  314. package/progressbar/progressbar.common.js +83 -76
  315. package/progressbar/progressbar.umd.js +83 -76
  316. package/progressbar/progressbar.umd.min.js +1 -1
  317. package/progressspinner/progressspinner.common.js +545 -45
  318. package/progressspinner/progressspinner.umd.js +545 -45
  319. package/progressspinner/progressspinner.umd.min.js +1 -1
  320. package/radiobutton/radiobutton.common.js +68 -83
  321. package/radiobutton/radiobutton.umd.js +68 -83
  322. package/radiobutton/radiobutton.umd.min.js +1 -1
  323. package/rating/rating.common.js +92 -68
  324. package/rating/rating.umd.js +92 -68
  325. package/rating/rating.umd.min.js +1 -1
  326. package/ripple/Ripple.js +0 -18
  327. package/ripple/ripple.common.js +13 -77
  328. package/ripple/ripple.umd.js +13 -77
  329. package/row/row.common.js +20 -25
  330. package/row/row.umd.js +20 -25
  331. package/row/row.umd.min.js +1 -1
  332. package/scrollpanel/scrollpanel.common.js +103 -154
  333. package/scrollpanel/scrollpanel.umd.js +103 -154
  334. package/scrollpanel/scrollpanel.umd.min.js +1 -1
  335. package/scrolltop/scrolltop.common.js +90 -132
  336. package/scrolltop/scrolltop.umd.js +90 -132
  337. package/scrolltop/scrolltop.umd.min.js +1 -1
  338. package/selectbutton/selectbutton.common.js +91 -171
  339. package/selectbutton/selectbutton.umd.js +91 -171
  340. package/selectbutton/selectbutton.umd.min.js +1 -1
  341. package/sidebar/Sidebar.d.ts +1 -0
  342. package/sidebar/Sidebar.vue +3 -0
  343. package/sidebar/sidebar.common.js +115 -166
  344. package/sidebar/sidebar.umd.js +115 -166
  345. package/sidebar/sidebar.umd.min.js +1 -1
  346. package/skeleton/skeleton.common.js +57 -57
  347. package/skeleton/skeleton.umd.js +57 -57
  348. package/skeleton/skeleton.umd.min.js +1 -1
  349. package/slider/Slider.vue +1 -1
  350. package/slider/slider.common.js +175 -166
  351. package/slider/slider.umd.js +175 -166
  352. package/slider/slider.umd.min.js +1 -1
  353. package/speeddial/SpeedDial.vue +2 -2
  354. package/speeddial/speeddial.common.js +186 -204
  355. package/speeddial/speeddial.umd.js +186 -204
  356. package/speeddial/speeddial.umd.min.js +1 -1
  357. package/splitbutton/splitbutton.common.js +327 -279
  358. package/splitbutton/splitbutton.umd.js +327 -279
  359. package/splitbutton/splitbutton.umd.min.js +1 -1
  360. package/splitter/splitter.common.js +70 -143
  361. package/splitter/splitter.umd.js +70 -143
  362. package/splitter/splitter.umd.min.js +1 -1
  363. package/splitterpanel/splitterpanel.common.js +13 -15
  364. package/splitterpanel/splitterpanel.umd.js +13 -15
  365. package/steps/steps.common.js +112 -77
  366. package/steps/steps.umd.js +112 -77
  367. package/steps/steps.umd.min.js +1 -1
  368. package/styleclass/StyleClass.js +0 -43
  369. package/styleclass/styleclass.common.js +13 -99
  370. package/styleclass/styleclass.umd.js +13 -99
  371. package/tabmenu/tabmenu.common.js +139 -165
  372. package/tabmenu/tabmenu.umd.js +139 -165
  373. package/tabmenu/tabmenu.umd.min.js +1 -1
  374. package/tabpanel/tabpanel.common.js +31 -26
  375. package/tabpanel/tabpanel.umd.js +31 -26
  376. package/tabpanel/tabpanel.umd.min.js +1 -1
  377. package/tabview/tabview.common.js +178 -220
  378. package/tabview/tabview.umd.js +178 -220
  379. package/tabview/tabview.umd.min.js +1 -1
  380. package/tag/tag.common.js +59 -59
  381. package/tag/tag.umd.js +59 -59
  382. package/tag/tag.umd.min.js +1 -1
  383. package/terminal/terminal.common.js +96 -68
  384. package/terminal/terminal.umd.js +96 -68
  385. package/terminal/terminal.umd.min.js +1 -1
  386. package/terminalservice/TerminalService.js +0 -3
  387. package/textarea/Textarea.vue +24 -1
  388. package/textarea/textarea.common.js +2083 -91
  389. package/textarea/textarea.umd.js +2083 -91
  390. package/textarea/textarea.umd.min.js +1 -1
  391. package/tieredmenu/demo.html +3 -4
  392. package/tieredmenu/tieredmenu.common.js +214 -219
  393. package/tieredmenu/tieredmenu.umd.js +214 -219
  394. package/tieredmenu/tieredmenu.umd.min.js +1 -1
  395. package/tieredmenu/tieredmenusub.common.js +142 -145
  396. package/tieredmenu/tieredmenusub.umd.js +142 -145
  397. package/tieredmenu/tieredmenusub.umd.min.js +1 -1
  398. package/timeline/timeline.common.js +101 -134
  399. package/timeline/timeline.umd.js +101 -134
  400. package/timeline/timeline.umd.min.js +1 -1
  401. package/toast/toast.common.js +145 -182
  402. package/toast/toast.umd.js +145 -182
  403. package/toast/toast.umd.min.js +1 -1
  404. package/toast/toastmessage.common.js +70 -115
  405. package/toast/toastmessage.umd.js +70 -115
  406. package/toast/toastmessage.umd.min.js +1 -1
  407. package/toastservice/ToastEventBus.js +0 -3
  408. package/toastservice/ToastService.js +0 -3
  409. package/togglebutton/togglebutton.common.js +54 -103
  410. package/togglebutton/togglebutton.umd.js +54 -103
  411. package/togglebutton/togglebutton.umd.min.js +1 -1
  412. package/toolbar/toolbar.common.js +46 -47
  413. package/toolbar/toolbar.umd.js +46 -47
  414. package/toolbar/toolbar.umd.min.js +1 -1
  415. package/tooltip/Tooltip.js +4 -84
  416. package/tooltip/tooltip.common.js +17 -133
  417. package/tooltip/tooltip.umd.js +17 -133
  418. package/tree/tree.common.js +227 -316
  419. package/tree/tree.umd.js +227 -316
  420. package/tree/tree.umd.min.js +1 -1
  421. package/tree/treenode.common.js +108 -158
  422. package/tree/treenode.umd.js +108 -158
  423. package/tree/treenode.umd.min.js +1 -1
  424. package/treetable/footercell.common.js +49 -141
  425. package/treetable/footercell.umd.js +49 -141
  426. package/treetable/footercell.umd.min.js +1 -1
  427. package/treetable/headercell.common.js +68 -153
  428. package/treetable/headercell.umd.js +68 -153
  429. package/treetable/headercell.umd.min.js +1 -1
  430. package/treetable/treetable.common.js +1086 -1044
  431. package/treetable/treetable.umd.js +1086 -1044
  432. package/treetable/treetable.umd.min.js +1 -1
  433. package/treetable/treetablecolumnslot.common.js +13 -15
  434. package/treetable/treetablecolumnslot.umd.js +13 -15
  435. package/treetable/treetablerow.common.js +113 -194
  436. package/treetable/treetablerow.umd.js +113 -194
  437. package/treetable/treetablerow.umd.min.js +1 -1
  438. package/treetable/treetablerowloader.common.js +115 -214
  439. package/treetable/treetablerowloader.umd.js +115 -214
  440. package/treetable/treetablerowloader.umd.min.js +1 -1
  441. package/tristatecheckbox/tristatecheckbox.common.js +59 -38
  442. package/tristatecheckbox/tristatecheckbox.umd.js +59 -38
  443. package/tristatecheckbox/tristatecheckbox.umd.min.js +1 -1
  444. package/utils/ConnectedOverlayScrollHandler.js +0 -12
  445. package/utils/DomHandler.js +13 -61
  446. package/utils/EventBus.js +0 -3
  447. package/utils/ObjectUtils.js +9 -51
  448. package/utils/UniqueComponentId.js +0 -1
  449. package/utils/Utils.js +0 -6
  450. package/utils/connectedoverlayscrollhandler.common.js +13 -70
  451. package/utils/connectedoverlayscrollhandler.umd.js +13 -70
  452. package/utils/domhandler.common.js +13 -63
  453. package/utils/domhandler.umd.js +13 -63
  454. package/utils/eventbus.common.js +0 -2
  455. package/utils/eventbus.umd.js +0 -2
  456. package/utils/objectutils.common.js +9 -52
  457. package/utils/objectutils.umd.js +9 -52
  458. package/utils/utils.common.js +22 -119
  459. package/utils/utils.umd.js +22 -119
  460. package/vetur-attributes.json +8 -0
  461. package/vetur-tags.json +3 -1
  462. package/web-types.json +28 -1
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2020 PrimeTek
3
+ Copyright (c) 2018-2022 PrimeTek
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,9 +1,156 @@
1
1
 
2
2
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
3
  [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue)
4
+ [![Discord Chat](https://img.shields.io/discord/557940238991753223.svg?color=7289da&label=chat&logo=discord)](https://discord.gg/gzKFYnpmCY)
4
5
 
5
- [![PrimeVue Hero](https://www.primefaces.org/wp-content/uploads/2020/08/primevue-promo.jpg)](https://www.primefaces.org/primevue)
6
+ [![PrimeVue Hero](https://www.primefaces.org/wp-content/uploads/2020/08/primevue-promo.jpg)](https://www.primefaces.org/primevue-v2/#/)
6
7
 
7
- ### Website
8
+ # PrimeVue
8
9
 
9
- Visit the [PrimeVue Website](https://www.primefaces.org/primevue/) for general information, demos and documentation.
10
+ Visit the [PrimeVue Website](https://www.primefaces.org/primevue-v2/#/) for general information, demos and documentation.
11
+
12
+ ## Downloads
13
+
14
+ PrimeVue is available at npm, if you have an existing application run the following command to download it to your project.
15
+
16
+ ````
17
+ npm install primevue@^2 --save
18
+ npm install primeicons --save
19
+ ````
20
+
21
+ or
22
+
23
+ ```
24
+ yarn add primevue@^2
25
+ yarn add primeicons
26
+ ```
27
+
28
+ ## Import
29
+
30
+ ### Module
31
+
32
+ ```javascript
33
+ import PrimeVue from 'primevue/config';
34
+ import Dialog from 'primevue/dialog';
35
+
36
+ Vue.component('Dialog', Dialog);
37
+ Vue.use(PrimeVue);
38
+ ```
39
+
40
+ Finally you'll be able to utilize the component in your application. See the Styles section to apply styling.
41
+
42
+ ```vue
43
+ <Dialog></Dialog>
44
+ ```
45
+
46
+ ## Script Tag
47
+
48
+ Other alternative is utilizing the components directly within the browser with the ***iife*** build. Note that PrimeVue does not provide a ***umd*** build.
49
+
50
+ ```javascript
51
+ <html>
52
+ <head>
53
+ <meta charset="utf-8">
54
+ <title>calendar demo</title>
55
+ <link href="https://unpkg.com/primevue^2/resources/themes/saga-blue/theme.css " rel="stylesheet">
56
+ <link href="https://unpkg.com/primevue^2/resources/primevue.min.css " rel="stylesheet">
57
+ <link href="https://unpkg.com/primeicons/primeicons.css " rel="stylesheet">
58
+ <script src="https://unpkg.com/vue"></script>
59
+ <script src="https://unpkg.com/primevue^2/calendar/calendar.umd.min.js"></script>
60
+
61
+ <div id="app">
62
+ <p-calendar></p-calendar>
63
+ </div>
64
+
65
+ <script>
66
+ new Vue({
67
+ components: {
68
+ 'p-calendar': calendar
69
+ }
70
+ }).$mount('#app')
71
+ </script>
72
+
73
+ </head>
74
+ </html>
75
+ ```
76
+
77
+ ## Configuration
78
+
79
+ ### Dependencies
80
+
81
+ Majority of PrimeVue components (95%) are native and there are some exceptions having 3rd party dependencies such as Quill for Editor.
82
+
83
+ In addition, components require PrimeIcons library for icons.
84
+
85
+ ```javascript
86
+ dependencies: {
87
+ "vue": "^2.6.10",
88
+ "primeicons": "^6.0.0"
89
+ }
90
+ ```
91
+
92
+ ## Styles
93
+
94
+ The css dependencies are as follows, note that you may change the theme with another one of your choice.
95
+
96
+ ```css
97
+ primevue/resources/themes/saga-blue/theme.css //theme
98
+ primevue/resources/primevue.min.css //core css
99
+ primeicons/primeicons.css //icons
100
+ ```
101
+
102
+ If you are using a bundler such as webpack with a css loader you may also import them to your main application component.
103
+
104
+ ```javascript
105
+ import 'primevue/resources/themes/lara-light-indigo/theme.css';
106
+ import 'primevue/resources/primevue.min.css';
107
+ import 'primeicons/primeicons.css';
108
+ ```
109
+
110
+ ## Nuxt Integration
111
+
112
+ PrimeVue has a built-in nuxt module. Open ***nuxt.config.js*** and add ***primevue/nuxt*** to the modules section along with your configuration.
113
+
114
+ **nuxt.config.js**
115
+
116
+ Open the nuxt configuration file and add the css dependencies.
117
+
118
+ ```javascript
119
+ modules: [
120
+ [
121
+ 'primevue/nuxt', {
122
+ theme: string, //name of the theme, defaults to saga-blue
123
+ ripple: boolean, //whether the ripple animation is enabled, defaults to false
124
+ components: [], //an array of components to be registered
125
+ directives: [] //an array of directives to be registered
126
+ }
127
+ ]
128
+ ]
129
+ ```
130
+
131
+ Here is an example configuration.
132
+
133
+ ```javascript
134
+ modules: [
135
+ [
136
+ 'primevue/nuxt', {
137
+ theme: 'md-light-indigo',
138
+ ripple: true,
139
+ components: ['InputText','Button','DataTable','Dialog'],
140
+ directives: ['Tooltip','Badge']
141
+ }
142
+ ]
143
+ ]
144
+ ```
145
+
146
+ An alternative configuration is possible using the ***primevue*** property.
147
+
148
+ ```javascript
149
+ modules: ['primevue/nuxt'],
150
+ primevue: {
151
+ theme: 'md-light-indigo',
152
+ ripple: true,
153
+ components: ['InputText','Button','DataTable','Dialog'],
154
+ directives: ['Tooltip','Badge']
155
+ }
156
+ ```
@@ -99,22 +99,6 @@ module.exports = Object.keys || function keys(O) {
99
99
  };
100
100
 
101
101
 
102
- /***/ }),
103
-
104
- /***/ "0ebd":
105
- /***/ (function(module, exports, __webpack_require__) {
106
-
107
- // style-loader: Adds some css to the DOM by adding a <style> tag
108
-
109
- // load the styles
110
- var content = __webpack_require__("ab8f");
111
- if(content.__esModule) content = content.default;
112
- if(typeof content === 'string') content = [[module.i, content, '']];
113
- if(content.locals) module.exports = content.locals;
114
- // add the styles to the DOM
115
- var add = __webpack_require__("499e").default
116
- var update = add("f1715108", content, true, {"sourceMap":false,"shadowMode":false});
117
-
118
102
  /***/ }),
119
103
 
120
104
  /***/ "11e9":
@@ -376,6 +360,17 @@ module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
376
360
  };
377
361
 
378
362
 
363
+ /***/ }),
364
+
365
+ /***/ "3c2f":
366
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
367
+
368
+ "use strict";
369
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Accordion_vue_vue_type_style_index_0_id_75d59bb8_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("59c7");
370
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Accordion_vue_vue_type_style_index_0_id_75d59bb8_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Accordion_vue_vue_type_style_index_0_id_75d59bb8_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
371
+ /* unused harmony reexport * */
372
+
373
+
379
374
  /***/ }),
380
375
 
381
376
  /***/ "4588":
@@ -697,6 +692,22 @@ var store = global[SHARED] || (global[SHARED] = {});
697
692
  });
698
693
 
699
694
 
695
+ /***/ }),
696
+
697
+ /***/ "59c7":
698
+ /***/ (function(module, exports, __webpack_require__) {
699
+
700
+ // style-loader: Adds some css to the DOM by adding a <style> tag
701
+
702
+ // load the styles
703
+ var content = __webpack_require__("a676");
704
+ if(content.__esModule) content = content.default;
705
+ if(typeof content === 'string') content = [[module.i, content, '']];
706
+ if(content.locals) module.exports = content.locals;
707
+ // add the styles to the DOM
708
+ var add = __webpack_require__("499e").default
709
+ var update = add("015fff73", content, true, {"sourceMap":false,"shadowMode":false});
710
+
700
711
  /***/ }),
701
712
 
702
713
  /***/ "5ca1":
@@ -1001,6 +1012,21 @@ module.exports = !__webpack_require__("79e5")(function () {
1001
1012
  });
1002
1013
 
1003
1014
 
1015
+ /***/ }),
1016
+
1017
+ /***/ "a676":
1018
+ /***/ (function(module, exports, __webpack_require__) {
1019
+
1020
+ exports = module.exports = __webpack_require__("2350")(false);
1021
+ // imports
1022
+
1023
+
1024
+ // module
1025
+ exports.push([module.i, ".p-accordion-header-link{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}", ""]);
1026
+
1027
+ // exports
1028
+
1029
+
1004
1030
  /***/ }),
1005
1031
 
1006
1032
  /***/ "aa77":
@@ -1038,21 +1064,6 @@ var trim = exporter.trim = function (string, TYPE) {
1038
1064
  module.exports = exporter;
1039
1065
 
1040
1066
 
1041
- /***/ }),
1042
-
1043
- /***/ "ab8f":
1044
- /***/ (function(module, exports, __webpack_require__) {
1045
-
1046
- exports = module.exports = __webpack_require__("2350")(false);
1047
- // imports
1048
-
1049
-
1050
- // module
1051
- exports.push([module.i, ".p-accordion-header-link{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}", ""]);
1052
-
1053
- // exports
1054
-
1055
-
1056
1067
  /***/ }),
1057
1068
 
1058
1069
  /***/ "be13":
@@ -1262,17 +1273,6 @@ module.exports = (
1262
1273
  ).split(',');
1263
1274
 
1264
1275
 
1265
- /***/ }),
1266
-
1267
- /***/ "ee80":
1268
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1269
-
1270
- "use strict";
1271
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Accordion_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0ebd");
1272
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Accordion_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Accordion_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
1273
- /* unused harmony reexport * */
1274
-
1275
-
1276
1276
  /***/ }),
1277
1277
 
1278
1278
  /***/ "f6fd":
@@ -1359,10 +1359,15 @@ if (typeof window !== 'undefined') {
1359
1359
  // Indicate to webpack that this file can be concatenated
1360
1360
  /* harmony default export */ var setPublicPath = (null);
1361
1361
 
1362
- // 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/accordion/Accordion.vue?vue&type=template&id=75d59bb8&
1363
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"p-accordion p-component"},[_vm._t("default")],2)}
1364
- var staticRenderFns = []
1365
-
1362
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./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/accordion/Accordion.vue?vue&type=template&id=75d59bb8&
1363
+ var render = function render() {
1364
+ var _vm = this,
1365
+ _c = _vm._self._c;
1366
+ return _c('div', {
1367
+ staticClass: "p-accordion p-component"
1368
+ }, [_vm._t("default")], 2);
1369
+ };
1370
+ var staticRenderFns = [];
1366
1371
 
1367
1372
  // CONCATENATED MODULE: ./src/components/accordion/Accordion.vue?vue&type=template&id=75d59bb8&
1368
1373
 
@@ -1371,12 +1376,6 @@ var es6_number_constructor = __webpack_require__("c5f6");
1371
1376
 
1372
1377
  // 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/accordion/Accordion.vue?vue&type=script&lang=js&
1373
1378
 
1374
- //
1375
- //
1376
- //
1377
- //
1378
- //
1379
- //
1380
1379
  /* harmony default export */ var Accordionvue_type_script_lang_js_ = ({
1381
1380
  props: {
1382
1381
  multiple: Boolean,
@@ -1403,10 +1402,8 @@ var es6_number_constructor = __webpack_require__("c5f6");
1403
1402
  methods: {
1404
1403
  onToggle: function onToggle(event, tab, index, isActive) {
1405
1404
  var eventName = isActive ? 'tab-close' : 'tab-open';
1406
-
1407
1405
  if (this.multiple) {
1408
1406
  var x = this.d_activeIndex;
1409
-
1410
1407
  if (x && x.some(function (i) {
1411
1408
  return i === index;
1412
1409
  })) {
@@ -1417,7 +1414,6 @@ var es6_number_constructor = __webpack_require__("c5f6");
1417
1414
  } else {
1418
1415
  index === this.d_activeIndex ? this.d_activeIndex = null : this.d_activeIndex = index;
1419
1416
  }
1420
-
1421
1417
  this.$emit('update:activeIndex', this.d_activeIndex);
1422
1418
  this.$emit(eventName, {
1423
1419
  originalEvent: event,
@@ -1428,8 +1424,8 @@ var es6_number_constructor = __webpack_require__("c5f6");
1428
1424
  });
1429
1425
  // CONCATENATED MODULE: ./src/components/accordion/Accordion.vue?vue&type=script&lang=js&
1430
1426
  /* harmony default export */ var accordion_Accordionvue_type_script_lang_js_ = (Accordionvue_type_script_lang_js_);
1431
- // EXTERNAL MODULE: ./src/components/accordion/Accordion.vue?vue&type=style&index=0&lang=css&
1432
- var Accordionvue_type_style_index_0_lang_css_ = __webpack_require__("ee80");
1427
+ // EXTERNAL MODULE: ./src/components/accordion/Accordion.vue?vue&type=style&index=0&id=75d59bb8&prod&lang=css&
1428
+ var Accordionvue_type_style_index_0_id_75d59bb8_prod_lang_css_ = __webpack_require__("3c2f");
1433
1429
 
1434
1430
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1435
1431
  /* globals __VUE_SSR_CONTEXT__ */
@@ -1438,20 +1434,19 @@ var Accordionvue_type_style_index_0_lang_css_ = __webpack_require__("ee80");
1438
1434
  // This module is a runtime utility for cleaner component module output and will
1439
1435
  // be included in the final webpack user bundle.
1440
1436
 
1441
- function normalizeComponent (
1437
+ function normalizeComponent(
1442
1438
  scriptExports,
1443
1439
  render,
1444
1440
  staticRenderFns,
1445
1441
  functionalTemplate,
1446
1442
  injectStyles,
1447
1443
  scopeId,
1448
- moduleIdentifier, /* server only */
1444
+ moduleIdentifier /* server only */,
1449
1445
  shadowMode /* vue-cli only */
1450
1446
  ) {
1451
1447
  // Vue.extend constructor export interop
1452
- var options = typeof scriptExports === 'function'
1453
- ? scriptExports.options
1454
- : scriptExports
1448
+ var options =
1449
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1455
1450
 
1456
1451
  // render functions
1457
1452
  if (render) {
@@ -1471,7 +1466,8 @@ function normalizeComponent (
1471
1466
  }
1472
1467
 
1473
1468
  var hook
1474
- if (moduleIdentifier) { // server build
1469
+ if (moduleIdentifier) {
1470
+ // server build
1475
1471
  hook = function (context) {
1476
1472
  // 2.3 injection
1477
1473
  context =
@@ -1497,11 +1493,11 @@ function normalizeComponent (
1497
1493
  } else if (injectStyles) {
1498
1494
  hook = shadowMode
1499
1495
  ? function () {
1500
- injectStyles.call(
1501
- this,
1502
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1503
- )
1504
- }
1496
+ injectStyles.call(
1497
+ this,
1498
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
1499
+ )
1500
+ }
1505
1501
  : injectStyles
1506
1502
  }
1507
1503
 
@@ -1512,16 +1508,14 @@ function normalizeComponent (
1512
1508
  options._injectStyles = hook
1513
1509
  // register for functional component in vue file
1514
1510
  var originalRender = options.render
1515
- options.render = function renderWithStyleInjection (h, context) {
1511
+ options.render = function renderWithStyleInjection(h, context) {
1516
1512
  hook.call(context)
1517
1513
  return originalRender(h, context)
1518
1514
  }
1519
1515
  } else {
1520
1516
  // inject component registration as beforeCreate hook
1521
1517
  var existing = options.beforeCreate
1522
- options.beforeCreate = existing
1523
- ? [].concat(existing, hook)
1524
- : [hook]
1518
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1525
1519
  }
1526
1520
  }
1527
1521