primevue 3.29.2 → 3.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1288) hide show
  1. package/README.md +15 -9
  2. package/accordion/Accordion.d.ts +17 -0
  3. package/accordion/Accordion.vue +38 -92
  4. package/accordion/BaseAccordion.vue +93 -0
  5. package/accordion/accordion.cjs.js +340 -330
  6. package/accordion/accordion.cjs.min.js +1 -1
  7. package/accordion/accordion.esm.js +339 -329
  8. package/accordion/accordion.esm.min.js +1 -1
  9. package/accordion/accordion.js +340 -331
  10. package/accordion/accordion.min.js +1 -1
  11. package/accordiontab/AccordionTab.d.ts +28 -0
  12. package/accordiontab/AccordionTab.vue +2 -13
  13. package/accordiontab/BaseAccordionTab.vue +24 -0
  14. package/accordiontab/accordiontab.cjs.js +24 -14
  15. package/accordiontab/accordiontab.cjs.min.js +1 -1
  16. package/accordiontab/accordiontab.esm.js +24 -14
  17. package/accordiontab/accordiontab.esm.min.js +1 -1
  18. package/accordiontab/accordiontab.js +24 -14
  19. package/accordiontab/accordiontab.min.js +1 -1
  20. package/api/api.cjs.js +475 -500
  21. package/api/api.cjs.min.js +1 -1
  22. package/api/api.esm.js +475 -500
  23. package/api/api.esm.min.js +1 -1
  24. package/api/api.js +475 -500
  25. package/api/api.min.js +1 -1
  26. package/autocomplete/AutoComplete.d.ts +23 -2
  27. package/autocomplete/AutoComplete.vue +40 -322
  28. package/autocomplete/BaseAutoComplete.vue +322 -0
  29. package/autocomplete/autocomplete.cjs.js +1290 -1237
  30. package/autocomplete/autocomplete.cjs.min.js +1 -1
  31. package/autocomplete/autocomplete.esm.js +1291 -1238
  32. package/autocomplete/autocomplete.esm.min.js +1 -1
  33. package/autocomplete/autocomplete.js +1290 -1238
  34. package/autocomplete/autocomplete.min.js +1 -1
  35. package/avatar/Avatar.d.ts +14 -0
  36. package/avatar/Avatar.vue +13 -81
  37. package/avatar/BaseAvatar.vue +96 -0
  38. package/avatar/avatar.cjs.js +101 -110
  39. package/avatar/avatar.cjs.min.js +1 -1
  40. package/avatar/avatar.esm.js +102 -111
  41. package/avatar/avatar.esm.min.js +1 -1
  42. package/avatar/avatar.js +102 -112
  43. package/avatar/avatar.min.js +1 -1
  44. package/avatargroup/AvatarGroup.d.ts +11 -0
  45. package/avatargroup/AvatarGroup.vue +3 -14
  46. package/avatargroup/BaseAvatarGroup.vue +35 -0
  47. package/avatargroup/avatargroup.cjs.js +31 -35
  48. package/avatargroup/avatargroup.cjs.min.js +1 -1
  49. package/avatargroup/avatargroup.esm.js +31 -35
  50. package/avatargroup/avatargroup.esm.min.js +1 -1
  51. package/avatargroup/avatargroup.js +32 -37
  52. package/avatargroup/avatargroup.min.js +1 -1
  53. package/badge/Badge.d.ts +12 -0
  54. package/badge/Badge.vue +3 -38
  55. package/badge/BaseBadge.vue +86 -0
  56. package/badge/badge.cjs.js +59 -40
  57. package/badge/badge.cjs.min.js +1 -1
  58. package/badge/badge.esm.js +59 -40
  59. package/badge/badge.esm.min.js +1 -1
  60. package/badge/badge.js +60 -42
  61. package/badge/badge.min.js +1 -1
  62. package/badgedirective/BadgeDirective.d.ts +43 -1
  63. package/badgedirective/badgedirective.cjs.js +66 -45
  64. package/badgedirective/badgedirective.cjs.min.js +1 -1
  65. package/badgedirective/badgedirective.esm.js +64 -47
  66. package/badgedirective/badgedirective.esm.min.js +1 -1
  67. package/badgedirective/badgedirective.js +66 -47
  68. package/badgedirective/badgedirective.min.js +1 -1
  69. package/base/base.cjs.js +18 -0
  70. package/base/base.cjs.min.js +1 -0
  71. package/base/base.esm.js +13 -0
  72. package/base/base.esm.min.js +1 -0
  73. package/base/base.js +22 -0
  74. package/base/base.min.js +1 -0
  75. package/base/package.json +5 -0
  76. package/basecomponent/BaseComponent.d.ts +23 -0
  77. package/basecomponent/BaseComponent.vue +462 -12
  78. package/basecomponent/basecomponent.cjs.js +170 -36
  79. package/basecomponent/basecomponent.cjs.min.js +1 -1
  80. package/basecomponent/basecomponent.esm.js +170 -36
  81. package/basecomponent/basecomponent.esm.min.js +1 -1
  82. package/basecomponent/basecomponent.js +170 -38
  83. package/basecomponent/basecomponent.min.js +1 -1
  84. package/basecomponent/package.json +1 -0
  85. package/basedirective/BaseDirective.d.ts +38 -0
  86. package/basedirective/basedirective.cjs.js +157 -0
  87. package/basedirective/basedirective.cjs.min.js +1 -0
  88. package/basedirective/basedirective.esm.js +155 -0
  89. package/basedirective/basedirective.esm.min.js +1 -0
  90. package/basedirective/basedirective.js +157 -0
  91. package/basedirective/basedirective.min.js +1 -0
  92. package/basedirective/package.json +6 -0
  93. package/baseicon/baseicon.cjs.js +22 -26
  94. package/baseicon/baseicon.cjs.min.js +1 -1
  95. package/baseicon/baseicon.esm.js +22 -26
  96. package/baseicon/baseicon.esm.min.js +1 -1
  97. package/baseicon/baseicon.js +22 -26
  98. package/baseicon/baseicon.min.js +1 -1
  99. package/blockui/BaseBlockUI.vue +64 -0
  100. package/blockui/BlockUI.d.ts +12 -0
  101. package/blockui/BlockUI.vue +10 -48
  102. package/blockui/blockui.cjs.js +103 -115
  103. package/blockui/blockui.cjs.min.js +1 -1
  104. package/blockui/blockui.esm.js +103 -115
  105. package/blockui/blockui.esm.min.js +1 -1
  106. package/blockui/blockui.js +103 -116
  107. package/blockui/blockui.min.js +1 -1
  108. package/breadcrumb/BaseBreadcrumb.vue +85 -0
  109. package/breadcrumb/Breadcrumb.d.ts +12 -0
  110. package/breadcrumb/Breadcrumb.vue +6 -54
  111. package/breadcrumb/BreadcrumbItem.vue +10 -21
  112. package/breadcrumb/breadcrumb.cjs.js +198 -219
  113. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  114. package/breadcrumb/breadcrumb.esm.js +198 -219
  115. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  116. package/breadcrumb/breadcrumb.js +198 -220
  117. package/breadcrumb/breadcrumb.min.js +1 -1
  118. package/button/BaseButton.vue +115 -0
  119. package/button/Button.d.ts +24 -0
  120. package/button/Button.vue +21 -121
  121. package/button/button.cjs.js +176 -174
  122. package/button/button.cjs.min.js +1 -1
  123. package/button/button.esm.js +174 -173
  124. package/button/button.esm.min.js +1 -1
  125. package/button/button.js +176 -175
  126. package/button/button.min.js +1 -1
  127. package/calendar/BaseCalendar.vue +453 -0
  128. package/calendar/Calendar.d.ts +24 -12
  129. package/calendar/Calendar.vue +127 -491
  130. package/calendar/calendar.cjs.js +3115 -3197
  131. package/calendar/calendar.cjs.min.js +1 -1
  132. package/calendar/calendar.esm.js +3115 -3197
  133. package/calendar/calendar.esm.min.js +1 -1
  134. package/calendar/calendar.js +3115 -3198
  135. package/calendar/calendar.min.js +1 -1
  136. package/card/BaseCard.vue +21 -0
  137. package/card/Card.d.ts +11 -0
  138. package/card/Card.vue +9 -9
  139. package/card/card.cjs.js +40 -41
  140. package/card/card.cjs.min.js +1 -1
  141. package/card/card.esm.js +40 -41
  142. package/card/card.esm.min.js +1 -1
  143. package/card/card.js +40 -41
  144. package/card/card.min.js +1 -1
  145. package/carousel/BaseCarousel.vue +197 -0
  146. package/carousel/Carousel.d.ts +12 -0
  147. package/carousel/Carousel.vue +36 -188
  148. package/carousel/carousel.cjs.js +705 -737
  149. package/carousel/carousel.cjs.min.js +1 -1
  150. package/carousel/carousel.esm.js +704 -736
  151. package/carousel/carousel.esm.min.js +1 -1
  152. package/carousel/carousel.js +705 -738
  153. package/carousel/carousel.min.js +1 -1
  154. package/cascadeselect/BaseCascadeSelect.vue +257 -0
  155. package/cascadeselect/CascadeSelect.d.ts +19 -7
  156. package/cascadeselect/CascadeSelect.vue +18 -242
  157. package/cascadeselect/CascadeSelectSub.vue +15 -22
  158. package/cascadeselect/cascadeselect.cjs.js +1143 -1083
  159. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  160. package/cascadeselect/cascadeselect.esm.js +1143 -1083
  161. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  162. package/cascadeselect/cascadeselect.js +1143 -1084
  163. package/cascadeselect/cascadeselect.min.js +1 -1
  164. package/chart/BaseChart.vue +48 -0
  165. package/chart/Chart.d.ts +12 -0
  166. package/chart/Chart.vue +3 -27
  167. package/chart/chart.cjs.js +144 -135
  168. package/chart/chart.cjs.min.js +1 -1
  169. package/chart/chart.esm.js +144 -135
  170. package/chart/chart.esm.min.js +1 -1
  171. package/chart/chart.js +145 -137
  172. package/chart/chart.min.js +1 -1
  173. package/checkbox/BaseCheckbox.vue +93 -0
  174. package/checkbox/Checkbox.d.ts +41 -0
  175. package/checkbox/Checkbox.vue +16 -74
  176. package/checkbox/checkbox.cjs.js +201 -140
  177. package/checkbox/checkbox.cjs.min.js +1 -1
  178. package/checkbox/checkbox.esm.js +201 -140
  179. package/checkbox/checkbox.esm.min.js +1 -1
  180. package/checkbox/checkbox.js +202 -141
  181. package/checkbox/checkbox.min.js +1 -1
  182. package/chip/BaseChip.vue +78 -0
  183. package/chip/Chip.d.ts +12 -0
  184. package/chip/Chip.vue +7 -63
  185. package/chip/chip.cjs.js +106 -129
  186. package/chip/chip.cjs.min.js +1 -1
  187. package/chip/chip.esm.js +105 -128
  188. package/chip/chip.esm.min.js +1 -1
  189. package/chip/chip.js +106 -130
  190. package/chip/chip.min.js +1 -1
  191. package/chips/BaseChips.vue +143 -0
  192. package/chips/Chips.d.ts +12 -0
  193. package/chips/Chips.vue +11 -127
  194. package/chips/chips.cjs.js +368 -344
  195. package/chips/chips.cjs.min.js +1 -1
  196. package/chips/chips.esm.js +368 -344
  197. package/chips/chips.esm.min.js +1 -1
  198. package/chips/chips.js +368 -345
  199. package/chips/chips.min.js +1 -1
  200. package/colorpicker/BaseColorPicker.vue +89 -0
  201. package/colorpicker/ColorPicker.d.ts +14 -2
  202. package/colorpicker/ColorPicker.vue +16 -34
  203. package/colorpicker/colorpicker.cjs.js +699 -650
  204. package/colorpicker/colorpicker.cjs.min.js +1 -1
  205. package/colorpicker/colorpicker.esm.js +698 -649
  206. package/colorpicker/colorpicker.esm.min.js +1 -1
  207. package/colorpicker/colorpicker.js +699 -651
  208. package/colorpicker/colorpicker.min.js +1 -1
  209. package/column/BaseColumn.vue +191 -0
  210. package/column/Column.d.ts +56 -29
  211. package/column/Column.vue +2 -180
  212. package/column/column.cjs.js +193 -183
  213. package/column/column.cjs.min.js +1 -1
  214. package/column/column.esm.js +193 -183
  215. package/column/column.esm.min.js +1 -1
  216. package/column/column.js +193 -183
  217. package/column/column.min.js +1 -1
  218. package/columngroup/BaseColumnGroup.vue +19 -0
  219. package/columngroup/ColumnGroup.d.ts +23 -0
  220. package/columngroup/ColumnGroup.vue +2 -8
  221. package/columngroup/columngroup.cjs.js +21 -11
  222. package/columngroup/columngroup.cjs.min.js +1 -1
  223. package/columngroup/columngroup.esm.js +21 -11
  224. package/columngroup/columngroup.esm.min.js +1 -1
  225. package/columngroup/columngroup.js +21 -11
  226. package/columngroup/columngroup.min.js +1 -1
  227. package/config/PrimeVue.d.ts +15 -1
  228. package/config/config.cjs.js +167 -168
  229. package/config/config.cjs.min.js +1 -1
  230. package/config/config.esm.js +167 -168
  231. package/config/config.esm.min.js +1 -1
  232. package/config/config.js +167 -168
  233. package/config/config.min.js +1 -1
  234. package/confirmationservice/confirmationservice.cjs.js +12 -13
  235. package/confirmationservice/confirmationservice.cjs.min.js +1 -1
  236. package/confirmationservice/confirmationservice.esm.js +12 -13
  237. package/confirmationservice/confirmationservice.esm.min.js +1 -1
  238. package/confirmationservice/confirmationservice.js +12 -13
  239. package/confirmationservice/confirmationservice.min.js +1 -1
  240. package/confirmdialog/BaseConfirmDialog.vue +35 -0
  241. package/confirmdialog/ConfirmDialog.d.ts +12 -0
  242. package/confirmdialog/ConfirmDialog.vue +18 -33
  243. package/confirmdialog/confirmdialog.cjs.js +213 -183
  244. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  245. package/confirmdialog/confirmdialog.esm.js +213 -183
  246. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  247. package/confirmdialog/confirmdialog.js +214 -184
  248. package/confirmdialog/confirmdialog.min.js +1 -1
  249. package/confirmpopup/BaseConfirmPopup.vue +111 -0
  250. package/confirmpopup/ConfirmPopup.d.ts +12 -0
  251. package/confirmpopup/ConfirmPopup.vue +21 -109
  252. package/confirmpopup/confirmpopup.cjs.js +375 -377
  253. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  254. package/confirmpopup/confirmpopup.esm.js +375 -377
  255. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  256. package/confirmpopup/confirmpopup.js +375 -378
  257. package/confirmpopup/confirmpopup.min.js +1 -1
  258. package/contextmenu/BaseContextMenu.vue +133 -0
  259. package/contextmenu/ContextMenu.d.ts +16 -0
  260. package/contextmenu/ContextMenu.vue +6 -93
  261. package/contextmenu/ContextMenuSub.vue +24 -58
  262. package/contextmenu/contextmenu.cjs.js +989 -951
  263. package/contextmenu/contextmenu.cjs.min.js +1 -1
  264. package/contextmenu/contextmenu.esm.js +988 -950
  265. package/contextmenu/contextmenu.esm.min.js +1 -1
  266. package/contextmenu/contextmenu.js +989 -952
  267. package/contextmenu/contextmenu.min.js +1 -1
  268. package/core/core.js +12138 -11708
  269. package/core/core.min.js +76 -70
  270. package/datatable/BaseDataTable.vue +740 -0
  271. package/datatable/BodyCell.vue +48 -35
  272. package/datatable/ColumnFilter.vue +74 -59
  273. package/datatable/DataTable.d.ts +31 -8
  274. package/datatable/DataTable.vue +82 -593
  275. package/datatable/FooterCell.vue +15 -11
  276. package/datatable/HeaderCell.vue +30 -24
  277. package/datatable/HeaderCheckbox.vue +8 -7
  278. package/datatable/RowCheckbox.vue +13 -7
  279. package/datatable/RowRadioButton.vue +13 -7
  280. package/datatable/TableBody.vue +24 -35
  281. package/datatable/TableFooter.vue +20 -9
  282. package/datatable/TableHeader.vue +32 -21
  283. package/datatable/datatable.cjs.js +5908 -5739
  284. package/datatable/datatable.cjs.min.js +1 -1
  285. package/datatable/datatable.esm.js +5908 -5739
  286. package/datatable/datatable.esm.min.js +1 -1
  287. package/datatable/datatable.js +5908 -5740
  288. package/datatable/datatable.min.js +1 -1
  289. package/dataview/BaseDataView.vue +100 -0
  290. package/dataview/DataView.d.ts +16 -0
  291. package/dataview/DataView.vue +13 -86
  292. package/dataview/dataview.cjs.js +291 -295
  293. package/dataview/dataview.cjs.min.js +1 -1
  294. package/dataview/dataview.esm.js +290 -294
  295. package/dataview/dataview.esm.min.js +1 -1
  296. package/dataview/dataview.js +292 -296
  297. package/dataview/dataview.min.js +1 -1
  298. package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
  299. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +12 -0
  300. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +5 -14
  301. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +91 -75
  302. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  303. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +90 -74
  304. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  305. package/dataviewlayoutoptions/dataviewlayoutoptions.js +92 -76
  306. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  307. package/deferredcontent/DeferredContent.d.ts +12 -0
  308. package/deferredcontent/deferredcontent.cjs.js +49 -51
  309. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  310. package/deferredcontent/deferredcontent.esm.js +49 -51
  311. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  312. package/deferredcontent/deferredcontent.js +49 -51
  313. package/deferredcontent/deferredcontent.min.js +1 -1
  314. package/dialog/BaseDialog.vue +319 -0
  315. package/dialog/Dialog.d.ts +12 -0
  316. package/dialog/Dialog.vue +23 -339
  317. package/dialog/dialog.cjs.js +591 -603
  318. package/dialog/dialog.cjs.min.js +1 -1
  319. package/dialog/dialog.esm.js +590 -602
  320. package/dialog/dialog.esm.min.js +1 -1
  321. package/dialog/dialog.js +591 -604
  322. package/dialog/dialog.min.js +1 -1
  323. package/dialogservice/dialogservice.cjs.js +24 -21
  324. package/dialogservice/dialogservice.cjs.min.js +1 -1
  325. package/dialogservice/dialogservice.esm.js +23 -20
  326. package/dialogservice/dialogservice.esm.min.js +1 -1
  327. package/dialogservice/dialogservice.js +24 -21
  328. package/dialogservice/dialogservice.min.js +1 -1
  329. package/divider/BaseDivider.vue +136 -0
  330. package/divider/Divider.d.ts +12 -0
  331. package/divider/Divider.vue +4 -120
  332. package/divider/divider.cjs.js +64 -74
  333. package/divider/divider.cjs.min.js +1 -1
  334. package/divider/divider.esm.js +64 -74
  335. package/divider/divider.esm.min.js +1 -1
  336. package/divider/divider.js +65 -76
  337. package/divider/divider.min.js +1 -1
  338. package/dock/BaseDock.vue +185 -0
  339. package/dock/Dock.d.ts +12 -0
  340. package/dock/Dock.vue +3 -146
  341. package/dock/DockSub.vue +19 -39
  342. package/dock/dock.cjs.js +423 -411
  343. package/dock/dock.cjs.min.js +1 -1
  344. package/dock/dock.esm.js +424 -412
  345. package/dock/dock.esm.min.js +1 -1
  346. package/dock/dock.js +424 -413
  347. package/dock/dock.min.js +1 -1
  348. package/dropdown/BaseDropdown.vue +313 -0
  349. package/dropdown/Dropdown.d.ts +17 -1
  350. package/dropdown/Dropdown.vue +60 -320
  351. package/dropdown/dropdown.cjs.js +1261 -1226
  352. package/dropdown/dropdown.cjs.min.js +1 -1
  353. package/dropdown/dropdown.esm.js +1261 -1226
  354. package/dropdown/dropdown.esm.min.js +1 -1
  355. package/dropdown/dropdown.js +1261 -1227
  356. package/dropdown/dropdown.min.js +1 -1
  357. package/dynamicdialog/DynamicDialog.d.ts +7 -1
  358. package/dynamicdialog/DynamicDialog.vue +3 -3
  359. package/dynamicdialog/dynamicdialog.cjs.js +90 -89
  360. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  361. package/dynamicdialog/dynamicdialog.esm.js +90 -89
  362. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  363. package/dynamicdialog/dynamicdialog.js +90 -89
  364. package/dynamicdialog/dynamicdialog.min.js +1 -1
  365. package/editor/BaseEditor.vue +996 -0
  366. package/editor/Editor.d.ts +57 -5
  367. package/editor/Editor.vue +25 -981
  368. package/editor/editor.cjs.js +241 -236
  369. package/editor/editor.cjs.min.js +1 -1
  370. package/editor/editor.esm.js +241 -236
  371. package/editor/editor.esm.min.js +1 -1
  372. package/editor/editor.js +241 -237
  373. package/editor/editor.min.js +1 -1
  374. package/fieldset/BaseFieldset.vue +65 -0
  375. package/fieldset/Fieldset.d.ts +12 -0
  376. package/fieldset/Fieldset.vue +9 -39
  377. package/fieldset/fieldset.cjs.js +150 -140
  378. package/fieldset/fieldset.cjs.min.js +1 -1
  379. package/fieldset/fieldset.esm.js +149 -139
  380. package/fieldset/fieldset.esm.min.js +1 -1
  381. package/fieldset/fieldset.js +150 -141
  382. package/fieldset/fieldset.min.js +1 -1
  383. package/fileupload/BaseFileUpload.vue +189 -0
  384. package/fileupload/FileContent.vue +10 -8
  385. package/fileupload/FileUpload.d.ts +12 -4
  386. package/fileupload/FileUpload.vue +29 -190
  387. package/fileupload/fileupload.cjs.js +817 -790
  388. package/fileupload/fileupload.cjs.min.js +1 -1
  389. package/fileupload/fileupload.esm.js +817 -790
  390. package/fileupload/fileupload.esm.min.js +1 -1
  391. package/fileupload/fileupload.js +817 -790
  392. package/fileupload/fileupload.min.js +1 -1
  393. package/focustrap/FocusTrap.d.ts +44 -0
  394. package/focustrap/focustrap.cjs.js +116 -102
  395. package/focustrap/focustrap.cjs.min.js +1 -1
  396. package/focustrap/focustrap.esm.js +116 -106
  397. package/focustrap/focustrap.esm.min.js +1 -1
  398. package/focustrap/focustrap.js +117 -104
  399. package/focustrap/focustrap.min.js +1 -1
  400. package/galleria/BaseGalleria.vue +499 -0
  401. package/galleria/Galleria.d.ts +12 -0
  402. package/galleria/Galleria.vue +6 -413
  403. package/galleria/GalleriaContent.vue +8 -22
  404. package/galleria/GalleriaItem.vue +13 -27
  405. package/galleria/GalleriaThumbnails.vue +32 -56
  406. package/galleria/galleria.cjs.js +1164 -1247
  407. package/galleria/galleria.cjs.min.js +1 -1
  408. package/galleria/galleria.esm.js +1164 -1247
  409. package/galleria/galleria.esm.min.js +1 -1
  410. package/galleria/galleria.js +1164 -1248
  411. package/galleria/galleria.min.js +1 -1
  412. package/icons/angledoubledown/index.cjs.js +6 -9
  413. package/icons/angledoubledown/index.cjs.min.js +1 -1
  414. package/icons/angledoubledown/index.esm.js +6 -9
  415. package/icons/angledoubledown/index.esm.min.js +1 -1
  416. package/icons/angledoubledown/index.js +6 -9
  417. package/icons/angledoubledown/index.min.js +1 -1
  418. package/icons/angledoubleleft/index.cjs.js +6 -9
  419. package/icons/angledoubleleft/index.cjs.min.js +1 -1
  420. package/icons/angledoubleleft/index.esm.js +6 -9
  421. package/icons/angledoubleleft/index.esm.min.js +1 -1
  422. package/icons/angledoubleleft/index.js +6 -9
  423. package/icons/angledoubleleft/index.min.js +1 -1
  424. package/icons/angledoubleright/index.cjs.js +6 -9
  425. package/icons/angledoubleright/index.cjs.min.js +1 -1
  426. package/icons/angledoubleright/index.esm.js +6 -9
  427. package/icons/angledoubleright/index.esm.min.js +1 -1
  428. package/icons/angledoubleright/index.js +6 -9
  429. package/icons/angledoubleright/index.min.js +1 -1
  430. package/icons/angledoubleup/index.cjs.js +6 -9
  431. package/icons/angledoubleup/index.cjs.min.js +1 -1
  432. package/icons/angledoubleup/index.esm.js +6 -9
  433. package/icons/angledoubleup/index.esm.min.js +1 -1
  434. package/icons/angledoubleup/index.js +6 -9
  435. package/icons/angledoubleup/index.min.js +1 -1
  436. package/icons/angledown/index.cjs.js +6 -9
  437. package/icons/angledown/index.cjs.min.js +1 -1
  438. package/icons/angledown/index.esm.js +6 -9
  439. package/icons/angledown/index.esm.min.js +1 -1
  440. package/icons/angledown/index.js +6 -9
  441. package/icons/angledown/index.min.js +1 -1
  442. package/icons/angleleft/index.cjs.js +6 -9
  443. package/icons/angleleft/index.cjs.min.js +1 -1
  444. package/icons/angleleft/index.esm.js +6 -9
  445. package/icons/angleleft/index.esm.min.js +1 -1
  446. package/icons/angleleft/index.js +6 -9
  447. package/icons/angleleft/index.min.js +1 -1
  448. package/icons/angleright/index.cjs.js +6 -9
  449. package/icons/angleright/index.cjs.min.js +1 -1
  450. package/icons/angleright/index.esm.js +6 -9
  451. package/icons/angleright/index.esm.min.js +1 -1
  452. package/icons/angleright/index.js +6 -9
  453. package/icons/angleright/index.min.js +1 -1
  454. package/icons/angleup/index.cjs.js +6 -9
  455. package/icons/angleup/index.cjs.min.js +1 -1
  456. package/icons/angleup/index.esm.js +6 -9
  457. package/icons/angleup/index.esm.min.js +1 -1
  458. package/icons/angleup/index.js +6 -9
  459. package/icons/angleup/index.min.js +1 -1
  460. package/icons/arrowdown/index.cjs.js +29 -26
  461. package/icons/arrowdown/index.cjs.min.js +1 -1
  462. package/icons/arrowdown/index.esm.js +29 -26
  463. package/icons/arrowdown/index.esm.min.js +1 -1
  464. package/icons/arrowdown/index.js +30 -28
  465. package/icons/arrowdown/index.min.js +1 -1
  466. package/icons/arrowdown/index.vue +10 -3
  467. package/icons/arrowup/index.cjs.js +29 -26
  468. package/icons/arrowup/index.cjs.min.js +1 -1
  469. package/icons/arrowup/index.esm.js +29 -26
  470. package/icons/arrowup/index.esm.min.js +1 -1
  471. package/icons/arrowup/index.js +30 -28
  472. package/icons/arrowup/index.min.js +1 -1
  473. package/icons/arrowup/index.vue +10 -3
  474. package/icons/ban/index.cjs.js +27 -24
  475. package/icons/ban/index.cjs.min.js +1 -1
  476. package/icons/ban/index.esm.js +27 -24
  477. package/icons/ban/index.esm.min.js +1 -1
  478. package/icons/ban/index.js +28 -26
  479. package/icons/ban/index.min.js +1 -1
  480. package/icons/ban/index.vue +10 -3
  481. package/icons/bars/index.cjs.js +6 -9
  482. package/icons/bars/index.cjs.min.js +1 -1
  483. package/icons/bars/index.esm.js +6 -9
  484. package/icons/bars/index.esm.min.js +1 -1
  485. package/icons/bars/index.js +6 -9
  486. package/icons/bars/index.min.js +1 -1
  487. package/icons/calendar/index.cjs.js +6 -9
  488. package/icons/calendar/index.cjs.min.js +1 -1
  489. package/icons/calendar/index.esm.js +6 -9
  490. package/icons/calendar/index.esm.min.js +1 -1
  491. package/icons/calendar/index.js +6 -9
  492. package/icons/calendar/index.min.js +1 -1
  493. package/icons/check/index.cjs.js +6 -9
  494. package/icons/check/index.cjs.min.js +1 -1
  495. package/icons/check/index.esm.js +6 -9
  496. package/icons/check/index.esm.min.js +1 -1
  497. package/icons/check/index.js +6 -9
  498. package/icons/check/index.min.js +1 -1
  499. package/icons/chevrondown/index.cjs.js +6 -9
  500. package/icons/chevrondown/index.cjs.min.js +1 -1
  501. package/icons/chevrondown/index.esm.js +6 -9
  502. package/icons/chevrondown/index.esm.min.js +1 -1
  503. package/icons/chevrondown/index.js +6 -9
  504. package/icons/chevrondown/index.min.js +1 -1
  505. package/icons/chevronleft/index.cjs.js +6 -9
  506. package/icons/chevronleft/index.cjs.min.js +1 -1
  507. package/icons/chevronleft/index.esm.js +6 -9
  508. package/icons/chevronleft/index.esm.min.js +1 -1
  509. package/icons/chevronleft/index.js +6 -9
  510. package/icons/chevronleft/index.min.js +1 -1
  511. package/icons/chevronright/index.cjs.js +6 -9
  512. package/icons/chevronright/index.cjs.min.js +1 -1
  513. package/icons/chevronright/index.esm.js +6 -9
  514. package/icons/chevronright/index.esm.min.js +1 -1
  515. package/icons/chevronright/index.js +6 -9
  516. package/icons/chevronright/index.min.js +1 -1
  517. package/icons/chevronup/index.cjs.js +6 -9
  518. package/icons/chevronup/index.cjs.min.js +1 -1
  519. package/icons/chevronup/index.esm.js +6 -9
  520. package/icons/chevronup/index.esm.min.js +1 -1
  521. package/icons/chevronup/index.js +6 -9
  522. package/icons/chevronup/index.min.js +1 -1
  523. package/icons/exclamationtriangle/index.cjs.js +35 -9
  524. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  525. package/icons/exclamationtriangle/index.esm.js +36 -10
  526. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  527. package/icons/exclamationtriangle/index.js +36 -11
  528. package/icons/exclamationtriangle/index.min.js +1 -1
  529. package/icons/exclamationtriangle/index.vue +10 -3
  530. package/icons/eye/index.cjs.js +6 -9
  531. package/icons/eye/index.cjs.min.js +1 -1
  532. package/icons/eye/index.esm.js +6 -9
  533. package/icons/eye/index.esm.min.js +1 -1
  534. package/icons/eye/index.js +6 -9
  535. package/icons/eye/index.min.js +1 -1
  536. package/icons/eyeslash/index.cjs.js +29 -26
  537. package/icons/eyeslash/index.cjs.min.js +1 -1
  538. package/icons/eyeslash/index.esm.js +29 -26
  539. package/icons/eyeslash/index.esm.min.js +1 -1
  540. package/icons/eyeslash/index.js +30 -28
  541. package/icons/eyeslash/index.min.js +1 -1
  542. package/icons/eyeslash/index.vue +10 -3
  543. package/icons/filter/index.cjs.js +27 -24
  544. package/icons/filter/index.cjs.min.js +1 -1
  545. package/icons/filter/index.esm.js +27 -24
  546. package/icons/filter/index.esm.min.js +1 -1
  547. package/icons/filter/index.js +28 -26
  548. package/icons/filter/index.min.js +1 -1
  549. package/icons/filter/index.vue +10 -3
  550. package/icons/filterslash/index.cjs.js +29 -26
  551. package/icons/filterslash/index.cjs.min.js +1 -1
  552. package/icons/filterslash/index.esm.js +29 -26
  553. package/icons/filterslash/index.esm.min.js +1 -1
  554. package/icons/filterslash/index.js +30 -28
  555. package/icons/filterslash/index.min.js +1 -1
  556. package/icons/filterslash/index.vue +10 -3
  557. package/icons/infocircle/index.cjs.js +29 -26
  558. package/icons/infocircle/index.cjs.min.js +1 -1
  559. package/icons/infocircle/index.esm.js +29 -26
  560. package/icons/infocircle/index.esm.min.js +1 -1
  561. package/icons/infocircle/index.js +30 -28
  562. package/icons/infocircle/index.min.js +1 -1
  563. package/icons/infocircle/index.vue +10 -3
  564. package/icons/minus/index.cjs.js +6 -9
  565. package/icons/minus/index.cjs.min.js +1 -1
  566. package/icons/minus/index.esm.js +6 -9
  567. package/icons/minus/index.esm.min.js +1 -1
  568. package/icons/minus/index.js +6 -9
  569. package/icons/minus/index.min.js +1 -1
  570. package/icons/pencil/index.cjs.js +27 -24
  571. package/icons/pencil/index.cjs.min.js +1 -1
  572. package/icons/pencil/index.esm.js +27 -24
  573. package/icons/pencil/index.esm.min.js +1 -1
  574. package/icons/pencil/index.js +28 -26
  575. package/icons/pencil/index.min.js +1 -1
  576. package/icons/pencil/index.vue +10 -3
  577. package/icons/plus/index.cjs.js +27 -24
  578. package/icons/plus/index.cjs.min.js +1 -1
  579. package/icons/plus/index.esm.js +27 -24
  580. package/icons/plus/index.esm.min.js +1 -1
  581. package/icons/plus/index.js +28 -26
  582. package/icons/plus/index.min.js +1 -1
  583. package/icons/plus/index.vue +10 -3
  584. package/icons/refresh/index.cjs.js +29 -26
  585. package/icons/refresh/index.cjs.min.js +1 -1
  586. package/icons/refresh/index.esm.js +29 -26
  587. package/icons/refresh/index.esm.min.js +1 -1
  588. package/icons/refresh/index.js +30 -28
  589. package/icons/refresh/index.min.js +1 -1
  590. package/icons/refresh/index.vue +10 -3
  591. package/icons/search/index.cjs.js +29 -26
  592. package/icons/search/index.cjs.min.js +1 -1
  593. package/icons/search/index.esm.js +29 -26
  594. package/icons/search/index.esm.min.js +1 -1
  595. package/icons/search/index.js +30 -28
  596. package/icons/search/index.min.js +1 -1
  597. package/icons/search/index.vue +10 -3
  598. package/icons/searchminus/index.cjs.js +29 -26
  599. package/icons/searchminus/index.cjs.min.js +1 -1
  600. package/icons/searchminus/index.esm.js +29 -26
  601. package/icons/searchminus/index.esm.min.js +1 -1
  602. package/icons/searchminus/index.js +30 -28
  603. package/icons/searchminus/index.min.js +1 -1
  604. package/icons/searchminus/index.vue +10 -3
  605. package/icons/searchplus/index.cjs.js +29 -26
  606. package/icons/searchplus/index.cjs.min.js +1 -1
  607. package/icons/searchplus/index.esm.js +29 -26
  608. package/icons/searchplus/index.esm.min.js +1 -1
  609. package/icons/searchplus/index.js +30 -28
  610. package/icons/searchplus/index.min.js +1 -1
  611. package/icons/searchplus/index.vue +10 -3
  612. package/icons/sortalt/index.cjs.js +39 -9
  613. package/icons/sortalt/index.cjs.min.js +1 -1
  614. package/icons/sortalt/index.esm.js +40 -10
  615. package/icons/sortalt/index.esm.min.js +1 -1
  616. package/icons/sortalt/index.js +40 -11
  617. package/icons/sortalt/index.min.js +1 -1
  618. package/icons/sortalt/index.vue +10 -3
  619. package/icons/sortamountdown/index.cjs.js +24 -9
  620. package/icons/sortamountdown/index.cjs.min.js +1 -1
  621. package/icons/sortamountdown/index.esm.js +25 -10
  622. package/icons/sortamountdown/index.esm.min.js +1 -1
  623. package/icons/sortamountdown/index.js +25 -11
  624. package/icons/sortamountdown/index.min.js +1 -1
  625. package/icons/sortamountdown/index.vue +10 -3
  626. package/icons/sortamountupalt/index.cjs.js +24 -9
  627. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  628. package/icons/sortamountupalt/index.esm.js +25 -10
  629. package/icons/sortamountupalt/index.esm.min.js +1 -1
  630. package/icons/sortamountupalt/index.js +25 -11
  631. package/icons/sortamountupalt/index.min.js +1 -1
  632. package/icons/sortamountupalt/index.vue +10 -3
  633. package/icons/spinner/index.cjs.js +27 -24
  634. package/icons/spinner/index.cjs.min.js +1 -1
  635. package/icons/spinner/index.esm.js +27 -24
  636. package/icons/spinner/index.esm.min.js +1 -1
  637. package/icons/spinner/index.js +28 -26
  638. package/icons/spinner/index.min.js +1 -1
  639. package/icons/spinner/index.vue +10 -3
  640. package/icons/star/index.cjs.js +27 -24
  641. package/icons/star/index.cjs.min.js +1 -1
  642. package/icons/star/index.esm.js +27 -24
  643. package/icons/star/index.esm.min.js +1 -1
  644. package/icons/star/index.js +28 -26
  645. package/icons/star/index.min.js +1 -1
  646. package/icons/star/index.vue +10 -3
  647. package/icons/starfill/index.cjs.js +27 -24
  648. package/icons/starfill/index.cjs.min.js +1 -1
  649. package/icons/starfill/index.esm.js +27 -24
  650. package/icons/starfill/index.esm.min.js +1 -1
  651. package/icons/starfill/index.js +28 -26
  652. package/icons/starfill/index.min.js +1 -1
  653. package/icons/starfill/index.vue +10 -3
  654. package/icons/thlarge/index.cjs.js +29 -26
  655. package/icons/thlarge/index.cjs.min.js +1 -1
  656. package/icons/thlarge/index.esm.js +29 -26
  657. package/icons/thlarge/index.esm.min.js +1 -1
  658. package/icons/thlarge/index.js +30 -28
  659. package/icons/thlarge/index.min.js +1 -1
  660. package/icons/thlarge/index.vue +10 -3
  661. package/icons/times/index.cjs.js +6 -9
  662. package/icons/times/index.cjs.min.js +1 -1
  663. package/icons/times/index.esm.js +6 -9
  664. package/icons/times/index.esm.min.js +1 -1
  665. package/icons/times/index.js +6 -9
  666. package/icons/times/index.min.js +1 -1
  667. package/icons/timescircle/index.cjs.js +29 -26
  668. package/icons/timescircle/index.cjs.min.js +1 -1
  669. package/icons/timescircle/index.esm.js +29 -26
  670. package/icons/timescircle/index.esm.min.js +1 -1
  671. package/icons/timescircle/index.js +30 -28
  672. package/icons/timescircle/index.min.js +1 -1
  673. package/icons/timescircle/index.vue +10 -3
  674. package/icons/trash/index.cjs.js +29 -26
  675. package/icons/trash/index.cjs.min.js +1 -1
  676. package/icons/trash/index.esm.js +29 -26
  677. package/icons/trash/index.esm.min.js +1 -1
  678. package/icons/trash/index.js +30 -28
  679. package/icons/trash/index.min.js +1 -1
  680. package/icons/trash/index.vue +10 -3
  681. package/icons/undo/index.cjs.js +29 -26
  682. package/icons/undo/index.cjs.min.js +1 -1
  683. package/icons/undo/index.esm.js +29 -26
  684. package/icons/undo/index.esm.min.js +1 -1
  685. package/icons/undo/index.js +30 -28
  686. package/icons/undo/index.min.js +1 -1
  687. package/icons/undo/index.vue +10 -3
  688. package/icons/upload/index.cjs.js +29 -26
  689. package/icons/upload/index.cjs.min.js +1 -1
  690. package/icons/upload/index.esm.js +29 -26
  691. package/icons/upload/index.esm.min.js +1 -1
  692. package/icons/upload/index.js +30 -28
  693. package/icons/upload/index.min.js +1 -1
  694. package/icons/upload/index.vue +10 -3
  695. package/icons/windowmaximize/index.cjs.js +29 -26
  696. package/icons/windowmaximize/index.cjs.min.js +1 -1
  697. package/icons/windowmaximize/index.esm.js +29 -26
  698. package/icons/windowmaximize/index.esm.min.js +1 -1
  699. package/icons/windowmaximize/index.js +30 -28
  700. package/icons/windowmaximize/index.min.js +1 -1
  701. package/icons/windowmaximize/index.vue +10 -3
  702. package/icons/windowminimize/index.cjs.js +29 -26
  703. package/icons/windowminimize/index.cjs.min.js +1 -1
  704. package/icons/windowminimize/index.esm.js +29 -26
  705. package/icons/windowminimize/index.esm.min.js +1 -1
  706. package/icons/windowminimize/index.js +30 -28
  707. package/icons/windowminimize/index.min.js +1 -1
  708. package/icons/windowminimize/index.vue +10 -3
  709. package/image/BaseImage.vue +153 -0
  710. package/image/Image.d.ts +12 -0
  711. package/image/Image.vue +17 -130
  712. package/image/image.cjs.js +385 -379
  713. package/image/image.cjs.min.js +1 -1
  714. package/image/image.esm.js +385 -379
  715. package/image/image.esm.min.js +1 -1
  716. package/image/image.js +385 -380
  717. package/image/image.min.js +1 -1
  718. package/inlinemessage/BaseInlineMessage.vue +54 -0
  719. package/inlinemessage/InlineMessage.d.ts +12 -0
  720. package/inlinemessage/InlineMessage.vue +5 -36
  721. package/inlinemessage/inlinemessage.cjs.js +80 -80
  722. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  723. package/inlinemessage/inlinemessage.esm.js +80 -80
  724. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  725. package/inlinemessage/inlinemessage.js +81 -82
  726. package/inlinemessage/inlinemessage.min.js +1 -1
  727. package/inplace/BaseInplace.vue +72 -0
  728. package/inplace/Inplace.d.ts +12 -0
  729. package/inplace/Inplace.vue +6 -58
  730. package/inplace/inplace.cjs.js +145 -145
  731. package/inplace/inplace.cjs.min.js +1 -1
  732. package/inplace/inplace.esm.js +144 -144
  733. package/inplace/inplace.esm.min.js +1 -1
  734. package/inplace/inplace.js +145 -146
  735. package/inplace/inplace.min.js +1 -1
  736. package/inputmask/BaseInputMask.vue +43 -0
  737. package/inputmask/InputMask.d.ts +11 -0
  738. package/inputmask/InputMask.vue +3 -34
  739. package/inputmask/inputmask.cjs.js +464 -519
  740. package/inputmask/inputmask.cjs.min.js +1 -1
  741. package/inputmask/inputmask.esm.js +464 -519
  742. package/inputmask/inputmask.esm.min.js +1 -1
  743. package/inputmask/inputmask.js +465 -520
  744. package/inputmask/inputmask.min.js +1 -1
  745. package/inputnumber/BaseInputNumber.vue +288 -0
  746. package/inputnumber/InputNumber.d.ts +12 -0
  747. package/inputnumber/InputNumber.vue +50 -283
  748. package/inputnumber/inputnumber.cjs.js +1113 -1157
  749. package/inputnumber/inputnumber.cjs.min.js +1 -1
  750. package/inputnumber/inputnumber.esm.js +1112 -1156
  751. package/inputnumber/inputnumber.esm.min.js +1 -1
  752. package/inputnumber/inputnumber.js +1113 -1158
  753. package/inputnumber/inputnumber.min.js +1 -1
  754. package/inputswitch/BaseInputSwitch.vue +101 -0
  755. package/inputswitch/InputSwitch.d.ts +17 -0
  756. package/inputswitch/InputSwitch.vue +6 -83
  757. package/inputswitch/inputswitch.cjs.js +149 -138
  758. package/inputswitch/inputswitch.cjs.min.js +1 -1
  759. package/inputswitch/inputswitch.esm.js +149 -138
  760. package/inputswitch/inputswitch.esm.min.js +1 -1
  761. package/inputswitch/inputswitch.js +150 -140
  762. package/inputswitch/inputswitch.min.js +1 -1
  763. package/inputtext/BaseInputText.vue +34 -0
  764. package/inputtext/InputText.d.ts +15 -0
  765. package/inputtext/InputText.vue +10 -6
  766. package/inputtext/inputtext.cjs.js +58 -20
  767. package/inputtext/inputtext.cjs.min.js +1 -1
  768. package/inputtext/inputtext.esm.js +58 -20
  769. package/inputtext/inputtext.esm.min.js +1 -1
  770. package/inputtext/inputtext.js +58 -20
  771. package/inputtext/inputtext.min.js +1 -1
  772. package/knob/BaseKnob.vue +114 -0
  773. package/knob/Knob.d.ts +12 -0
  774. package/knob/Knob.vue +6 -101
  775. package/knob/knob.cjs.js +316 -326
  776. package/knob/knob.cjs.min.js +1 -1
  777. package/knob/knob.esm.js +316 -326
  778. package/knob/knob.esm.min.js +1 -1
  779. package/knob/knob.js +317 -328
  780. package/knob/knob.min.js +1 -1
  781. package/listbox/BaseListbox.vue +156 -0
  782. package/listbox/Listbox.d.ts +12 -0
  783. package/listbox/Listbox.vue +45 -141
  784. package/listbox/listbox.cjs.js +925 -877
  785. package/listbox/listbox.cjs.min.js +1 -1
  786. package/listbox/listbox.esm.js +925 -877
  787. package/listbox/listbox.esm.min.js +1 -1
  788. package/listbox/listbox.js +925 -878
  789. package/listbox/listbox.min.js +1 -1
  790. package/megamenu/BaseMegaMenu.vue +238 -0
  791. package/megamenu/MegaMenu.d.ts +16 -0
  792. package/megamenu/MegaMenu.vue +6 -129
  793. package/megamenu/MegaMenuSub.vue +27 -91
  794. package/megamenu/megamenu.cjs.js +1028 -979
  795. package/megamenu/megamenu.cjs.min.js +1 -1
  796. package/megamenu/megamenu.esm.js +1029 -980
  797. package/megamenu/megamenu.esm.min.js +1 -1
  798. package/megamenu/megamenu.js +1028 -980
  799. package/megamenu/megamenu.min.js +1 -1
  800. package/menu/BaseMenu.vue +112 -0
  801. package/menu/Menu.d.ts +12 -0
  802. package/menu/Menu.vue +15 -92
  803. package/menu/Menuitem.vue +22 -27
  804. package/menu/menu.cjs.js +609 -651
  805. package/menu/menu.cjs.min.js +1 -1
  806. package/menu/menu.esm.js +608 -650
  807. package/menu/menu.esm.min.js +1 -1
  808. package/menu/menu.js +609 -652
  809. package/menu/menu.min.js +1 -1
  810. package/menubar/BaseMenubar.vue +155 -0
  811. package/menubar/Menubar.d.ts +16 -0
  812. package/menubar/Menubar.vue +11 -110
  813. package/menubar/MenubarSub.vue +19 -55
  814. package/menubar/menubar.cjs.js +970 -923
  815. package/menubar/menubar.cjs.min.js +1 -1
  816. package/menubar/menubar.esm.js +970 -923
  817. package/menubar/menubar.esm.min.js +1 -1
  818. package/menubar/menubar.js +970 -924
  819. package/menubar/menubar.min.js +1 -1
  820. package/message/BaseMessage.vue +105 -0
  821. package/message/Message.d.ts +12 -0
  822. package/message/Message.vue +10 -89
  823. package/message/message.cjs.js +150 -154
  824. package/message/message.cjs.min.js +1 -1
  825. package/message/message.esm.js +149 -153
  826. package/message/message.esm.min.js +1 -1
  827. package/message/message.js +150 -155
  828. package/message/message.min.js +1 -1
  829. package/multiselect/BaseMultiSelect.vue +363 -0
  830. package/multiselect/MultiSelect.d.ts +12 -5
  831. package/multiselect/MultiSelect.vue +76 -373
  832. package/multiselect/multiselect.cjs.js +1513 -1449
  833. package/multiselect/multiselect.cjs.min.js +1 -1
  834. package/multiselect/multiselect.esm.js +1513 -1449
  835. package/multiselect/multiselect.esm.min.js +1 -1
  836. package/multiselect/multiselect.js +1513 -1450
  837. package/multiselect/multiselect.min.js +1 -1
  838. package/orderlist/BaseOrderList.vue +146 -0
  839. package/orderlist/OrderList.d.ts +12 -0
  840. package/orderlist/OrderList.vue +35 -156
  841. package/orderlist/orderlist.cjs.js +627 -686
  842. package/orderlist/orderlist.cjs.min.js +1 -1
  843. package/orderlist/orderlist.esm.js +626 -685
  844. package/orderlist/orderlist.esm.min.js +1 -1
  845. package/orderlist/orderlist.js +627 -687
  846. package/orderlist/orderlist.min.js +1 -1
  847. package/organizationchart/BaseOrganizationChart.vue +111 -0
  848. package/organizationchart/OrganizationChart.d.ts +12 -0
  849. package/organizationchart/OrganizationChart.vue +4 -80
  850. package/organizationchart/OrganizationChartNode.vue +15 -16
  851. package/organizationchart/organizationchart.cjs.js +315 -313
  852. package/organizationchart/organizationchart.cjs.min.js +1 -1
  853. package/organizationchart/organizationchart.esm.js +315 -313
  854. package/organizationchart/organizationchart.esm.min.js +1 -1
  855. package/organizationchart/organizationchart.js +316 -315
  856. package/organizationchart/organizationchart.min.js +1 -1
  857. package/overlaypanel/BaseOverlayPanel.vue +135 -0
  858. package/overlaypanel/OverlayPanel.d.ts +12 -0
  859. package/overlaypanel/OverlayPanel.vue +10 -122
  860. package/overlaypanel/overlaypanel.cjs.js +352 -374
  861. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  862. package/overlaypanel/overlaypanel.esm.js +351 -373
  863. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  864. package/overlaypanel/overlaypanel.js +352 -375
  865. package/overlaypanel/overlaypanel.min.js +1 -1
  866. package/package.json +1 -1
  867. package/paginator/BasePaginator.vue +147 -0
  868. package/paginator/CurrentPageReport.vue +2 -1
  869. package/paginator/FirstPageLink.vue +3 -12
  870. package/paginator/JumpToPageDropdown.vue +13 -1
  871. package/paginator/JumpToPageInput.vue +12 -1
  872. package/paginator/LastPageLink.vue +3 -12
  873. package/paginator/NextPageLink.vue +3 -12
  874. package/paginator/PageLinks.vue +4 -2
  875. package/paginator/Paginator.d.ts +41 -5
  876. package/paginator/Paginator.vue +19 -93
  877. package/paginator/PrevPageLink.vue +3 -12
  878. package/paginator/RowsPerPageDropdown.vue +13 -1
  879. package/paginator/paginator.cjs.js +753 -782
  880. package/paginator/paginator.cjs.min.js +1 -1
  881. package/paginator/paginator.esm.js +754 -783
  882. package/paginator/paginator.esm.min.js +1 -1
  883. package/paginator/paginator.js +753 -783
  884. package/paginator/paginator.min.js +1 -1
  885. package/panel/BasePanel.vue +67 -0
  886. package/panel/Panel.d.ts +12 -0
  887. package/panel/Panel.vue +11 -45
  888. package/panel/panel.cjs.js +151 -154
  889. package/panel/panel.cjs.min.js +1 -1
  890. package/panel/panel.esm.js +151 -154
  891. package/panel/panel.esm.min.js +1 -1
  892. package/panel/panel.js +151 -155
  893. package/panel/panel.min.js +1 -1
  894. package/panelmenu/BasePanelMenu.vue +118 -0
  895. package/panelmenu/PanelMenu.d.ts +16 -0
  896. package/panelmenu/PanelMenu.vue +28 -104
  897. package/panelmenu/PanelMenuList.vue +5 -3
  898. package/panelmenu/PanelMenuSub.vue +29 -49
  899. package/panelmenu/panelmenu.cjs.js +1034 -1007
  900. package/panelmenu/panelmenu.cjs.min.js +1 -1
  901. package/panelmenu/panelmenu.esm.js +1034 -1007
  902. package/panelmenu/panelmenu.esm.min.js +1 -1
  903. package/panelmenu/panelmenu.js +1034 -1008
  904. package/panelmenu/panelmenu.min.js +1 -1
  905. package/password/BasePassword.vue +180 -0
  906. package/password/Password.d.ts +16 -0
  907. package/password/Password.vue +12 -176
  908. package/password/password.cjs.js +473 -479
  909. package/password/password.cjs.min.js +1 -1
  910. package/password/password.esm.js +472 -478
  911. package/password/password.esm.min.js +1 -1
  912. package/password/password.js +473 -480
  913. package/password/password.min.js +1 -1
  914. package/picklist/BasePickList.vue +167 -0
  915. package/picklist/PickList.d.ts +14 -2
  916. package/picklist/PickList.vue +46 -175
  917. package/picklist/picklist.cjs.js +1060 -1108
  918. package/picklist/picklist.cjs.min.js +1 -1
  919. package/picklist/picklist.esm.js +1059 -1107
  920. package/picklist/picklist.esm.min.js +1 -1
  921. package/picklist/picklist.js +1060 -1109
  922. package/picklist/picklist.min.js +1 -1
  923. package/portal/portal.cjs.js +28 -32
  924. package/portal/portal.cjs.min.js +1 -1
  925. package/portal/portal.esm.js +28 -32
  926. package/portal/portal.esm.min.js +1 -1
  927. package/portal/portal.js +28 -32
  928. package/portal/portal.min.js +1 -1
  929. package/progressbar/BaseProgressBar.vue +158 -0
  930. package/progressbar/ProgressBar.d.ts +12 -0
  931. package/progressbar/ProgressBar.vue +7 -141
  932. package/progressbar/progressbar.cjs.js +80 -100
  933. package/progressbar/progressbar.cjs.min.js +1 -1
  934. package/progressbar/progressbar.esm.js +80 -100
  935. package/progressbar/progressbar.esm.min.js +1 -1
  936. package/progressbar/progressbar.js +81 -102
  937. package/progressbar/progressbar.min.js +1 -1
  938. package/progressspinner/BaseProgressSpinner.vue +68 -0
  939. package/progressspinner/ProgressSpinner.d.ts +12 -0
  940. package/progressspinner/ProgressSpinner.vue +5 -47
  941. package/progressspinner/progressspinner.cjs.js +65 -72
  942. package/progressspinner/progressspinner.cjs.min.js +1 -1
  943. package/progressspinner/progressspinner.esm.js +65 -72
  944. package/progressspinner/progressspinner.esm.min.js +1 -1
  945. package/progressspinner/progressspinner.js +66 -74
  946. package/progressspinner/progressspinner.min.js +1 -1
  947. package/radiobutton/BaseRadioButton.vue +72 -0
  948. package/radiobutton/RadioButton.d.ts +17 -0
  949. package/radiobutton/RadioButton.vue +7 -68
  950. package/radiobutton/radiobutton.cjs.js +145 -106
  951. package/radiobutton/radiobutton.cjs.min.js +1 -1
  952. package/radiobutton/radiobutton.esm.js +145 -106
  953. package/radiobutton/radiobutton.esm.min.js +1 -1
  954. package/radiobutton/radiobutton.js +146 -107
  955. package/radiobutton/radiobutton.min.js +1 -1
  956. package/rating/BaseRating.vue +98 -0
  957. package/rating/Rating.d.ts +30 -1
  958. package/rating/Rating.vue +13 -76
  959. package/rating/rating.cjs.js +238 -206
  960. package/rating/rating.cjs.min.js +1 -1
  961. package/rating/rating.esm.js +238 -206
  962. package/rating/rating.esm.min.js +1 -1
  963. package/rating/rating.js +238 -207
  964. package/rating/rating.min.js +1 -1
  965. package/resources/primevue.css +3 -521
  966. package/resources/primevue.min.css +3 -1
  967. package/ripple/Ripple.d.ts +48 -1
  968. package/ripple/ripple.cjs.js +102 -82
  969. package/ripple/ripple.cjs.min.js +1 -1
  970. package/ripple/ripple.esm.js +100 -84
  971. package/ripple/ripple.esm.min.js +1 -1
  972. package/ripple/ripple.js +102 -84
  973. package/ripple/ripple.min.js +1 -1
  974. package/row/Row.d.ts +25 -1
  975. package/row/row.cjs.js +5 -5
  976. package/row/row.cjs.min.js +1 -1
  977. package/row/row.esm.js +5 -5
  978. package/row/row.esm.min.js +1 -1
  979. package/row/row.js +5 -5
  980. package/row/row.min.js +1 -1
  981. package/scrollpanel/BaseScrollPanel.vue +92 -0
  982. package/scrollpanel/ScrollPanel.d.ts +12 -0
  983. package/scrollpanel/ScrollPanel.vue +29 -82
  984. package/scrollpanel/scrollpanel.cjs.js +370 -358
  985. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  986. package/scrollpanel/scrollpanel.esm.js +370 -358
  987. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  988. package/scrollpanel/scrollpanel.js +370 -359
  989. package/scrollpanel/scrollpanel.min.js +1 -1
  990. package/scrolltop/BaseScrollTop.vue +78 -0
  991. package/scrolltop/ScrollTop.d.ts +12 -0
  992. package/scrolltop/ScrollTop.vue +5 -61
  993. package/scrolltop/scrolltop.cjs.js +140 -147
  994. package/scrolltop/scrolltop.cjs.min.js +1 -1
  995. package/scrolltop/scrolltop.esm.js +140 -147
  996. package/scrolltop/scrolltop.esm.min.js +1 -1
  997. package/scrolltop/scrolltop.js +140 -148
  998. package/scrolltop/scrolltop.min.js +1 -1
  999. package/selectbutton/BaseSelectButton.vue +46 -0
  1000. package/selectbutton/SelectButton.d.ts +12 -0
  1001. package/selectbutton/SelectButton.vue +11 -44
  1002. package/selectbutton/selectbutton.cjs.js +241 -209
  1003. package/selectbutton/selectbutton.cjs.min.js +1 -1
  1004. package/selectbutton/selectbutton.esm.js +241 -209
  1005. package/selectbutton/selectbutton.esm.min.js +1 -1
  1006. package/selectbutton/selectbutton.js +242 -210
  1007. package/selectbutton/selectbutton.min.js +1 -1
  1008. package/sidebar/BaseSidebar.vue +255 -0
  1009. package/sidebar/Sidebar.d.ts +12 -0
  1010. package/sidebar/Sidebar.vue +10 -251
  1011. package/sidebar/sidebar.cjs.js +316 -329
  1012. package/sidebar/sidebar.cjs.min.js +1 -1
  1013. package/sidebar/sidebar.esm.js +315 -328
  1014. package/sidebar/sidebar.esm.min.js +1 -1
  1015. package/sidebar/sidebar.js +316 -330
  1016. package/sidebar/sidebar.min.js +1 -1
  1017. package/skeleton/BaseSkeleton.vue +96 -0
  1018. package/skeleton/Skeleton.d.ts +12 -0
  1019. package/skeleton/Skeleton.vue +3 -74
  1020. package/skeleton/skeleton.cjs.js +81 -75
  1021. package/skeleton/skeleton.cjs.min.js +1 -1
  1022. package/skeleton/skeleton.esm.js +81 -75
  1023. package/skeleton/skeleton.esm.min.js +1 -1
  1024. package/skeleton/skeleton.js +82 -77
  1025. package/skeleton/skeleton.min.js +1 -1
  1026. package/slider/BaseSlider.vue +118 -0
  1027. package/slider/Slider.d.ts +12 -0
  1028. package/slider/Slider.vue +13 -104
  1029. package/slider/slider.cjs.js +411 -400
  1030. package/slider/slider.cjs.min.js +1 -1
  1031. package/slider/slider.esm.js +411 -400
  1032. package/slider/slider.esm.min.js +1 -1
  1033. package/slider/slider.js +411 -401
  1034. package/slider/slider.min.js +1 -1
  1035. package/speeddial/BaseSpeedDial.vue +234 -0
  1036. package/speeddial/SpeedDial.d.ts +12 -0
  1037. package/speeddial/SpeedDial.vue +19 -237
  1038. package/speeddial/speeddial.cjs.js +607 -614
  1039. package/speeddial/speeddial.cjs.min.js +1 -1
  1040. package/speeddial/speeddial.esm.js +606 -613
  1041. package/speeddial/speeddial.esm.min.js +1 -1
  1042. package/speeddial/speeddial.js +607 -615
  1043. package/speeddial/speeddial.min.js +1 -1
  1044. package/splitbutton/BaseSplitButton.vue +149 -0
  1045. package/splitbutton/SplitButton.d.ts +24 -2
  1046. package/splitbutton/SplitButton.vue +17 -135
  1047. package/splitbutton/splitbutton.cjs.js +230 -220
  1048. package/splitbutton/splitbutton.cjs.min.js +1 -1
  1049. package/splitbutton/splitbutton.esm.js +230 -220
  1050. package/splitbutton/splitbutton.esm.min.js +1 -1
  1051. package/splitbutton/splitbutton.js +230 -221
  1052. package/splitbutton/splitbutton.min.js +1 -1
  1053. package/splitter/BaseSplitter.vue +101 -0
  1054. package/splitter/Splitter.d.ts +12 -0
  1055. package/splitter/Splitter.vue +13 -97
  1056. package/splitter/splitter.cjs.js +427 -409
  1057. package/splitter/splitter.cjs.min.js +1 -1
  1058. package/splitter/splitter.esm.js +427 -409
  1059. package/splitter/splitter.esm.min.js +1 -1
  1060. package/splitter/splitter.js +427 -410
  1061. package/splitter/splitter.min.js +1 -1
  1062. package/splitterpanel/BaseSplitterPanel.vue +49 -0
  1063. package/splitterpanel/SplitterPanel.d.ts +12 -0
  1064. package/splitterpanel/SplitterPanel.vue +3 -16
  1065. package/splitterpanel/splitterpanel.cjs.js +52 -26
  1066. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  1067. package/splitterpanel/splitterpanel.esm.js +52 -26
  1068. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  1069. package/splitterpanel/splitterpanel.js +53 -28
  1070. package/splitterpanel/splitterpanel.min.js +1 -1
  1071. package/steps/BaseSteps.vue +112 -0
  1072. package/steps/Steps.d.ts +12 -0
  1073. package/steps/Steps.vue +14 -110
  1074. package/steps/steps.cjs.js +248 -260
  1075. package/steps/steps.cjs.min.js +1 -1
  1076. package/steps/steps.esm.js +248 -260
  1077. package/steps/steps.esm.min.js +1 -1
  1078. package/steps/steps.js +248 -261
  1079. package/steps/steps.min.js +1 -1
  1080. package/styleclass/StyleClass.d.ts +17 -0
  1081. package/styleclass/styleclass.cjs.js +117 -141
  1082. package/styleclass/styleclass.cjs.min.js +1 -1
  1083. package/styleclass/styleclass.esm.js +113 -141
  1084. package/styleclass/styleclass.esm.min.js +1 -1
  1085. package/styleclass/styleclass.js +117 -142
  1086. package/styleclass/styleclass.min.js +1 -1
  1087. package/tabmenu/BaseTabMenu.vue +100 -0
  1088. package/tabmenu/TabMenu.d.ts +12 -0
  1089. package/tabmenu/TabMenu.vue +39 -107
  1090. package/tabmenu/tabmenu.cjs.js +365 -394
  1091. package/tabmenu/tabmenu.cjs.min.js +1 -1
  1092. package/tabmenu/tabmenu.esm.js +364 -393
  1093. package/tabmenu/tabmenu.esm.min.js +1 -1
  1094. package/tabmenu/tabmenu.js +365 -395
  1095. package/tabmenu/tabmenu.min.js +1 -1
  1096. package/tabpanel/BaseTabPanel.vue +19 -0
  1097. package/tabpanel/TabPanel.d.ts +19 -0
  1098. package/tabpanel/TabPanel.vue +3 -13
  1099. package/tabpanel/tabpanel.cjs.js +19 -14
  1100. package/tabpanel/tabpanel.cjs.min.js +1 -1
  1101. package/tabpanel/tabpanel.esm.js +19 -14
  1102. package/tabpanel/tabpanel.esm.min.js +1 -1
  1103. package/tabpanel/tabpanel.js +19 -14
  1104. package/tabpanel/tabpanel.min.js +1 -1
  1105. package/tabview/BaseTabView.vue +159 -0
  1106. package/tabview/TabView.d.ts +16 -0
  1107. package/tabview/TabView.vue +53 -172
  1108. package/tabview/tabview.cjs.js +459 -459
  1109. package/tabview/tabview.cjs.min.js +1 -1
  1110. package/tabview/tabview.esm.js +458 -458
  1111. package/tabview/tabview.esm.min.js +1 -1
  1112. package/tabview/tabview.js +459 -460
  1113. package/tabview/tabview.min.js +1 -1
  1114. package/tag/BaseTag.vue +59 -0
  1115. package/tag/Tag.d.ts +12 -0
  1116. package/tag/Tag.vue +6 -47
  1117. package/tag/tag.cjs.js +58 -71
  1118. package/tag/tag.cjs.min.js +1 -1
  1119. package/tag/tag.esm.js +58 -71
  1120. package/tag/tag.esm.min.js +1 -1
  1121. package/tag/tag.js +59 -73
  1122. package/tag/tag.min.js +1 -1
  1123. package/terminal/BaseTerminal.vue +65 -0
  1124. package/terminal/Terminal.d.ts +12 -0
  1125. package/terminal/Terminal.vue +10 -45
  1126. package/terminal/terminal.cjs.js +112 -107
  1127. package/terminal/terminal.cjs.min.js +1 -1
  1128. package/terminal/terminal.esm.js +111 -106
  1129. package/terminal/terminal.esm.min.js +1 -1
  1130. package/terminal/terminal.js +112 -108
  1131. package/terminal/terminal.min.js +1 -1
  1132. package/textarea/BaseTextarea.vue +45 -0
  1133. package/textarea/Textarea.d.ts +12 -0
  1134. package/textarea/Textarea.vue +3 -18
  1135. package/textarea/textarea.cjs.js +80 -79
  1136. package/textarea/textarea.cjs.min.js +1 -1
  1137. package/textarea/textarea.esm.js +80 -79
  1138. package/textarea/textarea.esm.min.js +1 -1
  1139. package/textarea/textarea.js +81 -81
  1140. package/textarea/textarea.min.js +1 -1
  1141. package/tieredmenu/BaseTieredMenu.vue +142 -0
  1142. package/tieredmenu/TieredMenu.d.ts +16 -0
  1143. package/tieredmenu/TieredMenu.vue +5 -105
  1144. package/tieredmenu/TieredMenuSub.vue +23 -50
  1145. package/tieredmenu/tieredmenu.cjs.js +987 -941
  1146. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  1147. package/tieredmenu/tieredmenu.esm.js +987 -941
  1148. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  1149. package/tieredmenu/tieredmenu.js +987 -942
  1150. package/tieredmenu/tieredmenu.min.js +1 -1
  1151. package/timeline/BaseTimeline.vue +155 -0
  1152. package/timeline/Timeline.d.ts +11 -0
  1153. package/timeline/Timeline.vue +9 -139
  1154. package/timeline/timeline.cjs.js +87 -90
  1155. package/timeline/timeline.cjs.min.js +1 -1
  1156. package/timeline/timeline.esm.js +87 -90
  1157. package/timeline/timeline.esm.min.js +1 -1
  1158. package/timeline/timeline.js +87 -91
  1159. package/timeline/timeline.min.js +1 -1
  1160. package/toast/BaseToast.vue +181 -0
  1161. package/toast/Toast.d.ts +12 -0
  1162. package/toast/Toast.vue +4 -155
  1163. package/toast/ToastMessage.vue +9 -31
  1164. package/toast/toast.cjs.js +389 -380
  1165. package/toast/toast.cjs.min.js +1 -1
  1166. package/toast/toast.esm.js +388 -379
  1167. package/toast/toast.esm.min.js +1 -1
  1168. package/toast/toast.js +389 -381
  1169. package/toast/toast.min.js +1 -1
  1170. package/toastservice/toastservice.cjs.js +15 -16
  1171. package/toastservice/toastservice.cjs.min.js +1 -1
  1172. package/toastservice/toastservice.esm.js +15 -16
  1173. package/toastservice/toastservice.esm.min.js +1 -1
  1174. package/toastservice/toastservice.js +15 -16
  1175. package/toastservice/toastservice.min.js +1 -1
  1176. package/togglebutton/BaseToggleButton.vue +85 -0
  1177. package/togglebutton/ToggleButton.d.ts +12 -0
  1178. package/togglebutton/ToggleButton.vue +7 -77
  1179. package/togglebutton/togglebutton.cjs.js +193 -170
  1180. package/togglebutton/togglebutton.cjs.min.js +1 -1
  1181. package/togglebutton/togglebutton.esm.js +192 -169
  1182. package/togglebutton/togglebutton.esm.min.js +1 -1
  1183. package/togglebutton/togglebutton.js +194 -171
  1184. package/togglebutton/togglebutton.min.js +1 -1
  1185. package/toolbar/BaseToolbar.vue +55 -0
  1186. package/toolbar/Toolbar.d.ts +12 -0
  1187. package/toolbar/Toolbar.vue +7 -34
  1188. package/toolbar/toolbar.cjs.js +50 -52
  1189. package/toolbar/toolbar.cjs.min.js +1 -1
  1190. package/toolbar/toolbar.esm.js +50 -52
  1191. package/toolbar/toolbar.esm.min.js +1 -1
  1192. package/toolbar/toolbar.js +51 -54
  1193. package/toolbar/toolbar.min.js +1 -1
  1194. package/tooltip/Tooltip.d.ts +44 -0
  1195. package/tooltip/tooltip.cjs.js +379 -400
  1196. package/tooltip/tooltip.cjs.min.js +1 -1
  1197. package/tooltip/tooltip.esm.js +379 -404
  1198. package/tooltip/tooltip.esm.min.js +1 -1
  1199. package/tooltip/tooltip.js +409 -432
  1200. package/tooltip/tooltip.min.js +1 -1
  1201. package/tree/BaseTree.vue +211 -0
  1202. package/tree/Tree.d.ts +32 -10
  1203. package/tree/Tree.vue +13 -173
  1204. package/tree/TreeNode.vue +23 -45
  1205. package/tree/tree.cjs.js +852 -855
  1206. package/tree/tree.cjs.min.js +1 -1
  1207. package/tree/tree.esm.js +852 -855
  1208. package/tree/tree.esm.min.js +1 -1
  1209. package/tree/tree.js +852 -856
  1210. package/tree/tree.min.js +1 -1
  1211. package/treeselect/BaseTreeSelect.vue +184 -0
  1212. package/treeselect/TreeSelect.d.ts +19 -2
  1213. package/treeselect/TreeSelect.vue +21 -180
  1214. package/treeselect/treeselect.cjs.js +675 -622
  1215. package/treeselect/treeselect.cjs.min.js +1 -1
  1216. package/treeselect/treeselect.esm.js +675 -622
  1217. package/treeselect/treeselect.esm.min.js +1 -1
  1218. package/treeselect/treeselect.js +675 -623
  1219. package/treeselect/treeselect.min.js +1 -1
  1220. package/treetable/BaseTreeTable.vue +434 -0
  1221. package/treetable/BodyCell.vue +30 -29
  1222. package/treetable/FooterCell.vue +15 -11
  1223. package/treetable/HeaderCell.vue +26 -21
  1224. package/treetable/TreeTable.d.ts +29 -4
  1225. package/treetable/TreeTable.vue +37 -379
  1226. package/treetable/TreeTableRow.vue +9 -11
  1227. package/treetable/treetable.cjs.js +2104 -2129
  1228. package/treetable/treetable.cjs.min.js +1 -1
  1229. package/treetable/treetable.esm.js +2104 -2129
  1230. package/treetable/treetable.esm.min.js +1 -1
  1231. package/treetable/treetable.js +2104 -2130
  1232. package/treetable/treetable.min.js +1 -1
  1233. package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
  1234. package/tristatecheckbox/TriStateCheckbox.d.ts +33 -6
  1235. package/tristatecheckbox/TriStateCheckbox.vue +12 -49
  1236. package/tristatecheckbox/tristatecheckbox.cjs.js +196 -144
  1237. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  1238. package/tristatecheckbox/tristatecheckbox.esm.js +196 -144
  1239. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  1240. package/tristatecheckbox/tristatecheckbox.js +197 -145
  1241. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  1242. package/useconfirm/useconfirm.cjs.js +6 -9
  1243. package/useconfirm/useconfirm.cjs.min.js +1 -1
  1244. package/useconfirm/useconfirm.esm.js +6 -9
  1245. package/useconfirm/useconfirm.esm.min.js +1 -1
  1246. package/useconfirm/useconfirm.js +6 -9
  1247. package/useconfirm/useconfirm.min.js +1 -1
  1248. package/usedialog/usedialog.cjs.js +6 -9
  1249. package/usedialog/usedialog.cjs.min.js +1 -1
  1250. package/usedialog/usedialog.esm.js +6 -9
  1251. package/usedialog/usedialog.esm.min.js +1 -1
  1252. package/usedialog/usedialog.js +6 -9
  1253. package/usedialog/usedialog.min.js +1 -1
  1254. package/usestyle/UseStyle.d.ts +19 -0
  1255. package/usestyle/package.json +6 -0
  1256. package/usestyle/usestyle.cjs.js +73 -0
  1257. package/usestyle/usestyle.cjs.min.js +1 -0
  1258. package/usestyle/usestyle.esm.js +69 -0
  1259. package/usestyle/usestyle.esm.min.js +1 -0
  1260. package/usestyle/usestyle.js +76 -0
  1261. package/usestyle/usestyle.min.js +1 -0
  1262. package/usetoast/usetoast.cjs.js +6 -9
  1263. package/usetoast/usetoast.cjs.min.js +1 -1
  1264. package/usetoast/usetoast.esm.js +6 -9
  1265. package/usetoast/usetoast.esm.min.js +1 -1
  1266. package/usetoast/usetoast.js +6 -9
  1267. package/usetoast/usetoast.min.js +1 -1
  1268. package/utils/Utils.d.ts +12 -1
  1269. package/utils/utils.cjs.js +958 -996
  1270. package/utils/utils.cjs.min.js +1 -1
  1271. package/utils/utils.esm.js +958 -996
  1272. package/utils/utils.esm.min.js +1 -1
  1273. package/utils/utils.js +958 -996
  1274. package/utils/utils.min.js +1 -1
  1275. package/vetur-attributes.json +332 -0
  1276. package/vetur-tags.json +168 -80
  1277. package/virtualscroller/BaseVirtualScroller.vue +164 -0
  1278. package/virtualscroller/VirtualScroller.d.ts +22 -5
  1279. package/virtualscroller/VirtualScroller.vue +6 -151
  1280. package/virtualscroller/virtualscroller.cjs.js +865 -800
  1281. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  1282. package/virtualscroller/virtualscroller.esm.js +864 -799
  1283. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  1284. package/virtualscroller/virtualscroller.js +865 -801
  1285. package/virtualscroller/virtualscroller.min.js +1 -1
  1286. package/web-types.json +836 -4
  1287. package/resources/images/color.png +0 -0
  1288. package/resources/images/hue.png +0 -0
