primereact 7.0.1 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (797) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/accordion/accordion.cjs.js +27 -21
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.d.ts +5 -2
  6. package/accordion/accordion.esm.js +27 -21
  7. package/accordion/accordion.esm.min.js +1 -1
  8. package/accordion/accordion.js +27 -21
  9. package/accordion/accordion.min.js +1 -1
  10. package/api/api.cjs.js +29 -6
  11. package/api/api.cjs.min.js +1 -1
  12. package/api/api.d.ts +31 -30
  13. package/api/api.esm.js +29 -6
  14. package/api/api.esm.min.js +1 -1
  15. package/api/api.js +29 -6
  16. package/api/api.min.js +1 -1
  17. package/autocomplete/autocomplete.cjs.js +22 -22
  18. package/autocomplete/autocomplete.cjs.min.js +1 -1
  19. package/autocomplete/autocomplete.d.ts +9 -4
  20. package/autocomplete/autocomplete.esm.js +22 -22
  21. package/autocomplete/autocomplete.esm.min.js +1 -1
  22. package/autocomplete/autocomplete.js +22 -22
  23. package/autocomplete/autocomplete.min.js +1 -1
  24. package/avatar/avatar.cjs.js +11 -11
  25. package/avatar/avatar.cjs.min.js +1 -1
  26. package/avatar/avatar.d.ts +1 -1
  27. package/avatar/avatar.esm.js +11 -11
  28. package/avatar/avatar.esm.min.js +1 -1
  29. package/avatar/avatar.js +11 -11
  30. package/avatar/avatar.min.js +1 -1
  31. package/avatargroup/avatargroup.cjs.js +11 -11
  32. package/avatargroup/avatargroup.cjs.min.js +1 -1
  33. package/avatargroup/avatargroup.esm.js +11 -11
  34. package/avatargroup/avatargroup.esm.min.js +1 -1
  35. package/avatargroup/avatargroup.js +11 -11
  36. package/avatargroup/avatargroup.min.js +1 -1
  37. package/badge/badge.cjs.js +11 -11
  38. package/badge/badge.cjs.min.js +1 -1
  39. package/badge/badge.esm.js +11 -11
  40. package/badge/badge.esm.min.js +1 -1
  41. package/badge/badge.js +11 -11
  42. package/badge/badge.min.js +1 -1
  43. package/blockui/blockui.cjs.js +23 -16
  44. package/blockui/blockui.cjs.min.js +1 -1
  45. package/blockui/blockui.esm.js +23 -16
  46. package/blockui/blockui.esm.min.js +1 -1
  47. package/blockui/blockui.js +23 -16
  48. package/blockui/blockui.min.js +1 -1
  49. package/breadcrumb/breadcrumb.cjs.js +11 -11
  50. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  51. package/breadcrumb/breadcrumb.esm.js +11 -11
  52. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  53. package/breadcrumb/breadcrumb.js +11 -11
  54. package/breadcrumb/breadcrumb.min.js +1 -1
  55. package/button/button.cjs.js +13 -13
  56. package/button/button.cjs.min.js +1 -1
  57. package/button/button.d.ts +1 -1
  58. package/button/button.esm.js +13 -13
  59. package/button/button.esm.min.js +1 -1
  60. package/button/button.js +13 -13
  61. package/button/button.min.js +1 -1
  62. package/calendar/calendar.cjs.js +39 -20
  63. package/calendar/calendar.cjs.min.js +1 -1
  64. package/calendar/calendar.d.ts +3 -2
  65. package/calendar/calendar.esm.js +39 -20
  66. package/calendar/calendar.esm.min.js +1 -1
  67. package/calendar/calendar.js +39 -20
  68. package/calendar/calendar.min.js +1 -1
  69. package/captcha/captcha.cjs.js +11 -11
  70. package/captcha/captcha.cjs.min.js +1 -1
  71. package/captcha/captcha.esm.js +11 -11
  72. package/captcha/captcha.esm.min.js +1 -1
  73. package/captcha/captcha.js +11 -11
  74. package/captcha/captcha.min.js +1 -1
  75. package/card/card.cjs.js +11 -11
  76. package/card/card.cjs.min.js +1 -1
  77. package/card/card.esm.js +11 -11
  78. package/card/card.esm.min.js +1 -1
  79. package/card/card.js +11 -11
  80. package/card/card.min.js +1 -1
  81. package/carousel/carousel.cjs.js +235 -27
  82. package/carousel/carousel.cjs.min.js +1 -1
  83. package/carousel/carousel.esm.js +234 -27
  84. package/carousel/carousel.esm.min.js +1 -1
  85. package/carousel/carousel.js +236 -29
  86. package/carousel/carousel.min.js +1 -1
  87. package/cascadeselect/cascadeselect.cjs.js +15 -15
  88. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  89. package/cascadeselect/cascadeselect.d.ts +2 -1
  90. package/cascadeselect/cascadeselect.esm.js +15 -15
  91. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  92. package/cascadeselect/cascadeselect.js +15 -15
  93. package/cascadeselect/cascadeselect.min.js +1 -1
  94. package/chart/chart.cjs.js +13 -13
  95. package/chart/chart.cjs.min.js +1 -1
  96. package/chart/chart.esm.js +13 -13
  97. package/chart/chart.esm.min.js +1 -1
  98. package/chart/chart.js +13 -13
  99. package/chart/chart.min.js +1 -1
  100. package/checkbox/checkbox.cjs.js +13 -13
  101. package/checkbox/checkbox.cjs.min.js +1 -1
  102. package/checkbox/checkbox.d.ts +1 -1
  103. package/checkbox/checkbox.esm.js +13 -13
  104. package/checkbox/checkbox.esm.min.js +1 -1
  105. package/checkbox/checkbox.js +13 -13
  106. package/checkbox/checkbox.min.js +1 -1
  107. package/chip/chip.cjs.js +11 -11
  108. package/chip/chip.cjs.min.js +1 -1
  109. package/chip/chip.d.ts +1 -1
  110. package/chip/chip.esm.js +11 -11
  111. package/chip/chip.esm.min.js +1 -1
  112. package/chip/chip.js +11 -11
  113. package/chip/chip.min.js +1 -1
  114. package/chips/chips.cjs.js +13 -13
  115. package/chips/chips.cjs.min.js +1 -1
  116. package/chips/chips.esm.js +13 -13
  117. package/chips/chips.esm.min.js +1 -1
  118. package/chips/chips.js +13 -13
  119. package/chips/chips.min.js +1 -1
  120. package/colorpicker/colorpicker.cjs.js +16 -16
  121. package/colorpicker/colorpicker.cjs.min.js +1 -1
  122. package/colorpicker/colorpicker.d.ts +19 -5
  123. package/colorpicker/colorpicker.esm.js +16 -16
  124. package/colorpicker/colorpicker.esm.min.js +1 -1
  125. package/colorpicker/colorpicker.js +16 -16
  126. package/colorpicker/colorpicker.min.js +1 -1
  127. package/column/column.cjs.js +31 -12
  128. package/column/column.cjs.min.js +1 -1
  129. package/column/column.d.ts +5 -1
  130. package/column/column.esm.js +31 -12
  131. package/column/column.esm.min.js +1 -1
  132. package/column/column.js +31 -12
  133. package/column/column.min.js +1 -1
  134. package/columngroup/columngroup.cjs.js +28 -12
  135. package/columngroup/columngroup.cjs.min.js +1 -1
  136. package/columngroup/columngroup.esm.js +28 -12
  137. package/columngroup/columngroup.esm.min.js +1 -1
  138. package/columngroup/columngroup.js +28 -12
  139. package/columngroup/columngroup.min.js +1 -1
  140. package/confirmdialog/confirmdialog.cjs.js +13 -13
  141. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  142. package/confirmdialog/confirmdialog.d.ts +1 -1
  143. package/confirmdialog/confirmdialog.esm.js +13 -13
  144. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  145. package/confirmdialog/confirmdialog.js +13 -13
  146. package/confirmdialog/confirmdialog.min.js +1 -1
  147. package/confirmpopup/confirmpopup.cjs.js +16 -16
  148. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  149. package/confirmpopup/confirmpopup.d.ts +3 -2
  150. package/confirmpopup/confirmpopup.esm.js +16 -16
  151. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  152. package/confirmpopup/confirmpopup.js +16 -16
  153. package/confirmpopup/confirmpopup.min.js +1 -1
  154. package/contextmenu/contextmenu.cjs.js +14 -14
  155. package/contextmenu/contextmenu.cjs.min.js +1 -1
  156. package/contextmenu/contextmenu.d.ts +2 -1
  157. package/contextmenu/contextmenu.esm.js +14 -14
  158. package/contextmenu/contextmenu.esm.min.js +1 -1
  159. package/contextmenu/contextmenu.js +14 -14
  160. package/contextmenu/contextmenu.min.js +1 -1
  161. package/core/core.js +521 -323
  162. package/core/core.min.js +18 -18
  163. package/csstransition/csstransition.cjs.js +62 -32
  164. package/csstransition/csstransition.cjs.min.js +1 -1
  165. package/csstransition/csstransition.d.ts +8 -0
  166. package/csstransition/csstransition.esm.js +61 -32
  167. package/csstransition/csstransition.esm.min.js +1 -1
  168. package/csstransition/csstransition.js +62 -34
  169. package/csstransition/csstransition.min.js +1 -1
  170. package/csstransition/package.json +2 -1
  171. package/datascroller/datascroller.cjs.js +11 -11
  172. package/datascroller/datascroller.cjs.min.js +1 -1
  173. package/datascroller/datascroller.esm.js +11 -11
  174. package/datascroller/datascroller.esm.min.js +1 -1
  175. package/datascroller/datascroller.js +11 -11
  176. package/datascroller/datascroller.min.js +1 -1
  177. package/datatable/datatable.cjs.js +518 -346
  178. package/datatable/datatable.cjs.min.js +1 -1
  179. package/datatable/datatable.d.ts +34 -11
  180. package/datatable/datatable.esm.js +520 -348
  181. package/datatable/datatable.esm.min.js +1 -1
  182. package/datatable/datatable.js +518 -346
  183. package/datatable/datatable.min.css +1 -1
  184. package/datatable/datatable.min.js +1 -1
  185. package/dataview/dataview.cjs.js +12 -16
  186. package/dataview/dataview.cjs.min.js +1 -1
  187. package/dataview/dataview.esm.js +12 -16
  188. package/dataview/dataview.esm.min.js +1 -1
  189. package/dataview/dataview.js +12 -16
  190. package/dataview/dataview.min.js +1 -1
  191. package/deferredcontent/deferredcontent.cjs.js +11 -11
  192. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  193. package/deferredcontent/deferredcontent.esm.js +11 -11
  194. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  195. package/deferredcontent/deferredcontent.js +11 -11
  196. package/deferredcontent/deferredcontent.min.js +1 -1
  197. package/dialog/dialog.cjs.js +20 -22
  198. package/dialog/dialog.cjs.min.js +1 -1
  199. package/dialog/dialog.d.ts +2 -1
  200. package/dialog/dialog.esm.js +20 -22
  201. package/dialog/dialog.esm.min.js +1 -1
  202. package/dialog/dialog.js +20 -22
  203. package/dialog/dialog.min.js +1 -1
  204. package/divider/divider.cjs.js +11 -11
  205. package/divider/divider.cjs.min.js +1 -1
  206. package/divider/divider.esm.js +11 -11
  207. package/divider/divider.esm.min.js +1 -1
  208. package/divider/divider.js +11 -11
  209. package/divider/divider.min.js +1 -1
  210. package/dock/dock.cjs.js +11 -11
  211. package/dock/dock.cjs.min.js +1 -1
  212. package/dock/dock.esm.js +11 -11
  213. package/dock/dock.esm.min.js +1 -1
  214. package/dock/dock.js +11 -11
  215. package/dock/dock.min.js +1 -1
  216. package/dropdown/dropdown.cjs.js +36 -26
  217. package/dropdown/dropdown.cjs.min.js +1 -1
  218. package/dropdown/dropdown.d.ts +2 -1
  219. package/dropdown/dropdown.esm.js +36 -26
  220. package/dropdown/dropdown.esm.min.js +1 -1
  221. package/dropdown/dropdown.js +36 -26
  222. package/dropdown/dropdown.min.js +1 -1
  223. package/editor/editor.cjs.js +21 -17
  224. package/editor/editor.cjs.min.js +1 -1
  225. package/editor/editor.d.ts +1 -0
  226. package/editor/editor.esm.js +21 -17
  227. package/editor/editor.esm.min.js +1 -1
  228. package/editor/editor.js +21 -17
  229. package/editor/editor.min.js +1 -1
  230. package/fieldset/fieldset.cjs.js +14 -14
  231. package/fieldset/fieldset.cjs.min.js +1 -1
  232. package/fieldset/fieldset.d.ts +2 -1
  233. package/fieldset/fieldset.esm.js +14 -14
  234. package/fieldset/fieldset.esm.min.js +1 -1
  235. package/fieldset/fieldset.js +14 -14
  236. package/fieldset/fieldset.min.js +1 -1
  237. package/fileupload/fileupload.cjs.js +16 -13
  238. package/fileupload/fileupload.cjs.min.js +1 -1
  239. package/fileupload/fileupload.d.ts +3 -1
  240. package/fileupload/fileupload.esm.js +16 -13
  241. package/fileupload/fileupload.esm.min.js +1 -1
  242. package/fileupload/fileupload.js +16 -13
  243. package/fileupload/fileupload.min.js +1 -1
  244. package/fullcalendar/fullcalendar.cjs.js +11 -11
  245. package/fullcalendar/fullcalendar.cjs.min.js +1 -1
  246. package/fullcalendar/fullcalendar.esm.js +11 -11
  247. package/fullcalendar/fullcalendar.esm.min.js +1 -1
  248. package/fullcalendar/fullcalendar.js +11 -11
  249. package/fullcalendar/fullcalendar.min.js +1 -1
  250. package/galleria/galleria.cjs.js +228 -22
  251. package/galleria/galleria.cjs.min.js +1 -1
  252. package/galleria/galleria.d.ts +2 -1
  253. package/galleria/galleria.esm.js +228 -22
  254. package/galleria/galleria.esm.min.js +1 -1
  255. package/galleria/galleria.js +229 -23
  256. package/galleria/galleria.min.js +1 -1
  257. package/gmap/gmap.cjs.js +12 -12
  258. package/gmap/gmap.cjs.min.js +1 -1
  259. package/gmap/gmap.esm.js +12 -12
  260. package/gmap/gmap.esm.min.js +1 -1
  261. package/gmap/gmap.js +12 -12
  262. package/gmap/gmap.min.js +1 -1
  263. package/image/image.cjs.js +39 -18
  264. package/image/image.cjs.min.js +1 -1
  265. package/image/image.d.ts +1 -0
  266. package/image/image.esm.js +40 -19
  267. package/image/image.esm.min.js +1 -1
  268. package/image/image.js +39 -18
  269. package/image/image.min.js +1 -1
  270. package/inplace/inplace.cjs.js +11 -11
  271. package/inplace/inplace.cjs.min.js +1 -1
  272. package/inplace/inplace.esm.js +11 -11
  273. package/inplace/inplace.esm.min.js +1 -1
  274. package/inplace/inplace.js +11 -11
  275. package/inplace/inplace.min.js +1 -1
  276. package/inputmask/inputmask.cjs.js +15 -15
  277. package/inputmask/inputmask.cjs.min.js +1 -1
  278. package/inputmask/inputmask.d.ts +1 -1
  279. package/inputmask/inputmask.esm.js +15 -15
  280. package/inputmask/inputmask.esm.min.js +1 -1
  281. package/inputmask/inputmask.js +15 -15
  282. package/inputmask/inputmask.min.js +1 -1
  283. package/inputnumber/inputnumber.cjs.js +47 -35
  284. package/inputnumber/inputnumber.cjs.min.js +1 -1
  285. package/inputnumber/inputnumber.d.ts +4 -4
  286. package/inputnumber/inputnumber.esm.js +47 -35
  287. package/inputnumber/inputnumber.esm.min.js +1 -1
  288. package/inputnumber/inputnumber.js +47 -35
  289. package/inputnumber/inputnumber.min.js +1 -1
  290. package/inputswitch/inputswitch.cjs.js +13 -13
  291. package/inputswitch/inputswitch.cjs.min.js +1 -1
  292. package/inputswitch/inputswitch.esm.js +13 -13
  293. package/inputswitch/inputswitch.esm.min.js +1 -1
  294. package/inputswitch/inputswitch.js +13 -13
  295. package/inputswitch/inputswitch.min.js +1 -1
  296. package/inputtext/inputtext.cjs.js +13 -13
  297. package/inputtext/inputtext.cjs.min.js +1 -1
  298. package/inputtext/inputtext.esm.js +13 -13
  299. package/inputtext/inputtext.esm.min.js +1 -1
  300. package/inputtext/inputtext.js +13 -13
  301. package/inputtext/inputtext.min.js +1 -1
  302. package/inputtextarea/inputtextarea.cjs.js +13 -13
  303. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  304. package/inputtextarea/inputtextarea.esm.js +13 -13
  305. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  306. package/inputtextarea/inputtextarea.js +13 -13
  307. package/inputtextarea/inputtextarea.min.js +1 -1
  308. package/keyfilter/keyfilter.cjs.js +4 -1
  309. package/keyfilter/keyfilter.cjs.min.js +1 -1
  310. package/keyfilter/keyfilter.esm.js +4 -1
  311. package/keyfilter/keyfilter.esm.min.js +1 -1
  312. package/keyfilter/keyfilter.js +4 -1
  313. package/keyfilter/keyfilter.min.js +1 -1
  314. package/knob/knob.cjs.js +12 -12
  315. package/knob/knob.cjs.min.js +1 -1
  316. package/knob/knob.esm.js +12 -12
  317. package/knob/knob.esm.min.js +1 -1
  318. package/knob/knob.js +12 -12
  319. package/knob/knob.min.js +1 -1
  320. package/listbox/listbox.cjs.js +14 -14
  321. package/listbox/listbox.cjs.min.js +1 -1
  322. package/listbox/listbox.esm.js +14 -14
  323. package/listbox/listbox.esm.min.js +1 -1
  324. package/listbox/listbox.js +14 -14
  325. package/listbox/listbox.min.js +1 -1
  326. package/megamenu/megamenu.cjs.js +11 -11
  327. package/megamenu/megamenu.cjs.min.js +1 -1
  328. package/megamenu/megamenu.esm.js +11 -11
  329. package/megamenu/megamenu.esm.min.js +1 -1
  330. package/megamenu/megamenu.js +11 -11
  331. package/megamenu/megamenu.min.js +1 -1
  332. package/mention/mention.cjs.js +17 -17
  333. package/mention/mention.cjs.min.js +1 -1
  334. package/mention/mention.d.ts +2 -1
  335. package/mention/mention.esm.js +17 -17
  336. package/mention/mention.esm.min.js +1 -1
  337. package/mention/mention.js +17 -17
  338. package/mention/mention.min.js +1 -1
  339. package/menu/menu.cjs.js +13 -13
  340. package/menu/menu.cjs.min.js +1 -1
  341. package/menu/menu.d.ts +2 -1
  342. package/menu/menu.esm.js +13 -13
  343. package/menu/menu.esm.min.js +1 -1
  344. package/menu/menu.js +13 -13
  345. package/menu/menu.min.js +1 -1
  346. package/menubar/menubar.cjs.js +11 -11
  347. package/menubar/menubar.cjs.min.js +1 -1
  348. package/menubar/menubar.esm.js +11 -11
  349. package/menubar/menubar.esm.min.js +1 -1
  350. package/menubar/menubar.js +11 -11
  351. package/menubar/menubar.min.css +1 -1
  352. package/menubar/menubar.min.js +1 -1
  353. package/message/message.cjs.js +11 -11
  354. package/message/message.cjs.min.js +1 -1
  355. package/message/message.esm.js +11 -11
  356. package/message/message.esm.min.js +1 -1
  357. package/message/message.js +11 -11
  358. package/message/message.min.js +1 -1
  359. package/messages/messages.cjs.js +11 -11
  360. package/messages/messages.cjs.min.js +1 -1
  361. package/messages/messages.d.ts +2 -1
  362. package/messages/messages.esm.js +11 -11
  363. package/messages/messages.esm.min.js +1 -1
  364. package/messages/messages.js +11 -11
  365. package/messages/messages.min.js +1 -1
  366. package/multiselect/multiselect.cjs.js +23 -23
  367. package/multiselect/multiselect.cjs.min.js +1 -1
  368. package/multiselect/multiselect.d.ts +3 -2
  369. package/multiselect/multiselect.esm.js +23 -23
  370. package/multiselect/multiselect.esm.min.js +1 -1
  371. package/multiselect/multiselect.js +23 -23
  372. package/multiselect/multiselect.min.js +1 -1
  373. package/multistatecheckbox/multistatecheckbox.cjs.js +13 -13
  374. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  375. package/multistatecheckbox/multistatecheckbox.d.ts +1 -1
  376. package/multistatecheckbox/multistatecheckbox.esm.js +13 -13
  377. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  378. package/multistatecheckbox/multistatecheckbox.js +13 -13
  379. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  380. package/orderlist/orderlist.cjs.js +11 -11
  381. package/orderlist/orderlist.cjs.min.js +1 -1
  382. package/orderlist/orderlist.esm.js +11 -11
  383. package/orderlist/orderlist.esm.min.js +1 -1
  384. package/orderlist/orderlist.js +11 -11
  385. package/orderlist/orderlist.min.js +1 -1
  386. package/organizationchart/organizationchart.cjs.js +11 -11
  387. package/organizationchart/organizationchart.cjs.min.js +1 -1
  388. package/organizationchart/organizationchart.esm.js +11 -11
  389. package/organizationchart/organizationchart.esm.min.js +1 -1
  390. package/organizationchart/organizationchart.js +11 -11
  391. package/organizationchart/organizationchart.min.css +1 -1
  392. package/organizationchart/organizationchart.min.js +1 -1
  393. package/overlaypanel/overlaypanel.cjs.js +15 -19
  394. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  395. package/overlaypanel/overlaypanel.d.ts +2 -1
  396. package/overlaypanel/overlaypanel.esm.js +15 -19
  397. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  398. package/overlaypanel/overlaypanel.js +15 -19
  399. package/overlaypanel/overlaypanel.min.js +1 -1
  400. package/package.json +3 -2
  401. package/paginator/paginator.cjs.js +13 -13
  402. package/paginator/paginator.cjs.min.js +1 -1
  403. package/paginator/paginator.esm.js +13 -13
  404. package/paginator/paginator.esm.min.js +1 -1
  405. package/paginator/paginator.js +13 -13
  406. package/paginator/paginator.min.js +1 -1
  407. package/panel/panel.cjs.js +17 -16
  408. package/panel/panel.cjs.min.js +1 -1
  409. package/panel/panel.d.ts +5 -3
  410. package/panel/panel.esm.js +18 -17
  411. package/panel/panel.esm.min.js +1 -1
  412. package/panel/panel.js +17 -16
  413. package/panel/panel.min.js +1 -1
  414. package/panelmenu/panelmenu.cjs.js +13 -13
  415. package/panelmenu/panelmenu.cjs.min.js +1 -1
  416. package/panelmenu/panelmenu.d.ts +2 -1
  417. package/panelmenu/panelmenu.esm.js +13 -13
  418. package/panelmenu/panelmenu.esm.min.js +1 -1
  419. package/panelmenu/panelmenu.js +13 -13
  420. package/panelmenu/panelmenu.min.js +1 -1
  421. package/password/password.cjs.js +15 -15
  422. package/password/password.cjs.min.js +1 -1
  423. package/password/password.d.ts +2 -1
  424. package/password/password.esm.js +15 -15
  425. package/password/password.esm.min.js +1 -1
  426. package/password/password.js +15 -15
  427. package/password/password.min.js +1 -1
  428. package/picklist/picklist.cjs.js +11 -11
  429. package/picklist/picklist.cjs.min.js +1 -1
  430. package/picklist/picklist.esm.js +11 -11
  431. package/picklist/picklist.esm.min.js +1 -1
  432. package/picklist/picklist.js +11 -11
  433. package/picklist/picklist.min.js +1 -1
  434. package/portal/portal.cjs.js +15 -18
  435. package/portal/portal.cjs.min.js +1 -1
  436. package/portal/portal.esm.js +15 -18
  437. package/portal/portal.esm.min.js +1 -1
  438. package/portal/portal.js +16 -20
  439. package/portal/portal.min.js +1 -1
  440. package/primereact.all.cjs.js +1531 -1073
  441. package/primereact.all.cjs.min.js +1 -1
  442. package/primereact.all.esm.js +1531 -1073
  443. package/primereact.all.esm.min.js +1 -1
  444. package/primereact.all.js +1531 -1073
  445. package/primereact.all.min.js +1 -1
  446. package/progressbar/progressbar.cjs.js +11 -11
  447. package/progressbar/progressbar.cjs.min.js +1 -1
  448. package/progressbar/progressbar.esm.js +11 -11
  449. package/progressbar/progressbar.esm.min.js +1 -1
  450. package/progressbar/progressbar.js +11 -11
  451. package/progressbar/progressbar.min.js +1 -1
  452. package/progressspinner/progressspinner.cjs.js +11 -11
  453. package/progressspinner/progressspinner.cjs.min.js +1 -1
  454. package/progressspinner/progressspinner.esm.js +11 -11
  455. package/progressspinner/progressspinner.esm.min.js +1 -1
  456. package/progressspinner/progressspinner.js +11 -11
  457. package/progressspinner/progressspinner.min.js +1 -1
  458. package/radiobutton/radiobutton.cjs.js +13 -13
  459. package/radiobutton/radiobutton.cjs.min.js +1 -1
  460. package/radiobutton/radiobutton.esm.js +13 -13
  461. package/radiobutton/radiobutton.esm.min.js +1 -1
  462. package/radiobutton/radiobutton.js +13 -13
  463. package/radiobutton/radiobutton.min.js +1 -1
  464. package/rating/rating.cjs.js +13 -13
  465. package/rating/rating.cjs.min.js +1 -1
  466. package/rating/rating.esm.js +13 -13
  467. package/rating/rating.esm.min.js +1 -1
  468. package/rating/rating.js +13 -13
  469. package/rating/rating.min.js +1 -1
  470. package/resources/primereact.css +129 -99
  471. package/resources/primereact.min.css +1 -1
  472. package/resources/themes/arya-blue/theme.css +314 -26
  473. package/resources/themes/arya-green/theme.css +314 -26
  474. package/resources/themes/arya-orange/theme.css +314 -26
  475. package/resources/themes/arya-purple/theme.css +314 -26
  476. package/resources/themes/bootstrap4-dark-blue/theme.css +291 -10
  477. package/resources/themes/bootstrap4-dark-purple/theme.css +291 -10
  478. package/resources/themes/bootstrap4-light-blue/theme.css +288 -7
  479. package/resources/themes/bootstrap4-light-purple/theme.css +288 -7
  480. package/resources/themes/fluent-light/theme.css +312 -24
  481. package/resources/themes/lara-dark-blue/theme.css +665 -412
  482. package/resources/themes/lara-dark-indigo/theme.css +665 -412
  483. package/resources/themes/lara-dark-purple/theme.css +665 -412
  484. package/resources/themes/lara-dark-teal/theme.css +665 -412
  485. package/resources/themes/lara-light-blue/theme.css +319 -66
  486. package/resources/themes/lara-light-indigo/theme.css +319 -66
  487. package/resources/themes/lara-light-purple/theme.css +319 -66
  488. package/resources/themes/lara-light-teal/theme.css +319 -66
  489. package/resources/themes/luna-amber/theme.css +305 -24
  490. package/resources/themes/luna-blue/theme.css +305 -24
  491. package/resources/themes/luna-green/theme.css +305 -24
  492. package/resources/themes/luna-pink/theme.css +305 -24
  493. package/resources/themes/md-dark-deeppurple/theme.css +370 -8
  494. package/resources/themes/md-dark-indigo/theme.css +370 -8
  495. package/resources/themes/md-light-deeppurple/theme.css +368 -6
  496. package/resources/themes/md-light-indigo/theme.css +368 -6
  497. package/resources/themes/mdc-dark-deeppurple/theme.css +370 -8
  498. package/resources/themes/mdc-dark-indigo/theme.css +370 -8
  499. package/resources/themes/mdc-light-deeppurple/theme.css +368 -6
  500. package/resources/themes/mdc-light-indigo/theme.css +368 -6
  501. package/resources/themes/nova/theme.css +305 -24
  502. package/resources/themes/nova-accent/theme.css +305 -24
  503. package/resources/themes/nova-alt/theme.css +305 -24
  504. package/resources/themes/rhea/theme.css +305 -24
  505. package/resources/themes/saga-blue/theme.css +295 -7
  506. package/resources/themes/saga-green/theme.css +295 -7
  507. package/resources/themes/saga-orange/theme.css +295 -7
  508. package/resources/themes/saga-purple/theme.css +295 -7
  509. package/resources/themes/tailwind-light/theme.css +315 -27
  510. package/resources/themes/vela-blue/theme.css +314 -26
  511. package/resources/themes/vela-green/theme.css +314 -26
  512. package/resources/themes/vela-orange/theme.css +314 -26
  513. package/resources/themes/vela-purple/theme.css +314 -26
  514. package/ripple/ripple.cjs.js +11 -11
  515. package/ripple/ripple.cjs.min.js +1 -1
  516. package/ripple/ripple.esm.js +11 -11
  517. package/ripple/ripple.esm.min.js +1 -1
  518. package/ripple/ripple.js +11 -11
  519. package/ripple/ripple.min.js +1 -1
  520. package/row/row.cjs.js +11 -11
  521. package/row/row.cjs.min.js +1 -1
  522. package/row/row.esm.js +11 -11
  523. package/row/row.esm.min.js +1 -1
  524. package/row/row.js +11 -11
  525. package/row/row.min.js +1 -1
  526. package/scrollpanel/scrollpanel.cjs.js +11 -11
  527. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  528. package/scrollpanel/scrollpanel.esm.js +11 -11
  529. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  530. package/scrollpanel/scrollpanel.js +11 -11
  531. package/scrollpanel/scrollpanel.min.js +1 -1
  532. package/scrolltop/scrolltop.cjs.js +12 -12
  533. package/scrolltop/scrolltop.cjs.min.js +1 -1
  534. package/scrolltop/scrolltop.d.ts +3 -2
  535. package/scrolltop/scrolltop.esm.js +12 -12
  536. package/scrolltop/scrolltop.esm.min.js +1 -1
  537. package/scrolltop/scrolltop.js +12 -12
  538. package/scrolltop/scrolltop.min.js +1 -1
  539. package/selectbutton/selectbutton.cjs.js +14 -14
  540. package/selectbutton/selectbutton.cjs.min.js +1 -1
  541. package/selectbutton/selectbutton.esm.js +14 -14
  542. package/selectbutton/selectbutton.esm.min.js +1 -1
  543. package/selectbutton/selectbutton.js +14 -14
  544. package/selectbutton/selectbutton.min.js +1 -1
  545. package/selectitem/selectitem.d.ts +1 -1
  546. package/sidebar/sidebar.cjs.js +14 -13
  547. package/sidebar/sidebar.cjs.min.js +1 -1
  548. package/sidebar/sidebar.d.ts +2 -1
  549. package/sidebar/sidebar.esm.js +14 -13
  550. package/sidebar/sidebar.esm.min.js +1 -1
  551. package/sidebar/sidebar.js +14 -13
  552. package/sidebar/sidebar.min.js +1 -1
  553. package/skeleton/skeleton.cjs.js +11 -11
  554. package/skeleton/skeleton.cjs.min.js +1 -1
  555. package/skeleton/skeleton.esm.js +11 -11
  556. package/skeleton/skeleton.esm.min.js +1 -1
  557. package/skeleton/skeleton.js +11 -11
  558. package/skeleton/skeleton.min.js +1 -1
  559. package/slidemenu/slidemenu.cjs.js +13 -13
  560. package/slidemenu/slidemenu.cjs.min.js +1 -1
  561. package/slidemenu/slidemenu.d.ts +2 -1
  562. package/slidemenu/slidemenu.esm.js +13 -13
  563. package/slidemenu/slidemenu.esm.min.js +1 -1
  564. package/slidemenu/slidemenu.js +13 -13
  565. package/slidemenu/slidemenu.min.js +1 -1
  566. package/slider/slider.cjs.js +11 -11
  567. package/slider/slider.cjs.min.js +1 -1
  568. package/slider/slider.esm.js +11 -11
  569. package/slider/slider.esm.min.js +1 -1
  570. package/slider/slider.js +11 -11
  571. package/slider/slider.min.js +1 -1
  572. package/speeddial/speeddial.cjs.js +13 -13
  573. package/speeddial/speeddial.cjs.min.js +1 -1
  574. package/speeddial/speeddial.d.ts +1 -1
  575. package/speeddial/speeddial.esm.js +13 -13
  576. package/speeddial/speeddial.esm.min.js +1 -1
  577. package/speeddial/speeddial.js +13 -13
  578. package/speeddial/speeddial.min.js +1 -1
  579. package/splitbutton/splitbutton.cjs.js +22 -18
  580. package/splitbutton/splitbutton.cjs.min.js +1 -1
  581. package/splitbutton/splitbutton.d.ts +9 -3
  582. package/splitbutton/splitbutton.esm.js +22 -18
  583. package/splitbutton/splitbutton.esm.min.js +1 -1
  584. package/splitbutton/splitbutton.js +22 -18
  585. package/splitbutton/splitbutton.min.css +1 -1
  586. package/splitbutton/splitbutton.min.js +1 -1
  587. package/splitter/splitter.cjs.js +12 -12
  588. package/splitter/splitter.cjs.min.js +1 -1
  589. package/splitter/splitter.esm.js +12 -12
  590. package/splitter/splitter.esm.min.js +1 -1
  591. package/splitter/splitter.js +12 -12
  592. package/splitter/splitter.min.js +1 -1
  593. package/steps/steps.cjs.js +11 -11
  594. package/steps/steps.cjs.min.js +1 -1
  595. package/steps/steps.esm.js +11 -11
  596. package/steps/steps.esm.min.js +1 -1
  597. package/steps/steps.js +11 -11
  598. package/steps/steps.min.js +1 -1
  599. package/styleclass/styleclass.cjs.js +11 -11
  600. package/styleclass/styleclass.cjs.min.js +1 -1
  601. package/styleclass/styleclass.esm.js +11 -11
  602. package/styleclass/styleclass.esm.min.js +1 -1
  603. package/styleclass/styleclass.js +11 -11
  604. package/styleclass/styleclass.min.js +1 -1
  605. package/tabmenu/tabmenu.cjs.js +12 -12
  606. package/tabmenu/tabmenu.cjs.min.js +1 -1
  607. package/tabmenu/tabmenu.esm.js +12 -12
  608. package/tabmenu/tabmenu.esm.min.js +1 -1
  609. package/tabmenu/tabmenu.js +12 -12
  610. package/tabmenu/tabmenu.min.js +1 -1
  611. package/tabview/tabview.cjs.js +57 -33
  612. package/tabview/tabview.cjs.min.js +1 -1
  613. package/tabview/tabview.d.ts +8 -0
  614. package/tabview/tabview.esm.js +57 -33
  615. package/tabview/tabview.esm.min.js +1 -1
  616. package/tabview/tabview.js +57 -33
  617. package/tabview/tabview.min.js +1 -1
  618. package/tag/tag.cjs.js +11 -11
  619. package/tag/tag.cjs.min.js +1 -1
  620. package/tag/tag.d.ts +1 -1
  621. package/tag/tag.esm.js +11 -11
  622. package/tag/tag.esm.min.js +1 -1
  623. package/tag/tag.js +11 -11
  624. package/tag/tag.min.js +1 -1
  625. package/terminal/terminal.cjs.js +11 -11
  626. package/terminal/terminal.cjs.min.js +1 -1
  627. package/terminal/terminal.esm.js +11 -11
  628. package/terminal/terminal.esm.min.js +1 -1
  629. package/terminal/terminal.js +11 -11
  630. package/terminal/terminal.min.js +1 -1
  631. package/tieredmenu/tieredmenu.cjs.js +13 -13
  632. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  633. package/tieredmenu/tieredmenu.d.ts +2 -1
  634. package/tieredmenu/tieredmenu.esm.js +13 -13
  635. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  636. package/tieredmenu/tieredmenu.js +13 -13
  637. package/tieredmenu/tieredmenu.min.js +1 -1
  638. package/timeline/timeline.cjs.js +11 -11
  639. package/timeline/timeline.cjs.min.js +1 -1
  640. package/timeline/timeline.esm.js +11 -11
  641. package/timeline/timeline.esm.min.js +1 -1
  642. package/timeline/timeline.js +11 -11
  643. package/timeline/timeline.min.js +1 -1
  644. package/toast/toast.cjs.js +26 -15
  645. package/toast/toast.cjs.min.js +1 -1
  646. package/toast/toast.d.ts +5 -1
  647. package/toast/toast.esm.js +26 -15
  648. package/toast/toast.esm.min.js +1 -1
  649. package/toast/toast.js +27 -17
  650. package/toast/toast.min.js +1 -1
  651. package/togglebutton/togglebutton.cjs.js +13 -13
  652. package/togglebutton/togglebutton.cjs.min.js +1 -1
  653. package/togglebutton/togglebutton.d.ts +1 -1
  654. package/togglebutton/togglebutton.esm.js +13 -13
  655. package/togglebutton/togglebutton.esm.min.js +1 -1
  656. package/togglebutton/togglebutton.js +13 -13
  657. package/togglebutton/togglebutton.min.js +1 -1
  658. package/toolbar/toolbar.cjs.js +11 -11
  659. package/toolbar/toolbar.cjs.min.js +1 -1
  660. package/toolbar/toolbar.esm.js +11 -11
  661. package/toolbar/toolbar.esm.min.js +1 -1
  662. package/toolbar/toolbar.js +11 -11
  663. package/toolbar/toolbar.min.css +1 -1
  664. package/toolbar/toolbar.min.js +1 -1
  665. package/tooltip/tooltip.cjs.js +45 -19
  666. package/tooltip/tooltip.cjs.min.js +1 -1
  667. package/tooltip/tooltip.d.ts +0 -1
  668. package/tooltip/tooltip.esm.js +45 -19
  669. package/tooltip/tooltip.esm.min.js +1 -1
  670. package/tooltip/tooltip.js +45 -19
  671. package/tooltip/tooltip.min.js +1 -1
  672. package/tooltip/tooltipoptions.d.ts +2 -0
  673. package/tree/tree.cjs.js +19 -18
  674. package/tree/tree.cjs.min.js +1 -1
  675. package/tree/tree.d.ts +8 -4
  676. package/tree/tree.esm.js +19 -18
  677. package/tree/tree.esm.min.js +1 -1
  678. package/tree/tree.js +19 -18
  679. package/tree/tree.min.js +1 -1
  680. package/treenode/treenode.d.ts +2 -1
  681. package/treeselect/treeselect.cjs.js +20 -20
  682. package/treeselect/treeselect.cjs.min.js +1 -1
  683. package/treeselect/treeselect.d.ts +2 -1
  684. package/treeselect/treeselect.esm.js +20 -20
  685. package/treeselect/treeselect.esm.min.js +1 -1
  686. package/treeselect/treeselect.js +20 -20
  687. package/treeselect/treeselect.min.js +1 -1
  688. package/treetable/treetable.cjs.js +101 -40
  689. package/treetable/treetable.cjs.min.js +1 -1
  690. package/treetable/treetable.d.ts +2 -1
  691. package/treetable/treetable.esm.js +97 -37
  692. package/treetable/treetable.esm.min.js +1 -1
  693. package/treetable/treetable.js +101 -40
  694. package/treetable/treetable.min.css +1 -1
  695. package/treetable/treetable.min.js +1 -1
  696. package/tristatecheckbox/tristatecheckbox.cjs.js +13 -13
  697. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  698. package/tristatecheckbox/tristatecheckbox.esm.js +13 -13
  699. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  700. package/tristatecheckbox/tristatecheckbox.js +13 -13
  701. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  702. package/utils/utils.cjs.js +98 -23
  703. package/utils/utils.cjs.min.js +1 -1
  704. package/utils/utils.d.ts +3 -0
  705. package/utils/utils.esm.js +98 -23
  706. package/utils/utils.esm.min.js +1 -1
  707. package/utils/utils.js +98 -23
  708. package/utils/utils.min.js +1 -1
  709. package/virtualscroller/virtualscroller.cjs.js +62 -36
  710. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  711. package/virtualscroller/virtualscroller.esm.js +62 -36
  712. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  713. package/virtualscroller/virtualscroller.js +62 -36
  714. package/virtualscroller/virtualscroller.min.css +1 -1
  715. package/virtualscroller/virtualscroller.min.js +1 -1
  716. package/web-types.json +59 -10
  717. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  718. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  719. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  720. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  721. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  722. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  723. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  724. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  725. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  726. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  727. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  728. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  729. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  730. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  731. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  732. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  733. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  734. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  735. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  736. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  737. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  738. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  739. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  740. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  741. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  742. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  743. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  744. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  745. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  746. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  747. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  748. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  749. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  750. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  751. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  752. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  753. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  754. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  755. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  756. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  757. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  758. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  759. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  760. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  761. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  762. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  763. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  764. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  765. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  766. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  767. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  768. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  769. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  770. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  771. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  772. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  773. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  774. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  775. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  776. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  777. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  778. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  779. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  780. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  781. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  782. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  783. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  784. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  785. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  786. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  787. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  788. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  789. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  790. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  791. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  792. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  793. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  794. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  795. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  796. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  797. package/util.d.ts +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils"),n=require("primereact/button");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function d(e){var t=h();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var v,b,m,g=function(t){c(r,e.Component);var n=d(r);function r(){return l(this,r),n.apply(this,arguments)}return a(r,[{key:"render",value:function(){return this.props.children}}]),r}(),C=function(t){c(r,e.Component);var n=d(r);function r(){return l(this,r),n.apply(this,arguments)}return a(r,[{key:"render",value:function(){return this.props.children}}]),r}(),w=function(r){c(u,e.Component);var s=d(u);function u(e){var t;return l(this,u),(t=s.call(this,e)).props.onToggle||(t.state={active:!1}),t.open=t.open.bind(i(t)),t.close=t.close.bind(i(t)),t.onDisplayKeyDown=t.onDisplayKeyDown.bind(i(t)),t}return a(u,[{key:"open",value:function(e){this.props.disabled||(this.props.onOpen&&this.props.onOpen(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!0}):this.setState({active:!0}))}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!1}):this.setState({active:!1})}},{key:"onDisplayKeyDown",value:function(e){"Enter"===e.key&&(this.open(e),e.preventDefault())}},{key:"isActive",value:function(){return this.props.onToggle?this.props.active:this.state.active}},{key:"renderDisplay",value:function(e){var n=t.classNames("p-inplace-display",{"p-disabled":this.props.disabled});return o.default.createElement("div",{className:n,onClick:this.open,onKeyDown:this.onDisplayKeyDown,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel},e)}},{key:"renderCloseButton",value:function(){return this.props.closable?o.default.createElement(n.Button,{type:"button",className:"p-inplace-content-close",icon:"pi pi-times",onClick:this.close}):null}},{key:"renderContent",value:function(e){var t=this.renderCloseButton();return o.default.createElement("div",{className:"p-inplace-content"},e,t)}},{key:"renderChildren",value:function(){var e=this,t=this.isActive();return o.default.Children.map(this.props.children,(function(n,r){return t&&n.type===C?e.renderContent(n):t||n.type!==g?void 0:e.renderDisplay(n)}))}},{key:"render",value:function(){var e=t.classNames("p-inplace p-component",{"p-inplace-closable":this.props.closable},this.props.className);return o.default.createElement("div",{className:e},this.renderChildren())}}]),u}();m={style:null,className:null,active:!1,closable:!1,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null},(b="defaultProps")in(v=w)?Object.defineProperty(v,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[b]=m,exports.Inplace=w,exports.InplaceContent=C,exports.InplaceDisplay=g;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils"),n=require("primereact/button");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function d(e){var t=h();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var b,v,m,g=function(t){c(r,e.Component);var n=d(r);function r(){return l(this,r),n.apply(this,arguments)}return s(r,[{key:"render",value:function(){return this.props.children}}]),r}(),w=function(t){c(r,e.Component);var n=d(r);function r(){return l(this,r),n.apply(this,arguments)}return s(r,[{key:"render",value:function(){return this.props.children}}]),r}(),O=function(r){c(u,e.Component);var a=d(u);function u(e){var t;return l(this,u),(t=a.call(this,e)).props.onToggle||(t.state={active:!1}),t.open=t.open.bind(i(t)),t.close=t.close.bind(i(t)),t.onDisplayKeyDown=t.onDisplayKeyDown.bind(i(t)),t}return s(u,[{key:"open",value:function(e){this.props.disabled||(this.props.onOpen&&this.props.onOpen(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!0}):this.setState({active:!0}))}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!1}):this.setState({active:!1})}},{key:"onDisplayKeyDown",value:function(e){"Enter"===e.key&&(this.open(e),e.preventDefault())}},{key:"isActive",value:function(){return this.props.onToggle?this.props.active:this.state.active}},{key:"renderDisplay",value:function(e){var n=t.classNames("p-inplace-display",{"p-disabled":this.props.disabled});return o.default.createElement("div",{className:n,onClick:this.open,onKeyDown:this.onDisplayKeyDown,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel},e)}},{key:"renderCloseButton",value:function(){return this.props.closable?o.default.createElement(n.Button,{type:"button",className:"p-inplace-content-close",icon:"pi pi-times",onClick:this.close}):null}},{key:"renderContent",value:function(e){var t=this.renderCloseButton();return o.default.createElement("div",{className:"p-inplace-content"},e,t)}},{key:"renderChildren",value:function(){var e=this,t=this.isActive();return o.default.Children.map(this.props.children,(function(n,r){return t&&n.type===w?e.renderContent(n):t||n.type!==g?void 0:e.renderDisplay(n)}))}},{key:"render",value:function(){var e=t.classNames("p-inplace p-component",{"p-inplace-closable":this.props.closable},this.props.className);return o.default.createElement("div",{className:e},this.renderChildren())}}]),u}();m={style:null,className:null,active:!1,closable:!1,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null},(v="defaultProps")in(b=O)?Object.defineProperty(b,v,{value:m,enumerable:!0,configurable:!0,writable:!0}):b[v]=m,exports.Inplace=O,exports.InplaceContent=w,exports.InplaceDisplay=g;
