primevue 2.10.0 → 2.10.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 (331) hide show
  1. package/README.md +150 -3
  2. package/accordion/accordion.common.js +2 -7
  3. package/accordion/accordion.umd.js +2 -7
  4. package/accordiontab/accordiontab.common.js +15 -68
  5. package/accordiontab/accordiontab.umd.js +15 -68
  6. package/api/Api.d.ts +24 -2
  7. package/api/Api.js +0 -6
  8. package/api/FilterService.js +2 -55
  9. package/api/PrimeIcons.js +24 -2
  10. package/api/api.common.js +35 -98
  11. package/api/api.umd.js +35 -98
  12. package/api/api.umd.min.js +1 -1
  13. package/api/filterservice.common.js +11 -96
  14. package/api/filterservice.umd.js +11 -96
  15. package/api/primeicons.common.js +24 -2
  16. package/api/primeicons.umd.js +24 -2
  17. package/api/primeicons.umd.min.js +1 -1
  18. package/autocomplete/autocomplete.common.js +33 -189
  19. package/autocomplete/autocomplete.umd.js +33 -189
  20. package/avatar/avatar.common.js +2 -4
  21. package/avatar/avatar.umd.js +2 -4
  22. package/avatargroup/avatargroup.common.js +2 -4
  23. package/avatargroup/avatargroup.umd.js +2 -4
  24. package/badge/badge.common.js +2 -4
  25. package/badge/badge.umd.js +2 -4
  26. package/badgedirective/BadgeDirective.js +0 -13
  27. package/badgedirective/badgedirective.common.js +13 -71
  28. package/badgedirective/badgedirective.umd.js +13 -71
  29. package/blockui/blockui.common.js +15 -73
  30. package/blockui/blockui.umd.js +15 -73
  31. package/breadcrumb/breadcrumb.common.js +7 -12
  32. package/breadcrumb/breadcrumb.umd.js +7 -12
  33. package/breadcrumb/breadcrumbitem.common.js +5 -8
  34. package/breadcrumb/breadcrumbitem.umd.js +5 -8
  35. package/button/button.common.js +15 -81
  36. package/button/button.umd.js +15 -81
  37. package/calendar/calendar.common.js +109 -498
  38. package/calendar/calendar.umd.js +109 -498
  39. package/card/card.common.js +2 -4
  40. package/card/card.umd.js +2 -4
  41. package/carousel/carousel.common.js +15 -123
  42. package/carousel/carousel.umd.js +15 -123
  43. package/cascadeselect/cascadeselect.common.js +29 -187
  44. package/cascadeselect/cascadeselect.umd.js +29 -187
  45. package/cascadeselect/cascadeselectsub.common.js +25 -149
  46. package/cascadeselect/cascadeselectsub.umd.js +25 -149
  47. package/cascadeselect/demo.html +4 -3
  48. package/chart/chart.common.js +2 -9
  49. package/chart/chart.umd.js +2 -9
  50. package/checkbox/checkbox.common.js +11 -61
  51. package/checkbox/checkbox.umd.js +11 -61
  52. package/chip/chip.common.js +2 -4
  53. package/chip/chip.umd.js +2 -4
  54. package/chips/chips.common.js +3 -20
  55. package/chips/chips.umd.js +3 -20
  56. package/colorpicker/colorpicker.common.js +16 -111
  57. package/colorpicker/colorpicker.umd.js +16 -111
  58. package/columngroup/columngroup.common.js +2 -4
  59. package/columngroup/columngroup.umd.js +2 -4
  60. package/config/PrimeVue.js +0 -5
  61. package/config/primevue.common.js +35 -102
  62. package/config/primevue.umd.js +35 -102
  63. package/config/primevue.umd.min.js +1 -1
  64. package/confirmationeventbus/ConfirmationEventBus.js +0 -4
  65. package/confirmationeventbus/confirmationeventbus.common.js +0 -2
  66. package/confirmationeventbus/confirmationeventbus.umd.js +0 -2
  67. package/confirmationservice/ConfirmationService.js +0 -3
  68. package/confirmationservice/confirmationservice.common.js +0 -2
  69. package/confirmationservice/confirmationservice.umd.js +0 -2
  70. package/confirmdialog/confirmdialog.common.js +19 -107
  71. package/confirmdialog/confirmdialog.umd.js +19 -107
  72. package/confirmpopup/confirmpopup.common.js +17 -109
  73. package/confirmpopup/confirmpopup.umd.js +17 -109
  74. package/contextmenu/contextmenu.common.js +28 -111
  75. package/contextmenu/contextmenu.umd.js +28 -111
  76. package/contextmenu/contextmenusub.common.js +18 -90
  77. package/contextmenu/contextmenusub.umd.js +18 -90
  78. package/datatable/bodycell.common.js +28 -164
  79. package/datatable/bodycell.umd.js +28 -164
  80. package/datatable/columnfilter.common.js +35 -247
  81. package/datatable/columnfilter.umd.js +35 -247
  82. package/datatable/datatable.common.js +165 -855
  83. package/datatable/datatable.umd.js +165 -855
  84. package/datatable/datatable.umd.min.js +1 -1
  85. package/datatable/demo.html +3 -5
  86. package/datatable/footercell.common.js +24 -119
  87. package/datatable/footercell.umd.js +24 -119
  88. package/datatable/headercell.common.js +39 -266
  89. package/datatable/headercell.umd.js +39 -266
  90. package/datatable/headercheckbox.common.js +2 -4
  91. package/datatable/headercheckbox.umd.js +2 -4
  92. package/datatable/rowcheckbox.common.js +2 -4
  93. package/datatable/rowcheckbox.umd.js +2 -4
  94. package/datatable/rowradiobutton.common.js +2 -4
  95. package/datatable/rowradiobutton.umd.js +2 -4
  96. package/datatable/tablebody.common.js +30 -191
  97. package/datatable/tablebody.umd.js +30 -191
  98. package/datatable/tablefooter.common.js +27 -135
  99. package/datatable/tablefooter.umd.js +27 -135
  100. package/datatable/tableheader.common.js +41 -273
  101. package/datatable/tableheader.umd.js +41 -273
  102. package/datatable/tableloadingbody.common.js +2 -4
  103. package/datatable/tableloadingbody.umd.js +2 -4
  104. package/dataview/dataview.common.js +121 -407
  105. package/dataview/dataview.umd.js +121 -407
  106. package/dataview/dataview.umd.min.js +1 -1
  107. package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +2 -4
  108. package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +2 -4
  109. package/deferredcontent/deferredcontent.common.js +2 -7
  110. package/deferredcontent/deferredcontent.umd.js +2 -7
  111. package/dialog/dialog.common.js +15 -93
  112. package/dialog/dialog.umd.js +15 -93
  113. package/divider/divider.common.js +2 -4
  114. package/divider/divider.umd.js +2 -4
  115. package/dock/dock.common.js +7 -14
  116. package/dock/dock.umd.js +7 -14
  117. package/dock/docksub.common.js +5 -9
  118. package/dock/docksub.umd.js +5 -9
  119. package/dropdown/dropdown.common.js +31 -188
  120. package/dropdown/dropdown.umd.js +31 -188
  121. package/editor/editor.common.js +8 -21
  122. package/editor/editor.umd.js +8 -21
  123. package/fieldset/fieldset.common.js +15 -81
  124. package/fieldset/fieldset.umd.js +15 -81
  125. package/fileupload/fileupload.common.js +28 -142
  126. package/fileupload/fileupload.umd.js +28 -142
  127. package/fullcalendar/fullcalendar.common.js +10 -17
  128. package/fullcalendar/fullcalendar.umd.js +10 -17
  129. package/fullcalendar/fullcalendar.umd.min.js +3 -3
  130. package/galleria/galleria.common.js +25 -147
  131. package/galleria/galleria.umd.js +25 -147
  132. package/galleria/galleriacontent.common.js +23 -137
  133. package/galleria/galleriacontent.umd.js +23 -137
  134. package/galleria/galleriaitem.common.js +19 -93
  135. package/galleria/galleriaitem.umd.js +19 -93
  136. package/galleria/galleriaitemslot.common.js +4 -10
  137. package/galleria/galleriaitemslot.umd.js +4 -10
  138. package/galleria/galleriathumbnails.common.js +19 -125
  139. package/galleria/galleriathumbnails.umd.js +19 -125
  140. package/imagepreview/imagepreview.common.js +16 -71
  141. package/imagepreview/imagepreview.umd.js +16 -71
  142. package/inlinemessage/inlinemessage.common.js +2 -5
  143. package/inlinemessage/inlinemessage.umd.js +2 -5
  144. package/inplace/inplace.common.js +17 -85
  145. package/inplace/inplace.umd.js +17 -85
  146. package/inputmask/inputmask.common.js +31 -155
  147. package/inputmask/inputmask.umd.js +31 -155
  148. package/inputnumber/InputNumber.vue +2 -2
  149. package/inputnumber/inputnumber.common.js +73 -233
  150. package/inputnumber/inputnumber.umd.js +73 -233
  151. package/inputnumber/inputnumber.umd.min.js +1 -1
  152. package/inputswitch/inputswitch.common.js +2 -5
  153. package/inputswitch/inputswitch.umd.js +2 -5
  154. package/inputtext/inputtext.common.js +2 -9
  155. package/inputtext/inputtext.umd.js +2 -9
  156. package/knob/knob.common.js +4 -5
  157. package/knob/knob.umd.js +4 -5
  158. package/listbox/listbox.common.js +27 -156
  159. package/listbox/listbox.umd.js +27 -156
  160. package/megamenu/megamenu.common.js +24 -111
  161. package/megamenu/megamenu.umd.js +24 -111
  162. package/menu/menu.common.js +20 -107
  163. package/menu/menu.umd.js +20 -107
  164. package/menu/menuitem.common.js +18 -84
  165. package/menu/menuitem.umd.js +18 -84
  166. package/menubar/demo.html +4 -3
  167. package/menubar/menubar.common.js +23 -112
  168. package/menubar/menubar.umd.js +23 -112
  169. package/menubar/menubarsub.common.js +21 -106
  170. package/menubar/menubarsub.umd.js +21 -106
  171. package/message/message.common.js +15 -82
  172. package/message/message.umd.js +15 -82
  173. package/multiselect/multiselect.common.js +32 -189
  174. package/multiselect/multiselect.umd.js +32 -189
  175. package/orderlist/orderlist.common.js +28 -162
  176. package/orderlist/orderlist.umd.js +28 -162
  177. package/organizationchart/organizationchart.common.js +17 -82
  178. package/organizationchart/organizationchart.umd.js +17 -82
  179. package/organizationchart/organizationchartnode.common.js +15 -68
  180. package/organizationchart/organizationchartnode.umd.js +15 -68
  181. package/overlayeventbus/OverlayEventBus.js +0 -4
  182. package/overlayeventbus/overlayeventbus.common.js +0 -2
  183. package/overlayeventbus/overlayeventbus.umd.js +0 -2
  184. package/overlaypanel/overlaypanel.common.js +15 -104
  185. package/overlaypanel/overlaypanel.umd.js +15 -104
  186. package/package.json +2 -2
  187. package/paginator/currentpagereport.common.js +2 -4
  188. package/paginator/currentpagereport.umd.js +2 -4
  189. package/paginator/firstpagelink.common.js +15 -81
  190. package/paginator/firstpagelink.umd.js +15 -81
  191. package/paginator/jumptopagedropdown.common.js +33 -194
  192. package/paginator/jumptopagedropdown.umd.js +33 -194
  193. package/paginator/jumptopageinput.common.js +79 -241
  194. package/paginator/jumptopageinput.umd.js +79 -241
  195. package/paginator/jumptopageinput.umd.min.js +1 -1
  196. package/paginator/lastpagelink.common.js +15 -81
  197. package/paginator/lastpagelink.umd.js +15 -81
  198. package/paginator/nextpagelink.common.js +15 -81
  199. package/paginator/nextpagelink.umd.js +15 -81
  200. package/paginator/pagelinks.common.js +15 -81
  201. package/paginator/pagelinks.umd.js +15 -81
  202. package/paginator/paginator.common.js +119 -399
  203. package/paginator/paginator.umd.js +119 -399
  204. package/paginator/paginator.umd.min.js +1 -1
  205. package/paginator/prevpagelink.common.js +15 -81
  206. package/paginator/prevpagelink.umd.js +15 -81
  207. package/paginator/rowsperpagedropdown.common.js +33 -194
  208. package/paginator/rowsperpagedropdown.umd.js +33 -194
  209. package/panel/panel.common.js +15 -81
  210. package/panel/panel.umd.js +15 -81
  211. package/panelmenu/panelmenu.common.js +10 -22
  212. package/panelmenu/panelmenu.umd.js +10 -22
  213. package/panelmenu/panelmenusub.common.js +5 -11
  214. package/panelmenu/panelmenusub.umd.js +5 -11
  215. package/password/Password.vue +38 -11
  216. package/password/password.common.js +117 -179
  217. package/password/password.umd.js +117 -179
  218. package/password/password.umd.min.js +1 -1
  219. package/picklist/picklist.common.js +28 -194
  220. package/picklist/picklist.umd.js +28 -194
  221. package/progressbar/progressbar.common.js +2 -4
  222. package/progressbar/progressbar.umd.js +2 -4
  223. package/progressspinner/progressspinner.common.js +2 -5
  224. package/progressspinner/progressspinner.umd.js +2 -5
  225. package/radiobutton/radiobutton.common.js +11 -57
  226. package/radiobutton/radiobutton.umd.js +11 -57
  227. package/rating/rating.common.js +2 -4
  228. package/rating/rating.umd.js +2 -4
  229. package/ripple/Ripple.js +0 -18
  230. package/ripple/ripple.common.js +13 -77
  231. package/ripple/ripple.umd.js +13 -77
  232. package/row/row.common.js +2 -4
  233. package/row/row.umd.js +2 -4
  234. package/scrollpanel/scrollpanel.common.js +18 -83
  235. package/scrollpanel/scrollpanel.umd.js +18 -83
  236. package/scrolltop/scrolltop.common.js +15 -71
  237. package/scrolltop/scrolltop.umd.js +15 -71
  238. package/selectbutton/selectbutton.common.js +25 -143
  239. package/selectbutton/selectbutton.umd.js +25 -143
  240. package/sidebar/Sidebar.d.ts +1 -0
  241. package/sidebar/Sidebar.vue +3 -0
  242. package/sidebar/sidebar.common.js +63 -137
  243. package/sidebar/sidebar.umd.js +63 -137
  244. package/sidebar/sidebar.umd.min.js +1 -1
  245. package/skeleton/skeleton.common.js +2 -4
  246. package/skeleton/skeleton.umd.js +2 -4
  247. package/slider/Slider.vue +1 -1
  248. package/slider/slider.common.js +64 -139
  249. package/slider/slider.umd.js +64 -139
  250. package/slider/slider.umd.min.js +1 -1
  251. package/speeddial/SpeedDial.vue +2 -2
  252. package/speeddial/speeddial.common.js +63 -152
  253. package/speeddial/speeddial.umd.js +63 -152
  254. package/speeddial/speeddial.umd.min.js +1 -1
  255. package/splitbutton/splitbutton.common.js +24 -115
  256. package/splitbutton/splitbutton.umd.js +24 -115
  257. package/splitter/splitter.common.js +13 -84
  258. package/splitter/splitter.umd.js +13 -84
  259. package/steps/steps.common.js +5 -9
  260. package/steps/steps.umd.js +5 -9
  261. package/styleclass/StyleClass.js +0 -43
  262. package/styleclass/styleclass.common.js +13 -99
  263. package/styleclass/styleclass.umd.js +13 -99
  264. package/tabmenu/tabmenu.common.js +15 -86
  265. package/tabmenu/tabmenu.umd.js +15 -86
  266. package/tabpanel/tabpanel.common.js +2 -5
  267. package/tabpanel/tabpanel.umd.js +2 -5
  268. package/tabview/tabview.common.js +27 -134
  269. package/tabview/tabview.umd.js +27 -134
  270. package/tag/tag.common.js +2 -4
  271. package/tag/tag.umd.js +2 -4
  272. package/terminal/terminal.common.js +2 -4
  273. package/terminal/terminal.umd.js +2 -4
  274. package/terminalservice/TerminalService.js +0 -3
  275. package/textarea/Textarea.vue +24 -1
  276. package/textarea/textarea.common.js +2045 -60
  277. package/textarea/textarea.umd.js +2045 -60
  278. package/textarea/textarea.umd.min.js +1 -1
  279. package/tieredmenu/tieredmenu.common.js +22 -124
  280. package/tieredmenu/tieredmenu.umd.js +22 -124
  281. package/tieredmenu/tieredmenusub.common.js +20 -102
  282. package/tieredmenu/tieredmenusub.umd.js +20 -102
  283. package/timeline/timeline.common.js +11 -56
  284. package/timeline/timeline.umd.js +11 -56
  285. package/toast/toast.common.js +17 -97
  286. package/toast/toast.umd.js +17 -97
  287. package/toast/toastmessage.common.js +15 -82
  288. package/toast/toastmessage.umd.js +15 -82
  289. package/toastservice/ToastEventBus.js +0 -3
  290. package/toastservice/ToastService.js +0 -3
  291. package/togglebutton/togglebutton.common.js +15 -81
  292. package/togglebutton/togglebutton.umd.js +15 -81
  293. package/toolbar/toolbar.common.js +2 -4
  294. package/toolbar/toolbar.umd.js +2 -4
  295. package/tooltip/Tooltip.js +4 -84
  296. package/tooltip/tooltip.common.js +17 -133
  297. package/tooltip/tooltip.umd.js +17 -133
  298. package/tree/tree.common.js +36 -211
  299. package/tree/tree.umd.js +36 -211
  300. package/tree/treenode.common.js +20 -117
  301. package/tree/treenode.umd.js +20 -117
  302. package/treetable/footercell.common.js +24 -119
  303. package/treetable/footercell.umd.js +24 -119
  304. package/treetable/headercell.common.js +24 -127
  305. package/treetable/headercell.umd.js +24 -127
  306. package/treetable/treetable.common.js +149 -625
  307. package/treetable/treetable.umd.js +149 -625
  308. package/treetable/treetable.umd.min.js +1 -1
  309. package/treetable/treetablerow.common.js +29 -159
  310. package/treetable/treetablerow.umd.js +29 -159
  311. package/treetable/treetablerowloader.common.js +31 -179
  312. package/treetable/treetablerowloader.umd.js +31 -179
  313. package/tristatecheckbox/tristatecheckbox.common.js +2 -12
  314. package/tristatecheckbox/tristatecheckbox.umd.js +2 -12
  315. package/utils/ConnectedOverlayScrollHandler.js +0 -12
  316. package/utils/DomHandler.js +13 -61
  317. package/utils/EventBus.js +0 -3
  318. package/utils/ObjectUtils.js +9 -51
  319. package/utils/UniqueComponentId.js +0 -1
  320. package/utils/Utils.js +0 -6
  321. package/utils/connectedoverlayscrollhandler.common.js +13 -70
  322. package/utils/connectedoverlayscrollhandler.umd.js +13 -70
  323. package/utils/domhandler.common.js +13 -63
  324. package/utils/domhandler.umd.js +13 -63
  325. package/utils/eventbus.common.js +0 -2
  326. package/utils/eventbus.umd.js +0 -2
  327. package/utils/objectutils.common.js +9 -52
  328. package/utils/objectutils.umd.js +9 -52
  329. package/utils/utils.common.js +22 -119
  330. package/utils/utils.umd.js +22 -119
  331. package/web-types.json +8 -1
