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
|
@@ -4315,18 +4315,14 @@ var iterator_default = /*#__PURE__*/__webpack_require__.n(iterator);
|
|
|
4315
4315
|
|
|
4316
4316
|
function _iterableToArrayLimit(arr, i) {
|
|
4317
4317
|
var _i = arr == null ? null : typeof symbol_default.a !== "undefined" && arr[iterator_default.a] || arr["@@iterator"];
|
|
4318
|
-
|
|
4319
4318
|
if (_i == null) return;
|
|
4320
4319
|
var _arr = [];
|
|
4321
4320
|
var _n = true;
|
|
4322
4321
|
var _d = false;
|
|
4323
|
-
|
|
4324
4322
|
var _s, _e;
|
|
4325
|
-
|
|
4326
4323
|
try {
|
|
4327
4324
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
4328
4325
|
_arr.push(_s.value);
|
|
4329
|
-
|
|
4330
4326
|
if (i && _arr.length === i) break;
|
|
4331
4327
|
}
|
|
4332
4328
|
} catch (err) {
|
|
@@ -4339,7 +4335,6 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
4339
4335
|
if (_d) throw _e;
|
|
4340
4336
|
}
|
|
4341
4337
|
}
|
|
4342
|
-
|
|
4343
4338
|
return _arr;
|
|
4344
4339
|
}
|
|
4345
4340
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js
|
|
@@ -4349,11 +4344,9 @@ var from_default = /*#__PURE__*/__webpack_require__.n(from);
|
|
|
4349
4344
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayLikeToArray.js
|
|
4350
4345
|
function _arrayLikeToArray(arr, len) {
|
|
4351
4346
|
if (len == null || len > arr.length) len = arr.length;
|
|
4352
|
-
|
|
4353
4347
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
4354
4348
|
arr2[i] = arr[i];
|
|
4355
4349
|
}
|
|
4356
|
-
|
|
4357
4350
|
return arr2;
|
|
4358
4351
|
}
|
|
4359
4352
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/unsupportedIterableToArray.js
|
|
@@ -4452,26 +4445,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4452
4445
|
|
|
4453
4446
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4454
4447
|
|
|
4455
|
-
|
|
4456
4448
|
function _defineProperties(target, props) {
|
|
4457
4449
|
for (var i = 0; i < props.length; i++) {
|
|
4458
4450
|
var descriptor = props[i];
|
|
4459
4451
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4460
4452
|
descriptor.configurable = true;
|
|
4461
4453
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4462
|
-
|
|
4463
4454
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4464
4455
|
}
|
|
4465
4456
|
}
|
|
4466
|
-
|
|
4467
4457
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4468
4458
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4469
4459
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4470
|
-
|
|
4471
4460
|
define_property_default()(Constructor, "prototype", {
|
|
4472
4461
|
writable: false
|
|
4473
4462
|
});
|
|
4474
|
-
|
|
4475
4463
|
return Constructor;
|
|
4476
4464
|
}
|
|
4477
4465
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -4487,18 +4475,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
4487
4475
|
|
|
4488
4476
|
|
|
4489
4477
|
|
|
4490
|
-
|
|
4491
4478
|
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; } } }; }
|
|
4492
|
-
|
|
4493
4479
|
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); }
|
|
4494
|
-
|
|
4495
4480
|
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; }
|
|
4496
|
-
|
|
4497
4481
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
4498
4482
|
function DomHandler() {
|
|
4499
4483
|
_classCallCheck(this, DomHandler);
|
|
4500
4484
|
}
|
|
4501
|
-
|
|
4502
4485
|
_createClass(DomHandler, null, [{
|
|
4503
4486
|
key: "innerWidth",
|
|
4504
4487
|
value: function innerWidth(el) {
|
|
@@ -4532,12 +4515,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4532
4515
|
value: function getOuterWidth(el, margin) {
|
|
4533
4516
|
if (el) {
|
|
4534
4517
|
var width = el.offsetWidth;
|
|
4535
|
-
|
|
4536
4518
|
if (margin) {
|
|
4537
4519
|
var style = getComputedStyle(el);
|
|
4538
4520
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
4539
4521
|
}
|
|
4540
|
-
|
|
4541
4522
|
return width;
|
|
4542
4523
|
} else {
|
|
4543
4524
|
return 0;
|
|
@@ -4548,12 +4529,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4548
4529
|
value: function getOuterHeight(el, margin) {
|
|
4549
4530
|
if (el) {
|
|
4550
4531
|
var height = el.offsetHeight;
|
|
4551
|
-
|
|
4552
4532
|
if (margin) {
|
|
4553
4533
|
var style = getComputedStyle(el);
|
|
4554
4534
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4555
4535
|
}
|
|
4556
|
-
|
|
4557
4536
|
return height;
|
|
4558
4537
|
} else {
|
|
4559
4538
|
return 0;
|
|
@@ -4564,12 +4543,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4564
4543
|
value: function getClientHeight(el, margin) {
|
|
4565
4544
|
if (el) {
|
|
4566
4545
|
var height = el.clientHeight;
|
|
4567
|
-
|
|
4568
4546
|
if (margin) {
|
|
4569
4547
|
var style = getComputedStyle(el);
|
|
4570
4548
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4571
4549
|
}
|
|
4572
|
-
|
|
4573
4550
|
return height;
|
|
4574
4551
|
} else {
|
|
4575
4552
|
return 0;
|
|
@@ -4579,11 +4556,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4579
4556
|
key: "getViewport",
|
|
4580
4557
|
value: function getViewport() {
|
|
4581
4558
|
var win = window,
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4559
|
+
d = document,
|
|
4560
|
+
e = d.documentElement,
|
|
4561
|
+
g = d.getElementsByTagName('body')[0],
|
|
4562
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
4563
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
4587
4564
|
return {
|
|
4588
4565
|
width: w,
|
|
4589
4566
|
height: h
|
|
@@ -4614,12 +4591,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4614
4591
|
value: function index(element) {
|
|
4615
4592
|
var children = element.parentNode.childNodes;
|
|
4616
4593
|
var num = 0;
|
|
4617
|
-
|
|
4618
4594
|
for (var i = 0; i < children.length; i++) {
|
|
4619
4595
|
if (children[i] === element) return num;
|
|
4620
4596
|
if (children[i].nodeType === 1) num++;
|
|
4621
4597
|
}
|
|
4622
|
-
|
|
4623
4598
|
return -1;
|
|
4624
4599
|
}
|
|
4625
4600
|
}, {
|
|
@@ -4627,13 +4602,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4627
4602
|
value: function addMultipleClasses(element, className) {
|
|
4628
4603
|
if (element.classList) {
|
|
4629
4604
|
var styles = className.split(' ');
|
|
4630
|
-
|
|
4631
4605
|
for (var i = 0; i < styles.length; i++) {
|
|
4632
4606
|
element.classList.add(styles[i]);
|
|
4633
4607
|
}
|
|
4634
4608
|
} else {
|
|
4635
4609
|
var _styles = className.split(' ');
|
|
4636
|
-
|
|
4637
4610
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
4638
4611
|
element.className += ' ' + _styles[_i];
|
|
4639
4612
|
}
|
|
@@ -4655,7 +4628,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4655
4628
|
if (element) {
|
|
4656
4629
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
4657
4630
|
}
|
|
4658
|
-
|
|
4659
4631
|
return false;
|
|
4660
4632
|
}
|
|
4661
4633
|
}, {
|
|
@@ -4700,11 +4672,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4700
4672
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
4701
4673
|
var viewport = this.getViewport();
|
|
4702
4674
|
var top, left;
|
|
4703
|
-
|
|
4704
4675
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
4705
4676
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
4706
4677
|
element.style.transformOrigin = 'bottom';
|
|
4707
|
-
|
|
4708
4678
|
if (top < 0) {
|
|
4709
4679
|
top = windowScrollTop;
|
|
4710
4680
|
}
|
|
@@ -4712,7 +4682,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4712
4682
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
4713
4683
|
element.style.transformOrigin = 'top';
|
|
4714
4684
|
}
|
|
4715
|
-
|
|
4716
4685
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
4717
4686
|
element.style.top = top + 'px';
|
|
4718
4687
|
element.style.left = left + 'px';
|
|
@@ -4728,11 +4697,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4728
4697
|
var targetOffset = target.getBoundingClientRect();
|
|
4729
4698
|
var viewport = this.getViewport();
|
|
4730
4699
|
var top, left;
|
|
4731
|
-
|
|
4732
4700
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
4733
4701
|
top = -1 * elementDimensions.height;
|
|
4734
4702
|
element.style.transformOrigin = 'bottom';
|
|
4735
|
-
|
|
4736
4703
|
if (targetOffset.top + top < 0) {
|
|
4737
4704
|
top = -1 * targetOffset.top;
|
|
4738
4705
|
}
|
|
@@ -4740,7 +4707,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4740
4707
|
top = targetHeight;
|
|
4741
4708
|
element.style.transformOrigin = 'top';
|
|
4742
4709
|
}
|
|
4743
|
-
|
|
4744
4710
|
if (elementDimensions.width > viewport.width) {
|
|
4745
4711
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
4746
4712
|
left = targetOffset.left * -1;
|
|
@@ -4751,7 +4717,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4751
4717
|
// element fits on screen (align with target)
|
|
4752
4718
|
left = 0;
|
|
4753
4719
|
}
|
|
4754
|
-
|
|
4755
4720
|
element.style.top = top + 'px';
|
|
4756
4721
|
element.style.left = left + 'px';
|
|
4757
4722
|
}
|
|
@@ -4765,35 +4730,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4765
4730
|
key: "getScrollableParents",
|
|
4766
4731
|
value: function getScrollableParents(element) {
|
|
4767
4732
|
var scrollableParents = [];
|
|
4768
|
-
|
|
4769
4733
|
if (element) {
|
|
4770
4734
|
var parents = this.getParents(element);
|
|
4771
4735
|
var overflowRegex = /(auto|scroll)/;
|
|
4772
|
-
|
|
4773
4736
|
var overflowCheck = function overflowCheck(node) {
|
|
4774
4737
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
4775
4738
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
4776
4739
|
};
|
|
4777
|
-
|
|
4778
4740
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
4779
|
-
|
|
4780
|
-
|
|
4741
|
+
_step;
|
|
4781
4742
|
try {
|
|
4782
4743
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
4783
4744
|
var parent = _step.value;
|
|
4784
4745
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
4785
|
-
|
|
4786
4746
|
if (scrollSelectors) {
|
|
4787
4747
|
var selectors = scrollSelectors.split(',');
|
|
4788
|
-
|
|
4789
4748
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
4790
|
-
|
|
4791
|
-
|
|
4749
|
+
_step2;
|
|
4792
4750
|
try {
|
|
4793
4751
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4794
4752
|
var selector = _step2.value;
|
|
4795
4753
|
var el = this.findSingle(parent, selector);
|
|
4796
|
-
|
|
4797
4754
|
if (el && overflowCheck(el)) {
|
|
4798
4755
|
scrollableParents.push(el);
|
|
4799
4756
|
}
|
|
@@ -4811,7 +4768,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4811
4768
|
_iterator.f();
|
|
4812
4769
|
}
|
|
4813
4770
|
}
|
|
4814
|
-
|
|
4815
4771
|
return scrollableParents;
|
|
4816
4772
|
}
|
|
4817
4773
|
}, {
|
|
@@ -4852,34 +4808,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4852
4808
|
element.style.opacity = 0;
|
|
4853
4809
|
var last = +new Date();
|
|
4854
4810
|
var opacity = 0;
|
|
4855
|
-
|
|
4856
4811
|
var tick = function tick() {
|
|
4857
4812
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
4858
4813
|
element.style.opacity = opacity;
|
|
4859
4814
|
last = +new Date();
|
|
4860
|
-
|
|
4861
4815
|
if (+opacity < 1) {
|
|
4862
4816
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
4863
4817
|
}
|
|
4864
4818
|
};
|
|
4865
|
-
|
|
4866
4819
|
tick();
|
|
4867
4820
|
}
|
|
4868
4821
|
}, {
|
|
4869
4822
|
key: "fadeOut",
|
|
4870
4823
|
value: function fadeOut(element, ms) {
|
|
4871
4824
|
var opacity = 1,
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4825
|
+
interval = 50,
|
|
4826
|
+
duration = ms,
|
|
4827
|
+
gap = interval / duration;
|
|
4875
4828
|
var fading = setInterval(function () {
|
|
4876
4829
|
opacity -= gap;
|
|
4877
|
-
|
|
4878
4830
|
if (opacity <= 0) {
|
|
4879
4831
|
opacity = 0;
|
|
4880
4832
|
clearInterval(fading);
|
|
4881
4833
|
}
|
|
4882
|
-
|
|
4883
4834
|
element.style.opacity = opacity;
|
|
4884
4835
|
}, interval);
|
|
4885
4836
|
}
|
|
@@ -4906,7 +4857,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4906
4857
|
var scroll = container.scrollTop;
|
|
4907
4858
|
var elementHeight = container.clientHeight;
|
|
4908
4859
|
var itemHeight = this.getOuterHeight(item);
|
|
4909
|
-
|
|
4910
4860
|
if (offset < 0) {
|
|
4911
4861
|
container.scrollTop = scroll + offset;
|
|
4912
4862
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -4925,7 +4875,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4925
4875
|
} else if (document['selection'] && document['selection'].empty) {
|
|
4926
4876
|
try {
|
|
4927
4877
|
document['selection'].empty();
|
|
4928
|
-
} catch (error) {
|
|
4878
|
+
} catch (error) {
|
|
4879
|
+
//ignore IE bug
|
|
4929
4880
|
}
|
|
4930
4881
|
}
|
|
4931
4882
|
}
|
|
@@ -4947,19 +4898,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4947
4898
|
if (!this.browser) {
|
|
4948
4899
|
var matched = this.resolveUserAgent();
|
|
4949
4900
|
this.browser = {};
|
|
4950
|
-
|
|
4951
4901
|
if (matched.browser) {
|
|
4952
4902
|
this.browser[matched.browser] = true;
|
|
4953
4903
|
this.browser['version'] = matched.version;
|
|
4954
4904
|
}
|
|
4955
|
-
|
|
4956
4905
|
if (this.browser['chrome']) {
|
|
4957
4906
|
this.browser['webkit'] = true;
|
|
4958
4907
|
} else if (this.browser['webkit']) {
|
|
4959
4908
|
this.browser['safari'] = true;
|
|
4960
4909
|
}
|
|
4961
4910
|
}
|
|
4962
|
-
|
|
4963
4911
|
return this.browser;
|
|
4964
4912
|
}
|
|
4965
4913
|
}, {
|
|
@@ -4987,10 +4935,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4987
4935
|
value: function getFocusableElements(element) {
|
|
4988
4936
|
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])");
|
|
4989
4937
|
var visibleFocusableElements = [];
|
|
4990
|
-
|
|
4991
4938
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
4992
|
-
|
|
4993
|
-
|
|
4939
|
+
_step3;
|
|
4994
4940
|
try {
|
|
4995
4941
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4996
4942
|
var focusableElement = _step3.value;
|
|
@@ -5001,7 +4947,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5001
4947
|
} finally {
|
|
5002
4948
|
_iterator3.f();
|
|
5003
4949
|
}
|
|
5004
|
-
|
|
5005
4950
|
return visibleFocusableElements;
|
|
5006
4951
|
}
|
|
5007
4952
|
}, {
|
|
@@ -5044,31 +4989,24 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5044
4989
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5045
4990
|
}
|
|
5046
4991
|
}]);
|
|
5047
|
-
|
|
5048
4992
|
return DomHandler;
|
|
5049
4993
|
}();
|
|
5050
4994
|
|
|
5051
|
-
|
|
5052
4995
|
// CONCATENATED MODULE: ./src/components/utils/ConnectedOverlayScrollHandler.js
|
|
5053
4996
|
|
|
5054
4997
|
|
|
5055
4998
|
|
|
5056
|
-
|
|
5057
4999
|
var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
5058
5000
|
function ConnectedOverlayScrollHandler(element) {
|
|
5059
5001
|
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
5060
|
-
|
|
5061
5002
|
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
5062
|
-
|
|
5063
5003
|
this.element = element;
|
|
5064
5004
|
this.listener = listener;
|
|
5065
5005
|
}
|
|
5066
|
-
|
|
5067
5006
|
_createClass(ConnectedOverlayScrollHandler, [{
|
|
5068
5007
|
key: "bindScrollListener",
|
|
5069
5008
|
value: function bindScrollListener() {
|
|
5070
5009
|
this.scrollableParents = DomHandler_DomHandler.getScrollableParents(this.element);
|
|
5071
|
-
|
|
5072
5010
|
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
5073
5011
|
this.scrollableParents[i].addEventListener('scroll', this.listener);
|
|
5074
5012
|
}
|
|
@@ -5091,11 +5029,9 @@ var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/f
|
|
|
5091
5029
|
this.scrollableParents = null;
|
|
5092
5030
|
}
|
|
5093
5031
|
}]);
|
|
5094
|
-
|
|
5095
5032
|
return ConnectedOverlayScrollHandler;
|
|
5096
5033
|
}();
|
|
5097
5034
|
|
|
5098
|
-
|
|
5099
5035
|
// CONCATENATED MODULE: ./src/components/tooltip/Tooltip.js
|
|
5100
5036
|
|
|
5101
5037
|
|
|
@@ -5106,10 +5042,8 @@ var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/f
|
|
|
5106
5042
|
|
|
5107
5043
|
|
|
5108
5044
|
|
|
5109
|
-
|
|
5110
5045
|
function bindEvents(el) {
|
|
5111
5046
|
var modifiers = el.$_ptooltipModifiers;
|
|
5112
|
-
|
|
5113
5047
|
if (modifiers.focus) {
|
|
5114
5048
|
el.addEventListener('focus', onFocus);
|
|
5115
5049
|
el.addEventListener('blur', onBlur);
|
|
@@ -5119,10 +5053,8 @@ function bindEvents(el) {
|
|
|
5119
5053
|
el.addEventListener('click', onClick);
|
|
5120
5054
|
}
|
|
5121
5055
|
}
|
|
5122
|
-
|
|
5123
5056
|
function unbindEvents(el) {
|
|
5124
5057
|
var modifiers = el.$_ptooltipModifiers;
|
|
5125
|
-
|
|
5126
5058
|
if (modifiers.focus) {
|
|
5127
5059
|
el.removeEventListener('focus', onFocus);
|
|
5128
5060
|
el.removeEventListener('blur', onBlur);
|
|
@@ -5132,48 +5064,38 @@ function unbindEvents(el) {
|
|
|
5132
5064
|
el.removeEventListener('click', onClick);
|
|
5133
5065
|
}
|
|
5134
5066
|
}
|
|
5135
|
-
|
|
5136
5067
|
function Tooltip_bindScrollListener(el) {
|
|
5137
5068
|
if (!el.$_ptooltipScrollHandler) {
|
|
5138
5069
|
el.$_ptooltipScrollHandler = new ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler(el, function () {
|
|
5139
5070
|
hide(el);
|
|
5140
5071
|
});
|
|
5141
5072
|
}
|
|
5142
|
-
|
|
5143
5073
|
el.$_ptooltipScrollHandler.bindScrollListener();
|
|
5144
5074
|
}
|
|
5145
|
-
|
|
5146
5075
|
function unbindScrollListener(el) {
|
|
5147
5076
|
if (el.$_ptooltipScrollHandler) {
|
|
5148
5077
|
el.$_ptooltipScrollHandler.unbindScrollListener();
|
|
5149
5078
|
}
|
|
5150
5079
|
}
|
|
5151
|
-
|
|
5152
5080
|
function onMouseEnter(event) {
|
|
5153
5081
|
show(event.currentTarget);
|
|
5154
5082
|
}
|
|
5155
|
-
|
|
5156
5083
|
function onMouseLeave(event) {
|
|
5157
5084
|
hide(event.currentTarget);
|
|
5158
5085
|
}
|
|
5159
|
-
|
|
5160
5086
|
function onFocus(event) {
|
|
5161
5087
|
show(event.currentTarget);
|
|
5162
5088
|
}
|
|
5163
|
-
|
|
5164
5089
|
function onBlur(event) {
|
|
5165
5090
|
hide(event.currentTarget);
|
|
5166
5091
|
}
|
|
5167
|
-
|
|
5168
5092
|
function onClick(event) {
|
|
5169
5093
|
hide(event.currentTarget);
|
|
5170
5094
|
}
|
|
5171
|
-
|
|
5172
5095
|
function show(el) {
|
|
5173
5096
|
if (el.$_ptooltipDisabled) {
|
|
5174
5097
|
return;
|
|
5175
5098
|
}
|
|
5176
|
-
|
|
5177
5099
|
var tooltipElement = create(el);
|
|
5178
5100
|
align(el);
|
|
5179
5101
|
DomHandler_DomHandler.fadeIn(tooltipElement, 250);
|
|
@@ -5182,21 +5104,17 @@ function show(el) {
|
|
|
5182
5104
|
if (!DomHandler_DomHandler.isAndroid()) {
|
|
5183
5105
|
hide(el);
|
|
5184
5106
|
}
|
|
5185
|
-
|
|
5186
5107
|
this.removeEventListener('resize', onWindowResize);
|
|
5187
5108
|
});
|
|
5188
5109
|
Tooltip_bindScrollListener(el);
|
|
5189
5110
|
}
|
|
5190
|
-
|
|
5191
5111
|
function hide(el) {
|
|
5192
5112
|
remove(el);
|
|
5193
5113
|
unbindScrollListener(el);
|
|
5194
5114
|
}
|
|
5195
|
-
|
|
5196
5115
|
function getTooltipElement(el) {
|
|
5197
5116
|
return document.getElementById(el.$_ptooltipId);
|
|
5198
5117
|
}
|
|
5199
|
-
|
|
5200
5118
|
function create(el) {
|
|
5201
5119
|
var id = UniqueComponentId() + '_tooltip';
|
|
5202
5120
|
el.$_ptooltipId = id;
|
|
@@ -5207,57 +5125,44 @@ function create(el) {
|
|
|
5207
5125
|
container.appendChild(tooltipArrow);
|
|
5208
5126
|
var tooltipText = document.createElement('div');
|
|
5209
5127
|
tooltipText.className = 'p-tooltip-text';
|
|
5210
|
-
|
|
5211
5128
|
if (el.$_ptooltipEscape) {
|
|
5212
5129
|
tooltipText.innerHTML = el.$_ptooltipValue;
|
|
5213
5130
|
} else {
|
|
5214
5131
|
tooltipText.innerHTML = '';
|
|
5215
5132
|
tooltipText.appendChild(document.createTextNode(el.$_ptooltipValue));
|
|
5216
5133
|
}
|
|
5217
|
-
|
|
5218
5134
|
container.appendChild(tooltipText);
|
|
5219
5135
|
document.body.appendChild(container);
|
|
5220
5136
|
container.style.display = 'inline-block';
|
|
5221
5137
|
return container;
|
|
5222
5138
|
}
|
|
5223
|
-
|
|
5224
5139
|
function remove(el) {
|
|
5225
5140
|
if (el) {
|
|
5226
5141
|
var tooltipElement = getTooltipElement(el);
|
|
5227
|
-
|
|
5228
5142
|
if (tooltipElement && tooltipElement.parentElement) {
|
|
5229
5143
|
document.body.removeChild(tooltipElement);
|
|
5230
5144
|
}
|
|
5231
|
-
|
|
5232
5145
|
el.$_ptooltipId = null;
|
|
5233
5146
|
}
|
|
5234
5147
|
}
|
|
5235
|
-
|
|
5236
5148
|
function align(el) {
|
|
5237
5149
|
var modifiers = el.$_ptooltipModifiers;
|
|
5238
|
-
|
|
5239
5150
|
if (modifiers.top) {
|
|
5240
5151
|
alignTop(el);
|
|
5241
|
-
|
|
5242
5152
|
if (isOutOfBounds(el)) {
|
|
5243
5153
|
alignBottom(el);
|
|
5244
|
-
|
|
5245
5154
|
if (isOutOfBounds(el)) {
|
|
5246
5155
|
alignTop(el);
|
|
5247
5156
|
}
|
|
5248
5157
|
}
|
|
5249
5158
|
} else if (modifiers.left) {
|
|
5250
5159
|
alignLeft(el);
|
|
5251
|
-
|
|
5252
5160
|
if (isOutOfBounds(el)) {
|
|
5253
5161
|
alignRight(el);
|
|
5254
|
-
|
|
5255
5162
|
if (isOutOfBounds(el)) {
|
|
5256
5163
|
alignTop(el);
|
|
5257
|
-
|
|
5258
5164
|
if (isOutOfBounds(el)) {
|
|
5259
5165
|
alignBottom(el);
|
|
5260
|
-
|
|
5261
5166
|
if (isOutOfBounds(el)) {
|
|
5262
5167
|
alignLeft(el);
|
|
5263
5168
|
}
|
|
@@ -5266,26 +5171,20 @@ function align(el) {
|
|
|
5266
5171
|
}
|
|
5267
5172
|
} else if (modifiers.bottom) {
|
|
5268
5173
|
alignBottom(el);
|
|
5269
|
-
|
|
5270
5174
|
if (isOutOfBounds(el)) {
|
|
5271
5175
|
alignTop(el);
|
|
5272
|
-
|
|
5273
5176
|
if (isOutOfBounds(el)) {
|
|
5274
5177
|
alignBottom(el);
|
|
5275
5178
|
}
|
|
5276
5179
|
}
|
|
5277
5180
|
} else {
|
|
5278
5181
|
alignRight(el);
|
|
5279
|
-
|
|
5280
5182
|
if (isOutOfBounds(el)) {
|
|
5281
5183
|
alignLeft(el);
|
|
5282
|
-
|
|
5283
5184
|
if (isOutOfBounds(el)) {
|
|
5284
5185
|
alignTop(el);
|
|
5285
|
-
|
|
5286
5186
|
if (isOutOfBounds(el)) {
|
|
5287
5187
|
alignBottom(el);
|
|
5288
|
-
|
|
5289
5188
|
if (isOutOfBounds(el)) {
|
|
5290
5189
|
alignRight(el);
|
|
5291
5190
|
}
|
|
@@ -5294,7 +5193,6 @@ function align(el) {
|
|
|
5294
5193
|
}
|
|
5295
5194
|
}
|
|
5296
5195
|
}
|
|
5297
|
-
|
|
5298
5196
|
function getHostOffset(el) {
|
|
5299
5197
|
var offset = el.getBoundingClientRect();
|
|
5300
5198
|
var targetLeft = offset.left + DomHandler_DomHandler.getWindowScrollLeft();
|
|
@@ -5304,7 +5202,6 @@ function getHostOffset(el) {
|
|
|
5304
5202
|
top: targetTop
|
|
5305
5203
|
};
|
|
5306
5204
|
}
|
|
5307
|
-
|
|
5308
5205
|
function alignRight(el) {
|
|
5309
5206
|
preAlign(el, 'right');
|
|
5310
5207
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5314,7 +5211,6 @@ function alignRight(el) {
|
|
|
5314
5211
|
tooltipElement.style.left = left + 'px';
|
|
5315
5212
|
tooltipElement.style.top = top + 'px';
|
|
5316
5213
|
}
|
|
5317
|
-
|
|
5318
5214
|
function alignLeft(el) {
|
|
5319
5215
|
preAlign(el, 'left');
|
|
5320
5216
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5324,7 +5220,6 @@ function alignLeft(el) {
|
|
|
5324
5220
|
tooltipElement.style.left = left + 'px';
|
|
5325
5221
|
tooltipElement.style.top = top + 'px';
|
|
5326
5222
|
}
|
|
5327
|
-
|
|
5328
5223
|
function alignTop(el) {
|
|
5329
5224
|
preAlign(el, 'top');
|
|
5330
5225
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5334,7 +5229,6 @@ function alignTop(el) {
|
|
|
5334
5229
|
tooltipElement.style.left = left + 'px';
|
|
5335
5230
|
tooltipElement.style.top = top + 'px';
|
|
5336
5231
|
}
|
|
5337
|
-
|
|
5338
5232
|
function alignBottom(el) {
|
|
5339
5233
|
preAlign(el, 'bottom');
|
|
5340
5234
|
var tooltipElement = getTooltipElement(el);
|
|
@@ -5344,14 +5238,12 @@ function alignBottom(el) {
|
|
|
5344
5238
|
tooltipElement.style.left = left + 'px';
|
|
5345
5239
|
tooltipElement.style.top = top + 'px';
|
|
5346
5240
|
}
|
|
5347
|
-
|
|
5348
5241
|
function preAlign(el, position) {
|
|
5349
5242
|
var tooltipElement = getTooltipElement(el);
|
|
5350
5243
|
tooltipElement.style.left = -999 + 'px';
|
|
5351
5244
|
tooltipElement.style.top = -999 + 'px';
|
|
5352
5245
|
tooltipElement.className = 'p-tooltip p-component p-tooltip-' + position;
|
|
5353
5246
|
}
|
|
5354
|
-
|
|
5355
5247
|
function isOutOfBounds(el) {
|
|
5356
5248
|
var tooltipElement = getTooltipElement(el);
|
|
5357
5249
|
var offset = tooltipElement.getBoundingClientRect();
|
|
@@ -5362,32 +5254,27 @@ function isOutOfBounds(el) {
|
|
|
5362
5254
|
var viewport = DomHandler_DomHandler.getViewport();
|
|
5363
5255
|
return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height;
|
|
5364
5256
|
}
|
|
5365
|
-
|
|
5366
5257
|
function getModifiers(options) {
|
|
5367
5258
|
// modifiers
|
|
5368
5259
|
if (options.modifiers && Object.keys(options.modifiers).length) {
|
|
5369
5260
|
return options.modifiers;
|
|
5370
|
-
}
|
|
5371
|
-
|
|
5261
|
+
}
|
|
5372
5262
|
|
|
5263
|
+
// arg
|
|
5373
5264
|
if (options.arg && _typeof(options.arg) === 'object') {
|
|
5374
5265
|
return Object.entries(options.arg).reduce(function (acc, _ref) {
|
|
5375
5266
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5267
|
+
key = _ref2[0],
|
|
5268
|
+
val = _ref2[1];
|
|
5379
5269
|
if (key === 'event' || key === 'position') acc[val] = true;
|
|
5380
5270
|
return acc;
|
|
5381
5271
|
}, {});
|
|
5382
5272
|
}
|
|
5383
|
-
|
|
5384
5273
|
return {};
|
|
5385
5274
|
}
|
|
5386
|
-
|
|
5387
5275
|
var Tooltip = {
|
|
5388
5276
|
bind: function bind(el, options) {
|
|
5389
5277
|
el.$_ptooltipModifiers = getModifiers(options);
|
|
5390
|
-
|
|
5391
5278
|
if (typeof options.value === 'string') {
|
|
5392
5279
|
el.$_ptooltipValue = options.value;
|
|
5393
5280
|
el.$_ptooltipDisabled = false;
|
|
@@ -5397,13 +5284,11 @@ var Tooltip = {
|
|
|
5397
5284
|
el.$_ptooltipDisabled = options.value.disabled || false;
|
|
5398
5285
|
el.$_ptooltipEscape = options.value.escape || false;
|
|
5399
5286
|
}
|
|
5400
|
-
|
|
5401
5287
|
bindEvents(el);
|
|
5402
5288
|
},
|
|
5403
5289
|
unbind: function unbind(el) {
|
|
5404
5290
|
remove(el);
|
|
5405
5291
|
unbindEvents(el);
|
|
5406
|
-
|
|
5407
5292
|
if (el.$_ptooltipScrollHandler) {
|
|
5408
5293
|
el.$_ptooltipScrollHandler.destroy();
|
|
5409
5294
|
el.$_ptooltipScrollHandler = null;
|
|
@@ -5411,7 +5296,6 @@ var Tooltip = {
|
|
|
5411
5296
|
},
|
|
5412
5297
|
update: function update(el, options) {
|
|
5413
5298
|
el.$_ptooltipModifiers = getModifiers(options);
|
|
5414
|
-
|
|
5415
5299
|
if (typeof options.value === 'string') {
|
|
5416
5300
|
el.$_ptooltipValue = options.value;
|
|
5417
5301
|
el.$_ptooltipDisabled = false;
|