@@ -44,6 +44,9 @@ function _defineProperties(target, props) {
44
44
  function _createClass(Constructor, protoProps, staticProps) {
45
45
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
46
46
  if (staticProps) _defineProperties(Constructor, staticProps);
47
+ Object.defineProperty(Constructor, "prototype", {
48
+ writable: false
49
+ });
47
50
  return Constructor;
48
51
  }
49
52
 
@@ -68,23 +71,20 @@ function _inherits(subClass, superClass) {
68
71
  configurable: true
69
72
  }
70
73
  });
74
+ Object.defineProperty(subClass, "prototype", {
75
+ writable: false
76
+ });
71
77
  if (superClass) _setPrototypeOf(subClass, superClass);
72
78
  }
73
79
 
74
80
  function _typeof(obj) {
75
81
  "@babel/helpers - typeof";
76
82
 
77
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
78
- _typeof = function _typeof(obj) {
79
- return typeof obj;
80
- };
81
- } else {
82
- _typeof = function _typeof(obj) {
83
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
84
- };
85
- }
86
-
87
- return _typeof(obj);
83
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
84
+ return typeof obj;
85
+ } : function (obj) {
86
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
87
+ }, _typeof(obj);
88
88
  }
89
89
 
90
90
  function _possibleConstructorReturn(self, call) {
@@ -1 +1 @@
1
- import e,{Component as t}from"react";import{classNames as n}from"primereact/utils";import{Button as r}from"primereact/button";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function p(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function y(e){var t=h();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var v,d,b,m=function(e){c(r,t);var n=y(r);function r(){return i(this,r),n.apply(this,arguments)}return s(r,[{key:"render",value:function(){return this.props.children}}]),r}(),g=function(e){c(r,t);var n=y(r);function r(){return i(this,r),n.apply(this,arguments)}return s(r,[{key:"render",value:function(){return this.props.children}}]),r}(),w=function(l){c(u,t);var a=y(u);function u(e){var t;return i(this,u),(t=a.call(this,e)).props.onToggle||(t.state={active:!1}),t.open=t.open.bind(o(t)),t.close=t.close.bind(o(t)),t.onDisplayKeyDown=t.onDisplayKeyDown.bind(o(t)),t}return s(u,[{key:"open",value:function(e){this.props.disabled||(this.props.onOpen&&this.props.onOpen(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!0}):this.setState({active:!0}))}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!1}):this.setState({active:!1})}},{key:"onDisplayKeyDown",value:function(e){"Enter"===e.key&&(this.open(e),e.preventDefault())}},{key:"isActive",value:function(){return this.props.onToggle?this.props.active:this.state.active}},{key:"renderDisplay",value:function(t){var r=n("p-inplace-display",{"p-disabled":this.props.disabled});return e.createElement("div",{className:r,onClick:this.open,onKeyDown:this.onDisplayKeyDown,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel},t)}},{key:"renderCloseButton",value:function(){return this.props.closable?e.createElement(r,{type:"button",className:"p-inplace-content-close",icon:"pi pi-times",onClick:this.close}):null}},{key:"renderContent",value:function(t){var n=this.renderCloseButton();return e.createElement("div",{className:"p-inplace-content"},t,n)}},{key:"renderChildren",value:function(){var t=this,n=this.isActive();return e.Children.map(this.props.children,(function(e,r){return n&&e.type===g?t.renderContent(e):n||e.type!==m?void 0:t.renderDisplay(e)}))}},{key:"render",value:function(){var t=n("p-inplace p-component",{"p-inplace-closable":this.props.closable},this.props.className);return e.createElement("div",{className:t},this.renderChildren())}}]),u}();b={style:null,className:null,active:!1,closable:!1,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null},(d="defaultProps")in(v=w)?Object.defineProperty(v,d,{value:b,enumerable:!0,configurable:!0,writable:!0}):v[d]=b;export{w as Inplace,g as InplaceContent,m as InplaceDisplay};
1
+ import e,{Component as t}from"react";import{classNames as n}from"primereact/utils";import{Button as r}from"primereact/button";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function u(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function y(e){var t=h();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var b,d,v,m=function(e){c(r,t);var n=y(r);function r(){return i(this,r),n.apply(this,arguments)}return s(r,[{key:"render",value:function(){return this.props.children}}]),r}(),g=function(e){c(r,t);var n=y(r);function r(){return i(this,r),n.apply(this,arguments)}return s(r,[{key:"render",value:function(){return this.props.children}}]),r}(),w=function(l){c(p,t);var a=y(p);function p(e){var t;return i(this,p),(t=a.call(this,e)).props.onToggle||(t.state={active:!1}),t.open=t.open.bind(o(t)),t.close=t.close.bind(o(t)),t.onDisplayKeyDown=t.onDisplayKeyDown.bind(o(t)),t}return s(p,[{key:"open",value:function(e){this.props.disabled||(this.props.onOpen&&this.props.onOpen(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!0}):this.setState({active:!0}))}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!1}):this.setState({active:!1})}},{key:"onDisplayKeyDown",value:function(e){"Enter"===e.key&&(this.open(e),e.preventDefault())}},{key:"isActive",value:function(){return this.props.onToggle?this.props.active:this.state.active}},{key:"renderDisplay",value:function(t){var r=n("p-inplace-display",{"p-disabled":this.props.disabled});return e.createElement("div",{className:r,onClick:this.open,onKeyDown:this.onDisplayKeyDown,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel},t)}},{key:"renderCloseButton",value:function(){return this.props.closable?e.createElement(r,{type:"button",className:"p-inplace-content-close",icon:"pi pi-times",onClick:this.close}):null}},{key:"renderContent",value:function(t){var n=this.renderCloseButton();return e.createElement("div",{className:"p-inplace-content"},t,n)}},{key:"renderChildren",value:function(){var t=this,n=this.isActive();return e.Children.map(this.props.children,(function(e,r){return n&&e.type===g?t.renderContent(e):n||e.type!==m?void 0:t.renderDisplay(e)}))}},{key:"render",value:function(){var t=n("p-inplace p-component",{"p-inplace-closable":this.props.closable},this.props.className);return e.createElement("div",{className:t},this.renderChildren())}}]),p}();v={style:null,className:null,active:!1,closable:!1,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null},(d="defaultProps")in(b=w)?Object.defineProperty(b,d,{value:v,enumerable:!0,configurable:!0,writable:!0}):b[d]=v;export{w as Inplace,g as InplaceContent,m as InplaceDisplay};
@@ -48,6 +48,9 @@ this.primereact.inplace = (function (exports, React, utils, button) {
48
48
  function _createClass(Constructor, protoProps, staticProps) {
49
49
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
50
50
  if (staticProps) _defineProperties(Constructor, staticProps);
51
+ Object.defineProperty(Constructor, "prototype", {
52
+ writable: false
53
+ });
51
54
  return Constructor;
52
55
  }
53
56
 
@@ -72,23 +75,20 @@ this.primereact.inplace = (function (exports, React, utils, button) {
72
75
  configurable: true
73
76
  }
74
77
  });
78
+ Object.defineProperty(subClass, "prototype", {
79
+ writable: false
80
+ });
75
81
  if (superClass) _setPrototypeOf(subClass, superClass);
76
82
  }
