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
|
@@ -163,25 +163,56 @@ if (typeof window !== 'undefined') {
|
|
|
163
163
|
// Indicate to webpack that this file can be concatenated
|
|
164
164
|
/* harmony default export */ var setPublicPath = (null);
|
|
165
165
|
|
|
166
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
167
|
-
var render = function () {
|
|
168
|
-
var
|
|
169
|
-
|
|
166
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/tristatecheckbox/TriStateCheckbox.vue?vue&type=template&id=32ad5119&
|
|
167
|
+
var render = function render() {
|
|
168
|
+
var _vm = this,
|
|
169
|
+
_c = _vm._self._c;
|
|
170
|
+
return _c('div', {
|
|
171
|
+
staticClass: "p-checkbox p-component",
|
|
172
|
+
on: {
|
|
173
|
+
"click": function click($event) {
|
|
174
|
+
return _vm.onClick($event);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}, [_c('div', {
|
|
178
|
+
staticClass: "p-hidden-accessible"
|
|
179
|
+
}, [_c('input', _vm._b({
|
|
180
|
+
ref: "input",
|
|
181
|
+
attrs: {
|
|
182
|
+
"type": "checkbox",
|
|
183
|
+
"aria-labelledby": _vm.ariaLabelledBy
|
|
184
|
+
},
|
|
185
|
+
domProps: {
|
|
186
|
+
"checked": _vm.value === true
|
|
187
|
+
},
|
|
188
|
+
on: {
|
|
189
|
+
"focus": function focus($event) {
|
|
190
|
+
return _vm.onFocus();
|
|
191
|
+
},
|
|
192
|
+
"blur": function blur($event) {
|
|
193
|
+
return _vm.onBlur();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}, 'input', _vm.$attrs, false))]), _c('div', {
|
|
197
|
+
ref: "box",
|
|
198
|
+
class: ['p-checkbox-box', {
|
|
199
|
+
'p-highlight': _vm.value != null,
|
|
200
|
+
'p-disabled': _vm.$attrs.disabled,
|
|
201
|
+
'p-focus': _vm.focused
|
|
202
|
+
}],
|
|
203
|
+
attrs: {
|
|
204
|
+
"role": "checkbox",
|
|
205
|
+
"aria-checked": _vm.value === true
|
|
206
|
+
}
|
|
207
|
+
}, [_c('span', {
|
|
208
|
+
class: ['p-checkbox-icon', _vm.icon]
|
|
209
|
+
})])]);
|
|
210
|
+
};
|
|
211
|
+
var staticRenderFns = [];
|
|
170
212
|
|
|
171
213
|
// CONCATENATED MODULE: ./src/components/tristatecheckbox/TriStateCheckbox.vue?vue&type=template&id=32ad5119&
|
|
172
214
|
|
|
173
215
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/tristatecheckbox/TriStateCheckbox.vue?vue&type=script&lang=js&
|
|
174
|
-
//
|
|
175
|
-
//
|
|
176
|
-
//
|
|
177
|
-
//
|
|
178
|
-
//
|
|
179
|
-
//
|
|
180
|
-
//
|
|
181
|
-
//
|
|
182
|
-
//
|
|
183
|
-
//
|
|
184
|
-
//
|
|
185
216
|
/* harmony default export */ var TriStateCheckboxvue_type_script_lang_js_ = ({
|
|
186
217
|
inheritAttrs: false,
|
|
187
218
|
props: {
|
|
@@ -197,21 +228,17 @@ var staticRenderFns = []
|
|
|
197
228
|
onClick: function onClick(event) {
|
|
198
229
|
if (!this.$attrs.disabled) {
|
|
199
230
|
var newValue;
|
|
200
|
-
|
|
201
231
|
switch (this.value) {
|
|
202
232
|
case true:
|
|
203
233
|
newValue = false;
|
|
204
234
|
break;
|
|
205
|
-
|
|
206
235
|
case false:
|
|
207
236
|
newValue = null;
|
|
208
237
|
break;
|
|
209
|
-
|
|
210
238
|
case null:
|
|
211
239
|
newValue = true;
|
|
212
240
|
break;
|
|
213
241
|
}
|
|
214
|
-
|
|
215
242
|
this.$emit('click', event);
|
|
216
243
|
this.$emit('input', newValue);
|
|
217
244
|
this.$emit('change', event);
|
|
@@ -230,21 +257,17 @@ var staticRenderFns = []
|
|
|
230
257
|
computed: {
|
|
231
258
|
icon: function icon() {
|
|
232
259
|
var icon;
|
|
233
|
-
|
|
234
260
|
switch (this.value) {
|
|
235
261
|
case true:
|
|
236
262
|
icon = 'pi pi-check';
|
|
237
263
|
break;
|
|
238
|
-
|
|
239
264
|
case false:
|
|
240
265
|
icon = 'pi pi-times';
|
|
241
266
|
break;
|
|
242
|
-
|
|
243
267
|
case null:
|
|
244
268
|
icon = null;
|
|
245
269
|
break;
|
|
246
270
|
}
|
|
247
|
-
|
|
248
271
|
return icon;
|
|
249
272
|
}
|
|
250
273
|
}
|
|
@@ -258,20 +281,19 @@ var staticRenderFns = []
|
|
|
258
281
|
// This module is a runtime utility for cleaner component module output and will
|
|
259
282
|
// be included in the final webpack user bundle.
|
|
260
283
|
|
|
261
|
-
function normalizeComponent
|
|
284
|
+
function normalizeComponent(
|
|
262
285
|
scriptExports,
|
|
263
286
|
render,
|
|
264
287
|
staticRenderFns,
|
|
265
288
|
functionalTemplate,
|
|
266
289
|
injectStyles,
|
|
267
290
|
scopeId,
|
|
268
|
-
moduleIdentifier
|
|
291
|
+
moduleIdentifier /* server only */,
|
|
269
292
|
shadowMode /* vue-cli only */
|
|
270
293
|
) {
|
|
271
294
|
// Vue.extend constructor export interop
|
|
272
|
-
var options =
|
|
273
|
-
? scriptExports.options
|
|
274
|
-
: scriptExports
|
|
295
|
+
var options =
|
|
296
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
275
297
|
|
|
276
298
|
// render functions
|
|
277
299
|
if (render) {
|
|
@@ -291,7 +313,8 @@ function normalizeComponent (
|
|
|
291
313
|
}
|
|
292
314
|
|
|
293
315
|
var hook
|
|
294
|
-
if (moduleIdentifier) {
|
|
316
|
+
if (moduleIdentifier) {
|
|
317
|
+
// server build
|
|
295
318
|
hook = function (context) {
|
|
296
319
|
// 2.3 injection
|
|
297
320
|
context =
|
|
@@ -317,11 +340,11 @@ function normalizeComponent (
|
|
|
317
340
|
} else if (injectStyles) {
|
|
318
341
|
hook = shadowMode
|
|
319
342
|
? function () {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
343
|
+
injectStyles.call(
|
|
344
|
+
this,
|
|
345
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
346
|
+
)
|
|
347
|
+
}
|
|
325
348
|
: injectStyles
|
|
326
349
|
}
|
|
327
350
|
|
|
@@ -332,16 +355,14 @@ function normalizeComponent (
|
|
|
332
355
|
options._injectStyles = hook
|
|
333
356
|
// register for functional component in vue file
|
|
334
357
|
var originalRender = options.render
|
|
335
|
-
options.render = function renderWithStyleInjection
|
|
358
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
336
359
|
hook.call(context)
|
|
337
360
|
return originalRender(h, context)
|
|
338
361
|
}
|
|
339
362
|
} else {
|
|
340
363
|
// inject component registration as beforeCreate hook
|
|
341
364
|
var existing = options.beforeCreate
|
|
342
|
-
options.beforeCreate = existing
|
|
343
|
-
? [].concat(existing, hook)
|
|
344
|
-
: [hook]
|
|
365
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
345
366
|
}
|
|
346
367
|
}
|
|
347
368
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["tristatecheckbox"]=t():e["tristatecheckbox"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var e=this,t=e
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["tristatecheckbox"]=t():e["tristatecheckbox"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-checkbox p-component",on:{click:function(t){return e.onClick(t)}}},[t("div",{staticClass:"p-hidden-accessible"},[t("input",e._b({ref:"input",attrs:{type:"checkbox","aria-labelledby":e.ariaLabelledBy},domProps:{checked:!0===e.value},on:{focus:function(t){return e.onFocus()},blur:function(t){return e.onBlur()}}},"input",e.$attrs,!1))]),t("div",{ref:"box",class:["p-checkbox-box",{"p-highlight":null!=e.value,"p-disabled":e.$attrs.disabled,"p-focus":e.focused}],attrs:{role:"checkbox","aria-checked":!0===e.value}},[t("span",{class:["p-checkbox-icon",e.icon]})])])},i=[],c={inheritAttrs:!1,props:{value:null,ariaLabelledBy:String},data:function(){return{focused:!1}},methods:{onClick:function(e){if(!this.$attrs.disabled){var t;switch(this.value){case!0:t=!1;break;case!1:t=null;break;case null:t=!0;break}this.$emit("click",e),this.$emit("input",t),this.$emit("change",e),this.$refs.input.focus()}},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{icon:function(){var e;switch(this.value){case!0:e="pi pi-check";break;case!1:e="pi pi-times";break;case null:e=null;break}return e}}},u=c;function s(e,t,n,r,o,i,c,u){var s,a="function"===typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),c?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},a._ssrRegister=s):o&&(s=u?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(a.functional){a._injectStyles=s;var l=a.render;a.render=function(e,t){return s.call(t),l(e,t)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:a}}var a=s(u,o,i,!1,null,null,null),l=a.exports;t["default"]=l}})["default"]}));
|
|
@@ -4,32 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _DomHandler = _interopRequireDefault(require("./DomHandler"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
15
|
-
|
|
16
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
|
|
18
12
|
var ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
19
13
|
function ConnectedOverlayScrollHandler(element) {
|
|
20
14
|
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
21
|
-
|
|
22
15
|
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
23
|
-
|
|
24
16
|
this.element = element;
|
|
25
17
|
this.listener = listener;
|
|
26
18
|
}
|
|
27
|
-
|
|
28
19
|
_createClass(ConnectedOverlayScrollHandler, [{
|
|
29
20
|
key: "bindScrollListener",
|
|
30
21
|
value: function bindScrollListener() {
|
|
31
22
|
this.scrollableParents = _DomHandler.default.getScrollableParents(this.element);
|
|
32
|
-
|
|
33
23
|
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
34
24
|
this.scrollableParents[i].addEventListener('scroll', this.listener);
|
|
35
25
|
}
|
|
@@ -52,8 +42,6 @@ var ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
|
52
42
|
this.scrollableParents = null;
|
|
53
43
|
}
|
|
54
44
|
}]);
|
|
55
|
-
|
|
56
45
|
return ConnectedOverlayScrollHandler;
|
|
57
46
|
}();
|
|
58
|
-
|
|
59
47
|
exports.default = ConnectedOverlayScrollHandler;
|
package/utils/DomHandler.js
CHANGED
|
@@ -4,24 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
9
|
-
|
|
10
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
-
|
|
12
9
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
var DomHandler = /*#__PURE__*/function () {
|
|
21
14
|
function DomHandler() {
|
|
22
15
|
_classCallCheck(this, DomHandler);
|
|
23
16
|
}
|
|
24
|
-
|
|
25
17
|
_createClass(DomHandler, null, [{
|
|
26
18
|
key: "innerWidth",
|
|
27
19
|
value: function innerWidth(el) {
|
|
@@ -55,12 +47,10 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
55
47
|
value: function getOuterWidth(el, margin) {
|
|
56
48
|
if (el) {
|
|
57
49
|
var width = el.offsetWidth;
|
|
58
|
-
|
|
59
50
|
if (margin) {
|
|
60
51
|
var style = getComputedStyle(el);
|
|
61
52
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
62
53
|
}
|
|
63
|
-
|
|
64
54
|
return width;
|
|
65
55
|
} else {
|
|
66
56
|
return 0;
|
|
@@ -71,12 +61,10 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
71
61
|
value: function getOuterHeight(el, margin) {
|
|
72
62
|
if (el) {
|
|
73
63
|
var height = el.offsetHeight;
|
|
74
|
-
|
|
75
64
|
if (margin) {
|
|
76
65
|
var style = getComputedStyle(el);
|
|
77
66
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
78
67
|
}
|
|
79
|
-
|
|
80
68
|
return height;
|
|
81
69
|
} else {
|
|
82
70
|
return 0;
|
|
@@ -87,12 +75,10 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
87
75
|
value: function getClientHeight(el, margin) {
|
|
88
76
|
if (el) {
|
|
89
77
|
var height = el.clientHeight;
|
|
90
|
-
|
|
91
78
|
if (margin) {
|
|
92
79
|
var style = getComputedStyle(el);
|
|
93
80
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
94
81
|
}
|
|
95
|
-
|
|
96
82
|
return height;
|
|
97
83
|
} else {
|
|
98
84
|
return 0;
|
|
@@ -102,11 +88,11 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
102
88
|
key: "getViewport",
|
|
103
89
|
value: function getViewport() {
|
|
104
90
|
var win = window,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
91
|
+
d = document,
|
|
92
|
+
e = d.documentElement,
|
|
93
|
+
g = d.getElementsByTagName('body')[0],
|
|
94
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
95
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
110
96
|
return {
|
|
111
97
|
width: w,
|
|
112
98
|
height: h
|
|
@@ -137,12 +123,10 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
137
123
|
value: function index(element) {
|
|
138
124
|
var children = element.parentNode.childNodes;
|
|
139
125
|
var num = 0;
|
|
140
|
-
|
|
141
126
|
for (var i = 0; i < children.length; i++) {
|
|
142
127
|
if (children[i] === element) return num;
|
|
143
128
|
if (children[i].nodeType === 1) num++;
|
|
144
129
|
}
|
|
145
|
-
|
|
146
130
|
return -1;
|
|
147
131
|
}
|
|
148
132
|
}, {
|
|
@@ -150,13 +134,11 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
150
134
|
value: function addMultipleClasses(element, className) {
|
|
151
135
|
if (element.classList) {
|
|
152
136
|
var styles = className.split(' ');
|
|
153
|
-
|
|
154
137
|
for (var i = 0; i < styles.length; i++) {
|
|
155
138
|
element.classList.add(styles[i]);
|
|
156
139
|
}
|
|
157
140
|
} else {
|
|
158
141
|
var _styles = className.split(' ');
|
|
159
|
-
|
|
160
142
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
161
143
|
element.className += ' ' + _styles[_i];
|
|
162
144
|
}
|
|
@@ -178,7 +160,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
178
160
|
if (element) {
|
|
179
161
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
180
162
|
}
|
|
181
|
-
|
|
182
163
|
return false;
|
|
183
164
|
}
|
|
184
165
|
}, {
|
|
@@ -223,11 +204,9 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
223
204
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
224
205
|
var viewport = this.getViewport();
|
|
225
206
|
var top, left;
|
|
226
|
-
|
|
227
207
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
228
208
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
229
209
|
element.style.transformOrigin = 'bottom';
|
|
230
|
-
|
|
231
210
|
if (top < 0) {
|
|
232
211
|
top = windowScrollTop;
|
|
233
212
|
}
|
|
@@ -235,7 +214,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
235
214
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
236
215
|
element.style.transformOrigin = 'top';
|
|
237
216
|
}
|
|
238
|
-
|
|
239
217
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
240
218
|
element.style.top = top + 'px';
|
|
241
219
|
element.style.left = left + 'px';
|
|
@@ -251,11 +229,9 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
251
229
|
var targetOffset = target.getBoundingClientRect();
|
|
252
230
|
var viewport = this.getViewport();
|
|
253
231
|
var top, left;
|
|
254
|
-
|
|
255
232
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
256
233
|
top = -1 * elementDimensions.height;
|
|
257
234
|
element.style.transformOrigin = 'bottom';
|
|
258
|
-
|
|
259
235
|
if (targetOffset.top + top < 0) {
|
|
260
236
|
top = -1 * targetOffset.top;
|
|
261
237
|
}
|
|
@@ -263,7 +239,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
263
239
|
top = targetHeight;
|
|
264
240
|
element.style.transformOrigin = 'top';
|
|
265
241
|
}
|
|
266
|
-
|
|
267
242
|
if (elementDimensions.width > viewport.width) {
|
|
268
243
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
269
244
|
left = targetOffset.left * -1;
|
|
@@ -274,7 +249,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
274
249
|
// element fits on screen (align with target)
|
|
275
250
|
left = 0;
|
|
276
251
|
}
|
|
277
|
-
|
|
278
252
|
element.style.top = top + 'px';
|
|
279
253
|
element.style.left = left + 'px';
|
|
280
254
|
}
|
|
@@ -288,35 +262,27 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
288
262
|
key: "getScrollableParents",
|
|
289
263
|
value: function getScrollableParents(element) {
|
|
290
264
|
var scrollableParents = [];
|
|
291
|
-
|
|
292
265
|
if (element) {
|
|
293
266
|
var parents = this.getParents(element);
|
|
294
267
|
var overflowRegex = /(auto|scroll)/;
|
|
295
|
-
|
|
296
268
|
var overflowCheck = function overflowCheck(node) {
|
|
297
269
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
298
270
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
299
271
|
};
|
|
300
|
-
|
|
301
272
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
302
|
-
|
|
303
|
-
|
|
273
|
+
_step;
|
|
304
274
|
try {
|
|
305
275
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
306
276
|
var parent = _step.value;
|
|
307
277
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
308
|
-
|
|
309
278
|
if (scrollSelectors) {
|
|
310
279
|
var selectors = scrollSelectors.split(',');
|
|
311
|
-
|
|
312
280
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
313
|
-
|
|
314
|
-
|
|
281
|
+
_step2;
|
|
315
282
|
try {
|
|
316
283
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
317
284
|
var selector = _step2.value;
|
|
318
285
|
var el = this.findSingle(parent, selector);
|
|
319
|
-
|
|
320
286
|
if (el && overflowCheck(el)) {
|
|
321
287
|
scrollableParents.push(el);
|
|
322
288
|
}
|
|
@@ -334,7 +300,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
334
300
|
_iterator.f();
|
|
335
301
|
}
|
|
336
302
|
}
|
|
337
|
-
|
|
338
303
|
return scrollableParents;
|
|
339
304
|
}
|
|
340
305
|
}, {
|
|
@@ -375,34 +340,29 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
375
340
|
element.style.opacity = 0;
|
|
376
341
|
var last = +new Date();
|
|
377
342
|
var opacity = 0;
|
|
378
|
-
|
|
379
343
|
var tick = function tick() {
|
|
380
344
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
381
345
|
element.style.opacity = opacity;
|
|
382
346
|
last = +new Date();
|
|
383
|
-
|
|
384
347
|
if (+opacity < 1) {
|
|
385
348
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
386
349
|
}
|
|
387
350
|
};
|
|
388
|
-
|
|
389
351
|
tick();
|
|
390
352
|
}
|
|
391
353
|
}, {
|
|
392
354
|
key: "fadeOut",
|
|
393
355
|
value: function fadeOut(element, ms) {
|
|
394
356
|
var opacity = 1,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
357
|
+
interval = 50,
|
|
358
|
+
duration = ms,
|
|
359
|
+
gap = interval / duration;
|
|
398
360
|
var fading = setInterval(function () {
|
|
399
361
|
opacity -= gap;
|
|
400
|
-
|
|
401
362
|
if (opacity <= 0) {
|
|
402
363
|
opacity = 0;
|
|
403
364
|
clearInterval(fading);
|
|
404
365
|
}
|
|
405
|
-
|
|
406
366
|
element.style.opacity = opacity;
|
|
407
367
|
}, interval);
|
|
408
368
|
}
|
|
@@ -429,7 +389,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
429
389
|
var scroll = container.scrollTop;
|
|
430
390
|
var elementHeight = container.clientHeight;
|
|
431
391
|
var itemHeight = this.getOuterHeight(item);
|
|
432
|
-
|
|
433
392
|
if (offset < 0) {
|
|
434
393
|
container.scrollTop = scroll + offset;
|
|
435
394
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -448,7 +407,8 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
448
407
|
} else if (document['selection'] && document['selection'].empty) {
|
|
449
408
|
try {
|
|
450
409
|
document['selection'].empty();
|
|
451
|
-
} catch (error) {
|
|
410
|
+
} catch (error) {
|
|
411
|
+
//ignore IE bug
|
|
452
412
|
}
|
|
453
413
|
}
|
|
454
414
|
}
|
|
@@ -470,19 +430,16 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
470
430
|
if (!this.browser) {
|
|
471
431
|
var matched = this.resolveUserAgent();
|
|
472
432
|
this.browser = {};
|
|
473
|
-
|
|
474
433
|
if (matched.browser) {
|
|
475
434
|
this.browser[matched.browser] = true;
|
|
476
435
|
this.browser['version'] = matched.version;
|
|
477
436
|
}
|
|
478
|
-
|
|
479
437
|
if (this.browser['chrome']) {
|
|
480
438
|
this.browser['webkit'] = true;
|
|
481
439
|
} else if (this.browser['webkit']) {
|
|
482
440
|
this.browser['safari'] = true;
|
|
483
441
|
}
|
|
484
442
|
}
|
|
485
|
-
|
|
486
443
|
return this.browser;
|
|
487
444
|
}
|
|
488
445
|
}, {
|
|
@@ -510,10 +467,8 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
510
467
|
value: function getFocusableElements(element) {
|
|
511
468
|
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])");
|
|
512
469
|
var visibleFocusableElements = [];
|
|
513
|
-
|
|
514
470
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
515
|
-
|
|
516
|
-
|
|
471
|
+
_step3;
|
|
517
472
|
try {
|
|
518
473
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
519
474
|
var focusableElement = _step3.value;
|
|
@@ -524,7 +479,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
524
479
|
} finally {
|
|
525
480
|
_iterator3.f();
|
|
526
481
|
}
|
|
527
|
-
|
|
528
482
|
return visibleFocusableElements;
|
|
529
483
|
}
|
|
530
484
|
}, {
|
|
@@ -567,8 +521,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
567
521
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
568
522
|
}
|
|
569
523
|
}]);
|
|
570
|
-
|
|
571
524
|
return DomHandler;
|
|
572
525
|
}();
|
|
573
|
-
|
|
574
526
|
exports.default = DomHandler;
|
package/utils/EventBus.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = _default;
|
|
7
|
-
|
|
8
7
|
function _default() {
|
|
9
8
|
var allHandlers = new Map();
|
|
10
9
|
return {
|
|
@@ -15,14 +14,12 @@ function _default() {
|
|
|
15
14
|
},
|
|
16
15
|
off: function off(type, handler) {
|
|
17
16
|
var handlers = allHandlers.get(type);
|
|
18
|
-
|
|
19
17
|
if (handlers) {
|
|
20
18
|
handlers.splice(handlers.indexOf(handler) >>> 0, 1);
|
|
21
19
|
}
|
|
22
20
|
},
|
|
23
21
|
emit: function emit(type, evt) {
|
|
24
22
|
var handlers = allHandlers.get(type);
|
|
25
|
-
|
|
26
23
|
if (handlers) {
|
|
27
24
|
handlers.slice().map(function (handler) {
|
|
28
25
|
handler(evt);
|