primevue 2.9.2 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +150 -3
- package/accordion/accordion.common.js +66 -72
- package/accordion/accordion.umd.js +66 -72
- package/accordion/accordion.umd.min.js +1 -1
- package/accordiontab/accordiontab.common.js +73 -103
- package/accordiontab/accordiontab.umd.js +73 -103
- package/accordiontab/accordiontab.umd.min.js +1 -1
- package/api/Api.d.ts +24 -2
- package/api/Api.js +0 -6
- package/api/FilterService.js +2 -55
- package/api/PrimeIcons.js +24 -2
- package/api/api.common.js +35 -98
- package/api/api.umd.js +35 -98
- package/api/api.umd.min.js +1 -1
- package/api/filterservice.common.js +11 -96
- package/api/filterservice.umd.js +11 -96
- package/api/primeicons.common.js +24 -2
- package/api/primeicons.umd.js +24 -2
- package/api/primeicons.umd.min.js +1 -1
- package/autocomplete/autocomplete.common.js +241 -293
- package/autocomplete/autocomplete.umd.js +241 -293
- package/autocomplete/autocomplete.umd.min.js +1 -1
- package/avatar/avatar.common.js +64 -61
- package/avatar/avatar.umd.js +64 -61
- package/avatar/avatar.umd.min.js +1 -1
- package/avatargroup/avatargroup.common.js +44 -47
- package/avatargroup/avatargroup.umd.js +44 -47
- package/avatargroup/avatargroup.umd.min.js +1 -1
- package/badge/badge.common.js +22 -23
- package/badge/badge.umd.js +22 -23
- package/badge/badge.umd.min.js +1 -1
- package/badgedirective/BadgeDirective.js +0 -13
- package/badgedirective/badgedirective.common.js +13 -71
- package/badgedirective/badgedirective.umd.js +13 -71
- package/blockui/blockui.common.js +79 -138
- package/blockui/blockui.umd.js +79 -138
- package/blockui/blockui.umd.min.js +1 -1
- package/breadcrumb/breadcrumb.common.js +130 -90
- package/breadcrumb/breadcrumb.umd.js +130 -90
- package/breadcrumb/breadcrumb.umd.min.js +1 -1
- package/breadcrumb/breadcrumbitem.common.js +67 -40
- package/breadcrumb/breadcrumbitem.umd.js +67 -40
- package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
- package/button/Button.d.ts +2 -0
- package/button/Button.vue +10 -1
- package/button/button.common.js +64 -109
- package/button/button.umd.js +64 -109
- package/button/button.umd.min.js +1 -1
- package/calendar/Calendar.vue +7 -3
- package/calendar/calendar.common.js +714 -721
- package/calendar/calendar.umd.js +714 -721
- package/calendar/calendar.umd.min.js +1 -1
- package/card/card.common.js +59 -62
- package/card/card.umd.js +59 -62
- package/card/card.umd.min.js +1 -1
- package/carousel/carousel.common.js +190 -231
- package/carousel/carousel.umd.js +190 -231
- package/carousel/carousel.umd.min.js +1 -1
- package/cascadeselect/cascadeselect.common.js +230 -294
- package/cascadeselect/cascadeselect.umd.js +230 -294
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +101 -183
- package/cascadeselect/cascadeselectsub.umd.js +101 -183
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/cascadeselect/demo.html +4 -3
- package/chart/chart.common.js +77 -74
- package/chart/chart.umd.js +77 -74
- package/chart/chart.umd.min.js +1 -1
- package/checkbox/checkbox.common.js +70 -87
- package/checkbox/checkbox.umd.js +70 -87
- package/checkbox/checkbox.umd.min.js +1 -1
- package/chip/chip.common.js +66 -52
- package/chip/chip.umd.js +66 -52
- package/chip/chip.umd.min.js +1 -1
- package/chips/chips.common.js +122 -96
- package/chips/chips.umd.js +122 -96
- package/chips/chips.umd.min.js +1 -1
- package/colorpicker/colorpicker.common.js +149 -193
- package/colorpicker/colorpicker.umd.js +149 -193
- package/colorpicker/colorpicker.umd.min.js +1 -1
- package/column/column.common.js +13 -15
- package/column/column.umd.js +13 -15
- package/columngroup/columngroup.common.js +20 -25
- package/columngroup/columngroup.umd.js +20 -25
- package/columngroup/columngroup.umd.min.js +1 -1
- package/config/PrimeVue.js +0 -5
- package/config/primevue.common.js +35 -102
- package/config/primevue.umd.js +35 -102
- package/config/primevue.umd.min.js +1 -1
- package/confirmationeventbus/ConfirmationEventBus.js +0 -4
- package/confirmationeventbus/confirmationeventbus.common.js +0 -2
- package/confirmationeventbus/confirmationeventbus.umd.js +0 -2
- package/confirmationservice/ConfirmationService.js +0 -3
- package/confirmationservice/confirmationservice.common.js +0 -2
- package/confirmationservice/confirmationservice.umd.js +0 -2
- package/confirmdialog/confirmdialog.common.js +247 -218
- package/confirmdialog/confirmdialog.umd.js +247 -218
- package/confirmdialog/confirmdialog.umd.min.js +1 -1
- package/confirmpopup/confirmpopup.common.js +154 -196
- package/confirmpopup/confirmpopup.umd.js +154 -196
- package/confirmpopup/confirmpopup.umd.min.js +1 -1
- package/contextmenu/contextmenu.common.js +216 -206
- package/contextmenu/contextmenu.umd.js +216 -206
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +138 -134
- package/contextmenu/contextmenusub.umd.js +138 -134
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/contextmenu/demo.html +3 -4
- package/datatable/BodyCell.vue +11 -2
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.vue +2 -12
- package/datatable/HeaderCheckbox.vue +5 -8
- package/datatable/bodycell.common.js +283 -246
- package/datatable/bodycell.umd.js +283 -246
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/columnfilter.common.js +516 -422
- package/datatable/columnfilter.umd.js +516 -422
- package/datatable/columnfilter.umd.min.js +1 -1
- package/datatable/columnslot.common.js +13 -15
- package/datatable/columnslot.umd.js +13 -15
- package/datatable/datatable.common.js +2250 -1551
- package/datatable/datatable.umd.js +2250 -1551
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/footercell.common.js +56 -142
- package/datatable/footercell.umd.js +56 -142
- package/datatable/footercell.umd.min.js +1 -1
- package/datatable/headercell.common.js +666 -483
- package/datatable/headercell.umd.js +666 -483
- package/datatable/headercell.umd.min.js +1 -1
- package/datatable/headercheckbox.common.js +59 -33
- package/datatable/headercheckbox.umd.js +59 -33
- package/datatable/headercheckbox.umd.min.js +1 -1
- package/datatable/rowcheckbox.common.js +61 -30
- package/datatable/rowcheckbox.umd.js +61 -30
- package/datatable/rowcheckbox.umd.min.js +1 -1
- package/datatable/rowradiobutton.common.js +54 -27
- package/datatable/rowradiobutton.umd.js +54 -27
- package/datatable/rowradiobutton.umd.min.js +1 -1
- package/datatable/tablebody.common.js +461 -321
- package/datatable/tablebody.umd.js +461 -321
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +94 -175
- package/datatable/tablefooter.umd.js +94 -175
- package/datatable/tablefooter.umd.min.js +1 -1
- package/datatable/tableheader.common.js +872 -539
- package/datatable/tableheader.umd.js +872 -539
- package/datatable/tableheader.umd.min.js +1 -1
- package/datatable/tableloadingbody.common.js +36 -29
- package/datatable/tableloadingbody.umd.js +36 -29
- package/datatable/tableloadingbody.umd.min.js +1 -1
- package/dataview/dataview.common.js +851 -720
- package/dataview/dataview.umd.js +851 -720
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +46 -30
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +46 -30
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.min.js +1 -1
- package/deferredcontent/deferredcontent.common.js +22 -28
- package/deferredcontent/deferredcontent.umd.js +22 -28
- package/deferredcontent/deferredcontent.umd.min.js +1 -1
- package/dialog/dialog.common.js +152 -179
- package/dialog/dialog.umd.js +152 -179
- package/dialog/dialog.umd.min.js +1 -1
- package/divider/divider.common.js +49 -49
- package/divider/divider.umd.js +49 -49
- package/divider/divider.umd.min.js +1 -1
- package/dock/dock.common.js +179 -95
- package/dock/dock.umd.js +179 -95
- package/dock/dock.umd.min.js +1 -1
- package/dock/docksub.common.js +132 -54
- package/dock/docksub.umd.js +132 -54
- package/dock/docksub.umd.min.js +1 -1
- package/dropdown/dropdown.common.js +233 -289
- package/dropdown/dropdown.umd.js +233 -289
- package/dropdown/dropdown.umd.min.js +1 -1
- package/editor/editor.common.js +194 -104
- package/editor/editor.umd.js +194 -104
- package/editor/editor.umd.min.js +3 -3
- package/fieldset/fieldset.common.js +133 -165
- package/fieldset/fieldset.umd.js +133 -165
- package/fieldset/fieldset.umd.min.js +1 -1
- package/fileupload/fileupload.common.js +431 -373
- package/fileupload/fileupload.umd.js +431 -373
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +75 -64
- package/fullcalendar/fullcalendar.umd.js +75 -64
- package/fullcalendar/fullcalendar.umd.min.js +4 -18
- package/galleria/galleria.common.js +403 -299
- package/galleria/galleria.umd.js +403 -299
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +324 -235
- package/galleria/galleriacontent.umd.js +324 -235
- package/galleria/galleriacontent.umd.min.js +1 -1
- package/galleria/galleriaitem.common.js +127 -135
- package/galleria/galleriaitem.umd.js +127 -135
- package/galleria/galleriaitem.umd.min.js +1 -1
- package/galleria/galleriaitemslot.common.js +17 -25
- package/galleria/galleriaitemslot.umd.js +17 -25
- package/galleria/galleriathumbnails.common.js +125 -171
- package/galleria/galleriathumbnails.umd.js +125 -171
- package/galleria/galleriathumbnails.umd.min.js +1 -1
- package/imagepreview/imagepreview.common.js +174 -163
- package/imagepreview/imagepreview.umd.js +174 -163
- package/imagepreview/imagepreview.umd.min.js +1 -1
- package/inlinemessage/inlinemessage.common.js +61 -57
- package/inlinemessage/inlinemessage.umd.js +61 -57
- package/inlinemessage/inlinemessage.umd.min.js +1 -1
- package/inplace/inplace.common.js +139 -170
- package/inplace/inplace.umd.js +139 -170
- package/inplace/inplace.umd.min.js +1 -1
- package/inputmask/inputmask.common.js +51 -174
- package/inputmask/inputmask.umd.js +51 -174
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +6 -3
- package/inputnumber/inputnumber.common.js +205 -293
- package/inputnumber/inputnumber.umd.js +205 -293
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +219 -37
- package/inputswitch/inputswitch.umd.js +219 -37
- package/inputswitch/inputswitch.umd.min.js +1 -1
- package/inputtext/inputtext.common.js +27 -28
- package/inputtext/inputtext.umd.js +27 -28
- package/inputtext/inputtext.umd.min.js +1 -1
- package/knob/knob.common.js +102 -74
- package/knob/knob.umd.js +102 -74
- package/knob/knob.umd.min.js +1 -1
- package/listbox/listbox.common.js +163 -237
- package/listbox/listbox.umd.js +163 -237
- package/listbox/listbox.umd.min.js +1 -1
- package/megamenu/MegaMenu.vue +2 -2
- package/megamenu/megamenu.common.js +273 -230
- package/megamenu/megamenu.umd.js +273 -230
- package/megamenu/megamenu.umd.min.js +1 -1
- package/menu/menu.common.js +201 -203
- package/menu/menu.umd.js +201 -203
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +95 -116
- package/menu/menuitem.umd.js +95 -116
- package/menu/menuitem.umd.min.js +1 -1
- package/menubar/menubar.common.js +223 -214
- package/menubar/menubar.umd.js +223 -214
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +142 -149
- package/menubar/menubarsub.umd.js +142 -149
- package/menubar/menubarsub.umd.min.js +1 -1
- package/message/message.common.js +108 -157
- package/message/message.umd.js +108 -157
- package/message/message.umd.min.js +1 -1
- package/multiselect/multiselect.common.js +291 -315
- package/multiselect/multiselect.umd.js +291 -315
- package/multiselect/multiselect.umd.min.js +1 -1
- package/orderlist/orderlist.common.js +206 -263
- package/orderlist/orderlist.umd.js +206 -263
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +188 -190
- package/organizationchart/organizationchart.umd.js +188 -190
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +122 -124
- package/organizationchart/organizationchartnode.umd.js +122 -124
- package/organizationchart/organizationchartnode.umd.min.js +1 -1
- package/overlayeventbus/OverlayEventBus.js +0 -4
- package/overlayeventbus/overlayeventbus.common.js +0 -2
- package/overlayeventbus/overlayeventbus.umd.js +0 -2
- package/overlaypanel/overlaypanel.common.js +108 -176
- package/overlaypanel/overlaypanel.umd.js +108 -176
- package/overlaypanel/overlaypanel.umd.min.js +1 -1
- package/package.json +3 -3
- package/paginator/currentpagereport.common.js +22 -22
- package/paginator/currentpagereport.umd.js +22 -22
- package/paginator/currentpagereport.umd.min.js +1 -1
- package/paginator/firstpagelink.common.js +44 -102
- package/paginator/firstpagelink.umd.js +44 -102
- package/paginator/firstpagelink.umd.min.js +1 -1
- package/paginator/jumptopagedropdown.common.js +254 -300
- package/paginator/jumptopagedropdown.umd.js +254 -300
- package/paginator/jumptopagedropdown.umd.min.js +1 -1
- package/paginator/jumptopageinput.common.js +225 -303
- package/paginator/jumptopageinput.umd.js +225 -303
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +44 -102
- package/paginator/lastpagelink.umd.js +44 -102
- package/paginator/lastpagelink.umd.min.js +1 -1
- package/paginator/nextpagelink.common.js +44 -102
- package/paginator/nextpagelink.umd.js +44 -102
- package/paginator/nextpagelink.umd.min.js +1 -1
- package/paginator/pagelinks.common.js +54 -102
- package/paginator/pagelinks.umd.js +54 -102
- package/paginator/pagelinks.umd.min.js +1 -1
- package/paginator/paginator.common.js +741 -654
- package/paginator/paginator.umd.js +741 -654
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +44 -102
- package/paginator/prevpagelink.umd.js +44 -102
- package/paginator/prevpagelink.umd.min.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +253 -300
- package/paginator/rowsperpagedropdown.umd.js +253 -300
- package/paginator/rowsperpagedropdown.umd.min.js +1 -1
- package/panel/panel.common.js +129 -164
- package/panel/panel.umd.js +129 -164
- package/panel/panel.umd.min.js +1 -1
- package/panelmenu/panelmenu.common.js +235 -129
- package/panelmenu/panelmenu.umd.js +235 -129
- package/panelmenu/panelmenu.umd.min.js +1 -1
- package/panelmenu/panelmenusub.common.js +110 -55
- package/panelmenu/panelmenusub.umd.js +110 -55
- package/panelmenu/panelmenusub.umd.min.js +1 -1
- package/password/Password.vue +64 -14
- package/password/password.common.js +243 -239
- package/password/password.umd.js +243 -239
- package/password/password.umd.min.js +1 -1
- package/picklist/picklist.common.js +332 -323
- package/picklist/picklist.umd.js +332 -323
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/progressbar.common.js +83 -76
- package/progressbar/progressbar.umd.js +83 -76
- package/progressbar/progressbar.umd.min.js +1 -1
- package/progressspinner/progressspinner.common.js +545 -45
- package/progressspinner/progressspinner.umd.js +545 -45
- package/progressspinner/progressspinner.umd.min.js +1 -1
- package/radiobutton/radiobutton.common.js +68 -83
- package/radiobutton/radiobutton.umd.js +68 -83
- package/radiobutton/radiobutton.umd.min.js +1 -1
- package/rating/rating.common.js +92 -68
- package/rating/rating.umd.js +92 -68
- package/rating/rating.umd.min.js +1 -1
- package/ripple/Ripple.js +0 -18
- package/ripple/ripple.common.js +13 -77
- package/ripple/ripple.umd.js +13 -77
- package/row/row.common.js +20 -25
- package/row/row.umd.js +20 -25
- package/row/row.umd.min.js +1 -1
- package/scrollpanel/scrollpanel.common.js +103 -154
- package/scrollpanel/scrollpanel.umd.js +103 -154
- package/scrollpanel/scrollpanel.umd.min.js +1 -1
- package/scrolltop/scrolltop.common.js +90 -132
- package/scrolltop/scrolltop.umd.js +90 -132
- package/scrolltop/scrolltop.umd.min.js +1 -1
- package/selectbutton/selectbutton.common.js +91 -171
- package/selectbutton/selectbutton.umd.js +91 -171
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/Sidebar.d.ts +1 -0
- package/sidebar/Sidebar.vue +3 -0
- package/sidebar/sidebar.common.js +115 -166
- package/sidebar/sidebar.umd.js +115 -166
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +57 -57
- package/skeleton/skeleton.umd.js +57 -57
- package/skeleton/skeleton.umd.min.js +1 -1
- package/slider/Slider.vue +1 -1
- package/slider/slider.common.js +175 -166
- package/slider/slider.umd.js +175 -166
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.common.js +186 -204
- package/speeddial/speeddial.umd.js +186 -204
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +327 -279
- package/splitbutton/splitbutton.umd.js +327 -279
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/splitter/splitter.common.js +70 -143
- package/splitter/splitter.umd.js +70 -143
- package/splitter/splitter.umd.min.js +1 -1
- package/splitterpanel/splitterpanel.common.js +13 -15
- package/splitterpanel/splitterpanel.umd.js +13 -15
- package/steps/steps.common.js +112 -77
- package/steps/steps.umd.js +112 -77
- package/steps/steps.umd.min.js +1 -1
- package/styleclass/StyleClass.js +0 -43
- package/styleclass/styleclass.common.js +13 -99
- package/styleclass/styleclass.umd.js +13 -99
- package/tabmenu/tabmenu.common.js +139 -165
- package/tabmenu/tabmenu.umd.js +139 -165
- package/tabmenu/tabmenu.umd.min.js +1 -1
- package/tabpanel/tabpanel.common.js +31 -26
- package/tabpanel/tabpanel.umd.js +31 -26
- package/tabpanel/tabpanel.umd.min.js +1 -1
- package/tabview/tabview.common.js +178 -220
- package/tabview/tabview.umd.js +178 -220
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/tag.common.js +59 -59
- package/tag/tag.umd.js +59 -59
- package/tag/tag.umd.min.js +1 -1
- package/terminal/terminal.common.js +96 -68
- package/terminal/terminal.umd.js +96 -68
- package/terminal/terminal.umd.min.js +1 -1
- package/terminalservice/TerminalService.js +0 -3
- package/textarea/Textarea.vue +24 -1
- package/textarea/textarea.common.js +2083 -91
- package/textarea/textarea.umd.js +2083 -91
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/demo.html +3 -4
- package/tieredmenu/tieredmenu.common.js +214 -219
- package/tieredmenu/tieredmenu.umd.js +214 -219
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +142 -145
- package/tieredmenu/tieredmenusub.umd.js +142 -145
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +101 -134
- package/timeline/timeline.umd.js +101 -134
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/toast.common.js +145 -182
- package/toast/toast.umd.js +145 -182
- package/toast/toast.umd.min.js +1 -1
- package/toast/toastmessage.common.js +70 -115
- package/toast/toastmessage.umd.js +70 -115
- package/toast/toastmessage.umd.min.js +1 -1
- package/toastservice/ToastEventBus.js +0 -3
- package/toastservice/ToastService.js +0 -3
- package/togglebutton/togglebutton.common.js +54 -103
- package/togglebutton/togglebutton.umd.js +54 -103
- package/togglebutton/togglebutton.umd.min.js +1 -1
- package/toolbar/toolbar.common.js +46 -47
- package/toolbar/toolbar.umd.js +46 -47
- package/toolbar/toolbar.umd.min.js +1 -1
- package/tooltip/Tooltip.js +4 -84
- package/tooltip/tooltip.common.js +17 -133
- package/tooltip/tooltip.umd.js +17 -133
- package/tree/tree.common.js +227 -316
- package/tree/tree.umd.js +227 -316
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +108 -158
- package/tree/treenode.umd.js +108 -158
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/footercell.common.js +49 -141
- package/treetable/footercell.umd.js +49 -141
- package/treetable/footercell.umd.min.js +1 -1
- package/treetable/headercell.common.js +68 -153
- package/treetable/headercell.umd.js +68 -153
- package/treetable/headercell.umd.min.js +1 -1
- package/treetable/treetable.common.js +1086 -1044
- package/treetable/treetable.umd.js +1086 -1044
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablecolumnslot.common.js +13 -15
- package/treetable/treetablecolumnslot.umd.js +13 -15
- package/treetable/treetablerow.common.js +113 -194
- package/treetable/treetablerow.umd.js +113 -194
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +115 -214
- package/treetable/treetablerowloader.umd.js +115 -214
- package/treetable/treetablerowloader.umd.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.common.js +59 -38
- package/tristatecheckbox/tristatecheckbox.umd.js +59 -38
- package/tristatecheckbox/tristatecheckbox.umd.min.js +1 -1
- package/utils/ConnectedOverlayScrollHandler.js +0 -12
- package/utils/DomHandler.js +13 -61
- package/utils/EventBus.js +0 -3
- package/utils/ObjectUtils.js +9 -51
- package/utils/UniqueComponentId.js +0 -1
- package/utils/Utils.js +0 -6
- package/utils/connectedoverlayscrollhandler.common.js +13 -70
- package/utils/connectedoverlayscrollhandler.umd.js +13 -70
- package/utils/domhandler.common.js +13 -63
- package/utils/domhandler.umd.js +13 -63
- package/utils/eventbus.common.js +0 -2
- package/utils/eventbus.umd.js +0 -2
- package/utils/objectutils.common.js +9 -52
- package/utils/objectutils.umd.js +9 -52
- package/utils/utils.common.js +22 -119
- package/utils/utils.umd.js +22 -119
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +3 -1
- package/web-types.json +28 -1
package/checkbox/checkbox.umd.js
CHANGED
|
@@ -4216,10 +4216,54 @@ if (typeof window !== 'undefined') {
|
|
|
4216
4216
|
// Indicate to webpack that this file can be concatenated
|
|
4217
4217
|
/* harmony default export */ var setPublicPath = (null);
|
|
4218
4218
|
|
|
4219
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4220
|
-
var render = function () {
|
|
4221
|
-
var
|
|
4222
|
-
|
|
4219
|
+
// 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/checkbox/Checkbox.vue?vue&type=template&id=54e45401&
|
|
4220
|
+
var render = function render() {
|
|
4221
|
+
var _vm = this,
|
|
4222
|
+
_c = _vm._self._c;
|
|
4223
|
+
return _c('div', {
|
|
4224
|
+
class: _vm.containerClass,
|
|
4225
|
+
on: {
|
|
4226
|
+
"click": function click($event) {
|
|
4227
|
+
return _vm.onClick($event);
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4230
|
+
}, [_c('div', {
|
|
4231
|
+
staticClass: "p-hidden-accessible"
|
|
4232
|
+
}, [_c('input', _vm._b({
|
|
4233
|
+
ref: "input",
|
|
4234
|
+
attrs: {
|
|
4235
|
+
"type": "checkbox"
|
|
4236
|
+
},
|
|
4237
|
+
domProps: {
|
|
4238
|
+
"checked": _vm.checked,
|
|
4239
|
+
"value": _vm.value
|
|
4240
|
+
},
|
|
4241
|
+
on: {
|
|
4242
|
+
"focus": function focus($event) {
|
|
4243
|
+
return _vm.onFocus($event);
|
|
4244
|
+
},
|
|
4245
|
+
"blur": function blur($event) {
|
|
4246
|
+
return _vm.onBlur($event);
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
}, 'input', _vm.$attrs, false))]), _c('div', {
|
|
4250
|
+
ref: "box",
|
|
4251
|
+
class: ['p-checkbox-box', {
|
|
4252
|
+
'p-highlight': _vm.checked,
|
|
4253
|
+
'p-disabled': _vm.$attrs.disabled,
|
|
4254
|
+
'p-focus': _vm.focused
|
|
4255
|
+
}],
|
|
4256
|
+
attrs: {
|
|
4257
|
+
"role": "checkbox",
|
|
4258
|
+
"aria-checked": _vm.checked
|
|
4259
|
+
}
|
|
4260
|
+
}, [_c('span', {
|
|
4261
|
+
class: ['p-checkbox-icon', {
|
|
4262
|
+
'pi pi-check': _vm.checked
|
|
4263
|
+
}]
|
|
4264
|
+
})])]);
|
|
4265
|
+
};
|
|
4266
|
+
var staticRenderFns = [];
|
|
4223
4267
|
|
|
4224
4268
|
// CONCATENATED MODULE: ./src/components/checkbox/Checkbox.vue?vue&type=template&id=54e45401&
|
|
4225
4269
|
|
|
@@ -4230,11 +4274,9 @@ var is_array_default = /*#__PURE__*/__webpack_require__.n(is_array);
|
|
|
4230
4274
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayLikeToArray.js
|
|
4231
4275
|
function _arrayLikeToArray(arr, len) {
|
|
4232
4276
|
if (len == null || len > arr.length) len = arr.length;
|
|
4233
|
-
|
|
4234
4277
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
4235
4278
|
arr2[i] = arr[i];
|
|
4236
4279
|
}
|
|
4237
|
-
|
|
4238
4280
|
return arr2;
|
|
4239
4281
|
}
|
|
4240
4282
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayWithoutHoles.js
|
|
@@ -4348,26 +4390,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4348
4390
|
|
|
4349
4391
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4350
4392
|
|
|
4351
|
-
|
|
4352
4393
|
function _defineProperties(target, props) {
|
|
4353
4394
|
for (var i = 0; i < props.length; i++) {
|
|
4354
4395
|
var descriptor = props[i];
|
|
4355
4396
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4356
4397
|
descriptor.configurable = true;
|
|
4357
4398
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4358
|
-
|
|
4359
4399
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4360
4400
|
}
|
|
4361
4401
|
}
|
|
4362
|
-
|
|
4363
4402
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4364
4403
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4365
4404
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4366
|
-
|
|
4367
4405
|
define_property_default()(Constructor, "prototype", {
|
|
4368
4406
|
writable: false
|
|
4369
4407
|
});
|
|
4370
|
-
|
|
4371
4408
|
return Constructor;
|
|
4372
4409
|
}
|
|
4373
4410
|
// CONCATENATED MODULE: ./src/components/utils/ObjectUtils.js
|
|
@@ -4387,18 +4424,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
4387
4424
|
|
|
4388
4425
|
|
|
4389
4426
|
|
|
4390
|
-
|
|
4391
4427
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = ObjectUtils_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; } } }; }
|
|
4392
|
-
|
|
4393
4428
|
function ObjectUtils_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return ObjectUtils_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 ObjectUtils_arrayLikeToArray(o, minLen); }
|
|
4394
|
-
|
|
4395
4429
|
function ObjectUtils_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; }
|
|
4396
|
-
|
|
4397
4430
|
var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
4398
4431
|
function ObjectUtils() {
|
|
4399
4432
|
_classCallCheck(this, ObjectUtils);
|
|
4400
4433
|
}
|
|
4401
|
-
|
|
4402
4434
|
_createClass(ObjectUtils, null, [{
|
|
4403
4435
|
key: "equals",
|
|
4404
4436
|
value: function equals(obj1, obj2, field) {
|
|
@@ -4408,50 +4440,41 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4408
4440
|
key: "deepEquals",
|
|
4409
4441
|
value: function deepEquals(a, b) {
|
|
4410
4442
|
if (a === b) return true;
|
|
4411
|
-
|
|
4412
4443
|
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
4413
4444
|
var arrA = Array.isArray(a),
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4445
|
+
arrB = Array.isArray(b),
|
|
4446
|
+
i,
|
|
4447
|
+
length,
|
|
4448
|
+
key;
|
|
4419
4449
|
if (arrA && arrB) {
|
|
4420
4450
|
length = a.length;
|
|
4421
4451
|
if (length != b.length) return false;
|
|
4422
|
-
|
|
4423
4452
|
for (i = length; i-- !== 0;) {
|
|
4424
4453
|
if (!this.deepEquals(a[i], b[i])) return false;
|
|
4425
4454
|
}
|
|
4426
|
-
|
|
4427
4455
|
return true;
|
|
4428
4456
|
}
|
|
4429
|
-
|
|
4430
4457
|
if (arrA != arrB) return false;
|
|
4431
4458
|
var dateA = a instanceof Date,
|
|
4432
|
-
|
|
4459
|
+
dateB = b instanceof Date;
|
|
4433
4460
|
if (dateA != dateB) return false;
|
|
4434
4461
|
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
4435
4462
|
var regexpA = a instanceof RegExp,
|
|
4436
|
-
|
|
4463
|
+
regexpB = b instanceof RegExp;
|
|
4437
4464
|
if (regexpA != regexpB) return false;
|
|
4438
4465
|
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
4439
4466
|
var keys = Object.keys(a);
|
|
4440
4467
|
length = keys.length;
|
|
4441
4468
|
if (length !== Object.keys(b).length) return false;
|
|
4442
|
-
|
|
4443
4469
|
for (i = length; i-- !== 0;) {
|
|
4444
4470
|
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
4445
4471
|
}
|
|
4446
|
-
|
|
4447
4472
|
for (i = length; i-- !== 0;) {
|
|
4448
4473
|
key = keys[i];
|
|
4449
4474
|
if (!this.deepEquals(a[key], b[key])) return false;
|
|
4450
4475
|
}
|
|
4451
|
-
|
|
4452
4476
|
return true;
|
|
4453
4477
|
}
|
|
4454
|
-
|
|
4455
4478
|
return a !== a && b !== b;
|
|
4456
4479
|
}
|
|
4457
4480
|
}, {
|
|
@@ -4465,15 +4488,12 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4465
4488
|
} else {
|
|
4466
4489
|
var fields = field.split('.');
|
|
4467
4490
|
var value = data;
|
|
4468
|
-
|
|
4469
4491
|
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
4470
4492
|
if (value == null) {
|
|
4471
4493
|
return null;
|
|
4472
4494
|
}
|
|
4473
|
-
|
|
4474
4495
|
value = value[fields[i]];
|
|
4475
4496
|
}
|
|
4476
|
-
|
|
4477
4497
|
return value;
|
|
4478
4498
|
}
|
|
4479
4499
|
} else {
|
|
@@ -4489,22 +4509,17 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4489
4509
|
key: "filter",
|
|
4490
4510
|
value: function filter(value, fields, filterValue) {
|
|
4491
4511
|
var filteredItems = [];
|
|
4492
|
-
|
|
4493
4512
|
if (value) {
|
|
4494
4513
|
var _iterator = _createForOfIteratorHelper(value),
|
|
4495
|
-
|
|
4496
|
-
|
|
4514
|
+
_step;
|
|
4497
4515
|
try {
|
|
4498
4516
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
4499
4517
|
var item = _step.value;
|
|
4500
|
-
|
|
4501
4518
|
var _iterator2 = _createForOfIteratorHelper(fields),
|
|
4502
|
-
|
|
4503
|
-
|
|
4519
|
+
_step2;
|
|
4504
4520
|
try {
|
|
4505
4521
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4506
4522
|
var field = _step2.value;
|
|
4507
|
-
|
|
4508
4523
|
if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
|
|
4509
4524
|
filteredItems.push(item);
|
|
4510
4525
|
break;
|
|
@@ -4522,23 +4537,19 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4522
4537
|
_iterator.f();
|
|
4523
4538
|
}
|
|
4524
4539
|
}
|
|
4525
|
-
|
|
4526
4540
|
return filteredItems;
|
|
4527
4541
|
}
|
|
4528
4542
|
}, {
|
|
4529
4543
|
key: "reorderArray",
|
|
4530
4544
|
value: function reorderArray(value, from, to) {
|
|
4531
4545
|
var target;
|
|
4532
|
-
|
|
4533
4546
|
if (value && from !== to) {
|
|
4534
4547
|
if (to >= value.length) {
|
|
4535
4548
|
target = to - value.length;
|
|
4536
|
-
|
|
4537
4549
|
while (target-- + 1) {
|
|
4538
4550
|
value.push(undefined);
|
|
4539
4551
|
}
|
|
4540
4552
|
}
|
|
4541
|
-
|
|
4542
4553
|
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
4543
4554
|
}
|
|
4544
4555
|
}
|
|
@@ -4546,7 +4557,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4546
4557
|
key: "findIndexInList",
|
|
4547
4558
|
value: function findIndexInList(value, list) {
|
|
4548
4559
|
var index = -1;
|
|
4549
|
-
|
|
4550
4560
|
if (list) {
|
|
4551
4561
|
for (var i = 0; i < list.length; i++) {
|
|
4552
4562
|
if (list[i] === value) {
|
|
@@ -4555,7 +4565,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4555
4565
|
}
|
|
4556
4566
|
}
|
|
4557
4567
|
}
|
|
4558
|
-
|
|
4559
4568
|
return index;
|
|
4560
4569
|
}
|
|
4561
4570
|
}, {
|
|
@@ -4563,8 +4572,7 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4563
4572
|
value: function contains(value, list) {
|
|
4564
4573
|
if (value != null && list && list.length) {
|
|
4565
4574
|
var _iterator3 = _createForOfIteratorHelper(list),
|
|
4566
|
-
|
|
4567
|
-
|
|
4575
|
+
_step3;
|
|
4568
4576
|
try {
|
|
4569
4577
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4570
4578
|
var val = _step3.value;
|
|
@@ -4576,7 +4584,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4576
4584
|
_iterator3.f();
|
|
4577
4585
|
}
|
|
4578
4586
|
}
|
|
4579
|
-
|
|
4580
4587
|
return false;
|
|
4581
4588
|
}
|
|
4582
4589
|
}, {
|
|
@@ -4584,17 +4591,14 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4584
4591
|
value: function insertIntoOrderedArray(item, index, arr, sourceArr) {
|
|
4585
4592
|
if (arr.length > 0) {
|
|
4586
4593
|
var injected = false;
|
|
4587
|
-
|
|
4588
4594
|
for (var i = 0; i < arr.length; i++) {
|
|
4589
4595
|
var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
4590
|
-
|
|
4591
4596
|
if (currentItemIndex > index) {
|
|
4592
4597
|
arr.splice(i, 0, item);
|
|
4593
4598
|
injected = true;
|
|
4594
4599
|
break;
|
|
4595
4600
|
}
|
|
4596
4601
|
}
|
|
4597
|
-
|
|
4598
4602
|
if (!injected) {
|
|
4599
4603
|
arr.push(item);
|
|
4600
4604
|
}
|
|
@@ -4608,41 +4612,25 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4608
4612
|
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
4609
4613
|
str = str.replace(/[\xC0-\xC5]/g, "A").replace(/[\xC6]/g, "AE").replace(/[\xC7]/g, "C").replace(/[\xC8-\xCB]/g, "E").replace(/[\xCC-\xCF]/g, "I").replace(/[\xD0]/g, "D").replace(/[\xD1]/g, "N").replace(/[\xD2-\xD6\xD8]/g, "O").replace(/[\xD9-\xDC]/g, "U").replace(/[\xDD]/g, "Y").replace(/[\xDE]/g, "P").replace(/[\xE0-\xE5]/g, "a").replace(/[\xE6]/g, "ae").replace(/[\xE7]/g, "c").replace(/[\xE8-\xEB]/g, "e").replace(/[\xEC-\xEF]/g, "i").replace(/[\xF1]/g, "n").replace(/[\xF2-\xF6\xF8]/g, "o").replace(/[\xF9-\xFC]/g, "u").replace(/[\xFE]/g, "p").replace(/[\xFD\xFF]/g, "y");
|
|
4610
4614
|
}
|
|
4611
|
-
|
|
4612
4615
|
return str;
|
|
4613
4616
|
}
|
|
4614
4617
|
}, {
|
|
4615
4618
|
key: "getVNodeProp",
|
|
4616
4619
|
value: function getVNodeProp(vnode, prop) {
|
|
4617
4620
|
var props = vnode._props;
|
|
4618
|
-
|
|
4619
4621
|
if (props) {
|
|
4620
4622
|
var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
4621
4623
|
var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
4622
4624
|
return props[propName];
|
|
4623
4625
|
}
|
|
4624
|
-
|
|
4625
4626
|
return null;
|
|
4626
4627
|
}
|
|
4627
4628
|
}]);
|
|
4628
|
-
|
|
4629
4629
|
return ObjectUtils;
|
|
4630
4630
|
}();
|
|
4631
4631
|
|
|
4632
|
-
|
|
4633
4632
|
// 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/checkbox/Checkbox.vue?vue&type=script&lang=js&
|
|
4634
4633
|
|
|
4635
|
-
//
|
|
4636
|
-
//
|
|
4637
|
-
//
|
|
4638
|
-
//
|
|
4639
|
-
//
|
|
4640
|
-
//
|
|
4641
|
-
//
|
|
4642
|
-
//
|
|
4643
|
-
//
|
|
4644
|
-
//
|
|
4645
|
-
//
|
|
4646
4634
|
|
|
4647
4635
|
/* harmony default export */ var Checkboxvue_type_script_lang_js_ = ({
|
|
4648
4636
|
inheritAttrs: false,
|
|
@@ -4671,10 +4659,8 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4671
4659
|
methods: {
|
|
4672
4660
|
onClick: function onClick(event) {
|
|
4673
4661
|
var _this = this;
|
|
4674
|
-
|
|
4675
4662
|
if (!this.$attrs.disabled) {
|
|
4676
4663
|
var newModelValue;
|
|
4677
|
-
|
|
4678
4664
|
if (this.binary) {
|
|
4679
4665
|
newModelValue = this.checked ? this.falseValue : this.trueValue;
|
|
4680
4666
|
} else {
|
|
@@ -4682,7 +4668,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4682
4668
|
return !ObjectUtils_ObjectUtils.equals(val, _this.value);
|
|
4683
4669
|
});else newModelValue = this.modelValue ? [].concat(_toConsumableArray(this.modelValue), [this.value]) : [this.value];
|
|
4684
4670
|
}
|
|
4685
|
-
|
|
4686
4671
|
this.$emit('click', event);
|
|
4687
4672
|
this.$emit('input', newModelValue);
|
|
4688
4673
|
this.$emit('change', event);
|
|
@@ -4720,20 +4705,19 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4720
4705
|
// This module is a runtime utility for cleaner component module output and will
|
|
4721
4706
|
// be included in the final webpack user bundle.
|
|
4722
4707
|
|
|
4723
|
-
function normalizeComponent
|
|
4708
|
+
function normalizeComponent(
|
|
4724
4709
|
scriptExports,
|
|
4725
4710
|
render,
|
|
4726
4711
|
staticRenderFns,
|
|
4727
4712
|
functionalTemplate,
|
|
4728
4713
|
injectStyles,
|
|
4729
4714
|
scopeId,
|
|
4730
|
-
moduleIdentifier
|
|
4715
|
+
moduleIdentifier /* server only */,
|
|
4731
4716
|
shadowMode /* vue-cli only */
|
|
4732
4717
|
) {
|
|
4733
4718
|
// Vue.extend constructor export interop
|
|
4734
|
-
var options =
|
|
4735
|
-
? scriptExports.options
|
|
4736
|
-
: scriptExports
|
|
4719
|
+
var options =
|
|
4720
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
4737
4721
|
|
|
4738
4722
|
// render functions
|
|
4739
4723
|
if (render) {
|
|
@@ -4753,7 +4737,8 @@ function normalizeComponent (
|
|
|
4753
4737
|
}
|
|
4754
4738
|
|
|
4755
4739
|
var hook
|
|
4756
|
-
if (moduleIdentifier) {
|
|
4740
|
+
if (moduleIdentifier) {
|
|
4741
|
+
// server build
|
|
4757
4742
|
hook = function (context) {
|
|
4758
4743
|
// 2.3 injection
|
|
4759
4744
|
context =
|
|
@@ -4779,11 +4764,11 @@ function normalizeComponent (
|
|
|
4779
4764
|
} else if (injectStyles) {
|
|
4780
4765
|
hook = shadowMode
|
|
4781
4766
|
? function () {
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4767
|
+
injectStyles.call(
|
|
4768
|
+
this,
|
|
4769
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
4770
|
+
)
|
|
4771
|
+
}
|
|
4787
4772
|
: injectStyles
|
|
4788
4773
|
}
|
|
4789
4774
|
|
|
@@ -4794,16 +4779,14 @@ function normalizeComponent (
|
|
|
4794
4779
|
options._injectStyles = hook
|
|
4795
4780
|
// register for functional component in vue file
|
|
4796
4781
|
var originalRender = options.render
|
|
4797
|
-
options.render = function renderWithStyleInjection
|
|
4782
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
4798
4783
|
hook.call(context)
|
|
4799
4784
|
return originalRender(h, context)
|
|
4800
4785
|
}
|
|
4801
4786
|
} else {
|
|
4802
4787
|
// inject component registration as beforeCreate hook
|
|
4803
4788
|
var existing = options.beforeCreate
|
|
4804
|
-
options.beforeCreate = existing
|
|
4805
|
-
? [].concat(existing, hook)
|
|
4806
|
-
: [hook]
|
|
4789
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
4807
4790
|
}
|
|
4808
4791
|
}
|
|
4809
4792
|
|