primevue 3.31.0 → 3.32.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 (574) hide show
  1. package/accordion/Accordion.d.ts +5 -5
  2. package/accordion/Accordion.vue +1 -1
  3. package/accordion/accordion.cjs.js +3 -3
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +3 -3
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +3 -3
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +18 -12
  10. package/autocomplete/AutoComplete.d.ts +34 -23
  11. package/autocomplete/AutoComplete.vue +3 -3
  12. package/autocomplete/BaseAutoComplete.vue +4 -0
  13. package/autocomplete/autocomplete.cjs.js +9 -5
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +9 -5
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +9 -5
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/Avatar.d.ts +7 -7
  20. package/avatar/Avatar.vue +2 -2
  21. package/avatar/avatar.cjs.js +2 -2
  22. package/avatar/avatar.cjs.min.js +1 -1
  23. package/avatar/avatar.esm.js +2 -2
  24. package/avatar/avatar.esm.min.js +1 -1
  25. package/avatar/avatar.js +2 -2
  26. package/avatar/avatar.min.js +1 -1
  27. package/avatargroup/AvatarGroup.d.ts +3 -3
  28. package/badge/Badge.d.ts +3 -3
  29. package/badgedirective/BadgeDirective.d.ts +45 -4
  30. package/badgedirective/badgedirective.cjs.js +11 -1
  31. package/badgedirective/badgedirective.cjs.min.js +1 -1
  32. package/badgedirective/badgedirective.esm.js +11 -1
  33. package/badgedirective/badgedirective.esm.min.js +1 -1
  34. package/badgedirective/badgedirective.js +11 -1
  35. package/badgedirective/badgedirective.min.js +1 -1
  36. package/basecomponent/BaseComponent.vue +51 -25
  37. package/basecomponent/basecomponent.cjs.js +66 -42
  38. package/basecomponent/basecomponent.cjs.min.js +1 -1
  39. package/basecomponent/basecomponent.esm.js +66 -42
  40. package/basecomponent/basecomponent.esm.min.js +1 -1
  41. package/basecomponent/basecomponent.js +66 -42
  42. package/basecomponent/basecomponent.min.js +1 -1
  43. package/basedirective/basedirective.cjs.js +9 -3
  44. package/basedirective/basedirective.cjs.min.js +1 -1
  45. package/basedirective/basedirective.esm.js +9 -3
  46. package/basedirective/basedirective.esm.min.js +1 -1
  47. package/basedirective/basedirective.js +9 -3
  48. package/basedirective/basedirective.min.js +1 -1
  49. package/blockui/BaseBlockUI.vue +0 -8
  50. package/blockui/BlockUI.d.ts +7 -3
  51. package/blockui/BlockUI.vue +35 -10
  52. package/blockui/blockui.cjs.js +34 -12
  53. package/blockui/blockui.cjs.min.js +1 -1
  54. package/blockui/blockui.esm.js +34 -12
  55. package/blockui/blockui.esm.min.js +1 -1
  56. package/blockui/blockui.js +34 -12
  57. package/blockui/blockui.min.js +1 -1
  58. package/breadcrumb/Breadcrumb.d.ts +10 -10
  59. package/button/Button.d.ts +8 -7
  60. package/button/Button.vue +4 -0
  61. package/button/button.cjs.js +5 -0
  62. package/button/button.cjs.min.js +1 -1
  63. package/button/button.esm.js +5 -0
  64. package/button/button.esm.min.js +1 -1
  65. package/button/button.js +5 -0
  66. package/button/button.min.js +1 -1
  67. package/calendar/Calendar.d.ts +129 -53
  68. package/calendar/Calendar.vue +49 -7
  69. package/calendar/calendar.cjs.js +72 -35
  70. package/calendar/calendar.cjs.min.js +1 -1
  71. package/calendar/calendar.esm.js +72 -35
  72. package/calendar/calendar.esm.min.js +1 -1
  73. package/calendar/calendar.js +72 -35
  74. package/calendar/calendar.min.js +1 -1
  75. package/card/Card.d.ts +9 -9
  76. package/carousel/Carousel.d.ts +32 -20
  77. package/carousel/Carousel.vue +10 -2
  78. package/carousel/carousel.cjs.js +11 -2
  79. package/carousel/carousel.cjs.min.js +1 -1
  80. package/carousel/carousel.esm.js +11 -2
  81. package/carousel/carousel.esm.min.js +1 -1
  82. package/carousel/carousel.js +11 -2
  83. package/carousel/carousel.min.js +1 -1
  84. package/cascadeselect/CascadeSelect.d.ts +25 -19
  85. package/cascadeselect/CascadeSelect.vue +1 -1
  86. package/cascadeselect/cascadeselect.cjs.js +3 -3
  87. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  88. package/cascadeselect/cascadeselect.esm.js +3 -3
  89. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  90. package/cascadeselect/cascadeselect.js +3 -3
  91. package/cascadeselect/cascadeselect.min.js +1 -1
  92. package/chart/Chart.d.ts +5 -5
  93. package/checkbox/Checkbox.d.ts +8 -8
  94. package/chip/Chip.d.ts +7 -7
  95. package/chips/Chips.d.ts +10 -10
  96. package/colorpicker/ColorPicker.d.ts +18 -11
  97. package/colorpicker/ColorPicker.vue +1 -1
  98. package/colorpicker/colorpicker.cjs.js +3 -3
  99. package/colorpicker/colorpicker.cjs.min.js +1 -1
  100. package/colorpicker/colorpicker.esm.js +3 -3
  101. package/colorpicker/colorpicker.esm.min.js +1 -1
  102. package/colorpicker/colorpicker.js +3 -3
  103. package/colorpicker/colorpicker.min.js +1 -1
  104. package/column/Column.d.ts +58 -58
  105. package/columngroup/ColumnGroup.d.ts +3 -3
  106. package/config/PrimeVue.d.ts +8 -0
  107. package/config/config.cjs.js +4 -1
  108. package/config/config.cjs.min.js +1 -1
  109. package/config/config.esm.js +4 -1
  110. package/config/config.esm.min.js +1 -1
  111. package/config/config.js +4 -1
  112. package/config/config.min.js +1 -1
  113. package/confirmdialog/ConfirmDialog.d.ts +14 -14
  114. package/confirmpopup/ConfirmPopup.d.ts +16 -10
  115. package/confirmpopup/ConfirmPopup.vue +1 -1
  116. package/confirmpopup/confirmpopup.cjs.js +3 -3
  117. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  118. package/confirmpopup/confirmpopup.esm.js +4 -4
  119. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  120. package/confirmpopup/confirmpopup.js +3 -3
  121. package/confirmpopup/confirmpopup.min.js +1 -1
  122. package/contextmenu/ContextMenu.d.ts +19 -13
  123. package/contextmenu/ContextMenu.vue +1 -1
  124. package/contextmenu/ContextMenuSub.vue +1 -1
  125. package/contextmenu/contextmenu.cjs.js +6 -6
  126. package/contextmenu/contextmenu.cjs.min.js +1 -1
  127. package/contextmenu/contextmenu.esm.js +7 -7
  128. package/contextmenu/contextmenu.esm.min.js +1 -1
  129. package/contextmenu/contextmenu.js +6 -6
  130. package/contextmenu/contextmenu.min.js +1 -1
  131. package/core/core.js +1958 -1326
  132. package/core/core.min.js +18 -16
  133. package/datatable/BaseDataTable.vue +1 -1
  134. package/datatable/BodyCell.vue +1 -0
  135. package/datatable/ColumnFilter.vue +1 -1
  136. package/datatable/DataTable.d.ts +37 -31
  137. package/datatable/DataTable.vue +4 -1
  138. package/datatable/datatable.cjs.js +10 -5
  139. package/datatable/datatable.cjs.min.js +1 -1
  140. package/datatable/datatable.esm.js +10 -5
  141. package/datatable/datatable.esm.min.js +1 -1
  142. package/datatable/datatable.js +10 -5
  143. package/datatable/datatable.min.js +1 -1
  144. package/dataview/DataView.d.ts +10 -10
  145. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +7 -7
  146. package/deferredcontent/DeferredContent.d.ts +3 -3
  147. package/dialog/BaseDialog.vue +3 -7
  148. package/dialog/Dialog.d.ts +21 -15
  149. package/dialog/Dialog.vue +2 -1
  150. package/dialog/dialog.cjs.js +9 -6
  151. package/dialog/dialog.cjs.min.js +1 -1
  152. package/dialog/dialog.esm.js +9 -6
  153. package/dialog/dialog.esm.min.js +1 -1
  154. package/dialog/dialog.js +9 -6
  155. package/dialog/dialog.min.js +1 -1
  156. package/divider/BaseDivider.vue +9 -24
  157. package/divider/Divider.d.ts +4 -4
  158. package/divider/Divider.vue +1 -1
  159. package/divider/divider.cjs.js +15 -2
  160. package/divider/divider.cjs.min.js +1 -1
  161. package/divider/divider.esm.js +15 -2
  162. package/divider/divider.esm.min.js +1 -1
  163. package/divider/divider.js +15 -2
  164. package/divider/divider.min.js +1 -1
  165. package/dock/BaseDock.vue +1 -1
  166. package/dock/Dock.d.ts +9 -9
  167. package/dock/Dock.vue +19 -2
  168. package/dock/dock.cjs.js +10 -4
  169. package/dock/dock.cjs.min.js +1 -1
  170. package/dock/dock.esm.js +10 -4
  171. package/dock/dock.esm.min.js +1 -1
  172. package/dock/dock.js +10 -4
  173. package/dock/dock.min.js +1 -1
  174. package/dropdown/BaseDropdown.vue +5 -5
  175. package/dropdown/Dropdown.d.ts +34 -28
  176. package/dropdown/Dropdown.vue +2 -2
  177. package/dropdown/dropdown.cjs.js +9 -9
  178. package/dropdown/dropdown.cjs.min.js +1 -1
  179. package/dropdown/dropdown.esm.js +9 -9
  180. package/dropdown/dropdown.esm.min.js +1 -1
  181. package/dropdown/dropdown.js +9 -9
  182. package/dropdown/dropdown.min.js +1 -1
  183. package/editor/BaseEditor.vue +0 -14
  184. package/editor/Editor.d.ts +19 -19
  185. package/editor/Editor.vue +20 -20
  186. package/editor/editor.cjs.js +20 -34
  187. package/editor/editor.cjs.min.js +1 -1
  188. package/editor/editor.esm.js +20 -34
  189. package/editor/editor.esm.min.js +1 -1
  190. package/editor/editor.js +20 -34
  191. package/editor/editor.min.js +1 -1
  192. package/fieldset/Fieldset.d.ts +17 -11
  193. package/fieldset/Fieldset.vue +1 -1
  194. package/fieldset/fieldset.cjs.js +3 -3
  195. package/fieldset/fieldset.cjs.min.js +1 -1
  196. package/fieldset/fieldset.esm.js +3 -3
  197. package/fieldset/fieldset.esm.min.js +1 -1
  198. package/fieldset/fieldset.js +3 -3
  199. package/fieldset/fieldset.min.js +1 -1
  200. package/fileupload/FileUpload.d.ts +24 -24
  201. package/fileupload/FileUpload.vue +4 -4
  202. package/fileupload/fileupload.cjs.js +10 -4
  203. package/fileupload/fileupload.cjs.min.js +1 -1
  204. package/fileupload/fileupload.esm.js +10 -4
  205. package/fileupload/fileupload.esm.min.js +1 -1
  206. package/fileupload/fileupload.js +10 -4
  207. package/fileupload/fileupload.min.js +1 -1
  208. package/focustrap/FocusTrap.d.ts +5 -5
  209. package/galleria/Galleria.d.ts +53 -34
  210. package/galleria/Galleria.vue +1 -1
  211. package/galleria/GalleriaItem.vue +9 -2
  212. package/galleria/GalleriaThumbnails.vue +1 -0
  213. package/galleria/galleria.cjs.js +14 -5
  214. package/galleria/galleria.cjs.min.js +1 -1
  215. package/galleria/galleria.esm.js +14 -5
  216. package/galleria/galleria.esm.min.js +1 -1
  217. package/galleria/galleria.js +14 -5
  218. package/galleria/galleria.min.js +1 -1
  219. package/image/Image.d.ts +28 -21
  220. package/image/Image.vue +2 -2
  221. package/image/image.cjs.js +4 -3
  222. package/image/image.cjs.min.js +1 -1
  223. package/image/image.esm.js +4 -3
  224. package/image/image.esm.min.js +1 -1
  225. package/image/image.js +4 -3
  226. package/image/image.min.js +1 -1
  227. package/inlinemessage/InlineMessage.d.ts +5 -5
  228. package/inplace/Inplace.d.ts +8 -8
  229. package/inputmask/InputMask.d.ts +32 -4
  230. package/inputmask/InputMask.vue +9 -1
  231. package/inputmask/inputmask.cjs.js +9 -1
  232. package/inputmask/inputmask.cjs.min.js +1 -1
  233. package/inputmask/inputmask.esm.js +9 -1
  234. package/inputmask/inputmask.esm.min.js +1 -1
  235. package/inputmask/inputmask.js +9 -1
  236. package/inputmask/inputmask.min.js +1 -1
  237. package/inputnumber/InputNumber.d.ts +10 -10
  238. package/inputswitch/InputSwitch.d.ts +7 -7
  239. package/inputtext/InputText.d.ts +3 -3
  240. package/knob/Knob.d.ts +7 -7
  241. package/listbox/Listbox.d.ts +18 -18
  242. package/megamenu/MegaMenu.d.ts +18 -18
  243. package/megamenu/MegaMenuSub.vue +1 -0
  244. package/megamenu/megamenu.cjs.js +2 -1
  245. package/megamenu/megamenu.cjs.min.js +1 -1
  246. package/megamenu/megamenu.esm.js +2 -1
  247. package/megamenu/megamenu.esm.min.js +1 -1
  248. package/megamenu/megamenu.js +2 -1
  249. package/megamenu/megamenu.min.js +1 -1
  250. package/menu/Menu.d.ts +20 -14
  251. package/menu/Menu.vue +1 -1
  252. package/menu/menu.cjs.js +3 -3
  253. package/menu/menu.cjs.min.js +1 -1
  254. package/menu/menu.esm.js +3 -3
  255. package/menu/menu.esm.min.js +1 -1
  256. package/menu/menu.js +3 -3
  257. package/menu/menu.min.js +1 -1
  258. package/menubar/Menubar.d.ts +21 -17
  259. package/menubar/MenubarSub.vue +3 -1
  260. package/menubar/menubar.cjs.js +4 -2
  261. package/menubar/menubar.cjs.min.js +1 -1
  262. package/menubar/menubar.esm.js +4 -2
  263. package/menubar/menubar.esm.min.js +1 -1
  264. package/menubar/menubar.js +4 -2
  265. package/menubar/menubar.min.js +1 -1
  266. package/message/Message.d.ts +18 -12
  267. package/message/Message.vue +1 -1
  268. package/message/message.cjs.js +3 -3
  269. package/message/message.cjs.min.js +1 -1
  270. package/message/message.esm.js +4 -4
  271. package/message/message.esm.min.js +1 -1
  272. package/message/message.js +3 -3
  273. package/message/message.min.js +1 -1
  274. package/multiselect/MultiSelect.d.ts +47 -41
  275. package/multiselect/MultiSelect.vue +1 -1
  276. package/multiselect/multiselect.cjs.js +3 -3
  277. package/multiselect/multiselect.cjs.min.js +1 -1
  278. package/multiselect/multiselect.esm.js +3 -3
  279. package/multiselect/multiselect.esm.min.js +1 -1
  280. package/multiselect/multiselect.js +3 -3
  281. package/multiselect/multiselect.min.js +1 -1
  282. package/orderlist/OrderList.d.ts +24 -18
  283. package/orderlist/OrderList.vue +2 -1
  284. package/orderlist/orderlist.cjs.js +3 -1
  285. package/orderlist/orderlist.cjs.min.js +1 -1
  286. package/orderlist/orderlist.esm.js +3 -1
  287. package/orderlist/orderlist.esm.min.js +1 -1
  288. package/orderlist/orderlist.js +3 -1
  289. package/orderlist/orderlist.min.js +1 -1
  290. package/organizationchart/OrganizationChart.d.ts +15 -15
  291. package/overlaypanel/OverlayPanel.d.ts +13 -7
  292. package/overlaypanel/OverlayPanel.vue +2 -1
  293. package/overlaypanel/overlaypanel.cjs.js +5 -3
  294. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  295. package/overlaypanel/overlaypanel.esm.js +6 -4
  296. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  297. package/overlaypanel/overlaypanel.js +5 -3
  298. package/overlaypanel/overlaypanel.min.js +1 -1
  299. package/package.json +15 -15
  300. package/paginator/Paginator.d.ts +20 -20
  301. package/paginator/Paginator.vue +2 -1
  302. package/paginator/paginator.cjs.js +2 -0
  303. package/paginator/paginator.cjs.min.js +1 -1
  304. package/paginator/paginator.esm.js +3 -1
  305. package/paginator/paginator.esm.min.js +1 -1
  306. package/paginator/paginator.js +2 -0
  307. package/paginator/paginator.min.js +1 -1
  308. package/panel/Panel.d.ts +19 -13
  309. package/panel/Panel.vue +1 -1
  310. package/panel/panel.cjs.js +3 -3
  311. package/panel/panel.cjs.min.js +1 -1
  312. package/panel/panel.esm.js +3 -3
  313. package/panel/panel.esm.min.js +1 -1
  314. package/panel/panel.js +3 -3
  315. package/panel/panel.min.js +1 -1
  316. package/panelmenu/PanelMenu.d.ts +27 -21
  317. package/panelmenu/PanelMenu.vue +1 -1
  318. package/panelmenu/PanelMenuSub.vue +1 -1
  319. package/panelmenu/panelmenu.cjs.js +6 -6
  320. package/panelmenu/panelmenu.cjs.min.js +1 -1
  321. package/panelmenu/panelmenu.esm.js +6 -6
  322. package/panelmenu/panelmenu.esm.min.js +1 -1
  323. package/panelmenu/panelmenu.js +6 -6
  324. package/panelmenu/panelmenu.min.js +1 -1
  325. package/passthrough/index.cjs.js +74 -0
  326. package/passthrough/index.cjs.min.js +1 -0
  327. package/passthrough/index.d.ts +15 -0
  328. package/passthrough/index.esm.js +70 -0
  329. package/passthrough/index.esm.min.js +1 -0
  330. package/passthrough/index.js +77 -0
  331. package/passthrough/index.min.js +1 -0
  332. package/passthrough/package.json +6 -0
  333. package/{tailwind/tailwind.cjs.js → passthrough/tailwind/index.cjs.js} +1268 -828
  334. package/passthrough/tailwind/index.cjs.min.js +1 -0
  335. package/{tailwind/Tailwind.d.ts → passthrough/tailwind/index.d.ts} +1 -1
  336. package/{tailwind/tailwind.esm.js → passthrough/tailwind/index.esm.js} +1265 -828
  337. package/passthrough/tailwind/index.esm.min.js +1 -0
  338. package/{tailwind/tailwind.js → passthrough/tailwind/index.js} +1273 -830
  339. package/passthrough/tailwind/index.min.js +1 -0
  340. package/passthrough/tailwind/package.json +6 -0
  341. package/password/Password.d.ts +25 -14
  342. package/password/Password.vue +2 -1
  343. package/password/password.cjs.js +4 -3
  344. package/password/password.cjs.min.js +1 -1
  345. package/password/password.esm.js +4 -3
  346. package/password/password.esm.min.js +1 -1
  347. package/password/password.js +4 -3
  348. package/password/password.min.js +1 -1
  349. package/picklist/PickList.d.ts +42 -36
  350. package/picklist/PickList.vue +3 -2
  351. package/picklist/picklist.cjs.js +4 -2
  352. package/picklist/picklist.cjs.min.js +1 -1
  353. package/picklist/picklist.esm.js +4 -2
  354. package/picklist/picklist.esm.min.js +1 -1
  355. package/picklist/picklist.js +4 -2
  356. package/picklist/picklist.min.js +1 -1
  357. package/progressbar/ProgressBar.d.ts +5 -5
  358. package/progressspinner/ProgressSpinner.d.ts +5 -5
  359. package/radiobutton/RadioButton.d.ts +10 -10
  360. package/rating/Rating.d.ts +12 -12
  361. package/rating/Rating.vue +3 -3
  362. package/rating/rating.cjs.js +3 -3
  363. package/rating/rating.cjs.min.js +1 -1
  364. package/rating/rating.esm.js +3 -3
  365. package/rating/rating.esm.min.js +1 -1
  366. package/rating/rating.js +3 -3
  367. package/rating/rating.min.js +1 -1
  368. package/resources/themes/arya-blue/theme.css +7 -0
  369. package/resources/themes/arya-green/theme.css +7 -0
  370. package/resources/themes/arya-orange/theme.css +7 -0
  371. package/resources/themes/arya-purple/theme.css +7 -0
  372. package/resources/themes/bootstrap4-dark-blue/theme.css +14 -0
  373. package/resources/themes/bootstrap4-dark-purple/theme.css +14 -0
  374. package/resources/themes/bootstrap4-light-blue/theme.css +14 -0
  375. package/resources/themes/bootstrap4-light-purple/theme.css +14 -0
  376. package/resources/themes/fluent-light/theme.css +7 -0
  377. package/resources/themes/lara-dark-blue/theme.css +7 -0
  378. package/resources/themes/lara-dark-indigo/theme.css +7 -0
  379. package/resources/themes/lara-dark-purple/theme.css +7 -0
  380. package/resources/themes/lara-dark-teal/theme.css +7 -0
  381. package/resources/themes/lara-light-blue/theme.css +7 -0
  382. package/resources/themes/lara-light-indigo/theme.css +7 -0
  383. package/resources/themes/lara-light-purple/theme.css +7 -0
  384. package/resources/themes/lara-light-teal/theme.css +7 -0
  385. package/resources/themes/luna-amber/theme.css +7 -0
  386. package/resources/themes/luna-blue/theme.css +7 -0
  387. package/resources/themes/luna-green/theme.css +7 -0
  388. package/resources/themes/luna-pink/theme.css +7 -0
  389. package/resources/themes/md-dark-deeppurple/theme.css +7 -0
  390. package/resources/themes/md-dark-indigo/theme.css +7 -0
  391. package/resources/themes/md-light-deeppurple/theme.css +7 -0
  392. package/resources/themes/md-light-indigo/theme.css +7 -0
  393. package/resources/themes/mdc-dark-deeppurple/theme.css +7 -0
  394. package/resources/themes/mdc-dark-indigo/theme.css +7 -0
  395. package/resources/themes/mdc-light-deeppurple/theme.css +7 -0
  396. package/resources/themes/mdc-light-indigo/theme.css +7 -0
  397. package/resources/themes/mira/theme.css +7 -0
  398. package/resources/themes/nano/theme.css +7 -0
  399. package/resources/themes/nova/theme.css +7 -0
  400. package/resources/themes/nova-accent/theme.css +7 -0
  401. package/resources/themes/nova-alt/theme.css +7 -0
  402. package/resources/themes/nova-vue/theme.css +7 -0
  403. package/resources/themes/rhea/theme.css +7 -0
  404. package/resources/themes/saga-blue/theme.css +7 -0
  405. package/resources/themes/saga-green/theme.css +7 -0
  406. package/resources/themes/saga-orange/theme.css +7 -0
  407. package/resources/themes/saga-purple/theme.css +7 -0
  408. package/resources/themes/soho-dark/theme.css +7 -0
  409. package/resources/themes/soho-light/theme.css +7 -0
  410. package/resources/themes/tailwind-light/theme.css +7 -0
  411. package/resources/themes/vela-blue/theme.css +7 -0
  412. package/resources/themes/vela-green/theme.css +7 -0
  413. package/resources/themes/vela-orange/theme.css +7 -0
  414. package/resources/themes/vela-purple/theme.css +7 -0
  415. package/resources/themes/viva-dark/theme.css +7 -0
  416. package/resources/themes/viva-light/theme.css +7 -0
  417. package/ripple/Ripple.d.ts +3 -3
  418. package/row/Row.d.ts +2 -2
  419. package/scrollpanel/ScrollPanel.d.ts +7 -7
  420. package/scrolltop/ScrollTop.d.ts +11 -5
  421. package/scrolltop/ScrollTop.vue +1 -1
  422. package/scrolltop/scrolltop.cjs.js +3 -3
  423. package/scrolltop/scrolltop.cjs.min.js +1 -1
  424. package/scrolltop/scrolltop.esm.js +4 -4
  425. package/scrolltop/scrolltop.esm.min.js +1 -1
  426. package/scrolltop/scrolltop.js +3 -3
  427. package/scrolltop/scrolltop.min.js +1 -1
  428. package/selectbutton/SelectButton.d.ts +5 -5
  429. package/sidebar/Sidebar.d.ts +16 -10
  430. package/sidebar/Sidebar.vue +1 -1
  431. package/sidebar/sidebar.cjs.js +3 -3
  432. package/sidebar/sidebar.cjs.min.js +1 -1
  433. package/sidebar/sidebar.esm.js +3 -3
  434. package/sidebar/sidebar.esm.min.js +1 -1
  435. package/sidebar/sidebar.js +3 -3
  436. package/sidebar/sidebar.min.js +1 -1
  437. package/skeleton/Skeleton.d.ts +3 -3
  438. package/slider/Slider.d.ts +7 -7
  439. package/speeddial/BaseSpeedDial.vue +12 -36
  440. package/speeddial/SpeedDial.d.ts +14 -9
  441. package/speeddial/SpeedDial.vue +5 -4
  442. package/speeddial/speeddial.cjs.js +44 -23
  443. package/speeddial/speeddial.cjs.min.js +1 -1
  444. package/speeddial/speeddial.esm.js +44 -23
  445. package/speeddial/speeddial.esm.min.js +1 -1
  446. package/speeddial/speeddial.js +44 -23
  447. package/speeddial/speeddial.min.js +1 -1
  448. package/splitbutton/SplitButton.d.ts +8 -8
  449. package/splitbutton/SplitButton.vue +22 -3
  450. package/splitbutton/splitbutton.cjs.js +17 -5
  451. package/splitbutton/splitbutton.cjs.min.js +1 -1
  452. package/splitbutton/splitbutton.esm.js +17 -5
  453. package/splitbutton/splitbutton.esm.min.js +1 -1
  454. package/splitbutton/splitbutton.js +17 -5
  455. package/splitbutton/splitbutton.min.js +1 -1
  456. package/splitter/Splitter.d.ts +16 -5
  457. package/splitter/Splitter.vue +8 -1
  458. package/splitter/splitter.cjs.js +9 -1
  459. package/splitter/splitter.cjs.min.js +1 -1
  460. package/splitter/splitter.esm.js +9 -1
  461. package/splitter/splitter.esm.min.js +1 -1
  462. package/splitter/splitter.js +9 -1
  463. package/splitter/splitter.min.js +1 -1
  464. package/splitterpanel/SplitterPanel.d.ts +3 -3
  465. package/splitterpanel/SplitterPanel.vue +1 -1
  466. package/splitterpanel/splitterpanel.cjs.js +1 -1
  467. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  468. package/splitterpanel/splitterpanel.esm.js +1 -1
  469. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  470. package/splitterpanel/splitterpanel.js +1 -1
  471. package/splitterpanel/splitterpanel.min.js +1 -1
  472. package/steps/Steps.d.ts +8 -8
  473. package/styleclass/StyleClass.d.ts +2 -2
  474. package/tabmenu/TabMenu.d.ts +9 -9
  475. package/tabpanel/TabPanel.d.ts +10 -10
  476. package/tabview/TabView.d.ts +16 -16
  477. package/tag/Tag.d.ts +5 -5
  478. package/terminal/Terminal.d.ts +11 -11
  479. package/textarea/Textarea.d.ts +3 -3
  480. package/tieredmenu/TieredMenu.d.ts +19 -13
  481. package/tieredmenu/TieredMenu.vue +1 -1
  482. package/tieredmenu/tieredmenu.cjs.js +3 -3
  483. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  484. package/tieredmenu/tieredmenu.esm.js +3 -3
  485. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  486. package/tieredmenu/tieredmenu.js +3 -3
  487. package/tieredmenu/tieredmenu.min.js +1 -1
  488. package/timeline/Timeline.d.ts +9 -9
  489. package/toast/BaseToast.vue +4 -0
  490. package/toast/Toast.d.ts +23 -17
  491. package/toast/Toast.vue +3 -2
  492. package/toast/toast.cjs.js +4 -2
  493. package/toast/toast.cjs.min.js +1 -1
  494. package/toast/toast.esm.js +5 -3
  495. package/toast/toast.esm.min.js +1 -1
  496. package/toast/toast.js +4 -2
  497. package/toast/toast.min.js +1 -1
  498. package/togglebutton/ToggleButton.d.ts +31 -9
  499. package/togglebutton/ToggleButton.vue +12 -3
  500. package/togglebutton/togglebutton.cjs.js +12 -3
  501. package/togglebutton/togglebutton.cjs.min.js +1 -1
  502. package/togglebutton/togglebutton.esm.js +12 -3
  503. package/togglebutton/togglebutton.esm.min.js +1 -1
  504. package/togglebutton/togglebutton.js +12 -3
  505. package/togglebutton/togglebutton.min.js +1 -1
  506. package/toolbar/Toolbar.d.ts +6 -6
  507. package/toolbar/Toolbar.vue +3 -3
  508. package/toolbar/toolbar.cjs.js +3 -6
  509. package/toolbar/toolbar.cjs.min.js +1 -1
  510. package/toolbar/toolbar.esm.js +3 -6
  511. package/toolbar/toolbar.esm.min.js +1 -1
  512. package/toolbar/toolbar.js +3 -6
  513. package/toolbar/toolbar.min.js +1 -1
  514. package/tooltip/Tooltip.d.ts +35 -6
  515. package/tooltip/tooltip.cjs.js +17 -4
  516. package/tooltip/tooltip.cjs.min.js +1 -1
  517. package/tooltip/tooltip.esm.js +17 -4
  518. package/tooltip/tooltip.esm.min.js +1 -1
  519. package/tooltip/tooltip.js +413 -400
  520. package/tooltip/tooltip.min.js +1 -1
  521. package/tree/Tree.d.ts +20 -20
  522. package/tree/Tree.vue +1 -0
  523. package/tree/tree.cjs.js +3 -2
  524. package/tree/tree.cjs.min.js +1 -1
  525. package/tree/tree.esm.js +3 -2
  526. package/tree/tree.esm.min.js +1 -1
  527. package/tree/tree.js +3 -2
  528. package/tree/tree.min.js +1 -1
  529. package/treeselect/TreeSelect.d.ts +23 -17
  530. package/treeselect/TreeSelect.vue +2 -2
  531. package/treeselect/treeselect.cjs.js +4 -4
  532. package/treeselect/treeselect.cjs.min.js +1 -1
  533. package/treeselect/treeselect.esm.js +4 -4
  534. package/treeselect/treeselect.esm.min.js +1 -1
  535. package/treeselect/treeselect.js +4 -4
  536. package/treeselect/treeselect.min.js +1 -1
  537. package/treetable/TreeTable.d.ts +21 -21
  538. package/treetable/TreeTable.vue +2 -1
  539. package/treetable/treetable.cjs.js +1 -1
  540. package/treetable/treetable.cjs.min.js +1 -1
  541. package/treetable/treetable.esm.js +1 -1
  542. package/treetable/treetable.esm.min.js +1 -1
  543. package/treetable/treetable.js +1 -1
  544. package/treetable/treetable.min.js +1 -1
  545. package/tristatecheckbox/TriStateCheckbox.d.ts +11 -11
  546. package/usestyle/UseStyle.d.ts +2 -1
  547. package/usestyle/usestyle.cjs.js +20 -7
  548. package/usestyle/usestyle.cjs.min.js +1 -1
  549. package/usestyle/usestyle.esm.js +20 -7
  550. package/usestyle/usestyle.esm.min.js +1 -1
  551. package/usestyle/usestyle.js +20 -7
  552. package/usestyle/usestyle.min.js +1 -1
  553. package/utils/Utils.d.ts +4 -0
  554. package/utils/utils.cjs.js +48 -8
  555. package/utils/utils.cjs.min.js +1 -1
  556. package/utils/utils.esm.js +48 -8
  557. package/utils/utils.esm.min.js +1 -1
  558. package/utils/utils.js +48 -8
  559. package/utils/utils.min.js +1 -1
  560. package/vetur-attributes.json +129 -125
  561. package/vetur-tags.json +1 -0
  562. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  563. package/virtualscroller/VirtualScroller.d.ts +7 -7
  564. package/virtualscroller/virtualscroller.cjs.js +2 -1
  565. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  566. package/virtualscroller/virtualscroller.esm.js +2 -1
  567. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  568. package/virtualscroller/virtualscroller.js +2 -1
  569. package/virtualscroller/virtualscroller.min.js +1 -1
  570. package/web-types.json +160 -127
  571. package/tailwind/package.json +0 -6
  572. package/tailwind/tailwind.cjs.min.js +0 -1
  573. package/tailwind/tailwind.esm.min.js +0 -1
  574. package/tailwind/tailwind.min.js +0 -1
