primevue 3.12.2 → 3.12.5

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 (596) hide show
  1. package/accordion/Accordion.d.ts +8 -0
  2. package/accordion/Accordion.vue +15 -5
  3. package/accordion/accordion.cjs.js +32 -20
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +34 -22
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +33 -21
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/accordiontab.esm.js +1 -1
  10. package/accordiontab/accordiontab.esm.min.js +1 -1
  11. package/accordiontab/accordiontab.js +1 -1
  12. package/api/api.js +1 -1
  13. package/autocomplete/autocomplete.cjs.js +61 -54
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +59 -52
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +62 -55
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/avatar.cjs.js +9 -6
  20. package/avatar/avatar.cjs.min.js +1 -1
  21. package/avatar/avatar.esm.js +11 -8
  22. package/avatar/avatar.esm.min.js +1 -1
  23. package/avatar/avatar.js +10 -7
  24. package/avatar/avatar.min.js +1 -1
  25. package/avatargroup/avatargroup.cjs.js +1 -1
  26. package/avatargroup/avatargroup.cjs.min.js +1 -1
  27. package/avatargroup/avatargroup.esm.js +3 -3
  28. package/avatargroup/avatargroup.esm.min.js +1 -1
  29. package/avatargroup/avatargroup.js +2 -2
  30. package/avatargroup/avatargroup.min.js +1 -1
  31. package/badge/badge.cjs.js +3 -1
  32. package/badge/badge.cjs.min.js +1 -1
  33. package/badge/badge.esm.js +5 -3
  34. package/badge/badge.esm.min.js +1 -1
  35. package/badge/badge.js +4 -2
  36. package/badge/badge.min.js +1 -1
  37. package/badgedirective/badgedirective.esm.js +1 -1
  38. package/badgedirective/badgedirective.esm.min.js +1 -1
  39. package/badgedirective/badgedirective.js +1 -1
  40. package/blockui/blockui.cjs.js +1 -1
  41. package/blockui/blockui.cjs.min.js +1 -1
  42. package/blockui/blockui.esm.js +3 -3
  43. package/blockui/blockui.esm.min.js +1 -1
  44. package/blockui/blockui.js +2 -2
  45. package/blockui/blockui.min.js +1 -1
  46. package/breadcrumb/breadcrumb.cjs.js +25 -23
  47. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  48. package/breadcrumb/breadcrumb.esm.js +27 -25
  49. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  50. package/breadcrumb/breadcrumb.js +26 -24
  51. package/breadcrumb/breadcrumb.min.js +1 -1
  52. package/button/button.cjs.js +13 -12
  53. package/button/button.cjs.min.js +1 -1
  54. package/button/button.esm.js +14 -13
  55. package/button/button.esm.min.js +1 -1
  56. package/button/button.js +14 -13
  57. package/button/button.min.js +1 -1
  58. package/calendar/Calendar.vue +3 -0
  59. package/calendar/calendar.cjs.js +235 -207
  60. package/calendar/calendar.cjs.min.js +1 -1
  61. package/calendar/calendar.esm.js +234 -206
  62. package/calendar/calendar.esm.min.js +1 -1
  63. package/calendar/calendar.js +236 -208
  64. package/calendar/calendar.min.js +1 -1
  65. package/card/card.cjs.js +7 -7
  66. package/card/card.cjs.min.js +1 -1
  67. package/card/card.esm.js +9 -9
  68. package/card/card.esm.min.js +1 -1
  69. package/card/card.js +8 -8
  70. package/card/card.min.js +1 -1
  71. package/carousel/carousel.cjs.js +56 -48
  72. package/carousel/carousel.cjs.min.js +1 -1
  73. package/carousel/carousel.esm.js +57 -49
  74. package/carousel/carousel.esm.min.js +1 -1
  75. package/carousel/carousel.js +57 -49
  76. package/carousel/carousel.min.js +1 -1
  77. package/cascadeselect/cascadeselect.cjs.js +37 -30
  78. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  79. package/cascadeselect/cascadeselect.esm.js +37 -30
  80. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  81. package/cascadeselect/cascadeselect.js +38 -31
  82. package/cascadeselect/cascadeselect.min.js +1 -1
  83. package/chart/chart.cjs.js +7 -8
  84. package/chart/chart.cjs.min.js +1 -1
  85. package/chart/chart.esm.js +7 -6
  86. package/chart/chart.esm.min.js +1 -1
  87. package/chart/chart.js +6 -5
  88. package/chart/chart.min.js +1 -1
  89. package/checkbox/checkbox.cjs.js +16 -14
  90. package/checkbox/checkbox.cjs.min.js +1 -1
  91. package/checkbox/checkbox.esm.js +18 -16
  92. package/checkbox/checkbox.esm.min.js +1 -1
  93. package/checkbox/checkbox.js +17 -15
  94. package/checkbox/checkbox.min.js +1 -1
  95. package/chip/chip.cjs.js +13 -12
  96. package/chip/chip.cjs.min.js +1 -1
  97. package/chip/chip.esm.js +15 -14
  98. package/chip/chip.esm.min.js +1 -1
  99. package/chip/chip.js +14 -13
  100. package/chip/chip.min.js +1 -1
  101. package/chips/Chips.vue +1 -1
  102. package/chips/chips.cjs.js +23 -21
  103. package/chips/chips.cjs.min.js +1 -1
  104. package/chips/chips.esm.js +25 -23
  105. package/chips/chips.esm.min.js +1 -1
  106. package/chips/chips.js +24 -22
  107. package/chips/chips.min.js +1 -1
  108. package/colorpicker/colorpicker.cjs.js +28 -27
  109. package/colorpicker/colorpicker.cjs.min.js +1 -1
  110. package/colorpicker/colorpicker.esm.js +29 -28
  111. package/colorpicker/colorpicker.esm.min.js +1 -1
  112. package/colorpicker/colorpicker.js +29 -28
  113. package/colorpicker/colorpicker.min.js +1 -1
  114. package/column/column.esm.js +1 -1
  115. package/column/column.esm.min.js +1 -1
  116. package/column/column.js +1 -1
  117. package/columngroup/columngroup.esm.js +1 -1
  118. package/columngroup/columngroup.esm.min.js +1 -1
  119. package/columngroup/columngroup.js +1 -1
  120. package/config/config.cjs.js +1 -1
  121. package/config/config.esm.js +1 -2
  122. package/config/config.esm.min.js +1 -1
  123. package/config/config.js +2 -2
  124. package/confirmationeventbus/confirmationeventbus.esm.js +1 -1
  125. package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -1
  126. package/confirmationeventbus/confirmationeventbus.js +1 -1
  127. package/confirmationoptions/ConfirmationOptions.d.ts +8 -0
  128. package/confirmationservice/confirmationservice.cjs.js +2 -2
  129. package/confirmationservice/confirmationservice.esm.js +1 -1
  130. package/confirmationservice/confirmationservice.esm.min.js +1 -1
  131. package/confirmationservice/confirmationservice.js +3 -3
  132. package/confirmdialog/confirmdialog.cjs.js +15 -13
  133. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  134. package/confirmdialog/confirmdialog.esm.js +11 -9
  135. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  136. package/confirmdialog/confirmdialog.js +16 -14
  137. package/confirmdialog/confirmdialog.min.js +1 -1
  138. package/confirmpopup/ConfirmPopup.vue +2 -1
  139. package/confirmpopup/confirmpopup.cjs.js +20 -17
  140. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  141. package/confirmpopup/confirmpopup.esm.js +16 -13
  142. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  143. package/confirmpopup/confirmpopup.js +21 -18
  144. package/confirmpopup/confirmpopup.min.js +1 -1
  145. package/contextmenu/contextmenu.cjs.js +33 -30
  146. package/contextmenu/contextmenu.cjs.min.js +1 -1
  147. package/contextmenu/contextmenu.esm.js +34 -31
  148. package/contextmenu/contextmenu.esm.min.js +1 -1
  149. package/contextmenu/contextmenu.js +34 -31
  150. package/contextmenu/contextmenu.min.js +1 -1
  151. package/core/core.js +396 -334
  152. package/core/core.min.js +13 -13
  153. package/datatable/DataTable.d.ts +1 -1
  154. package/datatable/datatable.cjs.js +355 -328
  155. package/datatable/datatable.cjs.min.js +1 -1
  156. package/datatable/datatable.esm.js +345 -318
  157. package/datatable/datatable.esm.min.js +1 -1
  158. package/datatable/datatable.js +356 -329
  159. package/datatable/datatable.min.js +1 -1
  160. package/dataview/DataView.d.ts +4 -0
  161. package/dataview/DataView.vue +8 -1
  162. package/dataview/dataview.cjs.js +26 -15
  163. package/dataview/dataview.cjs.min.js +1 -1
  164. package/dataview/dataview.esm.js +27 -16
  165. package/dataview/dataview.esm.min.js +1 -1
  166. package/dataview/dataview.js +27 -16
  167. package/dataview/dataview.min.js +1 -1
  168. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +17 -15
  169. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  170. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -17
  171. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  172. package/dataviewlayoutoptions/dataviewlayoutoptions.js +18 -16
  173. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  174. package/deferredcontent/deferredcontent.cjs.js +1 -1
  175. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  176. package/deferredcontent/deferredcontent.esm.js +3 -3
  177. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  178. package/deferredcontent/deferredcontent.js +2 -2
  179. package/deferredcontent/deferredcontent.min.js +1 -1
  180. package/dialog/dialog.cjs.js +33 -27
  181. package/dialog/dialog.cjs.min.js +1 -1
  182. package/dialog/dialog.esm.js +34 -28
  183. package/dialog/dialog.esm.min.js +1 -1
  184. package/dialog/dialog.js +34 -28
  185. package/dialog/dialog.min.js +1 -1
  186. package/divider/divider.cjs.js +3 -3
  187. package/divider/divider.cjs.min.js +1 -1
  188. package/divider/divider.esm.js +5 -5
  189. package/divider/divider.esm.min.js +1 -1
  190. package/divider/divider.js +4 -4
  191. package/divider/divider.min.js +1 -1
  192. package/dock/dock.cjs.js +26 -23
  193. package/dock/dock.cjs.min.js +1 -1
  194. package/dock/dock.esm.js +26 -23
  195. package/dock/dock.esm.min.js +1 -1
  196. package/dock/dock.js +27 -24
  197. package/dock/dock.min.js +1 -1
  198. package/dropdown/dropdown.cjs.js +67 -59
  199. package/dropdown/dropdown.cjs.min.js +1 -1
  200. package/dropdown/dropdown.esm.js +66 -58
  201. package/dropdown/dropdown.esm.min.js +1 -1
  202. package/dropdown/dropdown.js +68 -60
  203. package/dropdown/dropdown.min.js +1 -1
  204. package/editor/editor.cjs.js +22 -22
  205. package/editor/editor.cjs.min.js +1 -1
  206. package/editor/editor.esm.js +23 -23
  207. package/editor/editor.esm.min.js +1 -1
  208. package/editor/editor.js +23 -23
  209. package/editor/editor.min.js +1 -1
  210. package/fieldset/fieldset.cjs.js +22 -17
  211. package/fieldset/fieldset.cjs.min.js +1 -1
  212. package/fieldset/fieldset.esm.js +23 -18
  213. package/fieldset/fieldset.esm.min.js +1 -1
  214. package/fieldset/fieldset.js +23 -18
  215. package/fieldset/fieldset.min.js +1 -1
  216. package/fileupload/fileupload.cjs.js +64 -59
  217. package/fileupload/fileupload.cjs.min.js +1 -1
  218. package/fileupload/fileupload.esm.js +62 -57
  219. package/fileupload/fileupload.esm.min.js +1 -1
  220. package/fileupload/fileupload.js +65 -60
  221. package/fileupload/fileupload.min.js +1 -1
  222. package/fullcalendar/fullcalendar.cjs.js +1 -31
  223. package/fullcalendar/fullcalendar.cjs.min.js +1 -1
  224. package/fullcalendar/fullcalendar.esm.js +3 -33
  225. package/fullcalendar/fullcalendar.esm.min.js +1 -1
  226. package/fullcalendar/fullcalendar.js +2 -32
  227. package/fullcalendar/fullcalendar.min.js +1 -1
  228. package/galleria/galleria.cjs.js +92 -78
  229. package/galleria/galleria.cjs.min.js +1 -1
  230. package/galleria/galleria.esm.js +91 -77
  231. package/galleria/galleria.esm.min.js +1 -1
  232. package/galleria/galleria.js +93 -79
  233. package/galleria/galleria.min.js +1 -1
  234. package/image/image.cjs.js +55 -47
  235. package/image/image.cjs.min.js +1 -1
  236. package/image/image.esm.js +57 -49
  237. package/image/image.esm.min.js +1 -1
  238. package/image/image.js +56 -48
  239. package/image/image.min.js +1 -1
  240. package/inlinemessage/inlinemessage.cjs.js +6 -4
  241. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  242. package/inlinemessage/inlinemessage.esm.js +8 -6
  243. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  244. package/inlinemessage/inlinemessage.js +7 -5
  245. package/inlinemessage/inlinemessage.min.js +1 -1
  246. package/inplace/inplace.cjs.js +12 -9
  247. package/inplace/inplace.cjs.min.js +1 -1
  248. package/inplace/inplace.esm.js +13 -10
  249. package/inplace/inplace.esm.min.js +1 -1
  250. package/inplace/inplace.js +13 -10
  251. package/inplace/inplace.min.js +1 -1
  252. package/inputmask/inputmask.cjs.js +7 -7
  253. package/inputmask/inputmask.cjs.min.js +1 -1
  254. package/inputmask/inputmask.esm.js +9 -9
  255. package/inputmask/inputmask.esm.min.js +1 -1
  256. package/inputmask/inputmask.js +8 -8
  257. package/inputmask/inputmask.min.js +1 -1
  258. package/inputnumber/inputnumber.cjs.js +6 -6
  259. package/inputnumber/inputnumber.cjs.min.js +1 -1
  260. package/inputnumber/inputnumber.esm.js +6 -6
  261. package/inputnumber/inputnumber.esm.min.js +1 -1
  262. package/inputnumber/inputnumber.js +7 -7
  263. package/inputnumber/inputnumber.min.js +1 -1
  264. package/inputswitch/inputswitch.cjs.js +13 -12
  265. package/inputswitch/inputswitch.cjs.min.js +1 -1
  266. package/inputswitch/inputswitch.esm.js +15 -14
  267. package/inputswitch/inputswitch.esm.min.js +1 -1
  268. package/inputswitch/inputswitch.js +14 -13
  269. package/inputswitch/inputswitch.min.js +1 -1
  270. package/inputtext/inputtext.cjs.js +5 -3
  271. package/inputtext/inputtext.cjs.min.js +1 -1
  272. package/inputtext/inputtext.esm.js +7 -5
  273. package/inputtext/inputtext.esm.min.js +1 -1
  274. package/inputtext/inputtext.js +6 -4
  275. package/inputtext/inputtext.min.js +1 -1
  276. package/knob/knob.cjs.js +21 -14
  277. package/knob/knob.cjs.min.js +1 -1
  278. package/knob/knob.esm.js +23 -16
  279. package/knob/knob.esm.min.js +1 -1
  280. package/knob/knob.js +22 -15
  281. package/knob/knob.min.js +1 -1
  282. package/listbox/listbox.cjs.js +37 -34
  283. package/listbox/listbox.cjs.min.js +1 -1
  284. package/listbox/listbox.esm.js +37 -34
  285. package/listbox/listbox.esm.min.js +1 -1
  286. package/listbox/listbox.js +38 -35
  287. package/listbox/listbox.min.js +1 -1
  288. package/megamenu/megamenu.cjs.js +73 -66
  289. package/megamenu/megamenu.cjs.min.js +1 -1
  290. package/megamenu/megamenu.esm.js +74 -67
  291. package/megamenu/megamenu.esm.min.js +1 -1
  292. package/megamenu/megamenu.js +74 -67
  293. package/megamenu/megamenu.min.js +1 -1
  294. package/menu/Menu.vue +4 -1
  295. package/menu/menu.cjs.js +41 -36
  296. package/menu/menu.cjs.min.js +1 -1
  297. package/menu/menu.esm.js +41 -36
  298. package/menu/menu.esm.min.js +1 -1
  299. package/menu/menu.js +42 -37
  300. package/menu/menu.min.js +1 -1
  301. package/menubar/menubar.cjs.js +47 -40
  302. package/menubar/menubar.cjs.min.js +1 -1
  303. package/menubar/menubar.esm.js +48 -41
  304. package/menubar/menubar.esm.min.js +1 -1
  305. package/menubar/menubar.js +48 -41
  306. package/menubar/menubar.min.js +1 -1
  307. package/message/message.cjs.js +15 -12
  308. package/message/message.cjs.min.js +1 -1
  309. package/message/message.esm.js +16 -13
  310. package/message/message.esm.min.js +1 -1
  311. package/message/message.js +16 -13
  312. package/message/message.min.js +1 -1
  313. package/multiselect/multiselect.cjs.js +106 -94
  314. package/multiselect/multiselect.cjs.min.js +1 -1
  315. package/multiselect/multiselect.esm.js +105 -93
  316. package/multiselect/multiselect.esm.min.js +1 -1
  317. package/multiselect/multiselect.js +107 -95
  318. package/multiselect/multiselect.min.js +1 -1
  319. package/orderlist/OrderList.vue +4 -4
  320. package/orderlist/orderlist.cjs.js +19 -16
  321. package/orderlist/orderlist.cjs.min.js +1 -1
  322. package/orderlist/orderlist.esm.js +19 -16
  323. package/orderlist/orderlist.esm.min.js +1 -1
  324. package/orderlist/orderlist.js +20 -17
  325. package/orderlist/orderlist.min.js +1 -1
  326. package/organizationchart/organizationchart.cjs.js +42 -37
  327. package/organizationchart/organizationchart.cjs.min.js +1 -1
  328. package/organizationchart/organizationchart.esm.js +44 -39
  329. package/organizationchart/organizationchart.esm.min.js +1 -1
  330. package/organizationchart/organizationchart.js +43 -38
  331. package/organizationchart/organizationchart.min.js +1 -1
  332. package/overlayeventbus/overlayeventbus.esm.js +1 -1
  333. package/overlayeventbus/overlayeventbus.esm.min.js +1 -1
  334. package/overlayeventbus/overlayeventbus.js +1 -1
  335. package/overlaypanel/overlaypanel.cjs.js +18 -16
  336. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  337. package/overlaypanel/overlaypanel.esm.js +15 -13
  338. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  339. package/overlaypanel/overlaypanel.js +19 -17
  340. package/overlaypanel/overlaypanel.min.js +1 -1
  341. package/package.json +1 -1
  342. package/paginator/paginator.cjs.js +59 -54
  343. package/paginator/paginator.cjs.min.js +1 -1
  344. package/paginator/paginator.esm.js +53 -48
  345. package/paginator/paginator.esm.min.js +1 -1
  346. package/paginator/paginator.js +60 -55
  347. package/paginator/paginator.min.js +1 -1
  348. package/panel/panel.cjs.js +21 -16
  349. package/panel/panel.cjs.min.js +1 -1
  350. package/panel/panel.esm.js +22 -17
  351. package/panel/panel.esm.min.js +1 -1
  352. package/panel/panel.js +22 -17
  353. package/panel/panel.min.js +1 -1
  354. package/panelmenu/panelmenu.cjs.js +62 -57
  355. package/panelmenu/panelmenu.cjs.min.js +1 -1
  356. package/panelmenu/panelmenu.esm.js +64 -59
  357. package/panelmenu/panelmenu.esm.min.js +1 -1
  358. package/panelmenu/panelmenu.js +63 -58
  359. package/panelmenu/panelmenu.min.js +1 -1
  360. package/password/Password.vue +1 -1
  361. package/password/password.cjs.js +17 -17
  362. package/password/password.cjs.min.js +1 -1
  363. package/password/password.esm.js +17 -17
  364. package/password/password.esm.min.js +1 -1
  365. package/password/password.js +18 -18
  366. package/password/password.min.js +1 -1
  367. package/picklist/picklist.cjs.js +38 -34
  368. package/picklist/picklist.cjs.min.js +1 -1
  369. package/picklist/picklist.esm.js +38 -34
  370. package/picklist/picklist.esm.min.js +1 -1
  371. package/picklist/picklist.js +39 -35
  372. package/picklist/picklist.min.js +1 -1
  373. package/progressbar/progressbar.cjs.js +14 -12
  374. package/progressbar/progressbar.cjs.min.js +1 -1
  375. package/progressbar/progressbar.esm.js +16 -14
  376. package/progressbar/progressbar.esm.min.js +1 -1
  377. package/progressbar/progressbar.js +15 -13
  378. package/progressbar/progressbar.min.js +1 -1
  379. package/progressspinner/progressspinner.cjs.js +6 -5
  380. package/progressspinner/progressspinner.cjs.min.js +1 -1
  381. package/progressspinner/progressspinner.esm.js +8 -7
  382. package/progressspinner/progressspinner.esm.min.js +1 -1
  383. package/progressspinner/progressspinner.js +7 -6
  384. package/progressspinner/progressspinner.min.js +1 -1
  385. package/radiobutton/radiobutton.cjs.js +18 -15
  386. package/radiobutton/radiobutton.cjs.min.js +1 -1
  387. package/radiobutton/radiobutton.esm.js +20 -17
  388. package/radiobutton/radiobutton.esm.min.js +1 -1
  389. package/radiobutton/radiobutton.js +19 -16
  390. package/radiobutton/radiobutton.min.js +1 -1
  391. package/rating/Rating.vue +1 -1
  392. package/rating/rating.cjs.js +14 -9
  393. package/rating/rating.cjs.min.js +1 -1
  394. package/rating/rating.esm.js +16 -11
  395. package/rating/rating.esm.min.js +1 -1
  396. package/rating/rating.js +15 -10
  397. package/rating/rating.min.js +1 -1
  398. package/resources/primevue.css +5 -3
  399. package/resources/primevue.min.css +1 -1
  400. package/ripple/ripple.esm.js +1 -1
  401. package/ripple/ripple.esm.min.js +1 -1
  402. package/ripple/ripple.js +1 -1
  403. package/row/row.esm.js +1 -1
  404. package/row/row.esm.min.js +1 -1
  405. package/row/row.js +1 -1
  406. package/scrollpanel/scrollpanel.cjs.js +9 -9
  407. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  408. package/scrollpanel/scrollpanel.esm.js +11 -11
  409. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  410. package/scrollpanel/scrollpanel.js +10 -10
  411. package/scrollpanel/scrollpanel.min.js +1 -1
  412. package/scrolltop/ScrollTop.vue +1 -1
  413. package/scrolltop/scrolltop.cjs.js +7 -5
  414. package/scrolltop/scrolltop.cjs.min.js +1 -1
  415. package/scrolltop/scrolltop.esm.js +9 -7
  416. package/scrolltop/scrolltop.esm.min.js +1 -1
  417. package/scrolltop/scrolltop.js +8 -6
  418. package/scrolltop/scrolltop.min.js +1 -1
  419. package/selectbutton/selectbutton.cjs.js +12 -11
  420. package/selectbutton/selectbutton.cjs.min.js +1 -1
  421. package/selectbutton/selectbutton.esm.js +13 -12
  422. package/selectbutton/selectbutton.esm.min.js +1 -1
  423. package/selectbutton/selectbutton.js +13 -12
  424. package/selectbutton/selectbutton.min.js +1 -1
  425. package/sidebar/sidebar.cjs.js +16 -13
  426. package/sidebar/sidebar.cjs.min.js +1 -1
  427. package/sidebar/sidebar.esm.js +17 -14
  428. package/sidebar/sidebar.esm.min.js +1 -1
  429. package/sidebar/sidebar.js +17 -14
  430. package/sidebar/sidebar.min.js +1 -1
  431. package/skeleton/skeleton.cjs.js +3 -3
  432. package/skeleton/skeleton.cjs.min.js +1 -1
  433. package/skeleton/skeleton.esm.js +5 -5
  434. package/skeleton/skeleton.esm.min.js +1 -1
  435. package/skeleton/skeleton.js +4 -4
  436. package/skeleton/skeleton.min.js +1 -1
  437. package/slider/slider.cjs.js +33 -29
  438. package/slider/slider.cjs.min.js +1 -1
  439. package/slider/slider.esm.js +35 -31
  440. package/slider/slider.esm.min.js +1 -1
  441. package/slider/slider.js +34 -30
  442. package/slider/slider.min.js +1 -1
  443. package/speeddial/speeddial.cjs.js +23 -21
  444. package/speeddial/speeddial.cjs.min.js +1 -1
  445. package/speeddial/speeddial.esm.js +22 -20
  446. package/speeddial/speeddial.esm.min.js +1 -1
  447. package/speeddial/speeddial.js +24 -22
  448. package/speeddial/speeddial.min.js +1 -1
  449. package/splitbutton/splitbutton.cjs.js +7 -9
  450. package/splitbutton/splitbutton.cjs.min.js +1 -1
  451. package/splitbutton/splitbutton.esm.js +7 -9
  452. package/splitbutton/splitbutton.esm.min.js +1 -1
  453. package/splitbutton/splitbutton.js +8 -10
  454. package/splitbutton/splitbutton.min.js +1 -1
  455. package/splitter/splitter.cjs.js +13 -9
  456. package/splitter/splitter.cjs.min.js +1 -1
  457. package/splitter/splitter.esm.js +15 -11
  458. package/splitter/splitter.esm.min.js +1 -1
  459. package/splitter/splitter.js +14 -10
  460. package/splitter/splitter.min.js +1 -1
  461. package/splitterpanel/splitterpanel.cjs.js +2 -2
  462. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  463. package/splitterpanel/splitterpanel.esm.js +4 -4
  464. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  465. package/splitterpanel/splitterpanel.js +3 -3
  466. package/splitterpanel/splitterpanel.min.js +1 -1
  467. package/steps/steps.cjs.js +28 -25
  468. package/steps/steps.cjs.min.js +1 -1
  469. package/steps/steps.esm.js +30 -27
  470. package/steps/steps.esm.min.js +1 -1
  471. package/steps/steps.js +29 -26
  472. package/steps/steps.min.js +1 -1
  473. package/styleclass/styleclass.cjs.js +11 -2
  474. package/styleclass/styleclass.cjs.min.js +1 -1
  475. package/styleclass/styleclass.esm.js +12 -3
  476. package/styleclass/styleclass.esm.min.js +1 -1
  477. package/styleclass/styleclass.js +12 -3
  478. package/styleclass/styleclass.min.js +1 -1
  479. package/tabmenu/tabmenu.cjs.js +25 -23
  480. package/tabmenu/tabmenu.cjs.min.js +1 -1
  481. package/tabmenu/tabmenu.esm.js +26 -24
  482. package/tabmenu/tabmenu.esm.min.js +1 -1
  483. package/tabmenu/tabmenu.js +26 -24
  484. package/tabmenu/tabmenu.min.js +1 -1
  485. package/tabpanel/tabpanel.esm.js +1 -1
  486. package/tabpanel/tabpanel.esm.min.js +1 -1
  487. package/tabpanel/tabpanel.js +1 -1
  488. package/tabview/tabview.cjs.js +41 -36
  489. package/tabview/tabview.cjs.min.js +1 -1
  490. package/tabview/tabview.esm.js +42 -37
  491. package/tabview/tabview.esm.min.js +1 -1
  492. package/tabview/tabview.js +42 -37
  493. package/tabview/tabview.min.js +1 -1
  494. package/tag/tag.cjs.js +4 -4
  495. package/tag/tag.cjs.min.js +1 -1
  496. package/tag/tag.esm.js +6 -6
  497. package/tag/tag.esm.min.js +1 -1
  498. package/tag/tag.js +5 -5
  499. package/tag/tag.min.js +1 -1
  500. package/terminal/terminal.cjs.js +17 -17
  501. package/terminal/terminal.cjs.min.js +1 -1
  502. package/terminal/terminal.esm.js +16 -16
  503. package/terminal/terminal.esm.min.js +1 -1
  504. package/terminal/terminal.js +18 -18
  505. package/terminal/terminal.min.js +1 -1
  506. package/terminalservice/terminalservice.esm.js +1 -1
  507. package/terminalservice/terminalservice.esm.min.js +1 -1
  508. package/terminalservice/terminalservice.js +1 -1
  509. package/textarea/textarea.cjs.js +5 -3
  510. package/textarea/textarea.cjs.min.js +1 -1
  511. package/textarea/textarea.esm.js +7 -5
  512. package/textarea/textarea.esm.min.js +1 -1
  513. package/textarea/textarea.js +6 -4
  514. package/textarea/textarea.min.js +1 -1
  515. package/tieredmenu/tieredmenu.cjs.js +35 -32
  516. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  517. package/tieredmenu/tieredmenu.esm.js +35 -32
  518. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  519. package/tieredmenu/tieredmenu.js +36 -33
  520. package/tieredmenu/tieredmenu.min.js +1 -1
  521. package/timeline/Timeline.d.ts +1 -1
  522. package/timeline/timeline.cjs.js +10 -8
  523. package/timeline/timeline.cjs.min.js +1 -1
  524. package/timeline/timeline.esm.js +12 -10
  525. package/timeline/timeline.esm.min.js +1 -1
  526. package/timeline/timeline.js +11 -9
  527. package/timeline/timeline.min.js +1 -1
  528. package/toast/Toast.vue +2 -2
  529. package/toast/toast.cjs.js +29 -26
  530. package/toast/toast.cjs.min.js +1 -1
  531. package/toast/toast.esm.js +25 -22
  532. package/toast/toast.esm.min.js +1 -1
  533. package/toast/toast.js +30 -27
  534. package/toast/toast.min.js +1 -1
  535. package/toasteventbus/toasteventbus.esm.js +1 -1
  536. package/toasteventbus/toasteventbus.esm.min.js +1 -1
  537. package/toasteventbus/toasteventbus.js +1 -1
  538. package/toastservice/toastservice.cjs.js +3 -3
  539. package/toastservice/toastservice.esm.js +1 -1
  540. package/toastservice/toastservice.esm.min.js +1 -1
  541. package/toastservice/toastservice.js +4 -4
  542. package/togglebutton/togglebutton.cjs.js +10 -9
  543. package/togglebutton/togglebutton.cjs.min.js +1 -1
  544. package/togglebutton/togglebutton.esm.js +11 -10
  545. package/togglebutton/togglebutton.esm.min.js +1 -1
  546. package/togglebutton/togglebutton.js +11 -10
  547. package/togglebutton/togglebutton.min.js +1 -1
  548. package/toolbar/toolbar.cjs.js +3 -3
  549. package/toolbar/toolbar.cjs.min.js +1 -1
  550. package/toolbar/toolbar.esm.js +5 -5
  551. package/toolbar/toolbar.esm.min.js +1 -1
  552. package/toolbar/toolbar.js +4 -4
  553. package/toolbar/toolbar.min.js +1 -1
  554. package/tooltip/tooltip.cjs.js +13 -1
  555. package/tooltip/tooltip.cjs.min.js +1 -1
  556. package/tooltip/tooltip.esm.js +14 -2
  557. package/tooltip/tooltip.esm.min.js +1 -1
  558. package/tooltip/tooltip.js +14 -2
  559. package/tooltip/tooltip.min.js +1 -1
  560. package/tree/tree.cjs.js +56 -41
  561. package/tree/tree.cjs.min.js +1 -1
  562. package/tree/tree.esm.js +57 -42
  563. package/tree/tree.esm.min.js +1 -1
  564. package/tree/tree.js +57 -42
  565. package/tree/tree.min.js +1 -1
  566. package/treeselect/treeselect.cjs.js +38 -35
  567. package/treeselect/treeselect.cjs.min.js +1 -1
  568. package/treeselect/treeselect.esm.js +37 -34
  569. package/treeselect/treeselect.esm.min.js +1 -1
  570. package/treeselect/treeselect.js +39 -36
  571. package/treeselect/treeselect.min.js +1 -1
  572. package/treetable/TreeTable.d.ts +1 -1
  573. package/treetable/treetable.cjs.js +97 -88
  574. package/treetable/treetable.cjs.min.js +1 -1
  575. package/treetable/treetable.esm.js +97 -88
  576. package/treetable/treetable.esm.min.js +1 -1
  577. package/treetable/treetable.js +98 -89
  578. package/treetable/treetable.min.js +1 -1
  579. package/tristatecheckbox/tristatecheckbox.cjs.js +16 -14
  580. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  581. package/tristatecheckbox/tristatecheckbox.esm.js +18 -16
  582. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  583. package/tristatecheckbox/tristatecheckbox.js +17 -15
  584. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  585. package/useconfirm/useconfirm.js +1 -1
  586. package/usetoast/usetoast.js +1 -1
  587. package/utils/utils.js +1 -1
  588. package/vetur-attributes.json +14 -2
  589. package/vetur-tags.json +5 -2
  590. package/virtualscroller/virtualscroller.cjs.js +15 -15
  591. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  592. package/virtualscroller/virtualscroller.esm.js +17 -17
  593. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  594. package/virtualscroller/virtualscroller.js +16 -16
  595. package/virtualscroller/virtualscroller.min.js +1 -1
  596. package/web-types.json +33 -3
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.inputswitch=function(e){"use strict";var t={name:"InputSwitch",inheritAttrs:!1,emits:["click","update:modelValue","change","input"],props:{modelValue:{type:null,default:!1},class:null,style:null,trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},data:()=>({focused:!1}),methods:{onClick(e){if(!this.$attrs.disabled){const t=this.checked?this.falseValue:this.trueValue;this.$emit("click",e),this.$emit("update:modelValue",t),this.$emit("change",e),this.$emit("input",t),this.$refs.input.focus()}e.preventDefault()},onFocus(){this.focused=!0},onBlur(){this.focused=!1}},computed:{containerClass(){return["p-inputswitch p-component",this.class,{"p-inputswitch-checked":this.checked,"p-disabled":this.$attrs.disabled,"p-focus":this.focused}]},checked(){return this.modelValue===this.trueValue}}};const i={class:"p-hidden-accessible"},n=e.createVNode("span",{class:"p-inputswitch-slider"},null,-1);return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}('\n.p-inputswitch {\n position: relative;\n display: inline-block;\n}\n.p-inputswitch-slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.p-inputswitch-slider:before {\n position: absolute;\n content: "";\n top: 50%;\n}\n'),t.render=function(t,s,c,l,o,u){return e.openBlock(),e.createBlock("div",{class:u.containerClass,onClick:s[4]||(s[4]=e=>u.onClick(e)),style:c.style},[e.createVNode("div",i,[e.createVNode("input",e.mergeProps({ref:"input",type:"checkbox",checked:u.checked},t.$attrs,{onFocus:s[1]||(s[1]=e=>u.onFocus(e)),onBlur:s[2]||(s[2]=e=>u.onBlur(e)),onKeydown:s[3]||(s[3]=e.withKeys(e.withModifiers((e=>u.onClick(e)),["prevent"]),["enter"])),role:"switch","aria-checked":u.checked}),null,16,["checked","aria-checked"])]),n],6)},t}(Vue);
1
+ this.primevue=this.primevue||{},this.primevue.inputswitch=function(e){"use strict";var t={name:"InputSwitch",inheritAttrs:!1,emits:["click","update:modelValue","change","input"],props:{modelValue:{type:null,default:!1},class:null,style:null,trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},data:()=>({focused:!1}),methods:{onClick(e){if(!this.$attrs.disabled){const t=this.checked?this.falseValue:this.trueValue;this.$emit("click",e),this.$emit("update:modelValue",t),this.$emit("change",e),this.$emit("input",t),this.$refs.input.focus()}e.preventDefault()},onFocus(){this.focused=!0},onBlur(){this.focused=!1}},computed:{containerClass(){return["p-inputswitch p-component",this.class,{"p-inputswitch-checked":this.checked,"p-disabled":this.$attrs.disabled,"p-focus":this.focused}]},checked(){return this.modelValue===this.trueValue}}};const n={class:"p-hidden-accessible"},i=["checked","aria-checked"],s=e.createElementVNode("span",{class:"p-inputswitch-slider"},null,-1);return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}('\n.p-inputswitch {\n position: relative;\n display: inline-block;\n}\n.p-inputswitch-slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.p-inputswitch-slider:before {\n position: absolute;\n content: "";\n top: 50%;\n}\n'),t.render=function(t,l,c,o,u,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.containerClass),onClick:l[3]||(l[3]=e=>a.onClick(e)),style:e.normalizeStyle(c.style)},[e.createElementVNode("div",n,[e.createElementVNode("input",e.mergeProps({ref:"input",type:"checkbox",checked:a.checked},t.$attrs,{onFocus:l[0]||(l[0]=e=>a.onFocus(e)),onBlur:l[1]||(l[1]=e=>a.onBlur(e)),onKeydown:l[2]||(l[2]=e.withKeys(e.withModifiers((e=>a.onClick(e)),["prevent"]),["enter"])),role:"switch","aria-checked":a.checked}),null,16,i)]),s],6)},t}(Vue);
@@ -20,12 +20,14 @@ var script = {
20
20
  }
