primevue 3.29.2 → 3.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1288) hide show
  1. package/README.md +16 -8
  2. package/accordion/Accordion.d.ts +23 -1
  3. package/accordion/Accordion.vue +39 -92
  4. package/accordion/BaseAccordion.vue +93 -0
  5. package/accordion/accordion.cjs.js +336 -330
  6. package/accordion/accordion.cjs.min.js +1 -1
  7. package/accordion/accordion.esm.js +336 -330
  8. package/accordion/accordion.esm.min.js +1 -1
  9. package/accordion/accordion.js +336 -331
  10. package/accordion/accordion.min.js +1 -1
  11. package/accordiontab/AccordionTab.d.ts +29 -1
  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 +24 -3
  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 +15 -1
  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 +13 -1
  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 +458 -12
  78. package/basecomponent/basecomponent.cjs.js +182 -36
  79. package/basecomponent/basecomponent.cjs.min.js +1 -1
  80. package/basecomponent/basecomponent.esm.js +182 -36
  81. package/basecomponent/basecomponent.esm.min.js +1 -1
  82. package/basecomponent/basecomponent.js +182 -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 +163 -0
  87. package/basedirective/basedirective.cjs.min.js +1 -0
  88. package/basedirective/basedirective.esm.js +161 -0
  89. package/basedirective/basedirective.esm.min.js +1 -0
  90. package/basedirective/basedirective.js +163 -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 +13 -1
  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 +13 -1
  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 +25 -1
  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 +25 -13
  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 +13 -1
  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 +20 -8
  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 +13 -1
  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 +42 -1
  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 +13 -1
  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 +13 -1
  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 +15 -3
  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 +57 -30
  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 +24 -1
  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 +28 -7
  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 +13 -1
  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 +13 -1
  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 +17 -1
  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 +12190 -11725
  269. package/core/core.min.js +76 -70
  270. package/datatable/BaseDataTable.vue +740 -0
  271. package/datatable/BodyCell.vue +49 -35
  272. package/datatable/ColumnFilter.vue +74 -59
  273. package/datatable/DataTable.d.ts +32 -9
  274. package/datatable/DataTable.vue +82 -593
  275. package/datatable/FooterCell.vue +16 -11
  276. package/datatable/HeaderCell.vue +31 -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 +21 -9
  282. package/datatable/TableHeader.vue +33 -21
  283. package/datatable/datatable.cjs.js +5878 -5739
  284. package/datatable/datatable.cjs.min.js +1 -1
  285. package/datatable/datatable.esm.js +5878 -5739
  286. package/datatable/datatable.esm.min.js +1 -1
  287. package/datatable/datatable.js +5878 -5740
  288. package/datatable/datatable.min.js +1 -1
  289. package/dataview/BaseDataView.vue +99 -0
  290. package/dataview/DataView.d.ts +17 -1
  291. package/dataview/DataView.vue +14 -87
  292. package/dataview/dataview.cjs.js +283 -295
  293. package/dataview/dataview.cjs.min.js +1 -1
  294. package/dataview/dataview.esm.js +282 -294
  295. package/dataview/dataview.esm.min.js +1 -1
  296. package/dataview/dataview.js +284 -296
  297. package/dataview/dataview.min.js +1 -1
  298. package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
  299. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +18 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +18 -2
  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 +58 -6
  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 +13 -1
  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 +13 -5
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +18 -1
  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 +41 -1
  765. package/inputtext/InputText.vue +11 -6
  766. package/inputtext/inputtext.cjs.js +59 -20
  767. package/inputtext/inputtext.cjs.min.js +1 -1
  768. package/inputtext/inputtext.esm.js +59 -20
  769. package/inputtext/inputtext.esm.min.js +1 -1
  770. package/inputtext/inputtext.js +59 -20
  771. package/inputtext/inputtext.min.js +1 -1
  772. package/knob/BaseKnob.vue +114 -0
  773. package/knob/Knob.d.ts +13 -1
  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 +13 -1
  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 +17 -1
  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 +13 -1
  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 +17 -1
  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 +13 -1
  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 +13 -6
  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 +30 -1
  840. package/orderlist/OrderList.vue +38 -159
  841. package/orderlist/orderlist.cjs.js +631 -686
  842. package/orderlist/orderlist.cjs.min.js +1 -1
  843. package/orderlist/orderlist.esm.js +630 -685
  844. package/orderlist/orderlist.esm.min.js +1 -1
  845. package/orderlist/orderlist.js +631 -687
  846. package/orderlist/orderlist.min.js +1 -1
  847. package/organizationchart/BaseOrganizationChart.vue +111 -0
  848. package/organizationchart/OrganizationChart.d.ts +13 -1
  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 +13 -1
  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 +20 -9
  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 +14 -2
  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 +17 -1
  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 +17 -1
  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 +36 -3
  916. package/picklist/PickList.vue +51 -180
  917. package/picklist/picklist.cjs.js +1072 -1108
  918. package/picklist/picklist.cjs.min.js +1 -1
  919. package/picklist/picklist.esm.js +1071 -1107
  920. package/picklist/picklist.esm.min.js +1 -1
  921. package/picklist/picklist.js +1072 -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 +13 -1
  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 +13 -1
  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 +18 -1
  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 +31 -2
  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 +26 -2
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +25 -3
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +36 -1
  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 +22 -1
  1107. package/tabview/TabView.vue +59 -172
  1108. package/tabview/tabview.cjs.js +462 -459
  1109. package/tabview/tabview.cjs.min.js +1 -1
  1110. package/tabview/tabview.esm.js +462 -459
  1111. package/tabview/tabview.esm.min.js +1 -1
  1112. package/tabview/tabview.js +462 -460
  1113. package/tabview/tabview.min.js +1 -1
  1114. package/tag/BaseTag.vue +59 -0
  1115. package/tag/Tag.d.ts +13 -1
  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 +13 -1
  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 +30 -1
  1134. package/textarea/Textarea.vue +10 -18
  1135. package/textarea/textarea.cjs.js +85 -77
  1136. package/textarea/textarea.cjs.min.js +1 -1
  1137. package/textarea/textarea.esm.js +85 -77
  1138. package/textarea/textarea.esm.min.js +1 -1
  1139. package/textarea/textarea.js +86 -79
  1140. package/textarea/textarea.min.js +1 -1
  1141. package/tieredmenu/BaseTieredMenu.vue +142 -0
  1142. package/tieredmenu/TieredMenu.d.ts +17 -1
  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 +31 -1
  1153. package/timeline/Timeline.vue +17 -139
  1154. package/timeline/timeline.cjs.js +97 -90
  1155. package/timeline/timeline.cjs.min.js +1 -1
  1156. package/timeline/timeline.esm.js +97 -90
  1157. package/timeline/timeline.esm.min.js +1 -1
  1158. package/timeline/timeline.js +97 -91
  1159. package/timeline/timeline.min.js +1 -1
  1160. package/toast/BaseToast.vue +181 -0
  1161. package/toast/Toast.d.ts +13 -1
  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 +13 -1
  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 +13 -1
  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 +33 -11
  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 +20 -3
  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 +31 -29
  1222. package/treetable/FooterCell.vue +16 -11
  1223. package/treetable/HeaderCell.vue +27 -21
  1224. package/treetable/TreeTable.d.ts +30 -5
  1225. package/treetable/TreeTable.vue +38 -379
  1226. package/treetable/TreeTableRow.vue +9 -11
  1227. package/treetable/treetable.cjs.js +2088 -2129
  1228. package/treetable/treetable.cjs.min.js +1 -1
  1229. package/treetable/treetable.esm.js +2088 -2129
  1230. package/treetable/treetable.esm.min.js +1 -1
  1231. package/treetable/treetable.js +2088 -2130
  1232. package/treetable/treetable.min.js +1 -1
  1233. package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
  1234. package/tristatecheckbox/TriStateCheckbox.d.ts +34 -7
  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 +20 -0
  1255. package/usestyle/package.json +6 -0
  1256. package/usestyle/usestyle.cjs.js +75 -0
  1257. package/usestyle/usestyle.cjs.min.js +1 -0
  1258. package/usestyle/usestyle.esm.js +71 -0
  1259. package/usestyle/usestyle.esm.min.js +1 -0
  1260. package/usestyle/usestyle.js +78 -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 +14 -2
  1269. package/utils/utils.cjs.js +972 -996
  1270. package/utils/utils.cjs.min.js +1 -1
  1271. package/utils/utils.esm.js +972 -996
  1272. package/utils/utils.esm.min.js +1 -1
  1273. package/utils/utils.js +972 -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 +23 -6
  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