@@ -461,6 +461,14 @@ var script = {
461
461
  computed: {
462
462
  filled: function filled() {
463
463
  return this.modelValue != null && this.modelValue.toString().length > 0;
464
+ },
465
+ ptmParams: function ptmParams() {
466
+ return {
467
+ context: {
468
+ filled: this.filled,
469
+ disabled: this.$attrs.disabled || this.$attrs.disabled === ''
470
+ }
471
+ };
464
472
  }
465
473
  }
466
474
  };
@@ -488,7 +496,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
488
496
  onPaste: _cache[5] || (_cache[5] = function () {
489
497
  return $options.onPaste && $options.onPaste.apply($options, arguments);
490
498
  })
491
- }, _ctx.ptm('root'), {
499
+ }, _ctx.ptm('root', $options.ptmParams), {
492
500
  "data-pc-name": "inputmask"
493
501
  }), null, 16, _hoisted_1);
494
502
  }
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),s=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n={name:"InputMask",extends:{name:"BaseInputMask",extends:i(t).default,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:{root:function(e){return["p-inputmask p-inputtext p-component",{"p-filled":e.instance.filled}]}}}},emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(e,t){t!==e&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus:function(e){var t,s=this;this.readonly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.$el.value,t=this.checkVal(),this.caretTimeoutId=setTimeout((function(){s.$el===document.activeElement&&(s.writeBuffer(),t===s.mask.replace("?","").length?s.caret(0,t):s.caret(t))}),10),this.$emit("focus",e))},onBlur:function(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.$el.dispatchEvent(t)}this.$emit("blur",e)},onKeyDown:function(t){if(!this.readonly){var s,i,n,a=t.which||t.keyCode,h=/iphone/i.test(e.DomHandler.getUserAgent());this.oldVal=this.$el.value,8===a||46===a||h&&127===a?((n=(s=this.caret()).end)-(i=s.begin)==0&&(i=46!==a?this.seekPrev(i):n=this.seekNext(i-1),n=46===a?this.seekNext(n):n),this.clearBuffer(i,n),this.shiftL(i,n-1),this.updateModel(t),t.preventDefault()):13===a?(this.$el.blur(),this.updateModel(t)):27===a&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault()),this.$emit("keydown",t)}},onKeyPress:function(t){var s=this;if(!this.readonly){var i,n,a,h,l=t.which||t.keyCode,r=this.caret();if(!(t.ctrlKey||t.altKey||t.metaKey||l<32)){if(l&&13!==l){if(r.end-r.begin!=0&&(this.clearBuffer(r.begin,r.end),this.shiftL(r.begin,r.end-1)),(i=this.seekNext(r.begin-1))<this.len&&(n=String.fromCharCode(l),this.tests[i].test(n))){if(this.shiftR(i),this.buffer[i]=n,this.writeBuffer(),a=this.seekNext(i),/android/i.test(e.DomHandler.getUserAgent())){setTimeout((function(){s.caret(a)}),0)}else this.caret(a);r.begin<=this.lastRequiredNonMaskPos&&(h=this.isCompleted())}t.preventDefault()}this.updateModel(t),h&&this.$emit("complete",t),this.$emit("keypress",t)}}},onPaste:function(e){this.handleInputChange(e),this.$emit("paste",e)},caret:function(e,t){var s,i,n;if(this.$el.offsetParent&&this.$el===document.activeElement)return"number"!=typeof e?(this.$el.setSelectionRange?(i=this.$el.selectionStart,n=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(n=(i=0-(s=document.selection.createRange()).duplicate().moveStart("character",-1e5))+s.text.length),{begin:i,end:n}):(i=e,n="number"==typeof t?t:i,void(this.$el.setSelectionRange?this.$el.setSelectionRange(i,n):this.$el.createTextRange&&((s=this.$el.createTextRange()).collapse(!0),s.moveEnd("character",n),s.moveStart("character",i),s.select())))},isCompleted:function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder:function(e){return this.slotChar.charAt(e<this.slotChar.length?e:0)},seekNext:function(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev:function(e){for(;--e>=0&&!this.tests[e];);return e},shiftL:function(e,t){var s,i;if(!(e<0)){for(s=e,i=this.seekNext(t);s<this.len;s++)if(this.tests[s]){if(!(i<this.len&&this.tests[s].test(this.buffer[i])))break;this.buffer[s]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR:function(e){var t,s,i,n;for(t=e,s=this.getPlaceholder(e);t<this.len;t++)if(this.tests[t]){if(i=this.seekNext(t),n=this.buffer[t],this.buffer[t]=s,!(i<this.len&&this.tests[i].test(n)))break;s=n}},handleAndroidInput:function(e){var t=this.$el.value,s=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>t.length){for(this.checkVal(!0);s.begin>0&&!this.tests[s.begin-1];)s.begin--;if(0===s.begin)for(;s.begin<this.firstNonMaskPos&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}else{for(this.checkVal(!0);s.begin<this.len&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer:function(e,t){var s;for(s=e;s<t&&s<this.len;s++)this.tests[s]&&(this.buffer[s]=this.getPlaceholder(s))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(e){this.isValueChecked=!0;var t,s,i,n=this.$el.value,a=-1;for(t=0,i=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);i++<n.length;)if(s=n.charAt(i-1),this.tests[t].test(s)){this.buffer[t]=s,a=t;break}if(i>n.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===n.charAt(i)&&i++,t<this.partialPosition&&(a=t);return e?this.writeBuffer():a+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,a+1)),this.partialPosition?t:this.firstNonMaskPos},handleInputChange:function(e){if(!this.readonly){var t=this.checkVal(!0);this.caret(t),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue:function(){for(var e=[],t=0;t<this.buffer.length;t++){var s=this.buffer[t];this.tests[t]&&s!==this.getPlaceholder(t)&&e.push(s)}return e.join("")},updateModel:function(e){var t=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==t?t:"")},updateValue:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$el&&(null==this.modelValue?(this.$el.value="",t&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout((function(){if(e.$el&&(e.writeBuffer(),e.checkVal(),t)){var s=e.unmask?e.getUnmaskedValue():e.$el.value;e.$emit("update:modelValue",e.defaultBuffer!==s?s:"")}}),10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=e.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var s=this.mask.split(""),i=0;i<s.length;i++){var n=s[i];"?"===n?(this.len--,this.partialPosition=i):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),i<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var a=0;a<s.length;a++){var h=s[a];"?"!==h&&this.buffer.push(this.defs[h]?this.getPlaceholder(a):h)}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0}}},a=["readonly"];n.render=function(e,t,i,n,h,l){return s.openBlock(),s.createElementBlock("input",s.mergeProps({class:e.cx("root"),readonly:e.readonly,onInput:t[0]||(t[0]=function(){return l.onInput&&l.onInput.apply(l,arguments)}),onFocus:t[1]||(t[1]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[2]||(t[2]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[3]||(t[3]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)}),onKeypress:t[4]||(t[4]=function(){return l.onKeyPress&&l.onKeyPress.apply(l,arguments)}),onPaste:t[5]||(t[5]=function(){return l.onPaste&&l.onPaste.apply(l,arguments)})},e.ptm("root"),{"data-pc-name":"inputmask"}),null,16,a)},module.exports=n;
1
+ "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),s=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n={name:"InputMask",extends:{name:"BaseInputMask",extends:i(t).default,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:{root:function(e){return["p-inputmask p-inputtext p-component",{"p-filled":e.instance.filled}]}}}},emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(e,t){t!==e&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus:function(e){var t,s=this;this.readonly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.$el.value,t=this.checkVal(),this.caretTimeoutId=setTimeout((function(){s.$el===document.activeElement&&(s.writeBuffer(),t===s.mask.replace("?","").length?s.caret(0,t):s.caret(t))}),10),this.$emit("focus",e))},onBlur:function(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.$el.dispatchEvent(t)}this.$emit("blur",e)},onKeyDown:function(t){if(!this.readonly){var s,i,n,a=t.which||t.keyCode,h=/iphone/i.test(e.DomHandler.getUserAgent());this.oldVal=this.$el.value,8===a||46===a||h&&127===a?((n=(s=this.caret()).end)-(i=s.begin)==0&&(i=46!==a?this.seekPrev(i):n=this.seekNext(i-1),n=46===a?this.seekNext(n):n),this.clearBuffer(i,n),this.shiftL(i,n-1),this.updateModel(t),t.preventDefault()):13===a?(this.$el.blur(),this.updateModel(t)):27===a&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault()),this.$emit("keydown",t)}},onKeyPress:function(t){var s=this;if(!this.readonly){var i,n,a,h,l=t.which||t.keyCode,r=this.caret();if(!(t.ctrlKey||t.altKey||t.metaKey||l<32)){if(l&&13!==l){if(r.end-r.begin!=0&&(this.clearBuffer(r.begin,r.end),this.shiftL(r.begin,r.end-1)),(i=this.seekNext(r.begin-1))<this.len&&(n=String.fromCharCode(l),this.tests[i].test(n))){if(this.shiftR(i),this.buffer[i]=n,this.writeBuffer(),a=this.seekNext(i),/android/i.test(e.DomHandler.getUserAgent())){setTimeout((function(){s.caret(a)}),0)}else this.caret(a);r.begin<=this.lastRequiredNonMaskPos&&(h=this.isCompleted())}t.preventDefault()}this.updateModel(t),h&&this.$emit("complete",t),this.$emit("keypress",t)}}},onPaste:function(e){this.handleInputChange(e),this.$emit("paste",e)},caret:function(e,t){var s,i,n;if(this.$el.offsetParent&&this.$el===document.activeElement)return"number"!=typeof e?(this.$el.setSelectionRange?(i=this.$el.selectionStart,n=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(n=(i=0-(s=document.selection.createRange()).duplicate().moveStart("character",-1e5))+s.text.length),{begin:i,end:n}):(i=e,n="number"==typeof t?t:i,void(this.$el.setSelectionRange?this.$el.setSelectionRange(i,n):this.$el.createTextRange&&((s=this.$el.createTextRange()).collapse(!0),s.moveEnd("character",n),s.moveStart("character",i),s.select())))},isCompleted:function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder:function(e){return this.slotChar.charAt(e<this.slotChar.length?e:0)},seekNext:function(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev:function(e){for(;--e>=0&&!this.tests[e];);return e},shiftL:function(e,t){var s,i;if(!(e<0)){for(s=e,i=this.seekNext(t);s<this.len;s++)if(this.tests[s]){if(!(i<this.len&&this.tests[s].test(this.buffer[i])))break;this.buffer[s]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR:function(e){var t,s,i,n;for(t=e,s=this.getPlaceholder(e);t<this.len;t++)if(this.tests[t]){if(i=this.seekNext(t),n=this.buffer[t],this.buffer[t]=s,!(i<this.len&&this.tests[i].test(n)))break;s=n}},handleAndroidInput:function(e){var t=this.$el.value,s=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>t.length){for(this.checkVal(!0);s.begin>0&&!this.tests[s.begin-1];)s.begin--;if(0===s.begin)for(;s.begin<this.firstNonMaskPos&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}else{for(this.checkVal(!0);s.begin<this.len&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer:function(e,t){var s;for(s=e;s<t&&s<this.len;s++)this.tests[s]&&(this.buffer[s]=this.getPlaceholder(s))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(e){this.isValueChecked=!0;var t,s,i,n=this.$el.value,a=-1;for(t=0,i=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);i++<n.length;)if(s=n.charAt(i-1),this.tests[t].test(s)){this.buffer[t]=s,a=t;break}if(i>n.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===n.charAt(i)&&i++,t<this.partialPosition&&(a=t);return e?this.writeBuffer():a+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,a+1)),this.partialPosition?t:this.firstNonMaskPos},handleInputChange:function(e){if(!this.readonly){var t=this.checkVal(!0);this.caret(t),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue:function(){for(var e=[],t=0;t<this.buffer.length;t++){var s=this.buffer[t];this.tests[t]&&s!==this.getPlaceholder(t)&&e.push(s)}return e.join("")},updateModel:function(e){var t=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==t?t:"")},updateValue:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$el&&(null==this.modelValue?(this.$el.value="",t&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout((function(){if(e.$el&&(e.writeBuffer(),e.checkVal(),t)){var s=e.unmask?e.getUnmaskedValue():e.$el.value;e.$emit("update:modelValue",e.defaultBuffer!==s?s:"")}}),10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=e.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var s=this.mask.split(""),i=0;i<s.length;i++){var n=s[i];"?"===n?(this.len--,this.partialPosition=i):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),i<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var a=0;a<s.length;a++){var h=s[a];"?"!==h&&this.buffer.push(this.defs[h]?this.getPlaceholder(a):h)}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{filled:this.filled,disabled:this.$attrs.disabled||""===this.$attrs.disabled}}}}},a=["readonly"];n.render=function(e,t,i,n,h,l){return s.openBlock(),s.createElementBlock("input",s.mergeProps({class:e.cx("root"),readonly:e.readonly,onInput:t[0]||(t[0]=function(){return l.onInput&&l.onInput.apply(l,arguments)}),onFocus:t[1]||(t[1]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[2]||(t[2]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[3]||(t[3]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)}),onKeypress:t[4]||(t[4]=function(){return l.onKeyPress&&l.onKeyPress.apply(l,arguments)}),onPaste:t[5]||(t[5]=function(){return l.onPaste&&l.onPaste.apply(l,arguments)})},e.ptm("root",l.ptmParams),{"data-pc-name":"inputmask"}),null,16,a)},module.exports=n;
@@ -455,6 +455,14 @@ var script = {
455
455
  computed: {
456
456
  filled: function filled() {
457
457
  return this.modelValue != null && this.modelValue.toString().length > 0;
458
+ },
459
+ ptmParams: function ptmParams() {
460
+ return {
461
+ context: {
462
+ filled: this.filled,
463
+ disabled: this.$attrs.disabled || this.$attrs.disabled === ''
464
+ }
465
+ };
458
466
  }
459
467
  }
460
468
  };
@@ -482,7 +490,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
482
490
  onPaste: _cache[5] || (_cache[5] = function () {
483
491
  return $options.onPaste && $options.onPaste.apply($options, arguments);
484
492
  })
485
- }, _ctx.ptm('root'), {
493
+ }, _ctx.ptm('root', $options.ptmParams), {
486
494
  "data-pc-name": "inputmask"
487
495
  }), null, 16, _hoisted_1);
488
496
  }
@@ -1 +1 @@
1
- import{DomHandler as e}from"primevue/utils";import t from"primevue/basecomponent";import{openBlock as s,createElementBlock as i,mergeProps as n}from"vue";var h={name:"InputMask",extends:{name:"BaseInputMask",extends:t,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:{root:function(e){return["p-inputmask p-inputtext p-component",{"p-filled":e.instance.filled}]}}}},emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(e,t){t!==e&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus:function(e){var t,s=this;this.readonly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.$el.value,t=this.checkVal(),this.caretTimeoutId=setTimeout((function(){s.$el===document.activeElement&&(s.writeBuffer(),t===s.mask.replace("?","").length?s.caret(0,t):s.caret(t))}),10),this.$emit("focus",e))},onBlur:function(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.$el.dispatchEvent(t)}this.$emit("blur",e)},onKeyDown:function(t){if(!this.readonly){var s,i,n,h=t.which||t.keyCode,a=/iphone/i.test(e.getUserAgent());this.oldVal=this.$el.value,8===h||46===h||a&&127===h?((n=(s=this.caret()).end)-(i=s.begin)==0&&(i=46!==h?this.seekPrev(i):n=this.seekNext(i-1),n=46===h?this.seekNext(n):n),this.clearBuffer(i,n),this.shiftL(i,n-1),this.updateModel(t),t.preventDefault()):13===h?(this.$el.blur(),this.updateModel(t)):27===h&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault()),this.$emit("keydown",t)}},onKeyPress:function(t){var s=this;if(!this.readonly){var i,n,h,a,l=t.which||t.keyCode,r=this.caret();if(!(t.ctrlKey||t.altKey||t.metaKey||l<32)){if(l&&13!==l){if(r.end-r.begin!=0&&(this.clearBuffer(r.begin,r.end),this.shiftL(r.begin,r.end-1)),(i=this.seekNext(r.begin-1))<this.len&&(n=String.fromCharCode(l),this.tests[i].test(n))){if(this.shiftR(i),this.buffer[i]=n,this.writeBuffer(),h=this.seekNext(i),/android/i.test(e.getUserAgent())){setTimeout((function(){s.caret(h)}),0)}else this.caret(h);r.begin<=this.lastRequiredNonMaskPos&&(a=this.isCompleted())}t.preventDefault()}this.updateModel(t),a&&this.$emit("complete",t),this.$emit("keypress",t)}}},onPaste:function(e){this.handleInputChange(e),this.$emit("paste",e)},caret:function(e,t){var s,i,n;if(this.$el.offsetParent&&this.$el===document.activeElement)return"number"!=typeof e?(this.$el.setSelectionRange?(i=this.$el.selectionStart,n=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(n=(i=0-(s=document.selection.createRange()).duplicate().moveStart("character",-1e5))+s.text.length),{begin:i,end:n}):(i=e,n="number"==typeof t?t:i,void(this.$el.setSelectionRange?this.$el.setSelectionRange(i,n):this.$el.createTextRange&&((s=this.$el.createTextRange()).collapse(!0),s.moveEnd("character",n),s.moveStart("character",i),s.select())))},isCompleted:function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder:function(e){return this.slotChar.charAt(e<this.slotChar.length?e:0)},seekNext:function(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev:function(e){for(;--e>=0&&!this.tests[e];);return e},shiftL:function(e,t){var s,i;if(!(e<0)){for(s=e,i=this.seekNext(t);s<this.len;s++)if(this.tests[s]){if(!(i<this.len&&this.tests[s].test(this.buffer[i])))break;this.buffer[s]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR:function(e){var t,s,i,n;for(t=e,s=this.getPlaceholder(e);t<this.len;t++)if(this.tests[t]){if(i=this.seekNext(t),n=this.buffer[t],this.buffer[t]=s,!(i<this.len&&this.tests[i].test(n)))break;s=n}},handleAndroidInput:function(e){var t=this.$el.value,s=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>t.length){for(this.checkVal(!0);s.begin>0&&!this.tests[s.begin-1];)s.begin--;if(0===s.begin)for(;s.begin<this.firstNonMaskPos&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}else{for(this.checkVal(!0);s.begin<this.len&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer:function(e,t){var s;for(s=e;s<t&&s<this.len;s++)this.tests[s]&&(this.buffer[s]=this.getPlaceholder(s))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(e){this.isValueChecked=!0;var t,s,i,n=this.$el.value,h=-1;for(t=0,i=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);i++<n.length;)if(s=n.charAt(i-1),this.tests[t].test(s)){this.buffer[t]=s,h=t;break}if(i>n.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===n.charAt(i)&&i++,t<this.partialPosition&&(h=t);return e?this.writeBuffer():h+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,h+1)),this.partialPosition?t:this.firstNonMaskPos},handleInputChange:function(e){if(!this.readonly){var t=this.checkVal(!0);this.caret(t),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue:function(){for(var e=[],t=0;t<this.buffer.length;t++){var s=this.buffer[t];this.tests[t]&&s!==this.getPlaceholder(t)&&e.push(s)}return e.join("")},updateModel:function(e){var t=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==t?t:"")},updateValue:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$el&&(null==this.modelValue?(this.$el.value="",t&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout((function(){if(e.$el&&(e.writeBuffer(),e.checkVal(),t)){var s=e.unmask?e.getUnmaskedValue():e.$el.value;e.$emit("update:modelValue",e.defaultBuffer!==s?s:"")}}),10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=e.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var s=this.mask.split(""),i=0;i<s.length;i++){var n=s[i];"?"===n?(this.len--,this.partialPosition=i):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),i<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var h=0;h<s.length;h++){var a=s[h];"?"!==a&&this.buffer.push(this.defs[a]?this.getPlaceholder(h):a)}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0}}},a=["readonly"];h.render=function(e,t,h,l,r,o){return s(),i("input",n({class:e.cx("root"),readonly:e.readonly,onInput:t[0]||(t[0]=function(){return o.onInput&&o.onInput.apply(o,arguments)}),onFocus:t[1]||(t[1]=function(){return o.onFocus&&o.onFocus.apply(o,arguments)}),onBlur:t[2]||(t[2]=function(){return o.onBlur&&o.onBlur.apply(o,arguments)}),onKeydown:t[3]||(t[3]=function(){return o.onKeyDown&&o.onKeyDown.apply(o,arguments)}),onKeypress:t[4]||(t[4]=function(){return o.onKeyPress&&o.onKeyPress.apply(o,arguments)}),onPaste:t[5]||(t[5]=function(){return o.onPaste&&o.onPaste.apply(o,arguments)})},e.ptm("root"),{"data-pc-name":"inputmask"}),null,16,a)};export{h as default};
1
+ import{DomHandler as t}from"primevue/utils";import e from"primevue/basecomponent";import{openBlock as s,createElementBlock as i,mergeProps as n}from"vue";var a={name:"InputMask",extends:{name:"BaseInputMask",extends:e,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:{root:function(t){return["p-inputmask p-inputtext p-component",{"p-filled":t.instance.filled}]}}}},emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(t,e){e!==t&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(t){this.androidChrome?this.handleAndroidInput(t):this.handleInputChange(t),this.$emit("update:modelValue",t.target.value)},onFocus:function(t){var e,s=this;this.readonly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.$el.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){s.$el===document.activeElement&&(s.writeBuffer(),e===s.mask.replace("?","").length?s.caret(0,e):s.caret(e))}),10),this.$emit("focus",t))},onBlur:function(t){if(this.focus=!1,this.checkVal(),this.updateModel(t),this.$el.value!==this.focusText){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.$el.dispatchEvent(e)}this.$emit("blur",t)},onKeyDown:function(e){if(!this.readonly){var s,i,n,a=e.which||e.keyCode,h=/iphone/i.test(t.getUserAgent());this.oldVal=this.$el.value,8===a||46===a||h&&127===a?((n=(s=this.caret()).end)-(i=s.begin)==0&&(i=46!==a?this.seekPrev(i):n=this.seekNext(i-1),n=46===a?this.seekNext(n):n),this.clearBuffer(i,n),this.shiftL(i,n-1),this.updateModel(e),e.preventDefault()):13===a?(this.$el.blur(),this.updateModel(e)):27===a&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault()),this.$emit("keydown",e)}},onKeyPress:function(e){var s=this;if(!this.readonly){var i,n,a,h,l=e.which||e.keyCode,r=this.caret();if(!(e.ctrlKey||e.altKey||e.metaKey||l<32)){if(l&&13!==l){if(r.end-r.begin!=0&&(this.clearBuffer(r.begin,r.end),this.shiftL(r.begin,r.end-1)),(i=this.seekNext(r.begin-1))<this.len&&(n=String.fromCharCode(l),this.tests[i].test(n))){if(this.shiftR(i),this.buffer[i]=n,this.writeBuffer(),a=this.seekNext(i),/android/i.test(t.getUserAgent())){setTimeout((function(){s.caret(a)}),0)}else this.caret(a);r.begin<=this.lastRequiredNonMaskPos&&(h=this.isCompleted())}e.preventDefault()}this.updateModel(e),h&&this.$emit("complete",e),this.$emit("keypress",e)}}},onPaste:function(t){this.handleInputChange(t),this.$emit("paste",t)},caret:function(t,e){var s,i,n;if(this.$el.offsetParent&&this.$el===document.activeElement)return"number"!=typeof t?(this.$el.setSelectionRange?(i=this.$el.selectionStart,n=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(n=(i=0-(s=document.selection.createRange()).duplicate().moveStart("character",-1e5))+s.text.length),{begin:i,end:n}):(i=t,n="number"==typeof e?e:i,void(this.$el.setSelectionRange?this.$el.setSelectionRange(i,n):this.$el.createTextRange&&((s=this.$el.createTextRange()).collapse(!0),s.moveEnd("character",n),s.moveStart("character",i),s.select())))},isCompleted:function(){for(var t=this.firstNonMaskPos;t<=this.lastRequiredNonMaskPos;t++)if(this.tests[t]&&this.buffer[t]===this.getPlaceholder(t))return!1;return!0},getPlaceholder:function(t){return this.slotChar.charAt(t<this.slotChar.length?t:0)},seekNext:function(t){for(;++t<this.len&&!this.tests[t];);return t},seekPrev:function(t){for(;--t>=0&&!this.tests[t];);return t},shiftL:function(t,e){var s,i;if(!(t<0)){for(s=t,i=this.seekNext(e);s<this.len;s++)if(this.tests[s]){if(!(i<this.len&&this.tests[s].test(this.buffer[i])))break;this.buffer[s]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}},shiftR:function(t){var e,s,i,n;for(e=t,s=this.getPlaceholder(t);e<this.len;e++)if(this.tests[e]){if(i=this.seekNext(e),n=this.buffer[e],this.buffer[e]=s,!(i<this.len&&this.tests[i].test(n)))break;s=n}},handleAndroidInput:function(t){var e=this.$el.value,s=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>e.length){for(this.checkVal(!0);s.begin>0&&!this.tests[s.begin-1];)s.begin--;if(0===s.begin)for(;s.begin<this.firstNonMaskPos&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}else{for(this.checkVal(!0);s.begin<this.len&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}this.isCompleted()&&this.$emit("complete",t)},clearBuffer:function(t,e){var s;for(s=t;s<e&&s<this.len;s++)this.tests[s]&&(this.buffer[s]=this.getPlaceholder(s))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(t){this.isValueChecked=!0;var e,s,i,n=this.$el.value,a=-1;for(e=0,i=0;e<this.len;e++)if(this.tests[e]){for(this.buffer[e]=this.getPlaceholder(e);i++<n.length;)if(s=n.charAt(i-1),this.tests[e].test(s)){this.buffer[e]=s,a=e;break}if(i>n.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===n.charAt(i)&&i++,e<this.partialPosition&&(a=e);return t?this.writeBuffer():a+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,a+1)),this.partialPosition?e:this.firstNonMaskPos},handleInputChange:function(t){if(!this.readonly){var e=this.checkVal(!0);this.caret(e),this.updateModel(t),this.isCompleted()&&this.$emit("complete",t)}},getUnmaskedValue:function(){for(var t=[],e=0;e<this.buffer.length;e++){var s=this.buffer[e];this.tests[e]&&s!==this.getPlaceholder(e)&&t.push(s)}return t.join("")},updateModel:function(t){var e=this.unmask?this.getUnmaskedValue():t.target.value;this.$emit("update:modelValue",this.defaultBuffer!==e?e:"")},updateValue:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$el&&(null==this.modelValue?(this.$el.value="",e&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout((function(){if(t.$el&&(t.writeBuffer(),t.checkVal(),e)){var s=t.unmask?t.getUnmaskedValue():t.$el.value;t.$emit("update:modelValue",t.defaultBuffer!==s?s:"")}}),10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var e=t.getUserAgent();this.androidChrome=/chrome/i.test(e)&&/android/i.test(e);for(var s=this.mask.split(""),i=0;i<s.length;i++){var n=s[i];"?"===n?(this.len--,this.partialPosition=i):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),i<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var a=0;a<s.length;a++){var h=s[a];"?"!==h&&this.buffer.push(this.defs[h]?this.getPlaceholder(a):h)}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{filled:this.filled,disabled:this.$attrs.disabled||""===this.$attrs.disabled}}}}},h=["readonly"];a.render=function(t,e,a,l,r,o){return s(),i("input",n({class:t.cx("root"),readonly:t.readonly,onInput:e[0]||(e[0]=function(){return o.onInput&&o.onInput.apply(o,arguments)}),onFocus:e[1]||(e[1]=function(){return o.onFocus&&o.onFocus.apply(o,arguments)}),onBlur:e[2]||(e[2]=function(){return o.onBlur&&o.onBlur.apply(o,arguments)}),onKeydown:e[3]||(e[3]=function(){return o.onKeyDown&&o.onKeyDown.apply(o,arguments)}),onKeypress:e[4]||(e[4]=function(){return o.onKeyPress&&o.onKeyPress.apply(o,arguments)}),onPaste:e[5]||(e[5]=function(){return o.onPaste&&o.onPaste.apply(o,arguments)})},t.ptm("root",o.ptmParams),{"data-pc-name":"inputmask"}),null,16,h)};export{a as default};
@@ -459,6 +459,14 @@ this.primevue.inputmask = (function (utils, BaseComponent, vue) {
459
459
  computed: {
460
460
  filled: function filled() {
461
461
  return this.modelValue != null && this.modelValue.toString().length > 0;
462
+ },
463
+ ptmParams: function ptmParams() {
464
+ return {
465
+ context: {
466
+ filled: this.filled,
467
+ disabled: this.$attrs.disabled || this.$attrs.disabled === ''
468
+ }
469
+ };
462
470
  }
463
471
  }
464
472
  };
@@ -486,7 +494,7 @@ this.primevue.inputmask = (function (utils, BaseComponent, vue) {
486
494
  onPaste: _cache[5] || (_cache[5] = function () {
487
495
  return $options.onPaste && $options.onPaste.apply($options, arguments);
488
496
  })
489
- }, _ctx.ptm('root'), {
497
+ }, _ctx.ptm('root', $options.ptmParams), {
490
498
  "data-pc-name": "inputmask"
491
499
  }), null, 16, _hoisted_1);
492
500
  }
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.inputmask=function(e,t,s){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n={name:"InputMask",extends:{name:"BaseInputMask",extends:i(t).default,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:{root:function(e){return["p-inputmask p-inputtext p-component",{"p-filled":e.instance.filled}]}}}},emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(e,t){t!==e&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus:function(e){var t,s=this;this.readonly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.$el.value,t=this.checkVal(),this.caretTimeoutId=setTimeout((function(){s.$el===document.activeElement&&(s.writeBuffer(),t===s.mask.replace("?","").length?s.caret(0,t):s.caret(t))}),10),this.$emit("focus",e))},onBlur:function(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.$el.dispatchEvent(t)}this.$emit("blur",e)},onKeyDown:function(t){if(!this.readonly){var s,i,n,a=t.which||t.keyCode,h=/iphone/i.test(e.DomHandler.getUserAgent());this.oldVal=this.$el.value,8===a||46===a||h&&127===a?((n=(s=this.caret()).end)-(i=s.begin)==0&&(i=46!==a?this.seekPrev(i):n=this.seekNext(i-1),n=46===a?this.seekNext(n):n),this.clearBuffer(i,n),this.shiftL(i,n-1),this.updateModel(t),t.preventDefault()):13===a?(this.$el.blur(),this.updateModel(t)):27===a&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault()),this.$emit("keydown",t)}},onKeyPress:function(t){var s=this;if(!this.readonly){var i,n,a,h,l=t.which||t.keyCode,r=this.caret();if(!(t.ctrlKey||t.altKey||t.metaKey||l<32)){if(l&&13!==l){if(r.end-r.begin!=0&&(this.clearBuffer(r.begin,r.end),this.shiftL(r.begin,r.end-1)),(i=this.seekNext(r.begin-1))<this.len&&(n=String.fromCharCode(l),this.tests[i].test(n))){if(this.shiftR(i),this.buffer[i]=n,this.writeBuffer(),a=this.seekNext(i),/android/i.test(e.DomHandler.getUserAgent())){setTimeout((function(){s.caret(a)}),0)}else this.caret(a);r.begin<=this.lastRequiredNonMaskPos&&(h=this.isCompleted())}t.preventDefault()}this.updateModel(t),h&&this.$emit("complete",t),this.$emit("keypress",t)}}},onPaste:function(e){this.handleInputChange(e),this.$emit("paste",e)},caret:function(e,t){var s,i,n;if(this.$el.offsetParent&&this.$el===document.activeElement)return"number"!=typeof e?(this.$el.setSelectionRange?(i=this.$el.selectionStart,n=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(n=(i=0-(s=document.selection.createRange()).duplicate().moveStart("character",-1e5))+s.text.length),{begin:i,end:n}):(i=e,n="number"==typeof t?t:i,void(this.$el.setSelectionRange?this.$el.setSelectionRange(i,n):this.$el.createTextRange&&((s=this.$el.createTextRange()).collapse(!0),s.moveEnd("character",n),s.moveStart("character",i),s.select())))},isCompleted:function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder:function(e){return this.slotChar.charAt(e<this.slotChar.length?e:0)},seekNext:function(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev:function(e){for(;--e>=0&&!this.tests[e];);return e},shiftL:function(e,t){var s,i;if(!(e<0)){for(s=e,i=this.seekNext(t);s<this.len;s++)if(this.tests[s]){if(!(i<this.len&&this.tests[s].test(this.buffer[i])))break;this.buffer[s]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR:function(e){var t,s,i,n;for(t=e,s=this.getPlaceholder(e);t<this.len;t++)if(this.tests[t]){if(i=this.seekNext(t),n=this.buffer[t],this.buffer[t]=s,!(i<this.len&&this.tests[i].test(n)))break;s=n}},handleAndroidInput:function(e){var t=this.$el.value,s=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>t.length){for(this.checkVal(!0);s.begin>0&&!this.tests[s.begin-1];)s.begin--;if(0===s.begin)for(;s.begin<this.firstNonMaskPos&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}else{for(this.checkVal(!0);s.begin<this.len&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer:function(e,t){var s;for(s=e;s<t&&s<this.len;s++)this.tests[s]&&(this.buffer[s]=this.getPlaceholder(s))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(e){this.isValueChecked=!0;var t,s,i,n=this.$el.value,a=-1;for(t=0,i=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);i++<n.length;)if(s=n.charAt(i-1),this.tests[t].test(s)){this.buffer[t]=s,a=t;break}if(i>n.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===n.charAt(i)&&i++,t<this.partialPosition&&(a=t);return e?this.writeBuffer():a+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,a+1)),this.partialPosition?t:this.firstNonMaskPos},handleInputChange:function(e){if(!this.readonly){var t=this.checkVal(!0);this.caret(t),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue:function(){for(var e=[],t=0;t<this.buffer.length;t++){var s=this.buffer[t];this.tests[t]&&s!==this.getPlaceholder(t)&&e.push(s)}return e.join("")},updateModel:function(e){var t=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==t?t:"")},updateValue:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$el&&(null==this.modelValue?(this.$el.value="",t&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout((function(){if(e.$el&&(e.writeBuffer(),e.checkVal(),t)){var s=e.unmask?e.getUnmaskedValue():e.$el.value;e.$emit("update:modelValue",e.defaultBuffer!==s?s:"")}}),10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=e.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var s=this.mask.split(""),i=0;i<s.length;i++){var n=s[i];"?"===n?(this.len--,this.partialPosition=i):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),i<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var a=0;a<s.length;a++){var h=s[a];"?"!==h&&this.buffer.push(this.defs[h]?this.getPlaceholder(a):h)}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0}}},a=["readonly"];return n.render=function(e,t,i,n,h,l){return s.openBlock(),s.createElementBlock("input",s.mergeProps({class:e.cx("root"),readonly:e.readonly,onInput:t[0]||(t[0]=function(){return l.onInput&&l.onInput.apply(l,arguments)}),onFocus:t[1]||(t[1]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[2]||(t[2]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[3]||(t[3]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)}),onKeypress:t[4]||(t[4]=function(){return l.onKeyPress&&l.onKeyPress.apply(l,arguments)}),onPaste:t[5]||(t[5]=function(){return l.onPaste&&l.onPaste.apply(l,arguments)})},e.ptm("root"),{"data-pc-name":"inputmask"}),null,16,a)},n}(primevue.utils,primevue.basecomponent,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.inputmask=function(e,t,s){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n={name:"InputMask",extends:{name:"BaseInputMask",extends:i(t).default,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:{root:function(e){return["p-inputmask p-inputtext p-component",{"p-filled":e.instance.filled}]}}}},emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(e,t){t!==e&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus:function(e){var t,s=this;this.readonly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.$el.value,t=this.checkVal(),this.caretTimeoutId=setTimeout((function(){s.$el===document.activeElement&&(s.writeBuffer(),t===s.mask.replace("?","").length?s.caret(0,t):s.caret(t))}),10),this.$emit("focus",e))},onBlur:function(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.$el.dispatchEvent(t)}this.$emit("blur",e)},onKeyDown:function(t){if(!this.readonly){var s,i,n,a=t.which||t.keyCode,h=/iphone/i.test(e.DomHandler.getUserAgent());this.oldVal=this.$el.value,8===a||46===a||h&&127===a?((n=(s=this.caret()).end)-(i=s.begin)==0&&(i=46!==a?this.seekPrev(i):n=this.seekNext(i-1),n=46===a?this.seekNext(n):n),this.clearBuffer(i,n),this.shiftL(i,n-1),this.updateModel(t),t.preventDefault()):13===a?(this.$el.blur(),this.updateModel(t)):27===a&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault()),this.$emit("keydown",t)}},onKeyPress:function(t){var s=this;if(!this.readonly){var i,n,a,h,l=t.which||t.keyCode,r=this.caret();if(!(t.ctrlKey||t.altKey||t.metaKey||l<32)){if(l&&13!==l){if(r.end-r.begin!=0&&(this.clearBuffer(r.begin,r.end),this.shiftL(r.begin,r.end-1)),(i=this.seekNext(r.begin-1))<this.len&&(n=String.fromCharCode(l),this.tests[i].test(n))){if(this.shiftR(i),this.buffer[i]=n,this.writeBuffer(),a=this.seekNext(i),/android/i.test(e.DomHandler.getUserAgent())){setTimeout((function(){s.caret(a)}),0)}else this.caret(a);r.begin<=this.lastRequiredNonMaskPos&&(h=this.isCompleted())}t.preventDefault()}this.updateModel(t),h&&this.$emit("complete",t),this.$emit("keypress",t)}}},onPaste:function(e){this.handleInputChange(e),this.$emit("paste",e)},caret:function(e,t){var s,i,n;if(this.$el.offsetParent&&this.$el===document.activeElement)return"number"!=typeof e?(this.$el.setSelectionRange?(i=this.$el.selectionStart,n=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(n=(i=0-(s=document.selection.createRange()).duplicate().moveStart("character",-1e5))+s.text.length),{begin:i,end:n}):(i=e,n="number"==typeof t?t:i,void(this.$el.setSelectionRange?this.$el.setSelectionRange(i,n):this.$el.createTextRange&&((s=this.$el.createTextRange()).collapse(!0),s.moveEnd("character",n),s.moveStart("character",i),s.select())))},isCompleted:function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder:function(e){return this.slotChar.charAt(e<this.slotChar.length?e:0)},seekNext:function(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev:function(e){for(;--e>=0&&!this.tests[e];);return e},shiftL:function(e,t){var s,i;if(!(e<0)){for(s=e,i=this.seekNext(t);s<this.len;s++)if(this.tests[s]){if(!(i<this.len&&this.tests[s].test(this.buffer[i])))break;this.buffer[s]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR:function(e){var t,s,i,n;for(t=e,s=this.getPlaceholder(e);t<this.len;t++)if(this.tests[t]){if(i=this.seekNext(t),n=this.buffer[t],this.buffer[t]=s,!(i<this.len&&this.tests[i].test(n)))break;s=n}},handleAndroidInput:function(e){var t=this.$el.value,s=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>t.length){for(this.checkVal(!0);s.begin>0&&!this.tests[s.begin-1];)s.begin--;if(0===s.begin)for(;s.begin<this.firstNonMaskPos&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}else{for(this.checkVal(!0);s.begin<this.len&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer:function(e,t){var s;for(s=e;s<t&&s<this.len;s++)this.tests[s]&&(this.buffer[s]=this.getPlaceholder(s))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(e){this.isValueChecked=!0;var t,s,i,n=this.$el.value,a=-1;for(t=0,i=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);i++<n.length;)if(s=n.charAt(i-1),this.tests[t].test(s)){this.buffer[t]=s,a=t;break}if(i>n.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===n.charAt(i)&&i++,t<this.partialPosition&&(a=t);return e?this.writeBuffer():a+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,a+1)),this.partialPosition?t:this.firstNonMaskPos},handleInputChange:function(e){if(!this.readonly){var t=this.checkVal(!0);this.caret(t),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue:function(){for(var e=[],t=0;t<this.buffer.length;t++){var s=this.buffer[t];this.tests[t]&&s!==this.getPlaceholder(t)&&e.push(s)}return e.join("")},updateModel:function(e){var t=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==t?t:"")},updateValue:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$el&&(null==this.modelValue?(this.$el.value="",t&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout((function(){if(e.$el&&(e.writeBuffer(),e.checkVal(),t)){var s=e.unmask?e.getUnmaskedValue():e.$el.value;e.$emit("update:modelValue",e.defaultBuffer!==s?s:"")}}),10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=e.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var s=this.mask.split(""),i=0;i<s.length;i++){var n=s[i];"?"===n?(this.len--,this.partialPosition=i):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),i<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var a=0;a<s.length;a++){var h=s[a];"?"!==h&&this.buffer.push(this.defs[h]?this.getPlaceholder(a):h)}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{filled:this.filled,disabled:this.$attrs.disabled||""===this.$attrs.disabled}}}}},a=["readonly"];return n.render=function(e,t,i,n,h,l){return s.openBlock(),s.createElementBlock("input",s.mergeProps({class:e.cx("root"),readonly:e.readonly,onInput:t[0]||(t[0]=function(){return l.onInput&&l.onInput.apply(l,arguments)}),onFocus:t[1]||(t[1]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[2]||(t[2]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[3]||(t[3]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)}),onKeypress:t[4]||(t[4]=function(){return l.onKeyPress&&l.onKeyPress.apply(l,arguments)}),onPaste:t[5]||(t[5]=function(){return l.onPaste&&l.onPaste.apply(l,arguments)})},e.ptm("root",l.ptmParams),{"data-pc-name":"inputmask"}),null,16,a)},n}(primevue.utils,primevue.basecomponent,Vue);
@@ -60,30 +60,30 @@ export interface InputNumberBlurEvent {
60
60
  */
61
61
  export interface InputNumberPassThroughOptions {
62
62
  /**
63
- * Uses to pass attributes to the root's DOM element.
63
+ * Used to pass attributes to the root's DOM element.
64
64
  */
65
65
  root?: InputNumberPassThroughOptionType;
66
66
  /**
67
- * Uses to pass attributes to the Input component.
67
+ * Used to pass attributes to the Input component.
68
68
  * @see {@link InputTextPassThroughOptionType}
69
69
  */
70
70
  input?: InputTextPassThroughOptionType;
71
71
  /**
72
- * Uses to pass attributes to the button group's DOM element.
72
+ * Used to pass attributes to the button group's DOM element.
73
73
  */
74
74
  buttonGroup?: InputNumberPassThroughOptionType;
75
75
  /**
76
- * Uses to pass attributes to the Button component.
76
+ * Used to pass attributes to the Button component.
77
77
  * @see {@link ButtonPassThroughOptions}
78
78
  */
79
79
  incrementButton?: ButtonPassThroughOptionType;
80
80
  /**
81
- * Uses to pass attributes to the Button component.
81
+ * Used to pass attributes to the Button component.
82
82
  * @see {@link ButtonPassThroughOptions}
83
83
  */
84
84
  decrementButton?: ButtonPassThroughOptionType;
85
85
  /**
86
- * Uses to manage all lifecycle hooks
86
+ * Used to manage all lifecycle hooks
87
87
  * @see {@link BaseComponent.ComponentHooks}
88
88
  */
89
89
  hooks?: ComponentHooks;
@@ -250,15 +250,15 @@ export interface InputNumberProps {
250
250
  */
251
251
  inputStyle?: object | undefined;
252
252
  /**
253
- * Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
253
+ * Used to pass all properties of the HTMLInputElement to the focusable input element inside the component.
254
254
  */
255
255
  inputProps?: InputHTMLAttributes | undefined;
256
256
  /**
257
- * Uses to pass all properties of the HTMLButtonElement to increment button inside the component.
257
+ * Used to pass all properties of the HTMLButtonElement to increment button inside the component.
258
258
  */
259
259
  incrementButtonProps?: ButtonHTMLAttributes | undefined;
260
260
  /**
261
- * Uses to pass all properties of the HTMLButtonElement to decrement button inside the component.
261
+ * Used to pass all properties of the HTMLButtonElement to decrement button inside the component.
262
262
  */
263
263
  decrementButtonProps?: ButtonHTMLAttributes | undefined;
264
264
  /**
@@ -270,7 +270,7 @@ export interface InputNumberProps {
270
270
  */
271
271
  'aria-label'?: string | undefined;
272
272
  /**
273
- * Uses to pass attributes to DOM elements inside the component.
273
+ * Used to pass attributes to DOM elements inside the component.
274
274
  * @type {InputNumberPassThroughOptions}
275
275
  */
276
276
  pt?: InputNumberPassThroughOptions;
@@ -28,23 +28,23 @@ export interface InputSwitchPassThroughMethodOptions {
28
28
  */
29
29
  export interface InputSwitchPassThroughOptions {
30
30
  /**
31
- * Uses to pass attributes to the root's DOM element.
31
+ * Used to pass attributes to the root's DOM element.
32
32
  */
33
33
  root?: InputSwitchPassThroughOptionType;
34
34
  /**
35
- * Uses to pass attributes to the slider's DOM element.
35
+ * Used to pass attributes to the slider's DOM element.
36
36
  */
37
37
  slider?: InputSwitchPassThroughOptionType;
38
38
  /**
39
- * Uses to pass attributes to the hidden input wrapper's DOM element.
39
+ * Used to pass attributes to the hidden input wrapper's DOM element.
40
40
  */
41
41
  hiddenInputWrapper?: InputSwitchPassThroughOptionType;
42
42
  /**
43
- * Uses to pass attributes to the hidden input's DOM element.
43
+ * Used to pass attributes to the hidden input's DOM element.
44
44
  */
45
45
  hiddenInput?: InputSwitchPassThroughOptionType;
46
46
  /**
47
- * Uses to manage all lifecycle hooks
47
+ * Used to manage all lifecycle hooks
48
48
  * @see {@link BaseComponent.ComponentHooks}
49
49
  */
50
50
  hooks?: ComponentHooks;
@@ -100,7 +100,7 @@ export interface InputSwitchProps {
100
100
  */
101
101
  inputStyle?: object | undefined;
102
102
  /**
103
- * Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
103
+ * Used to pass all properties of the HTMLInputElement to the focusable input element inside the component.
104
104
  */
105
105
  inputProps?: InputHTMLAttributes | undefined;
106
106
  /**
@@ -112,7 +112,7 @@ export interface InputSwitchProps {
112
112
  */
113
113
  'aria-label'?: string | undefined;
114
114
  /**
115
- * Uses to pass attributes to DOM elements inside the component.
115
+ * Used to pass attributes to DOM elements inside the component.
116
116
  * @type {InputSwitchPassThroughOptions}
117
117
  */
118
118
  pt?: InputSwitchPassThroughOptions;
@@ -28,11 +28,11 @@ export interface InputTextPassThroughMethodOptions {
28
28
  */
29
29
  export interface InputTextPassThroughOptions {
30
30
  /**
31
- * Uses to pass attributes to the root's DOM element.
31
+ * Used to pass attributes to the root's DOM element.
32
32
  */
33
33
  root?: InputTextPassThroughOptionType;
34
34
  /**
35
- * Uses to manage all lifecycle hooks
35
+ * Used to manage all lifecycle hooks
36
36
  * @see {@link BaseComponent.ComponentHooks}
37
37
  */
38
38
  hooks?: ComponentHooks;
@@ -74,7 +74,7 @@ export interface InputTextProps extends InputHTMLAttributes {
74
74
  */
75
75
  size?: 'small' | 'large' | undefined;
76
76
  /**
77
- * Uses to pass attributes to DOM elements inside the component.
77
+ * Used to pass attributes to DOM elements inside the component.
78
78
  * @type {InputTextPassThroughOptions}
79
79
  */
80
80
  pt?: InputTextPassThroughOptions;
package/knob/Knob.d.ts CHANGED
@@ -27,27 +27,27 @@ export interface KnobPassThroughMethodOptions {
27
27
  */
28
28
  export interface KnobPassThroughOptions {
29
29
  /**
30
- * Uses to pass attributes to the root's DOM element.
30
+ * Used to pass attributes to the root's DOM element.
31
31
  */
32
32
  root?: KnobPassThroughOptionType;
33
33
  /**
34
- * Uses to pass attributes to the svg's DOM element.
34
+ * Used to pass attributes to the svg's DOM element.
35
35
  */
36
36
  svg?: KnobPassThroughOptionType;
37
37
  /**
38
- * Uses to pass attributes to the range's DOM element.
38
+ * Used to pass attributes to the range's DOM element.
39
39
  */
40
40
  range?: KnobPassThroughOptionType;
41
41
  /**
42
- * Uses to pass attributes to the value' DOM element.
42
+ * Used to pass attributes to the value' DOM element.
43
43
  */
44
44
  value?: KnobPassThroughOptionType;
45
45
  /**
46
- * Uses to pass attributes to the label's DOM element.
46
+ * Used to pass attributes to the label's DOM element.
47
47
  */
48
48
  label?: KnobPassThroughOptionType;
49
49
  /**
50
- * Uses to manage all lifecycle hooks
50
+ * Used to manage all lifecycle hooks
51
51
  * @see {@link BaseComponent.ComponentHooks}
52
52
  */
53
53
  hooks?: ComponentHooks;
@@ -171,7 +171,7 @@ export interface KnobProps {
171
171
  */
172
172
  'aria-label'?: string | undefined;
173
173
  /**
174
- * Uses to pass attributes to DOM elements inside the component.
174
+ * Used to pass attributes to DOM elements inside the component.
175
175
  * @type {KnobPassThroughOptions}
176
176
  */
177
177
  pt?: KnobPassThroughOptions;
@@ -60,68 +60,68 @@ export interface ListboxFilterEvent {
60
60
  */
61
61
  export interface ListboxPassThroughOptions {
62
62
  /**
63
- * Uses to pass attributes to the root's DOM element.
63
+ * Used to pass attributes to the root's DOM element.
64
64
  */
65
65
  root?: ListboxPassThroughOptionType;
66
66
  /**
67
- * Uses to pass attributes to the header's DOM element.
67
+ * Used to pass attributes to the header's DOM element.
68
68
  */
69
69
  header?: ListboxPassThroughOptionType;
70
70
  /**
71
- * Uses to pass attributes to the filter container's DOM element.
71
+ * Used to pass attributes to the filter container's DOM element.
72
72
  */
73
73
  filterContainer?: ListboxPassThroughOptionType;
74
74
  /**
75
- * Uses to pass attributes to the filter input's DOM element.
75
+ * Used to pass attributes to the filter input's DOM element.
76
76
  */
77
77
  filterInput?: ListboxPassThroughOptionType;
78
78
  /**
79
- * Uses to pass attributes to the filter icon's DOM element.
79
+ * Used to pass attributes to the filter icon's DOM element.
80
80
  */
81
81
  filterIcon?: ListboxPassThroughOptionType;
82
82
  /**
83
- * Uses to pass attributes to the wrapper's DOM element.
83
+ * Used to pass attributes to the wrapper's DOM element.
84
84
  */
85
85
  wrapper?: ListboxPassThroughOptionType;
86
86
  /**
87
- * Uses to pass attributes to the VirtualScroller component.
87
+ * Used to pass attributes to the VirtualScroller component.
88
88
  * @see {@link VirtualScrollerPassThroughOptionType}
89
89
  */
90
90
  virtualScroller?: VirtualScrollerPassThroughOptionType;
91
91
  /**
92
- * Uses to pass attributes to the list's DOM element.
92
+ * Used to pass attributes to the list's DOM element.
93
93
  */
94
94
  list?: ListboxPassThroughOptionType;
95
95
  /**
96
- * Uses to pass attributes to the item group's DOM element.
96
+ * Used to pass attributes to the item group's DOM element.
97
97
  */
98
98
  itemGroup?: ListboxPassThroughOptionType;
99
99
  /**
100
- * Uses to pass attributes to the item's DOM element.
100
+ * Used to pass attributes to the item's DOM element.
101
101
  */
102
102
  item?: ListboxPassThroughOptionType;
103
103
  /**
104
- * Uses to pass attributes to the emptyMessage's DOM element.
104
+ * Used to pass attributes to the emptyMessage's DOM element.
105
105
  */
106
106
  emptyMessage?: ListboxPassThroughOptionType;
107
107
  /**
108
- * Uses to pass attributes to the hidden first focusable element's DOM element.
108
+ * Used to pass attributes to the hidden first focusable element's DOM element.
109
109
  */
110
110
  hiddenFirstFocusableEl?: ListboxPassThroughOptionType;
111
111
  /**
112
- * Uses to pass attributes to the hidden filter result's DOM element.
112
+ * Used to pass attributes to the hidden filter result's DOM element.
113
113
  */
114
114
  hiddenFilterResult?: ListboxPassThroughOptionType;
115
115
  /**
116
- * Uses to pass attributes to the hidden selected message's DOM element.
116
+ * Used to pass attributes to the hidden selected message's DOM element.
117
117
  */
118
118
  hiddenSelectedMessage?: ListboxPassThroughOptionType;
119
119
  /**
120
- * Uses to pass attributes to the hidden last focusable element's DOM element.
120
+ * Used to pass attributes to the hidden last focusable element's DOM element.
121
121
  */
122
122
  hiddenLastFocusableEl?: ListboxPassThroughOptionType;
123
123
  /**
124
- * Uses to manage all lifecycle hooks
124
+ * Used to manage all lifecycle hooks
125
125
  * @see {@link BaseComponent.ComponentHooks}
126
126
  */
127
127
  hooks?: ComponentHooks;
@@ -258,7 +258,7 @@ export interface ListboxProps {
258
258
  */
259
259
  filterFields?: string[] | undefined;
260
260
  /**
261
- * Uses to pass all properties of the HTMLInputElement to the filter input inside the component.
261
+ * Used to pass all properties of the HTMLInputElement to the filter input inside the component.
262
262
  */
263
263
  filterInputProps?: InputHTMLAttributes | undefined;
264
264
  /**
@@ -319,7 +319,7 @@ export interface ListboxProps {
319
319
  */
320
320
  'aria-labelledby'?: string | undefined;
321
321
  /**
322
- * Uses to pass attributes to DOM elements inside the component.
322
+ * Used to pass attributes to DOM elements inside the component.
323
323
  * @type {ListboxPassThroughOptions}
324
324
  */
325
325
  pt?: ListboxPassThroughOptions;
@@ -30,71 +30,71 @@ export interface MegaMenuPassThroughMethodOptions {
30
30
  */
31
31
  export interface MegaMenuPassThroughOptions {
32
32
  /**
33
- * Uses to pass attributes to the root's DOM element.
33
+ * Used to pass attributes to the root's DOM element.
34
34
  */
35
35
  root?: MegaMenuPassThroughOptionType;
36
36
  /**
37
- * Uses to pass attributes to the list's DOM element.
37
+ * Used to pass attributes to the list's DOM element.
38
38
  */
39
39
  menu?: MegaMenuPassThroughOptionType;
40
40
  /**
41
- * Uses to pass attributes to the list item's DOM element.
41
+ * Used to pass attributes to the list item's DOM element.
42
42
  */
43
43
  menuitem?: MegaMenuPassThroughOptionType;
44
44
  /**
45
- * Uses to pass attributes to the content's DOM element.
45
+ * Used to pass attributes to the content's DOM element.
46
46
  */
47
47
  content?: MegaMenuPassThroughOptionType;
48
48
  /**
49
- * Uses to pass attributes to the action's DOM element.
49
+ * Used to pass attributes to the action's DOM element.
50
50
  */
51
51
  action?: MegaMenuPassThroughOptionType;
52
52
  /**
53
- * Uses to pass attributes to the icon's DOM element.
53
+ * Used to pass attributes to the icon's DOM element.
54
54
  */
55
55
  icon?: MegaMenuPassThroughOptionType;
56
56
  /**
57
- * Uses to pass attributes to the label's DOM element.
57
+ * Used to pass attributes to the label's DOM element.
58
58
  */
59
59
  label?: MegaMenuPassThroughOptionType;
60
60
  /**
61
- * Uses to pass attributes to the submenu icon's DOM element.
61
+ * Used to pass attributes to the submenu icon's DOM element.
62
62
  */
63
63
  submenuIcon?: MegaMenuPassThroughOptionType;
64
64
  /**
65
- * Uses to pass attributes to the panel's DOM element.
65
+ * Used to pass attributes to the panel's DOM element.
66
66
  */
67
67
  panel?: MegaMenuPassThroughOptionType;
68
68
  /**
69
- * Uses to pass attributes to the grid's DOM element.
69
+ * Used to pass attributes to the grid's DOM element.
70
70
  */
71
71
  grid?: MegaMenuPassThroughOptionType;
72
72
  /**
73
- * Uses to pass attributes to the column's DOM element.
73
+ * Used to pass attributes to the column's DOM element.
74
74
  */
75
75
  column?: MegaMenuPassThroughOptionType;
76
76
  /**
77
- * Uses to pass attributes to the submenu header's DOM element.
77
+ * Used to pass attributes to the submenu header's DOM element.
78
78
  */
79
79
  submenuHeader?: MegaMenuPassThroughOptionType;
80
80
  /**
81
- * Uses to pass attributes to the submenu's DOM element.
81
+ * Used to pass attributes to the submenu's DOM element.
82
82
  */
83
83
  submenu?: MegaMenuPassThroughOptionType;
84
84
  /**
85
- * Uses to pass attributes to the separator's DOM element.
85
+ * Used to pass attributes to the separator's DOM element.
86
86
  */
87
87
  separator?: MegaMenuPassThroughOptionType;
88
88
  /**
89
- * Uses to pass attributes to the start of the component.
89
+ * Used to pass attributes to the start of the component.
90
90
  */
91
91
  start?: MegaMenuPassThroughOptionType;
92
92
  /**
93
- * Uses to pass attributes to the end of the component.
93
+ * Used to pass attributes to the end of the component.
94
94
  */
95
95
  end?: MegaMenuPassThroughOptionType;
96
96
  /**
97
- * Uses to manage all lifecycle hooks
97
+ * Used to manage all lifecycle hooks
98
98
  * @see {@link BaseComponent.ComponentHooks}
99
99
  */
100
100
  hooks?: ComponentHooks;
@@ -210,7 +210,7 @@ export interface MegaMenuProps {
210
210
  */
211
211
  'aria-labelledby'?: string | undefined;
212
212
  /**
213
- * Uses to pass attributes to DOM elements inside the component.
213
+ * Used to pass attributes to DOM elements inside the component.
214
214
  * @type {MegaMenuPassThroughOptions}
215
215
  */
216
216
  pt?: MegaMenuPassThroughOptions;
@@ -58,6 +58,7 @@
58
58
  :exact="exact"
59
59
  :level="level + 1"
60
60
  :pt="pt"
61
+ :unstyled="unstyled"
61
62
  @item-click="$emit('item-click', $event)"
62
63
  @item-mouseenter="$emit('item-mouseenter', $event)"
63
64
  />
@@ -417,13 +417,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
417
417
  exact: $props.exact,
418
418
  level: $props.level + 1,
419
419
  pt: _ctx.pt,
420
+ unstyled: _ctx.unstyled,
420
421
  onItemClick: _cache[0] || (_cache[0] = function ($event) {
421
422
  return _ctx.$emit('item-click', $event);
422
423
  }),
423
424
  onItemMouseenter: _cache[1] || (_cache[1] = function ($event) {
424
425
  return _ctx.$emit('item-mouseenter', $event);
425
426
  })
426
- }, null, 8, ["id", "style", "menuId", "focusedItemId", "submenu", "items", "templates", "exact", "level", "pt"]);
427
+ }, null, 8, ["id", "style", "menuId", "focusedItemId", "submenu", "items", "templates", "exact", "level", "pt", "unstyled"]);
427
428
  }), 128))], 16);
428
429
  }), 128))], 16)], 16)) : vue.createCommentVNode("", true)], 16, _hoisted_2)) : vue.createCommentVNode("", true), $options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator') ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
429
430
  key: 1,