21
21
  };
22
22
 
23
+ const _hoisted_1 = ["value"];
24
+
23
25
  function render(_ctx, _cache, $props, $setup, $data, $options) {
24
- return (vue.openBlock(), vue.createBlock("input", vue.mergeProps({
26
+ return (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
25
27
  class: ['p-inputtext p-component', {'p-filled': $options.filled}],
26
28
  value: $props.modelValue,
27
- onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
28
- }, _ctx.$attrs), null, 16, ["value"]))
29
+ onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args)))
30
+ }, _ctx.$attrs), null, 16, _hoisted_1))
29
31
  }
30
32
 
31
33
  script.render = render;
@@ -1 +1 @@
1
- "use strict";var e=require("vue"),t={name:"InputText",emits:["update:modelValue"],props:{modelValue:null},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}}};t.render=function(t,l,u,n,o,p){return e.openBlock(),e.createBlock("input",e.mergeProps({class:["p-inputtext p-component",{"p-filled":p.filled}],value:u.modelValue,onInput:l[1]||(l[1]=(...e)=>p.onInput&&p.onInput(...e))},t.$attrs),null,16,["value"])},module.exports=t;
1
+ "use strict";var e=require("vue"),t={name:"InputText",emits:["update:modelValue"],props:{modelValue:null},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}}};const l=["value"];t.render=function(t,u,n,o,p,r){return e.openBlock(),e.createElementBlock("input",e.mergeProps({class:["p-inputtext p-component",{"p-filled":r.filled}],value:n.modelValue,onInput:u[0]||(u[0]=(...e)=>r.onInput&&r.onInput(...e))},t.$attrs),null,16,l)},module.exports=t;
@@ -1,4 +1,4 @@
1
- import { openBlock, createBlock, mergeProps } from 'vue';
1
+ import { openBlock, createElementBlock, mergeProps } from 'vue';
2
2
 
