primevue 2.9.2 → 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.
- package/LICENSE.md +2 -2
- package/README.md +150 -3
- package/accordion/accordion.common.js +66 -72
- package/accordion/accordion.umd.js +66 -72
- package/accordion/accordion.umd.min.js +1 -1
- package/accordiontab/accordiontab.common.js +73 -103
- package/accordiontab/accordiontab.umd.js +73 -103
- 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 +2 -55
- package/api/PrimeIcons.js +24 -2
- package/api/api.common.js +35 -98
- package/api/api.umd.js +35 -98
- package/api/api.umd.min.js +1 -1
- package/api/filterservice.common.js +11 -96
- package/api/filterservice.umd.js +11 -96
- 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 +241 -293
- package/autocomplete/autocomplete.umd.js +241 -293
- package/autocomplete/autocomplete.umd.min.js +1 -1
- package/avatar/avatar.common.js +64 -61
- package/avatar/avatar.umd.js +64 -61
- package/avatar/avatar.umd.min.js +1 -1
- package/avatargroup/avatargroup.common.js +44 -47
- package/avatargroup/avatargroup.umd.js +44 -47
- package/avatargroup/avatargroup.umd.min.js +1 -1
- package/badge/badge.common.js +22 -23
- package/badge/badge.umd.js +22 -23
- package/badge/badge.umd.min.js +1 -1
- package/badgedirective/BadgeDirective.js +0 -13
- package/badgedirective/badgedirective.common.js +13 -71
- package/badgedirective/badgedirective.umd.js +13 -71
- package/blockui/blockui.common.js +79 -138
- package/blockui/blockui.umd.js +79 -138
- package/blockui/blockui.umd.min.js +1 -1
- package/breadcrumb/breadcrumb.common.js +130 -90
- package/breadcrumb/breadcrumb.umd.js +130 -90
- package/breadcrumb/breadcrumb.umd.min.js +1 -1
- package/breadcrumb/breadcrumbitem.common.js +67 -40
- package/breadcrumb/breadcrumbitem.umd.js +67 -40
- package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
- package/button/Button.d.ts +2 -0
- package/button/Button.vue +10 -1
- package/button/button.common.js +64 -109
- package/button/button.umd.js +64 -109
- package/button/button.umd.min.js +1 -1
- package/calendar/Calendar.vue +7 -3
- package/calendar/calendar.common.js +714 -721
- package/calendar/calendar.umd.js +714 -721
- package/calendar/calendar.umd.min.js +1 -1
- package/card/card.common.js +59 -62
- package/card/card.umd.js +59 -62
- package/card/card.umd.min.js +1 -1
- package/carousel/carousel.common.js +190 -231
- package/carousel/carousel.umd.js +190 -231
- package/carousel/carousel.umd.min.js +1 -1
- package/cascadeselect/cascadeselect.common.js +230 -294
- package/cascadeselect/cascadeselect.umd.js +230 -294
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +101 -183
- package/cascadeselect/cascadeselectsub.umd.js +101 -183
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/cascadeselect/demo.html +4 -3
- package/chart/chart.common.js +77 -74
- package/chart/chart.umd.js +77 -74
- package/chart/chart.umd.min.js +1 -1
- package/checkbox/checkbox.common.js +70 -87
- package/checkbox/checkbox.umd.js +70 -87
- package/checkbox/checkbox.umd.min.js +1 -1
- package/chip/chip.common.js +66 -52
- package/chip/chip.umd.js +66 -52
- package/chip/chip.umd.min.js +1 -1
- package/chips/chips.common.js +122 -96
- package/chips/chips.umd.js +122 -96
- package/chips/chips.umd.min.js +1 -1
- package/colorpicker/colorpicker.common.js +149 -193
- package/colorpicker/colorpicker.umd.js +149 -193
- package/colorpicker/colorpicker.umd.min.js +1 -1
- package/column/column.common.js +13 -15
- package/column/column.umd.js +13 -15
- package/columngroup/columngroup.common.js +20 -25
- package/columngroup/columngroup.umd.js +20 -25
- package/columngroup/columngroup.umd.min.js +1 -1
- package/config/PrimeVue.js +0 -5
- package/config/primevue.common.js +35 -102
- package/config/primevue.umd.js +35 -102
- 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 +247 -218
- package/confirmdialog/confirmdialog.umd.js +247 -218
- package/confirmdialog/confirmdialog.umd.min.js +1 -1
- package/confirmpopup/confirmpopup.common.js +154 -196
- package/confirmpopup/confirmpopup.umd.js +154 -196
- package/confirmpopup/confirmpopup.umd.min.js +1 -1
- package/contextmenu/contextmenu.common.js +216 -206
- package/contextmenu/contextmenu.umd.js +216 -206
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +138 -134
- package/contextmenu/contextmenusub.umd.js +138 -134
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/contextmenu/demo.html +3 -4
- package/datatable/BodyCell.vue +11 -2
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.vue +2 -12
- package/datatable/HeaderCheckbox.vue +5 -8
- package/datatable/bodycell.common.js +283 -246
- package/datatable/bodycell.umd.js +283 -246
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/columnfilter.common.js +516 -422
- package/datatable/columnfilter.umd.js +516 -422
- package/datatable/columnfilter.umd.min.js +1 -1
- package/datatable/columnslot.common.js +13 -15
- package/datatable/columnslot.umd.js +13 -15
- package/datatable/datatable.common.js +2250 -1551
- package/datatable/datatable.umd.js +2250 -1551
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/footercell.common.js +56 -142
- package/datatable/footercell.umd.js +56 -142
- package/datatable/footercell.umd.min.js +1 -1
- package/datatable/headercell.common.js +666 -483
- package/datatable/headercell.umd.js +666 -483
- package/datatable/headercell.umd.min.js +1 -1
- package/datatable/headercheckbox.common.js +59 -33
- package/datatable/headercheckbox.umd.js +59 -33
- package/datatable/headercheckbox.umd.min.js +1 -1
- package/datatable/rowcheckbox.common.js +61 -30
- package/datatable/rowcheckbox.umd.js +61 -30
- package/datatable/rowcheckbox.umd.min.js +1 -1
- package/datatable/rowradiobutton.common.js +54 -27
- package/datatable/rowradiobutton.umd.js +54 -27
- package/datatable/rowradiobutton.umd.min.js +1 -1
- package/datatable/tablebody.common.js +461 -321
- package/datatable/tablebody.umd.js +461 -321
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +94 -175
- package/datatable/tablefooter.umd.js +94 -175
- package/datatable/tablefooter.umd.min.js +1 -1
- package/datatable/tableheader.common.js +872 -539
- package/datatable/tableheader.umd.js +872 -539
- package/datatable/tableheader.umd.min.js +1 -1
- package/datatable/tableloadingbody.common.js +36 -29
- package/datatable/tableloadingbody.umd.js +36 -29
- package/datatable/tableloadingbody.umd.min.js +1 -1
- package/dataview/dataview.common.js +851 -720
- package/dataview/dataview.umd.js +851 -720
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +46 -30
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +46 -30
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.min.js +1 -1
- package/deferredcontent/deferredcontent.common.js +22 -28
- package/deferredcontent/deferredcontent.umd.js +22 -28
- package/deferredcontent/deferredcontent.umd.min.js +1 -1
- package/dialog/dialog.common.js +152 -179
- package/dialog/dialog.umd.js +152 -179
- package/dialog/dialog.umd.min.js +1 -1
- package/divider/divider.common.js +49 -49
- package/divider/divider.umd.js +49 -49
- package/divider/divider.umd.min.js +1 -1
- package/dock/dock.common.js +179 -95
- package/dock/dock.umd.js +179 -95
- package/dock/dock.umd.min.js +1 -1
- package/dock/docksub.common.js +132 -54
- package/dock/docksub.umd.js +132 -54
- package/dock/docksub.umd.min.js +1 -1
- package/dropdown/dropdown.common.js +233 -289
- package/dropdown/dropdown.umd.js +233 -289
- package/dropdown/dropdown.umd.min.js +1 -1
- package/editor/editor.common.js +194 -104
- package/editor/editor.umd.js +194 -104
- package/editor/editor.umd.min.js +3 -3
- package/fieldset/fieldset.common.js +133 -165
- package/fieldset/fieldset.umd.js +133 -165
- package/fieldset/fieldset.umd.min.js +1 -1
- package/fileupload/fileupload.common.js +431 -373
- package/fileupload/fileupload.umd.js +431 -373
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +75 -64
- package/fullcalendar/fullcalendar.umd.js +75 -64
- package/fullcalendar/fullcalendar.umd.min.js +4 -18
- package/galleria/galleria.common.js +403 -299
- package/galleria/galleria.umd.js +403 -299
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +324 -235
- package/galleria/galleriacontent.umd.js +324 -235
- package/galleria/galleriacontent.umd.min.js +1 -1
- package/galleria/galleriaitem.common.js +127 -135
- package/galleria/galleriaitem.umd.js +127 -135
- package/galleria/galleriaitem.umd.min.js +1 -1
- package/galleria/galleriaitemslot.common.js +17 -25
- package/galleria/galleriaitemslot.umd.js +17 -25
- package/galleria/galleriathumbnails.common.js +125 -171
- package/galleria/galleriathumbnails.umd.js +125 -171
- package/galleria/galleriathumbnails.umd.min.js +1 -1
- package/imagepreview/imagepreview.common.js +174 -163
- package/imagepreview/imagepreview.umd.js +174 -163
- package/imagepreview/imagepreview.umd.min.js +1 -1
- package/inlinemessage/inlinemessage.common.js +61 -57
- package/inlinemessage/inlinemessage.umd.js +61 -57
- package/inlinemessage/inlinemessage.umd.min.js +1 -1
- package/inplace/inplace.common.js +139 -170
- package/inplace/inplace.umd.js +139 -170
- package/inplace/inplace.umd.min.js +1 -1
- package/inputmask/inputmask.common.js +51 -174
- package/inputmask/inputmask.umd.js +51 -174
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +6 -3
- package/inputnumber/inputnumber.common.js +205 -293
- package/inputnumber/inputnumber.umd.js +205 -293
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +219 -37
- package/inputswitch/inputswitch.umd.js +219 -37
- package/inputswitch/inputswitch.umd.min.js +1 -1
- package/inputtext/inputtext.common.js +27 -28
- package/inputtext/inputtext.umd.js +27 -28
- package/inputtext/inputtext.umd.min.js +1 -1
- package/knob/knob.common.js +102 -74
- package/knob/knob.umd.js +102 -74
- package/knob/knob.umd.min.js +1 -1
- package/listbox/listbox.common.js +163 -237
- package/listbox/listbox.umd.js +163 -237
- package/listbox/listbox.umd.min.js +1 -1
- package/megamenu/MegaMenu.vue +2 -2
- package/megamenu/megamenu.common.js +273 -230
- package/megamenu/megamenu.umd.js +273 -230
- package/megamenu/megamenu.umd.min.js +1 -1
- package/menu/menu.common.js +201 -203
- package/menu/menu.umd.js +201 -203
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +95 -116
- package/menu/menuitem.umd.js +95 -116
- package/menu/menuitem.umd.min.js +1 -1
- package/menubar/menubar.common.js +223 -214
- package/menubar/menubar.umd.js +223 -214
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +142 -149
- package/menubar/menubarsub.umd.js +142 -149
- package/menubar/menubarsub.umd.min.js +1 -1
- package/message/message.common.js +108 -157
- package/message/message.umd.js +108 -157
- package/message/message.umd.min.js +1 -1
- package/multiselect/multiselect.common.js +291 -315
- package/multiselect/multiselect.umd.js +291 -315
- package/multiselect/multiselect.umd.min.js +1 -1
- package/orderlist/orderlist.common.js +206 -263
- package/orderlist/orderlist.umd.js +206 -263
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +188 -190
- package/organizationchart/organizationchart.umd.js +188 -190
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +122 -124
- package/organizationchart/organizationchartnode.umd.js +122 -124
- 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.common.js +108 -176
- package/overlaypanel/overlaypanel.umd.js +108 -176
- package/overlaypanel/overlaypanel.umd.min.js +1 -1
- package/package.json +3 -3
- package/paginator/currentpagereport.common.js +22 -22
- package/paginator/currentpagereport.umd.js +22 -22
- package/paginator/currentpagereport.umd.min.js +1 -1
- package/paginator/firstpagelink.common.js +44 -102
- package/paginator/firstpagelink.umd.js +44 -102
- package/paginator/firstpagelink.umd.min.js +1 -1
- package/paginator/jumptopagedropdown.common.js +254 -300
- package/paginator/jumptopagedropdown.umd.js +254 -300
- package/paginator/jumptopagedropdown.umd.min.js +1 -1
- package/paginator/jumptopageinput.common.js +225 -303
- package/paginator/jumptopageinput.umd.js +225 -303
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +44 -102
- package/paginator/lastpagelink.umd.js +44 -102
- package/paginator/lastpagelink.umd.min.js +1 -1
- package/paginator/nextpagelink.common.js +44 -102
- package/paginator/nextpagelink.umd.js +44 -102
- package/paginator/nextpagelink.umd.min.js +1 -1
- package/paginator/pagelinks.common.js +54 -102
- package/paginator/pagelinks.umd.js +54 -102
- package/paginator/pagelinks.umd.min.js +1 -1
- package/paginator/paginator.common.js +741 -654
- package/paginator/paginator.umd.js +741 -654
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +44 -102
- package/paginator/prevpagelink.umd.js +44 -102
- package/paginator/prevpagelink.umd.min.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +253 -300
- package/paginator/rowsperpagedropdown.umd.js +253 -300
- package/paginator/rowsperpagedropdown.umd.min.js +1 -1
- package/panel/panel.common.js +129 -164
- package/panel/panel.umd.js +129 -164
- package/panel/panel.umd.min.js +1 -1
- package/panelmenu/panelmenu.common.js +235 -129
- package/panelmenu/panelmenu.umd.js +235 -129
- package/panelmenu/panelmenu.umd.min.js +1 -1
- package/panelmenu/panelmenusub.common.js +110 -55
- package/panelmenu/panelmenusub.umd.js +110 -55
- package/panelmenu/panelmenusub.umd.min.js +1 -1
- package/password/Password.vue +64 -14
- package/password/password.common.js +243 -239
- package/password/password.umd.js +243 -239
- package/password/password.umd.min.js +1 -1
- package/picklist/picklist.common.js +332 -323
- package/picklist/picklist.umd.js +332 -323
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/progressbar.common.js +83 -76
- package/progressbar/progressbar.umd.js +83 -76
- package/progressbar/progressbar.umd.min.js +1 -1
- package/progressspinner/progressspinner.common.js +545 -45
- package/progressspinner/progressspinner.umd.js +545 -45
- package/progressspinner/progressspinner.umd.min.js +1 -1
- package/radiobutton/radiobutton.common.js +68 -83
- package/radiobutton/radiobutton.umd.js +68 -83
- package/radiobutton/radiobutton.umd.min.js +1 -1
- package/rating/rating.common.js +92 -68
- package/rating/rating.umd.js +92 -68
- package/rating/rating.umd.min.js +1 -1
- package/ripple/Ripple.js +0 -18
- package/ripple/ripple.common.js +13 -77
- package/ripple/ripple.umd.js +13 -77
- package/row/row.common.js +20 -25
- package/row/row.umd.js +20 -25
- package/row/row.umd.min.js +1 -1
- package/scrollpanel/scrollpanel.common.js +103 -154
- package/scrollpanel/scrollpanel.umd.js +103 -154
- package/scrollpanel/scrollpanel.umd.min.js +1 -1
- package/scrolltop/scrolltop.common.js +90 -132
- package/scrolltop/scrolltop.umd.js +90 -132
- package/scrolltop/scrolltop.umd.min.js +1 -1
- package/selectbutton/selectbutton.common.js +91 -171
- package/selectbutton/selectbutton.umd.js +91 -171
- 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 +115 -166
- package/sidebar/sidebar.umd.js +115 -166
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +57 -57
- package/skeleton/skeleton.umd.js +57 -57
- package/skeleton/skeleton.umd.min.js +1 -1
- package/slider/Slider.vue +1 -1
- package/slider/slider.common.js +175 -166
- package/slider/slider.umd.js +175 -166
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.common.js +186 -204
- package/speeddial/speeddial.umd.js +186 -204
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +327 -279
- package/splitbutton/splitbutton.umd.js +327 -279
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/splitter/splitter.common.js +70 -143
- package/splitter/splitter.umd.js +70 -143
- package/splitter/splitter.umd.min.js +1 -1
- package/splitterpanel/splitterpanel.common.js +13 -15
- package/splitterpanel/splitterpanel.umd.js +13 -15
- package/steps/steps.common.js +112 -77
- package/steps/steps.umd.js +112 -77
- package/steps/steps.umd.min.js +1 -1
- package/styleclass/StyleClass.js +0 -43
- package/styleclass/styleclass.common.js +13 -99
- package/styleclass/styleclass.umd.js +13 -99
- package/tabmenu/tabmenu.common.js +139 -165
- package/tabmenu/tabmenu.umd.js +139 -165
- package/tabmenu/tabmenu.umd.min.js +1 -1
- package/tabpanel/tabpanel.common.js +31 -26
- package/tabpanel/tabpanel.umd.js +31 -26
- package/tabpanel/tabpanel.umd.min.js +1 -1
- package/tabview/tabview.common.js +178 -220
- package/tabview/tabview.umd.js +178 -220
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/tag.common.js +59 -59
- package/tag/tag.umd.js +59 -59
- package/tag/tag.umd.min.js +1 -1
- package/terminal/terminal.common.js +96 -68
- package/terminal/terminal.umd.js +96 -68
- package/terminal/terminal.umd.min.js +1 -1
- package/terminalservice/TerminalService.js +0 -3
- package/textarea/Textarea.vue +24 -1
- package/textarea/textarea.common.js +2083 -91
- package/textarea/textarea.umd.js +2083 -91
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/demo.html +3 -4
- package/tieredmenu/tieredmenu.common.js +214 -219
- package/tieredmenu/tieredmenu.umd.js +214 -219
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +142 -145
- package/tieredmenu/tieredmenusub.umd.js +142 -145
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +101 -134
- package/timeline/timeline.umd.js +101 -134
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/toast.common.js +145 -182
- package/toast/toast.umd.js +145 -182
- package/toast/toast.umd.min.js +1 -1
- package/toast/toastmessage.common.js +70 -115
- package/toast/toastmessage.umd.js +70 -115
- 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 +54 -103
- package/togglebutton/togglebutton.umd.js +54 -103
- package/togglebutton/togglebutton.umd.min.js +1 -1
- package/toolbar/toolbar.common.js +46 -47
- package/toolbar/toolbar.umd.js +46 -47
- package/toolbar/toolbar.umd.min.js +1 -1
- package/tooltip/Tooltip.js +4 -84
- package/tooltip/tooltip.common.js +17 -133
- package/tooltip/tooltip.umd.js +17 -133
- package/tree/tree.common.js +227 -316
- package/tree/tree.umd.js +227 -316
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +108 -158
- package/tree/treenode.umd.js +108 -158
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/footercell.common.js +49 -141
- package/treetable/footercell.umd.js +49 -141
- package/treetable/footercell.umd.min.js +1 -1
- package/treetable/headercell.common.js +68 -153
- package/treetable/headercell.umd.js +68 -153
- package/treetable/headercell.umd.min.js +1 -1
- package/treetable/treetable.common.js +1086 -1044
- package/treetable/treetable.umd.js +1086 -1044
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablecolumnslot.common.js +13 -15
- package/treetable/treetablecolumnslot.umd.js +13 -15
- package/treetable/treetablerow.common.js +113 -194
- package/treetable/treetablerow.umd.js +113 -194
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +115 -214
- package/treetable/treetablerowloader.umd.js +115 -214
- package/treetable/treetablerowloader.umd.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.common.js +59 -38
- package/tristatecheckbox/tristatecheckbox.umd.js +59 -38
- package/tristatecheckbox/tristatecheckbox.umd.min.js +1 -1
- package/utils/ConnectedOverlayScrollHandler.js +0 -12
- package/utils/DomHandler.js +13 -61
- package/utils/EventBus.js +0 -3
- package/utils/ObjectUtils.js +9 -51
- package/utils/UniqueComponentId.js +0 -1
- package/utils/Utils.js +0 -6
- package/utils/connectedoverlayscrollhandler.common.js +13 -70
- package/utils/connectedoverlayscrollhandler.umd.js +13 -70
- package/utils/domhandler.common.js +13 -63
- package/utils/domhandler.umd.js +13 -63
- package/utils/eventbus.common.js +0 -2
- package/utils/eventbus.umd.js +0 -2
- package/utils/objectutils.common.js +9 -52
- package/utils/objectutils.umd.js +9 -52
- package/utils/utils.common.js +22 -119
- package/utils/utils.umd.js +22 -119
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +3 -1
- package/web-types.json +28 -1
package/tooltip/tooltip.umd.js
CHANGED
|
@@ -4324,18 +4324,14 @@ var iterator_default = /*#__PURE__*/__webpack_require__.n(iterator);
|
|
|
4324
4324
|
|
|
4325
4325
|
function _iterableToArrayLimit(arr, i) {
|
|
4326
4326
|
var _i = arr == null ? null : typeof symbol_default.a !== "undefined" && arr[iterator_default.a] || arr["@@iterator"];
|
|
4327
|
-
|
|
4328
4327
|
if (_i == null) return;
|
|
4329
4328
|
var _arr = [];
|
|
4330
4329
|
var _n = true;
|
|
4331
4330
|
var _d = false;
|
|
4332
|
-
|
|
4333
4331
|
var _s, _e;
|
|
4334
|
-
|
|
4335
4332
|
try {
|
|
4336
4333
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
4337
4334
|
_arr.push(_s.value);
|
|
4338
|
-
|
|
4339
4335
|
if (i && _arr.length === i) break;
|
|
4340
4336
|
}
|
|
4341
4337
|
} catch (err) {
|
|
@@ -4348,7 +4344,6 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
4348
4344
|
if (_d) throw _e;
|
|
4349
4345
|
}
|
|
4350
4346
|
}
|
|
4351
|
-
|
|
4352
4347
|
return _arr;
|
|
4353
4348
|
}
|
|
4354
4349
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js
|
|
@@ -4358,11 +4353,9 @@ var from_default = /*#__PURE__*/__webpack_require__.n(from);
|
|
|
4358
4353
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayLikeToArray.js
|
|
4359
4354
|
function _arrayLikeToArray(arr, len) {
|
|
4360
4355
|
if (len == null || len > arr.length) len = arr.length;
|
|
4361
|
-
|
|
4362
4356
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
4363
4357
|
arr2[i] = arr[i];
|
|
4364
4358
|
}
|
|
4365
|
-
|
|
4366
4359
|
return arr2;
|
|
4367
4360
|
}
|
|
4368
4361
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/unsupportedIterableToArray.js
|
|
@@ -4461,26 +4454,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4461
4454
|
|
|
4462
4455
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4463
4456
|
|
|
4464
|
-
|
|
4465
4457
|
function _defineProperties(target, props) {
|
|
4466
4458
|
for (var i = 0; i < props.length; i++) {
|
|
4467
4459
|
var descriptor = props[i];
|
|
4468
4460
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4469
4461
|
descriptor.configurable = true;
|
|
4470
4462
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4471
|
-
|
|
4472
4463
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4473
4464
|
}
|
|
4474
4465
|
}
|
|
4475
|
-
|
|
4476
4466
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4477
4467
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4478
4468
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4479
|
-
|
|
4480
4469
|
define_property_default()(Constructor, "prototype", {
|
|
4481
4470
|
writable: false
|
|
4482
4471
|
});
|
|
4483
|
-
|
|
4484
4472
|
return Constructor;
|
|
4485
4473
|
}
|
|
4486
4474
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -4496,18 +4484,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
4496
4484
|
|
|
4497
4485
|
|
|
4498
4486
|
|
|
4499
|
-
|
|
4500
4487
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = DomHandler_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; } } }; }
|
|
4501
|
-
|
|
4502
4488
|
function DomHandler_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return DomHandler_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 DomHandler_arrayLikeToArray(o, minLen); }
|
|
4503
|
-
|
|
4504
4489
|
function DomHandler_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; }
|
|
4505
|
-
|
|
4506
4490
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
4507
4491
|
function DomHandler() {
|
|
4508
4492
|
_classCallCheck(this, DomHandler);
|
|
4509
4493
|
}
|
|
4510
|
-
|
|
4511
4494
|
_createClass(DomHandler, null, [{
|
|
4512
4495
|
key: "innerWidth",
|
|
4513
4496
|
value: function innerWidth(el) {
|
|
@@ -4541,12 +4524,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4541
4524
|
value: function getOuterWidth(el, margin) {
|
|
4542
4525
|
if (el) {
|
|
4543
4526
|
var width = el.offsetWidth;
|
|
4544
|
-
|
|
4545
4527
|
if (margin) {
|
|
4546
4528
|
var style = getComputedStyle(el);
|
|
4547
4529
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
4548
4530
|
}
|
|
4549
|
-
|
|
4550
4531
|
return width;
|
|
4551
4532
|
} else {
|
|
4552
4533
|
return 0;
|
|
@@ -4557,12 +4538,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4557
4538
|
value: function getOuterHeight(el, margin) {
|
|
4558
4539
|
if (el) {
|
|
4559
4540
|
var height = el.offsetHeight;
|
|
4560
|
-
|
|
4561
4541
|
if (margin) {
|
|
4562
4542
|
var style = getComputedStyle(el);
|
|
4563
4543
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4564
4544
|
}
|
|
4565
|
-
|
|
4566
4545
|
return height;
|
|
4567
4546
|
} else {
|
|
4568
4547
|
return 0;
|
|
@@ -4573,12 +4552,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4573
4552
|
value: function getClientHeight(el, margin) {
|
|
4574
4553
|
if (el) {
|
|
4575
4554
|
var height = el.clientHeight;
|
|
4576
|
-
|
|
4577
4555
|
if (margin) {
|
|
4578
4556
|
var style = getComputedStyle(el);
|
|
4579
4557
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4580
4558
|
}
|
|
4581
|
-
|
|
4582
4559
|
return height;
|
|
4583
4560
|
} else {
|
|
4584
4561
|
return 0;
|
|
@@ -4588,11 +4565,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4588
4565
|
key: "getViewport",
|
|
4589
4566
|
value: function getViewport() {
|
|
4590
4567
|
var win = window,
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4568
|
+
d = document,
|
|
4569
|
+
e = d.documentElement,
|
|
4570
|
+
g = d.getElementsByTagName('body')[0],
|
|
4571
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
4572
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
4596
4573
|
return {
|
|
4597
4574
|
width: w,
|
|
4598
4575
|
height: h
|
|
@@ -4623,12 +4600,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4623
4600
|
value: function index(element) {
|
|
4624
4601
|
var children = element.parentNode.childNodes;
|
|
4625
4602
|
var num = 0;
|
|
4626
|
-
|
|
4627
4603
|
for (var i = 0; i < children.length; i++) {
|
|
4628
4604
|
if (children[i] === element) return num;
|
|
4629
4605
|
if (children[i].nodeType === 1) num++;
|
|
4630
4606
|
}
|
|
4631
|
-
|
|
4632
4607
|
return -1;
|
|
4633
4608
|
}
|
|
4634
4609
|
}, {
|
|
@@ -4636,13 +4611,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4636
4611
|
value: function addMultipleClasses(element, className) {
|
|
4637
4612
|
if (element.classList) {
|
|
4638
4613
|
var styles = className.split(' ');
|
|
4639
|
-
|
|
4640
4614
|
for (var i = 0; i < styles.length; i++) {
|
|
4641
4615
|
element.classList.add(styles[i]);
|
|
4642
4616
|
}
|
|
4643
4617
|
} else {
|
|
4644
4618
|
var _styles = className.split(' ');
|
|
4645
|
-
|
|
4646
4619
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
4647
4620
|
element.className += ' ' + _styles[_i];
|
|
4648
4621
|
}
|
|
@@ -4664,7 +4637,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4664
4637
|
if (element) {
|
|
4665
4638
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
4666
4639
|
}
|
|
4667
|
-
|
|
4668
4640
|
return false;
|
|
4669
4641
|
}
|
|
4670
4642
|
}, {
|
|
@@ -4709,11 +4681,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4709
4681
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
4710
4682
|
var viewport = this.getViewport();
|
|
4711
4683
|
var top, left;
|
|
4712
|
-
|
|
4713
4684
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
4714
4685
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
4715
4686
|
element.style.transformOrigin = 'bottom';
|
|
4716
|
-
|
|
4717
4687
|
if (top < 0) {
|
|
4718
4688
|
top = windowScrollTop;
|
|
4719
4689
|
}
|
|
@@ -4721,7 +4691,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4721
4691
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
4722
4692
|
element.style.transformOrigin = 'top';
|
|
4723
4693
|
}
|
|
4724
|
-
|
|
4725
4694
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
4726
4695
|
element.style.top = top + 'px';
|
|
4727
4696
|
element.style.left = left + 'px';
|
|
@@ -4737,11 +4706,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4737
4706
|
var targetOffset = target.getBoundingClientRect();
|
|
4738
4707
|
var viewport = this.getViewport();
|
|
4739
4708
|
var top, left;
|
|
4740
|
-
|
|
4741
4709
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
4742
4710
|
top = -1 * elementDimensions.height;
|
|
4743
4711
|
element.style.transformOrigin = 'bottom';
|
|
4744
|
-
|
|
4745
4712
|
if (targetOffset.top + top < 0) {
|
|
4746
4713
|
top = -1 * targetOffset.top;
|
|
4747
4714
|
}
|
|
@@ -4749,7 +4716,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4749
4716
|
top = targetHeight;
|
|
4750
4717
|
element.style.transformOrigin = 'top';
|
|
4751
4718
|
}
|
|
4752
|
-
|
|
4753
4719
|
if (elementDimensions.width > viewport.width) {
|
|
4754
4720
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
4755
4721
|
left = targetOffset.left * -1;
|
|
@@ -4760,7 +4726,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4760
4726
|
// element fits on screen (align with target)
|
|
4761
4727
|
left = 0;
|
|
4762
4728
|
}
|
|
4763
|
-
|
|
4764
4729
|
element.style.top = top + 'px';
|
|
4765
4730
|
element.style.left = left + 'px';
|
|
4766
4731
|
}
|
|
@@ -4774,35 +4739,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4774
4739
|
key: "getScrollableParents",
|
|
4775
4740
|
value: function getScrollableParents(element) {
|
|
4776
4741
|
var scrollableParents = [];
|
|
4777
|
-
|
|
4778
4742
|
if (element) {
|
|
4779
4743
|
var parents = this.getParents(element);
|
|
4780
4744
|
var overflowRegex = /(auto|scroll)/;
|
|
4781
|
-
|
|
4782
4745
|
var overflowCheck = function overflowCheck(node) {
|
|
4783
4746
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
4784
4747
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
4785
4748
|
};
|
|
4786
|
-
|
|
4787
4749
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
4788
|
-
|
|
4789
|
-
|
|
4750
|
+
_step;
|
|
4790
4751
|
try {
|
|
4791
4752
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
4792
4753
|
var parent = _step.value;
|
|
4793
4754
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
4794
|
-
|
|
4795
4755
|
if (scrollSelectors) {
|
|
4796
4756
|
var selectors = scrollSelectors.split(',');
|
|
4797
|
-
|
|
4798
4757
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
4799
|
-
|
|
4800
|
-
|
|
4758
|
+
_step2;
|
|
4801
4759
|
try {
|
|
4802
4760
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4803
4761
|
var selector = _step2.value;
|
|
4804
4762
|
var el = this.findSingle(parent, selector);
|
|
4805
|
-
|
|
4806
4763
|
if (el && overflowCheck(el)) {
|
|
4807
4764
|
scrollableParents.push(el);
|
|
4808
4765
|
}
|
|
@@ -4820,7 +4777,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4820
4777
|
_iterator.f();
|
|
4821
4778
|
}
|
|
4822
4779
|
}
|
|
4823
|
-
|
|
4824
4780
|
return scrollableParents;
|
|
4825
4781
|
}
|
|
4826
4782
|
}, {
|
|
@@ -4861,34 +4817,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4861
4817
|
element.style.opacity = 0;
|
|
4862
4818
|
var last = +new Date();
|
|
4863
4819
|
var opacity = 0;
|
|
4864
|
-
|
|
4865
4820
|
var tick = function tick() {
|
|
4866
4821
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
4867
4822
|
element.style.opacity = opacity;
|
|
4868
4823
|
last = +new Date();
|
|
4869
|
-
|
|
4870
4824
|
if (+opacity < 1) {
|
|
4871
4825
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
4872
4826
|
}
|
|
4873
4827
|
};
|
|
4874
|
-
|
|
4875
4828
|
tick();
|
|
4876
4829
|
}
|
|
4877
4830
|
}, {
|
|
4878
4831
|
key: "fadeOut",
|
|
4879
4832
|
value: function fadeOut(element, ms) {
|
|
4880
4833
|
var opacity = 1,
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4834
|
+
interval = 50,
|
|
4835
|
+
duration = ms,
|
|
4836
|
+
gap = interval / duration;
|
|
4884
4837
|
var fading = setInterval(function () {
|
|
4885
4838
|
opacity -= gap;
|
|
4886
|
-
|
|
4887
4839
|
if (opacity <= 0) {
|
|
4888
4840
|
opacity = 0;
|
|
4889
4841
|
clearInterval(fading);
|
|
4890
4842
|
}
|
|
4891
|
-
|
|
4892
4843
|
element.style.opacity = opacity;
|
|
4893
4844
|
}, interval);
|
|
4894
4845
|
}
|
|
@@ -4915,7 +4866,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4915
4866
|
var scroll = container.scrollTop;
|
|
4916
4867
|
var elementHeight = container.clientHeight;
|
|
4917
4868
|
var itemHeight = this.getOuterHeight(item);
|
|
4918
|
-
|
|
4919
4869
|
if (offset < 0) {
|
|
4920
4870
|
container.scrollTop = scroll + offset;
|
|
4921
4871
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -4934,7 +4884,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4934
4884
|
} else if (document['selection'] && document['selection'].empty) {
|
|
4935
4885
|
try {
|
|
4936
4886
|
document['selection'].empty();
|
|
4937
|
-
} catch (error) {
|
|
4887
|
+
} catch (error) {
|
|
4888
|
+
//ignore IE bug
|
|
4938
4889
|
}
|
|
4939
4890
|
}
|
|
4940
4891
|
}
|
|
@@ -4956,19 +4907,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4956
4907
|
if (!this.browser) {
|
|
4957
4908
|
var matched = this.resolveUserAgent();
|
|
4958
4909
|
this.browser = {};
|
|
4959
|
-
|
|
4960
4910
|
if (matched.browser) {
|
|
4961
4911
|
this.browser[matched.browser] = true;
|
|
4962
4912
|
this.browser['version'] = matched.version;
|
|
4963
4913
|
}
|
|
4964
|
-
|
|
4965
4914
|
if (this.browser['chrome']) {
|
|
4966
4915
|
this.browser['webkit'] = true;
|
|
4967
4916
|
} else if (this.browser['webkit']) {
|
|
4968
4917
|
this.browser['safari'] = true;
|
|
4969
4918
|
}
|
|
4970
4919
|
}
|
|
4971
|
-
|
|
4972
4920
|
return this.browser;
|
|
4973
4921
|
}
|
|
4974
4922
|
}, {
|
|
@@ -4996,10 +4944,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4996
4944
|
value: function getFocusableElements(element) {
|
|
4997
4945
|
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])");
|
|
4998
4946
|
var visibleFocusableElements = [];
|
|
4999
|
-
|
|
5000
4947
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
5001
|
-
|
|
5002
|
-
|
|
4948
|
+
_step3;
|
|
5003
4949
|
try {
|
|
5004
4950
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5005
4951
|
var focusableElement = _step3.value;
|
|
@@ -5010,7 +4956,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5010
4956
|
} finally {
|
|
5011
4957
|
_iterator3.f();
|
|
5012
4958
|
}
|
|
5013
|
-
|
|
5014
4959
|
return visibleFocusableElements;
|
|
5015
4960
|
}
|
|
5016
4961
|
}, {
|
|
@@ -5053,31 +4998,24 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5053
4998
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5054
4999
|
}
|
|
5055
5000
|
}]);
|
|
5056
|
-
|
|
5057
5001
|
return DomHandler;
|
|
5058
5002
|
}();
|
|
5059
5003
|
|
|
5060
|
-
|
|
5061
5004
|
// CONCATENATED MODULE: ./src/components/utils/ConnectedOverlayScrollHandler.js
|
|
5062
5005
|
|
|
5063
5006
|
|
|
5064
5007
|
|
|
5065
|
-
|
|
5066
5008
|
var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
5067
5009
|
function ConnectedOverlayScrollHandler(element) {
|
|
5068
5010
|
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
5069
|
-
|
|
5070
5011
|
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
5071
|
-
|
|
5072
5012
|
this.element = element;
|
|
5073
5013
|
this.listener = listener;
|
|
5074
5014
|
}
|
|
5075
|
-
|
|
5076
5015
|
_createClass(ConnectedOverlayScrollHandler, [{
|
|
5077
5016
|
key: "bindScrollListener",
|
|
5078
5017
|
value: function bindScrollListener() {
|
|
5079
5018
|
this.scrollableParents = DomHandler_DomHandler.getScrollableParents(this.element);
|
|
5080
|
-
|
|
5081
5019
|
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
5082
5020
|
this.scrollableParents[i].addEventListener('scroll', this.listener);
|
|
5083
5021
|
}
|
|
@@ -5100,11 +5038,9 @@ var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/f
|
|
|
5100
5038
|
this.scrollableParents = null;
|
|
5101
5039
|
}
|
|
5102
5040
|
}]);
|
|
5103
|
-
|
|
5104
5041
|
return ConnectedOverlayScrollHandler;
|
|
5105
5042
|
}();
|
|
5106
5043
|
|
|
5107
|
-
|
|
5108
5044
|
// CONCATENATED MODULE: ./src/components/tooltip/Tooltip.js
|
|
5109
5045
|
|
|
5110
5046
|
|
|
@@ -5115,10 +5051,8 @@ var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/f
|
|
|
5115
5051
|
|
|
5116
5052
|
|
|
5117
5053
|
|
|
5118
|
-
|
|
5119
5054
|
function bindEvents(el) {
|
|
5120
5055
|
var modifiers = el.$_ptooltipModifiers;
|
|
5121
|
-
|
|
5122
5056
|
if (modifiers.focus) {
|
|
5123
5057
|
el.addEventListener('focus', onFocus);
|
|
5124
5058
|
el.addEventListener('blur', onBlur);
|
|
@@ -5128,10 +5062,8 @@ function bindEvents(el) {
|
|
|
5128
5062
|
el.addEventListener('click', onClick);
|
|
5129
5063
|
}
|
|
5130
5064
|
}
|
|
5131
|
-
|
|
5132
5065
|
function unbindEvents(el) {
|
|
5133
5066
|
var modifiers = el.$_ptooltipModifiers;
|
|
5134
|
-
|
|
5135
5067
|
if (modifiers.focus) {
|
|
5136
5068
|
el.removeEventListener('focus', onFocus);
|
|
5137
5069
|
el.removeEventListener('blur', onBlur);
|
|
@@ -5141,48 +5073,38 @@ function unbindEvents(el) {
|
|
|
5141
5073
|
el.removeEventListener('click', onClick);
|
|
5142
5074
|
}
|
|
5143
5075
|
}
|
|
5144
|
-
|
|
5145
5076
|
function Tooltip_bindScrollListener(el) {
|
|
5146
5077
|
if (!el.$_ptooltipScrollHandler) {
|
|
5147
5078
|
el.$_ptooltipScrollHandler = new ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler(el, function () {
|
|
5148
5079
|
hide(el);
|
|
5149
5080
|
});
|
|
5150
5081
|
}
|
|
5151
|
-
|
|
5152
5082
|
el.$_ptooltipScrollHandler.bindScrollListener();
|
|
5153
5083
|
}
|
|
5154
|
-
|
|
5155
5084
|
function unbindScrollListener(el) {
|
|
5156
5085
|
if (el.$_ptooltipScrollHandler) {
|
|
5157
5086
|
el.$_ptooltipScrollHandler.unbindScrollListener();
|
|
5158
5087
|
}
|
|
5159
5088
|
}
|
|
5160
|
-
|
|
5161
5089
|
function onMouseEnter(event) {
|
|
5162
5090
|
show(event.currentTarget);
|
|
5163
5091
|
}
|
|
5164
|
-
|
|
5165
5092
|
function onMouseLeave(event) {
|
|
5166
5093
|
hide(event.currentTarget);
|
|
5167
5094
|
}
|
|
5168
|
-
|
|
5169
5095
|
function onFocus(event) {
|
|
5170
5096
|
show(event.currentTarget);
|
|
5171
5097
|
}
|
|
5172
|
-
|
|
5173
5098
|
function onBlur(event) {
|
|
5174
5099
|
hide(event.currentTarget);
|
|
5175
5100
|
}
|
|
5176
|
-
|
|
5177
5101
|
function onClick(event) {
|
|
5178
5102
|
hide(event.currentTarget);
|
|
5179
5103
|
}
|
|
5180
|
-
|
|
5181
5104
|
function show(el) {
|
|
5182
5105
|
if (el.$_ptooltipDisabled) {
|
|
5183
5106
|
return;
|
|
5184
5107
|
}
|
|
5185
|
-
|
|
5186
5108
|
var tooltipElement = create(el);
|
|
5187
5109
|
align(el);
|
|
5188
5110
|
DomHandler_DomHandler.fadeIn(tooltipElement, 250);
|
|
@@ -5191,21 +5113,17 @@ function show(el) {
|
|
|
5191
5113
|
if (!DomHandler_DomHandler.isAndroid()) {
|
|
5192
5114
|
hide(el);
|
|
5193
5115
|
}
|
|
5194
|
-
|
|
5195
5116
|
this.removeEventListener('resize', onWindowResize);
|
|
5196
5117
|
});
|
|
5197
5118
|
Tooltip_bindScrollListener(el);
|
|
5198
5119
|
}
|
|
5199
|
-
|
|
5200
5120
|
function hide(el) {
|
|
5201
5121
|
remove(el);
|
|
5202
5122
|
unbindScrollListener(el);
|
|
5203
5123
|
}
|
|
5204
|
-
|
|
5205
5124
|
function getTooltipElement(el) {
|
|
5206
5125
|
return document.getElementById(el.$_ptooltipId);
|
|
5207
5126
|
}
|
|
5208
|
-
|
|
5209
5127
|
function create(el) {
|
|
5210
5128
|
var id = UniqueComponentId() + '_tooltip';
|
|
5211
5129
|
el.$_ptooltipId = id;
|
|
@@ -5216,57 +5134,44 @@ function create(el) {
|
|
|
5216
5134
|
container.appendChild(tooltipArrow);
|
|
5217
5135
|
var tooltipText = document.createElement('div');
|
|
5218
5136
|
tooltipText.className = 'p-tooltip-text';
|
|
5219
|
-
|
|
5220
5137
|
if (el.$_ptooltipEscape) {
|
|
5221
5138
|
tooltipText.innerHTML = el.$_ptooltipValue;
|
|
5222
5139
|
} else {
|
|
5223
5140
|
tooltipText.innerHTML = '';
|
|
5224
5141
|
tooltipText.appendChild(document.createTextNode(el.$_ptooltipValue));
|
|
5225
5142
|
}
|
|
5226
|
-
|
|
5227
5143
|
container.appendChild(tooltipText);
|
|
5228
5144
|
document.body.appendChild(container);
|
|
5229
5145
|
container.style.display = 'inline-block';
|
|
5230
5146
|
return container;
|
|
5231
5147
|
}
|
|
5232
|
-
|
|
5233
5148
|
function remove(el) {
|
|
5234
5149
|
if (el) {
|
|
5235
5150
|
var tooltipElement = getTooltipElement(el);
|
|
5236
|
-
|
|
5237
5151
|
if (tooltipElement && tooltipElement.parentElement) {
|
|
5238
5152
|
document.body.removeChild(tooltipElement);
|
|
5239
5153
|
}
|
|
5240
|
-
|
|
5241
5154
|
el.$_ptooltipId = null;
|
|
5242
5155
|
}
|
|
5243
5156
|
}
|
|
5244
|
-
|
|
5245
5157
|
function align(el) {
|
|
5246
5158
|
var modifiers = el.$_ptooltipModifiers;
|
|
5247
|
-
|
|
5248
5159
|
if (modifiers.top) {
|
|
5249
5160
|
alignTop(el);
|
|
5250
|
-
|
|
5251
5161
|
if (isOutOfBounds(el)) {
|
|
5252
5162
|
alignBottom(el);
|
|
5253
|
-
|
|
5254
5163
|
if (isOutOfBounds(el)) {
|
|
5255
5164
|
alignTop(el);
|
|
5256
5165
|
}
|
|
5257
5166
|
}
|
|
5258
5167
|
} else if (modifiers.left) {
|
|
5259
5168
|
alignLeft(el);
|
|
5260
|
-
|
|
5261
5169
|
if (isOutOfBounds(el)) {
|
|
5262
5170
|
alignRight(el);
|
|
5263
|
-
|
|
5264
5171
|
if (isOutOfBounds(el)) {
|
|
5265
5172
|
alignTop(el);
|
|
5266
|
-
|
|
5267
5173
|
if (isOutOfBounds(el)) {
|
|
5268
5174
|
alignBottom(el);
|
|
5269
|
-
|
|
5270
5175
|
if (isOutOfBounds(el)) {
|
|
5271
5176
|
alignLeft(el);
|
|
5272
5177
|
}
|
|
@@ -5275,26 +5180,20 @@ function align(el) {
|
|
|
5275
5180
|
}
|
|
5276
5181
|
} else if (modifiers.bottom) {
|
|
5277
5182
|
alignBottom(el);
|
|
5278
|
-
|
|
5279
5183
|
if (isOutOfBounds(el)) {
|
|
5280
5184
|
alignTop(el);
|
|
5281
|
-
|
|
5282
5185
|
if (isOutOfBounds(el)) {
|
|
5283
5186
|
alignBottom(el);
|
|
5284
5187
|
}
|
|
5285
5188
|
}
|
|
5286
5189
|
} else {
|
|
5287
5190
|
alignRight(el);
|
|
5288
|
-
|
|
5289
5191
|
if (isOutOfBounds(el)) {
|
|
5290
5192
|
alignLeft(el);
|
|
5291
|
-
|
|
5292
5193
|
if (isOutOfBounds(el)) {
|
|
5293
5194
|
alignTop(el);
|
|
5294
|
-
|
|
5295
5195
|
if (isOutOfBounds(el)) {
|
|
5296
5196
|
alignBottom(el);
|
|
5297
|
-
|
|
5298
5197
|
if (isOutOfBounds(el)) {
|
|
5299
5198
|
alignRight(el);
|
|
5300
5199
|
}
|
|
@@ -5303,7 +5202,6 @@ function align(el) {
|
|
|
5303
5202
|
}
|
|
5304
5203
|
}
|
|
5305
5204
|
}
|
|
5306
|
-
|
|
5307
5205
|
function getHostOffset(el) {
|
|
5308
5206
|
var offset = el.getBoundingClientRect();
|
|
5309
5207
|
var targetLeft = offset.left + DomHandler_DomHandler.getWindowScrollLeft();
|
|
@@ -5313,7 +5211,6 @@ function getHostOffset(el) {
|
|
|
5313
5211
|
top: targetTop
|
|
5314
5212
|
};
|
|
5315
5213
|
}
|
|
5316
|
-
|
|
5317
5214
|
function alignRight(el) {
|
|
5318
5215
|
preAlign(el, 'right');
|
|
5319
5216
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5323,7 +5220,6 @@ function alignRight(el) {
|
|
|
5323
5220
|
tooltipElement.style.left = left + 'px';
|
|
5324
5221
|
tooltipElement.style.top = top + 'px';
|
|
5325
5222
|
}
|
|
5326
|
-
|
|
5327
5223
|
function alignLeft(el) {
|
|
5328
5224
|
preAlign(el, 'left');
|
|
5329
5225
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5333,7 +5229,6 @@ function alignLeft(el) {
|
|
|
5333
5229
|
tooltipElement.style.left = left + 'px';
|
|
5334
5230
|
tooltipElement.style.top = top + 'px';
|
|
5335
5231
|
}
|
|
5336
|
-
|
|
5337
5232
|
function alignTop(el) {
|
|
5338
5233
|
preAlign(el, 'top');
|
|
5339
5234
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5343,7 +5238,6 @@ function alignTop(el) {
|
|
|
5343
5238
|
tooltipElement.style.left = left + 'px';
|
|
5344
5239
|
tooltipElement.style.top = top + 'px';
|
|
5345
5240
|
}
|
|
5346
|
-
|
|
5347
5241
|
function alignBottom(el) {
|
|
5348
5242
|
preAlign(el, 'bottom');
|
|
5349
5243
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5353,14 +5247,12 @@ function alignBottom(el) {
|
|
|
5353
5247
|
tooltipElement.style.left = left + 'px';
|
|
5354
5248
|
tooltipElement.style.top = top + 'px';
|
|
5355
5249
|
}
|
|
5356
|
-
|
|
5357
5250
|
function preAlign(el, position) {
|
|
5358
5251
|
var tooltipElement = getTooltipElement(el);
|
|
5359
5252
|
tooltipElement.style.left = -999 + 'px';
|
|
5360
5253
|
tooltipElement.style.top = -999 + 'px';
|
|
5361
5254
|
tooltipElement.className = 'p-tooltip p-component p-tooltip-' + position;
|
|
5362
5255
|
}
|
|
5363
|
-
|
|
5364
5256
|
function isOutOfBounds(el) {
|
|
5365
5257
|
var tooltipElement = getTooltipElement(el);
|
|
5366
5258
|
var offset = tooltipElement.getBoundingClientRect();
|
|
@@ -5371,32 +5263,27 @@ function isOutOfBounds(el) {
|
|
|
5371
5263
|
var viewport = DomHandler_DomHandler.getViewport();
|
|
5372
5264
|
return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height;
|
|
5373
5265
|
}
|
|
5374
|
-
|
|
5375
5266
|
function getModifiers(options) {
|
|
5376
5267
|
// modifiers
|
|
5377
5268
|
if (options.modifiers && Object.keys(options.modifiers).length) {
|
|
5378
5269
|
return options.modifiers;
|
|
5379
|
-
}
|
|
5380
|
-
|
|
5270
|
+
}
|
|
5381
5271
|
|
|
5272
|
+
// arg
|
|
5382
5273
|
if (options.arg && _typeof(options.arg) === 'object') {
|
|
5383
5274
|
return Object.entries(options.arg).reduce(function (acc, _ref) {
|
|
5384
5275
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5276
|
+
key = _ref2[0],
|
|
5277
|
+
val = _ref2[1];
|
|
5388
5278
|
if (key === 'event' || key === 'position') acc[val] = true;
|
|
5389
5279
|
return acc;
|
|
5390
5280
|
}, {});
|
|
5391
5281
|
}
|
|
5392
|
-
|
|
5393
5282
|
return {};
|
|
5394
5283
|
}
|
|
5395
|
-
|
|
5396
5284
|
var Tooltip = {
|
|
5397
5285
|
bind: function bind(el, options) {
|
|
5398
5286
|
el.$_ptooltipModifiers = getModifiers(options);
|
|
5399
|
-
|
|
5400
5287
|
if (typeof options.value === 'string') {
|
|
5401
5288
|
el.$_ptooltipValue = options.value;
|
|
5402
5289
|
el.$_ptooltipDisabled = false;
|
|
@@ -5406,13 +5293,11 @@ var Tooltip = {
|
|
|
5406
5293
|
el.$_ptooltipDisabled = options.value.disabled || false;
|
|
5407
5294
|
el.$_ptooltipEscape = options.value.escape || false;
|
|
5408
5295
|
}
|
|
5409
|
-
|
|
5410
5296
|
bindEvents(el);
|
|
5411
5297
|
},
|
|
5412
5298
|
unbind: function unbind(el) {
|
|
5413
5299
|
remove(el);
|
|
5414
5300
|
unbindEvents(el);
|
|
5415
|
-
|
|
5416
5301
|
if (el.$_ptooltipScrollHandler) {
|
|
5417
5302
|
el.$_ptooltipScrollHandler.destroy();
|
|
5418
5303
|
el.$_ptooltipScrollHandler = null;
|
|
@@ -5420,7 +5305,6 @@ var Tooltip = {
|
|
|
5420
5305
|
},
|
|
5421
5306
|
update: function update(el, options) {
|
|
5422
5307
|
el.$_ptooltipModifiers = getModifiers(options);
|
|
5423
|
-
|
|
5424
5308
|
if (typeof options.value === 'string') {
|
|
5425
5309
|
el.$_ptooltipValue = options.value;
|
|
5426
5310
|
el.$_ptooltipDisabled = false;
|