@@ -1,1205 +1,1160 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.inputnumber = (function (BaseComponent, Button, AngleDownIcon, AngleUpIcon, InputText, utils, vue) {
2
+ this.primevue.inputnumber = (function (Button, AngleDownIcon, AngleUpIcon, InputText, utils, BaseComponent, usestyle, vue) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
- var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
8
7
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
9
8
  var AngleDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleDownIcon);
10
9
  var AngleUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleUpIcon);
11
10
  var InputText__default = /*#__PURE__*/_interopDefaultLegacy(InputText);
11
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
12
12
 
13
+ var styles = "\n.p-inputnumber {\n display: inline-flex;\n}\n\n.p-inputnumber-button {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n}\n\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {\n display: none;\n}\n\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 0;\n}\n\n.p-inputnumber-buttons-stacked .p-inputnumber-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: 0;\n padding: 0;\n}\n\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group {\n display: flex;\n flex-direction: column;\n}\n\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {\n flex: 1 1 auto;\n}\n\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up {\n order: 3;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-inputnumber-buttons-horizontal .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n}\n\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down {\n order: 1;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-inputnumber-buttons-vertical {\n flex-direction: column;\n}\n\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up {\n order: 1;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n width: 100%;\n}\n\n.p-inputnumber-buttons-vertical .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n text-align: center;\n}\n\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down {\n order: 3;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n width: 100%;\n}\n\n.p-inputnumber-input {\n flex: 1 1 auto;\n}\n\n.p-fluid .p-inputnumber {\n width: 100%;\n}\n\n.p-fluid .p-inputnumber .p-inputnumber-input {\n width: 1%;\n}\n\n.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input {\n width: 100%;\n}\n";
14
+ var classes = {
15
+ root: function root(_ref) {
16
+ var instance = _ref.instance,
17
+ props = _ref.props;
18
+ return ['p-inputnumber p-component p-inputwrapper', {
19
+ 'p-inputwrapper-filled': instance.filled,
20
+ 'p-inputwrapper-focus': instance.focused,
21
+ 'p-inputnumber-buttons-stacked': props.showButtons && props.buttonLayout === 'stacked',
22
+ 'p-inputnumber-buttons-horizontal': props.showButtons && props.buttonLayout === 'horizontal',
23
+ 'p-inputnumber-buttons-vertical': props.showButtons && props.buttonLayout === 'vertical'
24
+ }];
25
+ },
26
+ input: 'p-inputnumber-input',
27
+ buttonGroup: 'p-inputnumber-button-group',
28
+ incrementButton: function incrementButton(_ref2) {
29
+ var instance = _ref2.instance,
30
+ props = _ref2.props;
31
+ return ['p-inputnumber-button p-inputnumber-button-up', {
32
+ 'p-disabled': props.showButtons && props.max !== null && instance.maxBoundry()
33
+ }];
34
+ },
35
+ decrementButton: function decrementButton(_ref3) {
36
+ var instance = _ref3.instance,
37
+ props = _ref3.props;
38
+ return ['p-inputnumber-button p-inputnumber-button-down', {
39
+ 'p-disabled': props.showButtons && props.min !== null && instance.minBoundry()
40
+ }];
41
+ }
42
+ };
43
+ var _useStyle = usestyle.useStyle(styles, {
44
+ name: 'inputnumber',
45
+ manual: true
46
+ }),
47
+ loadStyle = _useStyle.load;
48
+ var script$1 = {
49
+ name: 'BaseInputNumber',
50
+ "extends": BaseComponent__default["default"],
51
+ props: {
52
+ modelValue: {
53
+ type: Number,
54
+ "default": null
55
+ },
56
+ format: {
57
+ type: Boolean,
58
+ "default": true
59
+ },
60
+ showButtons: {
61
+ type: Boolean,
62
+ "default": false
63
+ },
64
+ buttonLayout: {
65
+ type: String,
66
+ "default": 'stacked'
67
+ },
68
+ incrementButtonClass: {
69
+ type: String,
70
+ "default": null
71
+ },
72
+ decrementButtonClass: {
73
+ type: String,
74
+ "default": null
75
+ },
76
+ incrementButtonIcon: {
77
+ type: String,
78
+ "default": undefined
79
+ },
80
+ decrementButtonIcon: {
81
+ type: String,
82
+ "default": undefined
83
+ },
84
+ locale: {
85
+ type: String,
86
+ "default": undefined
87
+ },
88
+ localeMatcher: {
89
+ type: String,
90
+ "default": undefined
91
+ },
92
+ mode: {
93
+ type: String,
94
+ "default": 'decimal'
95
+ },
96
+ prefix: {
97
+ type: String,
98
+ "default": null
99
+ },
100
+ suffix: {
101
+ type: String,
102
+ "default": null
103
+ },
104
+ currency: {
105
+ type: String,
106
+ "default": undefined
107
+ },
108
+ currencyDisplay: {
109
+ type: String,
110
+ "default": undefined
111
+ },
112
+ useGrouping: {
113
+ type: Boolean,
114
+ "default": true
115
+ },
116
+ minFractionDigits: {
117
+ type: Number,
118
+ "default": undefined
119
+ },
120
+ maxFractionDigits: {
121
+ type: Number,
122
+ "default": undefined
123
+ },
124
+ min: {
125
+ type: Number,
126
+ "default": null
127
+ },
128
+ max: {
129
+ type: Number,
130
+ "default": null
131
+ },
132
+ step: {
133
+ type: Number,
134
+ "default": 1
135
+ },
136
+ allowEmpty: {
137
+ type: Boolean,
138
+ "default": true
139
+ },
140
+ highlightOnFocus: {
141
+ type: Boolean,
142
+ "default": false
143
+ },
144
+ readonly: {
145
+ type: Boolean,
146
+ "default": false
147
+ },
148
+ disabled: {
149
+ type: Boolean,
150
+ "default": false
151
+ },
152
+ placeholder: {
153
+ type: String,
154
+ "default": null
155
+ },
156
+ inputId: {
157
+ type: String,
158
+ "default": null
159
+ },
160
+ inputClass: {
161
+ type: [String, Object],
162
+ "default": null
163
+ },
164
+ inputStyle: {
165
+ type: Object,
166
+ "default": null
167
+ },
168
+ inputProps: {
169
+ type: null,
170
+ "default": null
171
+ },
172
+ incrementButtonProps: {
173
+ type: null,
174
+ "default": null
175
+ },
176
+ decrementButtonProps: {
177
+ type: null,
178
+ "default": null
179
+ },
180
+ 'aria-labelledby': {
181
+ type: String,
182
+ "default": null
183
+ },
184
+ 'aria-label': {
185
+ type: String,
186
+ "default": null
187
+ }
188
+ },
189
+ css: {
190
+ classes: classes,
191
+ loadStyle: loadStyle
192
+ },
193
+ provide: function provide() {
194
+ return {
195
+ $parentInstance: this
196
+ };
197
+ }
198
+ };
199
+
200
+ function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
201
+ function ownKeys$1(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; }
202
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
203
+ function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
204
+ function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
205
+ function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
206
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
207
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
208
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
209
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
210
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
211
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
212
  var script = {
14
- name: 'InputNumber',
15
- extends: BaseComponent__default["default"],
16
- emits: ['update:modelValue', 'input', 'focus', 'blur'],
17
- props: {
18
- modelValue: {
19
- type: Number,
20
- default: null
21
- },
22
- format: {
23
- type: Boolean,
24
- default: true
25
- },
26
- showButtons: {
27
- type: Boolean,
28
- default: false
29
- },
30
- buttonLayout: {
31
- type: String,
32
- default: 'stacked'
33
- },
34
- incrementButtonClass: {
35
- type: String,
36
- default: null
37
- },
38
- decrementButtonClass: {
39
- type: String,
40
- default: null
41
- },
42
- incrementButtonIcon: {
43
- type: String,
44
- default: undefined
45
- },
46
- decrementButtonIcon: {
47
- type: String,
48
- default: undefined
49
- },
50
- locale: {
51
- type: String,
52
- default: undefined
53
- },
54
- localeMatcher: {
55
- type: String,
56
- default: undefined
57
- },
58
- mode: {
59
- type: String,
60
- default: 'decimal'
61
- },
62
- prefix: {
63
- type: String,
64
- default: null
65
- },
66
- suffix: {
67
- type: String,
68
- default: null
69
- },
70
- currency: {
71
- type: String,
72
- default: undefined
73
- },
74
- currencyDisplay: {
75
- type: String,
76
- default: undefined
77
- },
78
- useGrouping: {
79
- type: Boolean,
80
- default: true
81
- },
82
- minFractionDigits: {
83
- type: Number,
84
- default: undefined
85
- },
86
- maxFractionDigits: {
87
- type: Number,
88
- default: undefined
89
- },
90
- min: {
91
- type: Number,
92
- default: null
93
- },
94
- max: {
95
- type: Number,
96
- default: null
97
- },
98
- step: {
99
- type: Number,
100
- default: 1
101
- },
102
- allowEmpty: {
103
- type: Boolean,
104
- default: true
105
- },
106
- highlightOnFocus: {
107
- type: Boolean,
108
- default: false
109
- },
110
- readonly: {
111
- type: Boolean,
112
- default: false
113
- },
114
- disabled: {
115
- type: Boolean,
116
- default: false
117
- },
118
- placeholder: {
119
- type: String,
120
- default: null
121
- },
122
- inputId: {
123
- type: String,
124
- default: null
125
- },
126
- inputClass: {
127
- type: [String, Object],
128
- default: null
129
- },
130
- inputStyle: {
131
- type: Object,
132
- default: null
133
- },
134
- inputProps: {
135
- type: null,
136
- default: null
137
- },
138
- incrementButtonProps: {
139
- type: null,
140
- default: null
141
- },
142
- decrementButtonProps: {
143
- type: null,
144
- default: null
145
- },
146
- 'aria-labelledby': {
147
- type: String,
148
- default: null
149
- },
150
- 'aria-label': {
151
- type: String,
152
- default: null
153
- }
213
+ name: 'InputNumber',
214
+ "extends": script$1,
215
+ emits: ['update:modelValue', 'input', 'focus', 'blur'],
216
+ numberFormat: null,
217
+ _numeral: null,
218
+ _decimal: null,
219
+ _group: null,
220
+ _minusSign: null,
221
+ _currency: null,
222
+ _suffix: null,
223
+ _prefix: null,
224
+ _index: null,
225
+ groupChar: '',
226
+ isSpecialChar: null,
227
+ prefixChar: null,
228
+ suffixChar: null,
229
+ timer: null,
230
+ data: function data() {
231
+ return {
232
+ d_modelValue: this.modelValue,
233
+ focused: false
234
+ };
235
+ },
236
+ watch: {
237
+ modelValue: function modelValue(newValue) {
238
+ this.d_modelValue = newValue;
154
239
  },
155
- numberFormat: null,
156
- _numeral: null,
157
- _decimal: null,
158
- _group: null,
159
- _minusSign: null,
160
- _currency: null,
161
- _suffix: null,
162
- _prefix: null,
163
- _index: null,
164
- groupChar: '',
165
- isSpecialChar: null,
166
- prefixChar: null,
167
- suffixChar: null,
168
- timer: null,
169
- data() {
170
- return {
171
- d_modelValue: this.modelValue,
172
- focused: false
173
- };
174
- },
175
- watch: {
176
- modelValue(newValue) {
177
- this.d_modelValue = newValue;
178
- },
179
- locale(newValue, oldValue) {
180
- this.updateConstructParser(newValue, oldValue);
181
- },
182
- localeMatcher(newValue, oldValue) {
183
- this.updateConstructParser(newValue, oldValue);
184
- },
185
- mode(newValue, oldValue) {
186
- this.updateConstructParser(newValue, oldValue);
187
- },
188
- currency(newValue, oldValue) {
189
- this.updateConstructParser(newValue, oldValue);
190
- },
191
- currencyDisplay(newValue, oldValue) {
192
- this.updateConstructParser(newValue, oldValue);
193
- },
194
- useGrouping(newValue, oldValue) {
195
- this.updateConstructParser(newValue, oldValue);
196
- },
197
- minFractionDigits(newValue, oldValue) {
198
- this.updateConstructParser(newValue, oldValue);
199
- },
200
- maxFractionDigits(newValue, oldValue) {
201
- this.updateConstructParser(newValue, oldValue);
202
- },
203
- suffix(newValue, oldValue) {
204
- this.updateConstructParser(newValue, oldValue);
205
- },
206
- prefix(newValue, oldValue) {
207
- this.updateConstructParser(newValue, oldValue);
208
- }
240
+ locale: function locale(newValue, oldValue) {
241
+ this.updateConstructParser(newValue, oldValue);
242
+ },
243
+ localeMatcher: function localeMatcher(newValue, oldValue) {
244
+ this.updateConstructParser(newValue, oldValue);
245
+ },
246
+ mode: function mode(newValue, oldValue) {
247
+ this.updateConstructParser(newValue, oldValue);
248
+ },
249
+ currency: function currency(newValue, oldValue) {
250
+ this.updateConstructParser(newValue, oldValue);
251
+ },
252
+ currencyDisplay: function currencyDisplay(newValue, oldValue) {
253
+ this.updateConstructParser(newValue, oldValue);
254
+ },
255
+ useGrouping: function useGrouping(newValue, oldValue) {
256
+ this.updateConstructParser(newValue, oldValue);
257
+ },
258
+ minFractionDigits: function minFractionDigits(newValue, oldValue) {
259
+ this.updateConstructParser(newValue, oldValue);
260
+ },
261
+ maxFractionDigits: function maxFractionDigits(newValue, oldValue) {
262
+ this.updateConstructParser(newValue, oldValue);
263
+ },
264
+ suffix: function suffix(newValue, oldValue) {
265
+ this.updateConstructParser(newValue, oldValue);
266
+ },
267
+ prefix: function prefix(newValue, oldValue) {
268
+ this.updateConstructParser(newValue, oldValue);
269
+ }
270
+ },
271
+ created: function created() {
272
+ this.constructParser();
273
+ },
274
+ methods: {
275
+ getOptions: function getOptions() {
276
+ return {
277
+ localeMatcher: this.localeMatcher,
278
+ style: this.mode,
279
+ currency: this.currency,
280
+ currencyDisplay: this.currencyDisplay,
281
+ useGrouping: this.useGrouping,
282
+ minimumFractionDigits: this.minFractionDigits,
283
+ maximumFractionDigits: this.maxFractionDigits
284
+ };
285
+ },
286
+ constructParser: function constructParser() {
287
+ this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
288
+ var numerals = _toConsumableArray(new Intl.NumberFormat(this.locale, {
289
+ useGrouping: false
290
+ }).format(9876543210)).reverse();
291
+ var index = new Map(numerals.map(function (d, i) {
292
+ return [d, i];
293
+ }));
294
+ this._numeral = new RegExp("[".concat(numerals.join(''), "]"), 'g');
295
+ this._group = this.getGroupingExpression();
296
+ this._minusSign = this.getMinusSignExpression();
297
+ this._currency = this.getCurrencyExpression();
298
+ this._decimal = this.getDecimalExpression();
299
+ this._suffix = this.getSuffixExpression();
300
+ this._prefix = this.getPrefixExpression();
301
+ this._index = function (d) {
302
+ return index.get(d);
303
+ };
209
304
  },
210
- created() {
305
+ updateConstructParser: function updateConstructParser(newValue, oldValue) {
306
+ if (newValue !== oldValue) {
211
307
  this.constructParser();
308
+ }
212
309
  },
213
- methods: {
214
- getOptions() {
215
- return {
216
- localeMatcher: this.localeMatcher,
217
- style: this.mode,
218
- currency: this.currency,
219
- currencyDisplay: this.currencyDisplay,
220
- useGrouping: this.useGrouping,
221
- minimumFractionDigits: this.minFractionDigits,
222
- maximumFractionDigits: this.maxFractionDigits
223
- };
224
- },
225
- constructParser() {
226
- this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
227
- const numerals = [...new Intl.NumberFormat(this.locale, { useGrouping: false }).format(9876543210)].reverse();
228
- const index = new Map(numerals.map((d, i) => [d, i]));
229
-
230
- this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
231
- this._group = this.getGroupingExpression();
232
- this._minusSign = this.getMinusSignExpression();
233
- this._currency = this.getCurrencyExpression();
234
- this._decimal = this.getDecimalExpression();
235
- this._suffix = this.getSuffixExpression();
236
- this._prefix = this.getPrefixExpression();
237
- this._index = (d) => index.get(d);
238
- },
239
- updateConstructParser(newValue, oldValue) {
240
- if (newValue !== oldValue) {
241
- this.constructParser();
242
- }
243
- },
244
- escapeRegExp(text) {
245
- return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
246
- },
247
- getDecimalExpression() {
248
- const formatter = new Intl.NumberFormat(this.locale, { ...this.getOptions(), useGrouping: false });
249
-
250
- return new RegExp(`[${formatter.format(1.1).replace(this._currency, '').trim().replace(this._numeral, '')}]`, 'g');
251
- },
252
- getGroupingExpression() {
253
- const formatter = new Intl.NumberFormat(this.locale, { useGrouping: true });
254
-
255
- this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
256
-
257
- return new RegExp(`[${this.groupChar}]`, 'g');
258
- },
259
- getMinusSignExpression() {
260
- const formatter = new Intl.NumberFormat(this.locale, { useGrouping: false });
261
-
262
- return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
263
- },
264
- getCurrencyExpression() {
265
- if (this.currency) {
266
- const formatter = new Intl.NumberFormat(this.locale, { style: 'currency', currency: this.currency, currencyDisplay: this.currencyDisplay, minimumFractionDigits: 0, maximumFractionDigits: 0 });
267
-
268
- return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
269
- }
270
-
271
- return new RegExp(`[]`, 'g');
272
- },
273
- getPrefixExpression() {
274
- if (this.prefix) {
275
- this.prefixChar = this.prefix;
276
- } else {
277
- const formatter = new Intl.NumberFormat(this.locale, { style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay });
278
-
279
- this.prefixChar = formatter.format(1).split('1')[0];
280
- }
281
-
282
- return new RegExp(`${this.escapeRegExp(this.prefixChar || '')}`, 'g');
283
- },
284
- getSuffixExpression() {
285
- if (this.suffix) {
286
- this.suffixChar = this.suffix;
287
- } else {
288
- const formatter = new Intl.NumberFormat(this.locale, { style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay, minimumFractionDigits: 0, maximumFractionDigits: 0 });
289
-
290
- this.suffixChar = formatter.format(1).split('1')[1];
291
- }
292
-
293
- return new RegExp(`${this.escapeRegExp(this.suffixChar || '')}`, 'g');
294
- },
295
- formatValue(value) {
296
- if (value != null) {
297
- if (value === '-') {
298
- // Minus sign
299
- return value;
300
- }
301
-
302
- if (this.format) {
303
- let formatter = new Intl.NumberFormat(this.locale, this.getOptions());
304
- let formattedValue = formatter.format(value);
305
-
306
- if (this.prefix) {
307
- formattedValue = this.prefix + formattedValue;
308
- }
309
-
310
- if (this.suffix) {
311
- formattedValue = formattedValue + this.suffix;
312
- }
313
-
314
- return formattedValue;
315
- }
316
-
317
- return value.toString();
318
- }
319
-
320
- return '';
321
- },
322
- parseValue(text) {
323
- let filteredText = text
324
- .replace(this._suffix, '')
325
- .replace(this._prefix, '')
326
- .trim()
327
- .replace(/\s/g, '')
328
- .replace(this._currency, '')
329
- .replace(this._group, '')
330
- .replace(this._minusSign, '-')
331
- .replace(this._decimal, '.')
332
- .replace(this._numeral, this._index);
333
-
334
- if (filteredText) {
335
- if (filteredText === '-')
336
- // Minus sign
337
- return filteredText;
338
-
339
- let parsedValue = +filteredText;
340
-
341
- return isNaN(parsedValue) ? null : parsedValue;
342
- }
343
-
344
- return null;
345
- },
346
- repeat(event, interval, dir) {
347
- if (this.readonly) {
348
- return;
349
- }
350
-
351
- let i = interval || 500;
352
-
353
- this.clearTimer();
354
- this.timer = setTimeout(() => {
355
- this.repeat(event, 40, dir);
356
- }, i);
357
-
358
- this.spin(event, dir);
359
- },
360
- spin(event, dir) {
361
- if (this.$refs.input) {
362
- let step = this.step * dir;
363
- let currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
364
- let newValue = this.validateValue(currentValue + step);
365
-
366
- this.updateInput(newValue, null, 'spin');
367
- this.updateModel(event, newValue);
368
-
369
- this.handleOnInput(event, currentValue, newValue);
370
- }
371
- },
372
- onUpButtonMouseDown(event) {
373
- if (!this.disabled) {
374
- this.$refs.input.$el.focus();
375
- this.repeat(event, null, 1);
376
- event.preventDefault();
377
- }
378
- },
379
- onUpButtonMouseUp() {
380
- if (!this.disabled) {
381
- this.clearTimer();
382
- }
383
- },
384
- onUpButtonMouseLeave() {
385
- if (!this.disabled) {
386
- this.clearTimer();
387
- }
388
- },
389
- onUpButtonKeyUp() {
390
- if (!this.disabled) {
391
- this.clearTimer();
392
- }
393
- },
394
- onUpButtonKeyDown(event) {
395
- if (event.keyCode === 32 || event.keyCode === 13) {
396
- this.repeat(event, null, 1);
397
- }
398
- },
399
- onDownButtonMouseDown(event) {
400
- if (!this.disabled) {
401
- this.$refs.input.$el.focus();
402
- this.repeat(event, null, -1);
403
- event.preventDefault();
404
- }
405
- },
406
- onDownButtonMouseUp() {
407
- if (!this.disabled) {
408
- this.clearTimer();
409
- }
410
- },
411
- onDownButtonMouseLeave() {
412
- if (!this.disabled) {
413
- this.clearTimer();
414
- }
415
- },
416
- onDownButtonKeyUp() {
417
- if (!this.disabled) {
418
- this.clearTimer();
419
- }
420
- },
421
- onDownButtonKeyDown(event) {
422
- if (event.keyCode === 32 || event.keyCode === 13) {
423
- this.repeat(event, null, -1);
424
- }
425
- },
426
- onUserInput() {
427
- if (this.isSpecialChar) {
428
- this.$refs.input.$el.value = this.lastValue;
429
- }
430
-
431
- this.isSpecialChar = false;
432
- },
433
- onInputKeyDown(event) {
434
- if (this.readonly) {
435
- return;
436
- }
437
-
438
- this.lastValue = event.target.value;
439
-
440
- if (event.shiftKey || event.altKey) {
441
- this.isSpecialChar = true;
442
-
443
- return;
444
- }
445
-
446
- let selectionStart = event.target.selectionStart;
447
- let selectionEnd = event.target.selectionEnd;
448
- let inputValue = event.target.value;
449
- let newValueStr = null;
450
-
451
- if (event.altKey) {
452
- event.preventDefault();
453
- }
454
-
455
- switch (event.code) {
456
- case 'ArrowUp':
457
- this.spin(event, 1);
458
- event.preventDefault();
459
- break;
460
-
461
- case 'ArrowDown':
462
- this.spin(event, -1);
463
- event.preventDefault();
464
- break;
465
-
466
- case 'ArrowLeft':
467
- if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
468
- event.preventDefault();
469
- }
470
-
471
- break;
472
-
473
- case 'ArrowRight':
474
- if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
475
- event.preventDefault();
476
- }
477
-
478
- break;
479
-
480
- case 'Tab':
481
- case 'Enter':
482
- newValueStr = this.validateValue(this.parseValue(inputValue));
483
- this.$refs.input.$el.value = this.formatValue(newValueStr);
484
- this.$refs.input.$el.setAttribute('aria-valuenow', newValueStr);
485
- this.updateModel(event, newValueStr);
486
- break;
487
-
488
- case 'Backspace': {
489
- event.preventDefault();
490
-
491
- if (selectionStart === selectionEnd) {
492
- const deleteChar = inputValue.charAt(selectionStart - 1);
493
- const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
494
-
495
- if (this.isNumeralChar(deleteChar)) {
496
- const decimalLength = this.getDecimalLength(inputValue);
497
-
498
- if (this._group.test(deleteChar)) {
499
- this._group.lastIndex = 0;
500
- newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
501
- } else if (this._decimal.test(deleteChar)) {
502
- this._decimal.lastIndex = 0;
503
-
504
- if (decimalLength) {
505
- this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
506
- } else {
507
- newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
508
- }
509
- } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
510
- const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
511
-
512
- newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
513
- } else if (decimalCharIndexWithoutPrefix === 1) {
514
- newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
515
- newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
516
- } else {
517
- newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
518
- }
519
- }
520
-
521
- this.updateValue(event, newValueStr, null, 'delete-single');
522
- } else {
523
- newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
524
- this.updateValue(event, newValueStr, null, 'delete-range');
525
- }
526
-
527
- break;
528
- }
529
-
530
- case 'Delete':
531
- event.preventDefault();
532
-
533
- if (selectionStart === selectionEnd) {
534
- const deleteChar = inputValue.charAt(selectionStart);
535
- const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
536
-
537
- if (this.isNumeralChar(deleteChar)) {
538
- const decimalLength = this.getDecimalLength(inputValue);
539
-
540
- if (this._group.test(deleteChar)) {
541
- this._group.lastIndex = 0;
542
- newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
543
- } else if (this._decimal.test(deleteChar)) {
544
- this._decimal.lastIndex = 0;
545
-
546
- if (decimalLength) {
547
- this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
548
- } else {
549
- newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
550
- }
551
- } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
552
- const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
553
-
554
- newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
555
- } else if (decimalCharIndexWithoutPrefix === 1) {
556
- newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
557
- newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
558
- } else {
559
- newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
560
- }
561
- }
562
-
563
- this.updateValue(event, newValueStr, null, 'delete-back-single');
564
- } else {
565
- newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
566
- this.updateValue(event, newValueStr, null, 'delete-range');
567
- }
568
-
569
- break;
570
-
571
- case 'Home':
572
- if (this.min) {
573
- this.updateModel(event, this.min);
574
- event.preventDefault();
575
- }
576
-
577
- break;
578
-
579
- case 'End':
580
- if (this.max) {
581
- this.updateModel(event, this.max);
582
- event.preventDefault();
583
- }
584
-
585
- break;
586
- }
587
- },
588
- onInputKeyPress(event) {
589
- if (this.readonly) {
590
- return;
591
- }
592
-
310
+ escapeRegExp: function escapeRegExp(text) {
311
+ return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
312
+ },
313
+ getDecimalExpression: function getDecimalExpression() {
314
+ var formatter = new Intl.NumberFormat(this.locale, _objectSpread$1(_objectSpread$1({}, this.getOptions()), {}, {
315
+ useGrouping: false
316
+ }));
317
+ return new RegExp("[".concat(formatter.format(1.1).replace(this._currency, '').trim().replace(this._numeral, ''), "]"), 'g');
318
+ },
319
+ getGroupingExpression: function getGroupingExpression() {
320
+ var formatter = new Intl.NumberFormat(this.locale, {
321
+ useGrouping: true
322
+ });
323
+ this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
324
+ return new RegExp("[".concat(this.groupChar, "]"), 'g');
325
+ },
326
+ getMinusSignExpression: function getMinusSignExpression() {
327
+ var formatter = new Intl.NumberFormat(this.locale, {
328
+ useGrouping: false
329
+ });
330
+ return new RegExp("[".concat(formatter.format(-1).trim().replace(this._numeral, ''), "]"), 'g');
331
+ },
332
+ getCurrencyExpression: function getCurrencyExpression() {
333
+ if (this.currency) {
334
+ var formatter = new Intl.NumberFormat(this.locale, {
335
+ style: 'currency',
336
+ currency: this.currency,
337
+ currencyDisplay: this.currencyDisplay,
338
+ minimumFractionDigits: 0,
339
+ maximumFractionDigits: 0
340
+ });
341
+ return new RegExp("[".concat(formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, ''), "]"), 'g');
342
+ }
343
+ return new RegExp("[]", 'g');
344
+ },
345
+ getPrefixExpression: function getPrefixExpression() {
346
+ if (this.prefix) {
347
+ this.prefixChar = this.prefix;
348
+ } else {
349
+ var formatter = new Intl.NumberFormat(this.locale, {
350
+ style: this.mode,
351
+ currency: this.currency,
352
+ currencyDisplay: this.currencyDisplay
353
+ });
354
+ this.prefixChar = formatter.format(1).split('1')[0];
355
+ }
356
+ return new RegExp("".concat(this.escapeRegExp(this.prefixChar || '')), 'g');
357
+ },
358
+ getSuffixExpression: function getSuffixExpression() {
359
+ if (this.suffix) {
360
+ this.suffixChar = this.suffix;
361
+ } else {
362
+ var formatter = new Intl.NumberFormat(this.locale, {
363
+ style: this.mode,
364
+ currency: this.currency,
365
+ currencyDisplay: this.currencyDisplay,
366
+ minimumFractionDigits: 0,
367
+ maximumFractionDigits: 0
368
+ });
369
+ this.suffixChar = formatter.format(1).split('1')[1];
370
+ }
371
+ return new RegExp("".concat(this.escapeRegExp(this.suffixChar || '')), 'g');
372
+ },
373
+ formatValue: function formatValue(value) {
374
+ if (value != null) {
375
+ if (value === '-') {
376
+ // Minus sign
377
+ return value;
378
+ }
379
+ if (this.format) {
380
+ var formatter = new Intl.NumberFormat(this.locale, this.getOptions());
381
+ var formattedValue = formatter.format(value);
382
+ if (this.prefix) {
383
+ formattedValue = this.prefix + formattedValue;
384
+ }
385
+ if (this.suffix) {
386
+ formattedValue = formattedValue + this.suffix;
387
+ }
388
+ return formattedValue;
389
+ }
390
+ return value.toString();
391
+ }
392
+ return '';
393
+ },
394
+ parseValue: function parseValue(text) {
395
+ var filteredText = text.replace(this._suffix, '').replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '').replace(this._group, '').replace(this._minusSign, '-').replace(this._decimal, '.').replace(this._numeral, this._index);
396
+ if (filteredText) {
397
+ if (filteredText === '-')
398
+ // Minus sign
399
+ return filteredText;
400
+ var parsedValue = +filteredText;
401
+ return isNaN(parsedValue) ? null : parsedValue;
402
+ }
403
+ return null;
404
+ },
405
+ repeat: function repeat(event, interval, dir) {
406
+ var _this = this;
407
+ if (this.readonly) {
408
+ return;
409
+ }
410
+ var i = interval || 500;
411
+ this.clearTimer();
412
+ this.timer = setTimeout(function () {
413
+ _this.repeat(event, 40, dir);
414
+ }, i);
415
+ this.spin(event, dir);
416
+ },
417
+ spin: function spin(event, dir) {
418
+ if (this.$refs.input) {
419
+ var step = this.step * dir;
420
+ var currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
421
+ var newValue = this.validateValue(currentValue + step);
422
+ this.updateInput(newValue, null, 'spin');
423
+ this.updateModel(event, newValue);
424
+ this.handleOnInput(event, currentValue, newValue);
425
+ }
426
+ },
427
+ onUpButtonMouseDown: function onUpButtonMouseDown(event) {
428
+ if (!this.disabled) {
429
+ this.$refs.input.$el.focus();
430
+ this.repeat(event, null, 1);
431
+ event.preventDefault();
432
+ }
433
+ },
434
+ onUpButtonMouseUp: function onUpButtonMouseUp() {
435
+ if (!this.disabled) {
436
+ this.clearTimer();
437
+ }
438
+ },
439
+ onUpButtonMouseLeave: function onUpButtonMouseLeave() {
440
+ if (!this.disabled) {
441
+ this.clearTimer();
442
+ }
443
+ },
444
+ onUpButtonKeyUp: function onUpButtonKeyUp() {
445
+ if (!this.disabled) {
446
+ this.clearTimer();
447
+ }
448
+ },
449
+ onUpButtonKeyDown: function onUpButtonKeyDown(event) {
450
+ if (event.keyCode === 32 || event.keyCode === 13) {
451
+ this.repeat(event, null, 1);
452
+ }
453
+ },
454
+ onDownButtonMouseDown: function onDownButtonMouseDown(event) {
455
+ if (!this.disabled) {
456
+ this.$refs.input.$el.focus();
457
+ this.repeat(event, null, -1);
458
+ event.preventDefault();
459
+ }
460
+ },
461
+ onDownButtonMouseUp: function onDownButtonMouseUp() {
462
+ if (!this.disabled) {
463
+ this.clearTimer();
464
+ }
465
+ },
466
+ onDownButtonMouseLeave: function onDownButtonMouseLeave() {
467
+ if (!this.disabled) {
468
+ this.clearTimer();
469
+ }
470
+ },
471
+ onDownButtonKeyUp: function onDownButtonKeyUp() {
472
+ if (!this.disabled) {
473
+ this.clearTimer();
474
+ }
475
+ },
476
+ onDownButtonKeyDown: function onDownButtonKeyDown(event) {
477
+ if (event.keyCode === 32 || event.keyCode === 13) {
478
+ this.repeat(event, null, -1);
479
+ }
480
+ },
481
+ onUserInput: function onUserInput() {
482
+ if (this.isSpecialChar) {
483
+ this.$refs.input.$el.value = this.lastValue;
484
+ }
485
+ this.isSpecialChar = false;
486
+ },
487
+ onInputKeyDown: function onInputKeyDown(event) {
488
+ if (this.readonly) {
489
+ return;
490
+ }
491
+ this.lastValue = event.target.value;
492
+ if (event.shiftKey || event.altKey) {
493
+ this.isSpecialChar = true;
494
+ return;
495
+ }
496
+ var selectionStart = event.target.selectionStart;
497
+ var selectionEnd = event.target.selectionEnd;
498
+ var inputValue = event.target.value;
499
+ var newValueStr = null;
500
+ if (event.altKey) {
501
+ event.preventDefault();
502
+ }
503
+ switch (event.code) {
504
+ case 'ArrowUp':
505
+ this.spin(event, 1);
506
+ event.preventDefault();
507
+ break;
508
+ case 'ArrowDown':
509
+ this.spin(event, -1);
510
+ event.preventDefault();
511
+ break;
512
+ case 'ArrowLeft':
513
+ if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
593
514
  event.preventDefault();
594
- let code = event.which || event.keyCode;
595
- let char = String.fromCharCode(code);
596
- const isDecimalSign = this.isDecimalSign(char);
597
- const isMinusSign = this.isMinusSign(char);
598
-
599
- if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
600
- this.insert(event, char, { isDecimalSign, isMinusSign });
601
- }
602
- },
603
- onPaste(event) {
515
+ }
516
+ break;
517
+ case 'ArrowRight':
518
+ if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
604
519
  event.preventDefault();
605
- let data = (event.clipboardData || window['clipboardData']).getData('Text');
606
-
607
- if (data) {
608
- let filteredData = this.parseValue(data);
609
-
610
- if (filteredData != null) {
611
- this.insert(event, filteredData.toString());
612
- }
613
- }
614
- },
615
- allowMinusSign() {
616
- return this.min === null || this.min < 0;
617
- },
618
- isMinusSign(char) {
619
- if (this._minusSign.test(char) || char === '-') {
620
- this._minusSign.lastIndex = 0;
621
-
622
- return true;
623
- }
624
-
625
- return false;
626
- },
627
- isDecimalSign(char) {
628
- if (this._decimal.test(char)) {
629
- this._decimal.lastIndex = 0;
630
-
631
- return true;
632
- }
633
-
634
- return false;
635
- },
636
- isDecimalMode() {
637
- return this.mode === 'decimal';
638
- },
639
- getDecimalCharIndexes(val) {
640
- let decimalCharIndex = val.search(this._decimal);
641
-
642
- this._decimal.lastIndex = 0;
643
-
644
- const filteredVal = val.replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '');
645
- const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
646
-
647
- this._decimal.lastIndex = 0;
648
-
649
- return { decimalCharIndex, decimalCharIndexWithoutPrefix };
650
- },
651
- getCharIndexes(val) {
652
- const decimalCharIndex = val.search(this._decimal);
653
-
654
- this._decimal.lastIndex = 0;
655
- const minusCharIndex = val.search(this._minusSign);
656
-
657
- this._minusSign.lastIndex = 0;
658
- const suffixCharIndex = val.search(this._suffix);
659
-
660
- this._suffix.lastIndex = 0;
661
- const currencyCharIndex = val.search(this._currency);
662
-
663
- this._currency.lastIndex = 0;
664
-
665
- return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
666
- },
667
- insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
668
- const minusCharIndexOnText = text.search(this._minusSign);
669
-
670
- this._minusSign.lastIndex = 0;
671
-
672
- if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
673
- return;
674
- }
675
-
676
- const selectionStart = this.$refs.input.$el.selectionStart;
677
- const selectionEnd = this.$refs.input.$el.selectionEnd;
678
- let inputValue = this.$refs.input.$el.value.trim();
679
- const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
680
- let newValueStr;
681
-
682
- if (sign.isMinusSign) {
683
- if (selectionStart === 0) {
684
- newValueStr = inputValue;
685
-
686
- if (minusCharIndex === -1 || selectionEnd !== 0) {
687
- newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
688
- }
689
-
690
- this.updateValue(event, newValueStr, text, 'insert');
691
- }
692
- } else if (sign.isDecimalSign) {
693
- if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
694
- this.updateValue(event, inputValue, text, 'insert');
695
- } else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
696
- newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
697
- this.updateValue(event, newValueStr, text, 'insert');
698
- } else if (decimalCharIndex === -1 && this.maxFractionDigits) {
699
- newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
700
- this.updateValue(event, newValueStr, text, 'insert');
701
- }
702
- } else {
703
- const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
704
- const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
705
-
706
- if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
707
- if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
708
- const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
709
-
710
- newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
711
- this.updateValue(event, newValueStr, text, operation);
712
- }
713
- } else {
714
- newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
715
- this.updateValue(event, newValueStr, text, operation);
716
- }
717
- }
718
- },
719
- insertText(value, text, start, end) {
720
- let textSplit = text === '.' ? text : text.split('.');
721
-
722
- if (textSplit.length === 2) {
723
- const decimalCharIndex = value.slice(start, end).search(this._decimal);
724
-
725
- this._decimal.lastIndex = 0;
726
-
727
- return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
728
- } else if (end - start === value.length) {
729
- return this.formatValue(text);
730
- } else if (start === 0) {
731
- return text + value.slice(end);
732
- } else if (end === value.length) {
733
- return value.slice(0, start) + text;
734
- } else {
735
- return value.slice(0, start) + text + value.slice(end);
736
- }
737
- },
738
- deleteRange(value, start, end) {
739
- let newValueStr;
740
-
741
- if (end - start === value.length) newValueStr = '';
742
- else if (start === 0) newValueStr = value.slice(end);
743
- else if (end === value.length) newValueStr = value.slice(0, start);
744
- else newValueStr = value.slice(0, start) + value.slice(end);
745
-
746
- return newValueStr;
747
- },
748
- initCursor() {
749
- let selectionStart = this.$refs.input.$el.selectionStart;
750
- let inputValue = this.$refs.input.$el.value;
751
- let valueLength = inputValue.length;
752
- let index = null;
753
-
754
- // remove prefix
755
- let prefixLength = (this.prefixChar || '').length;
756
-
757
- inputValue = inputValue.replace(this._prefix, '');
758
- selectionStart = selectionStart - prefixLength;
759
-
760
- let char = inputValue.charAt(selectionStart);
761
-
762
- if (this.isNumeralChar(char)) {
763
- return selectionStart + prefixLength;
764
- }
765
-
766
- //left
767
- let i = selectionStart - 1;
768
-
769
- while (i >= 0) {
770
- char = inputValue.charAt(i);
771
-
772
- if (this.isNumeralChar(char)) {
773
- index = i + prefixLength;
774
- break;
520
+ }
521
+ break;
522
+ case 'Tab':
523
+ case 'Enter':
524
+ newValueStr = this.validateValue(this.parseValue(inputValue));
525
+ this.$refs.input.$el.value = this.formatValue(newValueStr);
526
+ this.$refs.input.$el.setAttribute('aria-valuenow', newValueStr);
527
+ this.updateModel(event, newValueStr);
528
+ break;
529
+ case 'Backspace':
530
+ {
531
+ event.preventDefault();
532
+ if (selectionStart === selectionEnd) {
533
+ var deleteChar = inputValue.charAt(selectionStart - 1);
534
+ var _this$getDecimalCharI = this.getDecimalCharIndexes(inputValue),
535
+ decimalCharIndex = _this$getDecimalCharI.decimalCharIndex,
536
+ decimalCharIndexWithoutPrefix = _this$getDecimalCharI.decimalCharIndexWithoutPrefix;
537
+ if (this.isNumeralChar(deleteChar)) {
538
+ var decimalLength = this.getDecimalLength(inputValue);
539
+ if (this._group.test(deleteChar)) {
540
+ this._group.lastIndex = 0;
541
+ newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
542
+ } else if (this._decimal.test(deleteChar)) {
543
+ this._decimal.lastIndex = 0;
544
+ if (decimalLength) {
545
+ this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
546
+ } else {
547
+ newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
548
+ }
549
+ } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
550
+ var insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
551
+ newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
552
+ } else if (decimalCharIndexWithoutPrefix === 1) {
553
+ newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
554
+ newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
775
555
  } else {
776
- i--;
556
+ newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
777
557
  }
778
- }
779
-
780
- if (index !== null) {
781
- this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
782
- } else {
783
- i = selectionStart;
784
-
785
- while (i < valueLength) {
786
- char = inputValue.charAt(i);
787
-
788
- if (this.isNumeralChar(char)) {
789
- index = i + prefixLength;
790
- break;
791
- } else {
792
- i++;
793
- }
794
- }
795
-
796
- if (index !== null) {
797
- this.$refs.input.$el.setSelectionRange(index, index);
798
- }
799
- }
800
-
801
- return index || 0;
802
- },
803
- onInputClick() {
804
- const currentValue = this.$refs.input.$el.value;
805
-
806
- if (!this.readonly && currentValue !== utils.DomHandler.getSelection()) {
807
- this.initCursor();
808
- }
809
- },
810
- isNumeralChar(char) {
811
- if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
812
- this.resetRegex();
813
-
814
- return true;
815
- }
816
-
817
- return false;
818
- },
819
- resetRegex() {
820
- this._numeral.lastIndex = 0;
821
- this._decimal.lastIndex = 0;
822
- this._group.lastIndex = 0;
823
- this._minusSign.lastIndex = 0;
824
- },
825
- updateValue(event, valueStr, insertedValueStr, operation) {
826
- let currentValue = this.$refs.input.$el.value;
827
- let newValue = null;
828
-
829
- if (valueStr != null) {
830
- newValue = this.parseValue(valueStr);
831
- newValue = !newValue && !this.allowEmpty ? 0 : newValue;
832
- this.updateInput(newValue, insertedValueStr, operation, valueStr);
833
-
834
- this.handleOnInput(event, currentValue, newValue);
835
- }
836
- },
837
- handleOnInput(event, currentValue, newValue) {
838
- if (this.isValueChanged(currentValue, newValue)) {
839
- this.$emit('input', { originalEvent: event, value: newValue, formattedValue: currentValue });
840
- }
841
- },
842
- isValueChanged(currentValue, newValue) {
843
- if (newValue === null && currentValue !== null) {
844
- return true;
845
- }
846
-
847
- if (newValue != null) {
848
- let parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;
849
-
850
- return newValue !== parsedCurrentValue;
851
- }
852
-
853
- return false;
854
- },
855
- validateValue(value) {
856
- if (value === '-' || value == null) {
857
- return null;
858
- }
859
-
860
- if (this.min != null && value < this.min) {
861
- return this.min;
862
- }
863
-
864
- if (this.max != null && value > this.max) {
865
- return this.max;
866
- }
867
-
868
- return value;
869
- },
870
- updateInput(value, insertedValueStr, operation, valueStr) {
871
- insertedValueStr = insertedValueStr || '';
872
-
873
- let inputValue = this.$refs.input.$el.value;
874
- let newValue = this.formatValue(value);
875
- let currentLength = inputValue.length;
876
-
877
- if (newValue !== valueStr) {
878
- newValue = this.concatValues(newValue, valueStr);
879
- }
880
-
881
- if (currentLength === 0) {
882
- this.$refs.input.$el.value = newValue;
883
- this.$refs.input.$el.setSelectionRange(0, 0);
884
- const index = this.initCursor();
885
- const selectionEnd = index + insertedValueStr.length;
886
-
887
- this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
558
+ }
559
+ this.updateValue(event, newValueStr, null, 'delete-single');
888
560
  } else {
889
- let selectionStart = this.$refs.input.$el.selectionStart;
890
- let selectionEnd = this.$refs.input.$el.selectionEnd;
891
-
892
- this.$refs.input.$el.value = newValue;
893
- let newLength = newValue.length;
894
-
895
- if (operation === 'range-insert') {
896
- const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
897
- const startValueStr = startValue !== null ? startValue.toString() : '';
898
- const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
899
- const sRegex = new RegExp(startExpr, 'g');
900
-
901
- sRegex.test(newValue);
902
-
903
- const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
904
- const tRegex = new RegExp(tExpr, 'g');
905
-
906
- tRegex.test(newValue.slice(sRegex.lastIndex));
907
-
908
- selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
909
- this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
910
- } else if (newLength === currentLength) {
911
- if (operation === 'insert' || operation === 'delete-back-single') this.$refs.input.$el.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
912
- else if (operation === 'delete-single') this.$refs.input.$el.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
913
- else if (operation === 'delete-range' || operation === 'spin') this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
914
- } else if (operation === 'delete-back-single') {
915
- let prevChar = inputValue.charAt(selectionEnd - 1);
916
- let nextChar = inputValue.charAt(selectionEnd);
917
- let diff = currentLength - newLength;
918
- let isGroupChar = this._group.test(nextChar);
919
-
920
- if (isGroupChar && diff === 1) {
921
- selectionEnd += 1;
922
- } else if (!isGroupChar && this.isNumeralChar(prevChar)) {
923
- selectionEnd += -1 * diff + 1;
924
- }
925
-
926
- this._group.lastIndex = 0;
927
- this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
928
- } else if (inputValue === '-' && operation === 'insert') {
929
- this.$refs.input.$el.setSelectionRange(0, 0);
930
- const index = this.initCursor();
931
- const selectionEnd = index + insertedValueStr.length + 1;
932
-
933
- this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
934
- } else {
935
- selectionEnd = selectionEnd + (newLength - currentLength);
936
- this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
937
- }
561
+ newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
562
+ this.updateValue(event, newValueStr, null, 'delete-range');
938
563
  }
939
-
940
- this.$refs.input.$el.setAttribute('aria-valuenow', value);
941
- },
942
- concatValues(val1, val2) {
943
- if (val1 && val2) {
944
- let decimalCharIndex = val2.search(this._decimal);
945
-
564
+ break;
565
+ }
566
+ case 'Delete':
567
+ event.preventDefault();
568
+ if (selectionStart === selectionEnd) {
569
+ var _deleteChar = inputValue.charAt(selectionStart);
570
+ var _this$getDecimalCharI2 = this.getDecimalCharIndexes(inputValue),
571
+ _decimalCharIndex = _this$getDecimalCharI2.decimalCharIndex,
572
+ _decimalCharIndexWithoutPrefix = _this$getDecimalCharI2.decimalCharIndexWithoutPrefix;
573
+ if (this.isNumeralChar(_deleteChar)) {
574
+ var _decimalLength = this.getDecimalLength(inputValue);
575
+ if (this._group.test(_deleteChar)) {
576
+ this._group.lastIndex = 0;
577
+ newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
578
+ } else if (this._decimal.test(_deleteChar)) {
946
579
  this._decimal.lastIndex = 0;
947
-
948
- if (this.suffixChar) {
949
- return val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar;
580
+ if (_decimalLength) {
581
+ this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
950
582
  } else {
951
- return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
952
- }
953
- }
954
-
955
- return val1;
956
- },
957
- getDecimalLength(value) {
958
- if (value) {
959
- const valueSplit = value.split(this._decimal);
960
-
961
- if (valueSplit.length === 2) {
962
- return valueSplit[1].replace(this._suffix, '').trim().replace(/\s/g, '').replace(this._currency, '').length;
583
+ newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
963
584
  }
585
+ } else if (_decimalCharIndex > 0 && selectionStart > _decimalCharIndex) {
586
+ var _insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < _decimalLength ? '' : '0';
587
+ newValueStr = inputValue.slice(0, selectionStart) + _insertedText + inputValue.slice(selectionStart + 1);
588
+ } else if (_decimalCharIndexWithoutPrefix === 1) {
589
+ newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
590
+ newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
591
+ } else {
592
+ newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
593
+ }
964
594
  }
965
-
966
- return 0;
967
- },
968
- updateModel(event, value) {
969
- this.d_modelValue = value;
970
- this.$emit('update:modelValue', value);
971
- },
972
- onInputFocus(event) {
973
- this.focused = true;
974
-
975
- if (!this.disabled && !this.readonly && this.$refs.input.$el.value !== utils.DomHandler.getSelection() && this.highlightOnFocus) {
976
- event.target.select();
977
- }
978
-
979
- this.$emit('focus', event);
595
+ this.updateValue(event, newValueStr, null, 'delete-back-single');
596
+ } else {
597
+ newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
598
+ this.updateValue(event, newValueStr, null, 'delete-range');
599
+ }
600
+ break;
601
+ case 'Home':
602
+ if (this.min) {
603
+ this.updateModel(event, this.min);
604
+ event.preventDefault();
605
+ }
606
+ break;
607
+ case 'End':
608
+ if (this.max) {
609
+ this.updateModel(event, this.max);
610
+ event.preventDefault();
611
+ }
612
+ break;
613
+ }
614
+ },
615
+ onInputKeyPress: function onInputKeyPress(event) {
616
+ if (this.readonly) {
617
+ return;
618
+ }
619
+ event.preventDefault();
620
+ var code = event.which || event.keyCode;
621
+ var _char = String.fromCharCode(code);
622
+ var isDecimalSign = this.isDecimalSign(_char);
623
+ var isMinusSign = this.isMinusSign(_char);
624
+ if (48 <= code && code <= 57 || isMinusSign || isDecimalSign) {
625
+ this.insert(event, _char, {
626
+ isDecimalSign: isDecimalSign,
627
+ isMinusSign: isMinusSign
628
+ });
629
+ }
630
+ },
631
+ onPaste: function onPaste(event) {
632
+ event.preventDefault();
633
+ var data = (event.clipboardData || window['clipboardData']).getData('Text');
634
+ if (data) {
635
+ var filteredData = this.parseValue(data);
636
+ if (filteredData != null) {
637
+ this.insert(event, filteredData.toString());
638
+ }
639
+ }
640
+ },
641
+ allowMinusSign: function allowMinusSign() {
642
+ return this.min === null || this.min < 0;
643
+ },
644
+ isMinusSign: function isMinusSign(_char2) {
645
+ if (this._minusSign.test(_char2) || _char2 === '-') {
646
+ this._minusSign.lastIndex = 0;
647
+ return true;
648
+ }
649
+ return false;
650
+ },
651
+ isDecimalSign: function isDecimalSign(_char3) {
652
+ if (this._decimal.test(_char3)) {
653
+ this._decimal.lastIndex = 0;
654
+ return true;
655
+ }
656
+ return false;
657
+ },
658
+ isDecimalMode: function isDecimalMode() {
659
+ return this.mode === 'decimal';
660
+ },
661
+ getDecimalCharIndexes: function getDecimalCharIndexes(val) {
662
+ var decimalCharIndex = val.search(this._decimal);
663
+ this._decimal.lastIndex = 0;
664
+ var filteredVal = val.replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '');
665
+ var decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
666
+ this._decimal.lastIndex = 0;
667
+ return {
668
+ decimalCharIndex: decimalCharIndex,
669
+ decimalCharIndexWithoutPrefix: decimalCharIndexWithoutPrefix
670
+ };
671
+ },
672
+ getCharIndexes: function getCharIndexes(val) {
673
+ var decimalCharIndex = val.search(this._decimal);
674
+ this._decimal.lastIndex = 0;
675
+ var minusCharIndex = val.search(this._minusSign);
676
+ this._minusSign.lastIndex = 0;
677
+ var suffixCharIndex = val.search(this._suffix);
678
+ this._suffix.lastIndex = 0;
679
+ var currencyCharIndex = val.search(this._currency);
680
+ this._currency.lastIndex = 0;
681
+ return {
682
+ decimalCharIndex: decimalCharIndex,
683
+ minusCharIndex: minusCharIndex,
684
+ suffixCharIndex: suffixCharIndex,
685
+ currencyCharIndex: currencyCharIndex
686
+ };
687
+ },
688
+ insert: function insert(event, text) {
689
+ var sign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
690
+ isDecimalSign: false,
691
+ isMinusSign: false
692
+ };
693
+ var minusCharIndexOnText = text.search(this._minusSign);
694
+ this._minusSign.lastIndex = 0;
695
+ if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
696
+ return;
697
+ }
698
+ var selectionStart = this.$refs.input.$el.selectionStart;
699
+ var selectionEnd = this.$refs.input.$el.selectionEnd;
700
+ var inputValue = this.$refs.input.$el.value.trim();
701
+ var _this$getCharIndexes = this.getCharIndexes(inputValue),
702
+ decimalCharIndex = _this$getCharIndexes.decimalCharIndex,
703
+ minusCharIndex = _this$getCharIndexes.minusCharIndex,
704
+ suffixCharIndex = _this$getCharIndexes.suffixCharIndex,
705
+ currencyCharIndex = _this$getCharIndexes.currencyCharIndex;
706
+ var newValueStr;
707
+ if (sign.isMinusSign) {
708
+ if (selectionStart === 0) {
709
+ newValueStr = inputValue;
710
+ if (minusCharIndex === -1 || selectionEnd !== 0) {
711
+ newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
712
+ }
713
+ this.updateValue(event, newValueStr, text, 'insert');
714
+ }
715
+ } else if (sign.isDecimalSign) {
716
+ if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
717
+ this.updateValue(event, inputValue, text, 'insert');
718
+ } else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
719
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
720
+ this.updateValue(event, newValueStr, text, 'insert');
721
+ } else if (decimalCharIndex === -1 && this.maxFractionDigits) {
722
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
723
+ this.updateValue(event, newValueStr, text, 'insert');
724
+ }
725
+ } else {
726
+ var maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
727
+ var operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
728
+ if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
729
+ if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
730
+ var charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
731
+ newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
732
+ this.updateValue(event, newValueStr, text, operation);
733
+ }
734
+ } else {
735
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
736
+ this.updateValue(event, newValueStr, text, operation);
737
+ }
738
+ }
739
+ },
740
+ insertText: function insertText(value, text, start, end) {
741
+ var textSplit = text === '.' ? text : text.split('.');
742
+ if (textSplit.length === 2) {
743
+ var decimalCharIndex = value.slice(start, end).search(this._decimal);
744
+ this._decimal.lastIndex = 0;
745
+ return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
746
+ } else if (end - start === value.length) {
747
+ return this.formatValue(text);
748
+ } else if (start === 0) {
749
+ return text + value.slice(end);
750
+ } else if (end === value.length) {
751
+ return value.slice(0, start) + text;
752
+ } else {
753
+ return value.slice(0, start) + text + value.slice(end);
754
+ }
755
+ },
756
+ deleteRange: function deleteRange(value, start, end) {
757
+ var newValueStr;
758
+ if (end - start === value.length) newValueStr = '';else if (start === 0) newValueStr = value.slice(end);else if (end === value.length) newValueStr = value.slice(0, start);else newValueStr = value.slice(0, start) + value.slice(end);
759
+ return newValueStr;
760
+ },
761
+ initCursor: function initCursor() {
762
+ var selectionStart = this.$refs.input.$el.selectionStart;
763
+ var inputValue = this.$refs.input.$el.value;
764
+ var valueLength = inputValue.length;
765
+ var index = null;
766
+
767
+ // remove prefix
768
+ var prefixLength = (this.prefixChar || '').length;
769
+ inputValue = inputValue.replace(this._prefix, '');
770
+ selectionStart = selectionStart - prefixLength;
771
+ var _char4 = inputValue.charAt(selectionStart);
772
+ if (this.isNumeralChar(_char4)) {
773
+ return selectionStart + prefixLength;
774
+ }
775
+
776
+ //left
777
+ var i = selectionStart - 1;
778
+ while (i >= 0) {
779
+ _char4 = inputValue.charAt(i);
780
+ if (this.isNumeralChar(_char4)) {
781
+ index = i + prefixLength;
782
+ break;
783
+ } else {
784
+ i--;
785
+ }
786
+ }
787
+ if (index !== null) {
788
+ this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
789
+ } else {
790
+ i = selectionStart;
791
+ while (i < valueLength) {
792
+ _char4 = inputValue.charAt(i);
793
+ if (this.isNumeralChar(_char4)) {
794
+ index = i + prefixLength;
795
+ break;
796
+ } else {
797
+ i++;
798
+ }
799
+ }
800
+ if (index !== null) {
801
+ this.$refs.input.$el.setSelectionRange(index, index);
802
+ }
803
+ }
804
+ return index || 0;
805
+ },
806
+ onInputClick: function onInputClick() {
807
+ var currentValue = this.$refs.input.$el.value;
808
+ if (!this.readonly && currentValue !== utils.DomHandler.getSelection()) {
809
+ this.initCursor();
810
+ }
811
+ },
812
+ isNumeralChar: function isNumeralChar(_char5) {
813
+ if (_char5.length === 1 && (this._numeral.test(_char5) || this._decimal.test(_char5) || this._group.test(_char5) || this._minusSign.test(_char5))) {
814
+ this.resetRegex();
815
+ return true;
816
+ }
817
+ return false;
818
+ },
819
+ resetRegex: function resetRegex() {
820
+ this._numeral.lastIndex = 0;
821
+ this._decimal.lastIndex = 0;
822
+ this._group.lastIndex = 0;
823
+ this._minusSign.lastIndex = 0;
824
+ },
825
+ updateValue: function updateValue(event, valueStr, insertedValueStr, operation) {
826
+ var currentValue = this.$refs.input.$el.value;
827
+ var newValue = null;
828
+ if (valueStr != null) {
829
+ newValue = this.parseValue(valueStr);
830
+ newValue = !newValue && !this.allowEmpty ? 0 : newValue;
831
+ this.updateInput(newValue, insertedValueStr, operation, valueStr);
832
+ this.handleOnInput(event, currentValue, newValue);
833
+ }
834
+ },
835
+ handleOnInput: function handleOnInput(event, currentValue, newValue) {
836
+ if (this.isValueChanged(currentValue, newValue)) {
837
+ this.$emit('input', {
838
+ originalEvent: event,
839
+ value: newValue,
840
+ formattedValue: currentValue
841
+ });
842
+ }
843
+ },
844
+ isValueChanged: function isValueChanged(currentValue, newValue) {
845
+ if (newValue === null && currentValue !== null) {
846
+ return true;
847
+ }
848
+ if (newValue != null) {
849
+ var parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;
850
+ return newValue !== parsedCurrentValue;
851
+ }
852
+ return false;
853
+ },
854
+ validateValue: function validateValue(value) {
855
+ if (value === '-' || value == null) {
856
+ return null;
857
+ }
858
+ if (this.min != null && value < this.min) {
859
+ return this.min;
860
+ }
861
+ if (this.max != null && value > this.max) {
862
+ return this.max;
863
+ }
864
+ return value;
865
+ },
866
+ updateInput: function updateInput(value, insertedValueStr, operation, valueStr) {
867
+ insertedValueStr = insertedValueStr || '';
868
+ var inputValue = this.$refs.input.$el.value;
869
+ var newValue = this.formatValue(value);
870
+ var currentLength = inputValue.length;
871
+ if (newValue !== valueStr) {
872
+ newValue = this.concatValues(newValue, valueStr);
873
+ }
874
+ if (currentLength === 0) {
875
+ this.$refs.input.$el.value = newValue;
876
+ this.$refs.input.$el.setSelectionRange(0, 0);
877
+ var index = this.initCursor();
878
+ var selectionEnd = index + insertedValueStr.length;
879
+ this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
880
+ } else {
881
+ var selectionStart = this.$refs.input.$el.selectionStart;
882
+ var _selectionEnd = this.$refs.input.$el.selectionEnd;
883
+ this.$refs.input.$el.value = newValue;
884
+ var newLength = newValue.length;
885
+ if (operation === 'range-insert') {
886
+ var startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
887
+ var startValueStr = startValue !== null ? startValue.toString() : '';
888
+ var startExpr = startValueStr.split('').join("(".concat(this.groupChar, ")?"));
889
+ var sRegex = new RegExp(startExpr, 'g');
890
+ sRegex.test(newValue);
891
+ var tExpr = insertedValueStr.split('').join("(".concat(this.groupChar, ")?"));
892
+ var tRegex = new RegExp(tExpr, 'g');
893
+ tRegex.test(newValue.slice(sRegex.lastIndex));
894
+ _selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
895
+ this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
896
+ } else if (newLength === currentLength) {
897
+ if (operation === 'insert' || operation === 'delete-back-single') this.$refs.input.$el.setSelectionRange(_selectionEnd + 1, _selectionEnd + 1);else if (operation === 'delete-single') this.$refs.input.$el.setSelectionRange(_selectionEnd - 1, _selectionEnd - 1);else if (operation === 'delete-range' || operation === 'spin') this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
898
+ } else if (operation === 'delete-back-single') {
899
+ var prevChar = inputValue.charAt(_selectionEnd - 1);
900
+ var nextChar = inputValue.charAt(_selectionEnd);
901
+ var diff = currentLength - newLength;
902
+ var isGroupChar = this._group.test(nextChar);
903
+ if (isGroupChar && diff === 1) {
904
+ _selectionEnd += 1;
905
+ } else if (!isGroupChar && this.isNumeralChar(prevChar)) {
906
+ _selectionEnd += -1 * diff + 1;
907
+ }
908
+ this._group.lastIndex = 0;
909
+ this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
910
+ } else if (inputValue === '-' && operation === 'insert') {
911
+ this.$refs.input.$el.setSelectionRange(0, 0);
912
+ var _index = this.initCursor();
913
+ var _selectionEnd2 = _index + insertedValueStr.length + 1;
914
+ this.$refs.input.$el.setSelectionRange(_selectionEnd2, _selectionEnd2);
915
+ } else {
916
+ _selectionEnd = _selectionEnd + (newLength - currentLength);
917
+ this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
918
+ }
919
+ }
920
+ this.$refs.input.$el.setAttribute('aria-valuenow', value);
921
+ },
922
+ concatValues: function concatValues(val1, val2) {
923
+ if (val1 && val2) {
924
+ var decimalCharIndex = val2.search(this._decimal);
925
+ this._decimal.lastIndex = 0;
926
+ if (this.suffixChar) {
927
+ return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar : val1;
928
+ } else {
929
+ return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
930
+ }
931
+ }
932
+ return val1;
933
+ },
934
+ getDecimalLength: function getDecimalLength(value) {
935
+ if (value) {
936
+ var valueSplit = value.split(this._decimal);
937
+ if (valueSplit.length === 2) {
938
+ return valueSplit[1].replace(this._suffix, '').trim().replace(/\s/g, '').replace(this._currency, '').length;
939
+ }
940
+ }
941
+ return 0;
942
+ },
943
+ updateModel: function updateModel(event, value) {
944
+ this.d_modelValue = value;
945
+ this.$emit('update:modelValue', value);
946
+ },
947
+ onInputFocus: function onInputFocus(event) {
948
+ this.focused = true;
949
+ if (!this.disabled && !this.readonly && this.$refs.input.$el.value !== utils.DomHandler.getSelection() && this.highlightOnFocus) {
950
+ event.target.select();
951
+ }
952
+ this.$emit('focus', event);
953
+ },
954
+ onInputBlur: function onInputBlur(event) {
955
+ this.focused = false;
956
+ var input = event.target;
957
+ var newValue = this.validateValue(this.parseValue(input.value));
958
+ this.$emit('blur', {
959
+ originalEvent: event,
960
+ value: input.value
961
+ });
962
+ input.value = this.formatValue(newValue);
963
+ input.setAttribute('aria-valuenow', newValue);
964
+ this.updateModel(event, newValue);
965
+ },
966
+ clearTimer: function clearTimer() {
967
+ if (this.timer) {
968
+ clearInterval(this.timer);
969
+ }
970
+ },
971
+ maxBoundry: function maxBoundry() {
972
+ return this.d_modelValue >= this.max;
973
+ },
974
+ minBoundry: function minBoundry() {
975
+ return this.d_modelValue <= this.min;
976
+ }
977
+ },
978
+ computed: {
979
+ filled: function filled() {
980
+ return this.modelValue != null && this.modelValue.toString().length > 0;
981
+ },
982
+ upButtonListeners: function upButtonListeners() {
983
+ var _this2 = this;
984
+ return {
985
+ mousedown: function mousedown(event) {
986
+ return _this2.onUpButtonMouseDown(event);
980
987
  },
981
- onInputBlur(event) {
982
- this.focused = false;
983
-
984
- let input = event.target;
985
- let newValue = this.validateValue(this.parseValue(input.value));
986
-
987
- this.$emit('blur', { originalEvent: event, value: input.value });
988
-
989
- input.value = this.formatValue(newValue);
990
- input.setAttribute('aria-valuenow', newValue);
991
- this.updateModel(event, newValue);
988
+ mouseup: function mouseup(event) {
989
+ return _this2.onUpButtonMouseUp(event);
992
990
  },
993
- clearTimer() {
994
- if (this.timer) {
995
- clearInterval(this.timer);
996
- }
991
+ mouseleave: function mouseleave(event) {
992
+ return _this2.onUpButtonMouseLeave(event);
997
993
  },
998
- maxBoundry() {
999
- return this.d_modelValue >= this.max;
994
+ keydown: function keydown(event) {
995
+ return _this2.onUpButtonKeyDown(event);
1000
996
  },
1001
- minBoundry() {
1002
- return this.d_modelValue <= this.min;
997
+ keyup: function keyup(event) {
998
+ return _this2.onUpButtonKeyUp(event);
1003
999
  }
1000
+ };
1004
1001
  },
1005
- computed: {
1006
- containerClass() {
1007
- return [
1008
- 'p-inputnumber p-component p-inputwrapper',
1009
- {
1010
- 'p-inputwrapper-filled': this.filled,
1011
- 'p-inputwrapper-focus': this.focused,
1012
- 'p-inputnumber-buttons-stacked': this.showButtons && this.buttonLayout === 'stacked',
1013
- 'p-inputnumber-buttons-horizontal': this.showButtons && this.buttonLayout === 'horizontal',
1014
- 'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
1015
- }
1016
- ];
1002
+ downButtonListeners: function downButtonListeners() {
1003
+ var _this3 = this;
1004
+ return {
1005
+ mousedown: function mousedown(event) {
1006
+ return _this3.onDownButtonMouseDown(event);
1017
1007
  },
1018
-
1019
- upButtonClass() {
1020
- return [
1021
- 'p-inputnumber-button p-inputnumber-button-up',
1022
- this.incrementButtonClass,
1023
- {
1024
- 'p-disabled': this.showButtons && this.max !== null && this.maxBoundry()
1025
- }
1026
- ];
1027
- },
1028
- downButtonClass() {
1029
- return [
1030
- 'p-inputnumber-button p-inputnumber-button-down',
1031
- this.decrementButtonClass,
1032
- {
1033
- 'p-disabled': this.showButtons && this.min !== null && this.minBoundry()
1034
- }
1035
- ];
1008
+ mouseup: function mouseup(event) {
1009
+ return _this3.onDownButtonMouseUp(event);
1036
1010
  },
1037
- filled() {
1038
- return this.modelValue != null && this.modelValue.toString().length > 0;
1011
+ mouseleave: function mouseleave(event) {
1012
+ return _this3.onDownButtonMouseLeave(event);
1039
1013
  },
1040
- upButtonListeners() {
1041
- return {
1042
- mousedown: (event) => this.onUpButtonMouseDown(event),
1043
- mouseup: (event) => this.onUpButtonMouseUp(event),
1044
- mouseleave: (event) => this.onUpButtonMouseLeave(event),
1045
- keydown: (event) => this.onUpButtonKeyDown(event),
1046
- keyup: (event) => this.onUpButtonKeyUp(event)
1047
- };
1048
- },
1049
- downButtonListeners() {
1050
- return {
1051
- mousedown: (event) => this.onDownButtonMouseDown(event),
1052
- mouseup: (event) => this.onDownButtonMouseUp(event),
1053
- mouseleave: (event) => this.onDownButtonMouseLeave(event),
1054
- keydown: (event) => this.onDownButtonKeyDown(event),
1055
- keyup: (event) => this.onDownButtonKeyUp(event)
1056
- };
1057
- },
1058
- formattedValue() {
1059
- const val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
1060
-
1061
- return this.formatValue(val);
1014
+ keydown: function keydown(event) {
1015
+ return _this3.onDownButtonKeyDown(event);
1062
1016
  },
1063
- getFormatter() {
1064
- return this.numberFormat;
1017
+ keyup: function keyup(event) {
1018
+ return _this3.onDownButtonKeyUp(event);
1065
1019
  }
1020
+ };
1066
1021
  },
1067
- components: {
1068
- INInputText: InputText__default["default"],
1069
- INButton: Button__default["default"],
1070
- AngleUpIcon: AngleUpIcon__default["default"],
1071
- AngleDownIcon: AngleDownIcon__default["default"]
1022
+ formattedValue: function formattedValue() {
1023
+ var val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
1024
+ return this.formatValue(val);
1025
+ },
1026
+ getFormatter: function getFormatter() {
1027
+ return this.numberFormat;
1072
1028
  }
1029
+ },
1030
+ components: {
1031
+ INInputText: InputText__default["default"],
1032
+ INButton: Button__default["default"],
1033
+ AngleUpIcon: AngleUpIcon__default["default"],
1034
+ AngleDownIcon: AngleDownIcon__default["default"]
1035
+ }
1073
1036
  };
1074
1037
 
1038
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1039
+ 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; }
1040
+ 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; }
1041
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1042
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1043
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1075
1044
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1076
- const _component_INInputText = vue.resolveComponent("INInputText");
1077
- const _component_INButton = vue.resolveComponent("INButton");
1078
-
1079
- return (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
1080
- vue.createVNode(_component_INInputText, vue.mergeProps({
1081
- ref: "input",
1082
- id: $props.inputId,
1083
- class: ["p-inputnumber-input", $props.inputClass],
1084
- role: "spinbutton",
1085
- style: $props.inputStyle,
1086
- value: $options.formattedValue,
1087
- "aria-valuemin": $props.min,
1088
- "aria-valuemax": $props.max,
1089
- "aria-valuenow": $props.modelValue,
1090
- disabled: $props.disabled,
1091
- readonly: $props.readonly,
1092
- placeholder: $props.placeholder,
1093
- "aria-labelledby": _ctx.ariaLabelledby,
1094
- "aria-label": _ctx.ariaLabel,
1095
- onInput: $options.onUserInput,
1096
- onKeydown: $options.onInputKeyDown,
1097
- onKeypress: $options.onInputKeyPress,
1098
- onPaste: $options.onPaste,
1099
- onClick: $options.onInputClick,
1100
- onFocus: $options.onInputFocus,
1101
- onBlur: $options.onInputBlur
1102
- }, { ...$props.inputProps, ..._ctx.ptm('input') }), null, 16, ["id", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur"]),
1103
- ($props.showButtons && $props.buttonLayout === 'stacked')
1104
- ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1105
- key: 0,
1106
- class: "p-inputnumber-button-group"
1107
- }, _ctx.ptm('buttonGroup')), [
1108
- vue.createVNode(_component_INButton, vue.mergeProps({ class: $options.upButtonClass }, vue.toHandlers($options.upButtonListeners), {
1109
- disabled: $props.disabled,
1110
- tabindex: -1,
1111
- "aria-hidden": "true"
1112
- }, { ...$props.incrementButtonProps, ..._ctx.ptm('incrementButton') }), {
1113
- icon: vue.withCtx(() => [
1114
- vue.renderSlot(_ctx.$slots, "incrementbuttonicon", {}, () => [
1115
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.incrementButtonIcon ? 'span' : 'AngleUpIcon'), vue.mergeProps({ class: $props.incrementButtonIcon }, _ctx.ptm('incrementButton')['icon']), null, 16, ["class"]))
1116
- ])
1117
- ]),
1118
- _: 3
1119
- }, 16, ["class", "disabled"]),
1120
- vue.createVNode(_component_INButton, vue.mergeProps({ class: $options.downButtonClass }, vue.toHandlers($options.downButtonListeners), {
1121
- disabled: $props.disabled,
1122
- tabindex: -1,
1123
- "aria-hidden": "true"
1124
- }, { ...$props.decrementButtonProps, ..._ctx.ptm('decrementButton') }), {
1125
- icon: vue.withCtx(() => [
1126
- vue.renderSlot(_ctx.$slots, "decrementbuttonicon", {}, () => [
1127
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.decrementButtonIcon ? 'span' : 'AngleDownIcon'), vue.mergeProps({ class: $props.decrementButtonIcon }, _ctx.ptm('decrementButton')['icon']), null, 16, ["class"]))
1128
- ])
1129
- ]),
1130
- _: 3
1131
- }, 16, ["class", "disabled"])
1132
- ], 16))
1133
- : vue.createCommentVNode("", true),
1134
- ($props.showButtons && $props.buttonLayout !== 'stacked')
1135
- ? (vue.openBlock(), vue.createBlock(_component_INButton, vue.mergeProps({
1136
- key: 1,
1137
- class: $options.upButtonClass
1138
- }, vue.toHandlers($options.upButtonListeners), {
1139
- disabled: $props.disabled,
1140
- tabindex: -1,
1141
- "aria-hidden": "true"
1142
- }, { ...$props.incrementButtonProps, ..._ctx.ptm('incrementButton') }), {
1143
- icon: vue.withCtx(() => [
1144
- vue.renderSlot(_ctx.$slots, "incrementbuttonicon", {}, () => [
1145
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.incrementButtonIcon ? 'span' : 'AngleUpIcon'), vue.mergeProps({ class: $props.incrementButtonIcon }, _ctx.ptm('incrementButton')['icon']), null, 16, ["class"]))
1146
- ])
1147
- ]),
1148
- _: 3
1149
- }, 16, ["class", "disabled"]))
1150
- : vue.createCommentVNode("", true),
1151
- ($props.showButtons && $props.buttonLayout !== 'stacked')
1152
- ? (vue.openBlock(), vue.createBlock(_component_INButton, vue.mergeProps({
1153
- key: 2,
1154
- class: $options.downButtonClass
1155
- }, vue.toHandlers($options.downButtonListeners), {
1156
- disabled: $props.disabled,
1157
- tabindex: -1,
1158
- "aria-hidden": "true"
1159
- }, { ...$props.decrementButtonProps, ..._ctx.ptm('decrementButton') }), {
1160
- icon: vue.withCtx(() => [
1161
- vue.renderSlot(_ctx.$slots, "decrementbuttonicon", {}, () => [
1162
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.decrementButtonIcon ? 'span' : 'AngleDownIcon'), vue.mergeProps({ class: $props.decrementButtonIcon }, _ctx.ptm('decrementButton')['icon']), null, 16, ["class"]))
1163
- ])
1164
- ]),
1165
- _: 3
1166
- }, 16, ["class", "disabled"]))
1167
- : vue.createCommentVNode("", true)
1168
- ], 16))
1045
+ var _component_INInputText = vue.resolveComponent("INInputText");
1046
+ var _component_INButton = vue.resolveComponent("INButton");
1047
+ return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1048
+ "class": _ctx.cx('root')
1049
+ }, _ctx.ptm('root'), {
1050
+ "data-pc-name": "inputnumber"
1051
+ }), [vue.createVNode(_component_INInputText, vue.mergeProps({
1052
+ ref: "input",
1053
+ id: _ctx.inputId,
1054
+ role: "spinbutton",
1055
+ "class": [_ctx.cx('input'), _ctx.inputClass],
1056
+ style: _ctx.inputStyle,
1057
+ value: $options.formattedValue,
1058
+ "aria-valuemin": _ctx.min,
1059
+ "aria-valuemax": _ctx.max,
1060
+ "aria-valuenow": _ctx.modelValue,
1061
+ disabled: _ctx.disabled,
1062
+ readonly: _ctx.readonly,
1063
+ placeholder: _ctx.placeholder,
1064
+ "aria-labelledby": _ctx.ariaLabelledby,
1065
+ "aria-label": _ctx.ariaLabel,
1066
+ onInput: $options.onUserInput,
1067
+ onKeydown: $options.onInputKeyDown,
1068
+ onKeypress: $options.onInputKeyPress,
1069
+ onPaste: $options.onPaste,
1070
+ onClick: $options.onInputClick,
1071
+ onFocus: $options.onInputFocus,
1072
+ onBlur: $options.onInputBlur
1073
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input')), {
1074
+ unstyled: _ctx.unstyled,
1075
+ "data-pc-section": "input"
1076
+ }), null, 16, ["id", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "unstyled"]), _ctx.showButtons && _ctx.buttonLayout === 'stacked' ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1077
+ key: 0,
1078
+ "class": _ctx.cx('buttonGroup')
1079
+ }, _ctx.ptm('buttonGroup')), [vue.createVNode(_component_INButton, vue.mergeProps({
1080
+ "class": [_ctx.cx('incrementButton'), _ctx.incrementButtonClass]
1081
+ }, vue.toHandlers($options.upButtonListeners), {
1082
+ disabled: _ctx.disabled,
1083
+ tabindex: -1,
1084
+ "aria-hidden": "true"
1085
+ }, _objectSpread(_objectSpread({}, _ctx.incrementButtonProps), _ctx.ptm('incrementButton')), {
1086
+ unstyled: _ctx.unstyled,
1087
+ "data-pc-section": "incrementbutton"
1088
+ }), {
1089
+ icon: vue.withCtx(function () {
1090
+ return [vue.renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function () {
1091
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), vue.mergeProps({
1092
+ "class": _ctx.incrementButtonIcon
1093
+ }, _ctx.ptm('incrementButton')['icon']), null, 16, ["class"]))];
1094
+ })];
1095
+ }),
1096
+ _: 3
1097
+ }, 16, ["class", "disabled", "unstyled"]), vue.createVNode(_component_INButton, vue.mergeProps({
1098
+ "class": [_ctx.cx('decrementButton'), _ctx.decrementButtonClass]
1099
+ }, vue.toHandlers($options.downButtonListeners), {
1100
+ disabled: _ctx.disabled,
1101
+ tabindex: -1,
1102
+ "aria-hidden": "true"
1103
+ }, _objectSpread(_objectSpread({}, _ctx.decrementButtonProps), _ctx.ptm('decrementButton')), {
1104
+ unstyled: _ctx.unstyled,
1105
+ "data-pc-section": "decrementbutton"
1106
+ }), {
1107
+ icon: vue.withCtx(function () {
1108
+ return [vue.renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function () {
1109
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), vue.mergeProps({
1110
+ "class": _ctx.decrementButtonIcon
1111
+ }, _ctx.ptm('decrementButton')['icon']), null, 16, ["class"]))];
1112
+ })];
1113
+ }),
1114
+ _: 3
1115
+ }, 16, ["class", "disabled", "unstyled"])], 16)) : vue.createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== 'stacked' ? (vue.openBlock(), vue.createBlock(_component_INButton, vue.mergeProps({
1116
+ key: 1,
1117
+ "class": [_ctx.cx('incrementButton'), _ctx.incrementButtonClass]
1118
+ }, vue.toHandlers($options.upButtonListeners), {
1119
+ disabled: _ctx.disabled,
1120
+ tabindex: -1,
1121
+ "aria-hidden": "true"
1122
+ }, _objectSpread(_objectSpread({}, _ctx.incrementButtonProps), _ctx.ptm('incrementButton')), {
1123
+ unstyled: _ctx.unstyled,
1124
+ "data-pc-section": "incrementbutton"
1125
+ }), {
1126
+ icon: vue.withCtx(function () {
1127
+ return [vue.renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function () {
1128
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), vue.mergeProps({
1129
+ "class": _ctx.incrementButtonIcon
1130
+ }, _ctx.ptm('incrementButton')['icon']), null, 16, ["class"]))];
1131
+ })];
1132
+ }),
1133
+ _: 3
1134
+ }, 16, ["class", "disabled", "unstyled"])) : vue.createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== 'stacked' ? (vue.openBlock(), vue.createBlock(_component_INButton, vue.mergeProps({
1135
+ key: 2,
1136
+ "class": [_ctx.cx('decrementButton'), _ctx.decrementButtonClass]
1137
+ }, vue.toHandlers($options.downButtonListeners), {
1138
+ disabled: _ctx.disabled,
1139
+ tabindex: -1,
1140
+ "aria-hidden": "true"
1141
+ }, _objectSpread(_objectSpread({}, _ctx.decrementButtonProps), _ctx.ptm('decrementButton')), {
1142
+ unstyled: _ctx.unstyled,
1143
+ "data-pc-section": "decrementbutton"
1144
+ }), {
1145
+ icon: vue.withCtx(function () {
1146
+ return [vue.renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function () {
1147
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), vue.mergeProps({
1148
+ "class": _ctx.decrementButtonIcon
1149
+ }, _ctx.ptm('decrementButton')['icon']), null, 16, ["class"]))];
1150
+ })];
1151
+ }),
1152
+ _: 3
1153
+ }, 16, ["class", "disabled", "unstyled"])) : vue.createCommentVNode("", true)], 16);
1169
1154
  }