3
3
  var script = {
4
4
  name: 'InputText',
@@ -18,14 +18,16 @@ var script = {
18
18
  }
19
19
  };
20
20
 
21
+ const _hoisted_1 = ["value"];
22
+
21
23
  function render(_ctx, _cache, $props, $setup, $data, $options) {
22
- return (openBlock(), createBlock("input", mergeProps({
24
+ return (openBlock(), createElementBlock("input", mergeProps({
23
25
  class: ['p-inputtext p-component', {'p-filled': $options.filled}],
24
26
  value: $props.modelValue,
25
- onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
26
- }, _ctx.$attrs), null, 16, ["value"]))
27
+ onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args)))
28
+ }, _ctx.$attrs), null, 16, _hoisted_1))
27
29
  }
28
30
 
29
31
  script.render = render;
30
32
 
31
- export default script;
33
+ export { script as default };
@@ -1 +1 @@
1
- import{openBlock as e,createBlock as t,mergeProps as l}from"vue";var u={name:"InputText",emits:["update:modelValue"],props:{modelValue:null},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}}};u.render=function(u,n,o,p,a,d){return e(),t("input",l({class:["p-inputtext p-component",{"p-filled":d.filled}],value:o.modelValue,onInput:n[1]||(n[1]=(...e)=>d.onInput&&d.onInput(...e))},u.$attrs),null,16,["value"])};export default u;
1
+ import{openBlock as e,createElementBlock as t,mergeProps as l}from"vue";var u={name:"InputText",emits:["update:modelValue"],props:{modelValue:null},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}}};const n=["value"];u.render=function(u,o,a,p,d,m){return e(),t("input",l({class:["p-inputtext p-component",{"p-filled":m.filled}],value:a.modelValue,onInput:o[0]||(o[0]=(...e)=>m.onInput&&m.onInput(...e))},u.$attrs),null,16,n)};export{u as default};
@@ -20,16 +20,18 @@ this.primevue.inputtext = (function (vue) {
20
20
  }
21
21
  };
