primevue 3.50.0 → 3.51.0
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/accordion/Accordion.d.ts +2 -2
- package/accordion/Accordion.vue +5 -5
- package/accordion/accordion.cjs.js +5 -5
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +5 -5
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +5 -5
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +2 -2
- package/autocomplete/AutoComplete.d.ts +2 -2
- package/autocomplete/AutoComplete.vue +11 -4
- package/autocomplete/autocomplete.cjs.js +34 -25
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +34 -25
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +34 -25
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +2 -2
- package/avatargroup/AvatarGroup.d.ts +2 -2
- package/badge/Badge.d.ts +2 -2
- package/blockui/BlockUI.d.ts +2 -2
- package/breadcrumb/Breadcrumb.d.ts +2 -2
- package/button/Button.d.ts +2 -2
- package/buttongroup/ButtonGroup.d.ts +2 -2
- package/calendar/Calendar.d.ts +6 -5
- package/calendar/Calendar.vue +5 -7
- package/calendar/calendar.cjs.js +5 -6
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +6 -7
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +5 -6
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +2 -2
- package/carousel/Carousel.d.ts +6 -2
- package/carousel/Carousel.vue +62 -52
- package/carousel/carousel.cjs.js +65 -49
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +66 -50
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +65 -49
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +2 -2
- package/cascadeselect/CascadeSelect.vue +5 -3
- package/cascadeselect/cascadeselect.cjs.js +5 -3
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +5 -3
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +5 -3
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +2 -2
- package/checkbox/Checkbox.d.ts +2 -2
- package/chip/Chip.d.ts +2 -2
- package/chips/Chips.d.ts +2 -2
- package/chips/Chips.vue +5 -5
- package/chips/chips.cjs.js +5 -5
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +5 -5
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +5 -5
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +2 -2
- package/column/Column.d.ts +2 -2
- package/columngroup/ColumnGroup.d.ts +2 -2
- package/confirmdialog/ConfirmDialog.d.ts +2 -2
- package/confirmpopup/ConfirmPopup.d.ts +2 -2
- package/contextmenu/ContextMenu.d.ts +2 -2
- package/contextmenu/ContextMenu.vue +9 -5
- package/contextmenu/contextmenu.cjs.js +9 -4
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +9 -4
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +9 -4
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +43 -22
- package/core/core.min.js +7 -7
- package/datatable/ColumnFilter.vue +5 -4
- package/datatable/DataTable.d.ts +4 -4
- package/datatable/DataTable.vue +1 -0
- package/datatable/TableHeader.vue +5 -0
- package/datatable/datatable.cjs.js +13 -5
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +13 -5
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +13 -5
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +2 -2
- package/deferredcontent/DeferredContent.d.ts +2 -2
- package/dialog/Dialog.d.ts +2 -2
- package/dialog/Dialog.vue +5 -4
- package/dialog/dialog.cjs.js +5 -3
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +5 -3
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +5 -3
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +2 -2
- package/dock/Dock.d.ts +2 -2
- package/dock/DockSub.vue +5 -5
- package/dock/dock.cjs.js +5 -5
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +5 -5
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +5 -5
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +11 -3
- package/dropdown/Dropdown.vue +7 -3
- package/dropdown/dropdown.cjs.js +7 -3
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +7 -3
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +7 -3
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.js +2 -1
- package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
- package/dropdown/style/dropdownstyle.esm.js +2 -1
- package/dropdown/style/dropdownstyle.esm.min.js +1 -1
- package/dropdown/style/dropdownstyle.js +2 -1
- package/dropdown/style/dropdownstyle.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +2 -2
- package/editor/Editor.d.ts +2 -2
- package/fieldset/Fieldset.d.ts +2 -2
- package/fieldset/Fieldset.vue +5 -5
- package/fieldset/fieldset.cjs.js +5 -5
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +5 -5
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +5 -5
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +2 -2
- package/fileupload/FileUpload.vue +1 -1
- package/fileupload/fileupload.cjs.js +10 -10
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +10 -10
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +10 -10
- package/fileupload/fileupload.min.js +1 -1
- package/floatlabel/FloatLabel.d.ts +2 -2
- package/galleria/Galleria.d.ts +2 -2
- package/galleria/GalleriaContent.vue +6 -6
- package/galleria/galleria.cjs.js +6 -6
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +6 -6
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +6 -6
- package/galleria/galleria.min.js +1 -1
- package/iconfield/IconField.d.ts +2 -2
- package/icons/angledoubledown/index.d.ts +2 -2
- package/icons/angledoubleleft/index.d.ts +2 -2
- package/icons/angledoubleright/index.d.ts +2 -2
- package/icons/angledoubleup/index.d.ts +2 -2
- package/icons/angledown/index.d.ts +2 -2
- package/icons/angleleft/index.d.ts +2 -2
- package/icons/angleright/index.d.ts +2 -2
- package/icons/angleup/index.d.ts +2 -2
- package/icons/arrowdown/index.d.ts +2 -2
- package/icons/arrowup/index.d.ts +2 -2
- package/icons/ban/index.d.ts +2 -2
- package/icons/bars/index.d.ts +2 -2
- package/icons/blank/index.d.ts +2 -2
- package/icons/calendar/index.d.ts +2 -2
- package/icons/check/index.d.ts +2 -2
- package/icons/chevrondown/index.d.ts +2 -2
- package/icons/chevronleft/index.d.ts +2 -2
- package/icons/chevronright/index.d.ts +2 -2
- package/icons/chevronup/index.d.ts +2 -2
- package/icons/exclamationtriangle/index.d.ts +2 -2
- package/icons/eye/index.d.ts +2 -2
- package/icons/eyeslash/index.d.ts +2 -2
- package/icons/filter/index.d.ts +2 -2
- package/icons/filterslash/index.d.ts +2 -2
- package/icons/infocircle/index.d.ts +2 -2
- package/icons/minus/index.d.ts +2 -2
- package/icons/pencil/index.d.ts +2 -2
- package/icons/plus/index.d.ts +2 -2
- package/icons/refresh/index.d.ts +2 -2
- package/icons/search/index.d.ts +2 -2
- package/icons/searchminus/index.d.ts +2 -2
- package/icons/searchplus/index.d.ts +2 -2
- package/icons/sortalt/index.d.ts +2 -2
- package/icons/sortamountdown/index.d.ts +2 -2
- package/icons/sortamountupalt/index.d.ts +2 -2
- package/icons/spinner/index.d.ts +2 -2
- package/icons/star/index.d.ts +2 -2
- package/icons/starfill/index.d.ts +2 -2
- package/icons/thlarge/index.d.ts +2 -2
- package/icons/times/index.d.ts +2 -2
- package/icons/timescircle/index.d.ts +2 -2
- package/icons/trash/index.d.ts +2 -2
- package/icons/undo/index.d.ts +2 -2
- package/icons/upload/index.d.ts +2 -2
- package/icons/windowmaximize/index.d.ts +2 -2
- package/icons/windowminimize/index.d.ts +2 -2
- package/image/Image.d.ts +2 -2
- package/inlinemessage/InlineMessage.d.ts +2 -2
- package/inplace/Inplace.d.ts +2 -2
- package/inputgroup/InputGroup.d.ts +2 -2
- package/inputgroupaddon/InputGroupAddon.d.ts +2 -2
- package/inputicon/InputIcon.d.ts +2 -2
- package/inputmask/InputMask.d.ts +2 -2
- package/inputnumber/InputNumber.d.ts +2 -2
- package/inputnumber/InputNumber.vue +1 -1
- package/inputnumber/inputnumber.cjs.js +1 -1
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +1 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +1 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/InputOtp.d.ts +2 -2
- package/inputotp/InputOtp.vue +1 -1
- package/inputotp/inputotp.cjs.js +1 -1
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +1 -1
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +1 -1
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +2 -2
- package/inputtext/InputText.d.ts +2 -2
- package/knob/Knob.d.ts +2 -2
- package/listbox/Listbox.d.ts +2 -2
- package/listbox/Listbox.vue +5 -3
- package/listbox/listbox.cjs.js +5 -3
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +5 -3
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +5 -3
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +2 -2
- package/megamenu/MegaMenu.vue +9 -4
- package/megamenu/megamenu.cjs.js +9 -4
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +9 -4
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +9 -4
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +2 -2
- package/menu/Menu.vue +5 -4
- package/menu/menu.cjs.js +5 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +5 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +5 -3
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +2 -2
- package/menubar/Menubar.vue +9 -4
- package/menubar/menubar.cjs.js +9 -4
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +9 -4
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +9 -4
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +2 -2
- package/metergroup/MeterGroup.d.ts +2 -2
- package/multiselect/MultiSelect.d.ts +2 -2
- package/multiselect/MultiSelect.vue +7 -5
- package/multiselect/multiselect.cjs.js +7 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +7 -5
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +7 -5
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +2 -2
- package/orderlist/OrderList.vue +5 -4
- package/orderlist/orderlist.cjs.js +5 -3
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +5 -3
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +5 -3
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +2 -2
- package/overlaypanel/OverlayPanel.d.ts +2 -2
- package/package.json +1 -1
- package/paginator/Paginator.d.ts +2 -2
- package/panel/Panel.d.ts +2 -2
- package/panel/Panel.vue +5 -5
- package/panel/panel.cjs.js +5 -5
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +5 -5
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +5 -5
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +2 -2
- package/panelmenu/PanelMenu.vue +5 -5
- package/panelmenu/panelmenu.cjs.js +5 -5
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +5 -5
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +5 -5
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +2 -2
- package/password/Password.vue +5 -3
- package/password/password.cjs.js +5 -3
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +5 -3
- package/password/password.esm.min.js +1 -1
- package/password/password.js +5 -3
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +2 -2
- package/picklist/PickList.vue +5 -4
- package/picklist/picklist.cjs.js +5 -3
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +5 -3
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +5 -3
- package/picklist/picklist.min.js +1 -1
- package/portal/Portal.d.ts +2 -2
- package/progressbar/ProgressBar.d.ts +2 -2
- package/progressspinner/ProgressSpinner.d.ts +2 -2
- package/radiobutton/RadioButton.d.ts +2 -2
- package/rating/Rating.d.ts +2 -2
- package/rating/Rating.vue +5 -5
- package/rating/rating.cjs.js +5 -5
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +5 -5
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +5 -5
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +1 -0
- package/resources/themes/arya-green/theme.css +1 -0
- package/resources/themes/arya-orange/theme.css +1 -0
- package/resources/themes/arya-purple/theme.css +1 -0
- package/resources/themes/aura-dark-amber/theme.css +1 -0
- package/resources/themes/aura-dark-blue/theme.css +1 -0
- package/resources/themes/aura-dark-cyan/theme.css +1 -0
- package/resources/themes/aura-dark-green/theme.css +1 -0
- package/resources/themes/aura-dark-indigo/theme.css +1 -0
- package/resources/themes/aura-dark-lime/theme.css +1 -0
- package/resources/themes/aura-dark-noir/theme.css +1 -0
- package/resources/themes/aura-dark-pink/theme.css +1 -0
- package/resources/themes/aura-dark-purple/theme.css +1 -0
- package/resources/themes/aura-dark-teal/theme.css +1 -0
- package/resources/themes/aura-light-amber/theme.css +7 -1
- package/resources/themes/aura-light-blue/theme.css +7 -1
- package/resources/themes/aura-light-cyan/theme.css +7 -1
- package/resources/themes/aura-light-green/theme.css +7 -1
- package/resources/themes/aura-light-indigo/theme.css +7 -1
- package/resources/themes/aura-light-lime/theme.css +7 -1
- package/resources/themes/aura-light-noir/theme.css +7 -1
- package/resources/themes/aura-light-pink/theme.css +7 -1
- package/resources/themes/aura-light-purple/theme.css +7 -1
- package/resources/themes/aura-light-teal/theme.css +7 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +1 -0
- package/resources/themes/bootstrap4-dark-purple/theme.css +1 -0
- package/resources/themes/bootstrap4-light-blue/theme.css +1 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +1 -0
- package/resources/themes/fluent-light/theme.css +1 -0
- package/resources/themes/lara-dark-amber/theme.css +1 -0
- package/resources/themes/lara-dark-blue/theme.css +1 -0
- package/resources/themes/lara-dark-cyan/theme.css +1 -0
- package/resources/themes/lara-dark-green/theme.css +1 -0
- package/resources/themes/lara-dark-indigo/theme.css +1 -0
- package/resources/themes/lara-dark-pink/theme.css +1 -0
- package/resources/themes/lara-dark-purple/theme.css +1 -0
- package/resources/themes/lara-dark-teal/theme.css +1 -0
- package/resources/themes/lara-light-amber/theme.css +1 -0
- package/resources/themes/lara-light-blue/theme.css +1 -0
- package/resources/themes/lara-light-cyan/theme.css +1 -0
- package/resources/themes/lara-light-green/theme.css +1 -0
- package/resources/themes/lara-light-indigo/theme.css +1 -0
- package/resources/themes/lara-light-pink/theme.css +1 -0
- package/resources/themes/lara-light-purple/theme.css +1 -0
- package/resources/themes/lara-light-teal/theme.css +1 -0
- package/resources/themes/luna-amber/theme.css +1 -0
- package/resources/themes/luna-blue/theme.css +1 -0
- package/resources/themes/luna-green/theme.css +1 -0
- package/resources/themes/luna-pink/theme.css +1 -0
- package/resources/themes/md-dark-deeppurple/theme.css +1 -0
- package/resources/themes/md-dark-indigo/theme.css +1 -0
- package/resources/themes/md-light-deeppurple/theme.css +1 -0
- package/resources/themes/md-light-indigo/theme.css +1 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +1 -0
- package/resources/themes/mdc-dark-indigo/theme.css +1 -0
- package/resources/themes/mdc-light-deeppurple/theme.css +1 -0
- package/resources/themes/mdc-light-indigo/theme.css +1 -0
- package/resources/themes/mira/theme.css +1 -0
- package/resources/themes/nano/theme.css +1 -0
- package/resources/themes/nova/theme.css +1 -0
- package/resources/themes/nova-accent/theme.css +1 -0
- package/resources/themes/nova-alt/theme.css +1 -0
- package/resources/themes/nova-vue/theme.css +1 -0
- package/resources/themes/rhea/theme.css +1 -0
- package/resources/themes/saga-blue/theme.css +1 -0
- package/resources/themes/saga-green/theme.css +1 -0
- package/resources/themes/saga-orange/theme.css +1 -0
- package/resources/themes/saga-purple/theme.css +1 -0
- package/resources/themes/soho-dark/theme.css +1 -0
- package/resources/themes/soho-light/theme.css +1 -0
- package/resources/themes/tailwind-light/theme.css +1 -0
- package/resources/themes/vela-blue/theme.css +1 -0
- package/resources/themes/vela-green/theme.css +1 -0
- package/resources/themes/vela-orange/theme.css +1 -0
- package/resources/themes/vela-purple/theme.css +1 -0
- package/resources/themes/viva-dark/theme.css +1 -0
- package/resources/themes/viva-light/theme.css +1 -0
- package/row/Row.d.ts +2 -2
- package/scrollpanel/ScrollPanel.d.ts +2 -2
- package/scrollpanel/ScrollPanel.vue +5 -4
- package/scrollpanel/scrollpanel.cjs.js +5 -3
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +5 -3
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +5 -3
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +2 -2
- package/selectbutton/SelectButton.d.ts +2 -2
- package/sidebar/Sidebar.d.ts +2 -2
- package/skeleton/Skeleton.d.ts +2 -2
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.vue +7 -6
- package/slider/slider.cjs.js +7 -6
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +7 -6
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +7 -6
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +2 -2
- package/speeddial/SpeedDial.vue +5 -4
- package/speeddial/speeddial.cjs.js +5 -3
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +5 -3
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +5 -3
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +2 -2
- package/splitbutton/SplitButton.vue +5 -4
- package/splitbutton/splitbutton.cjs.js +5 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +5 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +5 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +2 -2
- package/splitterpanel/SplitterPanel.d.ts +2 -2
- package/stepper/Stepper.d.ts +2 -2
- package/stepper/Stepper.vue +6 -8
- package/stepper/stepper.cjs.js +12 -16
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +13 -17
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +12 -16
- package/stepper/stepper.min.js +1 -1
- package/stepperpanel/StepperPanel.d.ts +3 -3
- package/steps/Steps.d.ts +2 -2
- package/tabmenu/TabMenu.d.ts +2 -2
- package/tabpanel/TabPanel.d.ts +2 -2
- package/tabview/TabView.d.ts +2 -2
- package/tabview/TabView.vue +5 -3
- package/tabview/tabview.cjs.js +5 -3
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +5 -3
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +5 -3
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +2 -2
- package/terminal/Terminal.d.ts +2 -2
- package/textarea/Textarea.d.ts +2 -2
- package/tieredmenu/TieredMenu.d.ts +2 -2
- package/tieredmenu/TieredMenu.vue +15 -8
- package/tieredmenu/tieredmenu.cjs.js +18 -8
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +18 -8
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +18 -8
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +2 -2
- package/toast/Toast.d.ts +2 -2
- package/togglebutton/ToggleButton.d.ts +2 -2
- package/toolbar/Toolbar.d.ts +2 -2
- package/tree/Tree.d.ts +7 -3
- package/tree/TreeNode.vue +2 -1
- package/tree/tree.cjs.js +5 -3
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +5 -3
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +5 -3
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +2 -2
- package/treeselect/TreeSelect.vue +5 -3
- package/treeselect/treeselect.cjs.js +5 -3
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +5 -3
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +5 -3
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/TreeTable.d.ts +2 -2
- package/tristatecheckbox/TriStateCheckbox.d.ts +2 -2
- package/virtualscroller/VirtualScroller.d.ts +2 -2
- package/web-types.json +6 -1
package/accordion/Accordion.d.ts
CHANGED
|
@@ -232,8 +232,8 @@ export interface AccordionEmits {
|
|
|
232
232
|
*/
|
|
233
233
|
declare class Accordion extends ClassComponent<AccordionProps, AccordionSlots, AccordionEmits> {}
|
|
234
234
|
|
|
235
|
-
declare module '
|
|
236
|
-
interface GlobalComponents {
|
|
235
|
+
declare module 'vue' {
|
|
236
|
+
export interface GlobalComponents {
|
|
237
237
|
Accordion: GlobalComponentConstructor<Accordion>;
|
|
238
238
|
}
|
|
239
239
|
}
|
package/accordion/Accordion.vue
CHANGED
|
@@ -73,16 +73,16 @@ export default {
|
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
watch: {
|
|
76
|
-
'$attrs.id':
|
|
77
|
-
|
|
76
|
+
'$attrs.id': {
|
|
77
|
+
immediate: true,
|
|
78
|
+
handler: function (newValue) {
|
|
79
|
+
this.id = newValue || UniqueComponentId();
|
|
80
|
+
}
|
|
78
81
|
},
|
|
79
82
|
activeIndex(newValue) {
|
|
80
83
|
this.d_activeIndex = newValue;
|
|
81
84
|
}
|
|
82
85
|
},
|
|
83
|
-
mounted() {
|
|
84
|
-
this.id = this.id || UniqueComponentId();
|
|
85
|
-
},
|
|
86
86
|
methods: {
|
|
87
87
|
isAccordionTab(child) {
|
|
88
88
|
return child.type.name === 'AccordionTab';
|
|
@@ -69,16 +69,16 @@ var script = {
|
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
watch: {
|
|
72
|
-
'$attrs.id':
|
|
73
|
-
|
|
72
|
+
'$attrs.id': {
|
|
73
|
+
immediate: true,
|
|
74
|
+
handler: function handler(newValue) {
|
|
75
|
+
this.id = newValue || utils.UniqueComponentId();
|
|
76
|
+
}
|
|
74
77
|
},
|
|
75
78
|
activeIndex: function activeIndex(newValue) {
|
|
76
79
|
this.d_activeIndex = newValue;
|
|
77
80
|
}
|
|
78
81
|
},
|
|
79
|
-
mounted: function mounted() {
|
|
80
|
-
this.id = this.id || utils.UniqueComponentId();
|
|
81
|
-
},
|
|
82
82
|
methods: {
|
|
83
83
|
isAccordionTab: function isAccordionTab(child) {
|
|
84
84
|
return child.type.name === 'AccordionTab';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/icons/chevrondown"),t=require("primevue/icons/chevronright"),n=require("primevue/ripple"),a=require("primevue/utils"),i=require("vue"),
|
|
1
|
+
"use strict";var e=require("primevue/icons/chevrondown"),t=require("primevue/icons/chevronright"),n=require("primevue/ripple"),a=require("primevue/utils"),i=require("vue"),r=require("primevue/accordion/style"),o=require("primevue/basecomponent");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(e),s=c(t),l=c(n),p=c(r),u={name:"Accordion",extends:{name:"BaseAccordion",extends:c(o).default,props:{multiple:{type:Boolean,default:!1},activeIndex:{type:[Number,Array],default:null},lazy:{type:Boolean,default:!1},expandIcon:{type:String,default:void 0},collapseIcon:{type:String,default:void 0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:p.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:activeIndex","tab-open","tab-close","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex}},watch:{"$attrs.id":{immediate:!0,handler:function(e){this.id=e||a.UniqueComponentId()}},activeIndex:function(e){this.d_activeIndex=e}},methods:{isAccordionTab:function(e){return"AccordionTab"===e.type.name},isTabActive:function(e){return this.multiple?this.d_activeIndex&&this.d_activeIndex.includes(e):this.d_activeIndex===e},getTabProp:function(e,t){return e.props?e.props[t]:void 0},getKey:function(e,t){return this.getTabProp(e,"header")||t},getTabHeaderActionId:function(e){return"".concat(this.id,"_").concat(e,"_header_action")},getTabContentId:function(e){return"".concat(this.id,"_").concat(e,"_content")},getTabPT:function(e,t,n){var a=this.tabs.length,r={props:e.props||{},parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:a,first:0===n,last:n===a-1,active:this.isTabActive(n)}};return i.mergeProps(this.ptm("tab.".concat(t),{tab:r}),this.ptm("accordiontab.".concat(t),{accordiontab:r}),this.ptm("accordiontab.".concat(t),r),this.ptmo(this.getTabProp(e,"pt"),t,r))},onTabClick:function(e,t,n){this.changeActiveIndex(e,t,n),this.$emit("tab-click",{originalEvent:e,index:n})},onTabKeyDown:function(e,t,n){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onTabEnterKey(e,t,n)}},onTabArrowDownKey:function(e){var t=this.findNextHeaderAction(e.target.parentElement.parentElement);t?this.changeFocusedTab(e,t):this.onTabHomeKey(e),e.preventDefault()},onTabArrowUpKey:function(e){var t=this.findPrevHeaderAction(e.target.parentElement.parentElement);t?this.changeFocusedTab(e,t):this.onTabEndKey(e),e.preventDefault()},onTabHomeKey:function(e){var t=this.findFirstHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEndKey:function(e){var t=this.findLastHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEnterKey:function(e,t,n){this.changeActiveIndex(e,t,n),e.preventDefault()},findNextHeaderAction:function(e){var t=a.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?a.DomHandler.getAttribute(t,"data-p-disabled")?this.findNextHeaderAction(t.parentElement):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findPrevHeaderAction:function(e){var t=a.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?a.DomHandler.getAttribute(t,"data-p-disabled")?this.findPrevHeaderAction(t.parentElement):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$el.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$el.lastElementChild,!0)},changeActiveIndex:function(e,t,n){if(!this.getTabProp(t,"disabled")){var a=this.isTabActive(n),i=a?"tab-close":"tab-open";this.multiple?a?this.d_activeIndex=this.d_activeIndex.filter((function(e){return e!==n})):this.d_activeIndex?this.d_activeIndex.push(n):this.d_activeIndex=[n]:this.d_activeIndex=this.d_activeIndex===n?null:n,this.$emit("update:activeIndex",this.d_activeIndex),this.$emit(i,{originalEvent:e,index:n})}},changeFocusedTab:function(e,t){if(t&&(a.DomHandler.focus(t),this.selectOnFocus)){var n=parseInt(t.parentElement.parentElement.dataset.pcIndex,10);this.changeActiveIndex(e,this.tabs[n],n)}}},computed:{tabs:function(){var e=this;return this.$slots.default().reduce((function(t,n){return e.isAccordionTab(n)?t.push(n):n.children&&n.children instanceof Array&&n.children.forEach((function(n){e.isAccordionTab(n)&&t.push(n)})),t}),[])}},components:{ChevronDownIcon:d.default,ChevronRightIcon:s.default},directives:{ripple:l.default}};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){var a;return(t="symbol"==b(a=v(t,"string"))?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=b(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var g=["data-pc-index","data-p-active"],y=["data-p-highlight","data-p-disabled"],T=["id","tabindex","aria-disabled","aria-expanded","aria-controls","onClick","onKeydown"],x=["id","aria-labelledby"];u.render=function(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root")},e.ptmi("root")),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.tabs,(function(t,n){return i.openBlock(),i.createElementBlock("div",i.mergeProps({key:o.getKey(t,n),class:e.cx("tab.root",{tab:t,index:n})},o.getTabPT(t,"root",n),{"data-pc-name":"accordiontab","data-pc-index":n,"data-p-active":o.isTabActive(n)}),[i.createElementVNode("div",i.mergeProps({style:o.getTabProp(t,"headerStyle"),class:[e.cx("tab.header",{tab:t,index:n}),o.getTabProp(t,"headerClass")]},m(m({},o.getTabProp(t,"headerProps")),o.getTabPT(t,"header",n)),{"data-p-highlight":o.isTabActive(n),"data-p-disabled":o.getTabProp(t,"disabled")}),[i.createElementVNode("a",i.mergeProps({id:o.getTabHeaderActionId(n),class:e.cx("tab.headerAction"),tabindex:o.getTabProp(t,"disabled")?-1:e.tabindex,role:"button","aria-disabled":o.getTabProp(t,"disabled"),"aria-expanded":o.isTabActive(n),"aria-controls":o.getTabContentId(n),onClick:function(e){return o.onTabClick(e,t,n)},onKeydown:function(e){return o.onTabKeyDown(e,t,n)}},m(m({},o.getTabProp(t,"headeractionprops")),o.getTabPT(t,"headeraction",n))),[t.children&&t.children.headericon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.children.headericon),{key:0,isTabActive:o.isTabActive(n),active:o.isTabActive(n),index:n},null,8,["isTabActive","active","index"])):o.isTabActive(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.collapseicon?e.$slots.collapseicon:e.collapseIcon?"span":"ChevronDownIcon"),i.mergeProps({key:1,class:[e.cx("tab.headerIcon"),e.collapseIcon],"aria-hidden":"true"},o.getTabPT(t,"headericon",n)),null,16,["class"])):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.expandicon?e.$slots.expandicon:e.expandIcon?"span":"ChevronRightIcon"),i.mergeProps({key:2,class:[e.cx("tab.headerIcon"),e.expandIcon],"aria-hidden":"true"},o.getTabPT(t,"headericon",n)),null,16,["class"])),t.props&&t.props.header?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:3,class:e.cx("tab.headerTitle")},o.getTabPT(t,"headertitle",n)),i.toDisplayString(t.props.header),17)):i.createCommentVNode("",!0),t.children&&t.children.header?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.children.header),{key:4})):i.createCommentVNode("",!0)],16,T)],16,y),i.createVNode(i.Transition,i.mergeProps({name:"p-toggleable-content"},o.getTabPT(t,"transition",n)),{default:i.withCtx((function(){return[!e.lazy||o.isTabActive(n)?i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,id:o.getTabContentId(n),style:o.getTabProp(t,"contentStyle"),class:[e.cx("tab.toggleableContent"),o.getTabProp(t,"contentClass")],role:"region","aria-labelledby":o.getTabHeaderActionId(n)},m(m({},o.getTabProp(t,"contentProps")),o.getTabPT(t,"toggleablecontent",n))),[i.createElementVNode("div",i.mergeProps({class:e.cx("tab.content")},o.getTabPT(t,"content",n)),[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t)))],16)],16,x)),[[i.vShow,!!e.lazy||o.isTabActive(n)]]):i.createCommentVNode("",!0)]})),_:2},1040)],16,g)})),128))],16)},module.exports=u;
|
|
@@ -59,16 +59,16 @@ var script = {
|
|
|
59
59
|
};
|
|
60
60
|
},
|
|
61
61
|
watch: {
|
|
62
|
-
'$attrs.id':
|
|
63
|
-
|
|
62
|
+
'$attrs.id': {
|
|
63
|
+
immediate: true,
|
|
64
|
+
handler: function handler(newValue) {
|
|
65
|
+
this.id = newValue || UniqueComponentId();
|
|
66
|
+
}
|
|
64
67
|
},
|
|
65
68
|
activeIndex: function activeIndex(newValue) {
|
|
66
69
|
this.d_activeIndex = newValue;
|
|
67
70
|
}
|
|
68
71
|
},
|
|
69
|
-
mounted: function mounted() {
|
|
70
|
-
this.id = this.id || UniqueComponentId();
|
|
71
|
-
},
|
|
72
72
|
methods: {
|
|
73
73
|
isAccordionTab: function isAccordionTab(child) {
|
|
74
74
|
return child.type.name === 'AccordionTab';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/icons/chevrondown";import t from"primevue/icons/chevronright";import n from"primevue/ripple";import{UniqueComponentId as i,DomHandler as a}from"primevue/utils";import{mergeProps as r,openBlock as o,createElementBlock as c,Fragment as d,renderList as s,createElementVNode as l,createBlock as p,resolveDynamicComponent as b,toDisplayString as u,createCommentVNode as h,createVNode as f,Transition as v,withCtx as g,withDirectives as
|
|
1
|
+
import e from"primevue/icons/chevrondown";import t from"primevue/icons/chevronright";import n from"primevue/ripple";import{UniqueComponentId as i,DomHandler as a}from"primevue/utils";import{mergeProps as r,openBlock as o,createElementBlock as c,Fragment as d,renderList as s,createElementVNode as l,createBlock as p,resolveDynamicComponent as b,toDisplayString as u,createCommentVNode as h,createVNode as f,Transition as v,withCtx as g,withDirectives as m,vShow as T}from"vue";import y from"primevue/accordion/style";import x from"primevue/basecomponent";var A={name:"Accordion",extends:{name:"BaseAccordion",extends:x,props:{multiple:{type:Boolean,default:!1},activeIndex:{type:[Number,Array],default:null},lazy:{type:Boolean,default:!1},expandIcon:{type:String,default:void 0},collapseIcon:{type:String,default:void 0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:y,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:activeIndex","tab-open","tab-close","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex}},watch:{"$attrs.id":{immediate:!0,handler:function(e){this.id=e||i()}},activeIndex:function(e){this.d_activeIndex=e}},methods:{isAccordionTab:function(e){return"AccordionTab"===e.type.name},isTabActive:function(e){return this.multiple?this.d_activeIndex&&this.d_activeIndex.includes(e):this.d_activeIndex===e},getTabProp:function(e,t){return e.props?e.props[t]:void 0},getKey:function(e,t){return this.getTabProp(e,"header")||t},getTabHeaderActionId:function(e){return"".concat(this.id,"_").concat(e,"_header_action")},getTabContentId:function(e){return"".concat(this.id,"_").concat(e,"_content")},getTabPT:function(e,t,n){var i=this.tabs.length,a={props:e.props||{},parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:i,first:0===n,last:n===i-1,active:this.isTabActive(n)}};return r(this.ptm("tab.".concat(t),{tab:a}),this.ptm("accordiontab.".concat(t),{accordiontab:a}),this.ptm("accordiontab.".concat(t),a),this.ptmo(this.getTabProp(e,"pt"),t,a))},onTabClick:function(e,t,n){this.changeActiveIndex(e,t,n),this.$emit("tab-click",{originalEvent:e,index:n})},onTabKeyDown:function(e,t,n){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onTabEnterKey(e,t,n)}},onTabArrowDownKey:function(e){var t=this.findNextHeaderAction(e.target.parentElement.parentElement);t?this.changeFocusedTab(e,t):this.onTabHomeKey(e),e.preventDefault()},onTabArrowUpKey:function(e){var t=this.findPrevHeaderAction(e.target.parentElement.parentElement);t?this.changeFocusedTab(e,t):this.onTabEndKey(e),e.preventDefault()},onTabHomeKey:function(e){var t=this.findFirstHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEndKey:function(e){var t=this.findLastHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEnterKey:function(e,t,n){this.changeActiveIndex(e,t,n),e.preventDefault()},findNextHeaderAction:function(e){var t=a.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?a.getAttribute(t,"data-p-disabled")?this.findNextHeaderAction(t.parentElement):a.findSingle(t,'[data-pc-section="headeraction"]'):null},findPrevHeaderAction:function(e){var t=a.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?a.getAttribute(t,"data-p-disabled")?this.findPrevHeaderAction(t.parentElement):a.findSingle(t,'[data-pc-section="headeraction"]'):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$el.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$el.lastElementChild,!0)},changeActiveIndex:function(e,t,n){if(!this.getTabProp(t,"disabled")){var i=this.isTabActive(n),a=i?"tab-close":"tab-open";this.multiple?i?this.d_activeIndex=this.d_activeIndex.filter((function(e){return e!==n})):this.d_activeIndex?this.d_activeIndex.push(n):this.d_activeIndex=[n]:this.d_activeIndex=this.d_activeIndex===n?null:n,this.$emit("update:activeIndex",this.d_activeIndex),this.$emit(a,{originalEvent:e,index:n})}},changeFocusedTab:function(e,t){if(t&&(a.focus(t),this.selectOnFocus)){var n=parseInt(t.parentElement.parentElement.dataset.pcIndex,10);this.changeActiveIndex(e,this.tabs[n],n)}}},computed:{tabs:function(){var e=this;return this.$slots.default().reduce((function(t,n){return e.isAccordionTab(n)?t.push(n):n.children&&n.children instanceof Array&&n.children.forEach((function(n){e.isAccordionTab(n)&&t.push(n)})),t}),[])}},components:{ChevronDownIcon:e,ChevronRightIcon:t},directives:{ripple:n}};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){var i;return(t="symbol"==I(i=S(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=I(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var O=["data-pc-index","data-p-active"],H=["data-p-highlight","data-p-disabled"],_=["id","tabindex","aria-disabled","aria-expanded","aria-controls","onClick","onKeydown"],k=["id","aria-labelledby"];A.render=function(e,t,n,i,a,y){return o(),c("div",r({class:e.cx("root")},e.ptmi("root")),[(o(!0),c(d,null,s(y.tabs,(function(t,n){return o(),c("div",r({key:y.getKey(t,n),class:e.cx("tab.root",{tab:t,index:n})},y.getTabPT(t,"root",n),{"data-pc-name":"accordiontab","data-pc-index":n,"data-p-active":y.isTabActive(n)}),[l("div",r({style:y.getTabProp(t,"headerStyle"),class:[e.cx("tab.header",{tab:t,index:n}),y.getTabProp(t,"headerClass")]},w(w({},y.getTabProp(t,"headerProps")),y.getTabPT(t,"header",n)),{"data-p-highlight":y.isTabActive(n),"data-p-disabled":y.getTabProp(t,"disabled")}),[l("a",r({id:y.getTabHeaderActionId(n),class:e.cx("tab.headerAction"),tabindex:y.getTabProp(t,"disabled")?-1:e.tabindex,role:"button","aria-disabled":y.getTabProp(t,"disabled"),"aria-expanded":y.isTabActive(n),"aria-controls":y.getTabContentId(n),onClick:function(e){return y.onTabClick(e,t,n)},onKeydown:function(e){return y.onTabKeyDown(e,t,n)}},w(w({},y.getTabProp(t,"headeractionprops")),y.getTabPT(t,"headeraction",n))),[t.children&&t.children.headericon?(o(),p(b(t.children.headericon),{key:0,isTabActive:y.isTabActive(n),active:y.isTabActive(n),index:n},null,8,["isTabActive","active","index"])):y.isTabActive(n)?(o(),p(b(e.$slots.collapseicon?e.$slots.collapseicon:e.collapseIcon?"span":"ChevronDownIcon"),r({key:1,class:[e.cx("tab.headerIcon"),e.collapseIcon],"aria-hidden":"true"},y.getTabPT(t,"headericon",n)),null,16,["class"])):(o(),p(b(e.$slots.expandicon?e.$slots.expandicon:e.expandIcon?"span":"ChevronRightIcon"),r({key:2,class:[e.cx("tab.headerIcon"),e.expandIcon],"aria-hidden":"true"},y.getTabPT(t,"headericon",n)),null,16,["class"])),t.props&&t.props.header?(o(),c("span",r({key:3,class:e.cx("tab.headerTitle")},y.getTabPT(t,"headertitle",n)),u(t.props.header),17)):h("",!0),t.children&&t.children.header?(o(),p(b(t.children.header),{key:4})):h("",!0)],16,_)],16,H),f(v,r({name:"p-toggleable-content"},y.getTabPT(t,"transition",n)),{default:g((function(){return[!e.lazy||y.isTabActive(n)?m((o(),c("div",r({key:0,id:y.getTabContentId(n),style:y.getTabProp(t,"contentStyle"),class:[e.cx("tab.toggleableContent"),y.getTabProp(t,"contentClass")],role:"region","aria-labelledby":y.getTabHeaderActionId(n)},w(w({},y.getTabProp(t,"contentProps")),y.getTabPT(t,"toggleablecontent",n))),[l("div",r({class:e.cx("tab.content")},y.getTabPT(t,"content",n)),[(o(),p(b(t)))],16)],16,k)),[[T,!!e.lazy||y.isTabActive(n)]]):h("",!0)]})),_:2},1040)],16,O)})),128))],16)};export{A as default};
|
package/accordion/accordion.js
CHANGED
|
@@ -63,16 +63,16 @@ this.primevue.accordion = (function (ChevronDownIcon, ChevronRightIcon, Ripple,
|
|
|
63
63
|
};
|
|
64
64
|
},
|
|
65
65
|
watch: {
|
|
66
|
-
'$attrs.id':
|
|
67
|
-
|
|
66
|
+
'$attrs.id': {
|
|
67
|
+
immediate: true,
|
|
68
|
+
handler: function handler(newValue) {
|
|
69
|
+
this.id = newValue || utils.UniqueComponentId();
|
|
70
|
+
}
|
|
68
71
|
},
|
|
69
72
|
activeIndex: function activeIndex(newValue) {
|
|
70
73
|
this.d_activeIndex = newValue;
|
|
71
74
|
}
|
|
72
75
|
},
|
|
73
|
-
mounted: function mounted() {
|
|
74
|
-
this.id = this.id || utils.UniqueComponentId();
|
|
75
|
-
},
|
|
76
76
|
methods: {
|
|
77
77
|
isAccordionTab: function isAccordionTab(child) {
|
|
78
78
|
return child.type.name === 'AccordionTab';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.accordion=function(e,t,n,a,i,o,r){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(e),s=c(t),l=c(n),p=c(o),u={name:"Accordion",extends:{name:"BaseAccordion",extends:c(r).default,props:{multiple:{type:Boolean,default:!1},activeIndex:{type:[Number,Array],default:null},lazy:{type:Boolean,default:!1},expandIcon:{type:String,default:void 0},collapseIcon:{type:String,default:void 0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:p.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:activeIndex","tab-open","tab-close","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex}},watch:{"$attrs.id":function(e){this.id=e||a.UniqueComponentId()},activeIndex:function(e){this.d_activeIndex=e}},
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.accordion=function(e,t,n,a,i,o,r){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(e),s=c(t),l=c(n),p=c(o),u={name:"Accordion",extends:{name:"BaseAccordion",extends:c(r).default,props:{multiple:{type:Boolean,default:!1},activeIndex:{type:[Number,Array],default:null},lazy:{type:Boolean,default:!1},expandIcon:{type:String,default:void 0},collapseIcon:{type:String,default:void 0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:p.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:activeIndex","tab-open","tab-close","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex}},watch:{"$attrs.id":{immediate:!0,handler:function(e){this.id=e||a.UniqueComponentId()}},activeIndex:function(e){this.d_activeIndex=e}},methods:{isAccordionTab:function(e){return"AccordionTab"===e.type.name},isTabActive:function(e){return this.multiple?this.d_activeIndex&&this.d_activeIndex.includes(e):this.d_activeIndex===e},getTabProp:function(e,t){return e.props?e.props[t]:void 0},getKey:function(e,t){return this.getTabProp(e,"header")||t},getTabHeaderActionId:function(e){return"".concat(this.id,"_").concat(e,"_header_action")},getTabContentId:function(e){return"".concat(this.id,"_").concat(e,"_content")},getTabPT:function(e,t,n){var a=this.tabs.length,o={props:e.props||{},parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:a,first:0===n,last:n===a-1,active:this.isTabActive(n)}};return i.mergeProps(this.ptm("tab.".concat(t),{tab:o}),this.ptm("accordiontab.".concat(t),{accordiontab:o}),this.ptm("accordiontab.".concat(t),o),this.ptmo(this.getTabProp(e,"pt"),t,o))},onTabClick:function(e,t,n){this.changeActiveIndex(e,t,n),this.$emit("tab-click",{originalEvent:e,index:n})},onTabKeyDown:function(e,t,n){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onTabEnterKey(e,t,n)}},onTabArrowDownKey:function(e){var t=this.findNextHeaderAction(e.target.parentElement.parentElement);t?this.changeFocusedTab(e,t):this.onTabHomeKey(e),e.preventDefault()},onTabArrowUpKey:function(e){var t=this.findPrevHeaderAction(e.target.parentElement.parentElement);t?this.changeFocusedTab(e,t):this.onTabEndKey(e),e.preventDefault()},onTabHomeKey:function(e){var t=this.findFirstHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEndKey:function(e){var t=this.findLastHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEnterKey:function(e,t,n){this.changeActiveIndex(e,t,n),e.preventDefault()},findNextHeaderAction:function(e){var t=a.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?a.DomHandler.getAttribute(t,"data-p-disabled")?this.findNextHeaderAction(t.parentElement):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findPrevHeaderAction:function(e){var t=a.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?a.DomHandler.getAttribute(t,"data-p-disabled")?this.findPrevHeaderAction(t.parentElement):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$el.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$el.lastElementChild,!0)},changeActiveIndex:function(e,t,n){if(!this.getTabProp(t,"disabled")){var a=this.isTabActive(n),i=a?"tab-close":"tab-open";this.multiple?a?this.d_activeIndex=this.d_activeIndex.filter((function(e){return e!==n})):this.d_activeIndex?this.d_activeIndex.push(n):this.d_activeIndex=[n]:this.d_activeIndex=this.d_activeIndex===n?null:n,this.$emit("update:activeIndex",this.d_activeIndex),this.$emit(i,{originalEvent:e,index:n})}},changeFocusedTab:function(e,t){if(t&&(a.DomHandler.focus(t),this.selectOnFocus)){var n=parseInt(t.parentElement.parentElement.dataset.pcIndex,10);this.changeActiveIndex(e,this.tabs[n],n)}}},computed:{tabs:function(){var e=this;return this.$slots.default().reduce((function(t,n){return e.isAccordionTab(n)?t.push(n):n.children&&n.children instanceof Array&&n.children.forEach((function(n){e.isAccordionTab(n)&&t.push(n)})),t}),[])}},components:{ChevronDownIcon:d.default,ChevronRightIcon:s.default},directives:{ripple:l.default}};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){var a;return(t="symbol"==b(a=v(t,"string"))?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=b(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var g=["data-pc-index","data-p-active"],y=["data-p-highlight","data-p-disabled"],T=["id","tabindex","aria-disabled","aria-expanded","aria-controls","onClick","onKeydown"],x=["id","aria-labelledby"];return u.render=function(e,t,n,a,o,r){return i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root")},e.ptmi("root")),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.tabs,(function(t,n){return i.openBlock(),i.createElementBlock("div",i.mergeProps({key:r.getKey(t,n),class:e.cx("tab.root",{tab:t,index:n})},r.getTabPT(t,"root",n),{"data-pc-name":"accordiontab","data-pc-index":n,"data-p-active":r.isTabActive(n)}),[i.createElementVNode("div",i.mergeProps({style:r.getTabProp(t,"headerStyle"),class:[e.cx("tab.header",{tab:t,index:n}),r.getTabProp(t,"headerClass")]},m(m({},r.getTabProp(t,"headerProps")),r.getTabPT(t,"header",n)),{"data-p-highlight":r.isTabActive(n),"data-p-disabled":r.getTabProp(t,"disabled")}),[i.createElementVNode("a",i.mergeProps({id:r.getTabHeaderActionId(n),class:e.cx("tab.headerAction"),tabindex:r.getTabProp(t,"disabled")?-1:e.tabindex,role:"button","aria-disabled":r.getTabProp(t,"disabled"),"aria-expanded":r.isTabActive(n),"aria-controls":r.getTabContentId(n),onClick:function(e){return r.onTabClick(e,t,n)},onKeydown:function(e){return r.onTabKeyDown(e,t,n)}},m(m({},r.getTabProp(t,"headeractionprops")),r.getTabPT(t,"headeraction",n))),[t.children&&t.children.headericon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.children.headericon),{key:0,isTabActive:r.isTabActive(n),active:r.isTabActive(n),index:n},null,8,["isTabActive","active","index"])):r.isTabActive(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.collapseicon?e.$slots.collapseicon:e.collapseIcon?"span":"ChevronDownIcon"),i.mergeProps({key:1,class:[e.cx("tab.headerIcon"),e.collapseIcon],"aria-hidden":"true"},r.getTabPT(t,"headericon",n)),null,16,["class"])):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.expandicon?e.$slots.expandicon:e.expandIcon?"span":"ChevronRightIcon"),i.mergeProps({key:2,class:[e.cx("tab.headerIcon"),e.expandIcon],"aria-hidden":"true"},r.getTabPT(t,"headericon",n)),null,16,["class"])),t.props&&t.props.header?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:3,class:e.cx("tab.headerTitle")},r.getTabPT(t,"headertitle",n)),i.toDisplayString(t.props.header),17)):i.createCommentVNode("",!0),t.children&&t.children.header?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.children.header),{key:4})):i.createCommentVNode("",!0)],16,T)],16,y),i.createVNode(i.Transition,i.mergeProps({name:"p-toggleable-content"},r.getTabPT(t,"transition",n)),{default:i.withCtx((function(){return[!e.lazy||r.isTabActive(n)?i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,id:r.getTabContentId(n),style:r.getTabProp(t,"contentStyle"),class:[e.cx("tab.toggleableContent"),r.getTabProp(t,"contentClass")],role:"region","aria-labelledby":r.getTabHeaderActionId(n)},m(m({},r.getTabProp(t,"contentProps")),r.getTabPT(t,"toggleablecontent",n))),[i.createElementVNode("div",i.mergeProps({class:e.cx("tab.content")},r.getTabPT(t,"content",n)),[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t)))],16)],16,x)),[[i.vShow,!!e.lazy||r.isTabActive(n)]]):i.createCommentVNode("",!0)]})),_:2},1040)],16,g)})),128))],16)},u}(primevue.icons.chevrondown,primevue.icons.chevronright,primevue.ripple,primevue.utils,Vue,primevue.accordion.style,primevue.basecomponent);
|
|
@@ -226,8 +226,8 @@ export interface AccordionTabEmits {}
|
|
|
226
226
|
*/
|
|
227
227
|
declare class AccordionTab extends ClassComponent<AccordionTabProps, AccordionTabSlots, AccordionTabEmits> {}
|
|
228
228
|
|
|
229
|
-
declare module '
|
|
230
|
-
interface GlobalComponents {
|
|
229
|
+
declare module 'vue' {
|
|
230
|
+
export interface GlobalComponents {
|
|
231
231
|
AccordionTab: GlobalComponentConstructor<AccordionTab>;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
@@ -769,8 +769,8 @@ export interface AutoCompleteEmits {
|
|
|
769
769
|
*/
|
|
770
770
|
declare class AutoComplete extends ClassComponent<AutoCompleteProps, AutoCompleteSlots, AutoCompleteEmits> {}
|
|
771
771
|
|
|
772
|
-
declare module '
|
|
773
|
-
interface GlobalComponents {
|
|
772
|
+
declare module 'vue' {
|
|
773
|
+
export interface GlobalComponents {
|
|
774
774
|
AutoComplete: GlobalComponentConstructor<AutoComplete>;
|
|
775
775
|
}
|
|
776
776
|
}
|
|
@@ -201,8 +201,11 @@ export default {
|
|
|
201
201
|
};
|
|
202
202
|
},
|
|
203
203
|
watch: {
|
|
204
|
-
'$attrs.id':
|
|
205
|
-
|
|
204
|
+
'$attrs.id': {
|
|
205
|
+
immediate: true,
|
|
206
|
+
handler: function (newValue) {
|
|
207
|
+
this.id = newValue || UniqueComponentId();
|
|
208
|
+
}
|
|
206
209
|
},
|
|
207
210
|
suggestions() {
|
|
208
211
|
if (this.searching) {
|
|
@@ -215,7 +218,6 @@ export default {
|
|
|
215
218
|
}
|
|
216
219
|
},
|
|
217
220
|
mounted() {
|
|
218
|
-
this.id = this.id || UniqueComponentId();
|
|
219
221
|
this.autoUpdateModel();
|
|
220
222
|
},
|
|
221
223
|
updated() {
|
|
@@ -771,8 +773,13 @@ export default {
|
|
|
771
773
|
isValidSelectedOption(option) {
|
|
772
774
|
return this.isValidOption(option) && this.isSelected(option);
|
|
773
775
|
},
|
|
776
|
+
isEquals(value1, value2) {
|
|
777
|
+
return ObjectUtils.equals(value1, value2, this.equalityKey);
|
|
778
|
+
},
|
|
774
779
|
isSelected(option) {
|
|
775
|
-
|
|
780
|
+
const optionValue = this.getOptionValue(option);
|
|
781
|
+
|
|
782
|
+
return this.multiple ? (this.modelValue || []).some((value) => this.isEquals(value, optionValue)) : this.isEquals(this.modelValue, this.getOptionValue(option));
|
|
776
783
|
},
|
|
777
784
|
findFirstOptionIndex() {
|
|
778
785
|
return this.visibleOptions.findIndex((option) => this.isValidOption(option));
|
|
@@ -241,8 +241,11 @@ var script = {
|
|
|
241
241
|
};
|
|
242
242
|
},
|
|
243
243
|
watch: {
|
|
244
|
-
'$attrs.id':
|
|
245
|
-
|
|
244
|
+
'$attrs.id': {
|
|
245
|
+
immediate: true,
|
|
246
|
+
handler: function handler(newValue) {
|
|
247
|
+
this.id = newValue || utils.UniqueComponentId();
|
|
248
|
+
}
|
|
246
249
|
},
|
|
247
250
|
suggestions: function suggestions() {
|
|
248
251
|
if (this.searching) {
|
|
@@ -254,7 +257,6 @@ var script = {
|
|
|
254
257
|
}
|
|
255
258
|
},
|
|
256
259
|
mounted: function mounted() {
|
|
257
|
-
this.id = this.id || utils.UniqueComponentId();
|
|
258
260
|
this.autoUpdateModel();
|
|
259
261
|
},
|
|
260
262
|
updated: function updated() {
|
|
@@ -750,39 +752,46 @@ var script = {
|
|
|
750
752
|
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
751
753
|
return this.isValidOption(option) && this.isSelected(option);
|
|
752
754
|
},
|
|
755
|
+
isEquals: function isEquals(value1, value2) {
|
|
756
|
+
return utils.ObjectUtils.equals(value1, value2, this.equalityKey);
|
|
757
|
+
},
|
|
753
758
|
isSelected: function isSelected(option) {
|
|
754
|
-
|
|
759
|
+
var _this8 = this;
|
|
760
|
+
var optionValue = this.getOptionValue(option);
|
|
761
|
+
return this.multiple ? (this.modelValue || []).some(function (value) {
|
|
762
|
+
return _this8.isEquals(value, optionValue);
|
|
763
|
+
}) : this.isEquals(this.modelValue, this.getOptionValue(option));
|
|
755
764
|
},
|
|
756
765
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
757
|
-
var
|
|
766
|
+
var _this9 = this;
|
|
758
767
|
return this.visibleOptions.findIndex(function (option) {
|
|
759
|
-
return
|
|
768
|
+
return _this9.isValidOption(option);
|
|
760
769
|
});
|
|
761
770
|
},
|
|
762
771
|
findLastOptionIndex: function findLastOptionIndex() {
|
|
763
|
-
var
|
|
772
|
+
var _this10 = this;
|
|
764
773
|
return utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
|
|
765
|
-
return
|
|
774
|
+
return _this10.isValidOption(option);
|
|
766
775
|
});
|
|
767
776
|
},
|
|
768
777
|
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
769
|
-
var
|
|
778
|
+
var _this11 = this;
|
|
770
779
|
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
771
|
-
return
|
|
780
|
+
return _this11.isValidOption(option);
|
|
772
781
|
}) : -1;
|
|
773
782
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
774
783
|
},
|
|
775
784
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
776
|
-
var
|
|
785
|
+
var _this12 = this;
|
|
777
786
|
var matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
778
|
-
return
|
|
787
|
+
return _this12.isValidOption(option);
|
|
779
788
|
}) : -1;
|
|
780
789
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
781
790
|
},
|
|
782
791
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
783
|
-
var
|
|
792
|
+
var _this13 = this;
|
|
784
793
|
return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
|
|
785
|
-
return
|
|
794
|
+
return _this13.isValidSelectedOption(option);
|
|
786
795
|
}) : -1;
|
|
787
796
|
},
|
|
788
797
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
@@ -810,12 +819,12 @@ var script = {
|
|
|
810
819
|
});
|
|
811
820
|
},
|
|
812
821
|
removeOption: function removeOption(event, index) {
|
|
813
|
-
var
|
|
822
|
+
var _this14 = this;
|
|
814
823
|
var removedOption = this.modelValue[index];
|
|
815
824
|
var value = this.modelValue.filter(function (_, i) {
|
|
816
825
|
return i !== index;
|
|
817
826
|
}).map(function (option) {
|
|
818
|
-
return
|
|
827
|
+
return _this14.getOptionValue(option);
|
|
819
828
|
});
|
|
820
829
|
this.updateModel(event, value);
|
|
821
830
|
this.$emit('item-unselect', {
|
|
@@ -835,18 +844,18 @@ var script = {
|
|
|
835
844
|
}
|
|
836
845
|
},
|
|
837
846
|
scrollInView: function scrollInView() {
|
|
838
|
-
var
|
|
847
|
+
var _this15 = this;
|
|
839
848
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
840
849
|
this.$nextTick(function () {
|
|
841
|
-
var id = index !== -1 ? "".concat(
|
|
842
|
-
var element = utils.DomHandler.findSingle(
|
|
850
|
+
var id = index !== -1 ? "".concat(_this15.id, "_").concat(index) : _this15.focusedOptionId;
|
|
851
|
+
var element = utils.DomHandler.findSingle(_this15.list, "li[id=\"".concat(id, "\"]"));
|
|
843
852
|
if (element) {
|
|
844
853
|
element.scrollIntoView && element.scrollIntoView({
|
|
845
854
|
block: 'nearest',
|
|
846
855
|
inline: 'start'
|
|
847
856
|
});
|
|
848
|
-
} else if (!
|
|
849
|
-
|
|
857
|
+
} else if (!_this15.virtualScrollerDisabled) {
|
|
858
|
+
_this15.virtualScroller && _this15.virtualScroller.scrollToIndex(index !== -1 ? index : _this15.focusedOptionIndex);
|
|
850
859
|
}
|
|
851
860
|
});
|
|
852
861
|
},
|
|
@@ -864,14 +873,14 @@ var script = {
|
|
|
864
873
|
});
|
|
865
874
|
},
|
|
866
875
|
flatOptions: function flatOptions(options) {
|
|
867
|
-
var
|
|
876
|
+
var _this16 = this;
|
|
868
877
|
return (options || []).reduce(function (result, option, index) {
|
|
869
878
|
result.push({
|
|
870
879
|
optionGroup: option,
|
|
871
880
|
group: true,
|
|
872
881
|
index: index
|
|
873
882
|
});
|
|
874
|
-
var optionGroupChildren =
|
|
883
|
+
var optionGroupChildren = _this16.getOptionGroupChildren(option);
|
|
875
884
|
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
876
885
|
return result.push(o);
|
|
877
886
|
});
|
|
@@ -936,9 +945,9 @@ var script = {
|
|
|
936
945
|
return this.focusedMultipleOptionIndex !== -1 ? "".concat(this.id, "_multiple_option_").concat(this.focusedMultipleOptionIndex) : null;
|
|
937
946
|
},
|
|
938
947
|
ariaSetSize: function ariaSetSize() {
|
|
939
|
-
var
|
|
948
|
+
var _this17 = this;
|
|
940
949
|
return this.visibleOptions.filter(function (option) {
|
|
941
|
-
return !
|
|
950
|
+
return !_this17.isOptionGroup(option);
|
|
942
951
|
}).length;
|
|
943
952
|
},
|
|
944
953
|
virtualScrollerDisabled: function virtualScrollerDisabled() {
|