1170
1155
 
1171
- function styleInject(css, ref) {
1172
- if ( ref === void 0 ) ref = {};
1173
- var insertAt = ref.insertAt;
1174
-
1175
- if (!css || typeof document === 'undefined') { return; }
1176
-
1177
- var head = document.head || document.getElementsByTagName('head')[0];
1178
- var style = document.createElement('style');
1179
- style.type = 'text/css';
1180
-
1181
- if (insertAt === 'top') {
1182
- if (head.firstChild) {
1183
- head.insertBefore(style, head.firstChild);
1184
- } else {
1185
- head.appendChild(style);
1186
- }
1187
- } else {
1188
- head.appendChild(style);
1189
- }
1190
-
1191
- if (style.styleSheet) {
1192
- style.styleSheet.cssText = css;
1193
- } else {
1194
- style.appendChild(document.createTextNode(css));
1195
- }
1196
- }
1197
-
1198
- var css_248z = "\n.p-inputnumber {\n display: inline-flex;\n}\n.p-inputnumber-button {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {\n display: none;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group {\n display: flex;\n flex-direction: column;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {\n flex: 1 1 auto;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up {\n order: 3;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down {\n order: 1;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-vertical {\n flex-direction: column;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up {\n order: 1;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-buttons-vertical .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n text-align: center;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down {\n order: 3;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-input {\n flex: 1 1 auto;\n}\n.p-fluid .p-inputnumber {\n width: 100%;\n}\n.p-fluid .p-inputnumber .p-inputnumber-input {\n width: 1%;\n}\n.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input {\n width: 100%;\n}\n";
1199
- styleInject(css_248z);
1200
-
1201
1156
  script.render = render;
1202
1157
 
1203
1158
  return script;
1204
1159
 
1205
- })(primevue.basecomponent, primevue.button, primevue.icons.angledown, primevue.icons.angleup, primevue.inputtext, primevue.utils, Vue);
1160
+ })(primevue.button, primevue.icons.angledown, primevue.icons.angleup, primevue.inputtext, primevue.utils, primevue.basecomponent, primevue.usestyle, Vue);