77
83
 
78
84
  function _typeof(obj) {
79
85
  "@babel/helpers - typeof";
80
86
 
81
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
82
- _typeof = function _typeof(obj) {
83
- return typeof obj;
84
- };
85
- } else {
86
- _typeof = function _typeof(obj) {
87
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
88
- };
89
- }
90
-
91
- return _typeof(obj);
87
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
88
+ return typeof obj;
89
+ } : function (obj) {
90
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
91
+ }, _typeof(obj);
92
92
  }
93
93
 
94
94
  function _possibleConstructorReturn(self, call) {
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.inplace=function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function d(e){var t=v();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var b,m,g,C=function(e){p(n,e);var t=d(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),w=function(e){p(n,e);var t=d(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),O=function(e){p(o,e);var t=d(o);function o(e){var n;return a(this,o),(n=t.call(this,e)).props.onToggle||(n.state={active:!1}),n.open=n.open.bind(l(n)),n.close=n.close.bind(l(n)),n.onDisplayKeyDown=n.onDisplayKeyDown.bind(l(n)),n}return c(o,[{key:"open",value:function(e){this.props.disabled||(this.props.onOpen&&this.props.onOpen(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!0}):this.setState({active:!0}))}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!1}):this.setState({active:!1})}},{key:"onDisplayKeyDown",value:function(e){"Enter"===e.key&&(this.open(e),e.preventDefault())}},{key:"isActive",value:function(){return this.props.onToggle?this.props.active:this.state.active}},{key:"renderDisplay",value:function(e){var t=n.classNames("p-inplace-display",{"p-disabled":this.props.disabled});return i.default.createElement("div",{className:t,onClick:this.open,onKeyDown:this.onDisplayKeyDown,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel},e)}},{key:"renderCloseButton",value:function(){return this.props.closable?i.default.createElement(r.Button,{type:"button",className:"p-inplace-content-close",icon:"pi pi-times",onClick:this.close}):null}},{key:"renderContent",value:function(e){var t=this.renderCloseButton();return i.default.createElement("div",{className:"p-inplace-content"},e,t)}},{key:"renderChildren",value:function(){var e=this,t=this.isActive();return i.default.Children.map(this.props.children,(function(n,r){return t&&n.type===w?e.renderContent(n):t||n.type!==C?void 0:e.renderDisplay(n)}))}},{key:"render",value:function(){var e=n.classNames("p-inplace p-component",{"p-inplace-closable":this.props.closable},this.props.className);return i.default.createElement("div",{className:e},this.renderChildren())}}]),o}(t.Component);return g={style:null,className:null,active:!1,closable:!1,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null},(m="defaultProps")in(b=O)?Object.defineProperty(b,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):b[m]=g,e.Inplace=O,e.InplaceContent=w,e.InplaceDisplay=C,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils,primereact.button);
1
+ this.primereact=this.primereact||{},this.primereact.inplace=function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function d(e){var t=b();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var v,m,g,w=function(e){p(n,e);var t=d(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),O=function(e){p(n,e);var t=d(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),C=function(e){p(o,e);var t=d(o);function o(e){var n;return a(this,o),(n=t.call(this,e)).props.onToggle||(n.state={active:!1}),n.open=n.open.bind(l(n)),n.close=n.close.bind(l(n)),n.onDisplayKeyDown=n.onDisplayKeyDown.bind(l(n)),n}return c(o,[{key:"open",value:function(e){this.props.disabled||(this.props.onOpen&&this.props.onOpen(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!0}):this.setState({active:!0}))}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(e),this.props.onToggle?this.props.onToggle({originalEvent:e,value:!1}):this.setState({active:!1})}},{key:"onDisplayKeyDown",value:function(e){"Enter"===e.key&&(this.open(e),e.preventDefault())}},{key:"isActive",value:function(){return this.props.onToggle?this.props.active:this.state.active}},{key:"renderDisplay",value:function(e){var t=n.classNames("p-inplace-display",{"p-disabled":this.props.disabled});return i.default.createElement("div",{className:t,onClick:this.open,onKeyDown:this.onDisplayKeyDown,tabIndex:this.props.tabIndex,"aria-label":this.props.ariaLabel},e)}},{key:"renderCloseButton",value:function(){return this.props.closable?i.default.createElement(r.Button,{type:"button",className:"p-inplace-content-close",icon:"pi pi-times",onClick:this.close}):null}},{key:"renderContent",value:function(e){var t=this.renderCloseButton();return i.default.createElement("div",{className:"p-inplace-content"},e,t)}},{key:"renderChildren",value:function(){var e=this,t=this.isActive();return i.default.Children.map(this.props.children,(function(n,r){return t&&n.type===O?e.renderContent(n):t||n.type!==w?void 0:e.renderDisplay(n)}))}},{key:"render",value:function(){var e=n.classNames("p-inplace p-component",{"p-inplace-closable":this.props.closable},this.props.className);return i.default.createElement("div",{className:e},this.renderChildren())}}]),o}(t.Component);return g={style:null,className:null,active:!1,closable:!1,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null},(m="defaultProps")in(v=C)?Object.defineProperty(v,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):v[m]=g,e.Inplace=C,e.InplaceContent=O,e.InplaceDisplay=w,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils,primereact.button);
@@ -30,6 +30,9 @@ function _defineProperties(target, props) {
30
30
  function _createClass(Constructor, protoProps, staticProps) {
31
31
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
32
32
  if (staticProps) _defineProperties(Constructor, staticProps);
33
+ Object.defineProperty(Constructor, "prototype", {
34
+ writable: false
35
+ });
33
36
  return Constructor;
34
37
  }
35
38
 
@@ -62,23 +65,20 @@ function _inherits(subClass, superClass) {
62
65
  configurable: true
63
66
  }
64
67
  });