22
22
 
23
+ const _hoisted_1 = ["value"];
24
+
23
25
  function render(_ctx, _cache, $props, $setup, $data, $options) {
24
- return (vue.openBlock(), vue.createBlock("input", vue.mergeProps({
26
+ return (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
25
27
  class: ['p-inputtext p-component', {'p-filled': $options.filled}],
26
28
  value: $props.modelValue,
27
- onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
28
- }, _ctx.$attrs), null, 16, ["value"]))
29
+ onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args)))
30
+ }, _ctx.$attrs), null, 16, _hoisted_1))
29
31
  }
30
32
 
31
33
  script.render = render;
32
34
 
33
35
  return script;
34
36
 
35
- }(Vue));
37
+ })(Vue);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.inputtext=function(e){"use strict";var t={name:"InputText",emits:["update:modelValue"],props:{modelValue:null},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}}};return t.render=function(t,u,l,n,o,p){return e.openBlock(),e.createBlock("input",e.mergeProps({class:["p-inputtext p-component",{"p-filled":p.filled}],value:l.modelValue,onInput:u[1]||(u[1]=(...e)=>p.onInput&&p.onInput(...e))},t.$attrs),null,16,["value"])},t}(Vue);
1
+ this.primevue=this.primevue||{},this.primevue.inputtext=function(e){"use strict";var t={name:"InputText",emits:["update:modelValue"],props:{modelValue:null},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}}};const u=["value"];return t.render=function(t,l,n,o,p,i){return e.openBlock(),e.createElementBlock("input",e.mergeProps({class:["p-inputtext p-component",{"p-filled":i.filled}],value:n.modelValue,onInput:l[0]||(l[0]=(...e)=>i.onInput&&i.onInput(...e))},t.$attrs),null,16,u)},t}(Vue);
package/knob/knob.cjs.js CHANGED
@@ -201,41 +201,48 @@ var script = {
201
201
  };
202
202
  //Derived and forked from https://github.com/kramer99/vue-knob-control
203
203
 