@@ -3182,11 +3182,10 @@ if (typeof window !== 'undefined') {
3182
3182
  // Indicate to webpack that this file can be concatenated
3183
3183
  /* harmony default export */ var setPublicPath = (null);
3184
3184
 
3185
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"379c0a9c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/megamenu/MegaMenu.vue?vue&type=template&id=1f5a8e2a&
3185
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/megamenu/MegaMenu.vue?vue&type=template&id=1f5a8e2a&
3186
3186
  var render = function render() {
3187
3187
  var _vm = this,
3188
- _c = _vm._self._c;
3189
-
3188
+ _c = _vm._self._c;
3190
3189
  return _c('div', {
3191
3190
  class: _vm.containerClass
3192
3191
  }, [_vm.$slots.start ? _c('div', {
@@ -3218,9 +3217,9 @@ var render = function render() {
3218
3217
  key: "default",
3219
3218
  fn: function fn(_ref) {
3220
3219
  var navigate = _ref.navigate,
3221
- href = _ref.href,
3222
- isActive = _ref.isActive,
3223
- isExactActive = _ref.isExactActive;
3220
+ href = _ref.href,
3221
+ isActive = _ref.isActive,
3222
+ isExactActive = _ref.isExactActive;
3224
3223
  return [_c('a', {
3225
3224
  directives: [{
3226
3225
  name: "ripple",
@@ -3315,9 +3314,9 @@ var render = function render() {
3315
3314
  key: "default",
3316
3315
  fn: function fn(_ref2) {
3317
3316
  var navigate = _ref2.navigate,
3318
- href = _ref2.href,
3319
- isActive = _ref2.isActive,
3320
- isExactActive = _ref2.isExactActive;
3317
+ href = _ref2.href,
3318
+ isActive = _ref2.isActive,
3319
+ isExactActive = _ref2.isExactActive;
3321
3320
  return [_c('a', {
3322
3321
  directives: [{
3323
3322
  name: "ripple",
@@ -3381,7 +3380,6 @@ var render = function render() {
3381
3380
  staticClass: "p-megamenu-end"
3382
3381
  }, [_vm._t("end")], 2) : _vm._e()]);
3383
3382
  };
3384
-
3385
3383
  var staticRenderFns = [];
3386
3384
 
3387
3385
  // CONCATENATED MODULE: ./src/components/megamenu/MegaMenu.vue?vue&type=template&id=1f5a8e2a&
@@ -3428,26 +3426,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
3428
3426
 
3429
3427
  // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
3430
3428
 
3431
-
3432
3429
  function _defineProperties(target, props) {
3433
3430
  for (var i = 0; i < props.length; i++) {
3434
3431
  var descriptor = props[i];
3435
3432
  descriptor.enumerable = descriptor.enumerable || false;
3436
3433
  descriptor.configurable = true;
3437
3434
  if ("value" in descriptor) descriptor.writable = true;
3438
-
3439
3435
  define_property_default()(target, descriptor.key, descriptor);
3440
3436
  }
3441
3437
  }
3442
-
3443
3438
  function _createClass(Constructor, protoProps, staticProps) {
3444
3439
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3445
3440
  if (staticProps) _defineProperties(Constructor, staticProps);
3446
-
3447
3441
  define_property_default()(Constructor, "prototype", {
3448
3442
  writable: false
3449
3443
  });
3450
-
3451
3444
  return Constructor;
3452
3445
  }
3453
3446
  // CONCATENATED MODULE: ./src/components/utils/DomHandler.js
@@ -3463,18 +3456,13 @@ function _createClass(Constructor, protoProps, staticProps) {
3463
3456
 
3464
3457
 
3465
3458
 
3466
-
3467
3459
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(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; } } }; }
3468
-
3469
3460
  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); }
3470
-
3471
3461
  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; }
3472
-
3473
3462
  var DomHandler_DomHandler = /*#__PURE__*/function () {
3474
3463
  function DomHandler() {
3475
3464
  _classCallCheck(this, DomHandler);
3476
3465
  }
3477
-
3478
3466
  _createClass(DomHandler, null, [{
3479
3467
  key: "innerWidth",
3480
3468
  value: function innerWidth(el) {
@@ -3508,12 +3496,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3508
3496
  value: function getOuterWidth(el, margin) {
3509
3497
  if (el) {
3510
3498
  var width = el.offsetWidth;
3511
-
3512
3499
  if (margin) {
3513
3500
  var style = getComputedStyle(el);
3514
3501
  width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
3515
3502
  }
3516
-
3517
3503
  return width;
3518
3504
  } else {
3519
3505
  return 0;
@@ -3524,12 +3510,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3524
3510
  value: function getOuterHeight(el, margin) {
3525
3511
  if (el) {
3526
3512
  var height = el.offsetHeight;
3527
-
3528
3513
  if (margin) {
3529
3514
  var style = getComputedStyle(el);
3530
3515
  height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
3531
3516
  }
3532
-
3533
3517
  return height;
3534
3518
  } else {
3535
3519
  return 0;
@@ -3540,12 +3524,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3540
3524
  value: function getClientHeight(el, margin) {
3541
3525
  if (el) {
3542
3526
  var height = el.clientHeight;
3543
-
3544
3527
  if (margin) {
3545
3528
  var style = getComputedStyle(el);
3546
3529
  height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
3547
3530
  }
3548
-
3549
3531
  return height;
3550
3532
  } else {
3551
3533
  return 0;
@@ -3555,11 +3537,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3555
3537
  key: "getViewport",
3556
3538
  value: function getViewport() {
3557
3539
  var win = window,
3558
- d = document,
3559
- e = d.documentElement,
3560
- g = d.getElementsByTagName('body')[0],
3561
- w = win.innerWidth || e.clientWidth || g.clientWidth,
3562
- h = win.innerHeight || e.clientHeight || g.clientHeight;
3540
+ d = document,
3541
+ e = d.documentElement,
3542
+ g = d.getElementsByTagName('body')[0],
3543
+ w = win.innerWidth || e.clientWidth || g.clientWidth,
3544
+ h = win.innerHeight || e.clientHeight || g.clientHeight;
3563
3545
  return {
3564
3546
  width: w,
3565
3547
  height: h
@@ -3590,12 +3572,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3590
3572
  value: function index(element) {
3591
3573
  var children = element.parentNode.childNodes;
3592
3574
  var num = 0;
3593
-
3594
3575
  for (var i = 0; i < children.length; i++) {
3595
3576
  if (children[i] === element) return num;
3596
3577
  if (children[i].nodeType === 1) num++;
3597
3578
  }
3598
-
3599
3579
  return -1;
3600
3580
  }
3601
3581
  }, {
@@ -3603,13 +3583,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3603
3583
  value: function addMultipleClasses(element, className) {
3604
3584
  if (element.classList) {
3605
3585
  var styles = className.split(' ');
3606
-
3607
3586
  for (var i = 0; i < styles.length; i++) {
3608
3587
  element.classList.add(styles[i]);
3609
3588
  }
3610
3589
  } else {
3611
3590
  var _styles = className.split(' ');
3612
-
3613
3591
  for (var _i = 0; _i < _styles.length; _i++) {
3614
3592
  element.className += ' ' + _styles[_i];
3615
3593
  }
@@ -3631,7 +3609,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3631
3609
  if (element) {
3632
3610
  if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
3633
3611
  }
3634
-
3635
3612
  return false;
3636
3613
  }
3637
3614
  }, {
@@ -3676,11 +3653,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3676
3653
  var windowScrollLeft = this.getWindowScrollLeft();
3677
3654
  var viewport = this.getViewport();
3678
3655
  var top, left;
3679
-
3680
3656
  if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
3681
3657
  top = targetOffset.top + windowScrollTop - elementOuterHeight;
3682
3658
  element.style.transformOrigin = 'bottom';
3683
-
3684
3659
  if (top < 0) {
3685
3660
  top = windowScrollTop;
3686
3661
  }
@@ -3688,7 +3663,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3688
3663
  top = targetOuterHeight + targetOffset.top + windowScrollTop;
3689
3664
  element.style.transformOrigin = 'top';
3690
3665
  }
3691
-
3692
3666
  if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
3693
3667
  element.style.top = top + 'px';
3694
3668
  element.style.left = left + 'px';
@@ -3704,11 +3678,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3704
3678
  var targetOffset = target.getBoundingClientRect();
3705
3679
  var viewport = this.getViewport();
3706
3680
  var top, left;
3707
-
3708
3681
  if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
3709
3682
  top = -1 * elementDimensions.height;
3710
3683
  element.style.transformOrigin = 'bottom';
3711
-
3712
3684
  if (targetOffset.top + top < 0) {
3713
3685
  top = -1 * targetOffset.top;
3714
3686
  }
@@ -3716,7 +3688,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3716
3688
  top = targetHeight;
3717
3689
  element.style.transformOrigin = 'top';
3718
3690
  }
3719
-
3720
3691
  if (elementDimensions.width > viewport.width) {
3721
3692
  // element wider then viewport and cannot fit on screen (align at left side of viewport)
3722
3693
  left = targetOffset.left * -1;
@@ -3727,7 +3698,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3727
3698
  // element fits on screen (align with target)
3728
3699
  left = 0;
3729
3700
  }
3730
-
3731
3701
  element.style.top = top + 'px';
3732
3702
  element.style.left = left + 'px';
3733
3703
  }
@@ -3741,35 +3711,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3741
3711
  key: "getScrollableParents",
3742
3712
  value: function getScrollableParents(element) {
3743
3713
  var scrollableParents = [];
3744
-
3745
3714
  if (element) {
3746
3715
  var parents = this.getParents(element);
3747
3716
  var overflowRegex = /(auto|scroll)/;
3748
-
3749
3717
  var overflowCheck = function overflowCheck(node) {
3750
3718
  var styleDeclaration = window['getComputedStyle'](node, null);
3751
3719
  return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
3752
3720
  };
3753
-
3754
3721
  var _iterator = _createForOfIteratorHelper(parents),
3755
- _step;
3756
-
3722
+ _step;
3757
3723
  try {
3758
3724
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
3759
3725
  var parent = _step.value;
3760
3726
  var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
3761
-
3762
3727
  if (scrollSelectors) {
3763
3728
  var selectors = scrollSelectors.split(',');
3764
-
3765
3729
  var _iterator2 = _createForOfIteratorHelper(selectors),
3766
- _step2;
3767
-
3730
+ _step2;
3768
3731
  try {
3769
3732
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3770
3733
  var selector = _step2.value;
3771
3734
  var el = this.findSingle(parent, selector);
3772
-
3773
3735
  if (el && overflowCheck(el)) {
3774
3736
  scrollableParents.push(el);
3775
3737
  }
@@ -3787,7 +3749,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3787
3749
  _iterator.f();
3788
3750
  }
3789
3751
  }
3790
-
3791
3752
  return scrollableParents;
3792
3753
  }
3793
3754
  }, {
@@ -3828,34 +3789,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3828
3789
  element.style.opacity = 0;
3829
3790
  var last = +new Date();
3830
3791
  var opacity = 0;
3831
-
3832
3792
  var tick = function tick() {
3833
3793
  opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
3834
3794
  element.style.opacity = opacity;
3835
3795
  last = +new Date();
3836
-
3837
3796
  if (+opacity < 1) {
3838
3797
  window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
3839
3798
  }
3840
3799
  };
3841
-
3842
3800
  tick();
3843
3801
  }
3844
3802
  }, {
3845
3803
  key: "fadeOut",
3846
3804
  value: function fadeOut(element, ms) {
3847
3805
  var opacity = 1,
3848
- interval = 50,
3849
- duration = ms,
3850
- gap = interval / duration;
3806
+ interval = 50,
3807
+ duration = ms,
3808
+ gap = interval / duration;
3851
3809
  var fading = setInterval(function () {
3852
3810
  opacity -= gap;
3853
-
3854
3811
  if (opacity <= 0) {
3855
3812
  opacity = 0;
3856
3813
  clearInterval(fading);
3857
3814
  }
3858
-
3859
3815
  element.style.opacity = opacity;
3860
3816
  }, interval);
3861
3817
  }
@@ -3882,7 +3838,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3882
3838
  var scroll = container.scrollTop;
3883
3839
  var elementHeight = container.clientHeight;
3884
3840
  var itemHeight = this.getOuterHeight(item);
3885
-
3886
3841
  if (offset < 0) {
3887
3842
  container.scrollTop = scroll + offset;
3888
3843
  } else if (offset + itemHeight > elementHeight) {
@@ -3901,7 +3856,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3901
3856
  } else if (document['selection'] && document['selection'].empty) {
3902
3857
  try {
3903
3858
  document['selection'].empty();
3904
- } catch (error) {//ignore IE bug
3859
+ } catch (error) {
3860
+ //ignore IE bug
3905
3861
  }
3906
3862
  }
3907
3863
  }
@@ -3923,19 +3879,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3923
3879
  if (!this.browser) {
3924
3880
  var matched = this.resolveUserAgent();
3925
3881
  this.browser = {};
3926
-
3927
3882
  if (matched.browser) {
3928
3883
  this.browser[matched.browser] = true;
3929
3884
  this.browser['version'] = matched.version;
3930
3885
  }
3931
-
3932
3886
  if (this.browser['chrome']) {
3933
3887
  this.browser['webkit'] = true;
3934
3888
  } else if (this.browser['webkit']) {
3935
3889
  this.browser['safari'] = true;
3936
3890
  }
3937
3891
  }
3938
-
3939
3892
  return this.browser;
3940
3893
  }
3941
3894
  }, {
@@ -3963,10 +3916,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3963
3916
  value: function getFocusableElements(element) {
3964
3917
  var focusableElements = DomHandler.find(element, "button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])");
3965
3918
  var visibleFocusableElements = [];
3966
-
3967
3919
  var _iterator3 = _createForOfIteratorHelper(focusableElements),
3968
- _step3;
3969
-
3920
+ _step3;
3970
3921
  try {
3971
3922
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3972
3923
  var focusableElement = _step3.value;
@@ -3977,7 +3928,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
3977
3928
  } finally {
3978
3929
  _iterator3.f();
3979
3930
  }
3980
-
3981
3931
  return visibleFocusableElements;
3982
3932
  }
3983
3933
  }, {
@@ -4020,55 +3970,43 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
4020
3970
  return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
4021
3971
  }
4022
3972
  }]);
4023
-
4024
3973
  return DomHandler;
4025
3974
  }();
4026
3975
 
4027
-
4028
3976
  // CONCATENATED MODULE: ./src/components/ripple/Ripple.js
4029
3977
 
4030
-
4031
3978
  function bindEvents(el) {
4032
3979
  el.addEventListener('mousedown', onMouseDown);
4033
3980
  }
4034
-
4035
3981
  function unbindEvents(el) {
4036
3982
  el.removeEventListener('mousedown', onMouseDown);
4037
3983
  }
4038
-
4039
3984
  function create(el) {
4040
3985
  var ink = document.createElement('span');
4041
3986
  ink.className = 'p-ink';
4042
3987
  el.appendChild(ink);
4043
3988
  ink.addEventListener('animationend', onAnimationEnd);
4044
3989
  }
4045
-
4046
3990
  function remove(el) {
4047
3991
  var ink = getInk(el);
4048
-
4049
3992
  if (ink) {
4050
3993
  unbindEvents(el);
4051
3994
  ink.removeEventListener('animationend', onAnimationEnd);
4052
3995
  ink.remove();
4053
3996
  }
4054
3997
  }
4055
-
4056
3998
  function onMouseDown(event) {
4057
3999
  var target = event.currentTarget;
4058
4000
  var ink = getInk(target);
4059
-
4060
4001
  if (!ink || getComputedStyle(ink, null).display === 'none') {
4061
4002
  return;
4062
4003
  }
4063
-
4064
4004
  DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
4065
-
4066
4005
  if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
4067
4006
  var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
4068
4007
  ink.style.height = d + 'px';
4069
4008
  ink.style.width = d + 'px';
4070
4009
  }
4071
-
4072
4010
  var offset = DomHandler_DomHandler.getOffset(target);
4073
4011
  var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
4074
4012
  var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
@@ -4076,21 +4014,17 @@ function onMouseDown(event) {
4076
4014
  ink.style.left = x + 'px';
4077
4015
  DomHandler_DomHandler.addClass(ink, 'p-ink-active');
4078
4016
  }
4079
-
4080
4017
  function onAnimationEnd(event) {
4081
4018
  DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
4082
4019
  }
4083
-
4084
4020
  function getInk(el) {
4085
4021
  for (var i = 0; i < el.children.length; i++) {
4086
4022
  if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
4087
4023
  return el.children[i];
4088
4024
  }
4089
4025
  }
4090
-
4091
4026
  return null;
4092
4027
  }
4093
-
4094
4028
  var Ripple = {
4095
4029
  inserted: function inserted(el, binding, vnode) {
4096
4030
  if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
@@ -4136,22 +4070,18 @@ var Ripple = {
4136
4070
  event.preventDefault();
4137
4071
  return;
4138
4072
  }
4139
-
4140
4073
  if (!item.url && !item.to) {
4141
4074
  event.preventDefault();
4142
4075
  }
4143
-
4144
4076
  if (item.command) {
4145
4077
  item.command({
4146
4078
  originalEvent: event,
4147
4079
  item: item
4148
4080
  });
4149
4081
  }
4150
-
4151
4082
  if (item.to && navigate) {
4152
4083
  navigate(event);
4153
4084
  }
4154
-
4155
4085
  this.activeItem = null;
4156
4086
  },
4157
4087
  onCategoryMouseEnter: function onCategoryMouseEnter(event, category) {
@@ -4159,7 +4089,6 @@ var Ripple = {
4159
4089
  event.preventDefault();
4160
4090
  return;
4161
4091
  }
4162
-
4163
4092
  if (this.activeItem) {
4164
4093
  this.activeItem = category;
4165
4094
  }
@@ -4169,18 +4098,15 @@ var Ripple = {
4169
4098
  event.preventDefault();
4170
4099
  return;
4171
4100
  }
4172
-
4173
4101
  if (!category.url && !category.to) {
4174
4102
  event.preventDefault();
4175
4103
  }
4176
-
4177
4104
  if (category.command) {
4178
4105
  category.command({
4179
4106
  originalEvent: event,
4180
4107
  item: category
4181
4108
  });
4182
4109
  }
4183
-
4184
4110
  if (category.items) {
4185
4111
  if (this.activeItem && this.activeItem === category) {
4186
4112
  this.activeItem = null;
@@ -4193,32 +4119,30 @@ var Ripple = {
4193
4119
  },
4194
4120
  onCategoryKeydown: function onCategoryKeydown(event, category) {
4195
4121
  var listItem = event.currentTarget.parentElement;
4196
-
4197
4122
  switch (event.which) {
4198
4123
  //down
4199
4124
  case 40:
4200
4125
  if (this.horizontal) this.expandMenu(category);else this.navigateToNextItem(listItem);
4201
4126
  event.preventDefault();
4202
4127
  break;
4203
- //up
4204
4128
 
4129
+ //up
4205
4130
  case 38:
4206
4131
  if (this.vertical) this.navigateToPrevItem(listItem);else if (category.items && category === this.activeItem) this.collapseMenu();
4207
4132
  event.preventDefault();
4208
4133
  break;
4209
- //right
4210
4134
 
4135
+ //right
4211
4136
  case 39:
4212
4137
  if (this.horizontal) this.navigateToNextItem(listItem);else this.expandMenu(category);
4213
4138
  event.preventDefault();
4214
4139
  break;
4215
- //left
4216
4140
 
4141
+ //left
4217
4142
  case 37:
4218
4143
  if (this.horizontal) this.navigateToPrevItem(listItem);else if (category.items && category === this.activeItem) this.collapseMenu();
4219
4144
  event.preventDefault();
4220
4145
  break;
4221
-
4222
4146
  default:
4223
4147
  break;
4224
4148
  }
@@ -4241,14 +4165,12 @@ var Ripple = {
4241
4165
  },
4242
4166
  navigateToNextItem: function navigateToNextItem(listItem) {
4243
4167
  var nextItem = this.findNextItem(listItem);
4244
-
4245
4168
  if (nextItem) {
4246
4169
  nextItem.children[0].focus();
4247
4170
  }
4248
4171
  },
4249
4172
  navigateToPrevItem: function navigateToPrevItem(listItem) {
4250
4173
  var prevItem = this.findPrevItem(listItem);
4251
-
4252
4174
  if (prevItem) {
4253
4175
  prevItem.children[0].focus();
4254
4176
  }
@@ -4270,29 +4192,23 @@ var Ripple = {
4270
4192
  getColumnClassName: function getColumnClassName(category) {
4271
4193
  var length = category.items ? category.items.length : 0;
4272
4194
  var columnClass;
4273
-
4274
4195
  switch (length) {
4275
4196
  case 2:
4276
4197
  columnClass = 'p-megamenu-col-6';
4277
4198
  break;
4278
-
4279
4199
  case 3:
4280
4200
  columnClass = 'p-megamenu-col-4';
4281
4201
  break;
4282
-
4283
4202
  case 4:
4284
4203
  columnClass = 'p-megamenu-col-3';
4285
4204
  break;
4286
-
4287
4205
  case 6:
4288
4206
  columnClass = 'p-megamenu-col-2';
4289
4207
  break;
4290
-
4291
4208
  default:
4292
4209
  columnClass = 'p-megamenu-col-12';
4293
4210
  break;
4294
4211
  }
4295
-
4296
4212
  return columnClass;
4297
4213
  },
4298
4214
  getSubmenuHeaderClass: function getSubmenuHeaderClass(submenu) {
@@ -4312,16 +4228,13 @@ var Ripple = {
4312
4228
  },
4313
4229
  bindDocumentClickListener: function bindDocumentClickListener() {
4314
4230
  var _this = this;
4315
-
4316
4231
  if (!this.documentClickListener) {
4317
4232
  this.documentClickListener = function (event) {
4318
4233
  if (_this.$el && !_this.$el.contains(event.target)) {
4319
4234
  _this.activeItem = null;
4320
-
4321
4235
  _this.unbindDocumentClickListener();
4322
4236
  }
4323
4237
  };
4324
-
4325
4238
  document.addEventListener('click', this.documentClickListener);
4326
4239
  }
4327
4240
  },