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/tree/treenode.common.js
CHANGED
|
@@ -2978,10 +2978,83 @@ if (typeof window !== 'undefined') {
|
|
|
2978
2978
|
// Indicate to webpack that this file can be concatenated
|
|
2979
2979
|
/* harmony default export */ var setPublicPath = (null);
|
|
2980
2980
|
|
|
2981
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2982
|
-
var render = function () {
|
|
2983
|
-
var
|
|
2984
|
-
|
|
2981
|
+
// 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/tree/TreeNode.vue?vue&type=template&id=f058243a&
|
|
2982
|
+
var render = function render() {
|
|
2983
|
+
var _vm = this,
|
|
2984
|
+
_c = _vm._self._c;
|
|
2985
|
+
return _c('li', {
|
|
2986
|
+
class: _vm.containerClass
|
|
2987
|
+
}, [_c('div', {
|
|
2988
|
+
class: _vm.contentClass,
|
|
2989
|
+
style: _vm.node.style,
|
|
2990
|
+
attrs: {
|
|
2991
|
+
"tabindex": "0",
|
|
2992
|
+
"role": "treeitem",
|
|
2993
|
+
"aria-expanded": _vm.expanded
|
|
2994
|
+
},
|
|
2995
|
+
on: {
|
|
2996
|
+
"click": _vm.onClick,
|
|
2997
|
+
"keydown": _vm.onKeyDown,
|
|
2998
|
+
"touchend": _vm.onTouchEnd
|
|
2999
|
+
}
|
|
3000
|
+
}, [_c('button', {
|
|
3001
|
+
directives: [{
|
|
3002
|
+
name: "ripple",
|
|
3003
|
+
rawName: "v-ripple"
|
|
3004
|
+
}],
|
|
3005
|
+
staticClass: "p-tree-toggler p-link",
|
|
3006
|
+
attrs: {
|
|
3007
|
+
"type": "button",
|
|
3008
|
+
"tabindex": "-1"
|
|
3009
|
+
},
|
|
3010
|
+
on: {
|
|
3011
|
+
"click": _vm.toggle
|
|
3012
|
+
}
|
|
3013
|
+
}, [_c('span', {
|
|
3014
|
+
class: _vm.toggleIcon
|
|
3015
|
+
})]), _vm.checkboxMode ? _c('div', {
|
|
3016
|
+
staticClass: "p-checkbox p-component"
|
|
3017
|
+
}, [_c('div', {
|
|
3018
|
+
class: _vm.checkboxClass,
|
|
3019
|
+
attrs: {
|
|
3020
|
+
"role": "checkbox",
|
|
3021
|
+
"aria-checked": _vm.checked
|
|
3022
|
+
}
|
|
3023
|
+
}, [_c('span', {
|
|
3024
|
+
class: _vm.checkboxIcon
|
|
3025
|
+
})])]) : _vm._e(), _c('span', {
|
|
3026
|
+
class: _vm.icon
|
|
3027
|
+
}), _c('span', {
|
|
3028
|
+
staticClass: "p-treenode-label"
|
|
3029
|
+
}, [_c('TreeNodeTemplate', {
|
|
3030
|
+
attrs: {
|
|
3031
|
+
"node": _vm.node,
|
|
3032
|
+
"template": _vm.templates[_vm.node.type] || _vm.templates['default']
|
|
3033
|
+
}
|
|
3034
|
+
})], 1)]), _vm.hasChildren && _vm.expanded ? _c('ul', {
|
|
3035
|
+
staticClass: "p-treenode-children",
|
|
3036
|
+
attrs: {
|
|
3037
|
+
"role": "group"
|
|
3038
|
+
}
|
|
3039
|
+
}, _vm._l(_vm.node.children, function (childNode) {
|
|
3040
|
+
return _c('sub-treenode', {
|
|
3041
|
+
key: childNode.key,
|
|
3042
|
+
attrs: {
|
|
3043
|
+
"node": childNode,
|
|
3044
|
+
"templates": _vm.templates,
|
|
3045
|
+
"expandedKeys": _vm.expandedKeys,
|
|
3046
|
+
"selectionMode": _vm.selectionMode,
|
|
3047
|
+
"selectionKeys": _vm.selectionKeys
|
|
3048
|
+
},
|
|
3049
|
+
on: {
|
|
3050
|
+
"node-toggle": _vm.onChildNodeToggle,
|
|
3051
|
+
"node-click": _vm.onChildNodeClick,
|
|
3052
|
+
"checkbox-change": _vm.propagateUp
|
|
3053
|
+
}
|
|
3054
|
+
});
|
|
3055
|
+
}), 1) : _vm._e()]);
|
|
3056
|
+
};
|
|
3057
|
+
var staticRenderFns = [];
|
|
2985
3058
|
|
|
2986
3059
|
// CONCATENATED MODULE: ./src/components/tree/TreeNode.vue?vue&type=template&id=f058243a&
|
|
2987
3060
|
|
|
@@ -3029,7 +3102,6 @@ function _defineProperty(obj, key, value) {
|
|
|
3029
3102
|
} else {
|
|
3030
3103
|
obj[key] = value;
|
|
3031
3104
|
}
|
|
3032
|
-
|
|
3033
3105
|
return obj;
|
|
3034
3106
|
}
|
|
3035
3107
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find.js
|
|
@@ -3052,26 +3124,21 @@ function _classCallCheck(instance, Constructor) {
|
|
|
3052
3124
|
}
|
|
3053
3125
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
3054
3126
|
|
|
3055
|
-
|
|
3056
3127
|
function _defineProperties(target, props) {
|
|
3057
3128
|
for (var i = 0; i < props.length; i++) {
|
|
3058
3129
|
var descriptor = props[i];
|
|
3059
3130
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
3060
3131
|
descriptor.configurable = true;
|
|
3061
3132
|
if ("value" in descriptor) descriptor.writable = true;
|
|
3062
|
-
|
|
3063
3133
|
define_property_default()(target, descriptor.key, descriptor);
|
|
3064
3134
|
}
|
|
3065
3135
|
}
|
|
3066
|
-
|
|
3067
3136
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
3068
3137
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3069
3138
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3070
|
-
|
|
3071
3139
|
define_property_default()(Constructor, "prototype", {
|
|
3072
3140
|
writable: false
|
|
3073
3141
|
});
|
|
3074
|
-
|
|
3075
3142
|
return Constructor;
|
|
3076
3143
|
}
|
|
3077
3144
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -3087,18 +3154,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
3087
3154
|
|
|
3088
3155
|
|
|
3089
3156
|
|
|
3090
|
-
|
|
3091
3157
|
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; } } }; }
|
|
3092
|
-
|
|
3093
3158
|
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); }
|
|
3094
|
-
|
|
3095
3159
|
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; }
|
|
3096
|
-
|
|
3097
3160
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
3098
3161
|
function DomHandler() {
|
|
3099
3162
|
_classCallCheck(this, DomHandler);
|
|
3100
3163
|
}
|
|
3101
|
-
|
|
3102
3164
|
_createClass(DomHandler, null, [{
|
|
3103
3165
|
key: "innerWidth",
|
|
3104
3166
|
value: function innerWidth(el) {
|
|
@@ -3132,12 +3194,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3132
3194
|
value: function getOuterWidth(el, margin) {
|
|
3133
3195
|
if (el) {
|
|
3134
3196
|
var width = el.offsetWidth;
|
|
3135
|
-
|
|
3136
3197
|
if (margin) {
|
|
3137
3198
|
var style = getComputedStyle(el);
|
|
3138
3199
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
3139
3200
|
}
|
|
3140
|
-
|
|
3141
3201
|
return width;
|
|
3142
3202
|
} else {
|
|
3143
3203
|
return 0;
|
|
@@ -3148,12 +3208,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3148
3208
|
value: function getOuterHeight(el, margin) {
|
|
3149
3209
|
if (el) {
|
|
3150
3210
|
var height = el.offsetHeight;
|
|
3151
|
-
|
|
3152
3211
|
if (margin) {
|
|
3153
3212
|
var style = getComputedStyle(el);
|
|
3154
3213
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3155
3214
|
}
|
|
3156
|
-
|
|
3157
3215
|
return height;
|
|
3158
3216
|
} else {
|
|
3159
3217
|
return 0;
|
|
@@ -3164,12 +3222,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3164
3222
|
value: function getClientHeight(el, margin) {
|
|
3165
3223
|
if (el) {
|
|
3166
3224
|
var height = el.clientHeight;
|
|
3167
|
-
|
|
3168
3225
|
if (margin) {
|
|
3169
3226
|
var style = getComputedStyle(el);
|
|
3170
3227
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3171
3228
|
}
|
|
3172
|
-
|
|
3173
3229
|
return height;
|
|
3174
3230
|
} else {
|
|
3175
3231
|
return 0;
|
|
@@ -3179,11 +3235,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3179
3235
|
key: "getViewport",
|
|
3180
3236
|
value: function getViewport() {
|
|
3181
3237
|
var win = window,
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3238
|
+
d = document,
|
|
3239
|
+
e = d.documentElement,
|
|
3240
|
+
g = d.getElementsByTagName('body')[0],
|
|
3241
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
3242
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
3187
3243
|
return {
|
|
3188
3244
|
width: w,
|
|
3189
3245
|
height: h
|
|
@@ -3214,12 +3270,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3214
3270
|
value: function index(element) {
|
|
3215
3271
|
var children = element.parentNode.childNodes;
|
|
3216
3272
|
var num = 0;
|
|
3217
|
-
|
|
3218
3273
|
for (var i = 0; i < children.length; i++) {
|
|
3219
3274
|
if (children[i] === element) return num;
|
|
3220
3275
|
if (children[i].nodeType === 1) num++;
|
|
3221
3276
|
}
|
|
3222
|
-
|
|
3223
3277
|
return -1;
|
|
3224
3278
|
}
|
|
3225
3279
|
}, {
|
|
@@ -3227,13 +3281,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3227
3281
|
value: function addMultipleClasses(element, className) {
|
|
3228
3282
|
if (element.classList) {
|
|
3229
3283
|
var styles = className.split(' ');
|
|
3230
|
-
|
|
3231
3284
|
for (var i = 0; i < styles.length; i++) {
|
|
3232
3285
|
element.classList.add(styles[i]);
|
|
3233
3286
|
}
|
|
3234
3287
|
} else {
|
|
3235
3288
|
var _styles = className.split(' ');
|
|
3236
|
-
|
|
3237
3289
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
3238
3290
|
element.className += ' ' + _styles[_i];
|
|
3239
3291
|
}
|
|
@@ -3255,7 +3307,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3255
3307
|
if (element) {
|
|
3256
3308
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
3257
3309
|
}
|
|
3258
|
-
|
|
3259
3310
|
return false;
|
|
3260
3311
|
}
|
|
3261
3312
|
}, {
|
|
@@ -3300,11 +3351,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3300
3351
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
3301
3352
|
var viewport = this.getViewport();
|
|
3302
3353
|
var top, left;
|
|
3303
|
-
|
|
3304
3354
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
3305
3355
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
3306
3356
|
element.style.transformOrigin = 'bottom';
|
|
3307
|
-
|
|
3308
3357
|
if (top < 0) {
|
|
3309
3358
|
top = windowScrollTop;
|
|
3310
3359
|
}
|
|
@@ -3312,7 +3361,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3312
3361
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
3313
3362
|
element.style.transformOrigin = 'top';
|
|
3314
3363
|
}
|
|
3315
|
-
|
|
3316
3364
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
3317
3365
|
element.style.top = top + 'px';
|
|
3318
3366
|
element.style.left = left + 'px';
|
|
@@ -3328,11 +3376,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3328
3376
|
var targetOffset = target.getBoundingClientRect();
|
|
3329
3377
|
var viewport = this.getViewport();
|
|
3330
3378
|
var top, left;
|
|
3331
|
-
|
|
3332
3379
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
3333
3380
|
top = -1 * elementDimensions.height;
|
|
3334
3381
|
element.style.transformOrigin = 'bottom';
|
|
3335
|
-
|
|
3336
3382
|
if (targetOffset.top + top < 0) {
|
|
3337
3383
|
top = -1 * targetOffset.top;
|
|
3338
3384
|
}
|
|
@@ -3340,7 +3386,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3340
3386
|
top = targetHeight;
|
|
3341
3387
|
element.style.transformOrigin = 'top';
|
|
3342
3388
|
}
|
|
3343
|
-
|
|
3344
3389
|
if (elementDimensions.width > viewport.width) {
|
|
3345
3390
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
3346
3391
|
left = targetOffset.left * -1;
|
|
@@ -3351,7 +3396,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3351
3396
|
// element fits on screen (align with target)
|
|
3352
3397
|
left = 0;
|
|
3353
3398
|
}
|
|
3354
|
-
|
|
3355
3399
|
element.style.top = top + 'px';
|
|
3356
3400
|
element.style.left = left + 'px';
|
|
3357
3401
|
}
|
|
@@ -3365,35 +3409,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3365
3409
|
key: "getScrollableParents",
|
|
3366
3410
|
value: function getScrollableParents(element) {
|
|
3367
3411
|
var scrollableParents = [];
|
|
3368
|
-
|
|
3369
3412
|
if (element) {
|
|
3370
3413
|
var parents = this.getParents(element);
|
|
3371
3414
|
var overflowRegex = /(auto|scroll)/;
|
|
3372
|
-
|
|
3373
3415
|
var overflowCheck = function overflowCheck(node) {
|
|
3374
3416
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
3375
3417
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
3376
3418
|
};
|
|
3377
|
-
|
|
3378
3419
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
3379
|
-
|
|
3380
|
-
|
|
3420
|
+
_step;
|
|
3381
3421
|
try {
|
|
3382
3422
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3383
3423
|
var parent = _step.value;
|
|
3384
3424
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
3385
|
-
|
|
3386
3425
|
if (scrollSelectors) {
|
|
3387
3426
|
var selectors = scrollSelectors.split(',');
|
|
3388
|
-
|
|
3389
3427
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
3390
|
-
|
|
3391
|
-
|
|
3428
|
+
_step2;
|
|
3392
3429
|
try {
|
|
3393
3430
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3394
3431
|
var selector = _step2.value;
|
|
3395
3432
|
var el = this.findSingle(parent, selector);
|
|
3396
|
-
|
|
3397
3433
|
if (el && overflowCheck(el)) {
|
|
3398
3434
|
scrollableParents.push(el);
|
|
3399
3435
|
}
|
|
@@ -3411,7 +3447,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3411
3447
|
_iterator.f();
|
|
3412
3448
|
}
|
|
3413
3449
|
}
|
|
3414
|
-
|
|
3415
3450
|
return scrollableParents;
|
|
3416
3451
|
}
|
|
3417
3452
|
}, {
|
|
@@ -3452,34 +3487,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3452
3487
|
element.style.opacity = 0;
|
|
3453
3488
|
var last = +new Date();
|
|
3454
3489
|
var opacity = 0;
|
|
3455
|
-
|
|
3456
3490
|
var tick = function tick() {
|
|
3457
3491
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
3458
3492
|
element.style.opacity = opacity;
|
|
3459
3493
|
last = +new Date();
|
|
3460
|
-
|
|
3461
3494
|
if (+opacity < 1) {
|
|
3462
3495
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
3463
3496
|
}
|
|
3464
3497
|
};
|
|
3465
|
-
|
|
3466
3498
|
tick();
|
|
3467
3499
|
}
|
|
3468
3500
|
}, {
|
|
3469
3501
|
key: "fadeOut",
|
|
3470
3502
|
value: function fadeOut(element, ms) {
|
|
3471
3503
|
var opacity = 1,
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3504
|
+
interval = 50,
|
|
3505
|
+
duration = ms,
|
|
3506
|
+
gap = interval / duration;
|
|
3475
3507
|
var fading = setInterval(function () {
|
|
3476
3508
|
opacity -= gap;
|
|
3477
|
-
|
|
3478
3509
|
if (opacity <= 0) {
|
|
3479
3510
|
opacity = 0;
|
|
3480
3511
|
clearInterval(fading);
|
|
3481
3512
|
}
|
|
3482
|
-
|
|
3483
3513
|
element.style.opacity = opacity;
|
|
3484
3514
|
}, interval);
|
|
3485
3515
|
}
|
|
@@ -3506,7 +3536,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3506
3536
|
var scroll = container.scrollTop;
|
|
3507
3537
|
var elementHeight = container.clientHeight;
|
|
3508
3538
|
var itemHeight = this.getOuterHeight(item);
|
|
3509
|
-
|
|
3510
3539
|
if (offset < 0) {
|
|
3511
3540
|
container.scrollTop = scroll + offset;
|
|
3512
3541
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -3525,7 +3554,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3525
3554
|
} else if (document['selection'] && document['selection'].empty) {
|
|
3526
3555
|
try {
|
|
3527
3556
|
document['selection'].empty();
|
|
3528
|
-
} catch (error) {
|
|
3557
|
+
} catch (error) {
|
|
3558
|
+
//ignore IE bug
|
|
3529
3559
|
}
|
|
3530
3560
|
}
|
|
3531
3561
|
}
|
|
@@ -3547,19 +3577,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3547
3577
|
if (!this.browser) {
|
|
3548
3578
|
var matched = this.resolveUserAgent();
|
|
3549
3579
|
this.browser = {};
|
|
3550
|
-
|
|
3551
3580
|
if (matched.browser) {
|
|
3552
3581
|
this.browser[matched.browser] = true;
|
|
3553
3582
|
this.browser['version'] = matched.version;
|
|
3554
3583
|
}
|
|
3555
|
-
|
|
3556
3584
|
if (this.browser['chrome']) {
|
|
3557
3585
|
this.browser['webkit'] = true;
|
|
3558
3586
|
} else if (this.browser['webkit']) {
|
|
3559
3587
|
this.browser['safari'] = true;
|
|
3560
3588
|
}
|
|
3561
3589
|
}
|
|
3562
|
-
|
|
3563
3590
|
return this.browser;
|
|
3564
3591
|
}
|
|
3565
3592
|
}, {
|
|
@@ -3587,10 +3614,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3587
3614
|
value: function getFocusableElements(element) {
|
|
3588
3615
|
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])");
|
|
3589
3616
|
var visibleFocusableElements = [];
|
|
3590
|
-
|
|
3591
3617
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
3592
|
-
|
|
3593
|
-
|
|
3618
|
+
_step3;
|
|
3594
3619
|
try {
|
|
3595
3620
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3596
3621
|
var focusableElement = _step3.value;
|
|
@@ -3601,7 +3626,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3601
3626
|
} finally {
|
|
3602
3627
|
_iterator3.f();
|
|
3603
3628
|
}
|
|
3604
|
-
|
|
3605
3629
|
return visibleFocusableElements;
|
|
3606
3630
|
}
|
|
3607
3631
|
}, {
|
|
@@ -3644,55 +3668,43 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3644
3668
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3645
3669
|
}
|
|
3646
3670
|
}]);
|
|
3647
|
-
|
|
3648
3671
|
return DomHandler;
|
|
3649
3672
|
}();
|
|
3650
3673
|
|
|
3651
|
-
|
|
3652
3674
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
3653
3675
|
|
|
3654
|
-
|
|
3655
3676
|
function bindEvents(el) {
|
|
3656
3677
|
el.addEventListener('mousedown', onMouseDown);
|
|
3657
3678
|
}
|
|
3658
|
-
|
|
3659
3679
|
function unbindEvents(el) {
|
|
3660
3680
|
el.removeEventListener('mousedown', onMouseDown);
|
|
3661
3681
|
}
|
|
3662
|
-
|
|
3663
3682
|
function create(el) {
|
|
3664
3683
|
var ink = document.createElement('span');
|
|
3665
3684
|
ink.className = 'p-ink';
|
|
3666
3685
|
el.appendChild(ink);
|
|
3667
3686
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
3668
3687
|
}
|
|
3669
|
-
|
|
3670
3688
|
function remove(el) {
|
|
3671
3689
|
var ink = getInk(el);
|
|
3672
|
-
|
|
3673
3690
|
if (ink) {
|
|
3674
3691
|
unbindEvents(el);
|
|
3675
3692
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
3676
3693
|
ink.remove();
|
|
3677
3694
|
}
|
|
3678
3695
|
}
|
|
3679
|
-
|
|
3680
3696
|
function onMouseDown(event) {
|
|
3681
3697
|
var target = event.currentTarget;
|
|
3682
3698
|
var ink = getInk(target);
|
|
3683
|
-
|
|
3684
3699
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
3685
3700
|
return;
|
|
3686
3701
|
}
|
|
3687
|
-
|
|
3688
3702
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
3689
|
-
|
|
3690
3703
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
3691
3704
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
3692
3705
|
ink.style.height = d + 'px';
|
|
3693
3706
|
ink.style.width = d + 'px';
|
|
3694
3707
|
}
|
|
3695
|
-
|
|
3696
3708
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
3697
3709
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
3698
3710
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -3700,21 +3712,17 @@ function onMouseDown(event) {
|
|
|
3700
3712
|
ink.style.left = x + 'px';
|
|
3701
3713
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
3702
3714
|
}
|
|
3703
|
-
|
|
3704
3715
|
function onAnimationEnd(event) {
|
|
3705
3716
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
3706
3717
|
}
|
|
3707
|
-
|
|
3708
3718
|
function getInk(el) {
|
|
3709
3719
|
for (var i = 0; i < el.children.length; i++) {
|
|
3710
3720
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
3711
3721
|
return el.children[i];
|
|
3712
3722
|
}
|
|
3713
3723
|
}
|
|
3714
|
-
|
|
3715
3724
|
return null;
|
|
3716
3725
|
}
|
|
3717
|
-
|
|
3718
3726
|
var Ripple = {
|
|
3719
3727
|
inserted: function inserted(el, binding, vnode) {
|
|
3720
3728
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -3738,44 +3746,12 @@ var Ripple = {
|
|
|
3738
3746
|
|
|
3739
3747
|
|
|
3740
3748
|
|
|
3741
|
-
|
|
3742
3749
|
function TreeNodevue_type_script_lang_js_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = TreeNodevue_type_script_lang_js_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; } } }; }
|
|
3743
|
-
|
|
3744
3750
|
function TreeNodevue_type_script_lang_js_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return TreeNodevue_type_script_lang_js_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 TreeNodevue_type_script_lang_js_arrayLikeToArray(o, minLen); }
|
|
3745
|
-
|
|
3746
3751
|
function TreeNodevue_type_script_lang_js_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; }
|
|
3747
|
-
|
|
3748
3752
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3749
|
-
|
|
3750
3753
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3751
3754
|
|
|
3752
|
-
//
|
|
3753
|
-
//
|
|
3754
|
-
//
|
|
3755
|
-
//
|
|
3756
|
-
//
|
|
3757
|
-
//
|
|
3758
|
-
//
|
|
3759
|
-
//
|
|
3760
|
-
//
|
|
3761
|
-
//
|
|
3762
|
-
//
|
|
3763
|
-
//
|
|
3764
|
-
//
|
|
3765
|
-
//
|
|
3766
|
-
//
|
|
3767
|
-
//
|
|
3768
|
-
//
|
|
3769
|
-
//
|
|
3770
|
-
//
|
|
3771
|
-
//
|
|
3772
|
-
//
|
|
3773
|
-
//
|
|
3774
|
-
//
|
|
3775
|
-
//
|
|
3776
|
-
//
|
|
3777
|
-
//
|
|
3778
|
-
|
|
3779
3755
|
|
|
3780
3756
|
var TreeNodeTemplate = {
|
|
3781
3757
|
functional: true,
|
|
@@ -3793,7 +3769,6 @@ var TreeNodeTemplate = {
|
|
|
3793
3769
|
var label = function label(node) {
|
|
3794
3770
|
return typeof node.label === 'function' ? node.label() : node.label;
|
|
3795
3771
|
};
|
|
3796
|
-
|
|
3797
3772
|
var content = context.props.template ? context.props.template({
|
|
3798
3773
|
'node': context.props.node
|
|
3799
3774
|
}) : label(context.props.node);
|
|
@@ -3836,7 +3811,6 @@ var TreeNodeTemplate = {
|
|
|
3836
3811
|
if (DomHandler_DomHandler.hasClass(event.target, 'p-tree-toggler') || DomHandler_DomHandler.hasClass(event.target.parentElement, 'p-tree-toggler')) {
|
|
3837
3812
|
return;
|
|
3838
3813
|
}
|
|
3839
|
-
|
|
3840
3814
|
if (this.isCheckboxSelectionMode()) {
|
|
3841
3815
|
this.toggleCheckbox();
|
|
3842
3816
|
} else {
|
|
@@ -3846,7 +3820,6 @@ var TreeNodeTemplate = {
|
|
|
3846
3820
|
node: this.node
|
|
3847
3821
|
});
|
|
3848
3822
|
}
|
|
3849
|
-
|
|
3850
3823
|
this.nodeTouched = false;
|
|
3851
3824
|
},
|
|
3852
3825
|
onChildNodeClick: function onChildNodeClick(event) {
|
|
@@ -3857,59 +3830,51 @@ var TreeNodeTemplate = {
|
|
|
3857
3830
|
},
|
|
3858
3831
|
onKeyDown: function onKeyDown(event) {
|
|
3859
3832
|
var nodeElement = event.target.parentElement;
|
|
3860
|
-
|
|
3861
3833
|
switch (event.which) {
|
|
3862
3834
|
//down arrow
|
|
3863
3835
|
case 40:
|
|
3864
3836
|
var listElement = nodeElement.children[1];
|
|
3865
|
-
|
|
3866
3837
|
if (listElement) {
|
|
3867
3838
|
this.focusNode(listElement.children[0]);
|
|
3868
3839
|
} else {
|
|
3869
3840
|
var nextNodeElement = nodeElement.nextElementSibling;
|
|
3870
|
-
|
|
3871
3841
|
if (nextNodeElement) {
|
|
3872
3842
|
this.focusNode(nextNodeElement);
|
|
3873
3843
|
} else {
|
|
3874
3844
|
var nextSiblingAncestor = this.findNextSiblingOfAncestor(nodeElement);
|
|
3875
|
-
|
|
3876
3845
|
if (nextSiblingAncestor) {
|
|
3877
3846
|
this.focusNode(nextSiblingAncestor);
|
|
3878
3847
|
}
|
|
3879
3848
|
}
|
|
3880
3849
|
}
|
|
3881
|
-
|
|
3882
3850
|
event.preventDefault();
|
|
3883
3851
|
break;
|
|
3884
|
-
//up arrow
|
|
3885
3852
|
|
|
3853
|
+
//up arrow
|
|
3886
3854
|
case 38:
|
|
3887
3855
|
if (nodeElement.previousElementSibling) {
|
|
3888
3856
|
this.focusNode(this.findLastVisibleDescendant(nodeElement.previousElementSibling));
|
|
3889
3857
|
} else {
|
|
3890
3858
|
var parentNodeElement = this.getParentNodeElement(nodeElement);
|
|
3891
|
-
|
|
3892
3859
|
if (parentNodeElement) {
|
|
3893
3860
|
this.focusNode(parentNodeElement);
|
|
3894
3861
|
}
|
|
3895
3862
|
}
|
|
3896
|
-
|
|
3897
3863
|
event.preventDefault();
|
|
3898
3864
|
break;
|
|
3899
|
-
//right-left arrows
|
|
3900
3865
|
|
|
3866
|
+
//right-left arrows
|
|
3901
3867
|
case 37:
|
|
3902
3868
|
case 39:
|
|
3903
3869
|
this.$emit('node-toggle', this.node);
|
|
3904
3870
|
event.preventDefault();
|
|
3905
3871
|
break;
|
|
3906
|
-
//enter
|
|
3907
3872
|
|
|
3873
|
+
//enter
|
|
3908
3874
|
case 13:
|
|
3909
3875
|
this.onClick(event);
|
|
3910
3876
|
event.preventDefault();
|
|
3911
3877
|
break;
|
|
3912
|
-
|
|
3913
3878
|
default:
|
|
3914
3879
|
//no op
|
|
3915
3880
|
break;
|
|
@@ -3917,9 +3882,7 @@ var TreeNodeTemplate = {
|
|
|
3917
3882
|
},
|
|
3918
3883
|
toggleCheckbox: function toggleCheckbox() {
|
|
3919
3884
|
var _selectionKeys = this.selectionKeys ? _objectSpread({}, this.selectionKeys) : {};
|
|
3920
|
-
|
|
3921
3885
|
var _check = !this.checked;
|
|
3922
|
-
|
|
3923
3886
|
this.propagateDown(this.node, _check, _selectionKeys);
|
|
3924
3887
|
this.$emit('checkbox-change', {
|
|
3925
3888
|
node: this.node,
|
|
@@ -3932,11 +3895,9 @@ var TreeNodeTemplate = {
|
|
|
3932
3895
|
checked: true,
|
|
3933
3896
|
partialChecked: false
|
|
3934
3897
|
};else delete selectionKeys[node.key];
|
|
3935
|
-
|
|
3936
3898
|
if (node.children && node.children.length) {
|
|
3937
3899
|
var _iterator = TreeNodevue_type_script_lang_js_createForOfIteratorHelper(node.children),
|
|
3938
|
-
|
|
3939
|
-
|
|
3900
|
+
_step;
|
|
3940
3901
|
try {
|
|
3941
3902
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3942
3903
|
var child = _step.value;
|
|
@@ -3951,15 +3912,11 @@ var TreeNodeTemplate = {
|
|
|
3951
3912
|
},
|
|
3952
3913
|
propagateUp: function propagateUp(event) {
|
|
3953
3914
|
var check = event.check;
|
|
3954
|
-
|
|
3955
3915
|
var _selectionKeys = _objectSpread({}, event.selectionKeys);
|
|
3956
|
-
|
|
3957
3916
|
var checkedChildCount = 0;
|
|
3958
3917
|
var childPartialSelected = false;
|
|
3959
|
-
|
|
3960
3918
|
var _iterator2 = TreeNodevue_type_script_lang_js_createForOfIteratorHelper(this.node.children),
|
|
3961
|
-
|
|
3962
|
-
|
|
3919
|
+
_step2;
|
|
3963
3920
|
try {
|
|
3964
3921
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3965
3922
|
var child = _step2.value;
|
|
@@ -3970,7 +3927,6 @@ var TreeNodeTemplate = {
|
|
|
3970
3927
|
} finally {
|
|
3971
3928
|
_iterator2.f();
|
|
3972
3929
|
}
|
|
3973
|
-
|
|
3974
3930
|
if (check && checkedChildCount === this.node.children.length) {
|
|
3975
3931
|
_selectionKeys[this.node.key] = {
|
|
3976
3932
|
checked: true,
|
|
@@ -3980,7 +3936,6 @@ var TreeNodeTemplate = {
|
|
|
3980
3936
|
if (!check) {
|
|
3981
3937
|
delete _selectionKeys[this.node.key];
|
|
3982
3938
|
}
|
|
3983
|
-
|
|
3984
3939
|
if (childPartialSelected || checkedChildCount > 0 && checkedChildCount !== this.node.children.length) _selectionKeys[this.node.key] = {
|
|
3985
3940
|
checked: false,
|
|
3986
3941
|
partialChecked: true
|
|
@@ -3989,7 +3944,6 @@ var TreeNodeTemplate = {
|
|
|
3989
3944
|
partialChecked: false
|
|
3990
3945
|
};
|
|
3991
3946
|
}
|
|
3992
|
-
|
|
3993
3947
|
this.$emit('checkbox-change', {
|
|
3994
3948
|
node: event.node,
|
|
3995
3949
|
check: event.check,
|
|
@@ -4001,7 +3955,6 @@ var TreeNodeTemplate = {
|
|
|
4001
3955
|
},
|
|
4002
3956
|
findNextSiblingOfAncestor: function findNextSiblingOfAncestor(nodeElement) {
|
|
4003
3957
|
var parentNodeElement = this.getParentNodeElement(nodeElement);
|
|
4004
|
-
|
|
4005
3958
|
if (parentNodeElement) {
|
|
4006
3959
|
if (parentNodeElement.nextElementSibling) return parentNodeElement.nextElementSibling;else return this.findNextSiblingOfAncestor(parentNodeElement);
|
|
4007
3960
|
} else {
|
|
@@ -4010,7 +3963,6 @@ var TreeNodeTemplate = {
|
|
|
4010
3963
|
},
|
|
4011
3964
|
findLastVisibleDescendant: function findLastVisibleDescendant(nodeElement) {
|
|
4012
3965
|
var childrenListElement = nodeElement.children[1];
|
|
4013
|
-
|
|
4014
3966
|
if (childrenListElement) {
|
|
4015
3967
|
var lastChildElement = childrenListElement.children[childrenListElement.children.length - 1];
|
|
4016
3968
|
return this.findLastVisibleDescendant(lastChildElement);
|
|
@@ -4103,20 +4055,19 @@ var TreeNodeTemplate = {
|
|
|
4103
4055
|
// This module is a runtime utility for cleaner component module output and will
|
|
4104
4056
|
// be included in the final webpack user bundle.
|
|
4105
4057
|
|
|
4106
|
-
function normalizeComponent
|
|
4058
|
+
function normalizeComponent(
|
|
4107
4059
|
scriptExports,
|
|
4108
4060
|
render,
|
|
4109
4061
|
staticRenderFns,
|
|
4110
4062
|
functionalTemplate,
|
|
4111
4063
|
injectStyles,
|
|
4112
4064
|
scopeId,
|
|
4113
|
-
moduleIdentifier
|
|
4065
|
+
moduleIdentifier /* server only */,
|
|
4114
4066
|
shadowMode /* vue-cli only */
|
|
4115
4067
|
) {
|
|
4116
4068
|
// Vue.extend constructor export interop
|
|
4117
|
-
var options =
|
|
4118
|
-
? scriptExports.options
|
|
4119
|
-
: scriptExports
|
|
4069
|
+
var options =
|
|
4070
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
4120
4071
|
|
|
4121
4072
|
// render functions
|
|
4122
4073
|
if (render) {
|
|
@@ -4136,7 +4087,8 @@ function normalizeComponent (
|
|
|
4136
4087
|
}
|
|
4137
4088
|
|
|
4138
4089
|
var hook
|
|
4139
|
-
if (moduleIdentifier) {
|
|
4090
|
+
if (moduleIdentifier) {
|
|
4091
|
+
// server build
|
|
4140
4092
|
hook = function (context) {
|
|
4141
4093
|
// 2.3 injection
|
|
4142
4094
|
context =
|
|
@@ -4162,11 +4114,11 @@ function normalizeComponent (
|
|
|
4162
4114
|
} else if (injectStyles) {
|
|
4163
4115
|
hook = shadowMode
|
|
4164
4116
|
? function () {
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4117
|
+
injectStyles.call(
|
|
4118
|
+
this,
|
|
4119
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
4120
|
+
)
|
|
4121
|
+
}
|
|
4170
4122
|
: injectStyles
|
|
4171
4123
|
}
|
|
4172
4124
|
|
|
@@ -4177,16 +4129,14 @@ function normalizeComponent (
|
|
|
4177
4129
|
options._injectStyles = hook
|
|
4178
4130
|
// register for functional component in vue file
|
|
4179
4131
|
var originalRender = options.render
|
|
4180
|
-
options.render = function renderWithStyleInjection
|
|
4132
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
4181
4133
|
hook.call(context)
|
|
4182
4134
|
return originalRender(h, context)
|
|
4183
4135
|
}
|
|
4184
4136
|
} else {
|
|
4185
4137
|
// inject component registration as beforeCreate hook
|
|
4186
4138
|
var existing = options.beforeCreate
|
|
4187
|
-
options.beforeCreate = existing
|
|
4188
|
-
? [].concat(existing, hook)
|
|
4189
|
-
: [hook]
|
|
4139
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
4190
4140
|
}
|
|
4191
4141
|
}
|
|
4192
4142
|
|