204
+ const _hoisted_1 = ["width", "height"];
205
+ const _hoisted_2 = ["d", "stroke-width", "stroke"];
206
+ const _hoisted_3 = ["d", "stroke-width", "stroke"];
207
+ const _hoisted_4 = ["fill"];
208
+
204
209
  function render(_ctx, _cache, $props, $setup, $data, $options) {
205
- return (vue.openBlock(), vue.createBlock("div", { class: $options.containerClass }, [
206
- (vue.openBlock(), vue.createBlock("svg", {
210
+ return (vue.openBlock(), vue.createElementBlock("div", {
211
+ class: vue.normalizeClass($options.containerClass)
212
+ }, [
213
+ (vue.openBlock(), vue.createElementBlock("svg", {
207
214
  viewBox: "0 0 100 100",
208
215
  width: $props.size,
209
216
  height: $props.size,
210
- onClick: _cache[1] || (_cache[1] = (...args) => ($options.onClick && $options.onClick(...args))),
211
- onMousedown: _cache[2] || (_cache[2] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
212
- onMouseup: _cache[3] || (_cache[3] = (...args) => ($options.onMouseUp && $options.onMouseUp(...args))),
213
- onTouchstart: _cache[4] || (_cache[4] = (...args) => ($options.onTouchStart && $options.onTouchStart(...args))),
214
- onTouchend: _cache[5] || (_cache[5] = (...args) => ($options.onTouchEnd && $options.onTouchEnd(...args)))
217
+ onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
218
+ onMousedown: _cache[1] || (_cache[1] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
219
+ onMouseup: _cache[2] || (_cache[2] = (...args) => ($options.onMouseUp && $options.onMouseUp(...args))),
220
+ onTouchstart: _cache[3] || (_cache[3] = (...args) => ($options.onTouchStart && $options.onTouchStart(...args))),
221
+ onTouchend: _cache[4] || (_cache[4] = (...args) => ($options.onTouchEnd && $options.onTouchEnd(...args)))
215
222
  }, [
216
- vue.createVNode("path", {
223
+ vue.createElementVNode("path", {
217
224
  d: $options.rangePath,
218
225
  "stroke-width": $props.strokeWidth,
219
226
  stroke: $props.rangeColor,
220
227
  class: "p-knob-range"
221
- }, null, 8, ["d", "stroke-width", "stroke"]),
222
- vue.createVNode("path", {
228
+ }, null, 8, _hoisted_2),
229
+ vue.createElementVNode("path", {
223
230
  d: $options.valuePath,
224
231
  "stroke-width": $props.strokeWidth,
225
232
  stroke: $props.valueColor,
226
233
  class: "p-knob-value"
227
- }, null, 8, ["d", "stroke-width", "stroke"]),
234
+ }, null, 8, _hoisted_3),
228
235
  ($props.showValue)
229
- ? (vue.openBlock(), vue.createBlock("text", {
236
+ ? (vue.openBlock(), vue.createElementBlock("text", {
230
237
  key: 0,
231
238
  x: 50,
232
239
  y: 57,
233
240
  "text-anchor": "middle",
234
241
  fill: $props.textColor,
235
242
  class: "p-knob-text"
236
- }, vue.toDisplayString($options.valueToDisplay), 9, ["fill"]))
243
+ }, vue.toDisplayString($options.valueToDisplay), 9, _hoisted_4))
237
244
  : vue.createCommentVNode("", true)
238
- ], 40, ["width", "height"]))
245
+ ], 40, _hoisted_1))
239
246
  ], 2))
240
247
  }
241
248
 
@@ -1 +1 @@
1
- "use strict";var e=require("vue"),t={name:"Knob",emits:["update:modelValue","change"],data:()=>({radius:40,midX:50,midY:50,minRadians:4*Math.PI/3,maxRadians:-Math.PI/3}),props:{modelValue:{type:Number,default:null},size:{type:Number,default:100},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:100},valueColor:{type:String,default:"var(--primary-color, Black)"},rangeColor:{type:String,default:"var(--surface-border, LightGray)"},textColor:{type:String,default:"var(--text-color-secondary, Black)"},strokeWidth:{type:Number,default:14},showValue:{type:Boolean,default:!0},valueTemplate:{type:String,default:"{value}"}},methods:{updateValue(e,t){let i=e-this.size/2,a=this.size/2-t,s=Math.atan2(a,i),n=-Math.PI/2-Math.PI/6;this.updateModel(s,n)},updateModel(e,t){let i;if(e>this.maxRadians)i=this.mapRange(e,this.minRadians,this.maxRadians,this.min,this.max);else{if(!(e<t))return;i=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.min,this.max)}let a=Math.round((i-this.min)/this.step)*this.step+this.min;this.$emit("update:modelValue",a),this.$emit("change",a)},mapRange:(e,t,i,a,s)=>(e-t)*(s-a)/(i-t)+a,onClick(e){this.disabled||this.readonly||this.updateValue(e.offsetX,e.offsetY)},onMouseDown(e){this.disabled||this.readonly||(window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),e.preventDefault())},onMouseUp(e){this.disabled||this.readonly||(window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),e.preventDefault())},onTouchStart(e){this.disabled||this.readonly||(window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onTouchEnd),e.preventDefault())},onTouchEnd(e){this.disabled||this.readonly||(window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd),e.preventDefault())},onMouseMove(e){this.disabled||this.readonly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())},onTouchMove(e){if(!this.disabled&&!this.readonly&&1==e.touches.length){const t=this.$el.getBoundingClientRect(),i=e.targetTouches.item(0),a=i.clientX-t.left,s=i.clientY-t.top;this.updateValue(a,s)}}},computed:{containerClass(){return["p-knob p-component",{"p-disabled":this.disabled}]},rangePath(){return`M ${this.minX} ${this.minY} A ${this.radius} ${this.radius} 0 1 1 ${this.maxX} ${this.maxY}`},valuePath(){return`M ${this.zeroX} ${this.zeroY} A ${this.radius} ${this.radius} 0 ${this.largeArc} ${this.sweep} ${this.valueX} ${this.valueY}`},zeroRadians(){return this.min>0&&this.max>0?this.mapRange(this.min,this.min,this.max,this.minRadians,this.maxRadians):this.mapRange(0,this.min,this.max,this.minRadians,this.maxRadians)},valueRadians(){return this.mapRange(this.modelValue,this.min,this.max,this.minRadians,this.maxRadians)},minX(){return this.midX+Math.cos(this.minRadians)*this.radius},minY(){return this.midY-Math.sin(this.minRadians)*this.radius},maxX(){return this.midX+Math.cos(this.maxRadians)*this.radius},maxY(){return this.midY-Math.sin(this.maxRadians)*this.radius},zeroX(){return this.midX+Math.cos(this.zeroRadians)*this.radius},zeroY(){return this.midY-Math.sin(this.zeroRadians)*this.radius},valueX(){return this.midX+Math.cos(this.valueRadians)*this.radius},valueY(){return this.midY-Math.sin(this.valueRadians)*this.radius},largeArc(){return Math.abs(this.zeroRadians-this.valueRadians)<Math.PI?0:1},sweep(){return this.valueRadians>this.zeroRadians?0:1},valueToDisplay(){return this.valueTemplate.replace(/{value}/g,this.modelValue)}}};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n@-webkit-keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n@keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n.p-knob-range {\n fill: none;\n -webkit-transition: stroke .1s ease-in;\n transition: stroke .1s ease-in;\n}\n.p-knob-value {\n -webkit-animation-name: dash-frame;\n animation-name: dash-frame;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n fill: none;\n}\n.p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n}\n"),t.render=function(t,i,a,s,n,o){return e.openBlock(),e.createBlock("div",{class:o.containerClass},[(e.openBlock(),e.createBlock("svg",{viewBox:"0 0 100 100",width:a.size,height:a.size,onClick:i[1]||(i[1]=(...e)=>o.onClick&&o.onClick(...e)),onMousedown:i[2]||(i[2]=(...e)=>o.onMouseDown&&o.onMouseDown(...e)),onMouseup:i[3]||(i[3]=(...e)=>o.onMouseUp&&o.onMouseUp(...e)),onTouchstart:i[4]||(i[4]=(...e)=>o.onTouchStart&&o.onTouchStart(...e)),onTouchend:i[5]||(i[5]=(...e)=>o.onTouchEnd&&o.onTouchEnd(...e))},[e.createVNode("path",{d:o.rangePath,"stroke-width":a.strokeWidth,stroke:a.rangeColor,class:"p-knob-range"},null,8,["d","stroke-width","stroke"]),e.createVNode("path",{d:o.valuePath,"stroke-width":a.strokeWidth,stroke:a.valueColor,class:"p-knob-value"},null,8,["d","stroke-width","stroke"]),a.showValue?(e.openBlock(),e.createBlock("text",{key:0,x:50,y:57,"text-anchor":"middle",fill:a.textColor,class:"p-knob-text"},e.toDisplayString(o.valueToDisplay),9,["fill"])):e.createCommentVNode("",!0)],40,["width","height"]))],2)},module.exports=t;
1
+ "use strict";var e=require("vue"),t={name:"Knob",emits:["update:modelValue","change"],data:()=>({radius:40,midX:50,midY:50,minRadians:4*Math.PI/3,maxRadians:-Math.PI/3}),props:{modelValue:{type:Number,default:null},size:{type:Number,default:100},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:100},valueColor:{type:String,default:"var(--primary-color, Black)"},rangeColor:{type:String,default:"var(--surface-border, LightGray)"},textColor:{type:String,default:"var(--text-color-secondary, Black)"},strokeWidth:{type:Number,default:14},showValue:{type:Boolean,default:!0},valueTemplate:{type:String,default:"{value}"}},methods:{updateValue(e,t){let i=e-this.size/2,a=this.size/2-t,s=Math.atan2(a,i),n=-Math.PI/2-Math.PI/6;this.updateModel(s,n)},updateModel(e,t){let i;if(e>this.maxRadians)i=this.mapRange(e,this.minRadians,this.maxRadians,this.min,this.max);else{if(!(e<t))return;i=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.min,this.max)}let a=Math.round((i-this.min)/this.step)*this.step+this.min;this.$emit("update:modelValue",a),this.$emit("change",a)},mapRange:(e,t,i,a,s)=>(e-t)*(s-a)/(i-t)+a,onClick(e){this.disabled||this.readonly||this.updateValue(e.offsetX,e.offsetY)},onMouseDown(e){this.disabled||this.readonly||(window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),e.preventDefault())},onMouseUp(e){this.disabled||this.readonly||(window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),e.preventDefault())},onTouchStart(e){this.disabled||this.readonly||(window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onTouchEnd),e.preventDefault())},onTouchEnd(e){this.disabled||this.readonly||(window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd),e.preventDefault())},onMouseMove(e){this.disabled||this.readonly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())},onTouchMove(e){if(!this.disabled&&!this.readonly&&1==e.touches.length){const t=this.$el.getBoundingClientRect(),i=e.targetTouches.item(0),a=i.clientX-t.left,s=i.clientY-t.top;this.updateValue(a,s)}}},computed:{containerClass(){return["p-knob p-component",{"p-disabled":this.disabled}]},rangePath(){return`M ${this.minX} ${this.minY} A ${this.radius} ${this.radius} 0 1 1 ${this.maxX} ${this.maxY}`},valuePath(){return`M ${this.zeroX} ${this.zeroY} A ${this.radius} ${this.radius} 0 ${this.largeArc} ${this.sweep} ${this.valueX} ${this.valueY}`},zeroRadians(){return this.min>0&&this.max>0?this.mapRange(this.min,this.min,this.max,this.minRadians,this.maxRadians):this.mapRange(0,this.min,this.max,this.minRadians,this.maxRadians)},valueRadians(){return this.mapRange(this.modelValue,this.min,this.max,this.minRadians,this.maxRadians)},minX(){return this.midX+Math.cos(this.minRadians)*this.radius},minY(){return this.midY-Math.sin(this.minRadians)*this.radius},maxX(){return this.midX+Math.cos(this.maxRadians)*this.radius},maxY(){return this.midY-Math.sin(this.maxRadians)*this.radius},zeroX(){return this.midX+Math.cos(this.zeroRadians)*this.radius},zeroY(){return this.midY-Math.sin(this.zeroRadians)*this.radius},valueX(){return this.midX+Math.cos(this.valueRadians)*this.radius},valueY(){return this.midY-Math.sin(this.valueRadians)*this.radius},largeArc(){return Math.abs(this.zeroRadians-this.valueRadians)<Math.PI?0:1},sweep(){return this.valueRadians>this.zeroRadians?0:1},valueToDisplay(){return this.valueTemplate.replace(/{value}/g,this.modelValue)}}};const i=["width","height"],a=["d","stroke-width","stroke"],s=["d","stroke-width","stroke"],n=["fill"];!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n@-webkit-keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n@keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n.p-knob-range {\n fill: none;\n -webkit-transition: stroke .1s ease-in;\n transition: stroke .1s ease-in;\n}\n.p-knob-value {\n -webkit-animation-name: dash-frame;\n animation-name: dash-frame;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n fill: none;\n}\n.p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n}\n"),t.render=function(t,o,h,d,r,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.containerClass)},[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 100 100",width:h.size,height:h.size,onClick:o[0]||(o[0]=(...e)=>l.onClick&&l.onClick(...e)),onMousedown:o[1]||(o[1]=(...e)=>l.onMouseDown&&l.onMouseDown(...e)),onMouseup:o[2]||(o[2]=(...e)=>l.onMouseUp&&l.onMouseUp(...e)),onTouchstart:o[3]||(o[3]=(...e)=>l.onTouchStart&&l.onTouchStart(...e)),onTouchend:o[4]||(o[4]=(...e)=>l.onTouchEnd&&l.onTouchEnd(...e))},[e.createElementVNode("path",{d:l.rangePath,"stroke-width":h.strokeWidth,stroke:h.rangeColor,class:"p-knob-range"},null,8,a),e.createElementVNode("path",{d:l.valuePath,"stroke-width":h.strokeWidth,stroke:h.valueColor,class:"p-knob-value"},null,8,s),h.showValue?(e.openBlock(),e.createElementBlock("text",{key:0,x:50,y:57,"text-anchor":"middle",fill:h.textColor,class:"p-knob-text"},e.toDisplayString(l.valueToDisplay),9,n)):e.createCommentVNode("",!0)],40,i))],2)},module.exports=t;
package/knob/knob.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock, createBlock, createVNode, toDisplayString, createCommentVNode } from 'vue';
1
+ import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
2
2
 