package/utils/utils.js CHANGED
@@ -2,1030 +2,1006 @@ this.primevue = this.primevue || {};
2
2
  this.primevue.utils = (function (exports) {
3
3
  'use strict';
4
4
 
5
+ function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
6
+ function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
7
+ function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
+ function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
9
+ function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
10
+ function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "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$2(obj); }
11
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(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$2(o, minLen); }
14
+ function _arrayLikeToArray$2(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; }
15
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
16
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5
17
  var DomHandler = {
6
- innerWidth(el) {
7
- if (el) {
8
- let width = el.offsetWidth;
9
- let style = getComputedStyle(el);
10
-
11
- width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
12
-
13
- return width;
14
- }
15
-
16
- return 0;
17
- },
18
-
19
- width(el) {
20
- if (el) {
21
- let width = el.offsetWidth;
22
- let style = getComputedStyle(el);
23
-
24
- width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
25
-
26
- return width;
27
- }
28
-
29
- return 0;
30
- },
31
-
32
- getWindowScrollTop() {
33
- let doc = document.documentElement;
34
-
35
- return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
36
- },
37
-
38
- getWindowScrollLeft() {
39
- let doc = document.documentElement;
40
-
41
- return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
42
- },
43
-
44
- getOuterWidth(el, margin) {
45
- if (el) {
46
- let width = el.offsetWidth;
47
-
48
- if (margin) {
49
- let style = getComputedStyle(el);
50
-
51
- width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
52
- }
53
-
54
- return width;
55
- }
56
-
57
- return 0;
58
- },
59
-
60
- getOuterHeight(el, margin) {
61
- if (el) {
62
- let height = el.offsetHeight;
63
-
64
- if (margin) {
65
- let style = getComputedStyle(el);
66
-
67
- height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
68
- }
69
-
70
- return height;
71
- }
72
-
73
- return 0;
74
- },
75
-
76
- getClientHeight(el, margin) {
77
- if (el) {
78
- let height = el.clientHeight;
79
-
80
- if (margin) {
81
- let style = getComputedStyle(el);
82
-
83
- height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
84
- }
85
-
86
- return height;
87
- }
88
-
89
- return 0;
90
- },
91
-
92
- getViewport() {
93
- let win = window,
94
- d = document,
95
- e = d.documentElement,
96
- g = d.getElementsByTagName('body')[0],
97
- w = win.innerWidth || e.clientWidth || g.clientWidth,
98
- h = win.innerHeight || e.clientHeight || g.clientHeight;
99
-
100
- return { width: w, height: h };
101
- },
102
-
103
- getOffset(el) {
104
- if (el) {
105
- let rect = el.getBoundingClientRect();
106
-
107
- return {
108
- top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
109
- left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
110
- };
111
- }
112
-
113
- return {
114
- top: 'auto',
115
- left: 'auto'
116
- };
117
- },
118
-
119
- index(element) {
120
- if (element) {
121
- let children = element.parentNode.childNodes;
122
- let num = 0;
123
-
124
- for (let i = 0; i < children.length; i++) {
125
- if (children[i] === element) return num;
126
- if (children[i].nodeType === 1) num++;
127
- }
128
- }
129
-
130
- return -1;
131
- },
132
-
133
- addMultipleClasses(element, className) {
134
- if (element && className) {
135
- if (element.classList) {
136
- let styles = className.split(' ');
137
-
138
- for (let i = 0; i < styles.length; i++) {
139
- element.classList.add(styles[i]);
140
- }
141
- } else {
142
- let styles = className.split(' ');
143
-
144
- for (let i = 0; i < styles.length; i++) {
145
- element.className += ' ' + styles[i];
146
- }
147
- }
148
- }
149
- },
150
-
151
- addClass(element, className) {
152
- if (element && className) {
153
- if (element.classList) element.classList.add(className);
154
- else element.className += ' ' + className;
155
- }
156
- },
157
-
158
- removeClass(element, className) {
159
- if (element && className) {
160
- if (element.classList) element.classList.remove(className);
161
- else element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
162
- }
163
- },
164
-
165
- hasClass(element, className) {
166
- if (element) {
167
- if (element.classList) return element.classList.contains(className);
168
- else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
169
- }
170
-
171
- return false;
172
- },
173
-
174
- find(element, selector) {
175
- return this.isElement(element) ? element.querySelectorAll(selector) : [];
176
- },
177
-
178
- findSingle(element, selector) {
179
- return this.isElement(element) ? element.querySelector(selector) : null;
180
- },
181
-
182
- getHeight(el) {
183
- if (el) {
184
- let height = el.offsetHeight;
185
- let style = getComputedStyle(el);
186
-
187
- height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
188
-
189
- return height;
190
- }
191
-
192
- return 0;
193
- },
194
-
195
- getWidth(el) {
196
- if (el) {
197
- let width = el.offsetWidth;
198
- let style = getComputedStyle(el);
199
-
200
- width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
201
-
202
- return width;
203
- }
204
-
205
- return 0;
206
- },
207
-
208
- absolutePosition(element, target) {
209
- if (element) {
210
- let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
211
- let elementOuterHeight = elementDimensions.height;
212
- let elementOuterWidth = elementDimensions.width;
213
- let targetOuterHeight = target.offsetHeight;
214
- let targetOuterWidth = target.offsetWidth;
215
- let targetOffset = target.getBoundingClientRect();
216
- let windowScrollTop = this.getWindowScrollTop();
217
- let windowScrollLeft = this.getWindowScrollLeft();
218
- let viewport = this.getViewport();
219
- let top, left;
220
-
221
- if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
222
- top = targetOffset.top + windowScrollTop - elementOuterHeight;
223
- element.style.transformOrigin = 'bottom';
224
-
225
- if (top < 0) {
226
- top = windowScrollTop;
227
- }
228
- } else {
229
- top = targetOuterHeight + targetOffset.top + windowScrollTop;
230
- element.style.transformOrigin = 'top';
231
- }
232
-
233
- if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
234
- else left = targetOffset.left + windowScrollLeft;
235
-
236
- element.style.top = top + 'px';
237
- element.style.left = left + 'px';
238
- }
239
- },
240
-
241
- relativePosition(element, target) {
242
- if (element) {
243
- let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
244
- const targetHeight = target.offsetHeight;
245
- const targetOffset = target.getBoundingClientRect();
246
- const viewport = this.getViewport();
247
- let top, left;
248
-
249
- if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
250
- top = -1 * elementDimensions.height;
251
- element.style.transformOrigin = 'bottom';
252
-
253
- if (targetOffset.top + top < 0) {
254
- top = -1 * targetOffset.top;
255
- }
256
- } else {
257
- top = targetHeight;
258
- element.style.transformOrigin = 'top';
259
- }
260
-
261
- if (elementDimensions.width > viewport.width) {
262
- // element wider then viewport and cannot fit on screen (align at left side of viewport)
263
- left = targetOffset.left * -1;
264
- } else if (targetOffset.left + elementDimensions.width > viewport.width) {
265
- // element wider then viewport but can be fit on screen (align at right side of viewport)
266
- left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
267
- } else {
268
- // element fits on screen (align with target)
269
- left = 0;
270
- }
271
-
272
- element.style.top = top + 'px';
273
- element.style.left = left + 'px';
274
- }
275
- },
276
-
277
- getParents(element, parents = []) {
278
- return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
279
- },
280
-
281
- getScrollableParents(element) {
282
- let scrollableParents = [];
283
-
284
- if (element) {
285
- let parents = this.getParents(element);
286
- const overflowRegex = /(auto|scroll)/;
287
-
288
- const overflowCheck = (node) => {
289
- let styleDeclaration = window['getComputedStyle'](node, null);
290
-
291
- return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
292
- };
293
-
294
- for (let parent of parents) {
295
- let scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
296
-
297
- if (scrollSelectors) {
298
- let selectors = scrollSelectors.split(',');
299
-
300
- for (let selector of selectors) {
301
- let el = this.findSingle(parent, selector);
302
-
303
- if (el && overflowCheck(el)) {
304
- scrollableParents.push(el);
305
- }
306
- }
307
- }
308
-
309
- if (parent.nodeType !== 9 && overflowCheck(parent)) {
310
- scrollableParents.push(parent);
311
- }
312
- }
313
- }
314
-
315
- return scrollableParents;
316
- },
317
-
318
- getHiddenElementOuterHeight(element) {
319
- if (element) {
320
- element.style.visibility = 'hidden';
321
- element.style.display = 'block';
322
- let elementHeight = element.offsetHeight;
323
-
324
- element.style.display = 'none';
325
- element.style.visibility = 'visible';
326
-
327
- return elementHeight;
328
- }
329
-
330
- return 0;
331
- },
332
-
333
- getHiddenElementOuterWidth(element) {
334
- if (element) {
335
- element.style.visibility = 'hidden';
336
- element.style.display = 'block';
337
- let elementWidth = element.offsetWidth;
338
-
339
- element.style.display = 'none';
340
- element.style.visibility = 'visible';
341
-
342
- return elementWidth;
343
- }
344
-
345
- return 0;
346
- },
347
-
348
- getHiddenElementDimensions(element) {
349
- if (element) {
350
- let dimensions = {};
351
-
352
- element.style.visibility = 'hidden';
353
- element.style.display = 'block';
354
- dimensions.width = element.offsetWidth;
355
- dimensions.height = element.offsetHeight;
356
- element.style.display = 'none';
357
- element.style.visibility = 'visible';
358
-
359
- return dimensions;
360
- }
361
-
362
- return 0;
363
- },
364
-
365
- fadeIn(element, duration) {
366
- if (element) {
367
- element.style.opacity = 0;
368
-
369
- let last = +new Date();
370
- let opacity = 0;
371
-
372
- let tick = function () {
373
- opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
374
- element.style.opacity = opacity;
375
- last = +new Date();
376
-
377
- if (+opacity < 1) {
378
- (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16);
379
- }
380
- };
381
-
382
- tick();
383
- }
384
- },
385
-
386
- fadeOut(element, ms) {
387
- if (element) {
388
- let opacity = 1,
389
- interval = 50,
390
- duration = ms,
391
- gap = interval / duration;
392
-
393
- let fading = setInterval(() => {
394
- opacity -= gap;
395
-
396
- if (opacity <= 0) {
397
- opacity = 0;
398
- clearInterval(fading);
399
- }
400
-
401
- element.style.opacity = opacity;
402
- }, interval);
403
- }
404
- },
405
-
406
- getUserAgent() {
407
- return navigator.userAgent;
408
- },
409
-
410
- appendChild(element, target) {
411
- if (this.isElement(target)) target.appendChild(element);
412
- else if (target.el && target.elElement) target.elElement.appendChild(element);
413
- else throw new Error('Cannot append ' + target + ' to ' + element);
414
- },
415
-
416
- isElement(obj) {
417
- return typeof HTMLElement === 'object' ? obj instanceof HTMLElement : obj && typeof obj === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
418
- },
419
-
420
- scrollInView(container, item) {
421
- let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
422
- let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
423
- let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
424
- let paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
425
- let containerRect = container.getBoundingClientRect();
426
- let itemRect = item.getBoundingClientRect();
427
- let offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
428
- let scroll = container.scrollTop;
429
- let elementHeight = container.clientHeight;
430
- let itemHeight = this.getOuterHeight(item);
431
-
432
- if (offset < 0) {
433
- container.scrollTop = scroll + offset;
434
- } else if (offset + itemHeight > elementHeight) {
435
- container.scrollTop = scroll + offset - elementHeight + itemHeight;
436
- }
437
- },
438
-
439
- clearSelection() {
440
- if (window.getSelection) {
441
- if (window.getSelection().empty) {
442
- window.getSelection().empty();
443
- } else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
444
- window.getSelection().removeAllRanges();
18
+ innerWidth: function innerWidth(el) {
19
+ if (el) {
20
+ var width = el.offsetWidth;
21
+ var style = getComputedStyle(el);
22
+ width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
23
+ return width;
24
+ }
25
+ return 0;
26
+ },
27
+ width: function width(el) {
28
+ if (el) {
29
+ var width = el.offsetWidth;
30
+ var style = getComputedStyle(el);
31
+ width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
32
+ return width;
33
+ }
34
+ return 0;
35
+ },
36
+ getWindowScrollTop: function getWindowScrollTop() {
37
+ var doc = document.documentElement;
38
+ return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
39
+ },
40
+ getWindowScrollLeft: function getWindowScrollLeft() {
41
+ var doc = document.documentElement;
42
+ return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
43
+ },
44
+ getOuterWidth: function getOuterWidth(el, margin) {
45
+ if (el) {
46
+ var width = el.offsetWidth;
47
+ if (margin) {
48
+ var style = getComputedStyle(el);
49
+ width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
50
+ }
51
+ return width;
52
+ }
53
+ return 0;
54
+ },
55
+ getOuterHeight: function getOuterHeight(el, margin) {
56
+ if (el) {
57
+ var height = el.offsetHeight;
58
+ if (margin) {
59
+ var style = getComputedStyle(el);
60
+ height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
61
+ }
62
+ return height;
63
+ }
64
+ return 0;
65
+ },
66
+ getClientHeight: function getClientHeight(el, margin) {
67
+ if (el) {
68
+ var height = el.clientHeight;
69
+ if (margin) {
70
+ var style = getComputedStyle(el);
71
+ height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
72
+ }
73
+ return height;
74
+ }
75
+ return 0;
76
+ },
77
+ getViewport: function getViewport() {
78
+ var win = window,
79
+ d = document,
80
+ e = d.documentElement,
81
+ g = d.getElementsByTagName('body')[0],
82
+ w = win.innerWidth || e.clientWidth || g.clientWidth,
83
+ h = win.innerHeight || e.clientHeight || g.clientHeight;
84
+ return {
85
+ width: w,
86
+ height: h
87
+ };
88
+ },
89
+ getOffset: function getOffset(el) {
90
+ if (el) {
91
+ var rect = el.getBoundingClientRect();
92
+ return {
93
+ top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
94
+ left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
95
+ };
96
+ }
97
+ return {
98
+ top: 'auto',
99
+ left: 'auto'
100
+ };
101
+ },
102
+ index: function index(element) {
103
+ if (element) {
104
+ var children = element.parentNode.childNodes;
105
+ var num = 0;
106
+ for (var i = 0; i < children.length; i++) {
107
+ if (children[i] === element) return num;
108
+ if (children[i].nodeType === 1) num++;
109
+ }
110
+ }
111
+ return -1;
112
+ },
113
+ addMultipleClasses: function addMultipleClasses(element, className) {
114
+ var _this = this;
115
+ if (element && className) {
116
+ className.split(' ').forEach(function (style) {
117
+ return _this.addClass(element, style);
118
+ });
119
+ }
120
+ },
121
+ addClass: function addClass(element, className) {
122
+ if (element && className && !this.hasClass(element, className)) {
123
+ if (element.classList) element.classList.add(className);else element.className += ' ' + className;
124
+ }
125
+ },
126
+ removeClass: function removeClass(element, className) {
127
+ if (element && className) {
128
+ if (element.classList) element.classList.remove(className);else element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
129
+ }
130
+ },
131
+ hasClass: function hasClass(element, className) {
132
+ if (element) {
133
+ if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
134
+ }
135
+ return false;
136
+ },
137
+ addStyles: function addStyles(element) {
138
+ var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
139
+ if (element) {
140
+ Object.entries(styles).forEach(function (_ref) {
141
+ var _ref2 = _slicedToArray(_ref, 2),
142
+ key = _ref2[0],
143
+ value = _ref2[1];
144
+ return element.style[key] = value;
145
+ });
146
+ }
147
+ },
148
+ find: function find(element, selector) {
149
+ return this.isElement(element) ? element.querySelectorAll(selector) : [];
150
+ },
151
+ findSingle: function findSingle(element, selector) {
152
+ return this.isElement(element) ? element.querySelector(selector) : null;
153
+ },
154
+ createElement: function createElement(type) {
155
+ var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
156
+ if (type) {
157
+ var element = document.createElement(type);
158
+ this.setAttributes(element, attributes);
159
+ for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
160
+ children[_key - 2] = arguments[_key];
161
+ }
162
+ element.append.apply(element, children);
163
+ return element;
164
+ }
165
+ return undefined;
166
+ },
167
+ setAttributes: function setAttributes(element) {
168
+ var _this2 = this;
169
+ var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
170
+ if (element) {
171
+ var computedStyles = function computedStyles(rule, value) {
172
+ var _element$$attrs, _element$$attrs2;
173
+ var styles = element !== null && element !== void 0 && (_element$$attrs = element.$attrs) !== null && _element$$attrs !== void 0 && _element$$attrs[rule] ? [element === null || element === void 0 || (_element$$attrs2 = element.$attrs) === null || _element$$attrs2 === void 0 ? void 0 : _element$$attrs2[rule]] : [];
174
+ return [value].flat().reduce(function (cv, v) {
175
+ if (v !== null && v !== undefined) {
176
+ var type = _typeof$2(v);
177
+ if (type === 'string' || type === 'number') {
178
+ cv.push(v);
179
+ } else if (type === 'object') {
180
+ var _cv = Array.isArray(v) ? computedStyles(rule, v) : Object.entries(v).map(function (_ref3) {
181
+ var _ref4 = _slicedToArray(_ref3, 2),
182
+ _k = _ref4[0],
183
+ _v = _ref4[1];
184
+ return rule === 'style' && (!!_v || _v === 0) ? "".concat(_k.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(), ":").concat(_v) : !!_v ? _k : undefined;
185
+ });
186
+ cv = _cv.length ? cv.concat(_cv.filter(function (c) {
187
+ return !!c;
188
+ })) : cv;
445
189
  }
446
- } else if (document['selection'] && document['selection'].empty) {
190
+ }
191
+ return cv;
192
+ }, styles);
193
+ };
194
+ Object.entries(attributes).forEach(function (_ref5) {
195
+ var _ref6 = _slicedToArray(_ref5, 2),
196
+ key = _ref6[0],
197
+ value = _ref6[1];
198
+ if (value !== undefined && value !== null) {
199
+ var matchedEvent = key.match(/^on(.+)/);
200
+ if (matchedEvent) {
201
+ element.addEventListener(matchedEvent[1].toLowerCase(), value);
202
+ } else if (key === 'p-bind') {
203
+ _this2.setAttributes(element, value);
204
+ } else {
205
+ value = key === 'class' ? _toConsumableArray$2(new Set(computedStyles('class', value))).join(' ').trim() : key === 'style' ? computedStyles('style', value).join(';').trim() : value;
206
+ (element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
207
+ element.setAttribute(key, value);
208
+ }
209
+ }
210
+ });
211
+ }
212
+ },
213
+ getAttribute: function getAttribute(element, name) {
214
+ if (element) {
215
+ var value = element.getAttribute(name);
216
+ if (!isNaN(value)) {
217
+ return +value;
218
+ }
219
+ if (value === 'true' || value === 'false') {
220
+ return value === 'true';
221
+ }
222
+ return value;
223
+ }
224
+ return undefined;
225
+ },
226
+ isAttributeEquals: function isAttributeEquals(element, name, value) {
227
+ return element ? this.getAttribute(element, name) === value : false;
228
+ },
229
+ isAttributeNotEquals: function isAttributeNotEquals(element, name, value) {
230
+ return !this.isAttributeEquals(element, name, value);
231
+ },
232
+ getHeight: function getHeight(el) {
233
+ if (el) {
234
+ var height = el.offsetHeight;
235
+ var style = getComputedStyle(el);
236
+ height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
237
+ return height;
238
+ }
239
+ return 0;
240
+ },
241
+ getWidth: function getWidth(el) {
242
+ if (el) {
243
+ var width = el.offsetWidth;
244
+ var style = getComputedStyle(el);
245
+ width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
246
+ return width;
247
+ }
248
+ return 0;
249
+ },
250
+ absolutePosition: function absolutePosition(element, target) {
251
+ if (element) {
252
+ var elementDimensions = element.offsetParent ? {
253
+ width: element.offsetWidth,
254
+ height: element.offsetHeight
255
+ } : this.getHiddenElementDimensions(element);
256
+ var elementOuterHeight = elementDimensions.height;
257
+ var elementOuterWidth = elementDimensions.width;
258
+ var targetOuterHeight = target.offsetHeight;
259
+ var targetOuterWidth = target.offsetWidth;
260
+ var targetOffset = target.getBoundingClientRect();
261
+ var windowScrollTop = this.getWindowScrollTop();
262
+ var windowScrollLeft = this.getWindowScrollLeft();
263
+ var viewport = this.getViewport();
264
+ var top, left;
265
+ if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
266
+ top = targetOffset.top + windowScrollTop - elementOuterHeight;
267
+ element.style.transformOrigin = 'bottom';
268
+ if (top < 0) {
269
+ top = windowScrollTop;
270
+ }
271
+ } else {
272
+ top = targetOuterHeight + targetOffset.top + windowScrollTop;
273
+ element.style.transformOrigin = 'top';
274
+ }
275
+ if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
276
+ element.style.top = top + 'px';
277
+ element.style.left = left + 'px';
278
+ }
279
+ },
280
+ relativePosition: function relativePosition(element, target) {
281
+ if (element) {
282
+ var elementDimensions = element.offsetParent ? {
283
+ width: element.offsetWidth,
284
+ height: element.offsetHeight
285
+ } : this.getHiddenElementDimensions(element);
286
+ var targetHeight = target.offsetHeight;
287
+ var targetOffset = target.getBoundingClientRect();
288
+ var viewport = this.getViewport();
289
+ var top, left;
290
+ if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
291
+ top = -1 * elementDimensions.height;
292
+ element.style.transformOrigin = 'bottom';
293
+ if (targetOffset.top + top < 0) {
294
+ top = -1 * targetOffset.top;
295
+ }
296
+ } else {
297
+ top = targetHeight;
298
+ element.style.transformOrigin = 'top';
299
+ }
300
+ if (elementDimensions.width > viewport.width) {
301
+ // element wider then viewport and cannot fit on screen (align at left side of viewport)
302
+ left = targetOffset.left * -1;
303
+ } else if (targetOffset.left + elementDimensions.width > viewport.width) {
304
+ // element wider then viewport but can be fit on screen (align at right side of viewport)
305
+ left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
306
+ } else {
307
+ // element fits on screen (align with target)
308
+ left = 0;
309
+ }
310
+ element.style.top = top + 'px';
311
+ element.style.left = left + 'px';
312
+ }
313
+ },
314
+ getParents: function getParents(element) {
315
+ var parents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
316
+ return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
317
+ },
318
+ getScrollableParents: function getScrollableParents(element) {
319
+ var scrollableParents = [];
320
+ if (element) {
321
+ var parents = this.getParents(element);
322
+ var overflowRegex = /(auto|scroll)/;
323
+ var overflowCheck = function overflowCheck(node) {
324
+ try {
325
+ var styleDeclaration = window['getComputedStyle'](node, null);
326
+ return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
327
+ } catch (err) {
328
+ return false;
329
+ }
330
+ };
331
+ var _iterator = _createForOfIteratorHelper$1(parents),
332
+ _step;
333
+ try {
334
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
335
+ var parent = _step.value;
336
+ var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
337
+ if (scrollSelectors) {
338
+ var selectors = scrollSelectors.split(',');
339
+ var _iterator2 = _createForOfIteratorHelper$1(selectors),
340
+ _step2;
447
341
  try {
448
- document['selection'].empty();
449
- } catch (error) {
450
- //ignore IE bug
451
- }
452
- }
453
- },
454
-
455
- getSelection() {
456
- if (window.getSelection) return window.getSelection().toString();
457
- else if (document.getSelection) return document.getSelection().toString();
458
- else if (document['selection']) return document['selection'].createRange().text;
459
-
460
- return null;
461
- },
462
-
463
- calculateScrollbarWidth() {
464
- if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
465
-
466
- let scrollDiv = document.createElement('div');
467
-
468
- scrollDiv.className = 'p-scrollbar-measure';
469
- document.body.appendChild(scrollDiv);
470
-
471
- let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
472
-
473
- document.body.removeChild(scrollDiv);
474
-
475
- this.calculatedScrollbarWidth = scrollbarWidth;
476
-
477
- return scrollbarWidth;
478
- },
479
-
480
- getBrowser() {
481
- if (!this.browser) {
482
- let matched = this.resolveUserAgent();
483
-
484
- this.browser = {};
485
-
486
- if (matched.browser) {
487
- this.browser[matched.browser] = true;
488
- this.browser['version'] = matched.version;
489
- }
490
-
491
- if (this.browser['chrome']) {
492
- this.browser['webkit'] = true;
493
- } else if (this.browser['webkit']) {
494
- this.browser['safari'] = true;
495
- }
496
- }
497
-
498
- return this.browser;
499
- },
500
-
501
- resolveUserAgent() {
502
- let ua = navigator.userAgent.toLowerCase();
503
- let match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || (ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)) || [];
504
-
505
- return {
506
- browser: match[1] || '',
507
- version: match[2] || '0'
508
- };
509
- },
510
-
511
- isVisible(element) {
512
- return element && element.offsetParent != null;
513
- },
514
-
515
- invokeElementMethod(element, methodName, args) {
516
- element[methodName].apply(element, args);
517
- },
518
-
519
- isExist(element) {
520
- return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
521
- },
522
-
523
- isClient() {
524
- return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
525
- },
526
-
527
- focus(el, options) {
528
- el && document.activeElement !== el && el.focus(options);
529
- },
530
-
531
- isFocusableElement(element, selector = '') {
532
- return this.isElement(element)
533
- ? element.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
534
- [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
535
- input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
536
- select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
537
- textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
538
- [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
539
- [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector}`)
540
- : false;
541
- },
542
-
543
- getFocusableElements(element, selector = '') {
544
- let focusableElements = this.find(
545
- element,
546
- `button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
547
- [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
548
- input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
549
- select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
550
- textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
551
- [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
552
- [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector}`
553
- );
554
-
555
- let visibleFocusableElements = [];
556
-
557
- for (let focusableElement of focusableElements) {
558
- if (getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
559
- }
560
-
561
- return visibleFocusableElements;
562
- },
563
-
564
- getFirstFocusableElement(element, selector) {
565
- const focusableElements = this.getFocusableElements(element, selector);
566
-
567
- return focusableElements.length > 0 ? focusableElements[0] : null;
568
- },
569
-
570
- getLastFocusableElement(element, selector) {
571
- const focusableElements = this.getFocusableElements(element, selector);
572
-
573
- return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
574
- },
575
-
576
- getNextFocusableElement(container, element, selector) {
577
- const focusableElements = this.getFocusableElements(container, selector);
578
- const index = focusableElements.length > 0 ? focusableElements.findIndex((el) => el === element) : -1;
579
- const nextIndex = index > -1 && focusableElements.length >= index + 1 ? index + 1 : -1;
580
-
581
- return nextIndex > -1 ? focusableElements[nextIndex] : null;
582
- },
583
-
584
- isClickable(element) {
585
- if (element) {
586
- const targetNode = element.nodeName;
587
- const parentNode = element.parentElement && element.parentElement.nodeName;
588
-
589
- return (
590
- targetNode === 'INPUT' ||
591
- targetNode === 'TEXTAREA' ||
592
- targetNode === 'BUTTON' ||
593
- targetNode === 'A' ||
594
- parentNode === 'INPUT' ||
595
- parentNode === 'TEXTAREA' ||
596
- parentNode === 'BUTTON' ||
597
- parentNode === 'A' ||
598
- !!element.closest('.p-button, .p-checkbox, .p-radiobutton')
599
- );
600
- }
601
-
602
- return false;
603
- },
604
-
605
- applyStyle(element, style) {
606
- if (typeof style === 'string') {
607
- element.style.cssText = style;
608
- } else {
609
- for (let prop in style) {
610
- element.style[prop] = style[prop];
611
- }
612
- }
613
- },
614
-
615
- isIOS() {
616
- return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
617
- },
618
-
619
- isAndroid() {
620
- return /(android)/i.test(navigator.userAgent);
621
- },
622
-
623
- isTouchDevice() {
624
- return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
625
- },
626
-
627
- exportCSV(csv, filename) {
628
- let blob = new Blob([csv], {
629
- type: 'application/csv;charset=utf-8;'
630
- });
631
-
632
- if (window.navigator.msSaveOrOpenBlob) {
633
- navigator.msSaveOrOpenBlob(blob, filename + '.csv');
634
- } else {
635
- let link = document.createElement('a');
636
-
637
- if (link.download !== undefined) {
638
- link.setAttribute('href', URL.createObjectURL(blob));
639
- link.setAttribute('download', filename + '.csv');
640
- link.style.display = 'none';
641
- document.body.appendChild(link);
642
- link.click();
643
- document.body.removeChild(link);
644
- } else {
645
- csv = 'data:text/csv;charset=utf-8,' + csv;
646
- window.open(encodeURI(csv));
342
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
343
+ var selector = _step2.value;
344
+ var el = this.findSingle(parent, selector);
345
+ if (el && overflowCheck(el)) {
346
+ scrollableParents.push(el);
347
+ }
348
+ }
349
+ } catch (err) {
350
+ _iterator2.e(err);
351
+ } finally {
352
+ _iterator2.f();
647
353
  }
648
- }
354
+ }
355
+ if (parent.nodeType !== 9 && overflowCheck(parent)) {
356
+ scrollableParents.push(parent);
357
+ }
358
+ }
359
+ } catch (err) {
360
+ _iterator.e(err);
361
+ } finally {
362
+ _iterator.f();
363
+ }
649
364
  }
650
- };
651
-
652
- class ConnectedOverlayScrollHandler {
653
- constructor(element, listener = () => {}) {
654
- this.element = element;
655
- this.listener = listener;
365
+ return scrollableParents;
366
+ },
367
+ getHiddenElementOuterHeight: function getHiddenElementOuterHeight(element) {
368
+ if (element) {
369
+ element.style.visibility = 'hidden';
370
+ element.style.display = 'block';
371
+ var elementHeight = element.offsetHeight;
372
+ element.style.display = 'none';
373
+ element.style.visibility = 'visible';
374
+ return elementHeight;
656
375
  }
657
-
658
- bindScrollListener() {
659
- this.scrollableParents = DomHandler.getScrollableParents(this.element);
660
-
661
- for (let i = 0; i < this.scrollableParents.length; i++) {
662
- this.scrollableParents[i].addEventListener('scroll', this.listener);
663
- }
376
+ return 0;
377
+ },
378
+ getHiddenElementOuterWidth: function getHiddenElementOuterWidth(element) {
379
+ if (element) {
380
+ element.style.visibility = 'hidden';
381
+ element.style.display = 'block';
382
+ var elementWidth = element.offsetWidth;
383
+ element.style.display = 'none';
384
+ element.style.visibility = 'visible';
385
+ return elementWidth;
664
386
  }
665
-
666
- unbindScrollListener() {
667
- if (this.scrollableParents) {
668
- for (let i = 0; i < this.scrollableParents.length; i++) {
669
- this.scrollableParents[i].removeEventListener('scroll', this.listener);
670
- }
671
- }
387
+ return 0;
388
+ },
389
+ getHiddenElementDimensions: function getHiddenElementDimensions(element) {
390
+ if (element) {
391
+ var dimensions = {};
392
+ element.style.visibility = 'hidden';
393
+ element.style.display = 'block';
394
+ dimensions.width = element.offsetWidth;
395
+ dimensions.height = element.offsetHeight;
396
+ element.style.display = 'none';
397
+ element.style.visibility = 'visible';
398
+ return dimensions;
672
399
  }
673
-
674
- destroy() {
675
- this.unbindScrollListener();
676
- this.element = null;
677
- this.listener = null;
678
- this.scrollableParents = null;
400
+ return 0;
401
+ },
402
+ fadeIn: function fadeIn(element, duration) {
403
+ if (element) {
404
+ element.style.opacity = 0;
405
+ var last = +new Date();
406
+ var opacity = 0;
407
+ var tick = function tick() {
408
+ opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
409
+ element.style.opacity = opacity;
410
+ last = +new Date();
411
+ if (+opacity < 1) {
412
+ window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
413
+ }
414
+ };
415
+ tick();
679
416
  }
680
- }
681
-
682
- function primebus() {
683
- const allHandlers = new Map();
684
-
417
+ },
418
+ fadeOut: function fadeOut(element, ms) {
419
+ if (element) {
420
+ var opacity = 1,
421
+ interval = 50,
422
+ duration = ms,
423
+ gap = interval / duration;
424
+ var fading = setInterval(function () {
425
+ opacity -= gap;
426
+ if (opacity <= 0) {
427
+ opacity = 0;
428
+ clearInterval(fading);
429
+ }
430
+ element.style.opacity = opacity;
431
+ }, interval);
432
+ }
433
+ },
434
+ getUserAgent: function getUserAgent() {
435
+ return navigator.userAgent;
436
+ },
437
+ appendChild: function appendChild(element, target) {
438
+ if (this.isElement(target)) target.appendChild(element);else if (target.el && target.elElement) target.elElement.appendChild(element);else throw new Error('Cannot append ' + target + ' to ' + element);
439
+ },
440
+ isElement: function isElement(obj) {
441
+ return (typeof HTMLElement === "undefined" ? "undefined" : _typeof$2(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof$2(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
442
+ },
443
+ scrollInView: function scrollInView(container, item) {
444
+ var borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
445
+ var borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
446
+ var paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
447
+ var paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
448
+ var containerRect = container.getBoundingClientRect();
449
+ var itemRect = item.getBoundingClientRect();
450
+ var offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
451
+ var scroll = container.scrollTop;
452
+ var elementHeight = container.clientHeight;
453
+ var itemHeight = this.getOuterHeight(item);
454
+ if (offset < 0) {
455
+ container.scrollTop = scroll + offset;
456
+ } else if (offset + itemHeight > elementHeight) {
457
+ container.scrollTop = scroll + offset - elementHeight + itemHeight;
458
+ }
459
+ },
460
+ clearSelection: function clearSelection() {
461
+ if (window.getSelection) {
462
+ if (window.getSelection().empty) {
463
+ window.getSelection().empty();
464
+ } else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
465
+ window.getSelection().removeAllRanges();
466
+ }
467
+ } else if (document['selection'] && document['selection'].empty) {
468
+ try {
469
+ document['selection'].empty();
470
+ } catch (error) {
471
+ //ignore IE bug
472
+ }
473
+ }
474
+ },
475
+ getSelection: function getSelection() {
476
+ if (window.getSelection) return window.getSelection().toString();else if (document.getSelection) return document.getSelection().toString();else if (document['selection']) return document['selection'].createRange().text;
477
+ return null;
478
+ },
479
+ calculateScrollbarWidth: function calculateScrollbarWidth() {
480
+ if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
481
+ var scrollDiv = document.createElement('div');
482
+ this.addStyles(scrollDiv, {
483
+ width: '100px',
484
+ height: '100px',
485
+ overflow: 'scroll',
486
+ position: 'absolute',
487
+ top: '-9999px'
488
+ });
489
+ document.body.appendChild(scrollDiv);
490
+ var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
491
+ document.body.removeChild(scrollDiv);
492
+ this.calculatedScrollbarWidth = scrollbarWidth;
493
+ return scrollbarWidth;
494
+ },
495
+ getBrowser: function getBrowser() {
496
+ if (!this.browser) {
497
+ var matched = this.resolveUserAgent();
498
+ this.browser = {};
499
+ if (matched.browser) {
500
+ this.browser[matched.browser] = true;
501
+ this.browser['version'] = matched.version;
502
+ }
503
+ if (this.browser['chrome']) {
504
+ this.browser['webkit'] = true;
505
+ } else if (this.browser['webkit']) {
506
+ this.browser['safari'] = true;
507
+ }
508
+ }
509
+ return this.browser;
510
+ },
511
+ resolveUserAgent: function resolveUserAgent() {
512
+ var ua = navigator.userAgent.toLowerCase();
513
+ var match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
685
514
  return {
686
- on(type, handler) {
687
- let handlers = allHandlers.get(type);
688
-
689
- if (!handlers) handlers = [handler];
690
- else handlers.push(handler);
691
-
692
- allHandlers.set(type, handlers);
693
- },
694
-
695
- off(type, handler) {
696
- let handlers = allHandlers.get(type);
515
+ browser: match[1] || '',
516
+ version: match[2] || '0'
517
+ };
518
+ },
519
+ isVisible: function isVisible(element) {
520
+ return element && element.offsetParent != null;
521
+ },
522
+ invokeElementMethod: function invokeElementMethod(element, methodName, args) {
523
+ element[methodName].apply(element, args);
524
+ },
525
+ isExist: function isExist(element) {
526
+ return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
527
+ },
528
+ isClient: function isClient() {
529
+ return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
530
+ },
531
+ focus: function focus(el, options) {
532
+ el && document.activeElement !== el && el.focus(options);
533
+ },
534
+ isFocusableElement: function isFocusableElement(element) {
535
+ var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
536
+ return this.isElement(element) ? element.matches("button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])".concat(selector, ",\n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector)) : false;
537
+ },
538
+ getFocusableElements: function getFocusableElements(element) {
539
+ var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
540
+ var focusableElements = this.find(element, "button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])".concat(selector, ",\n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector));
541
+ var visibleFocusableElements = [];
542
+ var _iterator3 = _createForOfIteratorHelper$1(focusableElements),
543
+ _step3;
544
+ try {
545
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
546
+ var focusableElement = _step3.value;
547
+ if (getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
548
+ }
549
+ } catch (err) {
550
+ _iterator3.e(err);
551
+ } finally {
552
+ _iterator3.f();
553
+ }
554
+ return visibleFocusableElements;
555
+ },
556
+ getFirstFocusableElement: function getFirstFocusableElement(element, selector) {
557
+ var focusableElements = this.getFocusableElements(element, selector);
558
+ return focusableElements.length > 0 ? focusableElements[0] : null;
559
+ },
560
+ getLastFocusableElement: function getLastFocusableElement(element, selector) {
561
+ var focusableElements = this.getFocusableElements(element, selector);
562
+ return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
563
+ },
564
+ getNextFocusableElement: function getNextFocusableElement(container, element, selector) {
565
+ var focusableElements = this.getFocusableElements(container, selector);
566
+ var index = focusableElements.length > 0 ? focusableElements.findIndex(function (el) {
567
+ return el === element;
568
+ }) : -1;
569
+ var nextIndex = index > -1 && focusableElements.length >= index + 1 ? index + 1 : -1;
570
+ return nextIndex > -1 ? focusableElements[nextIndex] : null;
571
+ },
572
+ isClickable: function isClickable(element) {
573
+ if (element) {
574
+ var targetNode = element.nodeName;
575
+ var parentNode = element.parentElement && element.parentElement.nodeName;
576
+ return targetNode === 'INPUT' || targetNode === 'TEXTAREA' || targetNode === 'BUTTON' || targetNode === 'A' || parentNode === 'INPUT' || parentNode === 'TEXTAREA' || parentNode === 'BUTTON' || parentNode === 'A' || !!element.closest('.p-button, .p-checkbox, .p-radiobutton') // @todo Add [data-pc-section="button"]
577
+ ;
578
+ }
697
579
 
698
- if (handlers) {
699
- handlers.splice(handlers.indexOf(handler) >>> 0, 1);
700
- }
701
- },
580
+ return false;
581
+ },
582
+ applyStyle: function applyStyle(element, style) {
583
+ if (typeof style === 'string') {
584
+ element.style.cssText = style;
585
+ } else {
586
+ for (var prop in style) {
587
+ element.style[prop] = style[prop];
588
+ }
589
+ }
590
+ },
591
+ isIOS: function isIOS() {
592
+ return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
593
+ },
594
+ isAndroid: function isAndroid() {
595
+ return /(android)/i.test(navigator.userAgent);
596
+ },
597
+ isTouchDevice: function isTouchDevice() {
598
+ return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
599
+ },
600
+ exportCSV: function exportCSV(csv, filename) {
601
+ var blob = new Blob([csv], {
602
+ type: 'application/csv;charset=utf-8;'
603
+ });
604
+ if (window.navigator.msSaveOrOpenBlob) {
605
+ navigator.msSaveOrOpenBlob(blob, filename + '.csv');
606
+ } else {
607
+ var link = document.createElement('a');
608
+ if (link.download !== undefined) {
609
+ link.setAttribute('href', URL.createObjectURL(blob));
610
+ link.setAttribute('download', filename + '.csv');
611
+ link.style.display = 'none';
612
+ document.body.appendChild(link);
613
+ link.click();
614
+ document.body.removeChild(link);
615
+ } else {
616
+ csv = 'data:text/csv;charset=utf-8,' + csv;
617
+ window.open(encodeURI(csv));
618
+ }
619
+ }
620
+ }
621
+ };
702
622
 
703
- emit(type, evt) {
704
- let handlers = allHandlers.get(type);
623
+ 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); }
624
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
625
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
626
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
627
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
628
+ function _toPrimitive(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); }
629
+ var ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
630
+ function ConnectedOverlayScrollHandler(element) {
631
+ var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
632
+ _classCallCheck(this, ConnectedOverlayScrollHandler);
633
+ this.element = element;
634
+ this.listener = listener;
635
+ }
636
+ _createClass(ConnectedOverlayScrollHandler, [{
637
+ key: "bindScrollListener",
638
+ value: function bindScrollListener() {
639
+ this.scrollableParents = DomHandler.getScrollableParents(this.element);
640
+ for (var i = 0; i < this.scrollableParents.length; i++) {
641
+ this.scrollableParents[i].addEventListener('scroll', this.listener);
642
+ }
643
+ }
644
+ }, {
645
+ key: "unbindScrollListener",
646
+ value: function unbindScrollListener() {
647
+ if (this.scrollableParents) {
648
+ for (var i = 0; i < this.scrollableParents.length; i++) {
649
+ this.scrollableParents[i].removeEventListener('scroll', this.listener);
650
+ }
651
+ }
652
+ }
653
+ }, {
654
+ key: "destroy",
655
+ value: function destroy() {
656
+ this.unbindScrollListener();
657
+ this.element = null;
658
+ this.listener = null;
659
+ this.scrollableParents = null;
660
+ }
661
+ }]);
662
+ return ConnectedOverlayScrollHandler;
663
+ }();
705
664
 
706
- if (handlers) {
707
- handlers.slice().map((handler) => {
708
- handler(evt);
709
- });
710
- }
711
- }
712
- };
665
+ function primebus() {
666
+ var allHandlers = new Map();
667
+ return {
668
+ on: function on(type, handler) {
669
+ var handlers = allHandlers.get(type);
670
+ if (!handlers) handlers = [handler];else handlers.push(handler);
671
+ allHandlers.set(type, handlers);
672
+ },
673
+ off: function off(type, handler) {
674
+ var handlers = allHandlers.get(type);
675
+ if (handlers) {
676
+ handlers.splice(handlers.indexOf(handler) >>> 0, 1);
677
+ }
678
+ },
679
+ emit: function emit(type, evt) {
680
+ var handlers = allHandlers.get(type);
681
+ if (handlers) {
682
+ handlers.slice().map(function (handler) {
683
+ handler(evt);
684
+ });
685
+ }
686
+ }
687
+ };
713
688
  }
714
689
 
690
+ function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
691
+ function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
692
+ function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
693
+ function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
694
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
695
+ function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(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$1(o, minLen); }
696
+ function _arrayLikeToArray$1(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; }
697
+ 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); }
715
698
  var ObjectUtils = {
716
- equals(obj1, obj2, field) {
717
- if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);
718
- else return this.deepEquals(obj1, obj2);
719
- },
720
-
721
- deepEquals(a, b) {
722
- if (a === b) return true;
723
-
724
- if (a && b && typeof a == 'object' && typeof b == 'object') {
725
- var arrA = Array.isArray(a),
726
- arrB = Array.isArray(b),
727
- i,
728
- length,
729
- key;
730
-
731
- if (arrA && arrB) {
732
- length = a.length;
733
- if (length != b.length) return false;
734
- for (i = length; i-- !== 0; ) if (!this.deepEquals(a[i], b[i])) return false;
735
-
736
- return true;
737
- }
738
-
739
- if (arrA != arrB) return false;
740
-
741
- var dateA = a instanceof Date,
742
- dateB = b instanceof Date;
743
-
744
- if (dateA != dateB) return false;
745
- if (dateA && dateB) return a.getTime() == b.getTime();
746
-
747
- var regexpA = a instanceof RegExp,
748
- regexpB = b instanceof RegExp;
749
-
750
- if (regexpA != regexpB) return false;
751
- if (regexpA && regexpB) return a.toString() == b.toString();
752
-
753
- var keys = Object.keys(a);
754
-
755
- length = keys.length;
756
-
757
- if (length !== Object.keys(b).length) return false;
758
-
759
- for (i = length; i-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
760
-
761
- for (i = length; i-- !== 0; ) {
762
- key = keys[i];
763
- if (!this.deepEquals(a[key], b[key])) return false;
764
- }
765
-
766
- return true;
767
- }
768
-
769
- return a !== a && b !== b;
770
- },
771
-
772
- resolveFieldData(data, field) {
773
- if (data && Object.keys(data).length && field) {
774
- if (this.isFunction(field)) {
775
- return field(data);
776
- } else if (field.indexOf('.') === -1) {
777
- return data[field];
778
- } else {
779
- let fields = field.split('.');
780
- let value = data;
781
-
782
- for (var i = 0, len = fields.length; i < len; ++i) {
783
- if (value == null) {
784
- return null;
785
- }
786
-
787
- value = value[fields[i]];
788
- }
789
-
790
- return value;
791
- }
792
- } else {
699
+ equals: function equals(obj1, obj2, field) {
700
+ if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
701
+ },
702
+ deepEquals: function deepEquals(a, b) {
703
+ if (a === b) return true;
704
+ if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
705
+ var arrA = Array.isArray(a),
706
+ arrB = Array.isArray(b),
707
+ i,
708
+ length,
709
+ key;
710
+ if (arrA && arrB) {
711
+ length = a.length;
712
+ if (length != b.length) return false;
713
+ for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;
714
+ return true;
715
+ }
716
+ if (arrA != arrB) return false;
717
+ var dateA = a instanceof Date,
718
+ dateB = b instanceof Date;
719
+ if (dateA != dateB) return false;
720
+ if (dateA && dateB) return a.getTime() == b.getTime();
721
+ var regexpA = a instanceof RegExp,
722
+ regexpB = b instanceof RegExp;
723
+ if (regexpA != regexpB) return false;
724
+ if (regexpA && regexpB) return a.toString() == b.toString();
725
+ var keys = Object.keys(a);
726
+ length = keys.length;
727
+ if (length !== Object.keys(b).length) return false;
728
+ for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
729
+ for (i = length; i-- !== 0;) {
730
+ key = keys[i];
731
+ if (!this.deepEquals(a[key], b[key])) return false;
732
+ }
733
+ return true;
734
+ }
735
+ return a !== a && b !== b;
736
+ },
737
+ resolveFieldData: function resolveFieldData(data, field) {
738
+ if (data && Object.keys(data).length && field) {
739
+ if (this.isFunction(field)) {
740
+ return field(data);
741
+ } else if (field.indexOf('.') === -1) {
742
+ return data[field];
743
+ } else {
744
+ var fields = field.split('.');
745
+ var value = data;
746
+ for (var i = 0, len = fields.length; i < len; ++i) {
747
+ if (value == null) {
793
748
  return null;
749
+ }
750
+ value = value[fields[i]];
794
751
  }
795
- },
796
-
797
- isFunction(obj) {
798
- return !!(obj && obj.constructor && obj.call && obj.apply);
799
- },
800
-
801
- getItemValue(obj, ...params) {
802
- return this.isFunction(obj) ? obj(...params) : obj;
803
- },
804
-
805
- filter(value, fields, filterValue) {
806
- var filteredItems = [];
807
-
808
- if (value) {
809
- for (let item of value) {
810
- for (let field of fields) {
811
- if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
812
- filteredItems.push(item);
813
- break;
814
- }
815
- }
816
- }
817
- }
818
-
819
- return filteredItems;
820
- },
821
-
822
- reorderArray(value, from, to) {
823
- if (value && from !== to) {
824
- if (to >= value.length) {
825
- to %= value.length;
826
- from %= value.length;
827
- }
828
-
829
- value.splice(to, 0, value.splice(from, 1)[0]);
830
- }
831
- },
832
-
833
- findIndexInList(value, list) {
834
- let index = -1;
835
-
836
- if (list) {
837
- for (let i = 0; i < list.length; i++) {
838
- if (list[i] === value) {
839
- index = i;
840
- break;
841
- }
842
- }
843
- }
844
-
845
- return index;
846
- },
847
-
848
- contains(value, list) {
849
- if (value != null && list && list.length) {
850
- for (let val of list) {
851
- if (this.equals(value, val)) return true;
852
- }
853
- }
854
-
855
- return false;
856
- },
857
-
858
- insertIntoOrderedArray(item, index, arr, sourceArr) {
859
- if (arr.length > 0) {
860
- let injected = false;
861
-
862
- for (let i = 0; i < arr.length; i++) {
863
- let currentItemIndex = this.findIndexInList(arr[i], sourceArr);
864
-
865
- if (currentItemIndex > index) {
866
- arr.splice(i, 0, item);
867
- injected = true;
868
- break;
869
- }
870
- }
871
-
872
- if (!injected) {
873
- arr.push(item);
874
- }
875
- } else {
876
- arr.push(item);
877
- }
878
- },
879
-
880
- removeAccents(str) {
881
- if (str && str.search(/[\xC0-\xFF]/g) > -1) {
882
- str = str
883
- .replace(/[\xC0-\xC5]/g, 'A')
884
- .replace(/[\xC6]/g, 'AE')
885
- .replace(/[\xC7]/g, 'C')
886
- .replace(/[\xC8-\xCB]/g, 'E')
887
- .replace(/[\xCC-\xCF]/g, 'I')
888
- .replace(/[\xD0]/g, 'D')
889
- .replace(/[\xD1]/g, 'N')
890
- .replace(/[\xD2-\xD6\xD8]/g, 'O')
891
- .replace(/[\xD9-\xDC]/g, 'U')
892
- .replace(/[\xDD]/g, 'Y')
893
- .replace(/[\xDE]/g, 'P')
894
- .replace(/[\xE0-\xE5]/g, 'a')
895
- .replace(/[\xE6]/g, 'ae')
896
- .replace(/[\xE7]/g, 'c')
897
- .replace(/[\xE8-\xEB]/g, 'e')
898
- .replace(/[\xEC-\xEF]/g, 'i')
899
- .replace(/[\xF1]/g, 'n')
900
- .replace(/[\xF2-\xF6\xF8]/g, 'o')
901
- .replace(/[\xF9-\xFC]/g, 'u')
902
- .replace(/[\xFE]/g, 'p')
903
- .replace(/[\xFD\xFF]/g, 'y');
904
- }
905
-
906
- return str;
907
- },
908
-
909
- getVNodeProp(vnode, prop) {
910
- let props = vnode.props;
911
-
912
- if (props) {
913
- let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
914
- let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
915
-
916
- return vnode.type.props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
917
- }
918
-
919
- return null;
920
- },
921
-
922
- convertToFlatCase(str) {
923
- // convert snake, kebab, camel and pascal cases to flat case
924
- return this.isNotEmpty(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
925
- },
926
-
927
- isEmpty(value) {
928
- return value === null || value === undefined || value === '' || (Array.isArray(value) && value.length === 0) || (!(value instanceof Date) && typeof value === 'object' && Object.keys(value).length === 0);
929
- },
930
-
931
- isNotEmpty(value) {
932
- return !this.isEmpty(value);
933
- },
934
-
935
- isPrintableCharacter(char = '') {
936
- return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
937
- },
938
-
939
- /**
940
- * Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
941
- * https://caniuse.com/mdn-javascript_builtins_array_findlast
942
- */
943
- findLast(arr, callback) {
944
- let item;
945
-
946
- if (this.isNotEmpty(arr)) {
947
- try {
948
- item = arr.findLast(callback);
949
- } catch {
950
- item = [...arr].reverse().find(callback);
951
- }
952
- }
953
-
954
- return item;
955
- },
956
-
957
- /**
958
- * Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
959
- * https://caniuse.com/mdn-javascript_builtins_array_findlastindex
960
- */
961
- findLastIndex(arr, callback) {
962
- let index = -1;
963
-
964
- if (this.isNotEmpty(arr)) {
965
- try {
966
- index = arr.findLastIndex(callback);
967
- } catch {
968
- index = arr.lastIndexOf([...arr].reverse().find(callback));
752
+ return value;
753
+ }
754
+ } else {
755
+ return null;
756
+ }
757
+ },
758
+ getItemValue: function getItemValue(obj) {
759
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
760
+ params[_key - 1] = arguments[_key];
761
+ }
762
+ return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
763
+ },
764
+ filter: function filter(value, fields, filterValue) {
765
+ var filteredItems = [];
766
+ if (value) {
767
+ var _iterator = _createForOfIteratorHelper(value),
768
+ _step;
769
+ try {
770
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
771
+ var item = _step.value;
772
+ var _iterator2 = _createForOfIteratorHelper(fields),
773
+ _step2;
774
+ try {
775
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
776
+ var field = _step2.value;
777
+ if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
778
+ filteredItems.push(item);
779
+ break;
780
+ }
969
781
  }
970
- }
971
-
972
- return index;
782
+ } catch (err) {
783
+ _iterator2.e(err);
784
+ } finally {
785
+ _iterator2.f();
786
+ }
787
+ }
788
+ } catch (err) {
789
+ _iterator.e(err);
790
+ } finally {
791
+ _iterator.f();
792
+ }
793
+ }
794
+ return filteredItems;
795
+ },
796
+ reorderArray: function reorderArray(value, from, to) {
797
+ if (value && from !== to) {
798
+ if (to >= value.length) {
799
+ to %= value.length;
800
+ from %= value.length;
801
+ }
802
+ value.splice(to, 0, value.splice(from, 1)[0]);
803
+ }
804
+ },
805
+ findIndexInList: function findIndexInList(value, list) {
806
+ var index = -1;
807
+ if (list) {
808
+ for (var i = 0; i < list.length; i++) {
809
+ if (list[i] === value) {
810
+ index = i;
811
+ break;
812
+ }
813
+ }
973
814
  }
815
+ return index;
816
+ },
817
+ contains: function contains(value, list) {
818
+ if (value != null && list && list.length) {
819
+ var _iterator3 = _createForOfIteratorHelper(list),
820
+ _step3;
821
+ try {
822
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
823
+ var val = _step3.value;
824
+ if (this.equals(value, val)) return true;
825
+ }
826
+ } catch (err) {
827
+ _iterator3.e(err);
828
+ } finally {
829
+ _iterator3.f();
830
+ }
831
+ }
832
+ return false;
833
+ },
834
+ insertIntoOrderedArray: function insertIntoOrderedArray(item, index, arr, sourceArr) {
835
+ if (arr.length > 0) {
836
+ var injected = false;
837
+ for (var i = 0; i < arr.length; i++) {
838
+ var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
839
+ if (currentItemIndex > index) {
840
+ arr.splice(i, 0, item);
841
+ injected = true;
842
+ break;
843
+ }
844
+ }
845
+ if (!injected) {
846
+ arr.push(item);
847
+ }
848
+ } else {
849
+ arr.push(item);
850
+ }
851
+ },
852
+ removeAccents: function removeAccents(str) {
853
+ if (str && str.search(/[\xC0-\xFF]/g) > -1) {
854
+ str = str.replace(/[\xC0-\xC5]/g, 'A').replace(/[\xC6]/g, 'AE').replace(/[\xC7]/g, 'C').replace(/[\xC8-\xCB]/g, 'E').replace(/[\xCC-\xCF]/g, 'I').replace(/[\xD0]/g, 'D').replace(/[\xD1]/g, 'N').replace(/[\xD2-\xD6\xD8]/g, 'O').replace(/[\xD9-\xDC]/g, 'U').replace(/[\xDD]/g, 'Y').replace(/[\xDE]/g, 'P').replace(/[\xE0-\xE5]/g, 'a').replace(/[\xE6]/g, 'ae').replace(/[\xE7]/g, 'c').replace(/[\xE8-\xEB]/g, 'e').replace(/[\xEC-\xEF]/g, 'i').replace(/[\xF1]/g, 'n').replace(/[\xF2-\xF6\xF8]/g, 'o').replace(/[\xF9-\xFC]/g, 'u').replace(/[\xFE]/g, 'p').replace(/[\xFD\xFF]/g, 'y');
855
+ }
856
+ return str;
857
+ },
858
+ getVNodeProp: function getVNodeProp(vnode, prop) {
859
+ var props = vnode.props;
860
+ if (props) {
861
+ var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
862
+ var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
863
+ return vnode.type["extends"].props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
864
+ }
865
+ return null;
866
+ },
867
+ toFlatCase: function toFlatCase(str) {
868
+ // convert snake, kebab, camel and pascal cases to flat case
869
+ return this.isString(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
870
+ },
871
+ toKebabCase: function toKebabCase(str) {
872
+ // convert snake, camel and pascal cases to kebab case
873
+ return this.isString(str) ? str.replace(/(_)/g, '-').replace(/[A-Z]/g, function (c, i) {
874
+ return i === 0 ? c : '-' + c.toLowerCase();
875
+ }).toLowerCase() : str;
876
+ },
877
+ toCapitalCase: function toCapitalCase(str) {
878
+ return this.isString(str, {
879
+ empty: false
880
+ }) ? str[0].toUpperCase() + str.slice(1) : str;
881
+ },
882
+ isEmpty: function isEmpty(value) {
883
+ return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
884
+ },
885
+ isNotEmpty: function isNotEmpty(value) {
886
+ return !this.isEmpty(value);
887
+ },
888
+ isFunction: function isFunction(value) {
889
+ return !!(value && value.constructor && value.call && value.apply);
890
+ },
891
+ isObject: function isObject(value) {
892
+ var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
893
+ return value instanceof Object && value.constructor === Object && (empty || Object.keys(value).length !== 0);
894
+ },
895
+ isDate: function isDate(value) {
896
+ return value instanceof Date && value.constructor === Date;
897
+ },
898
+ isArray: function isArray(value) {
899
+ var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
900
+ return Array.isArray(value) && (empty || value.length !== 0);
901
+ },
902
+ isString: function isString(value) {
903
+ var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
904
+ return typeof value === 'string' && (empty || value !== '');
905
+ },
906
+ isPrintableCharacter: function isPrintableCharacter() {
907
+ var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
908
+ return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
909
+ },
910
+ /**
911
+ * Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
912
+ * https://caniuse.com/mdn-javascript_builtins_array_findlast
913
+ */
914
+ findLast: function findLast(arr, callback) {
915
+ var item;
916
+ if (this.isNotEmpty(arr)) {
917
+ try {
918
+ item = arr.findLast(callback);
919
+ } catch (_unused) {
920
+ item = _toConsumableArray$1(arr).reverse().find(callback);
921
+ }
922
+ }
923
+ return item;
924
+ },
925
+ /**
926
+ * Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
927
+ * https://caniuse.com/mdn-javascript_builtins_array_findlastindex
928
+ */
929
+ findLastIndex: function findLastIndex(arr, callback) {
930
+ var index = -1;
931
+ if (this.isNotEmpty(arr)) {
932
+ try {
933
+ index = arr.findLastIndex(callback);
934
+ } catch (_unused2) {
935
+ index = arr.lastIndexOf(_toConsumableArray$1(arr).reverse().find(callback));
936
+ }
937
+ }
938
+ return index;
939
+ }
974
940
  };
975
941
 
976
942
  var lastId = 0;
977
-
978
- function UniqueComponentId (prefix = 'pv_id_') {
979
- lastId++;
980
-
981
- return `${prefix}${lastId}`;
943
+ function UniqueComponentId () {
944
+ var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pv_id_';
945
+ lastId++;
946
+ return "".concat(prefix).concat(lastId);
982
947
  }
983
948
 
949
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
950
+ 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."); }
951
+ 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); }
952
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
953
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
954
+ 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; }
984
955
  function handler() {
985
- let zIndexes = [];
986
-
987
- const generateZIndex = (key, autoZIndex, baseZIndex = 999) => {
988
- const lastZIndex = getLastZIndex(key, autoZIndex, baseZIndex);
989
- const newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
990
-
991
- zIndexes.push({ key, value: newZIndex });
992
-
993
- return newZIndex;
994
- };
995
-
996
- const revertZIndex = (zIndex) => {
997
- zIndexes = zIndexes.filter((obj) => obj.value !== zIndex);
998
- };
999
-
1000
- const getCurrentZIndex = (key, autoZIndex) => {
1001
- return getLastZIndex(key, autoZIndex).value;
1002
- };
1003
-
1004
- const getLastZIndex = (key, autoZIndex, baseZIndex = 0) => {
1005
- return [...zIndexes].reverse().find((obj) => (autoZIndex ? true : obj.key === key)) || { key, value: baseZIndex };
1006
- };
1007
-
1008
- const getZIndex = (el) => {
1009
- return el ? parseInt(el.style.zIndex, 10) || 0 : 0;
1010
- };
1011
-
1012
- return {
1013
- get: getZIndex,
1014
- set: (key, el, baseZIndex) => {
1015
- if (el) {
1016
- el.style.zIndex = String(generateZIndex(key, true, baseZIndex));
1017
- }
1018
- },
1019
- clear: (el) => {
1020
- if (el) {
1021
- revertZIndex(getZIndex(el));
1022
- el.style.zIndex = '';
1023
- }
1024
- },
1025
- getCurrent: (key) => getCurrentZIndex(key, true)
956
+ var zIndexes = [];
957
+ var generateZIndex = function generateZIndex(key, autoZIndex) {
958
+ var baseZIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 999;
959
+ var lastZIndex = getLastZIndex(key, autoZIndex, baseZIndex);
960
+ var newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
961
+ zIndexes.push({
962
+ key: key,
963
+ value: newZIndex
964
+ });
965
+ return newZIndex;
966
+ };
967
+ var revertZIndex = function revertZIndex(zIndex) {
968
+ zIndexes = zIndexes.filter(function (obj) {
969
+ return obj.value !== zIndex;
970
+ });
971
+ };
972
+ var getCurrentZIndex = function getCurrentZIndex(key, autoZIndex) {
973
+ return getLastZIndex(key, autoZIndex).value;
974
+ };
975
+ var getLastZIndex = function getLastZIndex(key, autoZIndex) {
976
+ var baseZIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
977
+ return _toConsumableArray(zIndexes).reverse().find(function (obj) {
978
+ return autoZIndex ? true : obj.key === key;
979
+ }) || {
980
+ key: key,
981
+ value: baseZIndex
1026
982
  };
983
+ };
984
+ var getZIndex = function getZIndex(el) {
985
+ return el ? parseInt(el.style.zIndex, 10) || 0 : 0;
986
+ };
987
+ return {
988
+ get: getZIndex,
989
+ set: function set(key, el, baseZIndex) {
990
+ if (el) {
991
+ el.style.zIndex = String(generateZIndex(key, true, baseZIndex));
992
+ }
993
+ },
994
+ clear: function clear(el) {
995
+ if (el) {
996
+ revertZIndex(getZIndex(el));
997
+ el.style.zIndex = '';
998
+ }
999
+ },
1000
+ getCurrent: function getCurrent(key) {
1001
+ return getCurrentZIndex(key, true);
1002
+ }
1003
+ };
1027
1004
  }
1028
-
1029
1005
  var ZIndexUtils = handler();
1030
1006
 
1031
1007
  exports.ConnectedOverlayScrollHandler = ConnectedOverlayScrollHandler;