primevue 3.48.0 → 3.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (904) hide show
  1. package/accordion/Accordion.vue +2 -1
  2. package/accordion/accordion.cjs.js +2 -1
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.esm.js +2 -1
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +2 -1
  7. package/accordion/accordion.min.js +1 -1
  8. package/accordiontab/AccordionTab.vue +2 -1
  9. package/accordiontab/accordiontab.cjs.js +2 -1
  10. package/accordiontab/accordiontab.cjs.min.js +1 -1
  11. package/accordiontab/accordiontab.esm.js +2 -1
  12. package/accordiontab/accordiontab.esm.min.js +1 -1
  13. package/accordiontab/accordiontab.js +2 -1
  14. package/accordiontab/accordiontab.min.js +1 -1
  15. package/autocomplete/AutoComplete.d.ts +2 -2
  16. package/autocomplete/AutoComplete.vue +4 -1
  17. package/autocomplete/autocomplete.cjs.js +6 -3
  18. package/autocomplete/autocomplete.cjs.min.js +1 -1
  19. package/autocomplete/autocomplete.esm.js +6 -3
  20. package/autocomplete/autocomplete.esm.min.js +1 -1
  21. package/autocomplete/autocomplete.js +6 -3
  22. package/autocomplete/autocomplete.min.js +1 -1
  23. package/avatar/Avatar.vue +2 -1
  24. package/avatar/avatar.cjs.js +2 -1
  25. package/avatar/avatar.cjs.min.js +1 -1
  26. package/avatar/avatar.esm.js +2 -1
  27. package/avatar/avatar.esm.min.js +1 -1
  28. package/avatar/avatar.js +2 -1
  29. package/avatar/avatar.min.js +1 -1
  30. package/avatargroup/AvatarGroup.d.ts +37 -5
  31. package/avatargroup/AvatarGroup.vue +3 -2
  32. package/avatargroup/avatargroup.cjs.js +3 -2
  33. package/avatargroup/avatargroup.cjs.min.js +1 -1
  34. package/avatargroup/avatargroup.esm.js +3 -2
  35. package/avatargroup/avatargroup.esm.min.js +1 -1
  36. package/avatargroup/avatargroup.js +3 -2
  37. package/avatargroup/avatargroup.min.js +1 -1
  38. package/badge/Badge.d.ts +2 -2
  39. package/badge/Badge.vue +3 -2
  40. package/badge/badge.cjs.js +3 -2
  41. package/badge/badge.cjs.min.js +1 -1
  42. package/badge/badge.esm.js +3 -2
  43. package/badge/badge.esm.min.js +1 -1
  44. package/badge/badge.js +3 -2
  45. package/badge/badge.min.js +1 -1
  46. package/basecomponent/BaseComponent.vue +36 -1
  47. package/basecomponent/basecomponent.cjs.js +58 -1
  48. package/basecomponent/basecomponent.cjs.min.js +1 -1
  49. package/basecomponent/basecomponent.esm.js +58 -1
  50. package/basecomponent/basecomponent.esm.min.js +1 -1
  51. package/basecomponent/basecomponent.js +58 -1
  52. package/basecomponent/basecomponent.min.js +1 -1
  53. package/blockui/BlockUI.vue +2 -1
  54. package/blockui/blockui.cjs.js +2 -1
  55. package/blockui/blockui.cjs.min.js +1 -1
  56. package/blockui/blockui.esm.js +2 -1
  57. package/blockui/blockui.esm.min.js +1 -1
  58. package/blockui/blockui.js +2 -1
  59. package/blockui/blockui.min.js +1 -1
  60. package/breadcrumb/Breadcrumb.vue +4 -3
  61. package/breadcrumb/breadcrumb.cjs.js +2 -1
  62. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  63. package/breadcrumb/breadcrumb.esm.js +2 -1
  64. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  65. package/breadcrumb/breadcrumb.js +2 -1
  66. package/breadcrumb/breadcrumb.min.js +1 -1
  67. package/button/Button.d.ts +3 -3
  68. package/button/Button.vue +5 -2
  69. package/button/button.cjs.js +5 -3
  70. package/button/button.cjs.min.js +1 -1
  71. package/button/button.esm.js +5 -3
  72. package/button/button.esm.min.js +1 -1
  73. package/button/button.js +5 -3
  74. package/button/button.min.js +1 -1
  75. package/buttongroup/BaseButtonGroup.vue +15 -0
  76. package/buttongroup/ButtonGroup.d.ts +113 -0
  77. package/buttongroup/ButtonGroup.vue +15 -0
  78. package/buttongroup/buttongroup.cjs.js +38 -0
  79. package/buttongroup/buttongroup.cjs.min.js +1 -0
  80. package/buttongroup/buttongroup.esm.js +31 -0
  81. package/buttongroup/buttongroup.esm.min.js +1 -0
  82. package/buttongroup/buttongroup.js +38 -0
  83. package/buttongroup/buttongroup.min.js +1 -0
  84. package/buttongroup/package.json +9 -0
  85. package/buttongroup/style/ButtonGroupStyle.d.ts +3 -0
  86. package/buttongroup/style/buttongroupstyle.cjs.js +17 -0
  87. package/buttongroup/style/buttongroupstyle.cjs.min.js +1 -0
  88. package/buttongroup/style/buttongroupstyle.esm.js +11 -0
  89. package/buttongroup/style/buttongroupstyle.esm.min.js +1 -0
  90. package/buttongroup/style/buttongroupstyle.js +20 -0
  91. package/buttongroup/style/buttongroupstyle.min.js +1 -0
  92. package/buttongroup/style/package.json +6 -0
  93. package/calendar/Calendar.d.ts +2 -2
  94. package/calendar/Calendar.vue +9 -3
  95. package/calendar/calendar.cjs.js +10 -4
  96. package/calendar/calendar.cjs.min.js +1 -1
  97. package/calendar/calendar.esm.js +10 -4
  98. package/calendar/calendar.esm.min.js +1 -1
  99. package/calendar/calendar.js +10 -4
  100. package/calendar/calendar.min.js +1 -1
  101. package/calendar/style/calendarstyle.cjs.js +2 -2
  102. package/calendar/style/calendarstyle.cjs.min.js +1 -1
  103. package/calendar/style/calendarstyle.esm.js +2 -2
  104. package/calendar/style/calendarstyle.esm.min.js +1 -1
  105. package/calendar/style/calendarstyle.js +2 -2
  106. package/calendar/style/calendarstyle.min.js +1 -1
  107. package/card/Card.d.ts +23 -1
  108. package/card/Card.vue +3 -2
  109. package/card/card.cjs.js +3 -2
  110. package/card/card.cjs.min.js +1 -1
  111. package/card/card.esm.js +3 -2
  112. package/card/card.esm.min.js +1 -1
  113. package/card/card.js +3 -2
  114. package/card/card.min.js +1 -1
  115. package/carousel/Carousel.vue +2 -1
  116. package/carousel/carousel.cjs.js +2 -1
  117. package/carousel/carousel.cjs.min.js +1 -1
  118. package/carousel/carousel.esm.js +2 -1
  119. package/carousel/carousel.esm.min.js +1 -1
  120. package/carousel/carousel.js +2 -1
  121. package/carousel/carousel.min.js +1 -1
  122. package/cascadeselect/CascadeSelect.d.ts +2 -2
  123. package/cascadeselect/CascadeSelect.vue +18 -5
  124. package/cascadeselect/cascadeselect.cjs.js +32 -12
  125. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  126. package/cascadeselect/cascadeselect.esm.js +32 -12
  127. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  128. package/cascadeselect/cascadeselect.js +32 -12
  129. package/cascadeselect/cascadeselect.min.js +1 -1
  130. package/chart/Chart.vue +2 -1
  131. package/chart/chart.cjs.js +2 -1
  132. package/chart/chart.cjs.min.js +1 -1
  133. package/chart/chart.esm.js +2 -1
  134. package/chart/chart.esm.min.js +1 -1
  135. package/chart/chart.js +2 -1
  136. package/chart/chart.min.js +1 -1
  137. package/checkbox/Checkbox.vue +5 -1
  138. package/checkbox/checkbox.cjs.js +5 -2
  139. package/checkbox/checkbox.cjs.min.js +1 -1
  140. package/checkbox/checkbox.esm.js +5 -2
  141. package/checkbox/checkbox.esm.min.js +1 -1
  142. package/checkbox/checkbox.js +5 -2
  143. package/checkbox/checkbox.min.js +1 -1
  144. package/chip/Chip.vue +2 -1
  145. package/chip/chip.cjs.js +2 -1
  146. package/chip/chip.cjs.min.js +1 -1
  147. package/chip/chip.esm.js +2 -1
  148. package/chip/chip.esm.min.js +1 -1
  149. package/chip/chip.js +2 -1
  150. package/chip/chip.min.js +1 -1
  151. package/chips/Chips.vue +3 -1
  152. package/chips/chips.cjs.js +4 -2
  153. package/chips/chips.cjs.min.js +1 -1
  154. package/chips/chips.esm.js +4 -2
  155. package/chips/chips.esm.min.js +1 -1
  156. package/chips/chips.js +4 -2
  157. package/chips/chips.min.js +1 -1
  158. package/colorpicker/ColorPicker.d.ts +2 -2
  159. package/colorpicker/ColorPicker.vue +3 -2
  160. package/colorpicker/colorpicker.cjs.js +3 -2
  161. package/colorpicker/colorpicker.cjs.min.js +1 -1
  162. package/colorpicker/colorpicker.esm.js +3 -2
  163. package/colorpicker/colorpicker.esm.min.js +1 -1
  164. package/colorpicker/colorpicker.js +3 -2
  165. package/colorpicker/colorpicker.min.js +1 -1
  166. package/column/Column.vue +1 -0
  167. package/column/column.cjs.js +1 -0
  168. package/column/column.cjs.min.js +1 -1
  169. package/column/column.esm.js +1 -0
  170. package/column/column.esm.min.js +1 -1
  171. package/column/column.js +1 -0
  172. package/column/column.min.js +1 -1
  173. package/columngroup/ColumnGroup.vue +1 -0
  174. package/columngroup/columngroup.cjs.js +1 -0
  175. package/columngroup/columngroup.cjs.min.js +1 -1
  176. package/columngroup/columngroup.esm.js +1 -0
  177. package/columngroup/columngroup.esm.min.js +1 -1
  178. package/columngroup/columngroup.js +1 -0
  179. package/columngroup/columngroup.min.js +1 -1
  180. package/config/PrimeVue.d.ts +1 -1
  181. package/confirmpopup/ConfirmPopup.vue +1 -1
  182. package/confirmpopup/confirmpopup.cjs.js +1 -7
  183. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  184. package/confirmpopup/confirmpopup.esm.js +1 -7
  185. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  186. package/confirmpopup/confirmpopup.js +1 -7
  187. package/confirmpopup/confirmpopup.min.js +1 -1
  188. package/contextmenu/ContextMenu.d.ts +2 -2
  189. package/contextmenu/ContextMenu.vue +7 -1
  190. package/contextmenu/ContextMenuSub.vue +13 -3
  191. package/contextmenu/contextmenu.cjs.js +25 -12
  192. package/contextmenu/contextmenu.cjs.min.js +1 -1
  193. package/contextmenu/contextmenu.esm.js +25 -12
  194. package/contextmenu/contextmenu.esm.min.js +1 -1
  195. package/contextmenu/contextmenu.js +25 -12
  196. package/contextmenu/contextmenu.min.js +1 -1
  197. package/core/core.js +223 -99
  198. package/core/core.min.js +23 -21
  199. package/datatable/BaseDataTable.vue +4 -4
  200. package/datatable/BodyCell.vue +0 -3
  201. package/datatable/DataTable.d.ts +6 -6
  202. package/datatable/DataTable.vue +5 -3
  203. package/datatable/datatable.cjs.js +8 -10
  204. package/datatable/datatable.cjs.min.js +1 -1
  205. package/datatable/datatable.esm.js +8 -10
  206. package/datatable/datatable.esm.min.js +1 -1
  207. package/datatable/datatable.js +8 -10
  208. package/datatable/datatable.min.js +1 -1
  209. package/dataview/DataView.vue +2 -1
  210. package/dataview/dataview.cjs.js +2 -1
  211. package/dataview/dataview.cjs.min.js +1 -1
  212. package/dataview/dataview.esm.js +2 -1
  213. package/dataview/dataview.esm.min.js +1 -1
  214. package/dataview/dataview.js +2 -1
  215. package/dataview/dataview.min.js +1 -1
  216. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +2 -1
  217. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +2 -1
  218. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  219. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +2 -1
  220. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  221. package/dataviewlayoutoptions/dataviewlayoutoptions.js +2 -1
  222. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  223. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.cjs.js +1 -1
  224. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.cjs.min.js +1 -1
  225. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.esm.js +1 -1
  226. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.esm.min.js +1 -1
  227. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.js +1 -1
  228. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.min.js +1 -1
  229. package/deferredcontent/DeferredContent.vue +2 -1
  230. package/deferredcontent/deferredcontent.cjs.js +2 -1
  231. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  232. package/deferredcontent/deferredcontent.esm.js +2 -1
  233. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  234. package/deferredcontent/deferredcontent.js +2 -1
  235. package/deferredcontent/deferredcontent.min.js +1 -1
  236. package/dialog/Dialog.d.ts +2 -2
  237. package/dialog/Dialog.vue +2 -2
  238. package/dialog/dialog.cjs.js +2 -2
  239. package/dialog/dialog.cjs.min.js +1 -1
  240. package/dialog/dialog.esm.js +2 -2
  241. package/dialog/dialog.esm.min.js +1 -1
  242. package/dialog/dialog.js +2 -2
  243. package/dialog/dialog.min.js +1 -1
  244. package/divider/Divider.vue +3 -2
  245. package/divider/divider.cjs.js +3 -2
  246. package/divider/divider.cjs.min.js +1 -1
  247. package/divider/divider.esm.js +3 -2
  248. package/divider/divider.esm.min.js +1 -1
  249. package/divider/divider.js +3 -2
  250. package/divider/divider.min.js +1 -1
  251. package/dock/Dock.vue +2 -1
  252. package/dock/dock.cjs.js +2 -1
  253. package/dock/dock.cjs.min.js +1 -1
  254. package/dock/dock.esm.js +2 -1
  255. package/dock/dock.esm.min.js +1 -1
  256. package/dock/dock.js +2 -1
  257. package/dock/dock.min.js +1 -1
  258. package/dropdown/Dropdown.d.ts +3 -3
  259. package/dropdown/Dropdown.vue +5 -1
  260. package/dropdown/dropdown.cjs.js +15 -9
  261. package/dropdown/dropdown.cjs.min.js +1 -1
  262. package/dropdown/dropdown.esm.js +15 -9
  263. package/dropdown/dropdown.esm.min.js +1 -1
  264. package/dropdown/dropdown.js +15 -9
  265. package/dropdown/dropdown.min.js +1 -1
  266. package/editor/Editor.vue +2 -1
  267. package/editor/editor.cjs.js +2 -1
  268. package/editor/editor.cjs.min.js +1 -1
  269. package/editor/editor.esm.js +2 -1
  270. package/editor/editor.esm.min.js +1 -1
  271. package/editor/editor.js +2 -1
  272. package/editor/editor.min.js +1 -1
  273. package/fieldset/Fieldset.vue +2 -1
  274. package/fieldset/fieldset.cjs.js +2 -1
  275. package/fieldset/fieldset.cjs.min.js +1 -1
  276. package/fieldset/fieldset.esm.js +2 -1
  277. package/fieldset/fieldset.esm.min.js +1 -1
  278. package/fieldset/fieldset.js +2 -1
  279. package/fieldset/fieldset.min.js +1 -1
  280. package/fileupload/FileUpload.vue +8 -5
  281. package/fileupload/fileupload.cjs.js +9 -8
  282. package/fileupload/fileupload.cjs.min.js +1 -1
  283. package/fileupload/fileupload.esm.js +9 -8
  284. package/fileupload/fileupload.esm.min.js +1 -1
  285. package/fileupload/fileupload.js +9 -8
  286. package/fileupload/fileupload.min.js +1 -1
  287. package/floatlabel/FloatLabel.d.ts +0 -4
  288. package/floatlabel/FloatLabel.vue +3 -2
  289. package/floatlabel/floatlabel.cjs.js +3 -2
  290. package/floatlabel/floatlabel.cjs.min.js +1 -1
  291. package/floatlabel/floatlabel.esm.js +3 -2
  292. package/floatlabel/floatlabel.esm.min.js +1 -1
  293. package/floatlabel/floatlabel.js +3 -2
  294. package/floatlabel/floatlabel.min.js +1 -1
  295. package/galleria/GalleriaContent.vue +1 -1
  296. package/galleria/GalleriaThumbnails.vue +12 -3
  297. package/galleria/galleria.cjs.js +5 -5
  298. package/galleria/galleria.cjs.min.js +1 -1
  299. package/galleria/galleria.esm.js +5 -5
  300. package/galleria/galleria.esm.min.js +1 -1
  301. package/galleria/galleria.js +5 -5
  302. package/galleria/galleria.min.js +1 -1
  303. package/iconfield/IconField.vue +4 -3
  304. package/iconfield/iconfield.cjs.js +3 -2
  305. package/iconfield/iconfield.cjs.min.js +1 -1
  306. package/iconfield/iconfield.esm.js +3 -2
  307. package/iconfield/iconfield.esm.min.js +1 -1
  308. package/iconfield/iconfield.js +3 -2
  309. package/iconfield/iconfield.min.js +1 -1
  310. package/iconfield/style/iconfieldstyle.cjs.js +3 -3
  311. package/iconfield/style/iconfieldstyle.cjs.min.js +1 -1
  312. package/iconfield/style/iconfieldstyle.esm.js +3 -3
  313. package/iconfield/style/iconfieldstyle.esm.min.js +1 -1
  314. package/iconfield/style/iconfieldstyle.js +3 -3
  315. package/iconfield/style/iconfieldstyle.min.js +1 -1
  316. package/image/Image.vue +1 -1
  317. package/image/image.cjs.js +1 -1
  318. package/image/image.cjs.min.js +1 -1
  319. package/image/image.esm.js +1 -1
  320. package/image/image.esm.min.js +1 -1
  321. package/image/image.js +1 -1
  322. package/image/image.min.js +1 -1
  323. package/inlinemessage/InlineMessage.d.ts +2 -2
  324. package/inlinemessage/InlineMessage.vue +2 -1
  325. package/inlinemessage/inlinemessage.cjs.js +2 -1
  326. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  327. package/inlinemessage/inlinemessage.esm.js +2 -1
  328. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  329. package/inlinemessage/inlinemessage.js +2 -1
  330. package/inlinemessage/inlinemessage.min.js +1 -1
  331. package/inplace/Inplace.vue +2 -1
  332. package/inplace/inplace.cjs.js +2 -1
  333. package/inplace/inplace.cjs.min.js +1 -1
  334. package/inplace/inplace.esm.js +2 -1
  335. package/inplace/inplace.esm.min.js +1 -1
  336. package/inplace/inplace.js +2 -1
  337. package/inplace/inplace.min.js +1 -1
  338. package/inputgroup/InputGroup.vue +3 -2
  339. package/inputgroup/inputgroup.cjs.js +3 -2
  340. package/inputgroup/inputgroup.cjs.min.js +1 -1
  341. package/inputgroup/inputgroup.esm.js +3 -2
  342. package/inputgroup/inputgroup.esm.min.js +1 -1
  343. package/inputgroup/inputgroup.js +3 -2
  344. package/inputgroup/inputgroup.min.js +1 -1
  345. package/inputgroupaddon/InputGroupAddon.vue +3 -2
  346. package/inputgroupaddon/inputgroupaddon.cjs.js +3 -2
  347. package/inputgroupaddon/inputgroupaddon.cjs.min.js +1 -1
  348. package/inputgroupaddon/inputgroupaddon.esm.js +3 -2
  349. package/inputgroupaddon/inputgroupaddon.esm.min.js +1 -1
  350. package/inputgroupaddon/inputgroupaddon.js +3 -2
  351. package/inputgroupaddon/inputgroupaddon.min.js +1 -1
  352. package/inputicon/BaseInputIcon.vue +3 -0
  353. package/inputicon/InputIcon.vue +10 -2
  354. package/inputicon/inputicon.cjs.js +13 -2
  355. package/inputicon/inputicon.cjs.min.js +1 -1
  356. package/inputicon/inputicon.esm.js +14 -3
  357. package/inputicon/inputicon.esm.min.js +1 -1
  358. package/inputicon/inputicon.js +13 -2
  359. package/inputicon/inputicon.min.js +1 -1
  360. package/inputicon/style/inputiconstyle.cjs.js +13 -1
  361. package/inputicon/style/inputiconstyle.cjs.min.js +1 -1
  362. package/inputicon/style/inputiconstyle.esm.js +9 -1
  363. package/inputicon/style/inputiconstyle.esm.min.js +1 -1
  364. package/inputicon/style/inputiconstyle.js +15 -5
  365. package/inputicon/style/inputiconstyle.min.js +1 -1
  366. package/inputmask/InputMask.vue +2 -1
  367. package/inputmask/inputmask.cjs.js +4 -2
  368. package/inputmask/inputmask.cjs.min.js +1 -1
  369. package/inputmask/inputmask.esm.js +4 -2
  370. package/inputmask/inputmask.esm.min.js +1 -1
  371. package/inputmask/inputmask.js +4 -2
  372. package/inputmask/inputmask.min.js +1 -1
  373. package/inputnumber/InputNumber.vue +3 -1
  374. package/inputnumber/inputnumber.cjs.js +4 -2
  375. package/inputnumber/inputnumber.cjs.min.js +1 -1
  376. package/inputnumber/inputnumber.esm.js +4 -2
  377. package/inputnumber/inputnumber.esm.min.js +1 -1
  378. package/inputnumber/inputnumber.js +4 -2
  379. package/inputnumber/inputnumber.min.js +1 -1
  380. package/inputotp/BaseInputOtp.vue +53 -0
  381. package/inputotp/InputOtp.d.ts +275 -0
  382. package/inputotp/InputOtp.vue +201 -0
  383. package/inputotp/inputotp.cjs.js +265 -0
  384. package/inputotp/inputotp.cjs.min.js +1 -0
  385. package/inputotp/inputotp.esm.js +257 -0
  386. package/inputotp/inputotp.esm.min.js +1 -0
  387. package/inputotp/inputotp.js +264 -0
  388. package/inputotp/inputotp.min.js +1 -0
  389. package/inputotp/package.json +9 -0
  390. package/inputotp/style/InputOtpStyle.d.ts +3 -0
  391. package/inputotp/style/inputotpstyle.cjs.js +18 -0
  392. package/inputotp/style/inputotpstyle.cjs.min.js +1 -0
  393. package/inputotp/style/inputotpstyle.esm.js +12 -0
  394. package/inputotp/style/inputotpstyle.esm.min.js +1 -0
  395. package/inputotp/style/inputotpstyle.js +21 -0
  396. package/inputotp/style/inputotpstyle.min.js +1 -0
  397. package/inputotp/style/package.json +6 -0
  398. package/inputswitch/InputSwitch.d.ts +0 -16
  399. package/inputswitch/InputSwitch.vue +5 -1
  400. package/inputswitch/inputswitch.cjs.js +5 -2
  401. package/inputswitch/inputswitch.cjs.min.js +1 -1
  402. package/inputswitch/inputswitch.esm.js +5 -2
  403. package/inputswitch/inputswitch.esm.min.js +1 -1
  404. package/inputswitch/inputswitch.js +5 -2
  405. package/inputswitch/inputswitch.min.js +1 -1
  406. package/inputtext/InputText.vue +5 -2
  407. package/inputtext/inputtext.cjs.js +5 -2
  408. package/inputtext/inputtext.cjs.min.js +1 -1
  409. package/inputtext/inputtext.esm.js +5 -2
  410. package/inputtext/inputtext.esm.min.js +1 -1
  411. package/inputtext/inputtext.js +5 -2
  412. package/inputtext/inputtext.min.js +1 -1
  413. package/knob/Knob.vue +2 -1
  414. package/knob/knob.cjs.js +2 -1
  415. package/knob/knob.cjs.min.js +1 -1
  416. package/knob/knob.esm.js +2 -1
  417. package/knob/knob.esm.min.js +1 -1
  418. package/knob/knob.js +2 -1
  419. package/knob/knob.min.js +1 -1
  420. package/listbox/Listbox.d.ts +2 -2
  421. package/listbox/Listbox.vue +2 -3
  422. package/listbox/listbox.cjs.js +2 -2
  423. package/listbox/listbox.cjs.min.js +1 -1
  424. package/listbox/listbox.esm.js +2 -2
  425. package/listbox/listbox.esm.min.js +1 -1
  426. package/listbox/listbox.js +2 -2
  427. package/listbox/listbox.min.js +1 -1
  428. package/megamenu/MegaMenu.vue +2 -1
  429. package/megamenu/MegaMenuSub.vue +1 -1
  430. package/megamenu/megamenu.cjs.js +3 -2
  431. package/megamenu/megamenu.cjs.min.js +1 -1
  432. package/megamenu/megamenu.esm.js +3 -2
  433. package/megamenu/megamenu.esm.min.js +1 -1
  434. package/megamenu/megamenu.js +3 -2
  435. package/megamenu/megamenu.min.js +1 -1
  436. package/menu/Menu.d.ts +2 -2
  437. package/menu/Menu.vue +18 -11
  438. package/menu/Menuitem.vue +6 -3
  439. package/menu/menu.cjs.js +23 -18
  440. package/menu/menu.cjs.min.js +1 -1
  441. package/menu/menu.esm.js +23 -18
  442. package/menu/menu.esm.min.js +1 -1
  443. package/menu/menu.js +23 -18
  444. package/menu/menu.min.js +1 -1
  445. package/menubar/Menubar.vue +19 -6
  446. package/menubar/MenubarSub.vue +7 -3
  447. package/menubar/menubar.cjs.js +41 -18
  448. package/menubar/menubar.cjs.min.js +1 -1
  449. package/menubar/menubar.esm.js +41 -18
  450. package/menubar/menubar.esm.min.js +1 -1
  451. package/menubar/menubar.js +41 -18
  452. package/menubar/menubar.min.js +1 -1
  453. package/message/Message.d.ts +2 -2
  454. package/message/Message.vue +2 -1
  455. package/message/message.cjs.js +2 -1
  456. package/message/message.cjs.min.js +1 -1
  457. package/message/message.esm.js +2 -1
  458. package/message/message.esm.min.js +1 -1
  459. package/message/message.js +2 -1
  460. package/message/message.min.js +1 -1
  461. package/metergroup/MeterGroup.vue +3 -2
  462. package/metergroup/metergroup.cjs.js +5 -3
  463. package/metergroup/metergroup.cjs.min.js +1 -1
  464. package/metergroup/metergroup.esm.js +5 -3
  465. package/metergroup/metergroup.esm.min.js +1 -1
  466. package/metergroup/metergroup.js +5 -3
  467. package/metergroup/metergroup.min.js +1 -1
  468. package/multiselect/MultiSelect.d.ts +3 -3
  469. package/multiselect/MultiSelect.vue +4 -1
  470. package/multiselect/multiselect.cjs.js +15 -10
  471. package/multiselect/multiselect.cjs.min.js +1 -1
  472. package/multiselect/multiselect.esm.js +15 -10
  473. package/multiselect/multiselect.esm.min.js +1 -1
  474. package/multiselect/multiselect.js +15 -10
  475. package/multiselect/multiselect.min.js +1 -1
  476. package/orderlist/OrderList.vue +2 -1
  477. package/orderlist/orderlist.cjs.js +2 -1
  478. package/orderlist/orderlist.cjs.min.js +1 -1
  479. package/orderlist/orderlist.esm.js +2 -1
  480. package/orderlist/orderlist.esm.min.js +1 -1
  481. package/orderlist/orderlist.js +2 -1
  482. package/orderlist/orderlist.min.js +1 -1
  483. package/organizationchart/OrganizationChart.vue +2 -1
  484. package/organizationchart/organizationchart.cjs.js +2 -1
  485. package/organizationchart/organizationchart.cjs.min.js +1 -1
  486. package/organizationchart/organizationchart.esm.js +2 -1
  487. package/organizationchart/organizationchart.esm.min.js +1 -1
  488. package/organizationchart/organizationchart.js +2 -1
  489. package/organizationchart/organizationchart.min.js +1 -1
  490. package/overlaypanel/OverlayPanel.d.ts +2 -2
  491. package/overlaypanel/OverlayPanel.vue +1 -1
  492. package/overlaypanel/overlaypanel.cjs.js +1 -7
  493. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  494. package/overlaypanel/overlaypanel.esm.js +1 -7
  495. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  496. package/overlaypanel/overlaypanel.js +1 -7
  497. package/overlaypanel/overlaypanel.min.js +1 -1
  498. package/package.json +1 -1
  499. package/paginator/Paginator.vue +2 -1
  500. package/paginator/paginator.cjs.js +2 -1
  501. package/paginator/paginator.cjs.min.js +1 -1
  502. package/paginator/paginator.esm.js +2 -1
  503. package/paginator/paginator.esm.min.js +1 -1
  504. package/paginator/paginator.js +2 -1
  505. package/paginator/paginator.min.js +1 -1
  506. package/panel/Panel.vue +2 -1
  507. package/panel/panel.cjs.js +2 -1
  508. package/panel/panel.cjs.min.js +1 -1
  509. package/panel/panel.esm.js +2 -1
  510. package/panel/panel.esm.min.js +1 -1
  511. package/panel/panel.js +2 -1
  512. package/panel/panel.min.js +1 -1
  513. package/panelmenu/PanelMenu.vue +2 -1
  514. package/panelmenu/PanelMenuList.vue +6 -0
  515. package/panelmenu/PanelMenuSub.vue +7 -3
  516. package/panelmenu/panelmenu.cjs.js +24 -5
  517. package/panelmenu/panelmenu.cjs.min.js +1 -1
  518. package/panelmenu/panelmenu.esm.js +24 -5
  519. package/panelmenu/panelmenu.esm.min.js +1 -1
  520. package/panelmenu/panelmenu.js +24 -5
  521. package/panelmenu/panelmenu.min.js +1 -1
  522. package/password/Password.d.ts +2 -2
  523. package/password/Password.vue +10 -4
  524. package/password/password.cjs.js +9 -4
  525. package/password/password.cjs.min.js +1 -1
  526. package/password/password.esm.js +9 -4
  527. package/password/password.esm.min.js +1 -1
  528. package/password/password.js +9 -4
  529. package/password/password.min.js +1 -1
  530. package/password/style/passwordstyle.cjs.js +4 -3
  531. package/password/style/passwordstyle.cjs.min.js +1 -1
  532. package/password/style/passwordstyle.esm.js +4 -3
  533. package/password/style/passwordstyle.esm.min.js +1 -1
  534. package/password/style/passwordstyle.js +4 -3
  535. package/password/style/passwordstyle.min.js +1 -1
  536. package/picklist/PickList.vue +2 -1
  537. package/picklist/picklist.cjs.js +2 -1
  538. package/picklist/picklist.cjs.min.js +1 -1
  539. package/picklist/picklist.esm.js +2 -1
  540. package/picklist/picklist.esm.min.js +1 -1
  541. package/picklist/picklist.js +2 -1
  542. package/picklist/picklist.min.js +1 -1
  543. package/portal/Portal.d.ts +2 -2
  544. package/progressbar/ProgressBar.vue +2 -1
  545. package/progressbar/progressbar.cjs.js +2 -1
  546. package/progressbar/progressbar.cjs.min.js +1 -1
  547. package/progressbar/progressbar.esm.js +2 -1
  548. package/progressbar/progressbar.esm.min.js +1 -1
  549. package/progressbar/progressbar.js +2 -1
  550. package/progressbar/progressbar.min.js +1 -1
  551. package/progressspinner/ProgressSpinner.vue +2 -1
  552. package/progressspinner/progressspinner.cjs.js +2 -1
  553. package/progressspinner/progressspinner.cjs.min.js +1 -1
  554. package/progressspinner/progressspinner.esm.js +2 -1
  555. package/progressspinner/progressspinner.esm.min.js +1 -1
  556. package/progressspinner/progressspinner.js +2 -1
  557. package/progressspinner/progressspinner.min.js +1 -1
  558. package/radiobutton/RadioButton.vue +5 -1
  559. package/radiobutton/radiobutton.cjs.js +5 -2
  560. package/radiobutton/radiobutton.cjs.min.js +1 -1
  561. package/radiobutton/radiobutton.esm.js +5 -2
  562. package/radiobutton/radiobutton.esm.min.js +1 -1
  563. package/radiobutton/radiobutton.js +5 -2
  564. package/radiobutton/radiobutton.min.js +1 -1
  565. package/rating/Rating.vue +2 -1
  566. package/rating/rating.cjs.js +2 -1
  567. package/rating/rating.cjs.min.js +1 -1
  568. package/rating/rating.esm.js +2 -1
  569. package/rating/rating.esm.min.js +1 -1
  570. package/rating/rating.js +2 -1
  571. package/rating/rating.min.js +1 -1
  572. package/resources/themes/arya-blue/theme.css +346 -119
  573. package/resources/themes/arya-green/theme.css +346 -119
  574. package/resources/themes/arya-orange/theme.css +346 -119
  575. package/resources/themes/arya-purple/theme.css +346 -119
  576. package/resources/themes/aura-dark-amber/theme.css +379 -134
  577. package/resources/themes/aura-dark-blue/theme.css +379 -134
  578. package/resources/themes/aura-dark-cyan/theme.css +379 -134
  579. package/resources/themes/aura-dark-green/theme.css +379 -134
  580. package/resources/themes/aura-dark-indigo/theme.css +379 -134
  581. package/resources/themes/aura-dark-lime/theme.css +379 -134
  582. package/resources/themes/aura-dark-noir/theme.css +379 -134
  583. package/resources/themes/aura-dark-pink/theme.css +379 -134
  584. package/resources/themes/aura-dark-purple/theme.css +379 -134
  585. package/resources/themes/aura-dark-teal/theme.css +379 -134
  586. package/resources/themes/aura-light-amber/theme.css +379 -137
  587. package/resources/themes/aura-light-blue/theme.css +379 -137
  588. package/resources/themes/aura-light-cyan/theme.css +379 -137
  589. package/resources/themes/aura-light-green/theme.css +379 -137
  590. package/resources/themes/aura-light-indigo/theme.css +379 -137
  591. package/resources/themes/aura-light-lime/theme.css +379 -137
  592. package/resources/themes/aura-light-noir/theme.css +379 -137
  593. package/resources/themes/aura-light-pink/theme.css +379 -137
  594. package/resources/themes/aura-light-purple/theme.css +379 -137
  595. package/resources/themes/aura-light-teal/theme.css +379 -137
  596. package/resources/themes/bootstrap4-dark-blue/theme.css +356 -129
  597. package/resources/themes/bootstrap4-dark-purple/theme.css +356 -129
  598. package/resources/themes/bootstrap4-light-blue/theme.css +356 -129
  599. package/resources/themes/bootstrap4-light-purple/theme.css +356 -129
  600. package/resources/themes/fluent-light/theme.css +340 -119
  601. package/resources/themes/lara-dark-amber/theme.css +365 -129
  602. package/resources/themes/lara-dark-blue/theme.css +365 -129
  603. package/resources/themes/lara-dark-cyan/theme.css +365 -129
  604. package/resources/themes/lara-dark-green/theme.css +365 -129
  605. package/resources/themes/lara-dark-indigo/theme.css +365 -129
  606. package/resources/themes/lara-dark-pink/theme.css +365 -129
  607. package/resources/themes/lara-dark-purple/theme.css +365 -129
  608. package/resources/themes/lara-dark-teal/theme.css +365 -129
  609. package/resources/themes/lara-light-amber/theme.css +361 -129
  610. package/resources/themes/lara-light-blue/theme.css +361 -129
  611. package/resources/themes/lara-light-cyan/theme.css +361 -129
  612. package/resources/themes/lara-light-green/theme.css +361 -129
  613. package/resources/themes/lara-light-indigo/theme.css +361 -129
  614. package/resources/themes/lara-light-pink/theme.css +361 -129
  615. package/resources/themes/lara-light-purple/theme.css +361 -129
  616. package/resources/themes/lara-light-teal/theme.css +361 -129
  617. package/resources/themes/luna-amber/theme.css +346 -119
  618. package/resources/themes/luna-blue/theme.css +346 -119
  619. package/resources/themes/luna-green/theme.css +346 -119
  620. package/resources/themes/luna-pink/theme.css +346 -119
  621. package/resources/themes/md-dark-deeppurple/theme.css +431 -185
  622. package/resources/themes/md-dark-indigo/theme.css +431 -185
  623. package/resources/themes/md-light-deeppurple/theme.css +431 -185
  624. package/resources/themes/md-light-indigo/theme.css +431 -185
  625. package/resources/themes/mdc-dark-deeppurple/theme.css +431 -185
  626. package/resources/themes/mdc-dark-indigo/theme.css +431 -185
  627. package/resources/themes/mdc-light-deeppurple/theme.css +431 -185
  628. package/resources/themes/mdc-light-indigo/theme.css +431 -185
  629. package/resources/themes/mira/theme.css +346 -119
  630. package/resources/themes/nano/theme.css +346 -119
  631. package/resources/themes/nova/theme.css +346 -119
  632. package/resources/themes/nova-accent/theme.css +346 -119
  633. package/resources/themes/nova-alt/theme.css +346 -119
  634. package/resources/themes/nova-vue/theme.css +346 -119
  635. package/resources/themes/rhea/theme.css +346 -119
  636. package/resources/themes/saga-blue/theme.css +346 -119
  637. package/resources/themes/saga-green/theme.css +346 -119
  638. package/resources/themes/saga-orange/theme.css +346 -119
  639. package/resources/themes/saga-purple/theme.css +346 -119
  640. package/resources/themes/soho-dark/theme.css +356 -129
  641. package/resources/themes/soho-light/theme.css +356 -129
  642. package/resources/themes/tailwind-light/theme.css +346 -119
  643. package/resources/themes/vela-blue/theme.css +346 -119
  644. package/resources/themes/vela-green/theme.css +346 -119
  645. package/resources/themes/vela-orange/theme.css +346 -119
  646. package/resources/themes/vela-purple/theme.css +346 -119
  647. package/resources/themes/viva-dark/theme.css +357 -130
  648. package/resources/themes/viva-light/theme.css +357 -130
  649. package/scrollpanel/ScrollPanel.vue +2 -1
  650. package/scrollpanel/scrollpanel.cjs.js +2 -1
  651. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  652. package/scrollpanel/scrollpanel.esm.js +2 -1
  653. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  654. package/scrollpanel/scrollpanel.js +2 -1
  655. package/scrollpanel/scrollpanel.min.js +1 -1
  656. package/scrolltop/ScrollTop.vue +2 -1
  657. package/scrolltop/scrolltop.cjs.js +2 -1
  658. package/scrolltop/scrolltop.cjs.min.js +1 -1
  659. package/scrolltop/scrolltop.esm.js +2 -1
  660. package/scrolltop/scrolltop.esm.min.js +1 -1
  661. package/scrolltop/scrolltop.js +2 -1
  662. package/scrolltop/scrolltop.min.js +1 -1
  663. package/selectbutton/SelectButton.vue +44 -17
  664. package/selectbutton/selectbutton.cjs.js +41 -18
  665. package/selectbutton/selectbutton.cjs.min.js +1 -1
  666. package/selectbutton/selectbutton.esm.js +41 -18
  667. package/selectbutton/selectbutton.esm.min.js +1 -1
  668. package/selectbutton/selectbutton.js +41 -18
  669. package/selectbutton/selectbutton.min.js +1 -1
  670. package/selectbutton/style/selectbuttonstyle.cjs.js +1 -1
  671. package/selectbutton/style/selectbuttonstyle.cjs.min.js +1 -1
  672. package/selectbutton/style/selectbuttonstyle.esm.js +1 -1
  673. package/selectbutton/style/selectbuttonstyle.esm.min.js +1 -1
  674. package/selectbutton/style/selectbuttonstyle.js +1 -1
  675. package/selectbutton/style/selectbuttonstyle.min.js +1 -1
  676. package/sidebar/Sidebar.vue +1 -1
  677. package/sidebar/sidebar.cjs.js +1 -7
  678. package/sidebar/sidebar.cjs.min.js +1 -1
  679. package/sidebar/sidebar.esm.js +1 -7
  680. package/sidebar/sidebar.esm.min.js +1 -1
  681. package/sidebar/sidebar.js +1 -7
  682. package/sidebar/sidebar.min.js +1 -1
  683. package/skeleton/Skeleton.vue +2 -1
  684. package/skeleton/skeleton.cjs.js +2 -1
  685. package/skeleton/skeleton.cjs.min.js +1 -1
  686. package/skeleton/skeleton.esm.js +2 -1
  687. package/skeleton/skeleton.esm.min.js +1 -1
  688. package/skeleton/skeleton.js +2 -1
  689. package/skeleton/skeleton.min.js +1 -1
  690. package/slider/Slider.vue +2 -1
  691. package/slider/slider.cjs.js +2 -1
  692. package/slider/slider.cjs.min.js +1 -1
  693. package/slider/slider.esm.js +2 -1
  694. package/slider/slider.esm.min.js +1 -1
  695. package/slider/slider.js +2 -1
  696. package/slider/slider.min.js +1 -1
  697. package/speeddial/SpeedDial.vue +2 -1
  698. package/speeddial/speeddial.cjs.js +2 -1
  699. package/speeddial/speeddial.cjs.min.js +1 -1
  700. package/speeddial/speeddial.esm.js +2 -1
  701. package/speeddial/speeddial.esm.min.js +1 -1
  702. package/speeddial/speeddial.js +2 -1
  703. package/speeddial/speeddial.min.js +1 -1
  704. package/splitbutton/SplitButton.d.ts +3 -3
  705. package/splitbutton/SplitButton.vue +2 -1
  706. package/splitbutton/splitbutton.cjs.js +4 -3
  707. package/splitbutton/splitbutton.cjs.min.js +1 -1
  708. package/splitbutton/splitbutton.esm.js +4 -3
  709. package/splitbutton/splitbutton.esm.min.js +1 -1
  710. package/splitbutton/splitbutton.js +4 -3
  711. package/splitbutton/splitbutton.min.js +1 -1
  712. package/splitter/Splitter.vue +16 -13
  713. package/splitter/splitter.cjs.js +17 -14
  714. package/splitter/splitter.cjs.min.js +1 -1
  715. package/splitter/splitter.esm.js +17 -14
  716. package/splitter/splitter.esm.min.js +1 -1
  717. package/splitter/splitter.js +17 -14
  718. package/splitter/splitter.min.js +1 -1
  719. package/splitterpanel/SplitterPanel.vue +10 -2
  720. package/splitterpanel/splitterpanel.cjs.js +10 -2
  721. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  722. package/splitterpanel/splitterpanel.esm.js +10 -2
  723. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  724. package/splitterpanel/splitterpanel.js +10 -2
  725. package/splitterpanel/splitterpanel.min.js +1 -1
  726. package/stepper/BaseStepper.vue +4 -0
  727. package/stepper/Stepper.d.ts +197 -0
  728. package/stepper/Stepper.vue +162 -129
  729. package/stepper/StepperContent.vue +47 -0
  730. package/stepper/StepperHeader.vue +41 -0
  731. package/stepper/StepperSeparator.vue +23 -0
  732. package/stepper/package.json +9 -0
  733. package/stepper/stepper.cjs.js +347 -129
  734. package/stepper/stepper.cjs.min.js +1 -1
  735. package/stepper/stepper.esm.js +348 -130
  736. package/stepper/stepper.esm.min.js +1 -1
  737. package/stepper/stepper.js +347 -129
  738. package/stepper/stepper.min.js +1 -1
  739. package/stepper/style/StepperStyle.d.ts +3 -0
  740. package/stepper/style/package.json +6 -0
  741. package/stepper/style/stepperstyle.cjs.js +25 -19
  742. package/stepper/style/stepperstyle.cjs.min.js +1 -1
  743. package/stepper/style/stepperstyle.esm.js +25 -19
  744. package/stepper/style/stepperstyle.esm.min.js +1 -1
  745. package/stepper/style/stepperstyle.js +25 -19
  746. package/stepper/style/stepperstyle.min.js +1 -1
  747. package/stepperpanel/BaseStepperPanel.vue +18 -0
  748. package/stepperpanel/StepperPanel.d.ts +286 -0
  749. package/stepperpanel/StepperPanel.vue +12 -0
  750. package/stepperpanel/package.json +9 -0
  751. package/{step/step.cjs.js → stepperpanel/stepperpanel.cjs.js} +11 -11
  752. package/stepperpanel/stepperpanel.cjs.min.js +1 -0
  753. package/{step/step.esm.js → stepperpanel/stepperpanel.esm.js} +10 -10
  754. package/stepperpanel/stepperpanel.esm.min.js +1 -0
  755. package/{step/step.js → stepperpanel/stepperpanel.js} +12 -12
  756. package/stepperpanel/stepperpanel.min.js +1 -0
  757. package/stepperpanel/style/StepperPanelStyle.d.ts +3 -0
  758. package/stepperpanel/style/package.json +6 -0
  759. package/stepperpanel/style/stepperpanelstyle.cjs.js +5 -0
  760. package/stepperpanel/style/stepperpanelstyle.esm.js +3 -0
  761. package/stepperpanel/style/stepperpanelstyle.js +10 -0
  762. package/stepperpanel/style/stepperpanelstyle.min.js +1 -0
  763. package/steps/Steps.vue +2 -1
  764. package/steps/steps.cjs.js +2 -1
  765. package/steps/steps.cjs.min.js +1 -1
  766. package/steps/steps.esm.js +2 -1
  767. package/steps/steps.esm.min.js +1 -1
  768. package/steps/steps.js +2 -1
  769. package/steps/steps.min.js +1 -1
  770. package/styleclass/StyleClass.d.ts +2 -2
  771. package/tabmenu/TabMenu.vue +3 -2
  772. package/tabmenu/tabmenu.cjs.js +3 -2
  773. package/tabmenu/tabmenu.cjs.min.js +1 -1
  774. package/tabmenu/tabmenu.esm.js +3 -2
  775. package/tabmenu/tabmenu.esm.min.js +1 -1
  776. package/tabmenu/tabmenu.js +3 -2
  777. package/tabmenu/tabmenu.min.js +1 -1
  778. package/tabpanel/TabPanel.d.ts +1 -1
  779. package/tabview/TabView.d.ts +31 -1
  780. package/tabview/TabView.vue +4 -3
  781. package/tabview/tabview.cjs.js +4 -3
  782. package/tabview/tabview.cjs.min.js +1 -1
  783. package/tabview/tabview.esm.js +4 -3
  784. package/tabview/tabview.esm.min.js +1 -1
  785. package/tabview/tabview.js +4 -3
  786. package/tabview/tabview.min.js +1 -1
  787. package/tag/Tag.d.ts +2 -2
  788. package/tag/Tag.vue +3 -2
  789. package/tag/tag.cjs.js +3 -2
  790. package/tag/tag.cjs.min.js +1 -1
  791. package/tag/tag.esm.js +3 -2
  792. package/tag/tag.esm.min.js +1 -1
  793. package/tag/tag.js +3 -2
  794. package/tag/tag.min.js +1 -1
  795. package/terminal/Terminal.vue +2 -1
  796. package/terminal/terminal.cjs.js +2 -1
  797. package/terminal/terminal.cjs.min.js +1 -1
  798. package/terminal/terminal.esm.js +2 -1
  799. package/terminal/terminal.esm.min.js +1 -1
  800. package/terminal/terminal.js +2 -1
  801. package/terminal/terminal.min.js +1 -1
  802. package/textarea/Textarea.vue +2 -1
  803. package/textarea/textarea.cjs.js +4 -2
  804. package/textarea/textarea.cjs.min.js +1 -1
  805. package/textarea/textarea.esm.js +4 -2
  806. package/textarea/textarea.esm.min.js +1 -1
  807. package/textarea/textarea.js +4 -2
  808. package/textarea/textarea.min.js +1 -1
  809. package/tieredmenu/TieredMenu.d.ts +2 -2
  810. package/tieredmenu/TieredMenu.vue +11 -4
  811. package/tieredmenu/TieredMenuSub.vue +13 -3
  812. package/tieredmenu/tieredmenu.cjs.js +31 -22
  813. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  814. package/tieredmenu/tieredmenu.esm.js +31 -22
  815. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  816. package/tieredmenu/tieredmenu.js +31 -22
  817. package/tieredmenu/tieredmenu.min.js +1 -1
  818. package/timeline/Timeline.vue +2 -1
  819. package/timeline/timeline.cjs.js +2 -1
  820. package/timeline/timeline.cjs.min.js +1 -1
  821. package/timeline/timeline.esm.js +2 -1
  822. package/timeline/timeline.esm.min.js +1 -1
  823. package/timeline/timeline.js +2 -1
  824. package/timeline/timeline.min.js +1 -1
  825. package/toast/Toast.vue +1 -1
  826. package/toast/toast.cjs.js +1 -1
  827. package/toast/toast.cjs.min.js +1 -1
  828. package/toast/toast.esm.js +1 -1
  829. package/toast/toast.esm.min.js +1 -1
  830. package/toast/toast.js +1 -1
  831. package/toast/toast.min.js +1 -1
  832. package/togglebutton/ToggleButton.vue +5 -1
  833. package/togglebutton/togglebutton.cjs.js +5 -2
  834. package/togglebutton/togglebutton.cjs.min.js +1 -1
  835. package/togglebutton/togglebutton.esm.js +5 -2
  836. package/togglebutton/togglebutton.esm.min.js +1 -1
  837. package/togglebutton/togglebutton.js +5 -2
  838. package/togglebutton/togglebutton.min.js +1 -1
  839. package/toolbar/Toolbar.vue +3 -2
  840. package/toolbar/toolbar.cjs.js +3 -2
  841. package/toolbar/toolbar.cjs.min.js +1 -1
  842. package/toolbar/toolbar.esm.js +3 -2
  843. package/toolbar/toolbar.esm.min.js +1 -1
  844. package/toolbar/toolbar.js +3 -2
  845. package/toolbar/toolbar.min.js +1 -1
  846. package/tooltip/tooltip.cjs.js +6 -7
  847. package/tooltip/tooltip.cjs.min.js +1 -1
  848. package/tooltip/tooltip.esm.js +6 -7
  849. package/tooltip/tooltip.esm.min.js +1 -1
  850. package/tooltip/tooltip.js +6 -7
  851. package/tooltip/tooltip.min.js +1 -1
  852. package/tree/Tree.d.ts +2 -2
  853. package/tree/Tree.vue +2 -1
  854. package/tree/tree.cjs.js +2 -1
  855. package/tree/tree.cjs.min.js +1 -1
  856. package/tree/tree.esm.js +2 -1
  857. package/tree/tree.esm.min.js +1 -1
  858. package/tree/tree.js +2 -1
  859. package/tree/tree.min.js +1 -1
  860. package/treeselect/TreeSelect.d.ts +2 -2
  861. package/treeselect/TreeSelect.vue +2 -1
  862. package/treeselect/treeselect.cjs.js +2 -1
  863. package/treeselect/treeselect.cjs.min.js +1 -1
  864. package/treeselect/treeselect.esm.js +2 -1
  865. package/treeselect/treeselect.esm.min.js +1 -1
  866. package/treeselect/treeselect.js +2 -1
  867. package/treeselect/treeselect.min.js +1 -1
  868. package/treetable/TreeTable.d.ts +4 -4
  869. package/treetable/TreeTable.vue +2 -1
  870. package/treetable/treetable.cjs.js +2 -1
  871. package/treetable/treetable.cjs.min.js +1 -1
  872. package/treetable/treetable.esm.js +2 -1
  873. package/treetable/treetable.esm.min.js +1 -1
  874. package/treetable/treetable.js +2 -1
  875. package/treetable/treetable.min.js +1 -1
  876. package/tristatecheckbox/TriStateCheckbox.vue +5 -1
  877. package/tristatecheckbox/tristatecheckbox.cjs.js +5 -2
  878. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  879. package/tristatecheckbox/tristatecheckbox.esm.js +5 -2
  880. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  881. package/tristatecheckbox/tristatecheckbox.js +5 -2
  882. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  883. package/ts-helpers.d.ts +2 -0
  884. package/vetur-attributes.json +36 -0
  885. package/vetur-tags.json +14 -0
  886. package/virtualscroller/VirtualScroller.vue +17 -10
  887. package/virtualscroller/virtualscroller.cjs.js +23 -16
  888. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  889. package/virtualscroller/virtualscroller.esm.js +23 -16
  890. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  891. package/virtualscroller/virtualscroller.js +23 -16
  892. package/virtualscroller/virtualscroller.min.js +1 -1
  893. package/web-types.json +119 -1
  894. package/step/BaseStep.vue +0 -18
  895. package/step/Step.vue +0 -12
  896. package/step/step.cjs.min.js +0 -1
  897. package/step/step.esm.min.js +0 -1
  898. package/step/step.min.js +0 -1
  899. package/step/style/stepstyle.cjs.js +0 -5
  900. package/step/style/stepstyle.esm.js +0 -3
  901. package/step/style/stepstyle.js +0 -10
  902. package/step/style/stepstyle.min.js +0 -1
  903. /package/{step/style/stepstyle.cjs.min.js → stepperpanel/style/stepperpanelstyle.cjs.min.js} +0 -0
  904. /package/{step/style/stepstyle.esm.min.js → stepperpanel/style/stepperpanelstyle.esm.min.js} +0 -0
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.cascadeselect=function(e,t,i,n,o,s,r,l,a,c){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=p(e),d=p(t),h=p(i),f=p(n),O=p(o),v=p(r),y={name:"BaseCascadeSelect",extends:v.default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,placeholder:String,variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:Boolean,dataKey:null,inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},dropdownIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},optionGroupIcon:{type:String,default:void 0},autoOptionFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:p(l).default,provide:function(){return{$parentInstance:this}}},b={name:"CascadeSelectSub",hostName:"CascadeSelect",extends:v.default,emits:["option-change","option-focus-change"],container:null,props:{selectId:String,focusedOptionId:String,options:Array,optionLabel:String,optionValue:String,optionDisabled:null,optionGroupIcon:String,optionGroupLabel:String,optionGroupChildren:{type:[String,Array],default:null},activeOptionPath:Array,level:Number,templates:null,isParentMount:Boolean},data:function(){return{mounted:!1}},watch:{isParentMount:{handler:function(e){e&&s.DomHandler.nestedPosition(this.container,this.level)}}},mounted:function(){(this.isParentMount||0===this.level)&&s.DomHandler.nestedPosition(this.container,this.level),this.mounted=!0},methods:{getOptionId:function(e){return"".concat(this.selectId,"_").concat(e.key)},getOptionLabel:function(e){return this.optionLabel?s.ObjectUtils.resolveFieldData(e.option,this.optionLabel):e.option},getOptionValue:function(e){return this.optionValue?s.ObjectUtils.resolveFieldData(e.option,this.optionValue):e.option},getPTOptions:function(e,t,i){return this.ptm(i,{context:{item:e,index:t,level:this.level,itemGroup:this.isOptionGroup(e),active:this.isOptionActive(e),focused:this.isOptionFocused(e),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&s.ObjectUtils.resolveFieldData(e.option,this.optionDisabled)},getOptionGroupLabel:function(e){return this.optionGroupLabel?s.ObjectUtils.resolveFieldData(e.option,this.optionGroupLabel):null},getOptionGroupChildren:function(e){return e.children},isOptionGroup:function(e){return s.ObjectUtils.isNotEmpty(e.children)},isOptionSelected:function(e){return!this.isOptionGroup(e)&&this.isOptionActive(e)},isOptionActive:function(e){return this.activeOptionPath.some((function(t){return t.key===e.key}))},isOptionFocused:function(e){return this.focusedOptionId===this.getOptionId(e)},getOptionLabelToRender:function(e){return this.isOptionGroup(e)?this.getOptionGroupLabel(e):this.getOptionLabel(e)},onOptionClick:function(e,t){this.$emit("option-change",{originalEvent:e,processedOption:t,isFocus:!0})},onOptionMouseMove:function(e,t){this.$emit("option-focus-change",{originalEvent:e,processedOption:t})},onOptionChange:function(e){this.$emit("option-change",e)},onOptionFocusChange:function(e){this.$emit("option-focus-change",e)},containerRef:function(e){this.container=e}},directives:{ripple:p(a).default},components:{AngleRightIcon:u.default}},g=["id","aria-label","aria-selected","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-item-group","data-p-highlight","data-p-focus","data-p-disabled"],m=["onClick","onMousemove"];b.render=function(e,t,i,n,o,s){var r=c.resolveComponent("AngleRightIcon"),l=c.resolveComponent("CascadeSelectSub",!0),a=c.resolveDirective("ripple");return c.openBlock(),c.createElementBlock("ul",c.mergeProps({ref:s.containerRef,class:e.cx("list")},e.ptm(0===i.level?"list":"sublist")),[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.options,(function(t,n){return c.openBlock(),c.createElementBlock("li",c.mergeProps({key:s.getOptionLabelToRender(t),id:s.getOptionId(t),class:e.cx("item",{processedOption:t}),role:"treeitem","aria-label":s.getOptionLabelToRender(t),"aria-selected":s.isOptionGroup(t)?void 0:s.isOptionSelected(t),"aria-expanded":s.isOptionGroup(t)?s.isOptionActive(t):void 0,"aria-level":i.level+1,"aria-setsize":i.options.length,"aria-posinset":n+1},s.getPTOptions(t,n,"item"),{"data-p-item-group":s.isOptionGroup(t),"data-p-highlight":s.isOptionActive(t),"data-p-focus":s.isOptionFocused(t),"data-p-disabled":s.isOptionDisabled(t)}),[c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps({class:e.cx("content"),onClick:function(e){return s.onOptionClick(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,t)}},s.getPTOptions(t,n,"content")),[i.templates.option?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.templates.option),{key:0,option:t.option},null,8,["option"])):(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:1,class:e.cx("text")},s.getPTOptions(t,n,"text")),c.toDisplayString(s.getOptionLabelToRender(t)),17)),s.isOptionGroup(t)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[i.templates.optiongroupicon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.templates.optiongroupicon),{key:0,"aria-hidden":"true"})):i.optionGroupIcon?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:1,class:[e.cx("groupIcon"),i.optionGroupIcon],"aria-hidden":"true"},s.getPTOptions(t,n,"groupIcon")),null,16)):(c.openBlock(),c.createBlock(r,c.mergeProps({key:2,class:e.cx("groupIcon"),"aria-hidden":"true"},s.getPTOptions(t,n,"groupIcon")),null,16,["class"]))],64)):c.createCommentVNode("",!0)],16,m)),[[a]]),s.isOptionGroup(t)&&s.isOptionActive(t)?(c.openBlock(),c.createBlock(l,{key:0,role:"group",class:c.normalizeClass(e.cx("sublist")),selectId:i.selectId,focusedOptionId:i.focusedOptionId,options:s.getOptionGroupChildren(t),activeOptionPath:i.activeOptionPath,level:i.level+1,templates:i.templates,optionLabel:i.optionLabel,optionValue:i.optionValue,optionDisabled:i.optionDisabled,optionGroupIcon:i.optionGroupIcon,optionGroupLabel:i.optionGroupLabel,optionGroupChildren:i.optionGroupChildren,onOptionChange:s.onOptionChange,onOptionFocusChange:s.onOptionFocusChange,pt:e.pt,unstyled:e.unstyled,isParentMount:o.mounted},null,8,["class","selectId","focusedOptionId","options","activeOptionPath","level","templates","optionLabel","optionValue","optionDisabled","optionGroupIcon","optionGroupLabel","optionGroupChildren","onOptionChange","onOptionFocusChange","pt","unstyled","isParentMount"])):c.createCommentVNode("",!0)],16,g)})),128))],16)};var I={name:"CascadeSelect",extends:y,emits:["update:modelValue","change","focus","blur","click","group-change","before-show","before-hide","hide","show"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,searchTimeout:null,searchValue:null,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionInfo:{index:-1,level:0,parentKey:""},activeOptionPath:[],overlayVisible:!1,dirty:!1}},watch:{"$attrs.id":function(e){this.id=e||s.UniqueComponentId()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||s.UniqueComponentId(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(s.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionLabel:function(e){return this.optionLabel?s.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?s.ObjectUtils.resolveFieldData(e,this.optionValue):e},isOptionDisabled:function(e){return!!this.optionDisabled&&s.ObjectUtils.resolveFieldData(e,this.optionDisabled)},getOptionGroupLabel:function(e){return this.optionGroupLabel?s.ObjectUtils.resolveFieldData(e,this.optionGroupLabel):null},getOptionGroupChildren:function(e,t){return s.ObjectUtils.isString(this.optionGroupChildren)?s.ObjectUtils.resolveFieldData(e,this.optionGroupChildren):s.ObjectUtils.resolveFieldData(e,this.optionGroupChildren[t])},isOptionGroup:function(e,t){return Object.prototype.hasOwnProperty.call(e,this.optionGroupChildren[t])},getProccessedOptionLabel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isProccessedOptionGroup(e)?this.getOptionGroupLabel(e.option,e.level):this.getOptionLabel(e.option)},isProccessedOptionGroup:function(e){return s.ObjectUtils.isNotEmpty(null==e?void 0:e.children)},show:function(e){if(this.$emit("before-show"),this.overlayVisible=!0,this.activeOptionPath=this.hasSelectedOption?this.findOptionPathByValue(this.modelValue):this.activeOptionPath,this.hasSelectedOption&&s.ObjectUtils.isNotEmpty(this.activeOptionPath)){var t=this.activeOptionPath[this.activeOptionPath.length-1];this.focusedOptionInfo={index:t.index,level:t.level,parentKey:t.parentKey}}else this.focusedOptionInfo={index:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),level:0,parentKey:""};e&&s.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.clicked=!1,t.activeOptionPath=[],t.focusedOptionInfo={index:-1,level:0,parentKey:""},e&&s.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||this.loading)e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!t&&s.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key))}this.clicked=!1}},onOptionChange:function(e){var t=e.originalEvent,i=e.processedOption,n=e.isFocus,o=e.isHide;if(!s.ObjectUtils.isEmpty(i)){var r=i.index,l=i.level,a=i.parentKey,c=s.ObjectUtils.isNotEmpty(i.children),p=this.activeOptionPath.filter((function(e){return e.parentKey!==a}));p.push(i),this.focusedOptionInfo={index:r,level:l,parentKey:a},this.activeOptionPath=p,c?this.onOptionGroupSelect(t,i):this.onOptionSelect(t,i,o),n&&s.DomHandler.focus(this.$refs.focusInput)}},onOptionFocusChange:function(e){if(this.focusOnHover){var t=e.originalEvent,i=e.processedOption,n=i.index;this.focusedOptionInfo={index:n,level:i.level,parentKey:i.parentKey},this.changeFocusedOptionIndex(t,n)}},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(null==t?void 0:t.option);this.activeOptionPath.forEach((function(e){return e.selected=!0})),this.updateModel(e,n),i&&this.hide(!0)},onOptionGroupSelect:function(e,t){this.dirty=!0,this.$emit("group-change",{originalEvent:e,value:t.option})},onContainerClick:function(e){this.disabled||this.loading||(this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide():this.show(),s.DomHandler.focus(this.$refs.focusInput)),this.clicked=!0,this.$emit("click",e))},onOverlayClick:function(e){f.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionInfo.index?this.findNextOptionIndex(this.focusedOptionInfo.index):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t)}else this.show();e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedOptionInfo.index){var t=this.visibleOptions[this.focusedOptionInfo.index];!this.isProccessedOptionGroup(t)&&this.onOptionChange({originalEvent:e,processedOption:t})}this.overlayVisible&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedOptionInfo.index?this.findPrevOptionIndex(this.focusedOptionInfo.index):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){var t=this;if(this.overlayVisible){var i=this.visibleOptions[this.focusedOptionInfo.index],n=this.activeOptionPath.find((function(e){return e.key===(null==i?void 0:i.parentKey)})),o=""===this.focusedOptionInfo.parentKey||n&&n.key===this.focusedOptionInfo.parentKey,r=s.ObjectUtils.isEmpty(null==i?void 0:i.parent);o&&(this.activeOptionPath=this.activeOptionPath.filter((function(e){return e.parentKey!==t.focusedOptionInfo.parentKey}))),r||(this.focusedOptionInfo={index:-1,parentKey:n?n.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}},onArrowRightKey:function(e){if(this.overlayVisible){var t=this.visibleOptions[this.focusedOptionInfo.index];if(this.isProccessedOptionGroup(t))this.activeOptionPath.some((function(e){return(null==t?void 0:t.key)===e.key}))?(this.focusedOptionInfo={index:-1,parentKey:null==t?void 0:t.key},this.searchValue="",this.onArrowDownKey(e)):this.onOptionChange({originalEvent:e,processedOption:t});e.preventDefault()}},onHomeKey:function(e){this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show(),e.preventDefault()},onEndKey:function(e){this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show(),e.preventDefault()},onEnterKey:function(e){if(this.overlayVisible){if(-1!==this.focusedOptionInfo.index){var t=this.visibleOptions[this.focusedOptionInfo.index],i=this.isProccessedOptionGroup(t);this.onOptionChange({originalEvent:e,processedOption:t}),!i&&this.hide()}}else this.onArrowDownKey(e);e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedOptionInfo.index){var t=this.visibleOptions[this.focusedOptionInfo.index];!this.isProccessedOptionGroup(t)&&this.onOptionChange({originalEvent:e,processedOption:t})}this.overlayVisible&&this.hide()},onOverlayEnter:function(e){s.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),s.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null,this.dirty=!1},onOverlayAfterLeave:function(e){s.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?s.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=s.DomHandler.getOuterWidth(this.$el)+"px",s.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new s.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!s.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOptionMatched:function(e){var t;return this.isValidOption(e)&&(null===(t=this.getProccessedOptionLabel(e))||void 0===t?void 0:t.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isValidOption:function(e){return s.ObjectUtils.isNotEmpty(e)&&!this.isOptionDisabled(e.option)},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.activeOptionPath.some((function(t){return t.key===e.key}))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return s.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?s.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)}))},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},findOptionPathByValue:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(t=t||0===i&&this.processedOptions))return null;if(s.ObjectUtils.isEmpty(e))return[];for(var n=0;n<t.length;n++){var o=t[n];if(s.ObjectUtils.equals(e,this.getOptionValue(o.option),this.equalityKey))return[o];var r=this.findOptionPathByValue(e,o.children,i+1);if(r)return r.unshift(o),r}},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return s.ObjectUtils.isNotEmpty(this.searchValue)&&(-1!==(n=-1!==this.focusedOptionInfo.index?-1===(n=this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionInfo.index).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionInfo.index:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionInfo.index&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionInfo.index!==t&&(this.focusedOptionInfo.index=t,this.scrollInView(),this.selectOnFocus&&this.onOptionChange({originalEvent:e,processedOption:this.visibleOptions[t],isHide:!1}))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var i=-1!==t?"".concat(e.id,"_").concat(t):e.focusedOptionId,n=s.DomHandler.findSingle(e.list,'li[id="'.concat(i,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})}))},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionInfo.index=this.findFirstFocusedOptionIndex(),this.onOptionChange({processedOption:this.visibleOptions[this.focusedOptionInfo.index],isHide:!1}),!this.overlayVisible&&(this.focusedOptionInfo={index:-1,level:0,parentKey:""}))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},createProcessedOptions:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=[];return e&&e.forEach((function(e,r){var l=(""!==o?o+"_":"")+r,a={option:e,index:r,level:i,key:l,parent:n,parentKey:o};a.children=t.createProcessedOptions(t.getOptionGroupChildren(e,i),i+1,a,l),s.push(a)})),s},overlayRef:function(e){this.overlay=e}},computed:{hasSelectedOption:function(){return s.ObjectUtils.isNotEmpty(this.modelValue)},label:function(){var e=this.placeholder||"p-emptylabel";if(this.hasSelectedOption){var t=this.findOptionPathByValue(this.modelValue),i=s.ObjectUtils.isNotEmpty(t)?t[t.length-1]:null;return i?this.getOptionLabel(i.option):e}return e},processedOptions:function(){return this.createProcessedOptions(this.options||[])},visibleOptions:function(){var e=this,t=this.activeOptionPath.find((function(t){return t.key===e.focusedOptionInfo.parentKey}));return t?t.children:this.processedOptions},equalityKey:function(){return this.optionValue?null:this.dataKey},searchResultMessageText:function(){return s.ObjectUtils.isNotEmpty(this.visibleOptions)?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionInfo.index?"".concat(this.id).concat(s.ObjectUtils.isNotEmpty(this.focusedOptionInfo.parentKey)?"_"+this.focusedOptionInfo.parentKey:"","_").concat(this.focusedOptionInfo.index):null}},components:{CascadeSelectSub:b,Portal:O.default,ChevronDownIcon:d.default,SpinnerIcon:h.default,AngleRightIcon:u.default}};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function L(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?k(Object(i),!0).forEach((function(t){S(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function S(e,t,i){var n;return(t="symbol"==x(n=C(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function C(e,t){if("object"!=x(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P=["id","disabled","placeholder","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"];return I.render=function(e,t,i,n,o,s){var r=c.resolveComponent("SpinnerIcon"),l=c.resolveComponent("CascadeSelectSub"),a=c.resolveComponent("Portal");return c.openBlock(),c.createElementBlock("div",c.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[5]||(t[5]=function(e){return s.onContainerClick(e)})},e.ptm("root")),[c.createElementVNode("div",c.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[c.createElementVNode("input",c.mergeProps({ref:"focusInput",id:e.inputId,type:"text",class:e.inputClass,style:e.inputStyle,readonly:"",disabled:e.disabled,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"tree","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_tree","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)})},L(L({},e.inputProps),e.ptm("input"))),null,16,P)],16),c.createElementVNode("span",c.mergeProps({class:e.cx("label")},e.ptm("label")),[c.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[c.createTextVNode(c.toDisplayString(s.label),1)]}))],16),c.createElementVNode("div",c.mergeProps({class:e.cx("dropdownButton"),role:"button",tabindex:"-1","aria-hidden":"true"},e.ptm("dropdownButton")),[e.loading?c.renderSlot(e.$slots,"loadingicon",{key:0,class:c.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(c.openBlock(),c.createBlock(r,c.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):c.renderSlot(e.$slots,"dropdownicon",{key:1,class:c.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),c.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),c.createElementVNode("span",c.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),c.toDisplayString(s.searchResultMessageText),17),c.createVNode(a,{appendTo:e.appendTo},{default:c.withCtx((function(){return[c.createVNode(c.Transition,c.mergeProps({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:c.withCtx((function(){return[o.overlayVisible?(c.openBlock(),c.createElementBlock("div",c.mergeProps({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[3]||(t[3]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[4]||(t[4]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},L(L({},e.panelProps),e.ptm("panel"))),[c.createElementVNode("div",c.mergeProps({class:e.cx("wrapper")},e.ptm("wrapper")),[c.createVNode(l,{id:o.id+"_tree",role:"tree","aria-orientation":"horizontal",selectId:o.id,focusedOptionId:o.focused?s.focusedOptionId:void 0,options:s.processedOptions,activeOptionPath:o.activeOptionPath,level:0,templates:e.$slots,optionLabel:e.optionLabel,optionValue:e.optionValue,optionDisabled:e.optionDisabled,optionGroupIcon:e.optionGroupIcon,optionGroupLabel:e.optionGroupLabel,optionGroupChildren:e.optionGroupChildren,onOptionChange:s.onOptionChange,onOptionFocusChange:s.onOptionFocusChange,pt:e.pt,unstyled:e.unstyled},null,8,["id","selectId","focusedOptionId","options","activeOptionPath","templates","optionLabel","optionValue","optionDisabled","optionGroupIcon","optionGroupLabel","optionGroupChildren","onOptionChange","onOptionFocusChange","pt","unstyled"])],16),c.createElementVNode("span",c.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),c.toDisplayString(s.selectedMessageText),17)],16)):c.createCommentVNode("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])],16)},I}(primevue.icons.angleright,primevue.icons.chevrondown,primevue.icons.spinner,primevue.overlayeventbus,primevue.portal,primevue.utils,primevue.basecomponent,primevue.cascadeselect.style,primevue.ripple,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.cascadeselect=function(e,t,i,n,o,s,r,l,a,c){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=p(e),d=p(t),h=p(i),f=p(n),O=p(o),v=p(r),y={name:"BaseCascadeSelect",extends:v.default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,placeholder:String,variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:Boolean,dataKey:null,inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},dropdownIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},optionGroupIcon:{type:String,default:void 0},autoOptionFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:p(l).default,provide:function(){return{$parentInstance:this}}},b={name:"CascadeSelectSub",hostName:"CascadeSelect",extends:v.default,emits:["option-change","option-focus-change"],container:null,props:{selectId:String,focusedOptionId:String,options:Array,optionLabel:String,optionValue:String,optionDisabled:null,optionGroupIcon:String,optionGroupLabel:String,optionGroupChildren:{type:[String,Array],default:null},activeOptionPath:Array,level:Number,templates:null,isParentMount:Boolean},data:function(){return{mounted:!1}},watch:{isParentMount:{handler:function(e){e&&s.DomHandler.nestedPosition(this.container,this.level)}}},mounted:function(){(this.isParentMount||0===this.level)&&s.DomHandler.nestedPosition(this.container,this.level),this.mounted=!0},methods:{getOptionId:function(e){return"".concat(this.selectId,"_").concat(e.key)},getOptionLabel:function(e){return this.optionLabel?s.ObjectUtils.resolveFieldData(e.option,this.optionLabel):e.option},getOptionValue:function(e){return this.optionValue?s.ObjectUtils.resolveFieldData(e.option,this.optionValue):e.option},getPTOptions:function(e,t,i){return this.ptm(i,{context:{item:e,index:t,level:this.level,itemGroup:this.isOptionGroup(e),active:this.isOptionActive(e),focused:this.isOptionFocused(e),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&s.ObjectUtils.resolveFieldData(e.option,this.optionDisabled)},getOptionGroupLabel:function(e){return this.optionGroupLabel?s.ObjectUtils.resolveFieldData(e.option,this.optionGroupLabel):null},getOptionGroupChildren:function(e){return e.children},isOptionGroup:function(e){return s.ObjectUtils.isNotEmpty(e.children)},isOptionSelected:function(e){return!this.isOptionGroup(e)&&this.isOptionActive(e)},isOptionActive:function(e){return this.activeOptionPath.some((function(t){return t.key===e.key}))},isOptionFocused:function(e){return this.focusedOptionId===this.getOptionId(e)},getOptionLabelToRender:function(e){return this.isOptionGroup(e)?this.getOptionGroupLabel(e):this.getOptionLabel(e)},onOptionClick:function(e,t){this.$emit("option-change",{originalEvent:e,processedOption:t,isFocus:!0})},onOptionMouseMove:function(e,t){this.$emit("option-focus-change",{originalEvent:e,processedOption:t})},onOptionChange:function(e){this.$emit("option-change",e)},onOptionFocusChange:function(e){this.$emit("option-focus-change",e)},containerRef:function(e){this.container=e}},directives:{ripple:p(a).default},components:{AngleRightIcon:u.default}},g=["id","aria-label","aria-selected","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-item-group","data-p-highlight","data-p-focus","data-p-disabled"],m=["onClick","onMousemove"];b.render=function(e,t,i,n,o,s){var r=c.resolveComponent("AngleRightIcon"),l=c.resolveComponent("CascadeSelectSub",!0),a=c.resolveDirective("ripple");return c.openBlock(),c.createElementBlock("ul",c.mergeProps({ref:s.containerRef,class:e.cx("list")},e.ptm(0===i.level?"list":"sublist")),[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.options,(function(t,n){return c.openBlock(),c.createElementBlock("li",c.mergeProps({key:s.getOptionLabelToRender(t),id:s.getOptionId(t),class:e.cx("item",{processedOption:t}),role:"treeitem","aria-label":s.getOptionLabelToRender(t),"aria-selected":s.isOptionGroup(t)?void 0:s.isOptionSelected(t),"aria-expanded":s.isOptionGroup(t)?s.isOptionActive(t):void 0,"aria-level":i.level+1,"aria-setsize":i.options.length,"aria-posinset":n+1},s.getPTOptions(t,n,"item"),{"data-p-item-group":s.isOptionGroup(t),"data-p-highlight":s.isOptionActive(t),"data-p-focus":s.isOptionFocused(t),"data-p-disabled":s.isOptionDisabled(t)}),[c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps({class:e.cx("content"),onClick:function(e){return s.onOptionClick(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,t)}},s.getPTOptions(t,n,"content")),[i.templates.option?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.templates.option),{key:0,option:t.option},null,8,["option"])):(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:1,class:e.cx("text")},s.getPTOptions(t,n,"text")),c.toDisplayString(s.getOptionLabelToRender(t)),17)),s.isOptionGroup(t)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[i.templates.optiongroupicon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.templates.optiongroupicon),{key:0,"aria-hidden":"true"})):i.optionGroupIcon?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:1,class:[e.cx("groupIcon"),i.optionGroupIcon],"aria-hidden":"true"},s.getPTOptions(t,n,"groupIcon")),null,16)):(c.openBlock(),c.createBlock(r,c.mergeProps({key:2,class:e.cx("groupIcon"),"aria-hidden":"true"},s.getPTOptions(t,n,"groupIcon")),null,16,["class"]))],64)):c.createCommentVNode("",!0)],16,m)),[[a]]),s.isOptionGroup(t)&&s.isOptionActive(t)?(c.openBlock(),c.createBlock(l,{key:0,role:"group",class:c.normalizeClass(e.cx("sublist")),selectId:i.selectId,focusedOptionId:i.focusedOptionId,options:s.getOptionGroupChildren(t),activeOptionPath:i.activeOptionPath,level:i.level+1,templates:i.templates,optionLabel:i.optionLabel,optionValue:i.optionValue,optionDisabled:i.optionDisabled,optionGroupIcon:i.optionGroupIcon,optionGroupLabel:i.optionGroupLabel,optionGroupChildren:i.optionGroupChildren,onOptionChange:s.onOptionChange,onOptionFocusChange:s.onOptionFocusChange,pt:e.pt,unstyled:e.unstyled,isParentMount:o.mounted},null,8,["class","selectId","focusedOptionId","options","activeOptionPath","level","templates","optionLabel","optionValue","optionDisabled","optionGroupIcon","optionGroupLabel","optionGroupChildren","onOptionChange","onOptionFocusChange","pt","unstyled","isParentMount"])):c.createCommentVNode("",!0)],16,g)})),128))],16)};var I={name:"CascadeSelect",extends:y,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur","click","group-change","before-show","before-hide","hide","show"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,searchTimeout:null,searchValue:null,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionInfo:{index:-1,level:0,parentKey:""},activeOptionPath:[],overlayVisible:!1,dirty:!1}},watch:{"$attrs.id":function(e){this.id=e||s.UniqueComponentId()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||s.UniqueComponentId(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(s.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionLabel:function(e){return this.optionLabel?s.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?s.ObjectUtils.resolveFieldData(e,this.optionValue):e},isOptionDisabled:function(e){return!!this.optionDisabled&&s.ObjectUtils.resolveFieldData(e,this.optionDisabled)},getOptionGroupLabel:function(e){return this.optionGroupLabel?s.ObjectUtils.resolveFieldData(e,this.optionGroupLabel):null},getOptionGroupChildren:function(e,t){return s.ObjectUtils.isString(this.optionGroupChildren)?s.ObjectUtils.resolveFieldData(e,this.optionGroupChildren):s.ObjectUtils.resolveFieldData(e,this.optionGroupChildren[t])},isOptionGroup:function(e,t){return Object.prototype.hasOwnProperty.call(e,this.optionGroupChildren[t])},getProccessedOptionLabel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isProccessedOptionGroup(e)?this.getOptionGroupLabel(e.option,e.level):this.getOptionLabel(e.option)},isProccessedOptionGroup:function(e){return s.ObjectUtils.isNotEmpty(null==e?void 0:e.children)},show:function(e){if(this.$emit("before-show"),this.overlayVisible=!0,this.activeOptionPath=this.hasSelectedOption?this.findOptionPathByValue(this.modelValue):this.activeOptionPath,this.hasSelectedOption&&s.ObjectUtils.isNotEmpty(this.activeOptionPath)){var t=this.activeOptionPath[this.activeOptionPath.length-1];this.focusedOptionInfo={index:t.index,level:t.level,parentKey:t.parentKey}}else this.focusedOptionInfo={index:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),level:0,parentKey:""};e&&s.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.clicked=!1,t.activeOptionPath=[],t.focusedOptionInfo={index:-1,level:0,parentKey:""},e&&s.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||this.loading)e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!t&&s.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key))}this.clicked=!1}},onOptionChange:function(e){var t=e.originalEvent,i=e.processedOption,n=e.isFocus,o=e.isHide;if(!s.ObjectUtils.isEmpty(i)){var r=i.index,l=i.level,a=i.parentKey,c=s.ObjectUtils.isNotEmpty(i.children),p=s.ObjectUtils.isEmpty(i.parent);if(this.isSelected(i)){var u=i.key;this.focusedOptionInfo={index:i.index,level:i.level,parentKey:i.parentKey},this.activeOptionPath=this.activeOptionPath.filter((function(e){return u!==e.key&&u.startsWith(e.key)})),this.dirty=!p}else{var d=this.activeOptionPath.filter((function(e){return e.parentKey!==a}));d.push(i),this.focusedOptionInfo={index:r,level:l,parentKey:a},this.activeOptionPath=d}c?this.onOptionGroupSelect(t,i):this.onOptionSelect(t,i,o),n&&s.DomHandler.focus(this.$refs.focusInput)}},onOptionFocusChange:function(e){if(this.focusOnHover){var t=e.originalEvent,i=e.processedOption,n=i.index;this.focusedOptionInfo={index:n,level:i.level,parentKey:i.parentKey},this.changeFocusedOptionIndex(t,n)}},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(null==t?void 0:t.option);this.activeOptionPath.forEach((function(e){return e.selected=!0})),this.updateModel(e,n),i&&this.hide(!0)},onOptionGroupSelect:function(e,t){this.dirty=!0,this.$emit("group-change",{originalEvent:e,value:t.option})},onContainerClick:function(e){this.disabled||this.loading||(this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide():this.show(),s.DomHandler.focus(this.$refs.focusInput)),this.clicked=!0,this.$emit("click",e))},onOverlayClick:function(e){f.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionInfo.index?this.findNextOptionIndex(this.focusedOptionInfo.index):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t)}else this.show();e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedOptionInfo.index){var t=this.visibleOptions[this.focusedOptionInfo.index];!this.isProccessedOptionGroup(t)&&this.onOptionChange({originalEvent:e,processedOption:t})}this.overlayVisible&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedOptionInfo.index?this.findPrevOptionIndex(this.focusedOptionInfo.index):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){var t=this;if(this.overlayVisible){var i=this.visibleOptions[this.focusedOptionInfo.index],n=this.activeOptionPath.find((function(e){return e.key===(null==i?void 0:i.parentKey)})),o=""===this.focusedOptionInfo.parentKey||n&&n.key===this.focusedOptionInfo.parentKey,r=s.ObjectUtils.isEmpty(null==i?void 0:i.parent);o&&(this.activeOptionPath=this.activeOptionPath.filter((function(e){return e.parentKey!==t.focusedOptionInfo.parentKey}))),r||(this.focusedOptionInfo={index:-1,parentKey:n?n.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}},onArrowRightKey:function(e){if(this.overlayVisible){var t=this.visibleOptions[this.focusedOptionInfo.index];if(this.isProccessedOptionGroup(t))this.activeOptionPath.some((function(e){return(null==t?void 0:t.key)===e.key}))?(this.focusedOptionInfo={index:-1,parentKey:null==t?void 0:t.key},this.searchValue="",this.onArrowDownKey(e)):this.onOptionChange({originalEvent:e,processedOption:t});e.preventDefault()}},onHomeKey:function(e){this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show(),e.preventDefault()},onEndKey:function(e){this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show(),e.preventDefault()},onEnterKey:function(e){if(this.overlayVisible){if(-1!==this.focusedOptionInfo.index){var t=this.visibleOptions[this.focusedOptionInfo.index],i=this.isProccessedOptionGroup(t);this.onOptionChange({originalEvent:e,processedOption:t}),!i&&this.hide()}}else this.onArrowDownKey(e);e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedOptionInfo.index){var t=this.visibleOptions[this.focusedOptionInfo.index];!this.isProccessedOptionGroup(t)&&this.onOptionChange({originalEvent:e,processedOption:t})}this.overlayVisible&&this.hide()},onOverlayEnter:function(e){s.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),s.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null,this.dirty=!1},onOverlayAfterLeave:function(e){s.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?s.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=s.DomHandler.getOuterWidth(this.$el)+"px",s.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new s.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!s.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOptionMatched:function(e){var t;return this.isValidOption(e)&&(null===(t=this.getProccessedOptionLabel(e))||void 0===t?void 0:t.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isValidOption:function(e){return s.ObjectUtils.isNotEmpty(e)&&!this.isOptionDisabled(e.option)},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.activeOptionPath.some((function(t){return t.key===e.key}))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return s.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?s.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)}))},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},findOptionPathByValue:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(t=t||0===i&&this.processedOptions))return null;if(s.ObjectUtils.isEmpty(e))return[];for(var n=0;n<t.length;n++){var o=t[n];if(s.ObjectUtils.equals(e,this.getOptionValue(o.option),this.equalityKey))return[o];var r=this.findOptionPathByValue(e,o.children,i+1);if(r)return r.unshift(o),r}},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return s.ObjectUtils.isNotEmpty(this.searchValue)&&(-1!==(n=-1!==this.focusedOptionInfo.index?-1===(n=this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionInfo.index).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionInfo.index:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionInfo.index&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionInfo.index!==t&&(this.focusedOptionInfo.index=t,this.scrollInView(),this.selectOnFocus&&this.onOptionChange({originalEvent:e,processedOption:this.visibleOptions[t],isHide:!1}))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var i=-1!==t?"".concat(e.id,"_").concat(t):e.focusedOptionId,n=s.DomHandler.findSingle(e.list,'li[id="'.concat(i,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})}))},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionInfo.index=this.findFirstFocusedOptionIndex(),this.onOptionChange({processedOption:this.visibleOptions[this.focusedOptionInfo.index],isHide:!1}),!this.overlayVisible&&(this.focusedOptionInfo={index:-1,level:0,parentKey:""}))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},createProcessedOptions:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=[];return e&&e.forEach((function(e,r){var l=(""!==o?o+"_":"")+r,a={option:e,index:r,level:i,key:l,parent:n,parentKey:o};a.children=t.createProcessedOptions(t.getOptionGroupChildren(e,i),i+1,a,l),s.push(a)})),s},overlayRef:function(e){this.overlay=e}},computed:{hasSelectedOption:function(){return s.ObjectUtils.isNotEmpty(this.modelValue)},label:function(){var e=this.placeholder||"p-emptylabel";if(this.hasSelectedOption){var t=this.findOptionPathByValue(this.modelValue),i=s.ObjectUtils.isNotEmpty(t)?t[t.length-1]:null;return i?this.getOptionLabel(i.option):e}return e},processedOptions:function(){return this.createProcessedOptions(this.options||[])},visibleOptions:function(){var e=this,t=this.activeOptionPath.find((function(t){return t.key===e.focusedOptionInfo.parentKey}));return t?t.children:this.processedOptions},equalityKey:function(){return this.optionValue?null:this.dataKey},searchResultMessageText:function(){return s.ObjectUtils.isNotEmpty(this.visibleOptions)?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionInfo.index?"".concat(this.id).concat(s.ObjectUtils.isNotEmpty(this.focusedOptionInfo.parentKey)?"_"+this.focusedOptionInfo.parentKey:"","_").concat(this.focusedOptionInfo.index):null}},components:{CascadeSelectSub:b,Portal:O.default,ChevronDownIcon:d.default,SpinnerIcon:h.default,AngleRightIcon:u.default}};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function S(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?k(Object(i),!0).forEach((function(t){L(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function L(e,t,i){var n;return(t="symbol"==x(n=C(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function C(e,t){if("object"!=x(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P=["id","disabled","placeholder","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"];return I.render=function(e,t,i,n,o,s){var r=c.resolveComponent("SpinnerIcon"),l=c.resolveComponent("CascadeSelectSub"),a=c.resolveComponent("Portal");return c.openBlock(),c.createElementBlock("div",c.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[5]||(t[5]=function(e){return s.onContainerClick(e)})},e.ptmi("root")),[c.createElementVNode("div",c.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[c.createElementVNode("input",c.mergeProps({ref:"focusInput",id:e.inputId,type:"text",class:e.inputClass,style:e.inputStyle,readonly:"",disabled:e.disabled,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"tree","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_tree","aria-activedescendant":o.focused?s.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)})},S(S({},e.inputProps),e.ptm("input"))),null,16,P)],16),c.createElementVNode("span",c.mergeProps({class:e.cx("label")},e.ptm("label")),[c.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[c.createTextVNode(c.toDisplayString(s.label),1)]}))],16),c.createElementVNode("div",c.mergeProps({class:e.cx("dropdownButton"),role:"button",tabindex:"-1","aria-hidden":"true"},e.ptm("dropdownButton")),[e.loading?c.renderSlot(e.$slots,"loadingicon",{key:0,class:c.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(c.openBlock(),c.createBlock(r,c.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):c.renderSlot(e.$slots,"dropdownicon",{key:1,class:c.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),c.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),c.createElementVNode("span",c.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),c.toDisplayString(s.searchResultMessageText),17),c.createVNode(a,{appendTo:e.appendTo},{default:c.withCtx((function(){return[c.createVNode(c.Transition,c.mergeProps({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:c.withCtx((function(){return[o.overlayVisible?(c.openBlock(),c.createElementBlock("div",c.mergeProps({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[3]||(t[3]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[4]||(t[4]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},S(S({},e.panelProps),e.ptm("panel"))),[c.createElementVNode("div",c.mergeProps({class:e.cx("wrapper")},e.ptm("wrapper")),[c.createVNode(l,{id:o.id+"_tree",role:"tree","aria-orientation":"horizontal",selectId:o.id,focusedOptionId:o.focused?s.focusedOptionId:void 0,options:s.processedOptions,activeOptionPath:o.activeOptionPath,level:0,templates:e.$slots,optionLabel:e.optionLabel,optionValue:e.optionValue,optionDisabled:e.optionDisabled,optionGroupIcon:e.optionGroupIcon,optionGroupLabel:e.optionGroupLabel,optionGroupChildren:e.optionGroupChildren,onOptionChange:s.onOptionChange,onOptionFocusChange:s.onOptionFocusChange,pt:e.pt,unstyled:e.unstyled},null,8,["id","selectId","focusedOptionId","options","activeOptionPath","templates","optionLabel","optionValue","optionDisabled","optionGroupIcon","optionGroupLabel","optionGroupChildren","onOptionChange","onOptionFocusChange","pt","unstyled"])],16),c.createElementVNode("span",c.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),c.toDisplayString(s.selectedMessageText),17)],16)):c.createCommentVNode("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])],16)},I}(primevue.icons.angleright,primevue.icons.chevrondown,primevue.icons.spinner,primevue.overlayeventbus,primevue.portal,primevue.utils,primevue.basecomponent,primevue.cascadeselect.style,primevue.ripple,Vue);
package/chart/Chart.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="cx('root')" :style="sx('root')" v-bind="ptm('root')">
2
+ <div :class="cx('root')" :style="sx('root')" v-bind="ptmi('root')">
3
3
  <canvas ref="canvas" :width="width" :height="height" @click="onCanvasClick($event)" v-bind="{ ...canvasProps, ...ptm('canvas') }"></canvas>
4
4
  </div>
5
5
  </template>
@@ -10,6 +10,7 @@ import BaseChart from './BaseChart.vue';
10
10
  export default {
11
11
  name: 'Chart',
12
12
  extends: BaseChart,
13
+ inheritAttrs: false,
13
14
  emits: ['select', 'loaded'],
14
15
  chart: null,
15
16
  watch: {
@@ -59,6 +59,7 @@ var script$1 = {
59
59
  var script = {
60
60
  name: 'Chart',
61
61
  "extends": script$1,
62
+ inheritAttrs: false,
62
63
  emits: ['select', 'loaded'],
63
64
  chart: null,
64
65
  watch: {
@@ -160,7 +161,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
160
161
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
161
162
  "class": _ctx.cx('root'),
162
163
  style: _ctx.sx('root')
163
- }, _ctx.ptm('root')), [vue.createElementVNode("canvas", vue.mergeProps({
164
+ }, _ctx.ptmi('root')), [vue.createElementVNode("canvas", vue.mergeProps({
164
165
  ref: "canvas",
165
166
  width: _ctx.width,
166
167
  height: _ctx.height,
@@ -1 +1 @@
1
- "use strict";var t=require("primevue/basecomponent"),e=require("primevue/chart/style"),r=require("vue");function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var o={name:"Chart",extends:{name:"BaseChart",extends:n(t).default,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:n(e).default,provide:function(){return{$parentInstance:this}}},emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var t=this;Promise.resolve().then((function(){return i(require("chart.js/auto"))})).then((function(e){t.chart&&(t.chart.destroy(),t.chart=null),e&&e.default&&(t.chart=new e.default(t.$refs.canvas,{type:t.type,data:t.data,options:t.options,plugins:t.plugins})),t.$emit("loaded",t.chart)}))},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(t){if(this.chart){var e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&r&&this.$emit("select",{originalEvent:t,element:e[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){var n;return(e="symbol"==a(n=l(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var f=["width","height"];o.render=function(t,e,n,i,o,a){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptm("root")),[r.createElementVNode("canvas",r.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(t){return a.onCanvasClick(t)})},u(u({},t.canvasProps),t.ptm("canvas"))),null,16,f)],16)},module.exports=o;
1
+ "use strict";var t=require("primevue/basecomponent"),e=require("primevue/chart/style"),r=require("vue");function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var o={name:"Chart",extends:{name:"BaseChart",extends:n(t).default,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:n(e).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var t=this;Promise.resolve().then((function(){return i(require("chart.js/auto"))})).then((function(e){t.chart&&(t.chart.destroy(),t.chart=null),e&&e.default&&(t.chart=new e.default(t.$refs.canvas,{type:t.type,data:t.data,options:t.options,plugins:t.plugins})),t.$emit("loaded",t.chart)}))},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(t){if(this.chart){var e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&r&&this.$emit("select",{originalEvent:t,element:e[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){var n;return(e="symbol"==a(n=l(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var f=["width","height"];o.render=function(t,e,n,i,o,a){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptmi("root")),[r.createElementVNode("canvas",r.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(t){return a.onCanvasClick(t)})},u(u({},t.canvasProps),t.ptm("canvas"))),null,16,f)],16)},module.exports=o;
@@ -34,6 +34,7 @@ var script$1 = {
34
34
  var script = {
35
35
  name: 'Chart',
36
36
  "extends": script$1,
37
+ inheritAttrs: false,
37
38
  emits: ['select', 'loaded'],
38
39
  chart: null,
39
40
  watch: {
@@ -135,7 +136,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
135
136
  return openBlock(), createElementBlock("div", mergeProps({
136
137
  "class": _ctx.cx('root'),
137
138
  style: _ctx.sx('root')
138
- }, _ctx.ptm('root')), [createElementVNode("canvas", mergeProps({
139
+ }, _ctx.ptmi('root')), [createElementVNode("canvas", mergeProps({
139
140
  ref: "canvas",
140
141
  width: _ctx.width,
141
142
  height: _ctx.height,
@@ -1 +1 @@
1
- import t from"primevue/basecomponent";import e from"primevue/chart/style";import{openBlock as r,createElementBlock as n,mergeProps as i,createElementVNode as o}from"vue";var a={name:"Chart",extends:{name:"BaseChart",extends:t,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:e,provide:function(){return{$parentInstance:this}}},emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var t=this;import("chart.js/auto").then((function(e){t.chart&&(t.chart.destroy(),t.chart=null),e&&e.default&&(t.chart=new e.default(t.$refs.canvas,{type:t.type,data:t.data,options:t.options,plugins:t.plugins})),t.$emit("loaded",t.chart)}))},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(t){if(this.chart){var e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&r&&this.$emit("select",{originalEvent:t,element:e[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){var n;return(e="symbol"==c(n=l(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var f=["width","height"];a.render=function(t,e,a,c,s,h){return r(),n("div",i({class:t.cx("root"),style:t.sx("root")},t.ptm("root")),[o("canvas",i({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(t){return h.onCanvasClick(t)})},u(u({},t.canvasProps),t.ptm("canvas"))),null,16,f)],16)};export{a as default};
1
+ import t from"primevue/basecomponent";import e from"primevue/chart/style";import{openBlock as r,createElementBlock as n,mergeProps as i,createElementVNode as o}from"vue";var a={name:"Chart",extends:{name:"BaseChart",extends:t,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:e,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var t=this;import("chart.js/auto").then((function(e){t.chart&&(t.chart.destroy(),t.chart=null),e&&e.default&&(t.chart=new e.default(t.$refs.canvas,{type:t.type,data:t.data,options:t.options,plugins:t.plugins})),t.$emit("loaded",t.chart)}))},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(t){if(this.chart){var e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&r&&this.$emit("select",{originalEvent:t,element:e[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){var n;return(e="symbol"==c(n=l(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var f=["width","height"];a.render=function(t,e,a,c,s,h){return r(),n("div",i({class:t.cx("root"),style:t.sx("root")},t.ptmi("root")),[o("canvas",i({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(t){return h.onCanvasClick(t)})},u(u({},t.canvasProps),t.ptm("canvas"))),null,16,f)],16)};export{a as default};
package/chart/chart.js CHANGED
@@ -39,6 +39,7 @@ this.primevue.chart = (function (BaseComponent, ChartStyle, vue) {
39
39
  var script = {
40
40
  name: 'Chart',
41
41
  "extends": script$1,
42
+ inheritAttrs: false,
42
43
  emits: ['select', 'loaded'],
43
44
  chart: null,
44
45
  watch: {
@@ -140,7 +141,7 @@ this.primevue.chart = (function (BaseComponent, ChartStyle, vue) {
140
141
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
141
142
  "class": _ctx.cx('root'),
142
143
  style: _ctx.sx('root')
143
- }, _ctx.ptm('root')), [vue.createElementVNode("canvas", vue.mergeProps({
144
+ }, _ctx.ptmi('root')), [vue.createElementVNode("canvas", vue.mergeProps({
144
145
  ref: "canvas",
145
146
  width: _ctx.width,
146
147
  height: _ctx.height,
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.chart=function(t,e,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i={name:"Chart",extends:{name:"BaseChart",extends:n(t).default,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:n(e).default,provide:function(){return{$parentInstance:this}}},emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var t=this;import("chart.js/auto").then((function(e){t.chart&&(t.chart.destroy(),t.chart=null),e&&e.default&&(t.chart=new e.default(t.$refs.canvas,{type:t.type,data:t.data,options:t.options,plugins:t.plugins})),t.$emit("loaded",t.chart)}))},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(t){if(this.chart){var e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&r&&this.$emit("select",{originalEvent:t,element:e[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){var n;return(e="symbol"==o(n=s(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var l=["width","height"];return i.render=function(t,e,n,i,o,a){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptm("root")),[r.createElementVNode("canvas",r.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(t){return a.onCanvasClick(t)})},c(c({},t.canvasProps),t.ptm("canvas"))),null,16,l)],16)},i}(primevue.basecomponent,primevue.chart.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.chart=function(t,e,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i={name:"Chart",extends:{name:"BaseChart",extends:n(t).default,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:n(e).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var t=this;import("chart.js/auto").then((function(e){t.chart&&(t.chart.destroy(),t.chart=null),e&&e.default&&(t.chart=new e.default(t.$refs.canvas,{type:t.type,data:t.data,options:t.options,plugins:t.plugins})),t.$emit("loaded",t.chart)}))},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(t){if(this.chart){var e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&r&&this.$emit("select",{originalEvent:t,element:e[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){var n;return(e="symbol"==o(n=u(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var l=["width","height"];return i.render=function(t,e,n,i,o,a){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptmi("root")),[r.createElementVNode("canvas",r.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(t){return a.onCanvasClick(t)})},c(c({},t.canvasProps),t.ptm("canvas"))),null,16,l)],16)},i}(primevue.basecomponent,primevue.chart.style,Vue);
@@ -14,6 +14,7 @@
14
14
  :required="required"
15
15
  :aria-labelledby="ariaLabelledby"
16
16
  :aria-label="ariaLabel"
17
+ :aria-invalid="invalid || undefined"
17
18
  @focus="onFocus"
18
19
  @blur="onBlur"
19
20
  @change="onChange"
@@ -35,10 +36,13 @@ import BaseCheckbox from './BaseCheckbox.vue';
35
36
  export default {
36
37
  name: 'Checkbox',
37
38
  extends: BaseCheckbox,
39
+ inheritAttrs: false,
38
40
  emits: ['update:modelValue', 'change', 'focus', 'blur'],
39
41
  methods: {
40
42
  getPTOptions(key) {
41
- return this.ptm(key, {
43
+ const _ptm = key === 'root' ? this.ptmi : this.ptm;
44
+
45
+ return _ptm(key, {
42
46
  context: {
43
47
  checked: this.checked,
44
48
  disabled: this.disabled
@@ -93,10 +93,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
93
93
  var script = {
94
94
  name: 'Checkbox',
95
95
  "extends": script$1,
96
+ inheritAttrs: false,
96
97
  emits: ['update:modelValue', 'change', 'focus', 'blur'],
97
98
  methods: {
98
99
  getPTOptions: function getPTOptions(key) {
99
- return this.ptm(key, {
100
+ var _ptm = key === 'root' ? this.ptmi : this.ptm;
101
+ return _ptm(key, {
100
102
  context: {
101
103
  checked: this.checked,
102
104
  disabled: this.disabled
@@ -136,7 +138,7 @@ var script = {
136
138
  };
137
139
 
138
140
  var _hoisted_1 = ["data-p-highlight", "data-p-disabled"];
139
- var _hoisted_2 = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label"];
141
+ var _hoisted_2 = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid"];
140
142
  function render(_ctx, _cache, $props, $setup, $data, $options) {
141
143
  var _component_CheckIcon = vue.resolveComponent("CheckIcon");
142
144
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
@@ -158,6 +160,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
158
160
  required: _ctx.required,
159
161
  "aria-labelledby": _ctx.ariaLabelledby,
160
162
  "aria-label": _ctx.ariaLabel,
163
+ "aria-invalid": _ctx.invalid || undefined,
161
164
  onFocus: _cache[0] || (_cache[0] = function () {
162
165
  return $options.onFocus && $options.onFocus.apply($options, arguments);
163
166
  }),
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/icons/check"),t=require("primevue/utils"),n=require("primevue/basecomponent"),l=require("primevue/checkbox/style"),a=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(e);function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return s(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}var p={name:"Checkbox",extends:{name:"BaseCheckbox",extends:r(n).default,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r(l).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){return this.ptm(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n,l,a=this;this.disabled||this.readonly||(n=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,a.value)})):this.modelValue?[].concat(d(l=this.modelValue)||c(l)||u(l)||o(),[this.value]):[this.value],this.$emit("update:modelValue",n),this.$emit("change",e))},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:t.ObjectUtils.contains(this.value,this.modelValue)}},components:{CheckIcon:i.default}},h=["data-p-highlight","data-p-disabled"],b=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];p.render=function(e,t,n,l,r,i){var o=a.resolveComponent("CheckIcon");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":e.disabled}),[a.createElementVNode("input",a.mergeProps({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:e.name,checked:i.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[1]||(t[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:t[2]||(t[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,b),a.createElementVNode("div",a.mergeProps({class:e.cx("box")},i.getPTOptions("box")),[a.renderSlot(e.$slots,"icon",{checked:i.checked,class:a.normalizeClass(e.cx("icon"))},(function(){return[i.checked?(a.openBlock(),a.createBlock(o,a.mergeProps({key:0,class:e.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):a.createCommentVNode("",!0)]}))],16)],16,h)},module.exports=p;
1
+ "use strict";var e=require("primevue/icons/check"),t=require("primevue/utils"),n=require("primevue/basecomponent"),a=require("primevue/checkbox/style"),l=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(e);function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function d(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e){if(Array.isArray(e))return s(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p={name:"Checkbox",extends:{name:"BaseCheckbox",extends:r(n).default,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r(a).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){return("root"===e?this.ptmi:this.ptm)(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n,a,l=this;this.disabled||this.readonly||(n=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,l.value)})):this.modelValue?[].concat(c(a=this.modelValue)||d(a)||u(a)||o(),[this.value]):[this.value],this.$emit("update:modelValue",n),this.$emit("change",e))},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:t.ObjectUtils.contains(this.value,this.modelValue)}},components:{CheckIcon:i.default}},h=["data-p-highlight","data-p-disabled"],b=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid"];p.render=function(e,t,n,a,r,i){var o=l.resolveComponent("CheckIcon");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:e.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":e.disabled}),[l.createElementVNode("input",l.mergeProps({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:e.name,checked:i.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[1]||(t[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:t[2]||(t[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,b),l.createElementVNode("div",l.mergeProps({class:e.cx("box")},i.getPTOptions("box")),[l.renderSlot(e.$slots,"icon",{checked:i.checked,class:l.normalizeClass(e.cx("icon"))},(function(){return[i.checked?(l.openBlock(),l.createBlock(o,l.mergeProps({key:0,class:e.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):l.createCommentVNode("",!0)]}))],16)],16,h)},module.exports=p;
@@ -85,10 +85,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
85
85
  var script = {
86
86
  name: 'Checkbox',
87
87
  "extends": script$1,
88
+ inheritAttrs: false,
88
89
  emits: ['update:modelValue', 'change', 'focus', 'blur'],
89
90
  methods: {
90
91
  getPTOptions: function getPTOptions(key) {
91
- return this.ptm(key, {
92
+ var _ptm = key === 'root' ? this.ptmi : this.ptm;
93
+ return _ptm(key, {
92
94
  context: {
93
95
  checked: this.checked,
94
96
  disabled: this.disabled
@@ -128,7 +130,7 @@ var script = {
128
130
  };
129
131
 
130
132
  var _hoisted_1 = ["data-p-highlight", "data-p-disabled"];
131
- var _hoisted_2 = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label"];
133
+ var _hoisted_2 = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid"];
132
134
  function render(_ctx, _cache, $props, $setup, $data, $options) {
133
135
  var _component_CheckIcon = resolveComponent("CheckIcon");
134
136
  return openBlock(), createElementBlock("div", mergeProps({
@@ -150,6 +152,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
150
152
  required: _ctx.required,
151
153
  "aria-labelledby": _ctx.ariaLabelledby,
152
154
  "aria-label": _ctx.ariaLabel,
155
+ "aria-invalid": _ctx.invalid || undefined,
153
156
  onFocus: _cache[0] || (_cache[0] = function () {
154
157
  return $options.onFocus && $options.onFocus.apply($options, arguments);
155
158
  }),
@@ -1 +1 @@
1
- import e from"primevue/icons/check";import{ObjectUtils as t}from"primevue/utils";import n from"primevue/basecomponent";import a from"primevue/checkbox/style";import{resolveComponent as l,openBlock as i,createElementBlock as r,mergeProps as o,createElementVNode as u,renderSlot as d,normalizeClass as c,createBlock as s,createCommentVNode as p}from"vue";function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m(e){if(Array.isArray(e))return y(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var g={name:"Checkbox",extends:{name:"BaseCheckbox",extends:n,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){return this.ptm(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n,a,l=this;this.disabled||this.readonly||(n=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((function(e){return!t.equals(e,l.value)})):this.modelValue?[].concat(m(a=this.modelValue)||b(a)||f(a)||h(),[this.value]):[this.value],this.$emit("update:modelValue",n),this.$emit("change",e))},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:t.contains(this.value,this.modelValue)}},components:{CheckIcon:e}},v=["data-p-highlight","data-p-disabled"],k=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];g.render=function(e,t,n,a,h,f){var b=l("CheckIcon");return i(),r("div",o({class:e.cx("root")},f.getPTOptions("root"),{"data-p-highlight":f.checked,"data-p-disabled":e.disabled}),[u("input",o({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:e.name,checked:f.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return f.onFocus&&f.onFocus.apply(f,arguments)}),onBlur:t[1]||(t[1]=function(){return f.onBlur&&f.onBlur.apply(f,arguments)}),onChange:t[2]||(t[2]=function(){return f.onChange&&f.onChange.apply(f,arguments)})},f.getPTOptions("input")),null,16,k),u("div",o({class:e.cx("box")},f.getPTOptions("box")),[d(e.$slots,"icon",{checked:f.checked,class:c(e.cx("icon"))},(function(){return[f.checked?(i(),s(b,o({key:0,class:e.cx("icon")},f.getPTOptions("icon")),null,16,["class"])):p("",!0)]}))],16)],16,v)};export{g as default};
1
+ import e from"primevue/icons/check";import{ObjectUtils as t}from"primevue/utils";import n from"primevue/basecomponent";import a from"primevue/checkbox/style";import{resolveComponent as l,openBlock as i,createElementBlock as r,mergeProps as o,createElementVNode as u,renderSlot as d,normalizeClass as c,createBlock as s,createCommentVNode as p}from"vue";function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e){if(Array.isArray(e))return y(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var v={name:"Checkbox",extends:{name:"BaseCheckbox",extends:n,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){return("root"===e?this.ptmi:this.ptm)(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n,a,l=this;this.disabled||this.readonly||(n=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((function(e){return!t.equals(e,l.value)})):this.modelValue?[].concat(b(a=this.modelValue)||m(a)||f(a)||h(),[this.value]):[this.value],this.$emit("update:modelValue",n),this.$emit("change",e))},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:t.contains(this.value,this.modelValue)}},components:{CheckIcon:e}},g=["data-p-highlight","data-p-disabled"],k=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid"];v.render=function(e,t,n,a,h,f){var m=l("CheckIcon");return i(),r("div",o({class:e.cx("root")},f.getPTOptions("root"),{"data-p-highlight":f.checked,"data-p-disabled":e.disabled}),[u("input",o({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:e.name,checked:f.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return f.onFocus&&f.onFocus.apply(f,arguments)}),onBlur:t[1]||(t[1]=function(){return f.onBlur&&f.onBlur.apply(f,arguments)}),onChange:t[2]||(t[2]=function(){return f.onChange&&f.onChange.apply(f,arguments)})},f.getPTOptions("input")),null,16,k),u("div",o({class:e.cx("box")},f.getPTOptions("box")),[d(e.$slots,"icon",{checked:f.checked,class:c(e.cx("icon"))},(function(){return[f.checked?(i(),s(m,o({key:0,class:e.cx("icon")},f.getPTOptions("icon")),null,16,["class"])):p("",!0)]}))],16)],16,g)};export{v as default};
@@ -89,10 +89,12 @@ this.primevue.checkbox = (function (CheckIcon, utils, BaseComponent, CheckboxSty
89
89
  var script = {
90
90
  name: 'Checkbox',
91
91
  "extends": script$1,
92
+ inheritAttrs: false,
92
93
  emits: ['update:modelValue', 'change', 'focus', 'blur'],
93
94
  methods: {
94
95
  getPTOptions: function getPTOptions(key) {
95
- return this.ptm(key, {
96
+ var _ptm = key === 'root' ? this.ptmi : this.ptm;
97
+ return _ptm(key, {
96
98
  context: {
97
99
  checked: this.checked,
98
100
  disabled: this.disabled
@@ -132,7 +134,7 @@ this.primevue.checkbox = (function (CheckIcon, utils, BaseComponent, CheckboxSty
132
134
  };
133
135
 
134
136
  var _hoisted_1 = ["data-p-highlight", "data-p-disabled"];
135
- var _hoisted_2 = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label"];
137
+ var _hoisted_2 = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid"];
136
138
  function render(_ctx, _cache, $props, $setup, $data, $options) {
137
139
  var _component_CheckIcon = vue.resolveComponent("CheckIcon");
138
140
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
@@ -154,6 +156,7 @@ this.primevue.checkbox = (function (CheckIcon, utils, BaseComponent, CheckboxSty
154
156
  required: _ctx.required,
155
157
  "aria-labelledby": _ctx.ariaLabelledby,
156
158
  "aria-label": _ctx.ariaLabel,
159
+ "aria-invalid": _ctx.invalid || undefined,
157
160
  onFocus: _cache[0] || (_cache[0] = function () {
158
161
  return $options.onFocus && $options.onFocus.apply($options, arguments);
159
162
  }),
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.checkbox=function(e,t,n,l,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e);function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}var p={name:"Checkbox",extends:{name:"BaseCheckbox",extends:i(n).default,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:i(l).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){return this.ptm(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n,l,a=this;this.disabled||this.readonly||(n=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,a.value)})):this.modelValue?[].concat(s(l=this.modelValue)||c(l)||u(l)||o(),[this.value]):[this.value],this.$emit("update:modelValue",n),this.$emit("change",e))},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:t.ObjectUtils.contains(this.value,this.modelValue)}},components:{CheckIcon:r.default}},h=["data-p-highlight","data-p-disabled"],b=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];return p.render=function(e,t,n,l,i,r){var o=a.resolveComponent("CheckIcon");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},r.getPTOptions("root"),{"data-p-highlight":r.checked,"data-p-disabled":e.disabled}),[a.createElementVNode("input",a.mergeProps({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:e.name,checked:r.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:t[1]||(t[1]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onChange:t[2]||(t[2]=function(){return r.onChange&&r.onChange.apply(r,arguments)})},r.getPTOptions("input")),null,16,b),a.createElementVNode("div",a.mergeProps({class:e.cx("box")},r.getPTOptions("box")),[a.renderSlot(e.$slots,"icon",{checked:r.checked,class:a.normalizeClass(e.cx("icon"))},(function(){return[r.checked?(a.openBlock(),a.createBlock(o,a.mergeProps({key:0,class:e.cx("icon")},r.getPTOptions("icon")),null,16,["class"])):a.createCommentVNode("",!0)]}))],16)],16,h)},p}(primevue.icons.check,primevue.utils,primevue.basecomponent,primevue.checkbox.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.checkbox=function(e,t,n,a,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e);function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return s(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p={name:"Checkbox",extends:{name:"BaseCheckbox",extends:i(n).default,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:i(a).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){return("root"===e?this.ptmi:this.ptm)(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n,a,l=this;this.disabled||this.readonly||(n=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,l.value)})):this.modelValue?[].concat(d(a=this.modelValue)||c(a)||u(a)||o(),[this.value]):[this.value],this.$emit("update:modelValue",n),this.$emit("change",e))},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:t.ObjectUtils.contains(this.value,this.modelValue)}},components:{CheckIcon:r.default}},h=["data-p-highlight","data-p-disabled"],m=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid"];return p.render=function(e,t,n,a,i,r){var o=l.resolveComponent("CheckIcon");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:e.cx("root")},r.getPTOptions("root"),{"data-p-highlight":r.checked,"data-p-disabled":e.disabled}),[l.createElementVNode("input",l.mergeProps({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:e.name,checked:r.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:t[1]||(t[1]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onChange:t[2]||(t[2]=function(){return r.onChange&&r.onChange.apply(r,arguments)})},r.getPTOptions("input")),null,16,m),l.createElementVNode("div",l.mergeProps({class:e.cx("box")},r.getPTOptions("box")),[l.renderSlot(e.$slots,"icon",{checked:r.checked,class:l.normalizeClass(e.cx("icon"))},(function(){return[r.checked?(l.openBlock(),l.createBlock(o,l.mergeProps({key:0,class:e.cx("icon")},r.getPTOptions("icon")),null,16,["class"])):l.createCommentVNode("",!0)]}))],16)],16,h)},p}(primevue.icons.check,primevue.utils,primevue.basecomponent,primevue.checkbox.style,Vue);
package/chip/Chip.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="visible" :class="cx('root')" :aria-label="label" v-bind="ptm('root')">
2
+ <div v-if="visible" :class="cx('root')" :aria-label="label" v-bind="ptmi('root')">
3
3
  <slot>
4
4
  <img v-if="image" :src="image" v-bind="ptm('image')" />
5
5
  <component v-else-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" />
@@ -19,6 +19,7 @@ import BaseChip from './BaseChip.vue';
19
19
  export default {
20
20
  name: 'Chip',
21
21
  extends: BaseChip,
22
+ inheritAttrs: false,
22
23
  emits: ['remove'],
23
24
  data() {
24
25
  return {
package/chip/chip.cjs.js CHANGED
@@ -47,6 +47,7 @@ var script$1 = {
47
47
  var script = {
48
48
  name: 'Chip',
49
49
  "extends": script$1,
50
+ inheritAttrs: false,
50
51
  emits: ['remove'],
51
52
  data: function data() {
52
53
  return {
@@ -76,7 +77,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
76
77
  key: 0,
77
78
  "class": _ctx.cx('root'),
78
79
  "aria-label": _ctx.label
79
- }, _ctx.ptm('root')), [vue.renderSlot(_ctx.$slots, "default", {}, function () {
80
+ }, _ctx.ptmi('root')), [vue.renderSlot(_ctx.$slots, "default", {}, function () {
80
81
  return [_ctx.image ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
81
82
  key: 0,
82
83
  src: _ctx.image
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/icons/timescircle"),o=require("primevue/basecomponent"),n=require("primevue/chip/style"),l=require("vue");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=t(e),r={name:"Chip",extends:{name:"BaseChip",extends:t(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:t(n).default,provide:function(){return{$parentInstance:this}}},emits:["remove"],data:function(){return{visible:!0}},methods:{onKeydown:function(e){"Enter"!==e.key&&"Backspace"!==e.key||this.close(e)},close:function(e){this.visible=!1,this.$emit("remove",e)}},components:{TimesCircleIcon:c.default}},i=["aria-label"],a=["src"];r.render=function(e,o,n,t,c,r){return c.visible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:e.cx("root"),"aria-label":e.label},e.ptm("root")),[l.renderSlot(e.$slots,"default",{},(function(){return[e.image?(l.openBlock(),l.createElementBlock("img",l.mergeProps({key:0,src:e.image},e.ptm("image")),null,16,a)):e.$slots.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.$slots.icon),l.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16,["class"])):e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0),e.label?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:3,class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label),17)):l.createCommentVNode("",!0)]})),e.removable?l.renderSlot(e.$slots,"removeicon",{key:0,onClick:r.close,onKeydown:r.onKeydown,removeCallback:r.close,keydownCallback:r.onKeydown},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.removeIcon?"span":"TimesCircleIcon"),l.mergeProps({tabindex:"0",class:[e.cx("removeIcon"),e.removeIcon],onClick:r.close,onKeydown:r.onKeydown},e.ptm("removeIcon")),null,16,["class","onClick","onKeydown"]))]})):l.createCommentVNode("",!0)],16,i)):l.createCommentVNode("",!0)},module.exports=r;
1
+ "use strict";var e=require("primevue/icons/timescircle"),o=require("primevue/basecomponent"),n=require("primevue/chip/style"),l=require("vue");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e),c={name:"Chip",extends:{name:"BaseChip",extends:t(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:t(n).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["remove"],data:function(){return{visible:!0}},methods:{onKeydown:function(e){"Enter"!==e.key&&"Backspace"!==e.key||this.close(e)},close:function(e){this.visible=!1,this.$emit("remove",e)}},components:{TimesCircleIcon:r.default}},i=["aria-label"],a=["src"];c.render=function(e,o,n,t,r,c){return r.visible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:e.cx("root"),"aria-label":e.label},e.ptmi("root")),[l.renderSlot(e.$slots,"default",{},(function(){return[e.image?(l.openBlock(),l.createElementBlock("img",l.mergeProps({key:0,src:e.image},e.ptm("image")),null,16,a)):e.$slots.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.$slots.icon),l.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16,["class"])):e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0),e.label?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:3,class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label),17)):l.createCommentVNode("",!0)]})),e.removable?l.renderSlot(e.$slots,"removeicon",{key:0,onClick:c.close,onKeydown:c.onKeydown,removeCallback:c.close,keydownCallback:c.onKeydown},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.removeIcon?"span":"TimesCircleIcon"),l.mergeProps({tabindex:"0",class:[e.cx("removeIcon"),e.removeIcon],onClick:c.close,onKeydown:c.onKeydown},e.ptm("removeIcon")),null,16,["class","onClick","onKeydown"]))]})):l.createCommentVNode("",!0)],16,i)):l.createCommentVNode("",!0)},module.exports=c;
package/chip/chip.esm.js CHANGED
@@ -39,6 +39,7 @@ var script$1 = {
39
39
  var script = {
40
40
  name: 'Chip',
41
41
  "extends": script$1,
42
+ inheritAttrs: false,
42
43
  emits: ['remove'],
43
44
  data: function data() {
44
45
  return {
@@ -68,7 +69,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
68
69
  key: 0,
69
70
  "class": _ctx.cx('root'),
70
71
  "aria-label": _ctx.label
71
- }, _ctx.ptm('root')), [renderSlot(_ctx.$slots, "default", {}, function () {
72
+ }, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, "default", {}, function () {
72
73
  return [_ctx.image ? (openBlock(), createElementBlock("img", mergeProps({
73
74
  key: 0,
74
75
  src: _ctx.image
@@ -1 +1 @@
1
- import e from"primevue/icons/timescircle";import o from"primevue/basecomponent";import n from"primevue/chip/style";import{openBlock as l,createElementBlock as i,mergeProps as t,renderSlot as c,createBlock as s,resolveDynamicComponent as r,createCommentVNode as a,toDisplayString as m}from"vue";var p={name:"Chip",extends:{name:"BaseChip",extends:o,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:n,provide:function(){return{$parentInstance:this}}},emits:["remove"],data:function(){return{visible:!0}},methods:{onKeydown:function(e){"Enter"!==e.key&&"Backspace"!==e.key||this.close(e)},close:function(e){this.visible=!1,this.$emit("remove",e)}},components:{TimesCircleIcon:e}},u=["aria-label"],d=["src"];p.render=function(e,o,n,p,v,y){return v.visible?(l(),i("div",t({key:0,class:e.cx("root"),"aria-label":e.label},e.ptm("root")),[c(e.$slots,"default",{},(function(){return[e.image?(l(),i("img",t({key:0,src:e.image},e.ptm("image")),null,16,d)):e.$slots.icon?(l(),s(r(e.$slots.icon),t({key:1,class:e.cx("icon")},e.ptm("icon")),null,16,["class"])):e.icon?(l(),i("span",t({key:2,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):a("",!0),e.label?(l(),i("div",t({key:3,class:e.cx("label")},e.ptm("label")),m(e.label),17)):a("",!0)]})),e.removable?c(e.$slots,"removeicon",{key:0,onClick:y.close,onKeydown:y.onKeydown,removeCallback:y.close,keydownCallback:y.onKeydown},(function(){return[(l(),s(r(e.removeIcon?"span":"TimesCircleIcon"),t({tabindex:"0",class:[e.cx("removeIcon"),e.removeIcon],onClick:y.close,onKeydown:y.onKeydown},e.ptm("removeIcon")),null,16,["class","onClick","onKeydown"]))]})):a("",!0)],16,u)):a("",!0)};export{p as default};
1
+ import e from"primevue/icons/timescircle";import o from"primevue/basecomponent";import n from"primevue/chip/style";import{openBlock as l,createElementBlock as i,mergeProps as t,renderSlot as c,createBlock as s,resolveDynamicComponent as r,createCommentVNode as a,toDisplayString as m}from"vue";var p={name:"Chip",extends:{name:"BaseChip",extends:o,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:n,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["remove"],data:function(){return{visible:!0}},methods:{onKeydown:function(e){"Enter"!==e.key&&"Backspace"!==e.key||this.close(e)},close:function(e){this.visible=!1,this.$emit("remove",e)}},components:{TimesCircleIcon:e}},u=["aria-label"],d=["src"];p.render=function(e,o,n,p,v,y){return v.visible?(l(),i("div",t({key:0,class:e.cx("root"),"aria-label":e.label},e.ptmi("root")),[c(e.$slots,"default",{},(function(){return[e.image?(l(),i("img",t({key:0,src:e.image},e.ptm("image")),null,16,d)):e.$slots.icon?(l(),s(r(e.$slots.icon),t({key:1,class:e.cx("icon")},e.ptm("icon")),null,16,["class"])):e.icon?(l(),i("span",t({key:2,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):a("",!0),e.label?(l(),i("div",t({key:3,class:e.cx("label")},e.ptm("label")),m(e.label),17)):a("",!0)]})),e.removable?c(e.$slots,"removeicon",{key:0,onClick:y.close,onKeydown:y.onKeydown,removeCallback:y.close,keydownCallback:y.onKeydown},(function(){return[(l(),s(r(e.removeIcon?"span":"TimesCircleIcon"),t({tabindex:"0",class:[e.cx("removeIcon"),e.removeIcon],onClick:y.close,onKeydown:y.onKeydown},e.ptm("removeIcon")),null,16,["class","onClick","onKeydown"]))]})):a("",!0)],16,u)):a("",!0)};export{p as default};
package/chip/chip.js CHANGED
@@ -44,6 +44,7 @@ this.primevue.chip = (function (TimesCircleIcon, BaseComponent, ChipStyle, vue)
44
44
  var script = {
45
45
  name: 'Chip',
46
46
  "extends": script$1,
47
+ inheritAttrs: false,
47
48
  emits: ['remove'],
48
49
  data: function data() {
49
50
  return {
@@ -73,7 +74,7 @@ this.primevue.chip = (function (TimesCircleIcon, BaseComponent, ChipStyle, vue)
73
74
  key: 0,
74
75
  "class": _ctx.cx('root'),
75
76
  "aria-label": _ctx.label
76
- }, _ctx.ptm('root')), [vue.renderSlot(_ctx.$slots, "default", {}, function () {
77
+ }, _ctx.ptmi('root')), [vue.renderSlot(_ctx.$slots, "default", {}, function () {
77
78
  return [_ctx.image ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
78
79
  key: 0,
79
80
  src: _ctx.image
package/chip/chip.min.js CHANGED
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.chip=function(e,o,n,t){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(e),r={name:"Chip",extends:{name:"BaseChip",extends:l(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:l(n).default,provide:function(){return{$parentInstance:this}}},emits:["remove"],data:function(){return{visible:!0}},methods:{onKeydown:function(e){"Enter"!==e.key&&"Backspace"!==e.key||this.close(e)},close:function(e){this.visible=!1,this.$emit("remove",e)}},components:{TimesCircleIcon:c.default}},i=["aria-label"],a=["src"];return r.render=function(e,o,n,l,c,r){return c.visible?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0,class:e.cx("root"),"aria-label":e.label},e.ptm("root")),[t.renderSlot(e.$slots,"default",{},(function(){return[e.image?(t.openBlock(),t.createElementBlock("img",t.mergeProps({key:0,src:e.image},e.ptm("image")),null,16,a)):e.$slots.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.$slots.icon),t.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16,["class"])):e.icon?(t.openBlock(),t.createElementBlock("span",t.mergeProps({key:2,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):t.createCommentVNode("",!0),e.label?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:3,class:e.cx("label")},e.ptm("label")),t.toDisplayString(e.label),17)):t.createCommentVNode("",!0)]})),e.removable?t.renderSlot(e.$slots,"removeicon",{key:0,onClick:r.close,onKeydown:r.onKeydown,removeCallback:r.close,keydownCallback:r.onKeydown},(function(){return[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.removeIcon?"span":"TimesCircleIcon"),t.mergeProps({tabindex:"0",class:[e.cx("removeIcon"),e.removeIcon],onClick:r.close,onKeydown:r.onKeydown},e.ptm("removeIcon")),null,16,["class","onClick","onKeydown"]))]})):t.createCommentVNode("",!0)],16,i)):t.createCommentVNode("",!0)},r}(primevue.icons.timescircle,primevue.basecomponent,primevue.chip.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.chip=function(e,o,n,t){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(e),r={name:"Chip",extends:{name:"BaseChip",extends:l(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:l(n).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["remove"],data:function(){return{visible:!0}},methods:{onKeydown:function(e){"Enter"!==e.key&&"Backspace"!==e.key||this.close(e)},close:function(e){this.visible=!1,this.$emit("remove",e)}},components:{TimesCircleIcon:c.default}},i=["aria-label"],s=["src"];return r.render=function(e,o,n,l,c,r){return c.visible?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0,class:e.cx("root"),"aria-label":e.label},e.ptmi("root")),[t.renderSlot(e.$slots,"default",{},(function(){return[e.image?(t.openBlock(),t.createElementBlock("img",t.mergeProps({key:0,src:e.image},e.ptm("image")),null,16,s)):e.$slots.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.$slots.icon),t.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16,["class"])):e.icon?(t.openBlock(),t.createElementBlock("span",t.mergeProps({key:2,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):t.createCommentVNode("",!0),e.label?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:3,class:e.cx("label")},e.ptm("label")),t.toDisplayString(e.label),17)):t.createCommentVNode("",!0)]})),e.removable?t.renderSlot(e.$slots,"removeicon",{key:0,onClick:r.close,onKeydown:r.onKeydown,removeCallback:r.close,keydownCallback:r.onKeydown},(function(){return[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.removeIcon?"span":"TimesCircleIcon"),t.mergeProps({tabindex:"0",class:[e.cx("removeIcon"),e.removeIcon],onClick:r.close,onKeydown:r.onKeydown},e.ptm("removeIcon")),null,16,["class","onClick","onKeydown"]))]})):t.createCommentVNode("",!0)],16,i)):t.createCommentVNode("",!0)},r}(primevue.icons.timescircle,primevue.basecomponent,primevue.chip.style,Vue);