3
3
  var script = {
4
4
  name: 'Knob',
@@ -199,41 +199,48 @@ var script = {
199
199
  };
200
200
  //Derived and forked from https://github.com/kramer99/vue-knob-control
201
201
 
202
+ const _hoisted_1 = ["width", "height"];
203
+ const _hoisted_2 = ["d", "stroke-width", "stroke"];
204
+ const _hoisted_3 = ["d", "stroke-width", "stroke"];
205
+ const _hoisted_4 = ["fill"];
206
+
202
207
  function render(_ctx, _cache, $props, $setup, $data, $options) {
203
- return (openBlock(), createBlock("div", { class: $options.containerClass }, [
204
- (openBlock(), createBlock("svg", {
208
+ return (openBlock(), createElementBlock("div", {
209
+ class: normalizeClass($options.containerClass)
210
+ }, [
211
+ (openBlock(), createElementBlock("svg", {
205
212
  viewBox: "0 0 100 100",
206
213
  width: $props.size,
207
214
  height: $props.size,
208
- onClick: _cache[1] || (_cache[1] = (...args) => ($options.onClick && $options.onClick(...args))),
209
- onMousedown: _cache[2] || (_cache[2] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
210
- onMouseup: _cache[3] || (_cache[3] = (...args) => ($options.onMouseUp && $options.onMouseUp(...args))),
211
- onTouchstart: _cache[4] || (_cache[4] = (...args) => ($options.onTouchStart && $options.onTouchStart(...args))),
212
- onTouchend: _cache[5] || (_cache[5] = (...args) => ($options.onTouchEnd && $options.onTouchEnd(...args)))
215
+ onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
216
+ onMousedown: _cache[1] || (_cache[1] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
217
+ onMouseup: _cache[2] || (_cache[2] = (...args) => ($options.onMouseUp && $options.onMouseUp(...args))),
218
+ onTouchstart: _cache[3] || (_cache[3] = (...args) => ($options.onTouchStart && $options.onTouchStart(...args))),
219
+ onTouchend: _cache[4] || (_cache[4] = (...args) => ($options.onTouchEnd && $options.onTouchEnd(...args)))
213
220
  }, [
214
- createVNode("path", {
221
+ createElementVNode("path", {
215
222
  d: $options.rangePath,
216
223
  "stroke-width": $props.strokeWidth,
217
224
  stroke: $props.rangeColor,
218
225
  class: "p-knob-range"
219
- }, null, 8, ["d", "stroke-width", "stroke"]),
220
- createVNode("path", {
226
+ }, null, 8, _hoisted_2),
227
+ createElementVNode("path", {
221
228
  d: $options.valuePath,
222
229
  "stroke-width": $props.strokeWidth,
223
230
  stroke: $props.valueColor,
224
231
  class: "p-knob-value"
225
- }, null, 8, ["d", "stroke-width", "stroke"]),
232
+ }, null, 8, _hoisted_3),
226
233
  ($props.showValue)
227
- ? (openBlock(), createBlock("text", {
234
+ ? (openBlock(), createElementBlock("text", {
228
235
  key: 0,
229
236
  x: 50,
230
237
  y: 57,
231
238
  "text-anchor": "middle",
232
239
  fill: $props.textColor,
233
240
  class: "p-knob-text"
234
- }, toDisplayString($options.valueToDisplay), 9, ["fill"]))
241
+ }, toDisplayString($options.valueToDisplay), 9, _hoisted_4))
235
242
  : createCommentVNode("", true)
236
- ], 40, ["width", "height"]))
243
+ ], 40, _hoisted_1))
237
244
  ], 2))
238
245
  }
239
246
 
@@ -269,4 +276,4 @@ styleInject(css_248z);
269
276
 
270
277
  script.render = render;
271
278
 
272
- export default script;
279
+ export { script as default };
@@ -1 +1 @@
1
- import{openBlock as e,createBlock as t,createVNode as i,toDisplayString as a,createCommentVNode as s}from"vue";var n={name:"Knob",emits:["update:modelValue","change"],data:()=>({radius:40,midX:50,midY:50,minRadians:4*Math.PI/3,maxRadians:-Math.PI/3}),props:{modelValue:{type:Number,default:null},size:{type:Number,default:100},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:100},valueColor:{type:String,default:"var(--primary-color, Black)"},rangeColor:{type:String,default:"var(--surface-border, LightGray)"},textColor:{type:String,default:"var(--text-color-secondary, Black)"},strokeWidth:{type:Number,default:14},showValue:{type:Boolean,default:!0},valueTemplate:{type:String,default:"{value}"}},methods:{updateValue(e,t){let i=e-this.size/2,a=this.size/2-t,s=Math.atan2(a,i),n=-Math.PI/2-Math.PI/6;this.updateModel(s,n)},updateModel(e,t){let i;if(e>this.maxRadians)i=this.mapRange(e,this.minRadians,this.maxRadians,this.min,this.max);else{if(!(e<t))return;i=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.min,this.max)}let a=Math.round((i-this.min)/this.step)*this.step+this.min;this.$emit("update:modelValue",a),this.$emit("change",a)},mapRange:(e,t,i,a,s)=>(e-t)*(s-a)/(i-t)+a,onClick(e){this.disabled||this.readonly||this.updateValue(e.offsetX,e.offsetY)},onMouseDown(e){this.disabled||this.readonly||(window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),e.preventDefault())},onMouseUp(e){this.disabled||this.readonly||(window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),e.preventDefault())},onTouchStart(e){this.disabled||this.readonly||(window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onTouchEnd),e.preventDefault())},onTouchEnd(e){this.disabled||this.readonly||(window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd),e.preventDefault())},onMouseMove(e){this.disabled||this.readonly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())},onTouchMove(e){if(!this.disabled&&!this.readonly&&1==e.touches.length){const t=this.$el.getBoundingClientRect(),i=e.targetTouches.item(0),a=i.clientX-t.left,s=i.clientY-t.top;this.updateValue(a,s)}}},computed:{containerClass(){return["p-knob p-component",{"p-disabled":this.disabled}]},rangePath(){return`M ${this.minX} ${this.minY} A ${this.radius} ${this.radius} 0 1 1 ${this.maxX} ${this.maxY}`},valuePath(){return`M ${this.zeroX} ${this.zeroY} A ${this.radius} ${this.radius} 0 ${this.largeArc} ${this.sweep} ${this.valueX} ${this.valueY}`},zeroRadians(){return this.min>0&&this.max>0?this.mapRange(this.min,this.min,this.max,this.minRadians,this.maxRadians):this.mapRange(0,this.min,this.max,this.minRadians,this.maxRadians)},valueRadians(){return this.mapRange(this.modelValue,this.min,this.max,this.minRadians,this.maxRadians)},minX(){return this.midX+Math.cos(this.minRadians)*this.radius},minY(){return this.midY-Math.sin(this.minRadians)*this.radius},maxX(){return this.midX+Math.cos(this.maxRadians)*this.radius},maxY(){return this.midY-Math.sin(this.maxRadians)*this.radius},zeroX(){return this.midX+Math.cos(this.zeroRadians)*this.radius},zeroY(){return this.midY-Math.sin(this.zeroRadians)*this.radius},valueX(){return this.midX+Math.cos(this.valueRadians)*this.radius},valueY(){return this.midY-Math.sin(this.valueRadians)*this.radius},largeArc(){return Math.abs(this.zeroRadians-this.valueRadians)<Math.PI?0:1},sweep(){return this.valueRadians>this.zeroRadians?0:1},valueToDisplay(){return this.valueTemplate.replace(/{value}/g,this.modelValue)}}};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n@-webkit-keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n@keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n.p-knob-range {\n fill: none;\n -webkit-transition: stroke .1s ease-in;\n transition: stroke .1s ease-in;\n}\n.p-knob-value {\n -webkit-animation-name: dash-frame;\n animation-name: dash-frame;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n fill: none;\n}\n.p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n}\n"),n.render=function(n,o,h,d,r,u){return e(),t("div",{class:u.containerClass},[(e(),t("svg",{viewBox:"0 0 100 100",width:h.size,height:h.size,onClick:o[1]||(o[1]=(...e)=>u.onClick&&u.onClick(...e)),onMousedown:o[2]||(o[2]=(...e)=>u.onMouseDown&&u.onMouseDown(...e)),onMouseup:o[3]||(o[3]=(...e)=>u.onMouseUp&&u.onMouseUp(...e)),onTouchstart:o[4]||(o[4]=(...e)=>u.onTouchStart&&u.onTouchStart(...e)),onTouchend:o[5]||(o[5]=(...e)=>u.onTouchEnd&&u.onTouchEnd(...e))},[i("path",{d:u.rangePath,"stroke-width":h.strokeWidth,stroke:h.rangeColor,class:"p-knob-range"},null,8,["d","stroke-width","stroke"]),i("path",{d:u.valuePath,"stroke-width":h.strokeWidth,stroke:h.valueColor,class:"p-knob-value"},null,8,["d","stroke-width","stroke"]),h.showValue?(e(),t("text",{key:0,x:50,y:57,"text-anchor":"middle",fill:h.textColor,class:"p-knob-text"},a(u.valueToDisplay),9,["fill"])):s("",!0)],40,["width","height"]))],2)};export default n;
1
+ import{openBlock as e,createElementBlock as t,normalizeClass as i,createElementVNode as a,toDisplayString as s,createCommentVNode as n}from"vue";var o={name:"Knob",emits:["update:modelValue","change"],data:()=>({radius:40,midX:50,midY:50,minRadians:4*Math.PI/3,maxRadians:-Math.PI/3}),props:{modelValue:{type:Number,default:null},size:{type:Number,default:100},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:100},valueColor:{type:String,default:"var(--primary-color, Black)"},rangeColor:{type:String,default:"var(--surface-border, LightGray)"},textColor:{type:String,default:"var(--text-color-secondary, Black)"},strokeWidth:{type:Number,default:14},showValue:{type:Boolean,default:!0},valueTemplate:{type:String,default:"{value}"}},methods:{updateValue(e,t){let i=e-this.size/2,a=this.size/2-t,s=Math.atan2(a,i),n=-Math.PI/2-Math.PI/6;this.updateModel(s,n)},updateModel(e,t){let i;if(e>this.maxRadians)i=this.mapRange(e,this.minRadians,this.maxRadians,this.min,this.max);else{if(!(e<t))return;i=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.min,this.max)}let a=Math.round((i-this.min)/this.step)*this.step+this.min;this.$emit("update:modelValue",a),this.$emit("change",a)},mapRange:(e,t,i,a,s)=>(e-t)*(s-a)/(i-t)+a,onClick(e){this.disabled||this.readonly||this.updateValue(e.offsetX,e.offsetY)},onMouseDown(e){this.disabled||this.readonly||(window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),e.preventDefault())},onMouseUp(e){this.disabled||this.readonly||(window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),e.preventDefault())},onTouchStart(e){this.disabled||this.readonly||(window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onTouchEnd),e.preventDefault())},onTouchEnd(e){this.disabled||this.readonly||(window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd),e.preventDefault())},onMouseMove(e){this.disabled||this.readonly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())},onTouchMove(e){if(!this.disabled&&!this.readonly&&1==e.touches.length){const t=this.$el.getBoundingClientRect(),i=e.targetTouches.item(0),a=i.clientX-t.left,s=i.clientY-t.top;this.updateValue(a,s)}}},computed:{containerClass(){return["p-knob p-component",{"p-disabled":this.disabled}]},rangePath(){return`M ${this.minX} ${this.minY} A ${this.radius} ${this.radius} 0 1 1 ${this.maxX} ${this.maxY}`},valuePath(){return`M ${this.zeroX} ${this.zeroY} A ${this.radius} ${this.radius} 0 ${this.largeArc} ${this.sweep} ${this.valueX} ${this.valueY}`},zeroRadians(){return this.min>0&&this.max>0?this.mapRange(this.min,this.min,this.max,this.minRadians,this.maxRadians):this.mapRange(0,this.min,this.max,this.minRadians,this.maxRadians)},valueRadians(){return this.mapRange(this.modelValue,this.min,this.max,this.minRadians,this.maxRadians)},minX(){return this.midX+Math.cos(this.minRadians)*this.radius},minY(){return this.midY-Math.sin(this.minRadians)*this.radius},maxX(){return this.midX+Math.cos(this.maxRadians)*this.radius},maxY(){return this.midY-Math.sin(this.maxRadians)*this.radius},zeroX(){return this.midX+Math.cos(this.zeroRadians)*this.radius},zeroY(){return this.midY-Math.sin(this.zeroRadians)*this.radius},valueX(){return this.midX+Math.cos(this.valueRadians)*this.radius},valueY(){return this.midY-Math.sin(this.valueRadians)*this.radius},largeArc(){return Math.abs(this.zeroRadians-this.valueRadians)<Math.PI?0:1},sweep(){return this.valueRadians>this.zeroRadians?0:1},valueToDisplay(){return this.valueTemplate.replace(/{value}/g,this.modelValue)}}};const h=["width","height"],d=["d","stroke-width","stroke"],r=["d","stroke-width","stroke"],u=["fill"];!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n@-webkit-keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n@keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n.p-knob-range {\n fill: none;\n -webkit-transition: stroke .1s ease-in;\n transition: stroke .1s ease-in;\n}\n.p-knob-value {\n -webkit-animation-name: dash-frame;\n animation-name: dash-frame;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n fill: none;\n}\n.p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n}\n"),o.render=function(o,l,m,p,c,f){return e(),t("div",{class:i(f.containerClass)},[(e(),t("svg",{viewBox:"0 0 100 100",width:m.size,height:m.size,onClick:l[0]||(l[0]=(...e)=>f.onClick&&f.onClick(...e)),onMousedown:l[1]||(l[1]=(...e)=>f.onMouseDown&&f.onMouseDown(...e)),onMouseup:l[2]||(l[2]=(...e)=>f.onMouseUp&&f.onMouseUp(...e)),onTouchstart:l[3]||(l[3]=(...e)=>f.onTouchStart&&f.onTouchStart(...e)),onTouchend:l[4]||(l[4]=(...e)=>f.onTouchEnd&&f.onTouchEnd(...e))},[a("path",{d:f.rangePath,"stroke-width":m.strokeWidth,stroke:m.rangeColor,class:"p-knob-range"},null,8,d),a("path",{d:f.valuePath,"stroke-width":m.strokeWidth,stroke:m.valueColor,class:"p-knob-value"},null,8,r),m.showValue?(e(),t("text",{key:0,x:50,y:57,"text-anchor":"middle",fill:m.textColor,class:"p-knob-text"},s(f.valueToDisplay),9,u)):n("",!0)],40,h))],2)};export{o as default};
package/knob/knob.js CHANGED
@@ -201,41 +201,48 @@ this.primevue.knob = (function (vue) {
201
201
  };
202
202
  //Derived and forked from https://github.com/kramer99/vue-knob-control
203
203
 
204
+ const _hoisted_1 = ["width", "height"];
205
+ const _hoisted_2 = ["d", "stroke-width", "stroke"];
206
+ const _hoisted_3 = ["d", "stroke-width", "stroke"];
207
+ const _hoisted_4 = ["fill"];
208
+
204
209
  function render(_ctx, _cache, $props, $setup, $data, $options) {
205
- return (vue.openBlock(), vue.createBlock("div", { class: $options.containerClass }, [
206
- (vue.openBlock(), vue.createBlock("svg", {
210
+ return (vue.openBlock(), vue.createElementBlock("div", {
211
+ class: vue.normalizeClass($options.containerClass)
212
+ }, [
213
+ (vue.openBlock(), vue.createElementBlock("svg", {
207
214
  viewBox: "0 0 100 100",
208
215
  width: $props.size,
209
216
  height: $props.size,
210
- onClick: _cache[1] || (_cache[1] = (...args) => ($options.onClick && $options.onClick(...args))),
211
- onMousedown: _cache[2] || (_cache[2] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
212
- onMouseup: _cache[3] || (_cache[3] = (...args) => ($options.onMouseUp && $options.onMouseUp(...args))),
213
- onTouchstart: _cache[4] || (_cache[4] = (...args) => ($options.onTouchStart && $options.onTouchStart(...args))),
214
- onTouchend: _cache[5] || (_cache[5] = (...args) => ($options.onTouchEnd && $options.onTouchEnd(...args)))
217
+ onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
218
+ onMousedown: _cache[1] || (_cache[1] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
219
+ onMouseup: _cache[2] || (_cache[2] = (...args) => ($options.onMouseUp && $options.onMouseUp(...args))),
220
+ onTouchstart: _cache[3] || (_cache[3] = (...args) => ($options.onTouchStart && $options.onTouchStart(...args))),
221
+ onTouchend: _cache[4] || (_cache[4] = (...args) => ($options.onTouchEnd && $options.onTouchEnd(...args)))
215
222
  }, [
216
- vue.createVNode("path", {
223
+ vue.createElementVNode("path", {
217
224
  d: $options.rangePath,
218
225
  "stroke-width": $props.strokeWidth,
219
226
  stroke: $props.rangeColor,
220
227
  class: "p-knob-range"
221
- }, null, 8, ["d", "stroke-width", "stroke"]),
222
- vue.createVNode("path", {
228
+ }, null, 8, _hoisted_2),
229
+ vue.createElementVNode("path", {
223
230
  d: $options.valuePath,
224
231
  "stroke-width": $props.strokeWidth,
225
232
  stroke: $props.valueColor,
226
233
  class: "p-knob-value"
227
- }, null, 8, ["d", "stroke-width", "stroke"]),
234
+ }, null, 8, _hoisted_3),
228
235
  ($props.showValue)
229
- ? (vue.openBlock(), vue.createBlock("text", {
236
+ ? (vue.openBlock(), vue.createElementBlock("text", {
230
237
  key: 0,
231
238
  x: 50,
232
239
  y: 57,
233
240
  "text-anchor": "middle",
234
241
  fill: $props.textColor,
235
242
  class: "p-knob-text"
236
- }, vue.toDisplayString($options.valueToDisplay), 9, ["fill"]))
243
+ }, vue.toDisplayString($options.valueToDisplay), 9, _hoisted_4))
237
244
  : vue.createCommentVNode("", true)
238
- ], 40, ["width", "height"]))
245
+ ], 40, _hoisted_1))
239
246
  ], 2))
240
247
  }
241
248
 
@@ -273,4 +280,4 @@ this.primevue.knob = (function (vue) {
273
280
 
274
281
  return script;
275
282
 
276
- }(Vue));
283
+ })(Vue);
package/knob/knob.min.js CHANGED
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.knob=function(e){"use strict";var t={name:"Knob",emits:["update:modelValue","change"],data:()=>({radius:40,midX:50,midY:50,minRadians:4*Math.PI/3,maxRadians:-Math.PI/3}),props:{modelValue:{type:Number,default:null},size:{type:Number,default:100},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:100},valueColor:{type:String,default:"var(--primary-color, Black)"},rangeColor:{type:String,default:"var(--surface-border, LightGray)"},textColor:{type:String,default:"var(--text-color-secondary, Black)"},strokeWidth:{type:Number,default:14},showValue:{type:Boolean,default:!0},valueTemplate:{type:String,default:"{value}"}},methods:{updateValue(e,t){let i=e-this.size/2,a=this.size/2-t,s=Math.atan2(a,i),n=-Math.PI/2-Math.PI/6;this.updateModel(s,n)},updateModel(e,t){let i;if(e>this.maxRadians)i=this.mapRange(e,this.minRadians,this.maxRadians,this.min,this.max);else{if(!(e<t))return;i=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.min,this.max)}let a=Math.round((i-this.min)/this.step)*this.step+this.min;this.$emit("update:modelValue",a),this.$emit("change",a)},mapRange:(e,t,i,a,s)=>(e-t)*(s-a)/(i-t)+a,onClick(e){this.disabled||this.readonly||this.updateValue(e.offsetX,e.offsetY)},onMouseDown(e){this.disabled||this.readonly||(window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),e.preventDefault())},onMouseUp(e){this.disabled||this.readonly||(window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),e.preventDefault())},onTouchStart(e){this.disabled||this.readonly||(window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onTouchEnd),e.preventDefault())},onTouchEnd(e){this.disabled||this.readonly||(window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd),e.preventDefault())},onMouseMove(e){this.disabled||this.readonly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())},onTouchMove(e){if(!this.disabled&&!this.readonly&&1==e.touches.length){const t=this.$el.getBoundingClientRect(),i=e.targetTouches.item(0),a=i.clientX-t.left,s=i.clientY-t.top;this.updateValue(a,s)}}},computed:{containerClass(){return["p-knob p-component",{"p-disabled":this.disabled}]},rangePath(){return`M ${this.minX} ${this.minY} A ${this.radius} ${this.radius} 0 1 1 ${this.maxX} ${this.maxY}`},valuePath(){return`M ${this.zeroX} ${this.zeroY} A ${this.radius} ${this.radius} 0 ${this.largeArc} ${this.sweep} ${this.valueX} ${this.valueY}`},zeroRadians(){return this.min>0&&this.max>0?this.mapRange(this.min,this.min,this.max,this.minRadians,this.maxRadians):this.mapRange(0,this.min,this.max,this.minRadians,this.maxRadians)},valueRadians(){return this.mapRange(this.modelValue,this.min,this.max,this.minRadians,this.maxRadians)},minX(){return this.midX+Math.cos(this.minRadians)*this.radius},minY(){return this.midY-Math.sin(this.minRadians)*this.radius},maxX(){return this.midX+Math.cos(this.maxRadians)*this.radius},maxY(){return this.midY-Math.sin(this.maxRadians)*this.radius},zeroX(){return this.midX+Math.cos(this.zeroRadians)*this.radius},zeroY(){return this.midY-Math.sin(this.zeroRadians)*this.radius},valueX(){return this.midX+Math.cos(this.valueRadians)*this.radius},valueY(){return this.midY-Math.sin(this.valueRadians)*this.radius},largeArc(){return Math.abs(this.zeroRadians-this.valueRadians)<Math.PI?0:1},sweep(){return this.valueRadians>this.zeroRadians?0:1},valueToDisplay(){return this.valueTemplate.replace(/{value}/g,this.modelValue)}}};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n@-webkit-keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n@keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n.p-knob-range {\n fill: none;\n -webkit-transition: stroke .1s ease-in;\n transition: stroke .1s ease-in;\n}\n.p-knob-value {\n -webkit-animation-name: dash-frame;\n animation-name: dash-frame;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n fill: none;\n}\n.p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n}\n"),t.render=function(t,i,a,s,n,o){return e.openBlock(),e.createBlock("div",{class:o.containerClass},[(e.openBlock(),e.createBlock("svg",{viewBox:"0 0 100 100",width:a.size,height:a.size,onClick:i[1]||(i[1]=(...e)=>o.onClick&&o.onClick(...e)),onMousedown:i[2]||(i[2]=(...e)=>o.onMouseDown&&o.onMouseDown(...e)),onMouseup:i[3]||(i[3]=(...e)=>o.onMouseUp&&o.onMouseUp(...e)),onTouchstart:i[4]||(i[4]=(...e)=>o.onTouchStart&&o.onTouchStart(...e)),onTouchend:i[5]||(i[5]=(...e)=>o.onTouchEnd&&o.onTouchEnd(...e))},[e.createVNode("path",{d:o.rangePath,"stroke-width":a.strokeWidth,stroke:a.rangeColor,class:"p-knob-range"},null,8,["d","stroke-width","stroke"]),e.createVNode("path",{d:o.valuePath,"stroke-width":a.strokeWidth,stroke:a.valueColor,class:"p-knob-value"},null,8,["d","stroke-width","stroke"]),a.showValue?(e.openBlock(),e.createBlock("text",{key:0,x:50,y:57,"text-anchor":"middle",fill:a.textColor,class:"p-knob-text"},e.toDisplayString(o.valueToDisplay),9,["fill"])):e.createCommentVNode("",!0)],40,["width","height"]))],2)},t}(Vue);
1
+ this.primevue=this.primevue||{},this.primevue.knob=function(e){"use strict";var t={name:"Knob",emits:["update:modelValue","change"],data:()=>({radius:40,midX:50,midY:50,minRadians:4*Math.PI/3,maxRadians:-Math.PI/3}),props:{modelValue:{type:Number,default:null},size:{type:Number,default:100},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:100},valueColor:{type:String,default:"var(--primary-color, Black)"},rangeColor:{type:String,default:"var(--surface-border, LightGray)"},textColor:{type:String,default:"var(--text-color-secondary, Black)"},strokeWidth:{type:Number,default:14},showValue:{type:Boolean,default:!0},valueTemplate:{type:String,default:"{value}"}},methods:{updateValue(e,t){let i=e-this.size/2,a=this.size/2-t,s=Math.atan2(a,i),n=-Math.PI/2-Math.PI/6;this.updateModel(s,n)},updateModel(e,t){let i;if(e>this.maxRadians)i=this.mapRange(e,this.minRadians,this.maxRadians,this.min,this.max);else{if(!(e<t))return;i=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.min,this.max)}let a=Math.round((i-this.min)/this.step)*this.step+this.min;this.$emit("update:modelValue",a),this.$emit("change",a)},mapRange:(e,t,i,a,s)=>(e-t)*(s-a)/(i-t)+a,onClick(e){this.disabled||this.readonly||this.updateValue(e.offsetX,e.offsetY)},onMouseDown(e){this.disabled||this.readonly||(window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),e.preventDefault())},onMouseUp(e){this.disabled||this.readonly||(window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),e.preventDefault())},onTouchStart(e){this.disabled||this.readonly||(window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onTouchEnd),e.preventDefault())},onTouchEnd(e){this.disabled||this.readonly||(window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd),e.preventDefault())},onMouseMove(e){this.disabled||this.readonly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())},onTouchMove(e){if(!this.disabled&&!this.readonly&&1==e.touches.length){const t=this.$el.getBoundingClientRect(),i=e.targetTouches.item(0),a=i.clientX-t.left,s=i.clientY-t.top;this.updateValue(a,s)}}},computed:{containerClass(){return["p-knob p-component",{"p-disabled":this.disabled}]},rangePath(){return`M ${this.minX} ${this.minY} A ${this.radius} ${this.radius} 0 1 1 ${this.maxX} ${this.maxY}`},valuePath(){return`M ${this.zeroX} ${this.zeroY} A ${this.radius} ${this.radius} 0 ${this.largeArc} ${this.sweep} ${this.valueX} ${this.valueY}`},zeroRadians(){return this.min>0&&this.max>0?this.mapRange(this.min,this.min,this.max,this.minRadians,this.maxRadians):this.mapRange(0,this.min,this.max,this.minRadians,this.maxRadians)},valueRadians(){return this.mapRange(this.modelValue,this.min,this.max,this.minRadians,this.maxRadians)},minX(){return this.midX+Math.cos(this.minRadians)*this.radius},minY(){return this.midY-Math.sin(this.minRadians)*this.radius},maxX(){return this.midX+Math.cos(this.maxRadians)*this.radius},maxY(){return this.midY-Math.sin(this.maxRadians)*this.radius},zeroX(){return this.midX+Math.cos(this.zeroRadians)*this.radius},zeroY(){return this.midY-Math.sin(this.zeroRadians)*this.radius},valueX(){return this.midX+Math.cos(this.valueRadians)*this.radius},valueY(){return this.midY-Math.sin(this.valueRadians)*this.radius},largeArc(){return Math.abs(this.zeroRadians-this.valueRadians)<Math.PI?0:1},sweep(){return this.valueRadians>this.zeroRadians?0:1},valueToDisplay(){return this.valueTemplate.replace(/{value}/g,this.modelValue)}}};const i=["width","height"],a=["d","stroke-width","stroke"],s=["d","stroke-width","stroke"],n=["fill"];return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n@-webkit-keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n@keyframes dash-frame {\n100% {\n stroke-dashoffset: 0;\n}\n}\n.p-knob-range {\n fill: none;\n -webkit-transition: stroke .1s ease-in;\n transition: stroke .1s ease-in;\n}\n.p-knob-value {\n -webkit-animation-name: dash-frame;\n animation-name: dash-frame;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n fill: none;\n}\n.p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n}\n"),t.render=function(t,o,h,r,d,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.containerClass)},[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 100 100",width:h.size,height:h.size,onClick:o[0]||(o[0]=(...e)=>l.onClick&&l.onClick(...e)),onMousedown:o[1]||(o[1]=(...e)=>l.onMouseDown&&l.onMouseDown(...e)),onMouseup:o[2]||(o[2]=(...e)=>l.onMouseUp&&l.onMouseUp(...e)),onTouchstart:o[3]||(o[3]=(...e)=>l.onTouchStart&&l.onTouchStart(...e)),onTouchend:o[4]||(o[4]=(...e)=>l.onTouchEnd&&l.onTouchEnd(...e))},[e.createElementVNode("path",{d:l.rangePath,"stroke-width":h.strokeWidth,stroke:h.rangeColor,class:"p-knob-range"},null,8,a),e.createElementVNode("path",{d:l.valuePath,"stroke-width":h.strokeWidth,stroke:h.valueColor,class:"p-knob-value"},null,8,s),h.showValue?(e.openBlock(),e.createElementBlock("text",{key:0,x:50,y:57,"text-anchor":"middle",fill:h.textColor,class:"p-knob-text"},e.toDisplayString(l.valueToDisplay),9,n)):e.createCommentVNode("",!0)],40,i))],2)},t}(Vue);
@@ -286,10 +286,10 @@ var script = {
286
286
  }