68
+ Object.defineProperty(subClass, "prototype", {
69
+ writable: false
70
+ });
65
71
  if (superClass) _setPrototypeOf(subClass, superClass);
66
72
  }
67
73
 
68
74
  function _typeof(obj) {
69
75
  "@babel/helpers - typeof";
70
76
 
71
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
72
- _typeof = function _typeof(obj) {
73
- return typeof obj;
74
- };
75
- } else {
76
- _typeof = function _typeof(obj) {
77
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
78
- };
79
- }
80
-
81
- return _typeof(obj);
77
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
78
+ return typeof obj;
79
+ } : function (obj) {
80
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
81
+ }, _typeof(obj);
82
82
  }
83
83
 
84
84
  function _possibleConstructorReturn(self, call) {
@@ -113,9 +113,9 @@ function _defineProperty(obj, key, value) {
113
113
  return obj;
114
114
  }
115
115
 
116
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
116
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
117
117
 
118
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
118
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
119
119
 
120
120
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
121
121
 
@@ -754,7 +754,7 @@ var InputMask = /*#__PURE__*/function (_Component) {
754
754
  className: inputMaskClassName,
755
755
  placeholder: this.props.placeholder,
756
756
  size: this.props.size,
757
- maxLength: this.props.maxlength,
757
+ maxLength: this.props.maxLength,
758
758
  tabIndex: this.props.tabIndex,
759
759
  disabled: this.props.disabled,
760
760
  readOnly: this.props.readOnly,
@@ -786,7 +786,7 @@ _defineProperty(InputMask, "defaultProps", {
786
786
  className: null,
787
787
  placeholder: null,
788
788
  size: null,
789
- maxlength: null,
789
+ maxLength: null,
790
790
  tabIndex: null,
791
791
  disabled: false,
792
792
  readOnly: false,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("primereact/utils"),i=require("primereact/inputtext"),n=require("primereact/tooltip");function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=s(t);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function v(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?v(Object(i),!0).forEach((function(e){d(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var g=function(s){h(k,t.Component);var l,p,d,v,g,m=(l=k,p=b(),function(){var t,e=c(l);if(p){var i=c(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return f(this,t)});function k(e){var i;return o(this,k),(i=m.call(this,e)).onFocus=i.onFocus.bind(a(i)),i.onBlur=i.onBlur.bind(a(i)),i.onKeyDown=i.onKeyDown.bind(a(i)),i.onKeyPress=i.onKeyPress.bind(a(i)),i.onInput=i.onInput.bind(a(i)),i.handleInputChange=i.handleInputChange.bind(a(i)),i.inputRef=t.createRef(i.props.inputRef),i}return d=k,(v=[{key:"caret",value:function(t,e){var i,n,s,r=this.inputRef&&this.inputRef.current;if(r&&r.offsetParent&&r===document.activeElement)return"number"!=typeof t?(r.setSelectionRange?(n=r.selectionStart,s=r.selectionEnd):document.selection&&document.selection.createRange&&(s=(n=0-(i=document.selection.createRange()).duplicate().moveStart("character",-1e5))+i.text.length),{begin:n,end:s}):(n=t,s="number"==typeof e?e:n,void(r.setSelectionRange?r.setSelectionRange(n,s):r.createTextRange&&((i=r.createTextRange()).collapse(!0),i.moveEnd("character",s),i.moveStart("character",n),i.select())))}},{key:"isCompleted",value:function(){for(var t=this.firstNonMaskPos;t<=this.lastRequiredNonMaskPos;t++)if(this.tests[t]&&this.buffer[t]===this.getPlaceholder(t))return!1;return!0}},{key:"getPlaceholder",value:function(t){return this.props.slotChar.charAt(t<this.props.slotChar.length?t:0)}},{key:"getValue",value:function(){return this.props.unmask?this.getUnmaskedValue():this.inputRef&&this.inputRef.current&&this.inputRef.current.value}},{key:"seekNext",value:function(t){for(;++t<this.len&&!this.tests[t];);return t}},{key:"seekPrev",value:function(t){for(;--t>=0&&!this.tests[t];);return t}},{key:"shiftL",value:function(t,e){var i,n;if(!(t<0)){for(i=t,n=this.seekNext(e);i<this.len;i++)if(this.tests[i]){if(!(n<this.len&&this.tests[i].test(this.buffer[n])))break;this.buffer[i]=this.buffer[n],this.buffer[n]=this.getPlaceholder(n),n=this.seekNext(n)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}}},{key:"shiftR",value:function(t){var e,i,n,s;for(e=t,i=this.getPlaceholder(t);e<this.len;e++)if(this.tests[e]){if(n=this.seekNext(e),s=this.buffer[e],this.buffer[e]=i,!(n<this.len&&this.tests[n].test(s)))break;i=s}}},{key:"handleAndroidInput",value:function(t){var e=this.inputRef.current.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>e.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}},{key:"onBlur",value:function(t){if(this.focus=!1,this.checkVal(),this.updateModel(t),this.updateFilledState(),this.props.onBlur&&this.props.onBlur(t),this.inputRef.current.value!==this.focusText){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.inputRef.current.dispatchEvent(e)}}},{key:"onKeyDown",value:function(t){if(!this.props.readOnly){var i,n,s,r=t.which||t.keyCode,o=/iphone/i.test(e.DomHandler.getUserAgent());this.oldVal=this.inputRef.current.value,8===r||46===r||o&&127===r?((s=(i=this.caret()).end)-(n=i.begin)==0&&(n=46!==r?this.seekPrev(n):s=this.seekNext(n-1),s=46===r?this.seekNext(s):s),this.clearBuffer(n,s),this.shiftL(n,s-1),this.updateModel(t),t.preventDefault()):13===r?(this.onBlur(t),this.updateModel(t)):27===r&&(this.inputRef.current.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault())}}},{key:"onKeyPress",value:function(t){var i=this;if(!this.props.readOnly){var n,s,r,o,u=t.which||t.keyCode,a=this.caret();t.ctrlKey||t.altKey||t.metaKey||u<32||(u&&13!==u&&(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(n=this.seekNext(a.begin-1))<this.len&&(s=String.fromCharCode(u),this.tests[n].test(s))&&(this.shiftR(n),this.buffer[n]=s,this.writeBuffer(),r=this.seekNext(n),/android/i.test(e.DomHandler.getUserAgent())?setTimeout((function(){i.caret(r)}),0):this.caret(r),a.begin<=this.lastRequiredNonMaskPos&&(o=this.isCompleted())),t.preventDefault()),this.updateModel(t),this.props.onComplete&&o&&this.props.onComplete({originalEvent:t,value:this.getValue()}))}}},{key:"clearBuffer",value:function(t,e){var i;for(i=t;i<e&&i<this.len;i++)this.tests[i]&&(this.buffer[i]=this.getPlaceholder(i))}},{key:"writeBuffer",value:function(){this.inputRef.current.value=this.buffer.join("")}},{key:"checkVal",value:function(t){this.isValueChecked=!0;var e,i,n,s=this.inputRef.current.value,r=-1;for(e=0,n=0;e<this.len;e++)if(this.tests[e]){for(this.buffer[e]=this.getPlaceholder(e);n++<s.length;)if(i=s.charAt(n-1),this.tests[e].test(i)){this.buffer[e]=i,r=e;break}if(n>s.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===s.charAt(n)&&n++,e<this.partialPosition&&(r=e);return t?this.writeBuffer():r+1<this.partialPosition?this.props.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputRef.current.value&&(this.inputRef.current.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputRef.current.value=this.inputRef.current.value.substring(0,r+1)),this.partialPosition?e:this.firstNonMaskPos}},{key:"onFocus",value:function(t){var e,i=this;this.props.readOnly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputRef.current.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){i.inputRef.current===document.activeElement&&(i.writeBuffer(),e===i.props.mask.replace("?","").length?i.caret(0,e):i.caret(e),i.updateFilledState())}),10),this.props.onFocus&&this.props.onFocus(t))}},{key:"onInput",value:function(t){this.androidChrome?this.handleAndroidInput(t):this.handleInputChange(t)}},{key:"handleInputChange",value:function(t){if(!this.props.readOnly){var e=this.checkVal(!0);this.caret(e),this.updateModel(t),this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}}},{key:"getUnmaskedValue",value:function(){for(var t=[],e=0;e<this.buffer.length;e++){var i=this.buffer[e];this.tests[e]&&i!==this.getPlaceholder(e)&&t.push(i)}return t.join("")}},{key:"updateModel",value:function(t){if(this.props.onChange){var e=this.props.unmask?this.getUnmaskedValue():t&&t.target.value;this.props.onChange({originalEvent:t,value:this.defaultBuffer!==e?e:"",stopPropagation:function(){},preventDefault:function(){},target:{name:this.props.name,id:this.props.id,value:this.defaultBuffer!==e?e:""}})}}},{key:"updateFilledState",value:function(){this.inputRef&&this.inputRef.current&&this.inputRef.current.value&&this.inputRef.current.value.length>0?e.DomHandler.addClass(this.inputRef.current,"p-filled"):e.DomHandler.removeClass(this.inputRef.current,"p-filled")}},{key:"updateValue",value:function(t){var e,i=this;return this.inputRef&&this.inputRef.current&&(null==this.props.value?this.inputRef.current.value="":(this.inputRef.current.value=this.props.value,e=this.checkVal(t),setTimeout((function(){if(i.inputRef&&i.inputRef.current)return i.writeBuffer(),i.checkVal(t)}),10)),this.focusText=this.inputRef.current.value),this.updateFilledState(),e}},{key:"isValueUpdated",value:function(){return this.props.unmask?this.props.value!==this.getUnmaskedValue():this.defaultBuffer!==this.inputRef.current.value&&this.inputRef.current.value!==this.props.value}},{key:"init",value:function(){if(this.props.mask){this.tests=[],this.partialPosition=this.props.mask.length,this.len=this.props.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 i=this.props.mask.split(""),n=0;n<i.length;n++){var s=i[n];"?"===s?(this.len--,this.partialPosition=n):this.defs[s]?(this.tests.push(new RegExp(this.defs[s])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),n<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var r=0;r<i.length;r++){var o=i[r];"?"!==o&&this.buffer.push(this.defs[o]?this.getPlaceholder(r):o)}this.defaultBuffer=this.buffer.join("")}}},{key:"updateInputRef",value:function(){var t=this.props.inputRef;t&&("function"==typeof t?t(this.inputRef.current):t.current=this.inputRef.current)}},{key:"componentDidMount",value:function(){this.updateInputRef(),this.init(),this.updateValue(),this.props.tooltip&&this.renderTooltip()}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(y({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.isValueUpdated()&&this.updateValue(),t.mask!==this.props.mask&&(this.init(),this.caret(this.updateValue(!0)),this.updateModel())}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=n.tip({target:this.inputRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=e.classNames("p-inputmask",this.props.className);return r.default.createElement(i.InputText,{id:this.props.id,ref:this.inputRef,type:this.props.type,name:this.props.name,style:this.props.style,className:t,placeholder:this.props.placeholder,size:this.props.size,maxLength:this.props.maxlength,tabIndex:this.props.tabIndex,disabled:this.props.disabled,readOnly:this.props.readOnly,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onInput:this.onInput,onPaste:this.handleInputChange,required:this.props.required,"aria-labelledby":this.props.ariaLabelledBy})}}])&&u(d.prototype,v),g&&u(d,g),k}();d(g,"defaultProps",{id:null,inputRef:null,value:null,type:"text",mask:null,slotChar:"_",autoClear:!0,unmask:!1,style:null,className:null,placeholder:null,size:null,maxlength:null,tabIndex:null,disabled:!1,readOnly:!1,name:null,required:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onComplete:null,onChange:null,onFocus:null,onBlur:null}),exports.InputMask=g;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("primereact/utils"),i=require("primereact/inputtext"),n=require("primereact/tooltip");function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=s(t);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function v(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?v(Object(i),!0).forEach((function(e){d(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var g=function(s){h(k,t.Component);var l,p,d,v,g,m=(l=k,p=b(),function(){var t,e=c(l);if(p){var i=c(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return f(this,t)});function k(e){var i;return o(this,k),(i=m.call(this,e)).onFocus=i.onFocus.bind(a(i)),i.onBlur=i.onBlur.bind(a(i)),i.onKeyDown=i.onKeyDown.bind(a(i)),i.onKeyPress=i.onKeyPress.bind(a(i)),i.onInput=i.onInput.bind(a(i)),i.handleInputChange=i.handleInputChange.bind(a(i)),i.inputRef=t.createRef(i.props.inputRef),i}return d=k,(v=[{key:"caret",value:function(t,e){var i,n,s,r=this.inputRef&&this.inputRef.current;if(r&&r.offsetParent&&r===document.activeElement)return"number"!=typeof t?(r.setSelectionRange?(n=r.selectionStart,s=r.selectionEnd):document.selection&&document.selection.createRange&&(s=(n=0-(i=document.selection.createRange()).duplicate().moveStart("character",-1e5))+i.text.length),{begin:n,end:s}):(n=t,s="number"==typeof e?e:n,void(r.setSelectionRange?r.setSelectionRange(n,s):r.createTextRange&&((i=r.createTextRange()).collapse(!0),i.moveEnd("character",s),i.moveStart("character",n),i.select())))}},{key:"isCompleted",value:function(){for(var t=this.firstNonMaskPos;t<=this.lastRequiredNonMaskPos;t++)if(this.tests[t]&&this.buffer[t]===this.getPlaceholder(t))return!1;return!0}},{key:"getPlaceholder",value:function(t){return this.props.slotChar.charAt(t<this.props.slotChar.length?t:0)}},{key:"getValue",value:function(){return this.props.unmask?this.getUnmaskedValue():this.inputRef&&this.inputRef.current&&this.inputRef.current.value}},{key:"seekNext",value:function(t){for(;++t<this.len&&!this.tests[t];);return t}},{key:"seekPrev",value:function(t){for(;--t>=0&&!this.tests[t];);return t}},{key:"shiftL",value:function(t,e){var i,n;if(!(t<0)){for(i=t,n=this.seekNext(e);i<this.len;i++)if(this.tests[i]){if(!(n<this.len&&this.tests[i].test(this.buffer[n])))break;this.buffer[i]=this.buffer[n],this.buffer[n]=this.getPlaceholder(n),n=this.seekNext(n)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}}},{key:"shiftR",value:function(t){var e,i,n,s;for(e=t,i=this.getPlaceholder(t);e<this.len;e++)if(this.tests[e]){if(n=this.seekNext(e),s=this.buffer[e],this.buffer[e]=i,!(n<this.len&&this.tests[n].test(s)))break;i=s}}},{key:"handleAndroidInput",value:function(t){var e=this.inputRef.current.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>e.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}},{key:"onBlur",value:function(t){if(this.focus=!1,this.checkVal(),this.updateModel(t),this.updateFilledState(),this.props.onBlur&&this.props.onBlur(t),this.inputRef.current.value!==this.focusText){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.inputRef.current.dispatchEvent(e)}}},{key:"onKeyDown",value:function(t){if(!this.props.readOnly){var i,n,s,r=t.which||t.keyCode,o=/iphone/i.test(e.DomHandler.getUserAgent());this.oldVal=this.inputRef.current.value,8===r||46===r||o&&127===r?((s=(i=this.caret()).end)-(n=i.begin)==0&&(n=46!==r?this.seekPrev(n):s=this.seekNext(n-1),s=46===r?this.seekNext(s):s),this.clearBuffer(n,s),this.shiftL(n,s-1),this.updateModel(t),t.preventDefault()):13===r?(this.onBlur(t),this.updateModel(t)):27===r&&(this.inputRef.current.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault())}}},{key:"onKeyPress",value:function(t){var i=this;if(!this.props.readOnly){var n,s,r,o,u=t.which||t.keyCode,a=this.caret();t.ctrlKey||t.altKey||t.metaKey||u<32||(u&&13!==u&&(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(n=this.seekNext(a.begin-1))<this.len&&(s=String.fromCharCode(u),this.tests[n].test(s))&&(this.shiftR(n),this.buffer[n]=s,this.writeBuffer(),r=this.seekNext(n),/android/i.test(e.DomHandler.getUserAgent())?setTimeout((function(){i.caret(r)}),0):this.caret(r),a.begin<=this.lastRequiredNonMaskPos&&(o=this.isCompleted())),t.preventDefault()),this.updateModel(t),this.props.onComplete&&o&&this.props.onComplete({originalEvent:t,value:this.getValue()}))}}},{key:"clearBuffer",value:function(t,e){var i;for(i=t;i<e&&i<this.len;i++)this.tests[i]&&(this.buffer[i]=this.getPlaceholder(i))}},{key:"writeBuffer",value:function(){this.inputRef.current.value=this.buffer.join("")}},{key:"checkVal",value:function(t){this.isValueChecked=!0;var e,i,n,s=this.inputRef.current.value,r=-1;for(e=0,n=0;e<this.len;e++)if(this.tests[e]){for(this.buffer[e]=this.getPlaceholder(e);n++<s.length;)if(i=s.charAt(n-1),this.tests[e].test(i)){this.buffer[e]=i,r=e;break}if(n>s.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===s.charAt(n)&&n++,e<this.partialPosition&&(r=e);return t?this.writeBuffer():r+1<this.partialPosition?this.props.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputRef.current.value&&(this.inputRef.current.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputRef.current.value=this.inputRef.current.value.substring(0,r+1)),this.partialPosition?e:this.firstNonMaskPos}},{key:"onFocus",value:function(t){var e,i=this;this.props.readOnly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputRef.current.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){i.inputRef.current===document.activeElement&&(i.writeBuffer(),e===i.props.mask.replace("?","").length?i.caret(0,e):i.caret(e),i.updateFilledState())}),10),this.props.onFocus&&this.props.onFocus(t))}},{key:"onInput",value:function(t){this.androidChrome?this.handleAndroidInput(t):this.handleInputChange(t)}},{key:"handleInputChange",value:function(t){if(!this.props.readOnly){var e=this.checkVal(!0);this.caret(e),this.updateModel(t),this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}}},{key:"getUnmaskedValue",value:function(){for(var t=[],e=0;e<this.buffer.length;e++){var i=this.buffer[e];this.tests[e]&&i!==this.getPlaceholder(e)&&t.push(i)}return t.join("")}},{key:"updateModel",value:function(t){if(this.props.onChange){var e=this.props.unmask?this.getUnmaskedValue():t&&t.target.value;this.props.onChange({originalEvent:t,value:this.defaultBuffer!==e?e:"",stopPropagation:function(){},preventDefault:function(){},target:{name:this.props.name,id:this.props.id,value:this.defaultBuffer!==e?e:""}})}}},{key:"updateFilledState",value:function(){this.inputRef&&this.inputRef.current&&this.inputRef.current.value&&this.inputRef.current.value.length>0?e.DomHandler.addClass(this.inputRef.current,"p-filled"):e.DomHandler.removeClass(this.inputRef.current,"p-filled")}},{key:"updateValue",value:function(t){var e,i=this;return this.inputRef&&this.inputRef.current&&(null==this.props.value?this.inputRef.current.value="":(this.inputRef.current.value=this.props.value,e=this.checkVal(t),setTimeout((function(){if(i.inputRef&&i.inputRef.current)return i.writeBuffer(),i.checkVal(t)}),10)),this.focusText=this.inputRef.current.value),this.updateFilledState(),e}},{key:"isValueUpdated",value:function(){return this.props.unmask?this.props.value!==this.getUnmaskedValue():this.defaultBuffer!==this.inputRef.current.value&&this.inputRef.current.value!==this.props.value}},{key:"init",value:function(){if(this.props.mask){this.tests=[],this.partialPosition=this.props.mask.length,this.len=this.props.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 i=this.props.mask.split(""),n=0;n<i.length;n++){var s=i[n];"?"===s?(this.len--,this.partialPosition=n):this.defs[s]?(this.tests.push(new RegExp(this.defs[s])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),n<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var r=0;r<i.length;r++){var o=i[r];"?"!==o&&this.buffer.push(this.defs[o]?this.getPlaceholder(r):o)}this.defaultBuffer=this.buffer.join("")}}},{key:"updateInputRef",value:function(){var t=this.props.inputRef;t&&("function"==typeof t?t(this.inputRef.current):t.current=this.inputRef.current)}},{key:"componentDidMount",value:function(){this.updateInputRef(),this.init(),this.updateValue(),this.props.tooltip&&this.renderTooltip()}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(y({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.isValueUpdated()&&this.updateValue(),t.mask!==this.props.mask&&(this.init(),this.caret(this.updateValue(!0)),this.updateModel())}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=n.tip({target:this.inputRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=e.classNames("p-inputmask",this.props.className);return r.default.createElement(i.InputText,{id:this.props.id,ref:this.inputRef,type:this.props.type,name:this.props.name,style:this.props.style,className:t,placeholder:this.props.placeholder,size:this.props.size,maxLength:this.props.maxLength,tabIndex:this.props.tabIndex,disabled:this.props.disabled,readOnly:this.props.readOnly,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onInput:this.onInput,onPaste:this.handleInputChange,required:this.props.required,"aria-labelledby":this.props.ariaLabelledBy})}}])&&u(d.prototype,v),g&&u(d,g),Object.defineProperty(d,"prototype",{writable:!1}),k}();d(g,"defaultProps",{id:null,inputRef:null,value:null,type:"text",mask:null,slotChar:"_",autoClear:!0,unmask:!1,style:null,className:null,placeholder:null,size:null,maxLength:null,tabIndex:null,disabled:!1,readOnly:!1,name:null,required:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onComplete:null,onChange:null,onFocus:null,onBlur:null}),exports.InputMask=g;
@@ -33,7 +33,7 @@ export interface InputMaskProps {
33
33
  className?: string;
34
34
  placeholder?: string;
35
35
  size?: number;
36
- maxlength?: number;
36
+ maxLength?: number;
37
37
  tabIndex?: number;
38
38
  disabled?: boolean;
39
39
  readOnly?: boolean;
@@ -22,6 +22,9 @@ function _defineProperties(target, props) {
22
22
  function _createClass(Constructor, protoProps, staticProps) {
23
23
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
24
24
  if (staticProps) _defineProperties(Constructor, staticProps);
25
+ Object.defineProperty(Constructor, "prototype", {
26
+ writable: false
27
+ });
25
28
  return Constructor;
26
29
  }
27
30
 
@@ -54,23 +57,20 @@ function _inherits(subClass, superClass) {
54
57
  configurable: true
55
58
  }
56
59
  });
60
+ Object.defineProperty(subClass, "prototype", {
61
+ writable: false
62
+ });
57
63
  if (superClass) _setPrototypeOf(subClass, superClass);
58
64
  }
59
65
 
60
66
  function _typeof(obj) {
61
67
  "@babel/helpers - typeof";
62
68
 
63
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
64
- _typeof = function _typeof(obj) {
65
- return typeof obj;
66
- };
67
- } else {
68
- _typeof = function _typeof(obj) {
69
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
70
- };
71
- }
72
-
73
- return _typeof(obj);
69
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
70
+ return typeof obj;
71
+ } : function (obj) {
72
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
73
+ }, _typeof(obj);
74
74
  }
75
75
 
76
76
  function _possibleConstructorReturn(self, call) {
@@ -105,9 +105,9 @@ function _defineProperty(obj, key, value) {
105
105
  return obj;
106
106
  }
107
107
 
108
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
108
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
109
109
 
110
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
110
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
111
111
 
112
112
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
113
113
 
@@ -746,7 +746,7 @@ var InputMask = /*#__PURE__*/function (_Component) {
746
746
  className: inputMaskClassName,
747
747
  placeholder: this.props.placeholder,
748
748
  size: this.props.size,
749
- maxLength: this.props.maxlength,
749
+ maxLength: this.props.maxLength,
750
750
  tabIndex: this.props.tabIndex,
751
751
  disabled: this.props.disabled,
752
752
  readOnly: this.props.readOnly,
@@ -778,7 +778,7 @@ _defineProperty(InputMask, "defaultProps", {
778
778
  className: null,
779
779
  placeholder: null,
780
780
  size: null,
781
- maxlength: null,
781
+ maxLength: null,
782
782
  tabIndex: null,
783
783
  disabled: false,
784
784
  readOnly: false,
@@ -1 +1 @@
1
- import t,{createRef as e,Component as i}from"react";import{DomHandler as n,classNames as s}from"primereact/utils";import{InputText as r}from"primereact/inputtext";import{tip as o}from"primereact/tooltip";function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function b(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){v(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var m=function(h){p(P,i);var f,v,y,m,k,R=(f=P,v=g(),function(){var t,e=d(f);if(v){var i=d(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return c(this,t)});function P(t){var i;return u(this,P),(i=R.call(this,t)).onFocus=i.onFocus.bind(l(i)),i.onBlur=i.onBlur.bind(l(i)),i.onKeyDown=i.onKeyDown.bind(l(i)),i.onKeyPress=i.onKeyPress.bind(l(i)),i.onInput=i.onInput.bind(l(i)),i.handleInputChange=i.handleInputChange.bind(l(i)),i.inputRef=e(i.props.inputRef),i}return y=P,(m=[{key:"caret",value:function(t,e){var i,n,s,r=this.inputRef&&this.inputRef.current;if(r&&r.offsetParent&&r===document.activeElement)return"number"!=typeof t?(r.setSelectionRange?(n=r.selectionStart,s=r.selectionEnd):document.selection&&document.selection.createRange&&(s=(n=0-(i=document.selection.createRange()).duplicate().moveStart("character",-1e5))+i.text.length),{begin:n,end:s}):(n=t,s="number"==typeof e?e:n,void(r.setSelectionRange?r.setSelectionRange(n,s):r.createTextRange&&((i=r.createTextRange()).collapse(!0),i.moveEnd("character",s),i.moveStart("character",n),i.select())))}},{key:"isCompleted",value:function(){for(var t=this.firstNonMaskPos;t<=this.lastRequiredNonMaskPos;t++)if(this.tests[t]&&this.buffer[t]===this.getPlaceholder(t))return!1;return!0}},{key:"getPlaceholder",value:function(t){return this.props.slotChar.charAt(t<this.props.slotChar.length?t:0)}},{key:"getValue",value:function(){return this.props.unmask?this.getUnmaskedValue():this.inputRef&&this.inputRef.current&&this.inputRef.current.value}},{key:"seekNext",value:function(t){for(;++t<this.len&&!this.tests[t];);return t}},{key:"seekPrev",value:function(t){for(;--t>=0&&!this.tests[t];);return t}},{key:"shiftL",value:function(t,e){var i,n;if(!(t<0)){for(i=t,n=this.seekNext(e);i<this.len;i++)if(this.tests[i]){if(!(n<this.len&&this.tests[i].test(this.buffer[n])))break;this.buffer[i]=this.buffer[n],this.buffer[n]=this.getPlaceholder(n),n=this.seekNext(n)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}}},{key:"shiftR",value:function(t){var e,i,n,s;for(e=t,i=this.getPlaceholder(t);e<this.len;e++)if(this.tests[e]){if(n=this.seekNext(e),s=this.buffer[e],this.buffer[e]=i,!(n<this.len&&this.tests[n].test(s)))break;i=s}}},{key:"handleAndroidInput",value:function(t){var e=this.inputRef.current.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>e.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}},{key:"onBlur",value:function(t){if(this.focus=!1,this.checkVal(),this.updateModel(t),this.updateFilledState(),this.props.onBlur&&this.props.onBlur(t),this.inputRef.current.value!==this.focusText){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.inputRef.current.dispatchEvent(e)}}},{key:"onKeyDown",value:function(t){if(!this.props.readOnly){var e,i,s,r=t.which||t.keyCode,o=/iphone/i.test(n.getUserAgent());this.oldVal=this.inputRef.current.value,8===r||46===r||o&&127===r?((s=(e=this.caret()).end)-(i=e.begin)==0&&(i=46!==r?this.seekPrev(i):s=this.seekNext(i-1),s=46===r?this.seekNext(s):s),this.clearBuffer(i,s),this.shiftL(i,s-1),this.updateModel(t),t.preventDefault()):13===r?(this.onBlur(t),this.updateModel(t)):27===r&&(this.inputRef.current.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault())}}},{key:"onKeyPress",value:function(t){var e=this;if(!this.props.readOnly){var i,s,r,o,u=t.which||t.keyCode,a=this.caret();t.ctrlKey||t.altKey||t.metaKey||u<32||(u&&13!==u&&(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(i=this.seekNext(a.begin-1))<this.len&&(s=String.fromCharCode(u),this.tests[i].test(s))&&(this.shiftR(i),this.buffer[i]=s,this.writeBuffer(),r=this.seekNext(i),/android/i.test(n.getUserAgent())?setTimeout((function(){e.caret(r)}),0):this.caret(r),a.begin<=this.lastRequiredNonMaskPos&&(o=this.isCompleted())),t.preventDefault()),this.updateModel(t),this.props.onComplete&&o&&this.props.onComplete({originalEvent:t,value:this.getValue()}))}}},{key:"clearBuffer",value:function(t,e){var i;for(i=t;i<e&&i<this.len;i++)this.tests[i]&&(this.buffer[i]=this.getPlaceholder(i))}},{key:"writeBuffer",value:function(){this.inputRef.current.value=this.buffer.join("")}},{key:"checkVal",value:function(t){this.isValueChecked=!0;var e,i,n,s=this.inputRef.current.value,r=-1;for(e=0,n=0;e<this.len;e++)if(this.tests[e]){for(this.buffer[e]=this.getPlaceholder(e);n++<s.length;)if(i=s.charAt(n-1),this.tests[e].test(i)){this.buffer[e]=i,r=e;break}if(n>s.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===s.charAt(n)&&n++,e<this.partialPosition&&(r=e);return t?this.writeBuffer():r+1<this.partialPosition?this.props.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputRef.current.value&&(this.inputRef.current.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputRef.current.value=this.inputRef.current.value.substring(0,r+1)),this.partialPosition?e:this.firstNonMaskPos}},{key:"onFocus",value:function(t){var e,i=this;this.props.readOnly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputRef.current.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){i.inputRef.current===document.activeElement&&(i.writeBuffer(),e===i.props.mask.replace("?","").length?i.caret(0,e):i.caret(e),i.updateFilledState())}),10),this.props.onFocus&&this.props.onFocus(t))}},{key:"onInput",value:function(t){this.androidChrome?this.handleAndroidInput(t):this.handleInputChange(t)}},{key:"handleInputChange",value:function(t){if(!this.props.readOnly){var e=this.checkVal(!0);this.caret(e),this.updateModel(t),this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}}},{key:"getUnmaskedValue",value:function(){for(var t=[],e=0;e<this.buffer.length;e++){var i=this.buffer[e];this.tests[e]&&i!==this.getPlaceholder(e)&&t.push(i)}return t.join("")}},{key:"updateModel",value:function(t){if(this.props.onChange){var e=this.props.unmask?this.getUnmaskedValue():t&&t.target.value;this.props.onChange({originalEvent:t,value:this.defaultBuffer!==e?e:"",stopPropagation:function(){},preventDefault:function(){},target:{name:this.props.name,id:this.props.id,value:this.defaultBuffer!==e?e:""}})}}},{key:"updateFilledState",value:function(){this.inputRef&&this.inputRef.current&&this.inputRef.current.value&&this.inputRef.current.value.length>0?n.addClass(this.inputRef.current,"p-filled"):n.removeClass(this.inputRef.current,"p-filled")}},{key:"updateValue",value:function(t){var e,i=this;return this.inputRef&&this.inputRef.current&&(null==this.props.value?this.inputRef.current.value="":(this.inputRef.current.value=this.props.value,e=this.checkVal(t),setTimeout((function(){if(i.inputRef&&i.inputRef.current)return i.writeBuffer(),i.checkVal(t)}),10)),this.focusText=this.inputRef.current.value),this.updateFilledState(),e}},{key:"isValueUpdated",value:function(){return this.props.unmask?this.props.value!==this.getUnmaskedValue():this.defaultBuffer!==this.inputRef.current.value&&this.inputRef.current.value!==this.props.value}},{key:"init",value:function(){if(this.props.mask){this.tests=[],this.partialPosition=this.props.mask.length,this.len=this.props.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=n.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var e=this.props.mask.split(""),i=0;i<e.length;i++){var s=e[i];"?"===s?(this.len--,this.partialPosition=i):this.defs[s]?(this.tests.push(new RegExp(this.defs[s])),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 r=0;r<e.length;r++){var o=e[r];"?"!==o&&this.buffer.push(this.defs[o]?this.getPlaceholder(r):o)}this.defaultBuffer=this.buffer.join("")}}},{key:"updateInputRef",value:function(){var t=this.props.inputRef;t&&("function"==typeof t?t(this.inputRef.current):t.current=this.inputRef.current)}},{key:"componentDidMount",value:function(){this.updateInputRef(),this.init(),this.updateValue(),this.props.tooltip&&this.renderTooltip()}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(b({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.isValueUpdated()&&this.updateValue(),t.mask!==this.props.mask&&(this.init(),this.caret(this.updateValue(!0)),this.updateModel())}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=o({target:this.inputRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var e=s("p-inputmask",this.props.className);return t.createElement(r,{id:this.props.id,ref:this.inputRef,type:this.props.type,name:this.props.name,style:this.props.style,className:e,placeholder:this.props.placeholder,size:this.props.size,maxLength:this.props.maxlength,tabIndex:this.props.tabIndex,disabled:this.props.disabled,readOnly:this.props.readOnly,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onInput:this.onInput,onPaste:this.handleInputChange,required:this.props.required,"aria-labelledby":this.props.ariaLabelledBy})}}])&&a(y.prototype,m),k&&a(y,k),P}();v(m,"defaultProps",{id:null,inputRef:null,value:null,type:"text",mask:null,slotChar:"_",autoClear:!0,unmask:!1,style:null,className:null,placeholder:null,size:null,maxlength:null,tabIndex:null,disabled:!1,readOnly:!1,name:null,required:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onComplete:null,onChange:null,onFocus:null,onBlur:null});export{m as InputMask};
1
+ import t,{createRef as e,Component as i}from"react";import{DomHandler as n,classNames as s}from"primereact/utils";import{InputText as r}from"primereact/inputtext";import{tip as o}from"primereact/tooltip";function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function b(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){v(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var m=function(h){p(P,i);var f,v,y,m,k,R=(f=P,v=g(),function(){var t,e=d(f);if(v){var i=d(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return c(this,t)});function P(t){var i;return u(this,P),(i=R.call(this,t)).onFocus=i.onFocus.bind(l(i)),i.onBlur=i.onBlur.bind(l(i)),i.onKeyDown=i.onKeyDown.bind(l(i)),i.onKeyPress=i.onKeyPress.bind(l(i)),i.onInput=i.onInput.bind(l(i)),i.handleInputChange=i.handleInputChange.bind(l(i)),i.inputRef=e(i.props.inputRef),i}return y=P,(m=[{key:"caret",value:function(t,e){var i,n,s,r=this.inputRef&&this.inputRef.current;if(r&&r.offsetParent&&r===document.activeElement)return"number"!=typeof t?(r.setSelectionRange?(n=r.selectionStart,s=r.selectionEnd):document.selection&&document.selection.createRange&&(s=(n=0-(i=document.selection.createRange()).duplicate().moveStart("character",-1e5))+i.text.length),{begin:n,end:s}):(n=t,s="number"==typeof e?e:n,void(r.setSelectionRange?r.setSelectionRange(n,s):r.createTextRange&&((i=r.createTextRange()).collapse(!0),i.moveEnd("character",s),i.moveStart("character",n),i.select())))}},{key:"isCompleted",value:function(){for(var t=this.firstNonMaskPos;t<=this.lastRequiredNonMaskPos;t++)if(this.tests[t]&&this.buffer[t]===this.getPlaceholder(t))return!1;return!0}},{key:"getPlaceholder",value:function(t){return this.props.slotChar.charAt(t<this.props.slotChar.length?t:0)}},{key:"getValue",value:function(){return this.props.unmask?this.getUnmaskedValue():this.inputRef&&this.inputRef.current&&this.inputRef.current.value}},{key:"seekNext",value:function(t){for(;++t<this.len&&!this.tests[t];);return t}},{key:"seekPrev",value:function(t){for(;--t>=0&&!this.tests[t];);return t}},{key:"shiftL",value:function(t,e){var i,n;if(!(t<0)){for(i=t,n=this.seekNext(e);i<this.len;i++)if(this.tests[i]){if(!(n<this.len&&this.tests[i].test(this.buffer[n])))break;this.buffer[i]=this.buffer[n],this.buffer[n]=this.getPlaceholder(n),n=this.seekNext(n)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}}},{key:"shiftR",value:function(t){var e,i,n,s;for(e=t,i=this.getPlaceholder(t);e<this.len;e++)if(this.tests[e]){if(n=this.seekNext(e),s=this.buffer[e],this.buffer[e]=i,!(n<this.len&&this.tests[n].test(s)))break;i=s}}},{key:"handleAndroidInput",value:function(t){var e=this.inputRef.current.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>e.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}},{key:"onBlur",value:function(t){if(this.focus=!1,this.checkVal(),this.updateModel(t),this.updateFilledState(),this.props.onBlur&&this.props.onBlur(t),this.inputRef.current.value!==this.focusText){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.inputRef.current.dispatchEvent(e)}}},{key:"onKeyDown",value:function(t){if(!this.props.readOnly){var e,i,s,r=t.which||t.keyCode,o=/iphone/i.test(n.getUserAgent());this.oldVal=this.inputRef.current.value,8===r||46===r||o&&127===r?((s=(e=this.caret()).end)-(i=e.begin)==0&&(i=46!==r?this.seekPrev(i):s=this.seekNext(i-1),s=46===r?this.seekNext(s):s),this.clearBuffer(i,s),this.shiftL(i,s-1),this.updateModel(t),t.preventDefault()):13===r?(this.onBlur(t),this.updateModel(t)):27===r&&(this.inputRef.current.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault())}}},{key:"onKeyPress",value:function(t){var e=this;if(!this.props.readOnly){var i,s,r,o,u=t.which||t.keyCode,a=this.caret();t.ctrlKey||t.altKey||t.metaKey||u<32||(u&&13!==u&&(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(i=this.seekNext(a.begin-1))<this.len&&(s=String.fromCharCode(u),this.tests[i].test(s))&&(this.shiftR(i),this.buffer[i]=s,this.writeBuffer(),r=this.seekNext(i),/android/i.test(n.getUserAgent())?setTimeout((function(){e.caret(r)}),0):this.caret(r),a.begin<=this.lastRequiredNonMaskPos&&(o=this.isCompleted())),t.preventDefault()),this.updateModel(t),this.props.onComplete&&o&&this.props.onComplete({originalEvent:t,value:this.getValue()}))}}},{key:"clearBuffer",value:function(t,e){var i;for(i=t;i<e&&i<this.len;i++)this.tests[i]&&(this.buffer[i]=this.getPlaceholder(i))}},{key:"writeBuffer",value:function(){this.inputRef.current.value=this.buffer.join("")}},{key:"checkVal",value:function(t){this.isValueChecked=!0;var e,i,n,s=this.inputRef.current.value,r=-1;for(e=0,n=0;e<this.len;e++)if(this.tests[e]){for(this.buffer[e]=this.getPlaceholder(e);n++<s.length;)if(i=s.charAt(n-1),this.tests[e].test(i)){this.buffer[e]=i,r=e;break}if(n>s.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===s.charAt(n)&&n++,e<this.partialPosition&&(r=e);return t?this.writeBuffer():r+1<this.partialPosition?this.props.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputRef.current.value&&(this.inputRef.current.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputRef.current.value=this.inputRef.current.value.substring(0,r+1)),this.partialPosition?e:this.firstNonMaskPos}},{key:"onFocus",value:function(t){var e,i=this;this.props.readOnly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputRef.current.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){i.inputRef.current===document.activeElement&&(i.writeBuffer(),e===i.props.mask.replace("?","").length?i.caret(0,e):i.caret(e),i.updateFilledState())}),10),this.props.onFocus&&this.props.onFocus(t))}},{key:"onInput",value:function(t){this.androidChrome?this.handleAndroidInput(t):this.handleInputChange(t)}},{key:"handleInputChange",value:function(t){if(!this.props.readOnly){var e=this.checkVal(!0);this.caret(e),this.updateModel(t),this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}}},{key:"getUnmaskedValue",value:function(){for(var t=[],e=0;e<this.buffer.length;e++){var i=this.buffer[e];this.tests[e]&&i!==this.getPlaceholder(e)&&t.push(i)}return t.join("")}},{key:"updateModel",value:function(t){if(this.props.onChange){var e=this.props.unmask?this.getUnmaskedValue():t&&t.target.value;this.props.onChange({originalEvent:t,value:this.defaultBuffer!==e?e:"",stopPropagation:function(){},preventDefault:function(){},target:{name:this.props.name,id:this.props.id,value:this.defaultBuffer!==e?e:""}})}}},{key:"updateFilledState",value:function(){this.inputRef&&this.inputRef.current&&this.inputRef.current.value&&this.inputRef.current.value.length>0?n.addClass(this.inputRef.current,"p-filled"):n.removeClass(this.inputRef.current,"p-filled")}},{key:"updateValue",value:function(t){var e,i=this;return this.inputRef&&this.inputRef.current&&(null==this.props.value?this.inputRef.current.value="":(this.inputRef.current.value=this.props.value,e=this.checkVal(t),setTimeout((function(){if(i.inputRef&&i.inputRef.current)return i.writeBuffer(),i.checkVal(t)}),10)),this.focusText=this.inputRef.current.value),this.updateFilledState(),e}},{key:"isValueUpdated",value:function(){return this.props.unmask?this.props.value!==this.getUnmaskedValue():this.defaultBuffer!==this.inputRef.current.value&&this.inputRef.current.value!==this.props.value}},{key:"init",value:function(){if(this.props.mask){this.tests=[],this.partialPosition=this.props.mask.length,this.len=this.props.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=n.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var e=this.props.mask.split(""),i=0;i<e.length;i++){var s=e[i];"?"===s?(this.len--,this.partialPosition=i):this.defs[s]?(this.tests.push(new RegExp(this.defs[s])),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 r=0;r<e.length;r++){var o=e[r];"?"!==o&&this.buffer.push(this.defs[o]?this.getPlaceholder(r):o)}this.defaultBuffer=this.buffer.join("")}}},{key:"updateInputRef",value:function(){var t=this.props.inputRef;t&&("function"==typeof t?t(this.inputRef.current):t.current=this.inputRef.current)}},{key:"componentDidMount",value:function(){this.updateInputRef(),this.init(),this.updateValue(),this.props.tooltip&&this.renderTooltip()}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(b({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.isValueUpdated()&&this.updateValue(),t.mask!==this.props.mask&&(this.init(),this.caret(this.updateValue(!0)),this.updateModel())}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=o({target:this.inputRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var e=s("p-inputmask",this.props.className);return t.createElement(r,{id:this.props.id,ref:this.inputRef,type:this.props.type,name:this.props.name,style:this.props.style,className:e,placeholder:this.props.placeholder,size:this.props.size,maxLength:this.props.maxLength,tabIndex:this.props.tabIndex,disabled:this.props.disabled,readOnly:this.props.readOnly,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onInput:this.onInput,onPaste:this.handleInputChange,required:this.props.required,"aria-labelledby":this.props.ariaLabelledBy})}}])&&a(y.prototype,m),k&&a(y,k),Object.defineProperty(y,"prototype",{writable:!1}),P}();v(m,"defaultProps",{id:null,inputRef:null,value:null,type:"text",mask:null,slotChar:"_",autoClear:!0,unmask:!1,style:null,className:null,placeholder:null,size:null,maxLength:null,tabIndex:null,disabled:!1,readOnly:!1,name:null,required:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onComplete:null,onChange:null,onFocus:null,onBlur:null});export{m as InputMask};
@@ -25,6 +25,9 @@ this.primereact.inputmask = (function (exports, React, utils, inputtext, tooltip
25
25
  function _createClass(Constructor, protoProps, staticProps) {
26
26
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
27
  if (staticProps) _defineProperties(Constructor, staticProps);
28
+ Object.defineProperty(Constructor, "prototype", {
29
+ writable: false
30
+ });
28
31
  return Constructor;
29
32
  }
30
33
 
@@ -57,23 +60,20 @@ this.primereact.inputmask = (function (exports, React, utils, inputtext, tooltip
57
60
  configurable: true
58
61
  }
59
62
  });
63
+ Object.defineProperty(subClass, "prototype", {
64
+ writable: false
65
+ });
60
66
  if (superClass) _setPrototypeOf(subClass, superClass);
61
67
  }
62
68
 
63
69
  function _typeof(obj) {
64
70
  "@babel/helpers - typeof";
65
71
 
66
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
67
- _typeof = function _typeof(obj) {
68
- return typeof obj;
69
- };
70
- } else {
71
- _typeof = function _typeof(obj) {
72
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
73
- };
74
- }
75
-
76
- return _typeof(obj);
72
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
73
+ return typeof obj;
74
+ } : function (obj) {
75
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
76
+ }, _typeof(obj);
77
77
  }
78
78
 
79
79
  function _possibleConstructorReturn(self, call) {
@@ -108,9 +108,9 @@ this.primereact.inputmask = (function (exports, React, utils, inputtext, tooltip
108
108
  return obj;
109
109
  }
110
110
 
111
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
111
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
112
112
 
113
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
113
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
114
114
 
115
115
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
116
116
 
@@ -749,7 +749,7 @@ this.primereact.inputmask = (function (exports, React, utils, inputtext, tooltip
749
749
  className: inputMaskClassName,
750
750
  placeholder: this.props.placeholder,
751
751
  size: this.props.size,
752
- maxLength: this.props.maxlength,
752
+ maxLength: this.props.maxLength,
753
753
  tabIndex: this.props.tabIndex,
754
754
  disabled: this.props.disabled,
755
755
  readOnly: this.props.readOnly,
@@ -781,7 +781,7 @@ this.primereact.inputmask = (function (exports, React, utils, inputtext, tooltip
781
781
  className: null,
782
782
  placeholder: null,
783
783
  size: null,
784
- maxlength: null,
784
+ maxLength: null,
785
785
  tabIndex: null,
786
786
  disabled: false,
787
787
  readOnly: false,
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.inputmask=function(t,e,i,n,s){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function b(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){v(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var m=function(t){p(k,t);var r,h,f,v,y,m=(r=k,h=g(),function(){var t,e=d(r);if(h){var i=d(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return c(this,t)});function k(t){var i;return u(this,k),(i=m.call(this,t)).onFocus=i.onFocus.bind(l(i)),i.onBlur=i.onBlur.bind(l(i)),i.onKeyDown=i.onKeyDown.bind(l(i)),i.onKeyPress=i.onKeyPress.bind(l(i)),i.onInput=i.onInput.bind(l(i)),i.handleInputChange=i.handleInputChange.bind(l(i)),i.inputRef=e.createRef(i.props.inputRef),i}return f=k,(v=[{key:"caret",value:function(t,e){var i,n,s,r=this.inputRef&&this.inputRef.current;if(r&&r.offsetParent&&r===document.activeElement)return"number"!=typeof t?(r.setSelectionRange?(n=r.selectionStart,s=r.selectionEnd):document.selection&&document.selection.createRange&&(s=(n=0-(i=document.selection.createRange()).duplicate().moveStart("character",-1e5))+i.text.length),{begin:n,end:s}):(n=t,s="number"==typeof e?e:n,void(r.setSelectionRange?r.setSelectionRange(n,s):r.createTextRange&&((i=r.createTextRange()).collapse(!0),i.moveEnd("character",s),i.moveStart("character",n),i.select())))}},{key:"isCompleted",value:function(){for(var t=this.firstNonMaskPos;t<=this.lastRequiredNonMaskPos;t++)if(this.tests[t]&&this.buffer[t]===this.getPlaceholder(t))return!1;return!0}},{key:"getPlaceholder",value:function(t){return this.props.slotChar.charAt(t<this.props.slotChar.length?t:0)}},{key:"getValue",value:function(){return this.props.unmask?this.getUnmaskedValue():this.inputRef&&this.inputRef.current&&this.inputRef.current.value}},{key:"seekNext",value:function(t){for(;++t<this.len&&!this.tests[t];);return t}},{key:"seekPrev",value:function(t){for(;--t>=0&&!this.tests[t];);return t}},{key:"shiftL",value:function(t,e){var i,n;if(!(t<0)){for(i=t,n=this.seekNext(e);i<this.len;i++)if(this.tests[i]){if(!(n<this.len&&this.tests[i].test(this.buffer[n])))break;this.buffer[i]=this.buffer[n],this.buffer[n]=this.getPlaceholder(n),n=this.seekNext(n)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}}},{key:"shiftR",value:function(t){var e,i,n,s;for(e=t,i=this.getPlaceholder(t);e<this.len;e++)if(this.tests[e]){if(n=this.seekNext(e),s=this.buffer[e],this.buffer[e]=i,!(n<this.len&&this.tests[n].test(s)))break;i=s}}},{key:"handleAndroidInput",value:function(t){var e=this.inputRef.current.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>e.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}},{key:"onBlur",value:function(t){if(this.focus=!1,this.checkVal(),this.updateModel(t),this.updateFilledState(),this.props.onBlur&&this.props.onBlur(t),this.inputRef.current.value!==this.focusText){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.inputRef.current.dispatchEvent(e)}}},{key:"onKeyDown",value:function(t){if(!this.props.readOnly){var e,n,s,r=t.which||t.keyCode,o=/iphone/i.test(i.DomHandler.getUserAgent());this.oldVal=this.inputRef.current.value,8===r||46===r||o&&127===r?((s=(e=this.caret()).end)-(n=e.begin)==0&&(n=46!==r?this.seekPrev(n):s=this.seekNext(n-1),s=46===r?this.seekNext(s):s),this.clearBuffer(n,s),this.shiftL(n,s-1),this.updateModel(t),t.preventDefault()):13===r?(this.onBlur(t),this.updateModel(t)):27===r&&(this.inputRef.current.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault())}}},{key:"onKeyPress",value:function(t){var e=this;if(!this.props.readOnly){var n,s,r,o,u=t.which||t.keyCode,a=this.caret();t.ctrlKey||t.altKey||t.metaKey||u<32||(u&&13!==u&&(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(n=this.seekNext(a.begin-1))<this.len&&(s=String.fromCharCode(u),this.tests[n].test(s))&&(this.shiftR(n),this.buffer[n]=s,this.writeBuffer(),r=this.seekNext(n),/android/i.test(i.DomHandler.getUserAgent())?setTimeout((function(){e.caret(r)}),0):this.caret(r),a.begin<=this.lastRequiredNonMaskPos&&(o=this.isCompleted())),t.preventDefault()),this.updateModel(t),this.props.onComplete&&o&&this.props.onComplete({originalEvent:t,value:this.getValue()}))}}},{key:"clearBuffer",value:function(t,e){var i;for(i=t;i<e&&i<this.len;i++)this.tests[i]&&(this.buffer[i]=this.getPlaceholder(i))}},{key:"writeBuffer",value:function(){this.inputRef.current.value=this.buffer.join("")}},{key:"checkVal",value:function(t){this.isValueChecked=!0;var e,i,n,s=this.inputRef.current.value,r=-1;for(e=0,n=0;e<this.len;e++)if(this.tests[e]){for(this.buffer[e]=this.getPlaceholder(e);n++<s.length;)if(i=s.charAt(n-1),this.tests[e].test(i)){this.buffer[e]=i,r=e;break}if(n>s.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===s.charAt(n)&&n++,e<this.partialPosition&&(r=e);return t?this.writeBuffer():r+1<this.partialPosition?this.props.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputRef.current.value&&(this.inputRef.current.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputRef.current.value=this.inputRef.current.value.substring(0,r+1)),this.partialPosition?e:this.firstNonMaskPos}},{key:"onFocus",value:function(t){var e,i=this;this.props.readOnly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputRef.current.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){i.inputRef.current===document.activeElement&&(i.writeBuffer(),e===i.props.mask.replace("?","").length?i.caret(0,e):i.caret(e),i.updateFilledState())}),10),this.props.onFocus&&this.props.onFocus(t))}},{key:"onInput",value:function(t){this.androidChrome?this.handleAndroidInput(t):this.handleInputChange(t)}},{key:"handleInputChange",value:function(t){if(!this.props.readOnly){var e=this.checkVal(!0);this.caret(e),this.updateModel(t),this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}}},{key:"getUnmaskedValue",value:function(){for(var t=[],e=0;e<this.buffer.length;e++){var i=this.buffer[e];this.tests[e]&&i!==this.getPlaceholder(e)&&t.push(i)}return t.join("")}},{key:"updateModel",value:function(t){if(this.props.onChange){var e=this.props.unmask?this.getUnmaskedValue():t&&t.target.value;this.props.onChange({originalEvent:t,value:this.defaultBuffer!==e?e:"",stopPropagation:function(){},preventDefault:function(){},target:{name:this.props.name,id:this.props.id,value:this.defaultBuffer!==e?e:""}})}}},{key:"updateFilledState",value:function(){this.inputRef&&this.inputRef.current&&this.inputRef.current.value&&this.inputRef.current.value.length>0?i.DomHandler.addClass(this.inputRef.current,"p-filled"):i.DomHandler.removeClass(this.inputRef.current,"p-filled")}},{key:"updateValue",value:function(t){var e,i=this;return this.inputRef&&this.inputRef.current&&(null==this.props.value?this.inputRef.current.value="":(this.inputRef.current.value=this.props.value,e=this.checkVal(t),setTimeout((function(){if(i.inputRef&&i.inputRef.current)return i.writeBuffer(),i.checkVal(t)}),10)),this.focusText=this.inputRef.current.value),this.updateFilledState(),e}},{key:"isValueUpdated",value:function(){return this.props.unmask?this.props.value!==this.getUnmaskedValue():this.defaultBuffer!==this.inputRef.current.value&&this.inputRef.current.value!==this.props.value}},{key:"init",value:function(){if(this.props.mask){this.tests=[],this.partialPosition=this.props.mask.length,this.len=this.props.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=i.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var e=this.props.mask.split(""),n=0;n<e.length;n++){var s=e[n];"?"===s?(this.len--,this.partialPosition=n):this.defs[s]?(this.tests.push(new RegExp(this.defs[s])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),n<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var r=0;r<e.length;r++){var o=e[r];"?"!==o&&this.buffer.push(this.defs[o]?this.getPlaceholder(r):o)}this.defaultBuffer=this.buffer.join("")}}},{key:"updateInputRef",value:function(){var t=this.props.inputRef;t&&("function"==typeof t?t(this.inputRef.current):t.current=this.inputRef.current)}},{key:"componentDidMount",value:function(){this.updateInputRef(),this.init(),this.updateValue(),this.props.tooltip&&this.renderTooltip()}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(b({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.isValueUpdated()&&this.updateValue(),t.mask!==this.props.mask&&(this.init(),this.caret(this.updateValue(!0)),this.updateModel())}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=s.tip({target:this.inputRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=i.classNames("p-inputmask",this.props.className);return o.default.createElement(n.InputText,{id:this.props.id,ref:this.inputRef,type:this.props.type,name:this.props.name,style:this.props.style,className:t,placeholder:this.props.placeholder,size:this.props.size,maxLength:this.props.maxlength,tabIndex:this.props.tabIndex,disabled:this.props.disabled,readOnly:this.props.readOnly,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onInput:this.onInput,onPaste:this.handleInputChange,required:this.props.required,"aria-labelledby":this.props.ariaLabelledBy})}}])&&a(f.prototype,v),y&&a(f,y),k}(e.Component);return v(m,"defaultProps",{id:null,inputRef:null,value:null,type:"text",mask:null,slotChar:"_",autoClear:!0,unmask:!1,style:null,className:null,placeholder:null,size:null,maxlength:null,tabIndex:null,disabled:!1,readOnly:!1,name:null,required:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onComplete:null,onChange:null,onFocus:null,onBlur:null}),t.InputMask=m,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.utils,primereact.inputtext,primereact.tooltip);
1
+ this.primereact=this.primereact||{},this.primereact.inputmask=function(t,e,i,n,s){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function b(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){v(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var m=function(t){p(k,t);var r,h,f,v,y,m=(r=k,h=g(),function(){var t,e=d(r);if(h){var i=d(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return c(this,t)});function k(t){var i;return u(this,k),(i=m.call(this,t)).onFocus=i.onFocus.bind(l(i)),i.onBlur=i.onBlur.bind(l(i)),i.onKeyDown=i.onKeyDown.bind(l(i)),i.onKeyPress=i.onKeyPress.bind(l(i)),i.onInput=i.onInput.bind(l(i)),i.handleInputChange=i.handleInputChange.bind(l(i)),i.inputRef=e.createRef(i.props.inputRef),i}return f=k,(v=[{key:"caret",value:function(t,e){var i,n,s,r=this.inputRef&&this.inputRef.current;if(r&&r.offsetParent&&r===document.activeElement)return"number"!=typeof t?(r.setSelectionRange?(n=r.selectionStart,s=r.selectionEnd):document.selection&&document.selection.createRange&&(s=(n=0-(i=document.selection.createRange()).duplicate().moveStart("character",-1e5))+i.text.length),{begin:n,end:s}):(n=t,s="number"==typeof e?e:n,void(r.setSelectionRange?r.setSelectionRange(n,s):r.createTextRange&&((i=r.createTextRange()).collapse(!0),i.moveEnd("character",s),i.moveStart("character",n),i.select())))}},{key:"isCompleted",value:function(){for(var t=this.firstNonMaskPos;t<=this.lastRequiredNonMaskPos;t++)if(this.tests[t]&&this.buffer[t]===this.getPlaceholder(t))return!1;return!0}},{key:"getPlaceholder",value:function(t){return this.props.slotChar.charAt(t<this.props.slotChar.length?t:0)}},{key:"getValue",value:function(){return this.props.unmask?this.getUnmaskedValue():this.inputRef&&this.inputRef.current&&this.inputRef.current.value}},{key:"seekNext",value:function(t){for(;++t<this.len&&!this.tests[t];);return t}},{key:"seekPrev",value:function(t){for(;--t>=0&&!this.tests[t];);return t}},{key:"shiftL",value:function(t,e){var i,n;if(!(t<0)){for(i=t,n=this.seekNext(e);i<this.len;i++)if(this.tests[i]){if(!(n<this.len&&this.tests[i].test(this.buffer[n])))break;this.buffer[i]=this.buffer[n],this.buffer[n]=this.getPlaceholder(n),n=this.seekNext(n)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}}},{key:"shiftR",value:function(t){var e,i,n,s;for(e=t,i=this.getPlaceholder(t);e<this.len;e++)if(this.tests[e]){if(n=this.seekNext(e),s=this.buffer[e],this.buffer[e]=i,!(n<this.len&&this.tests[n].test(s)))break;i=s}}},{key:"handleAndroidInput",value:function(t){var e=this.inputRef.current.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>e.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;this.caret(i.begin,i.begin)}this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}},{key:"onBlur",value:function(t){if(this.focus=!1,this.checkVal(),this.updateModel(t),this.updateFilledState(),this.props.onBlur&&this.props.onBlur(t),this.inputRef.current.value!==this.focusText){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.inputRef.current.dispatchEvent(e)}}},{key:"onKeyDown",value:function(t){if(!this.props.readOnly){var e,n,s,r=t.which||t.keyCode,o=/iphone/i.test(i.DomHandler.getUserAgent());this.oldVal=this.inputRef.current.value,8===r||46===r||o&&127===r?((s=(e=this.caret()).end)-(n=e.begin)==0&&(n=46!==r?this.seekPrev(n):s=this.seekNext(n-1),s=46===r?this.seekNext(s):s),this.clearBuffer(n,s),this.shiftL(n,s-1),this.updateModel(t),t.preventDefault()):13===r?(this.onBlur(t),this.updateModel(t)):27===r&&(this.inputRef.current.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault())}}},{key:"onKeyPress",value:function(t){var e=this;if(!this.props.readOnly){var n,s,r,o,u=t.which||t.keyCode,a=this.caret();t.ctrlKey||t.altKey||t.metaKey||u<32||(u&&13!==u&&(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(n=this.seekNext(a.begin-1))<this.len&&(s=String.fromCharCode(u),this.tests[n].test(s))&&(this.shiftR(n),this.buffer[n]=s,this.writeBuffer(),r=this.seekNext(n),/android/i.test(i.DomHandler.getUserAgent())?setTimeout((function(){e.caret(r)}),0):this.caret(r),a.begin<=this.lastRequiredNonMaskPos&&(o=this.isCompleted())),t.preventDefault()),this.updateModel(t),this.props.onComplete&&o&&this.props.onComplete({originalEvent:t,value:this.getValue()}))}}},{key:"clearBuffer",value:function(t,e){var i;for(i=t;i<e&&i<this.len;i++)this.tests[i]&&(this.buffer[i]=this.getPlaceholder(i))}},{key:"writeBuffer",value:function(){this.inputRef.current.value=this.buffer.join("")}},{key:"checkVal",value:function(t){this.isValueChecked=!0;var e,i,n,s=this.inputRef.current.value,r=-1;for(e=0,n=0;e<this.len;e++)if(this.tests[e]){for(this.buffer[e]=this.getPlaceholder(e);n++<s.length;)if(i=s.charAt(n-1),this.tests[e].test(i)){this.buffer[e]=i,r=e;break}if(n>s.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===s.charAt(n)&&n++,e<this.partialPosition&&(r=e);return t?this.writeBuffer():r+1<this.partialPosition?this.props.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputRef.current.value&&(this.inputRef.current.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputRef.current.value=this.inputRef.current.value.substring(0,r+1)),this.partialPosition?e:this.firstNonMaskPos}},{key:"onFocus",value:function(t){var e,i=this;this.props.readOnly||(this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputRef.current.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){i.inputRef.current===document.activeElement&&(i.writeBuffer(),e===i.props.mask.replace("?","").length?i.caret(0,e):i.caret(e),i.updateFilledState())}),10),this.props.onFocus&&this.props.onFocus(t))}},{key:"onInput",value:function(t){this.androidChrome?this.handleAndroidInput(t):this.handleInputChange(t)}},{key:"handleInputChange",value:function(t){if(!this.props.readOnly){var e=this.checkVal(!0);this.caret(e),this.updateModel(t),this.props.onComplete&&this.isCompleted()&&this.props.onComplete({originalEvent:t,value:this.getValue()})}}},{key:"getUnmaskedValue",value:function(){for(var t=[],e=0;e<this.buffer.length;e++){var i=this.buffer[e];this.tests[e]&&i!==this.getPlaceholder(e)&&t.push(i)}return t.join("")}},{key:"updateModel",value:function(t){if(this.props.onChange){var e=this.props.unmask?this.getUnmaskedValue():t&&t.target.value;this.props.onChange({originalEvent:t,value:this.defaultBuffer!==e?e:"",stopPropagation:function(){},preventDefault:function(){},target:{name:this.props.name,id:this.props.id,value:this.defaultBuffer!==e?e:""}})}}},{key:"updateFilledState",value:function(){this.inputRef&&this.inputRef.current&&this.inputRef.current.value&&this.inputRef.current.value.length>0?i.DomHandler.addClass(this.inputRef.current,"p-filled"):i.DomHandler.removeClass(this.inputRef.current,"p-filled")}},{key:"updateValue",value:function(t){var e,i=this;return this.inputRef&&this.inputRef.current&&(null==this.props.value?this.inputRef.current.value="":(this.inputRef.current.value=this.props.value,e=this.checkVal(t),setTimeout((function(){if(i.inputRef&&i.inputRef.current)return i.writeBuffer(),i.checkVal(t)}),10)),this.focusText=this.inputRef.current.value),this.updateFilledState(),e}},{key:"isValueUpdated",value:function(){return this.props.unmask?this.props.value!==this.getUnmaskedValue():this.defaultBuffer!==this.inputRef.current.value&&this.inputRef.current.value!==this.props.value}},{key:"init",value:function(){if(this.props.mask){this.tests=[],this.partialPosition=this.props.mask.length,this.len=this.props.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var t=i.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);for(var e=this.props.mask.split(""),n=0;n<e.length;n++){var s=e[n];"?"===s?(this.len--,this.partialPosition=n):this.defs[s]?(this.tests.push(new RegExp(this.defs[s])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),n<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var r=0;r<e.length;r++){var o=e[r];"?"!==o&&this.buffer.push(this.defs[o]?this.getPlaceholder(r):o)}this.defaultBuffer=this.buffer.join("")}}},{key:"updateInputRef",value:function(){var t=this.props.inputRef;t&&("function"==typeof t?t(this.inputRef.current):t.current=this.inputRef.current)}},{key:"componentDidMount",value:function(){this.updateInputRef(),this.init(),this.updateValue(),this.props.tooltip&&this.renderTooltip()}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(b({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.isValueUpdated()&&this.updateValue(),t.mask!==this.props.mask&&(this.init(),this.caret(this.updateValue(!0)),this.updateModel())}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=s.tip({target:this.inputRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=i.classNames("p-inputmask",this.props.className);return o.default.createElement(n.InputText,{id:this.props.id,ref:this.inputRef,type:this.props.type,name:this.props.name,style:this.props.style,className:t,placeholder:this.props.placeholder,size:this.props.size,maxLength:this.props.maxLength,tabIndex:this.props.tabIndex,disabled:this.props.disabled,readOnly:this.props.readOnly,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onInput:this.onInput,onPaste:this.handleInputChange,required:this.props.required,"aria-labelledby":this.props.ariaLabelledBy})}}])&&a(f.prototype,v),y&&a(f,y),Object.defineProperty(f,"prototype",{writable:!1}),k}(e.Component);return v(m,"defaultProps",{id:null,inputRef:null,value:null,type:"text",mask:null,slotChar:"_",autoClear:!0,unmask:!1,style:null,className:null,placeholder:null,size:null,maxLength:null,tabIndex:null,disabled:!1,readOnly:!1,name:null,required:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onComplete:null,onChange:null,onFocus:null,onBlur:null}),t.InputMask=m,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.utils,primereact.inputtext,primereact.tooltip);