primevue 2.10.0 → 2.10.2
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.
- package/README.md +150 -3
- package/accordion/accordion.common.js +2 -7
- package/accordion/accordion.umd.js +2 -7
- package/accordiontab/accordiontab.common.js +1203 -104
- package/accordiontab/accordiontab.umd.js +1203 -104
- package/accordiontab/accordiontab.umd.min.js +1 -1
- package/api/Api.d.ts +24 -2
- package/api/Api.js +0 -6
- package/api/FilterService.js +3 -56
- package/api/PrimeIcons.js +24 -2
- package/api/api.common.js +78 -133
- package/api/api.umd.js +78 -133
- package/api/api.umd.min.js +1 -1
- package/api/filterservice.common.js +54 -131
- package/api/filterservice.umd.js +54 -131
- package/api/filterservice.umd.min.js +1 -1
- package/api/primeicons.common.js +24 -2
- package/api/primeicons.umd.js +24 -2
- package/api/primeicons.umd.min.js +1 -1
- package/autocomplete/autocomplete.common.js +84 -246
- package/autocomplete/autocomplete.umd.js +84 -246
- package/autocomplete/autocomplete.umd.min.js +1 -1
- package/avatar/avatar.common.js +2 -4
- package/avatar/avatar.umd.js +2 -4
- package/avatargroup/avatargroup.common.js +2 -4
- package/avatargroup/avatargroup.umd.js +2 -4
- package/badge/badge.common.js +2 -4
- package/badge/badge.umd.js +2 -4
- package/badgedirective/BadgeDirective.js +0 -13
- package/badgedirective/badgedirective.common.js +1183 -89
- package/badgedirective/badgedirective.umd.js +1183 -89
- package/badgedirective/badgedirective.umd.min.js +1 -1
- package/blockui/blockui.common.js +1180 -86
- package/blockui/blockui.umd.js +1180 -86
- package/blockui/blockui.umd.min.js +1 -1
- package/breadcrumb/breadcrumb.common.js +7 -12
- package/breadcrumb/breadcrumb.umd.js +7 -12
- package/breadcrumb/breadcrumbitem.common.js +5 -8
- package/breadcrumb/breadcrumbitem.umd.js +5 -8
- package/button/button.common.js +1211 -125
- package/button/button.umd.js +1211 -125
- package/button/button.umd.min.js +1 -1
- package/calendar/Calendar.vue +9 -7
- package/calendar/calendar.common.js +224 -613
- package/calendar/calendar.umd.js +224 -613
- package/calendar/calendar.umd.min.js +1 -1
- package/card/card.common.js +2 -4
- package/card/card.umd.js +2 -4
- package/carousel/carousel.common.js +1190 -146
- package/carousel/carousel.umd.js +1190 -146
- package/carousel/carousel.umd.min.js +1 -1
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/cascadeselect.common.js +136 -286
- package/cascadeselect/cascadeselect.umd.js +136 -286
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +69 -185
- package/cascadeselect/cascadeselectsub.umd.js +69 -185
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/cascadeselect/demo.html +4 -3
- package/chart/chart.common.js +2 -9
- package/chart/chart.umd.js +2 -9
- package/checkbox/checkbox.common.js +58 -116
- package/checkbox/checkbox.umd.js +58 -116
- package/checkbox/checkbox.umd.min.js +1 -1
- package/chip/chip.common.js +2 -4
- package/chip/chip.umd.js +2 -4
- package/chips/chips.common.js +12 -59
- package/chips/chips.umd.js +12 -59
- package/chips/chips.umd.min.js +1 -1
- package/colorpicker/colorpicker.common.js +1197 -140
- package/colorpicker/colorpicker.umd.js +1197 -140
- package/colorpicker/colorpicker.umd.min.js +1 -1
- package/columngroup/columngroup.common.js +2 -4
- package/columngroup/columngroup.umd.js +2 -4
- package/config/PrimeVue.js +4 -6
- package/config/primevue.common.js +124 -155
- package/config/primevue.umd.js +124 -155
- package/config/primevue.umd.min.js +1 -1
- package/confirmationeventbus/ConfirmationEventBus.js +0 -4
- package/confirmationeventbus/confirmationeventbus.common.js +0 -2
- package/confirmationeventbus/confirmationeventbus.umd.js +0 -2
- package/confirmationservice/ConfirmationService.js +0 -3
- package/confirmationservice/confirmationservice.common.js +0 -2
- package/confirmationservice/confirmationservice.umd.js +0 -2
- package/confirmdialog/confirmdialog.common.js +1252 -186
- package/confirmdialog/confirmdialog.umd.js +1252 -186
- package/confirmdialog/confirmdialog.umd.min.js +1 -1
- package/confirmpopup/confirmpopup.common.js +1212 -152
- package/confirmpopup/confirmpopup.umd.js +1212 -152
- package/confirmpopup/confirmpopup.umd.min.js +1 -1
- package/contextmenu/contextmenu.common.js +1209 -140
- package/contextmenu/contextmenu.umd.js +1209 -140
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +1187 -107
- package/contextmenu/contextmenusub.umd.js +1187 -107
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/datatable/TableBody.vue +1 -0
- package/datatable/bodycell.common.js +87 -215
- package/datatable/bodycell.umd.js +87 -215
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/columnfilter.common.js +97 -299
- package/datatable/columnfilter.umd.js +97 -299
- package/datatable/columnfilter.umd.min.js +1 -1
- package/datatable/datatable.common.js +258 -950
- package/datatable/datatable.umd.js +258 -950
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -5
- package/datatable/footercell.common.js +83 -170
- package/datatable/footercell.umd.js +83 -170
- package/datatable/footercell.umd.min.js +1 -1
- package/datatable/headercell.common.js +101 -318
- package/datatable/headercell.umd.js +101 -318
- package/datatable/headercell.umd.min.js +1 -1
- package/datatable/headercheckbox.common.js +2 -4
- package/datatable/headercheckbox.umd.js +2 -4
- package/datatable/rowcheckbox.common.js +2 -4
- package/datatable/rowcheckbox.umd.js +2 -4
- package/datatable/rowradiobutton.common.js +2 -4
- package/datatable/rowradiobutton.umd.js +2 -4
- package/datatable/tablebody.common.js +91 -243
- package/datatable/tablebody.umd.js +91 -243
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +88 -204
- package/datatable/tablefooter.umd.js +88 -204
- package/datatable/tablefooter.umd.min.js +1 -1
- package/datatable/tableheader.common.js +104 -342
- package/datatable/tableheader.umd.js +104 -342
- package/datatable/tableheader.umd.min.js +1 -1
- package/datatable/tableloadingbody.common.js +2 -4
- package/datatable/tableloadingbody.umd.js +2 -4
- package/dataview/dataview.common.js +172 -464
- package/dataview/dataview.umd.js +172 -464
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +2 -4
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +2 -4
- package/deferredcontent/deferredcontent.common.js +2 -7
- package/deferredcontent/deferredcontent.umd.js +2 -7
- package/dialog/dialog.common.js +1191 -115
- package/dialog/dialog.umd.js +1191 -115
- package/dialog/dialog.umd.min.js +1 -1
- package/divider/divider.common.js +2 -4
- package/divider/divider.umd.js +2 -4
- package/dock/dock.common.js +7 -14
- package/dock/dock.umd.js +7 -14
- package/dock/docksub.common.js +5 -9
- package/dock/docksub.umd.js +5 -9
- package/dropdown/dropdown.common.js +91 -240
- package/dropdown/dropdown.umd.js +91 -240
- package/dropdown/dropdown.umd.min.js +1 -1
- package/editor/editor.common.js +8 -21
- package/editor/editor.umd.js +8 -21
- package/fieldset/fieldset.common.js +1211 -125
- package/fieldset/fieldset.umd.js +1211 -125
- package/fieldset/fieldset.umd.min.js +1 -1
- package/fileupload/fileupload.common.js +86 -192
- package/fileupload/fileupload.umd.js +86 -192
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +1304 -36
- package/fullcalendar/fullcalendar.umd.js +1304 -36
- package/fullcalendar/fullcalendar.umd.min.js +3 -3
- package/galleria/demo.html +3 -3
- package/galleria/galleria.common.js +86 -200
- package/galleria/galleria.umd.js +86 -200
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +84 -190
- package/galleria/galleriacontent.umd.js +84 -190
- package/galleria/galleriacontent.umd.min.js +1 -1
- package/galleria/galleriaitem.common.js +1212 -134
- package/galleria/galleriaitem.umd.js +1212 -134
- package/galleria/galleriaitem.umd.min.js +1 -1
- package/galleria/galleriaitemslot.common.js +4 -10
- package/galleria/galleriaitemslot.umd.js +4 -10
- package/galleria/galleriathumbnails.common.js +76 -174
- package/galleria/galleriathumbnails.umd.js +76 -174
- package/galleria/galleriathumbnails.umd.min.js +1 -1
- package/imagepreview/imagepreview.common.js +1176 -79
- package/imagepreview/imagepreview.umd.js +1176 -79
- package/imagepreview/imagepreview.umd.min.js +1 -1
- package/inlinemessage/inlinemessage.common.js +2 -5
- package/inlinemessage/inlinemessage.umd.js +2 -5
- package/inplace/inplace.common.js +1189 -105
- package/inplace/inplace.umd.js +1189 -105
- package/inplace/inplace.umd.min.js +1 -1
- package/inputmask/inputmask.common.js +1237 -217
- package/inputmask/inputmask.umd.js +1237 -217
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +2 -2
- package/inputnumber/inputnumber.common.js +136 -286
- package/inputnumber/inputnumber.umd.js +136 -286
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +2 -5
- package/inputswitch/inputswitch.umd.js +2 -5
- package/inputtext/inputtext.common.js +1177 -31
- package/inputtext/inputtext.umd.js +1177 -31
- package/inputtext/inputtext.umd.min.js +1 -1
- package/knob/knob.common.js +4 -5
- package/knob/knob.umd.js +4 -5
- package/listbox/listbox.common.js +76 -213
- package/listbox/listbox.umd.js +76 -213
- package/listbox/listbox.umd.min.js +1 -1
- package/megamenu/megamenu.common.js +1186 -121
- package/megamenu/megamenu.umd.js +1186 -121
- package/megamenu/megamenu.umd.min.js +1 -1
- package/menu/menu.common.js +1203 -138
- package/menu/menu.umd.js +1203 -138
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +1214 -128
- package/menu/menuitem.umd.js +1214 -128
- package/menu/menuitem.umd.min.js +1 -1
- package/menubar/menubar.common.js +1204 -141
- package/menubar/menubar.umd.js +1204 -141
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +1202 -135
- package/menubar/menubarsub.umd.js +1202 -135
- package/menubar/menubarsub.umd.min.js +1 -1
- package/message/message.common.js +1187 -102
- package/message/message.umd.js +1187 -102
- package/message/message.umd.min.js +1 -1
- package/multiselect/MultiSelect.vue +1 -1
- package/multiselect/multiselect.common.js +139 -304
- package/multiselect/multiselect.umd.js +139 -304
- package/multiselect/multiselect.umd.min.js +1 -1
- package/orderlist/orderlist.common.js +88 -230
- package/orderlist/orderlist.umd.js +88 -230
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +1200 -111
- package/organizationchart/organizationchart.umd.js +1200 -111
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +1186 -87
- package/organizationchart/organizationchartnode.umd.js +1186 -87
- package/organizationchart/organizationchartnode.umd.min.js +1 -1
- package/overlayeventbus/OverlayEventBus.js +0 -4
- package/overlayeventbus/overlayeventbus.common.js +0 -2
- package/overlayeventbus/overlayeventbus.umd.js +0 -2
- package/overlaypanel/OverlayPanel.d.ts +3 -1
- package/overlaypanel/OverlayPanel.vue +2 -0
- package/overlaypanel/overlaypanel.common.js +1223 -158
- package/overlaypanel/overlaypanel.umd.js +1223 -158
- package/overlaypanel/overlaypanel.umd.min.js +1 -1
- package/package.json +2 -2
- package/paginator/currentpagereport.common.js +2 -4
- package/paginator/currentpagereport.umd.js +2 -4
- package/paginator/firstpagelink.common.js +1211 -125
- package/paginator/firstpagelink.umd.js +1211 -125
- package/paginator/firstpagelink.umd.min.js +1 -1
- package/paginator/jumptopagedropdown.common.js +93 -246
- package/paginator/jumptopagedropdown.umd.js +93 -246
- package/paginator/jumptopagedropdown.umd.min.js +1 -1
- package/paginator/jumptopageinput.common.js +142 -294
- package/paginator/jumptopageinput.umd.js +142 -294
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +1211 -125
- package/paginator/lastpagelink.umd.js +1211 -125
- package/paginator/lastpagelink.umd.min.js +1 -1
- package/paginator/nextpagelink.common.js +1211 -125
- package/paginator/nextpagelink.umd.js +1211 -125
- package/paginator/nextpagelink.umd.min.js +1 -1
- package/paginator/pagelinks.common.js +1211 -125
- package/paginator/pagelinks.umd.js +1211 -125
- package/paginator/pagelinks.umd.min.js +1 -1
- package/paginator/paginator.common.js +186 -472
- package/paginator/paginator.umd.js +186 -472
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +1211 -125
- package/paginator/prevpagelink.umd.js +1211 -125
- package/paginator/prevpagelink.umd.min.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +93 -246
- package/paginator/rowsperpagedropdown.umd.js +93 -246
- package/paginator/rowsperpagedropdown.umd.min.js +1 -1
- package/panel/panel.common.js +1211 -125
- package/panel/panel.umd.js +1211 -125
- package/panel/panel.umd.min.js +1 -1
- package/panelmenu/panelmenu.common.js +10 -22
- package/panelmenu/panelmenu.umd.js +10 -22
- package/panelmenu/panelmenusub.common.js +5 -11
- package/panelmenu/panelmenusub.umd.js +5 -11
- package/password/Password.vue +40 -12
- package/password/password.common.js +1306 -212
- package/password/password.umd.js +1306 -212
- package/password/password.umd.min.js +1 -1
- package/picklist/picklist.common.js +88 -262
- package/picklist/picklist.umd.js +88 -262
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/progressbar.common.js +2 -4
- package/progressbar/progressbar.umd.js +2 -4
- package/progressspinner/progressspinner.common.js +2 -5
- package/progressspinner/progressspinner.umd.js +2 -5
- package/radiobutton/radiobutton.common.js +53 -91
- package/radiobutton/radiobutton.umd.js +53 -91
- package/radiobutton/radiobutton.umd.min.js +1 -1
- package/rating/rating.common.js +2 -4
- package/rating/rating.umd.js +2 -4
- package/resources/primevue.css +0 -0
- package/resources/primevue.min.css +0 -0
- package/ripple/Ripple.js +0 -18
- package/ripple/ripple.common.js +1178 -90
- package/ripple/ripple.umd.js +1178 -90
- package/ripple/ripple.umd.min.js +1 -1
- package/row/row.common.js +2 -4
- package/row/row.umd.js +2 -4
- package/scrollpanel/scrollpanel.common.js +1190 -103
- package/scrollpanel/scrollpanel.umd.js +1190 -103
- package/scrollpanel/scrollpanel.umd.min.js +1 -1
- package/scrolltop/scrolltop.common.js +1183 -87
- package/scrolltop/scrolltop.umd.js +1183 -87
- package/scrolltop/scrolltop.umd.min.js +1 -1
- package/selectbutton/selectbutton.common.js +74 -200
- package/selectbutton/selectbutton.umd.js +74 -200
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/Sidebar.d.ts +1 -0
- package/sidebar/Sidebar.vue +3 -0
- package/sidebar/sidebar.common.js +1223 -145
- package/sidebar/sidebar.umd.js +1223 -145
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +2 -4
- package/skeleton/skeleton.umd.js +2 -4
- package/slider/Slider.vue +1 -1
- package/slider/slider.common.js +121 -188
- package/slider/slider.umd.js +121 -188
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.common.js +1269 -204
- package/speeddial/speeddial.umd.js +1269 -204
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +1209 -148
- package/splitbutton/splitbutton.umd.js +1209 -148
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/splitter/splitter.common.js +1182 -101
- package/splitter/splitter.umd.js +1182 -101
- package/splitter/splitter.umd.min.js +1 -1
- package/steps/steps.common.js +5 -9
- package/steps/steps.umd.js +5 -9
- package/styleclass/StyleClass.js +0 -43
- package/styleclass/styleclass.common.js +1199 -133
- package/styleclass/styleclass.umd.js +1199 -133
- package/styleclass/styleclass.umd.min.js +1 -1
- package/tabmenu/TabMenu.vue +1 -9
- package/tabmenu/tabmenu.common.js +1215 -206
- package/tabmenu/tabmenu.umd.js +1215 -206
- package/tabmenu/tabmenu.umd.min.js +1 -1
- package/tabpanel/tabpanel.common.js +2 -5
- package/tabpanel/tabpanel.umd.js +2 -5
- package/tabview/tabview.common.js +86 -185
- package/tabview/tabview.umd.js +86 -185
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/tag.common.js +2 -4
- package/tag/tag.umd.js +2 -4
- package/terminal/terminal.common.js +2 -4
- package/terminal/terminal.umd.js +2 -4
- package/terminalservice/TerminalService.js +0 -3
- package/textarea/Textarea.vue +24 -1
- package/textarea/textarea.common.js +3233 -94
- package/textarea/textarea.umd.js +3233 -94
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/demo.html +4 -3
- package/tieredmenu/tieredmenu.common.js +1199 -149
- package/tieredmenu/tieredmenu.umd.js +1199 -149
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +1206 -136
- package/tieredmenu/tieredmenusub.umd.js +1206 -136
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +53 -90
- package/timeline/timeline.umd.js +53 -90
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/toast.common.js +74 -146
- package/toast/toast.umd.js +74 -146
- package/toast/toast.umd.min.js +1 -1
- package/toast/toastmessage.common.js +1187 -102
- package/toast/toastmessage.umd.js +1187 -102
- package/toast/toastmessage.umd.min.js +1 -1
- package/toastservice/ToastEventBus.js +0 -3
- package/toastservice/ToastService.js +0 -3
- package/togglebutton/togglebutton.common.js +1211 -125
- package/togglebutton/togglebutton.umd.js +1211 -125
- package/togglebutton/togglebutton.umd.min.js +1 -1
- package/toolbar/toolbar.common.js +2 -4
- package/toolbar/toolbar.umd.js +2 -4
- package/tooltip/Tooltip.js +7 -87
- package/tooltip/tooltip.common.js +84 -201
- package/tooltip/tooltip.umd.js +84 -201
- package/tooltip/tooltip.umd.min.js +1 -1
- package/tree/demo.html +3 -3
- package/tree/tree.common.js +100 -281
- package/tree/tree.umd.js +100 -281
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +1240 -183
- package/tree/treenode.umd.js +1240 -183
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/demo.html +3 -3
- package/treetable/footercell.common.js +83 -170
- package/treetable/footercell.umd.js +83 -170
- package/treetable/footercell.umd.min.js +1 -1
- package/treetable/headercell.common.js +83 -178
- package/treetable/headercell.umd.js +83 -178
- package/treetable/headercell.umd.min.js +1 -1
- package/treetable/treetable.common.js +220 -702
- package/treetable/treetable.umd.js +220 -702
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +91 -211
- package/treetable/treetablerow.umd.js +91 -211
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +94 -232
- package/treetable/treetablerowloader.umd.js +94 -232
- package/treetable/treetablerowloader.umd.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.common.js +2 -12
- package/tristatecheckbox/tristatecheckbox.umd.js +2 -12
- package/utils/ConnectedOverlayScrollHandler.js +4 -13
- package/utils/DomHandler.js +18 -63
- package/utils/EventBus.js +0 -3
- package/utils/ObjectUtils.js +15 -59
- package/utils/UniqueComponentId.js +0 -1
- package/utils/Utils.js +0 -6
- package/utils/connectedoverlayscrollhandler.common.js +1183 -88
- package/utils/connectedoverlayscrollhandler.umd.js +1183 -88
- package/utils/connectedoverlayscrollhandler.umd.min.js +1 -1
- package/utils/domhandler.common.js +1187 -85
- package/utils/domhandler.umd.js +1187 -85
- package/utils/domhandler.umd.min.js +1 -1
- package/utils/eventbus.common.js +0 -2
- package/utils/eventbus.umd.js +0 -2
- package/utils/objectutils.common.js +51 -86
- package/utils/objectutils.umd.js +51 -86
- package/utils/objectutils.umd.min.js +1 -1
- package/utils/utils.common.js +81 -170
- package/utils/utils.umd.js +81 -170
- package/utils/utils.umd.min.js +1 -1
- package/web-types.json +8 -1
package/tooltip/Tooltip.js
CHANGED
|
@@ -4,32 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _UniqueComponentId = _interopRequireDefault(require("../utils/UniqueComponentId"));
|
|
9
|
-
|
|
10
8
|
var _DomHandler = _interopRequireDefault(require("../utils/DomHandler"));
|
|
11
|
-
|
|
12
9
|
var _ConnectedOverlayScrollHandler = _interopRequireDefault(require("../utils/ConnectedOverlayScrollHandler"));
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
11
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
-
|
|
18
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."); }
|
|
19
|
-
|
|
20
13
|
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); }
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
25
|
-
|
|
14
|
+
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; }
|
|
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; } }
|
|
26
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
|
-
|
|
28
17
|
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); }
|
|
29
|
-
|
|
30
18
|
function bindEvents(el) {
|
|
31
19
|
var modifiers = el.$_ptooltipModifiers;
|
|
32
|
-
|
|
33
20
|
if (modifiers.focus) {
|
|
34
21
|
el.addEventListener('focus', onFocus);
|
|
35
22
|
el.addEventListener('blur', onBlur);
|
|
@@ -39,10 +26,8 @@ function bindEvents(el) {
|
|
|
39
26
|
el.addEventListener('click', onClick);
|
|
40
27
|
}
|
|
41
28
|
}
|
|
42
|
-
|
|
43
29
|
function unbindEvents(el) {
|
|
44
30
|
var modifiers = el.$_ptooltipModifiers;
|
|
45
|
-
|
|
46
31
|
if (modifiers.focus) {
|
|
47
32
|
el.removeEventListener('focus', onFocus);
|
|
48
33
|
el.removeEventListener('blur', onBlur);
|
|
@@ -52,73 +37,57 @@ function unbindEvents(el) {
|
|
|
52
37
|
el.removeEventListener('click', onClick);
|
|
53
38
|
}
|
|
54
39
|
}
|
|
55
|
-
|
|
56
40
|
function bindScrollListener(el) {
|
|
57
41
|
if (!el.$_ptooltipScrollHandler) {
|
|
58
42
|
el.$_ptooltipScrollHandler = new _ConnectedOverlayScrollHandler.default(el, function () {
|
|
59
43
|
hide(el);
|
|
60
44
|
});
|
|
61
45
|
}
|
|
62
|
-
|
|
63
46
|
el.$_ptooltipScrollHandler.bindScrollListener();
|
|
64
47
|
}
|
|
65
|
-
|
|
66
48
|
function unbindScrollListener(el) {
|
|
67
49
|
if (el.$_ptooltipScrollHandler) {
|
|
68
50
|
el.$_ptooltipScrollHandler.unbindScrollListener();
|
|
69
51
|
}
|
|
70
52
|
}
|
|
71
|
-
|
|
72
53
|
function onMouseEnter(event) {
|
|
73
54
|
show(event.currentTarget);
|
|
74
55
|
}
|
|
75
|
-
|
|
76
56
|
function onMouseLeave(event) {
|
|
77
57
|
hide(event.currentTarget);
|
|
78
58
|
}
|
|
79
|
-
|
|
80
59
|
function onFocus(event) {
|
|
81
60
|
show(event.currentTarget);
|
|
82
61
|
}
|
|
83
|
-
|
|
84
62
|
function onBlur(event) {
|
|
85
63
|
hide(event.currentTarget);
|
|
86
64
|
}
|
|
87
|
-
|
|
88
65
|
function onClick(event) {
|
|
89
66
|
hide(event.currentTarget);
|
|
90
67
|
}
|
|
91
|
-
|
|
92
68
|
function show(el) {
|
|
93
69
|
if (el.$_ptooltipDisabled) {
|
|
94
70
|
return;
|
|
95
71
|
}
|
|
96
|
-
|
|
97
72
|
var tooltipElement = create(el);
|
|
98
73
|
align(el);
|
|
99
|
-
|
|
100
74
|
_DomHandler.default.fadeIn(tooltipElement, 250);
|
|
101
|
-
|
|
102
75
|
tooltipElement.style.zIndex = ++_DomHandler.default.zindex;
|
|
103
76
|
window.addEventListener('resize', function onWindowResize() {
|
|
104
77
|
if (!_DomHandler.default.isAndroid()) {
|
|
105
78
|
hide(el);
|
|
106
79
|
}
|
|
107
|
-
|
|
108
80
|
this.removeEventListener('resize', onWindowResize);
|
|
109
81
|
});
|
|
110
82
|
bindScrollListener(el);
|
|
111
83
|
}
|
|
112
|
-
|
|
113
84
|
function hide(el) {
|
|
114
85
|
remove(el);
|
|
115
86
|
unbindScrollListener(el);
|
|
116
87
|
}
|
|
117
|
-
|
|
118
88
|
function getTooltipElement(el) {
|
|
119
89
|
return document.getElementById(el.$_ptooltipId);
|
|
120
90
|
}
|
|
121
|
-
|
|
122
91
|
function create(el) {
|
|
123
92
|
var id = (0, _UniqueComponentId.default)() + '_tooltip';
|
|
124
93
|
el.$_ptooltipId = id;
|
|
@@ -129,57 +98,44 @@ function create(el) {
|
|
|
129
98
|
container.appendChild(tooltipArrow);
|
|
130
99
|
var tooltipText = document.createElement('div');
|
|
131
100
|
tooltipText.className = 'p-tooltip-text';
|
|
132
|
-
|
|
133
101
|
if (el.$_ptooltipEscape) {
|
|
134
102
|
tooltipText.innerHTML = el.$_ptooltipValue;
|
|
135
103
|
} else {
|
|
136
104
|
tooltipText.innerHTML = '';
|
|
137
105
|
tooltipText.appendChild(document.createTextNode(el.$_ptooltipValue));
|
|
138
106
|
}
|
|
139
|
-
|
|
140
107
|
container.appendChild(tooltipText);
|
|
141
108
|
document.body.appendChild(container);
|
|
142
109
|
container.style.display = 'inline-block';
|
|
143
110
|
return container;
|
|
144
111
|
}
|
|
145
|
-
|
|
146
112
|
function remove(el) {
|
|
147
113
|
if (el) {
|
|
148
114
|
var tooltipElement = getTooltipElement(el);
|
|
149
|
-
|
|
150
115
|
if (tooltipElement && tooltipElement.parentElement) {
|
|
151
116
|
document.body.removeChild(tooltipElement);
|
|
152
117
|
}
|
|
153
|
-
|
|
154
118
|
el.$_ptooltipId = null;
|
|
155
119
|
}
|
|
156
120
|
}
|
|
157
|
-
|
|
158
121
|
function align(el) {
|
|
159
122
|
var modifiers = el.$_ptooltipModifiers;
|
|
160
|
-
|
|
161
123
|
if (modifiers.top) {
|
|
162
124
|
alignTop(el);
|
|
163
|
-
|
|
164
125
|
if (isOutOfBounds(el)) {
|
|
165
126
|
alignBottom(el);
|
|
166
|
-
|
|
167
127
|
if (isOutOfBounds(el)) {
|
|
168
128
|
alignTop(el);
|
|
169
129
|
}
|
|
170
130
|
}
|
|
171
131
|
} else if (modifiers.left) {
|
|
172
132
|
alignLeft(el);
|
|
173
|
-
|
|
174
133
|
if (isOutOfBounds(el)) {
|
|
175
134
|
alignRight(el);
|
|
176
|
-
|
|
177
135
|
if (isOutOfBounds(el)) {
|
|
178
136
|
alignTop(el);
|
|
179
|
-
|
|
180
137
|
if (isOutOfBounds(el)) {
|
|
181
138
|
alignBottom(el);
|
|
182
|
-
|
|
183
139
|
if (isOutOfBounds(el)) {
|
|
184
140
|
alignLeft(el);
|
|
185
141
|
}
|
|
@@ -188,26 +144,20 @@ function align(el) {
|
|
|
188
144
|
}
|
|
189
145
|
} else if (modifiers.bottom) {
|
|
190
146
|
alignBottom(el);
|
|
191
|
-
|
|
192
147
|
if (isOutOfBounds(el)) {
|
|
193
148
|
alignTop(el);
|
|
194
|
-
|
|
195
149
|
if (isOutOfBounds(el)) {
|
|
196
150
|
alignBottom(el);
|
|
197
151
|
}
|
|
198
152
|
}
|
|
199
153
|
} else {
|
|
200
154
|
alignRight(el);
|
|
201
|
-
|
|
202
155
|
if (isOutOfBounds(el)) {
|
|
203
156
|
alignLeft(el);
|
|
204
|
-
|
|
205
157
|
if (isOutOfBounds(el)) {
|
|
206
158
|
alignTop(el);
|
|
207
|
-
|
|
208
159
|
if (isOutOfBounds(el)) {
|
|
209
160
|
alignBottom(el);
|
|
210
|
-
|
|
211
161
|
if (isOutOfBounds(el)) {
|
|
212
162
|
alignRight(el);
|
|
213
163
|
}
|
|
@@ -216,115 +166,88 @@ function align(el) {
|
|
|
216
166
|
}
|
|
217
167
|
}
|
|
218
168
|
}
|
|
219
|
-
|
|
220
169
|
function getHostOffset(el) {
|
|
221
170
|
var offset = el.getBoundingClientRect();
|
|
222
|
-
|
|
223
171
|
var targetLeft = offset.left + _DomHandler.default.getWindowScrollLeft();
|
|
224
|
-
|
|
225
172
|
var targetTop = offset.top + _DomHandler.default.getWindowScrollTop();
|
|
226
|
-
|
|
227
173
|
return {
|
|
228
174
|
left: targetLeft,
|
|
229
175
|
top: targetTop
|
|
230
176
|
};
|
|
231
177
|
}
|
|
232
|
-
|
|
233
178
|
function alignRight(el) {
|
|
234
179
|
preAlign(el, 'right');
|
|
235
180
|
var tooltipElement = getTooltipElement(el);
|
|
236
181
|
var hostOffset = getHostOffset(el);
|
|
237
|
-
|
|
238
182
|
var left = hostOffset.left + _DomHandler.default.getOuterWidth(el);
|
|
239
|
-
|
|
240
183
|
var top = hostOffset.top + (_DomHandler.default.getOuterHeight(el) - _DomHandler.default.getOuterHeight(tooltipElement)) / 2;
|
|
241
184
|
tooltipElement.style.left = left + 'px';
|
|
242
185
|
tooltipElement.style.top = top + 'px';
|
|
243
186
|
}
|
|
244
|
-
|
|
245
187
|
function alignLeft(el) {
|
|
246
188
|
preAlign(el, 'left');
|
|
247
189
|
var tooltipElement = getTooltipElement(el);
|
|
248
190
|
var hostOffset = getHostOffset(el);
|
|
249
|
-
|
|
250
191
|
var left = hostOffset.left - _DomHandler.default.getOuterWidth(tooltipElement);
|
|
251
|
-
|
|
252
192
|
var top = hostOffset.top + (_DomHandler.default.getOuterHeight(el) - _DomHandler.default.getOuterHeight(tooltipElement)) / 2;
|
|
253
193
|
tooltipElement.style.left = left + 'px';
|
|
254
194
|
tooltipElement.style.top = top + 'px';
|
|
255
195
|
}
|
|
256
|
-
|
|
257
196
|
function alignTop(el) {
|
|
258
197
|
preAlign(el, 'top');
|
|
259
198
|
var tooltipElement = getTooltipElement(el);
|
|
260
199
|
var hostOffset = getHostOffset(el);
|
|
261
200
|
var left = hostOffset.left + (_DomHandler.default.getOuterWidth(el) - _DomHandler.default.getOuterWidth(tooltipElement)) / 2;
|
|
262
|
-
|
|
263
201
|
var top = hostOffset.top - _DomHandler.default.getOuterHeight(tooltipElement);
|
|
264
|
-
|
|
265
202
|
tooltipElement.style.left = left + 'px';
|
|
266
203
|
tooltipElement.style.top = top + 'px';
|
|
267
204
|
}
|
|
268
|
-
|
|
269
205
|
function alignBottom(el) {
|
|
270
206
|
preAlign(el, 'bottom');
|
|
271
207
|
var tooltipElement = getTooltipElement(el);
|
|
272
208
|
var hostOffset = getHostOffset(el);
|
|
273
209
|
var left = hostOffset.left + (_DomHandler.default.getOuterWidth(el) - _DomHandler.default.getOuterWidth(tooltipElement)) / 2;
|
|
274
|
-
|
|
275
210
|
var top = hostOffset.top + _DomHandler.default.getOuterHeight(el);
|
|
276
|
-
|
|
277
211
|
tooltipElement.style.left = left + 'px';
|
|
278
212
|
tooltipElement.style.top = top + 'px';
|
|
279
213
|
}
|
|
280
|
-
|
|
281
214
|
function preAlign(el, position) {
|
|
282
215
|
var tooltipElement = getTooltipElement(el);
|
|
283
216
|
tooltipElement.style.left = -999 + 'px';
|
|
284
217
|
tooltipElement.style.top = -999 + 'px';
|
|
285
218
|
tooltipElement.className = 'p-tooltip p-component p-tooltip-' + position;
|
|
286
219
|
}
|
|
287
|
-
|
|
288
220
|
function isOutOfBounds(el) {
|
|
289
221
|
var tooltipElement = getTooltipElement(el);
|
|
290
222
|
var offset = tooltipElement.getBoundingClientRect();
|
|
291
223
|
var targetTop = offset.top;
|
|
292
224
|
var targetLeft = offset.left;
|
|
293
|
-
|
|
294
225
|
var width = _DomHandler.default.getOuterWidth(tooltipElement);
|
|
295
|
-
|
|
296
226
|
var height = _DomHandler.default.getOuterHeight(tooltipElement);
|
|
297
|
-
|
|
298
227
|
var viewport = _DomHandler.default.getViewport();
|
|
299
|
-
|
|
300
228
|
return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height;
|
|
301
229
|
}
|
|
302
|
-
|
|
303
230
|
function getModifiers(options) {
|
|
304
231
|
// modifiers
|
|
305
232
|
if (options.modifiers && Object.keys(options.modifiers).length) {
|
|
306
233
|
return options.modifiers;
|
|
307
|
-
}
|
|
308
|
-
|
|
234
|
+
}
|
|
309
235
|
|
|
236
|
+
// arg
|
|
310
237
|
if (options.arg && _typeof(options.arg) === 'object') {
|
|
311
238
|
return Object.entries(options.arg).reduce(function (acc, _ref) {
|
|
312
239
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
240
|
+
key = _ref2[0],
|
|
241
|
+
val = _ref2[1];
|
|
316
242
|
if (key === 'event' || key === 'position') acc[val] = true;
|
|
317
243
|
return acc;
|
|
318
244
|
}, {});
|
|
319
245
|
}
|
|
320
|
-
|
|
321
246
|
return {};
|
|
322
247
|
}
|
|
323
|
-
|
|
324
248
|
var Tooltip = {
|
|
325
249
|
bind: function bind(el, options) {
|
|
326
250
|
el.$_ptooltipModifiers = getModifiers(options);
|
|
327
|
-
|
|
328
251
|
if (typeof options.value === 'string') {
|
|
329
252
|
el.$_ptooltipValue = options.value;
|
|
330
253
|
el.$_ptooltipDisabled = false;
|
|
@@ -334,13 +257,11 @@ var Tooltip = {
|
|
|
334
257
|
el.$_ptooltipDisabled = options.value.disabled || false;
|
|
335
258
|
el.$_ptooltipEscape = options.value.escape || false;
|
|
336
259
|
}
|
|
337
|
-
|
|
338
260
|
bindEvents(el);
|
|
339
261
|
},
|
|
340
262
|
unbind: function unbind(el) {
|
|
341
263
|
remove(el);
|
|
342
264
|
unbindEvents(el);
|
|
343
|
-
|
|
344
265
|
if (el.$_ptooltipScrollHandler) {
|
|
345
266
|
el.$_ptooltipScrollHandler.destroy();
|
|
346
267
|
el.$_ptooltipScrollHandler = null;
|
|
@@ -348,7 +269,6 @@ var Tooltip = {
|
|
|
348
269
|
},
|
|
349
270
|
update: function update(el, options) {
|
|
350
271
|
el.$_ptooltipModifiers = getModifiers(options);
|
|
351
|
-
|
|
352
272
|
if (typeof options.value === 'string') {
|
|
353
273
|
el.$_ptooltipValue = options.value;
|
|
354
274
|
el.$_ptooltipDisabled = false;
|
|
@@ -356,7 +276,7 @@ var Tooltip = {
|
|
|
356
276
|
} else {
|
|
357
277
|
el.$_ptooltipValue = options.value.value;
|
|
358
278
|
el.$_ptooltipDisabled = options.value.disabled;
|
|
359
|
-
el.$_ptooltipEscape = false;
|
|
279
|
+
el.$_ptooltipEscape = options.value.escape || false;
|
|
360
280
|
}
|
|
361
281
|
}
|
|
362
282
|
};
|