287
287
  },
288
288
  directives: {
289
- 'ripple': Ripple__default['default']
289
+ 'ripple': Ripple__default["default"]
290
290
  },
291
291
  components: {
292
- 'VirtualScroller': VirtualScroller__default['default']
292
+ 'VirtualScroller': VirtualScroller__default["default"]
293
293
  }
294
294
  };
295
295
 
@@ -299,13 +299,16 @@ const _hoisted_2 = {
299
299
  class: "p-listbox-header"
300
300
  };
301
301
  const _hoisted_3 = { class: "p-listbox-filter-container" };
302
- const _hoisted_4 = /*#__PURE__*/vue.createVNode("span", { class: "p-listbox-filter-icon pi pi-search" }, null, -1);
303
- const _hoisted_5 = { class: "p-listbox-item-group" };
304
- const _hoisted_6 = {
302
+ const _hoisted_4 = ["placeholder"];
303
+ const _hoisted_5 = /*#__PURE__*/vue.createElementVNode("span", { class: "p-listbox-filter-icon pi pi-search" }, null, -1);
304
+ const _hoisted_6 = ["tabindex", "onClick", "onKeydown", "aria-label", "aria-selected"];
305
+ const _hoisted_7 = { class: "p-listbox-item-group" };
306
+ const _hoisted_8 = ["tabindex", "onClick", "onKeydown", "aria-label", "aria-selected"];
307
+ const _hoisted_9 = {
305
308
  key: 2,
306
309
  class: "p-listbox-empty-message"
307
310
  };
308
- const _hoisted_7 = {
311
+ const _hoisted_10 = {
309
312
  key: 3,
310
313
  class: "p-listbox-empty-message"
311
314
  };
@@ -314,30 +317,30 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
314
317
  const _component_VirtualScroller = vue.resolveComponent("VirtualScroller");
315
318
  const _directive_ripple = vue.resolveDirective("ripple");
316
319
 
317
- return (vue.openBlock(), vue.createBlock("div", _hoisted_1, [
320
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
318
321
  vue.renderSlot(_ctx.$slots, "header", {
319
322
  value: $props.modelValue,
320
323
  options: $options.visibleOptions
321
324
  }),
322
325
  ($props.filter)
323
- ? (vue.openBlock(), vue.createBlock("div", _hoisted_2, [
324
- vue.createVNode("div", _hoisted_3, [
325
- vue.withDirectives(vue.createVNode("input", {
326
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
327
+ vue.createElementVNode("div", _hoisted_3, [
328
+ vue.withDirectives(vue.createElementVNode("input", {
326
329
  type: "text",
327
330
  class: "p-listbox-filter p-inputtext p-component",
328
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ($data.filterValue = $event)),
331
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($data.filterValue) = $event)),
329
332
  placeholder: $props.filterPlaceholder,
330
- onInput: _cache[2] || (_cache[2] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args)))
331
- }, null, 40, ["placeholder"]), [
333
+ onInput: _cache[1] || (_cache[1] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args)))
334
+ }, null, 40, _hoisted_4), [
332
335
  [vue.vModelText, $data.filterValue]
333
336
  ]),
334
- _hoisted_4
337
+ _hoisted_5
335
338
  ])
336
339
  ]))
337
340
  : vue.createCommentVNode("", true),
338
- vue.createVNode("div", {
341
+ vue.createElementVNode("div", {
339
342
  class: "p-listbox-list-wrapper",
340
- style: $props.listStyle
343
+ style: vue.normalizeStyle($props.listStyle)
341
344
  }, [
342
345
  vue.createVNode(_component_VirtualScroller, vue.mergeProps({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
343
346
  style: $props.listStyle,
@@ -345,21 +348,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
345
348
  disabled: $options.virtualScrollerDisabled
346
349
  }), vue.createSlots({
347
350
  content: vue.withCtx(({ styleClass, contentRef, items, getItemOptions, contentStyle }) => [
348
- vue.createVNode("ul", {
351
+ vue.createElementVNode("ul", {
349
352
  ref: contentRef,
350
- class: ['p-listbox-list', styleClass],
351
- style: contentStyle,
353
+ class: vue.normalizeClass(['p-listbox-list', styleClass]),
354
+ style: vue.normalizeStyle(contentStyle),
352
355
  role: "listbox",
353
356
  "aria-multiselectable": "multiple"
354
357
  }, [
355
358
  (!$props.optionGroupLabel)
356
- ? (vue.openBlock(true), vue.createBlock(vue.Fragment, { key: 0 }, vue.renderList(items, (option, i) => {
357
- return vue.withDirectives((vue.openBlock(), vue.createBlock("li", {
359
+ ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(items, (option, i) => {
360
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
358
361
  tabindex: $options.isOptionDisabled(option) ? null : '0',
359
- class: ['p-listbox-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}],
362
+ class: vue.normalizeClass(['p-listbox-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}]),
360
363
  key: $options.getOptionRenderKey(option),
361
364
  onClick: $event => ($options.onOptionSelect($event, option)),
362
- onTouchend: _cache[3] || (_cache[3] = $event => ($options.onOptionTouchEnd())),
365
+ onTouchend: _cache[2] || (_cache[2] = $event => ($options.onOptionTouchEnd())),
363
366
  onKeydown: $event => ($options.onOptionKeyDown($event, option)),
364
367
  role: "option",
365
368
  "aria-label": $options.getOptionLabel(option),
@@ -371,15 +374,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
371
374
  }, () => [
372
375
  vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)
373
376
  ])
374
- ], 42, ["tabindex", "onClick", "onKeydown", "aria-label", "aria-selected"])), [
377
+ ], 42, _hoisted_6)), [
375
378
  [_directive_ripple]
376
379
  ])
377
380
  }), 128))
378
- : (vue.openBlock(true), vue.createBlock(vue.Fragment, { key: 1 }, vue.renderList(items, (optionGroup, i) => {
379
- return (vue.openBlock(), vue.createBlock(vue.Fragment, {
381
+ : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(items, (optionGroup, i) => {
382
+ return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
380
383
  key: $options.getOptionGroupRenderKey(optionGroup)
381
384
  }, [
382
- vue.createVNode("li", _hoisted_5, [
385
+ vue.createElementVNode("li", _hoisted_7, [
383
386
  vue.renderSlot(_ctx.$slots, "optiongroup", {
384
387
  option: optionGroup,
385
388
  index: $options.getOptionIndex(i, getItemOptions)
@@ -387,13 +390,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
387
390
  vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(optionGroup)), 1)
388
391
  ])
389
392
  ]),
390
- (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.getOptionGroupChildren(optionGroup), (option, i) => {
391
- return vue.withDirectives((vue.openBlock(), vue.createBlock("li", {
393
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.getOptionGroupChildren(optionGroup), (option, i) => {
394
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
392
395
  tabindex: $options.isOptionDisabled(option) ? null : '0',
393
- class: ['p-listbox-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}],
396
+ class: vue.normalizeClass(['p-listbox-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}]),
394
397
  key: $options.getOptionRenderKey(option),
395
398
  onClick: $event => ($options.onOptionSelect($event, option)),
396
- onTouchend: _cache[4] || (_cache[4] = $event => ($options.onOptionTouchEnd())),
399
+ onTouchend: _cache[3] || (_cache[3] = $event => ($options.onOptionTouchEnd())),
397
400
  onKeydown: $event => ($options.onOptionKeyDown($event, option)),
398
401
  role: "option",
399
402
  "aria-label": $options.getOptionLabel(option),
@@ -405,20 +408,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
405
408
  }, () => [
406
409
  vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)
407
410
  ])
408
- ], 42, ["tabindex", "onClick", "onKeydown", "aria-label", "aria-selected"])), [
411
+ ], 42, _hoisted_8)), [
409
412
  [_directive_ripple]
410
413
  ])
411
414
  }), 128))
412
415
  ], 64))
413
416
  }), 128)),
414
417
  ($data.filterValue && (!items || (items && items.length === 0)))
415
- ? (vue.openBlock(), vue.createBlock("li", _hoisted_6, [
418
+ ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9, [
416
419
  vue.renderSlot(_ctx.$slots, "emptyfilter", {}, () => [
417
420
  vue.createTextVNode(vue.toDisplayString($options.emptyFilterMessageText), 1)
418
421
  ])
419
422
  ]))
420
423
  : ((!$props.options || ($props.options && $props.options.length === 0)))
421
- ? (vue.openBlock(), vue.createBlock("li", _hoisted_7, [
424
+ ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_10, [
422
425
  vue.renderSlot(_ctx.$slots, "empty", {}, () => [
423
426
  vue.createTextVNode(vue.toDisplayString($options.emptyMessageText), 1)
424
427
  ])