primevue 3.29.2 → 3.30.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/README.md +15 -9
- package/accordion/Accordion.d.ts +17 -0
- package/accordion/Accordion.vue +38 -92
- package/accordion/BaseAccordion.vue +93 -0
- package/accordion/accordion.cjs.js +340 -330
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +339 -329
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +340 -331
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +28 -0
- package/accordiontab/AccordionTab.vue +2 -13
- package/accordiontab/BaseAccordionTab.vue +24 -0
- package/accordiontab/accordiontab.cjs.js +24 -14
- package/accordiontab/accordiontab.cjs.min.js +1 -1
- package/accordiontab/accordiontab.esm.js +24 -14
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +24 -14
- package/accordiontab/accordiontab.min.js +1 -1
- package/api/api.cjs.js +475 -500
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +475 -500
- package/api/api.esm.min.js +1 -1
- package/api/api.js +475 -500
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +23 -2
- package/autocomplete/AutoComplete.vue +40 -322
- package/autocomplete/BaseAutoComplete.vue +322 -0
- package/autocomplete/autocomplete.cjs.js +1290 -1237
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +1291 -1238
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +1290 -1238
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +14 -0
- package/avatar/Avatar.vue +13 -81
- package/avatar/BaseAvatar.vue +96 -0
- package/avatar/avatar.cjs.js +101 -110
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +102 -111
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +102 -112
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +11 -0
- package/avatargroup/AvatarGroup.vue +3 -14
- package/avatargroup/BaseAvatarGroup.vue +35 -0
- package/avatargroup/avatargroup.cjs.js +31 -35
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +31 -35
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +32 -37
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/Badge.d.ts +12 -0
- package/badge/Badge.vue +3 -38
- package/badge/BaseBadge.vue +86 -0
- package/badge/badge.cjs.js +59 -40
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +59 -40
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +60 -42
- package/badge/badge.min.js +1 -1
- package/badgedirective/BadgeDirective.d.ts +43 -1
- package/badgedirective/badgedirective.cjs.js +66 -45
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +64 -47
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +66 -47
- package/badgedirective/badgedirective.min.js +1 -1
- package/base/base.cjs.js +18 -0
- package/base/base.cjs.min.js +1 -0
- package/base/base.esm.js +13 -0
- package/base/base.esm.min.js +1 -0
- package/base/base.js +22 -0
- package/base/base.min.js +1 -0
- package/base/package.json +5 -0
- package/basecomponent/BaseComponent.d.ts +23 -0
- package/basecomponent/BaseComponent.vue +462 -12
- package/basecomponent/basecomponent.cjs.js +170 -36
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +170 -36
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +170 -38
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/package.json +1 -0
- package/basedirective/BaseDirective.d.ts +38 -0
- package/basedirective/basedirective.cjs.js +157 -0
- package/basedirective/basedirective.cjs.min.js +1 -0
- package/basedirective/basedirective.esm.js +155 -0
- package/basedirective/basedirective.esm.min.js +1 -0
- package/basedirective/basedirective.js +157 -0
- package/basedirective/basedirective.min.js +1 -0
- package/basedirective/package.json +6 -0
- package/baseicon/baseicon.cjs.js +22 -26
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +22 -26
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +22 -26
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BaseBlockUI.vue +64 -0
- package/blockui/BlockUI.d.ts +12 -0
- package/blockui/BlockUI.vue +10 -48
- package/blockui/blockui.cjs.js +103 -115
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +103 -115
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +103 -116
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/BaseBreadcrumb.vue +85 -0
- package/breadcrumb/Breadcrumb.d.ts +12 -0
- package/breadcrumb/Breadcrumb.vue +6 -54
- package/breadcrumb/BreadcrumbItem.vue +10 -21
- package/breadcrumb/breadcrumb.cjs.js +198 -219
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +198 -219
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +198 -220
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/BaseButton.vue +115 -0
- package/button/Button.d.ts +24 -0
- package/button/Button.vue +21 -121
- package/button/button.cjs.js +176 -174
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +174 -173
- package/button/button.esm.min.js +1 -1
- package/button/button.js +176 -175
- package/button/button.min.js +1 -1
- package/calendar/BaseCalendar.vue +453 -0
- package/calendar/Calendar.d.ts +24 -12
- package/calendar/Calendar.vue +127 -491
- package/calendar/calendar.cjs.js +3115 -3197
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +3115 -3197
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +3115 -3198
- package/calendar/calendar.min.js +1 -1
- package/card/BaseCard.vue +21 -0
- package/card/Card.d.ts +11 -0
- package/card/Card.vue +9 -9
- package/card/card.cjs.js +40 -41
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +40 -41
- package/card/card.esm.min.js +1 -1
- package/card/card.js +40 -41
- package/card/card.min.js +1 -1
- package/carousel/BaseCarousel.vue +197 -0
- package/carousel/Carousel.d.ts +12 -0
- package/carousel/Carousel.vue +36 -188
- package/carousel/carousel.cjs.js +705 -737
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +704 -736
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +705 -738
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +257 -0
- package/cascadeselect/CascadeSelect.d.ts +19 -7
- package/cascadeselect/CascadeSelect.vue +18 -242
- package/cascadeselect/CascadeSelectSub.vue +15 -22
- package/cascadeselect/cascadeselect.cjs.js +1143 -1083
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +1143 -1083
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1143 -1084
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/BaseChart.vue +48 -0
- package/chart/Chart.d.ts +12 -0
- package/chart/Chart.vue +3 -27
- package/chart/chart.cjs.js +144 -135
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +144 -135
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +145 -137
- package/chart/chart.min.js +1 -1
- package/checkbox/BaseCheckbox.vue +93 -0
- package/checkbox/Checkbox.d.ts +41 -0
- package/checkbox/Checkbox.vue +16 -74
- package/checkbox/checkbox.cjs.js +201 -140
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +201 -140
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +202 -141
- package/checkbox/checkbox.min.js +1 -1
- package/chip/BaseChip.vue +78 -0
- package/chip/Chip.d.ts +12 -0
- package/chip/Chip.vue +7 -63
- package/chip/chip.cjs.js +106 -129
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +105 -128
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +106 -130
- package/chip/chip.min.js +1 -1
- package/chips/BaseChips.vue +143 -0
- package/chips/Chips.d.ts +12 -0
- package/chips/Chips.vue +11 -127
- package/chips/chips.cjs.js +368 -344
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +368 -344
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +368 -345
- package/chips/chips.min.js +1 -1
- package/colorpicker/BaseColorPicker.vue +89 -0
- package/colorpicker/ColorPicker.d.ts +14 -2
- package/colorpicker/ColorPicker.vue +16 -34
- package/colorpicker/colorpicker.cjs.js +699 -650
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +698 -649
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +699 -651
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/BaseColumn.vue +191 -0
- package/column/Column.d.ts +56 -29
- package/column/Column.vue +2 -180
- package/column/column.cjs.js +193 -183
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +193 -183
- package/column/column.esm.min.js +1 -1
- package/column/column.js +193 -183
- package/column/column.min.js +1 -1
- package/columngroup/BaseColumnGroup.vue +19 -0
- package/columngroup/ColumnGroup.d.ts +23 -0
- package/columngroup/ColumnGroup.vue +2 -8
- package/columngroup/columngroup.cjs.js +21 -11
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +21 -11
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +21 -11
- package/columngroup/columngroup.min.js +1 -1
- package/config/PrimeVue.d.ts +15 -1
- package/config/config.cjs.js +167 -168
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +167 -168
- package/config/config.esm.min.js +1 -1
- package/config/config.js +167 -168
- package/config/config.min.js +1 -1
- package/confirmationservice/confirmationservice.cjs.js +12 -13
- package/confirmationservice/confirmationservice.cjs.min.js +1 -1
- package/confirmationservice/confirmationservice.esm.js +12 -13
- package/confirmationservice/confirmationservice.esm.min.js +1 -1
- package/confirmationservice/confirmationservice.js +12 -13
- package/confirmationservice/confirmationservice.min.js +1 -1
- package/confirmdialog/BaseConfirmDialog.vue +35 -0
- package/confirmdialog/ConfirmDialog.d.ts +12 -0
- package/confirmdialog/ConfirmDialog.vue +18 -33
- package/confirmdialog/confirmdialog.cjs.js +213 -183
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +213 -183
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +214 -184
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/BaseConfirmPopup.vue +111 -0
- package/confirmpopup/ConfirmPopup.d.ts +12 -0
- package/confirmpopup/ConfirmPopup.vue +21 -109
- package/confirmpopup/confirmpopup.cjs.js +375 -377
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +375 -377
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +375 -378
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/BaseContextMenu.vue +133 -0
- package/contextmenu/ContextMenu.d.ts +16 -0
- package/contextmenu/ContextMenu.vue +6 -93
- package/contextmenu/ContextMenuSub.vue +24 -58
- package/contextmenu/contextmenu.cjs.js +989 -951
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +988 -950
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +989 -952
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +12138 -11708
- package/core/core.min.js +76 -70
- package/datatable/BaseDataTable.vue +740 -0
- package/datatable/BodyCell.vue +48 -35
- package/datatable/ColumnFilter.vue +74 -59
- package/datatable/DataTable.d.ts +31 -8
- package/datatable/DataTable.vue +82 -593
- package/datatable/FooterCell.vue +15 -11
- package/datatable/HeaderCell.vue +30 -24
- package/datatable/HeaderCheckbox.vue +8 -7
- package/datatable/RowCheckbox.vue +13 -7
- package/datatable/RowRadioButton.vue +13 -7
- package/datatable/TableBody.vue +24 -35
- package/datatable/TableFooter.vue +20 -9
- package/datatable/TableHeader.vue +32 -21
- package/datatable/datatable.cjs.js +5908 -5739
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +5908 -5739
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +5908 -5740
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +100 -0
- package/dataview/DataView.d.ts +16 -0
- package/dataview/DataView.vue +13 -86
- package/dataview/dataview.cjs.js +291 -295
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +290 -294
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +292 -296
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +12 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +5 -14
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +91 -75
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +90 -74
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +92 -76
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/deferredcontent/DeferredContent.d.ts +12 -0
- package/deferredcontent/deferredcontent.cjs.js +49 -51
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +49 -51
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +49 -51
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/BaseDialog.vue +319 -0
- package/dialog/Dialog.d.ts +12 -0
- package/dialog/Dialog.vue +23 -339
- package/dialog/dialog.cjs.js +591 -603
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +590 -602
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +591 -604
- package/dialog/dialog.min.js +1 -1
- package/dialogservice/dialogservice.cjs.js +24 -21
- package/dialogservice/dialogservice.cjs.min.js +1 -1
- package/dialogservice/dialogservice.esm.js +23 -20
- package/dialogservice/dialogservice.esm.min.js +1 -1
- package/dialogservice/dialogservice.js +24 -21
- package/dialogservice/dialogservice.min.js +1 -1
- package/divider/BaseDivider.vue +136 -0
- package/divider/Divider.d.ts +12 -0
- package/divider/Divider.vue +4 -120
- package/divider/divider.cjs.js +64 -74
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +64 -74
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +65 -76
- package/divider/divider.min.js +1 -1
- package/dock/BaseDock.vue +185 -0
- package/dock/Dock.d.ts +12 -0
- package/dock/Dock.vue +3 -146
- package/dock/DockSub.vue +19 -39
- package/dock/dock.cjs.js +423 -411
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +424 -412
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +424 -413
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +313 -0
- package/dropdown/Dropdown.d.ts +17 -1
- package/dropdown/Dropdown.vue +60 -320
- package/dropdown/dropdown.cjs.js +1261 -1226
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1261 -1226
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1261 -1227
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +7 -1
- package/dynamicdialog/DynamicDialog.vue +3 -3
- package/dynamicdialog/dynamicdialog.cjs.js +90 -89
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +90 -89
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +90 -89
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/editor/BaseEditor.vue +996 -0
- package/editor/Editor.d.ts +57 -5
- package/editor/Editor.vue +25 -981
- package/editor/editor.cjs.js +241 -236
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +241 -236
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +241 -237
- package/editor/editor.min.js +1 -1
- package/fieldset/BaseFieldset.vue +65 -0
- package/fieldset/Fieldset.d.ts +12 -0
- package/fieldset/Fieldset.vue +9 -39
- package/fieldset/fieldset.cjs.js +150 -140
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +149 -139
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +150 -141
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/BaseFileUpload.vue +189 -0
- package/fileupload/FileContent.vue +10 -8
- package/fileupload/FileUpload.d.ts +12 -4
- package/fileupload/FileUpload.vue +29 -190
- package/fileupload/fileupload.cjs.js +817 -790
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +817 -790
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +817 -790
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +44 -0
- package/focustrap/focustrap.cjs.js +116 -102
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +116 -106
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +117 -104
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/BaseGalleria.vue +499 -0
- package/galleria/Galleria.d.ts +12 -0
- package/galleria/Galleria.vue +6 -413
- package/galleria/GalleriaContent.vue +8 -22
- package/galleria/GalleriaItem.vue +13 -27
- package/galleria/GalleriaThumbnails.vue +32 -56
- package/galleria/galleria.cjs.js +1164 -1247
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +1164 -1247
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +1164 -1248
- package/galleria/galleria.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -9
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -9
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -9
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -9
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -9
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -9
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -9
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -9
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -9
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -9
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -9
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -9
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -9
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -9
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -9
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -9
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -9
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -9
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -9
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -9
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -9
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -9
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -9
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -9
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +29 -26
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +29 -26
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +30 -28
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +10 -3
- package/icons/arrowup/index.cjs.js +29 -26
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +29 -26
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +30 -28
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +10 -3
- package/icons/ban/index.cjs.js +27 -24
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +27 -24
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +28 -26
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +10 -3
- package/icons/bars/index.cjs.js +6 -9
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -9
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -9
- package/icons/bars/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -9
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -9
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -9
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -9
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -9
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -9
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -9
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -9
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -9
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -9
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -9
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -9
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -9
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -9
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -9
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -9
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -9
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -9
- package/icons/chevronup/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +35 -9
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +36 -10
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +36 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +10 -3
- package/icons/eye/index.cjs.js +6 -9
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -9
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -9
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +29 -26
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +29 -26
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +30 -28
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +10 -3
- package/icons/filter/index.cjs.js +27 -24
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +27 -24
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +28 -26
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +10 -3
- package/icons/filterslash/index.cjs.js +29 -26
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +29 -26
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +30 -28
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +10 -3
- package/icons/infocircle/index.cjs.js +29 -26
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +29 -26
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +30 -28
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +10 -3
- package/icons/minus/index.cjs.js +6 -9
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -9
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -9
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +27 -24
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +27 -24
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +28 -26
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +10 -3
- package/icons/plus/index.cjs.js +27 -24
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +27 -24
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +28 -26
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +10 -3
- package/icons/refresh/index.cjs.js +29 -26
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +29 -26
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +30 -28
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +10 -3
- package/icons/search/index.cjs.js +29 -26
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +29 -26
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +30 -28
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +10 -3
- package/icons/searchminus/index.cjs.js +29 -26
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +29 -26
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +30 -28
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +10 -3
- package/icons/searchplus/index.cjs.js +29 -26
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +29 -26
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +30 -28
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +10 -3
- package/icons/sortalt/index.cjs.js +39 -9
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +40 -10
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +40 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +10 -3
- package/icons/sortamountdown/index.cjs.js +24 -9
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +25 -10
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +25 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +10 -3
- package/icons/sortamountupalt/index.cjs.js +24 -9
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +25 -10
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +25 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +10 -3
- package/icons/spinner/index.cjs.js +27 -24
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +27 -24
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +28 -26
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +10 -3
- package/icons/star/index.cjs.js +27 -24
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +27 -24
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +28 -26
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +10 -3
- package/icons/starfill/index.cjs.js +27 -24
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +27 -24
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +28 -26
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +10 -3
- package/icons/thlarge/index.cjs.js +29 -26
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +29 -26
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +30 -28
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +10 -3
- package/icons/times/index.cjs.js +6 -9
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -9
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -9
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +29 -26
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +29 -26
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +30 -28
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +10 -3
- package/icons/trash/index.cjs.js +29 -26
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +29 -26
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +30 -28
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +10 -3
- package/icons/undo/index.cjs.js +29 -26
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +29 -26
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +30 -28
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +10 -3
- package/icons/upload/index.cjs.js +29 -26
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +29 -26
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +30 -28
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +10 -3
- package/icons/windowmaximize/index.cjs.js +29 -26
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +29 -26
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +30 -28
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +10 -3
- package/icons/windowminimize/index.cjs.js +29 -26
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +29 -26
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +30 -28
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +10 -3
- package/image/BaseImage.vue +153 -0
- package/image/Image.d.ts +12 -0
- package/image/Image.vue +17 -130
- package/image/image.cjs.js +385 -379
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +385 -379
- package/image/image.esm.min.js +1 -1
- package/image/image.js +385 -380
- package/image/image.min.js +1 -1
- package/inlinemessage/BaseInlineMessage.vue +54 -0
- package/inlinemessage/InlineMessage.d.ts +12 -0
- package/inlinemessage/InlineMessage.vue +5 -36
- package/inlinemessage/inlinemessage.cjs.js +80 -80
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +80 -80
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +81 -82
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/BaseInplace.vue +72 -0
- package/inplace/Inplace.d.ts +12 -0
- package/inplace/Inplace.vue +6 -58
- package/inplace/inplace.cjs.js +145 -145
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +144 -144
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +145 -146
- package/inplace/inplace.min.js +1 -1
- package/inputmask/BaseInputMask.vue +43 -0
- package/inputmask/InputMask.d.ts +11 -0
- package/inputmask/InputMask.vue +3 -34
- package/inputmask/inputmask.cjs.js +464 -519
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +464 -519
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +465 -520
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/BaseInputNumber.vue +288 -0
- package/inputnumber/InputNumber.d.ts +12 -0
- package/inputnumber/InputNumber.vue +50 -283
- package/inputnumber/inputnumber.cjs.js +1113 -1157
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +1112 -1156
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +1113 -1158
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +101 -0
- package/inputswitch/InputSwitch.d.ts +17 -0
- package/inputswitch/InputSwitch.vue +6 -83
- package/inputswitch/inputswitch.cjs.js +149 -138
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +149 -138
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +150 -140
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/BaseInputText.vue +34 -0
- package/inputtext/InputText.d.ts +15 -0
- package/inputtext/InputText.vue +10 -6
- package/inputtext/inputtext.cjs.js +58 -20
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +58 -20
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +58 -20
- package/inputtext/inputtext.min.js +1 -1
- package/knob/BaseKnob.vue +114 -0
- package/knob/Knob.d.ts +12 -0
- package/knob/Knob.vue +6 -101
- package/knob/knob.cjs.js +316 -326
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +316 -326
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +317 -328
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +156 -0
- package/listbox/Listbox.d.ts +12 -0
- package/listbox/Listbox.vue +45 -141
- package/listbox/listbox.cjs.js +925 -877
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +925 -877
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +925 -878
- package/listbox/listbox.min.js +1 -1
- package/megamenu/BaseMegaMenu.vue +238 -0
- package/megamenu/MegaMenu.d.ts +16 -0
- package/megamenu/MegaMenu.vue +6 -129
- package/megamenu/MegaMenuSub.vue +27 -91
- package/megamenu/megamenu.cjs.js +1028 -979
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1029 -980
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1028 -980
- package/megamenu/megamenu.min.js +1 -1
- package/menu/BaseMenu.vue +112 -0
- package/menu/Menu.d.ts +12 -0
- package/menu/Menu.vue +15 -92
- package/menu/Menuitem.vue +22 -27
- package/menu/menu.cjs.js +609 -651
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +608 -650
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +609 -652
- package/menu/menu.min.js +1 -1
- package/menubar/BaseMenubar.vue +155 -0
- package/menubar/Menubar.d.ts +16 -0
- package/menubar/Menubar.vue +11 -110
- package/menubar/MenubarSub.vue +19 -55
- package/menubar/menubar.cjs.js +970 -923
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +970 -923
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +970 -924
- package/menubar/menubar.min.js +1 -1
- package/message/BaseMessage.vue +105 -0
- package/message/Message.d.ts +12 -0
- package/message/Message.vue +10 -89
- package/message/message.cjs.js +150 -154
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +149 -153
- package/message/message.esm.min.js +1 -1
- package/message/message.js +150 -155
- package/message/message.min.js +1 -1
- package/multiselect/BaseMultiSelect.vue +363 -0
- package/multiselect/MultiSelect.d.ts +12 -5
- package/multiselect/MultiSelect.vue +76 -373
- package/multiselect/multiselect.cjs.js +1513 -1449
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1513 -1449
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1513 -1450
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +146 -0
- package/orderlist/OrderList.d.ts +12 -0
- package/orderlist/OrderList.vue +35 -156
- package/orderlist/orderlist.cjs.js +627 -686
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +626 -685
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +627 -687
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/BaseOrganizationChart.vue +111 -0
- package/organizationchart/OrganizationChart.d.ts +12 -0
- package/organizationchart/OrganizationChart.vue +4 -80
- package/organizationchart/OrganizationChartNode.vue +15 -16
- package/organizationchart/organizationchart.cjs.js +315 -313
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +315 -313
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +316 -315
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/BaseOverlayPanel.vue +135 -0
- package/overlaypanel/OverlayPanel.d.ts +12 -0
- package/overlaypanel/OverlayPanel.vue +10 -122
- package/overlaypanel/overlaypanel.cjs.js +352 -374
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +351 -373
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +352 -375
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/BasePaginator.vue +147 -0
- package/paginator/CurrentPageReport.vue +2 -1
- package/paginator/FirstPageLink.vue +3 -12
- package/paginator/JumpToPageDropdown.vue +13 -1
- package/paginator/JumpToPageInput.vue +12 -1
- package/paginator/LastPageLink.vue +3 -12
- package/paginator/NextPageLink.vue +3 -12
- package/paginator/PageLinks.vue +4 -2
- package/paginator/Paginator.d.ts +41 -5
- package/paginator/Paginator.vue +19 -93
- package/paginator/PrevPageLink.vue +3 -12
- package/paginator/RowsPerPageDropdown.vue +13 -1
- package/paginator/paginator.cjs.js +753 -782
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +754 -783
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +753 -783
- package/paginator/paginator.min.js +1 -1
- package/panel/BasePanel.vue +67 -0
- package/panel/Panel.d.ts +12 -0
- package/panel/Panel.vue +11 -45
- package/panel/panel.cjs.js +151 -154
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +151 -154
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +151 -155
- package/panel/panel.min.js +1 -1
- package/panelmenu/BasePanelMenu.vue +118 -0
- package/panelmenu/PanelMenu.d.ts +16 -0
- package/panelmenu/PanelMenu.vue +28 -104
- package/panelmenu/PanelMenuList.vue +5 -3
- package/panelmenu/PanelMenuSub.vue +29 -49
- package/panelmenu/panelmenu.cjs.js +1034 -1007
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +1034 -1007
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +1034 -1008
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/BasePassword.vue +180 -0
- package/password/Password.d.ts +16 -0
- package/password/Password.vue +12 -176
- package/password/password.cjs.js +473 -479
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +472 -478
- package/password/password.esm.min.js +1 -1
- package/password/password.js +473 -480
- package/password/password.min.js +1 -1
- package/picklist/BasePickList.vue +167 -0
- package/picklist/PickList.d.ts +14 -2
- package/picklist/PickList.vue +46 -175
- package/picklist/picklist.cjs.js +1060 -1108
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +1059 -1107
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +1060 -1109
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +28 -32
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +28 -32
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +28 -32
- package/portal/portal.min.js +1 -1
- package/progressbar/BaseProgressBar.vue +158 -0
- package/progressbar/ProgressBar.d.ts +12 -0
- package/progressbar/ProgressBar.vue +7 -141
- package/progressbar/progressbar.cjs.js +80 -100
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +80 -100
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +81 -102
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/BaseProgressSpinner.vue +68 -0
- package/progressspinner/ProgressSpinner.d.ts +12 -0
- package/progressspinner/ProgressSpinner.vue +5 -47
- package/progressspinner/progressspinner.cjs.js +65 -72
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +65 -72
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +66 -74
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/BaseRadioButton.vue +72 -0
- package/radiobutton/RadioButton.d.ts +17 -0
- package/radiobutton/RadioButton.vue +7 -68
- package/radiobutton/radiobutton.cjs.js +145 -106
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +145 -106
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +146 -107
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/BaseRating.vue +98 -0
- package/rating/Rating.d.ts +30 -1
- package/rating/Rating.vue +13 -76
- package/rating/rating.cjs.js +238 -206
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +238 -206
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +238 -207
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +3 -521
- package/resources/primevue.min.css +3 -1
- package/ripple/Ripple.d.ts +48 -1
- package/ripple/ripple.cjs.js +102 -82
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +100 -84
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +102 -84
- package/ripple/ripple.min.js +1 -1
- package/row/Row.d.ts +25 -1
- package/row/row.cjs.js +5 -5
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +5 -5
- package/row/row.esm.min.js +1 -1
- package/row/row.js +5 -5
- package/row/row.min.js +1 -1
- package/scrollpanel/BaseScrollPanel.vue +92 -0
- package/scrollpanel/ScrollPanel.d.ts +12 -0
- package/scrollpanel/ScrollPanel.vue +29 -82
- package/scrollpanel/scrollpanel.cjs.js +370 -358
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +370 -358
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +370 -359
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/BaseScrollTop.vue +78 -0
- package/scrolltop/ScrollTop.d.ts +12 -0
- package/scrolltop/ScrollTop.vue +5 -61
- package/scrolltop/scrolltop.cjs.js +140 -147
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +140 -147
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +140 -148
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/BaseSelectButton.vue +46 -0
- package/selectbutton/SelectButton.d.ts +12 -0
- package/selectbutton/SelectButton.vue +11 -44
- package/selectbutton/selectbutton.cjs.js +241 -209
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +241 -209
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +242 -210
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/BaseSidebar.vue +255 -0
- package/sidebar/Sidebar.d.ts +12 -0
- package/sidebar/Sidebar.vue +10 -251
- package/sidebar/sidebar.cjs.js +316 -329
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +315 -328
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +316 -330
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/BaseSkeleton.vue +96 -0
- package/skeleton/Skeleton.d.ts +12 -0
- package/skeleton/Skeleton.vue +3 -74
- package/skeleton/skeleton.cjs.js +81 -75
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +81 -75
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +82 -77
- package/skeleton/skeleton.min.js +1 -1
- package/slider/BaseSlider.vue +118 -0
- package/slider/Slider.d.ts +12 -0
- package/slider/Slider.vue +13 -104
- package/slider/slider.cjs.js +411 -400
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +411 -400
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +411 -401
- package/slider/slider.min.js +1 -1
- package/speeddial/BaseSpeedDial.vue +234 -0
- package/speeddial/SpeedDial.d.ts +12 -0
- package/speeddial/SpeedDial.vue +19 -237
- package/speeddial/speeddial.cjs.js +607 -614
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +606 -613
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +607 -615
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/BaseSplitButton.vue +149 -0
- package/splitbutton/SplitButton.d.ts +24 -2
- package/splitbutton/SplitButton.vue +17 -135
- package/splitbutton/splitbutton.cjs.js +230 -220
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +230 -220
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +230 -221
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/BaseSplitter.vue +101 -0
- package/splitter/Splitter.d.ts +12 -0
- package/splitter/Splitter.vue +13 -97
- package/splitter/splitter.cjs.js +427 -409
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +427 -409
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +427 -410
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/BaseSplitterPanel.vue +49 -0
- package/splitterpanel/SplitterPanel.d.ts +12 -0
- package/splitterpanel/SplitterPanel.vue +3 -16
- package/splitterpanel/splitterpanel.cjs.js +52 -26
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +52 -26
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +53 -28
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/steps/BaseSteps.vue +112 -0
- package/steps/Steps.d.ts +12 -0
- package/steps/Steps.vue +14 -110
- package/steps/steps.cjs.js +248 -260
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +248 -260
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +248 -261
- package/steps/steps.min.js +1 -1
- package/styleclass/StyleClass.d.ts +17 -0
- package/styleclass/styleclass.cjs.js +117 -141
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +113 -141
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +117 -142
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/BaseTabMenu.vue +100 -0
- package/tabmenu/TabMenu.d.ts +12 -0
- package/tabmenu/TabMenu.vue +39 -107
- package/tabmenu/tabmenu.cjs.js +365 -394
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +364 -393
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +365 -395
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/BaseTabPanel.vue +19 -0
- package/tabpanel/TabPanel.d.ts +19 -0
- package/tabpanel/TabPanel.vue +3 -13
- package/tabpanel/tabpanel.cjs.js +19 -14
- package/tabpanel/tabpanel.cjs.min.js +1 -1
- package/tabpanel/tabpanel.esm.js +19 -14
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +19 -14
- package/tabpanel/tabpanel.min.js +1 -1
- package/tabview/BaseTabView.vue +159 -0
- package/tabview/TabView.d.ts +16 -0
- package/tabview/TabView.vue +53 -172
- package/tabview/tabview.cjs.js +459 -459
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +458 -458
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +459 -460
- package/tabview/tabview.min.js +1 -1
- package/tag/BaseTag.vue +59 -0
- package/tag/Tag.d.ts +12 -0
- package/tag/Tag.vue +6 -47
- package/tag/tag.cjs.js +58 -71
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +58 -71
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +59 -73
- package/tag/tag.min.js +1 -1
- package/terminal/BaseTerminal.vue +65 -0
- package/terminal/Terminal.d.ts +12 -0
- package/terminal/Terminal.vue +10 -45
- package/terminal/terminal.cjs.js +112 -107
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +111 -106
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +112 -108
- package/terminal/terminal.min.js +1 -1
- package/textarea/BaseTextarea.vue +45 -0
- package/textarea/Textarea.d.ts +12 -0
- package/textarea/Textarea.vue +3 -18
- package/textarea/textarea.cjs.js +80 -79
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +80 -79
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +81 -81
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/BaseTieredMenu.vue +142 -0
- package/tieredmenu/TieredMenu.d.ts +16 -0
- package/tieredmenu/TieredMenu.vue +5 -105
- package/tieredmenu/TieredMenuSub.vue +23 -50
- package/tieredmenu/tieredmenu.cjs.js +987 -941
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +987 -941
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +987 -942
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/BaseTimeline.vue +155 -0
- package/timeline/Timeline.d.ts +11 -0
- package/timeline/Timeline.vue +9 -139
- package/timeline/timeline.cjs.js +87 -90
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +87 -90
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +87 -91
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +181 -0
- package/toast/Toast.d.ts +12 -0
- package/toast/Toast.vue +4 -155
- package/toast/ToastMessage.vue +9 -31
- package/toast/toast.cjs.js +389 -380
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +388 -379
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +389 -381
- package/toast/toast.min.js +1 -1
- package/toastservice/toastservice.cjs.js +15 -16
- package/toastservice/toastservice.cjs.min.js +1 -1
- package/toastservice/toastservice.esm.js +15 -16
- package/toastservice/toastservice.esm.min.js +1 -1
- package/toastservice/toastservice.js +15 -16
- package/toastservice/toastservice.min.js +1 -1
- package/togglebutton/BaseToggleButton.vue +85 -0
- package/togglebutton/ToggleButton.d.ts +12 -0
- package/togglebutton/ToggleButton.vue +7 -77
- package/togglebutton/togglebutton.cjs.js +193 -170
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +192 -169
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +194 -171
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/BaseToolbar.vue +55 -0
- package/toolbar/Toolbar.d.ts +12 -0
- package/toolbar/Toolbar.vue +7 -34
- package/toolbar/toolbar.cjs.js +50 -52
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +50 -52
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +51 -54
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/Tooltip.d.ts +44 -0
- package/tooltip/tooltip.cjs.js +379 -400
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +379 -404
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +409 -432
- package/tooltip/tooltip.min.js +1 -1
- package/tree/BaseTree.vue +211 -0
- package/tree/Tree.d.ts +32 -10
- package/tree/Tree.vue +13 -173
- package/tree/TreeNode.vue +23 -45
- package/tree/tree.cjs.js +852 -855
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +852 -855
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +852 -856
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +184 -0
- package/treeselect/TreeSelect.d.ts +19 -2
- package/treeselect/TreeSelect.vue +21 -180
- package/treeselect/treeselect.cjs.js +675 -622
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +675 -622
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +675 -623
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +434 -0
- package/treetable/BodyCell.vue +30 -29
- package/treetable/FooterCell.vue +15 -11
- package/treetable/HeaderCell.vue +26 -21
- package/treetable/TreeTable.d.ts +29 -4
- package/treetable/TreeTable.vue +37 -379
- package/treetable/TreeTableRow.vue +9 -11
- package/treetable/treetable.cjs.js +2104 -2129
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +2104 -2129
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +2104 -2130
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
- package/tristatecheckbox/TriStateCheckbox.d.ts +33 -6
- package/tristatecheckbox/TriStateCheckbox.vue +12 -49
- package/tristatecheckbox/tristatecheckbox.cjs.js +196 -144
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +196 -144
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +197 -145
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/useconfirm/useconfirm.cjs.js +6 -9
- package/useconfirm/useconfirm.cjs.min.js +1 -1
- package/useconfirm/useconfirm.esm.js +6 -9
- package/useconfirm/useconfirm.esm.min.js +1 -1
- package/useconfirm/useconfirm.js +6 -9
- package/useconfirm/useconfirm.min.js +1 -1
- package/usedialog/usedialog.cjs.js +6 -9
- package/usedialog/usedialog.cjs.min.js +1 -1
- package/usedialog/usedialog.esm.js +6 -9
- package/usedialog/usedialog.esm.min.js +1 -1
- package/usedialog/usedialog.js +6 -9
- package/usedialog/usedialog.min.js +1 -1
- package/usestyle/UseStyle.d.ts +19 -0
- package/usestyle/package.json +6 -0
- package/usestyle/usestyle.cjs.js +73 -0
- package/usestyle/usestyle.cjs.min.js +1 -0
- package/usestyle/usestyle.esm.js +69 -0
- package/usestyle/usestyle.esm.min.js +1 -0
- package/usestyle/usestyle.js +76 -0
- package/usestyle/usestyle.min.js +1 -0
- package/usetoast/usetoast.cjs.js +6 -9
- package/usetoast/usetoast.cjs.min.js +1 -1
- package/usetoast/usetoast.esm.js +6 -9
- package/usetoast/usetoast.esm.min.js +1 -1
- package/usetoast/usetoast.js +6 -9
- package/usetoast/usetoast.min.js +1 -1
- package/utils/Utils.d.ts +12 -1
- package/utils/utils.cjs.js +958 -996
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +958 -996
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +958 -996
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +332 -0
- package/vetur-tags.json +168 -80
- package/virtualscroller/BaseVirtualScroller.vue +164 -0
- package/virtualscroller/VirtualScroller.d.ts +22 -5
- package/virtualscroller/VirtualScroller.vue +6 -151
- package/virtualscroller/virtualscroller.cjs.js +865 -800
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +864 -799
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +865 -801
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +836 -4
- package/resources/images/color.png +0 -0
- package/resources/images/hue.png +0 -0
package/listbox/listbox.js
CHANGED
|
@@ -1,915 +1,962 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.listbox = (function (api,
|
|
2
|
+
this.primevue.listbox = (function (api, SearchIcon, Ripple, utils, VirtualScroller, BaseComponent, usestyle, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
-
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
8
7
|
var SearchIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchIcon);
|
|
9
8
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
10
9
|
var VirtualScroller__default = /*#__PURE__*/_interopDefaultLegacy(VirtualScroller);
|
|
10
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
11
11
|
|
|
12
|
+
var styles = "\n.p-listbox-list-wrapper {\n overflow: auto;\n}\n\n.p-listbox-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n\n.p-listbox-item {\n cursor: pointer;\n position: relative;\n overflow: hidden;\n}\n\n.p-listbox-item-group {\n cursor: auto;\n}\n\n.p-listbox-filter-container {\n position: relative;\n}\n\n.p-listbox-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-listbox-filter {\n width: 100%;\n}\n";
|
|
13
|
+
var classes = {
|
|
14
|
+
root: function root(_ref) {
|
|
15
|
+
var instance = _ref.instance,
|
|
16
|
+
props = _ref.props;
|
|
17
|
+
return ['p-listbox p-component', {
|
|
18
|
+
'p-focus': instance.focused,
|
|
19
|
+
'p-disabled': props.disabled
|
|
20
|
+
}];
|
|
21
|
+
},
|
|
22
|
+
header: 'p-listbox-header',
|
|
23
|
+
filterContainer: 'p-listbox-filter-container',
|
|
24
|
+
filterInput: 'p-listbox-filter p-inputtext p-component',
|
|
25
|
+
filterIcon: 'p-listbox-filter-icon',
|
|
26
|
+
wrapper: 'p-listbox-list-wrapper',
|
|
27
|
+
list: 'p-listbox-list',
|
|
28
|
+
itemGroup: 'p-listbox-item-group',
|
|
29
|
+
item: function item(_ref2) {
|
|
30
|
+
var instance = _ref2.instance,
|
|
31
|
+
option = _ref2.option,
|
|
32
|
+
index = _ref2.index,
|
|
33
|
+
getItemOptions = _ref2.getItemOptions;
|
|
34
|
+
return ['p-listbox-item', {
|
|
35
|
+
'p-highlight': instance.isSelected(option),
|
|
36
|
+
'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions),
|
|
37
|
+
'p-disabled': instance.isOptionDisabled(option)
|
|
38
|
+
}];
|
|
39
|
+
},
|
|
40
|
+
emptyMessage: 'p-listbox-empty-message'
|
|
41
|
+
};
|
|
42
|
+
var _useStyle = usestyle.useStyle(styles, {
|
|
43
|
+
name: 'listbox',
|
|
44
|
+
manual: true
|
|
45
|
+
}),
|
|
46
|
+
loadStyle = _useStyle.load;
|
|
47
|
+
var script$1 = {
|
|
48
|
+
name: 'BaseListbox',
|
|
49
|
+
"extends": BaseComponent__default["default"],
|
|
50
|
+
props: {
|
|
51
|
+
modelValue: null,
|
|
52
|
+
options: Array,
|
|
53
|
+
optionLabel: null,
|
|
54
|
+
optionValue: null,
|
|
55
|
+
optionDisabled: null,
|
|
56
|
+
optionGroupLabel: null,
|
|
57
|
+
optionGroupChildren: null,
|
|
58
|
+
listStyle: null,
|
|
59
|
+
disabled: Boolean,
|
|
60
|
+
dataKey: null,
|
|
61
|
+
multiple: Boolean,
|
|
62
|
+
metaKeySelection: Boolean,
|
|
63
|
+
filter: Boolean,
|
|
64
|
+
filterPlaceholder: String,
|
|
65
|
+
filterLocale: String,
|
|
66
|
+
filterMatchMode: {
|
|
67
|
+
type: String,
|
|
68
|
+
"default": 'contains'
|
|
69
|
+
},
|
|
70
|
+
filterFields: {
|
|
71
|
+
type: Array,
|
|
72
|
+
"default": null
|
|
73
|
+
},
|
|
74
|
+
filterInputProps: null,
|
|
75
|
+
virtualScrollerOptions: {
|
|
76
|
+
type: Object,
|
|
77
|
+
"default": null
|
|
78
|
+
},
|
|
79
|
+
autoOptionFocus: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
"default": true
|
|
82
|
+
},
|
|
83
|
+
selectOnFocus: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
"default": false
|
|
86
|
+
},
|
|
87
|
+
filterMessage: {
|
|
88
|
+
type: String,
|
|
89
|
+
"default": null
|
|
90
|
+
},
|
|
91
|
+
selectionMessage: {
|
|
92
|
+
type: String,
|
|
93
|
+
"default": null
|
|
94
|
+
},
|
|
95
|
+
emptySelectionMessage: {
|
|
96
|
+
type: String,
|
|
97
|
+
"default": null
|
|
98
|
+
},
|
|
99
|
+
emptyFilterMessage: {
|
|
100
|
+
type: String,
|
|
101
|
+
"default": null
|
|
102
|
+
},
|
|
103
|
+
emptyMessage: {
|
|
104
|
+
type: String,
|
|
105
|
+
"default": null
|
|
106
|
+
},
|
|
107
|
+
filterIcon: {
|
|
108
|
+
type: String,
|
|
109
|
+
"default": undefined
|
|
110
|
+
},
|
|
111
|
+
tabindex: {
|
|
112
|
+
type: Number,
|
|
113
|
+
"default": 0
|
|
114
|
+
},
|
|
115
|
+
'aria-label': {
|
|
116
|
+
type: String,
|
|
117
|
+
"default": null
|
|
118
|
+
},
|
|
119
|
+
'aria-labelledby': {
|
|
120
|
+
type: String,
|
|
121
|
+
"default": null
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
css: {
|
|
125
|
+
classes: classes,
|
|
126
|
+
loadStyle: loadStyle
|
|
127
|
+
},
|
|
128
|
+
provide: function provide() {
|
|
129
|
+
return {
|
|
130
|
+
$parentInstance: this
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
136
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
137
|
+
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); }
|
|
138
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
139
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
140
|
+
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; }
|
|
12
141
|
var script = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
default: 'contains'
|
|
35
|
-
},
|
|
36
|
-
filterFields: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: null
|
|
39
|
-
},
|
|
40
|
-
filterInputProps: null,
|
|
41
|
-
virtualScrollerOptions: {
|
|
42
|
-
type: Object,
|
|
43
|
-
default: null
|
|
44
|
-
},
|
|
45
|
-
autoOptionFocus: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true
|
|
48
|
-
},
|
|
49
|
-
selectOnFocus: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
},
|
|
53
|
-
filterMessage: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: null
|
|
56
|
-
},
|
|
57
|
-
selectionMessage: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: null
|
|
60
|
-
},
|
|
61
|
-
emptySelectionMessage: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: null
|
|
64
|
-
},
|
|
65
|
-
emptyFilterMessage: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: null
|
|
68
|
-
},
|
|
69
|
-
emptyMessage: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: null
|
|
72
|
-
},
|
|
73
|
-
filterIcon: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: undefined
|
|
76
|
-
},
|
|
77
|
-
tabindex: {
|
|
78
|
-
type: Number,
|
|
79
|
-
default: 0
|
|
80
|
-
},
|
|
81
|
-
'aria-label': {
|
|
82
|
-
type: String,
|
|
83
|
-
default: null
|
|
84
|
-
},
|
|
85
|
-
'aria-labelledby': {
|
|
86
|
-
type: String,
|
|
87
|
-
default: null
|
|
88
|
-
}
|
|
142
|
+
name: 'Listbox',
|
|
143
|
+
"extends": script$1,
|
|
144
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur', 'filter'],
|
|
145
|
+
list: null,
|
|
146
|
+
virtualScroller: null,
|
|
147
|
+
optionTouched: false,
|
|
148
|
+
startRangeIndex: -1,
|
|
149
|
+
searchTimeout: null,
|
|
150
|
+
searchValue: '',
|
|
151
|
+
focusOnHover: false,
|
|
152
|
+
data: function data() {
|
|
153
|
+
return {
|
|
154
|
+
id: this.$attrs.id,
|
|
155
|
+
filterValue: null,
|
|
156
|
+
focused: false,
|
|
157
|
+
focusedOptionIndex: -1
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
watch: {
|
|
161
|
+
'$attrs.id': function $attrsId(newValue) {
|
|
162
|
+
this.id = newValue || utils.UniqueComponentId();
|
|
89
163
|
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
164
|
+
options: function options() {
|
|
165
|
+
this.autoUpdateModel();
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
mounted: function mounted() {
|
|
169
|
+
this.id = this.id || utils.UniqueComponentId();
|
|
170
|
+
this.autoUpdateModel();
|
|
171
|
+
},
|
|
172
|
+
methods: {
|
|
173
|
+
getOptionIndex: function getOptionIndex(index, fn) {
|
|
174
|
+
return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];
|
|
175
|
+
},
|
|
176
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
177
|
+
return this.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
|
|
178
|
+
},
|
|
179
|
+
getOptionValue: function getOptionValue(option) {
|
|
180
|
+
return this.optionValue ? utils.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
|
|
181
|
+
},
|
|
182
|
+
getOptionRenderKey: function getOptionRenderKey(option, index) {
|
|
183
|
+
return (this.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + '_' + index;
|
|
184
|
+
},
|
|
185
|
+
getPTOptions: function getPTOptions(option, itemOptions, index, key) {
|
|
186
|
+
return this.ptm(key, {
|
|
187
|
+
context: {
|
|
188
|
+
selected: this.isSelected(option),
|
|
189
|
+
focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
|
|
190
|
+
disabled: this.isOptionDisabled(option)
|
|
111
191
|
}
|
|
192
|
+
});
|
|
112
193
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
this.autoUpdateModel();
|
|
194
|
+
isOptionDisabled: function isOptionDisabled(option) {
|
|
195
|
+
return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
|
|
117
196
|
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
197
|
+
isOptionGroup: function isOptionGroup(option) {
|
|
198
|
+
return this.optionGroupLabel && option.optionGroup && option.group;
|
|
199
|
+
},
|
|
200
|
+
getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
|
|
201
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
|
|
202
|
+
},
|
|
203
|
+
getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
|
|
204
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
|
|
205
|
+
},
|
|
206
|
+
getAriaPosInset: function getAriaPosInset(index) {
|
|
207
|
+
var _this = this;
|
|
208
|
+
return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function (option) {
|
|
209
|
+
return _this.isOptionGroup(option);
|
|
210
|
+
}).length : index) + 1;
|
|
211
|
+
},
|
|
212
|
+
onFirstHiddenFocus: function onFirstHiddenFocus() {
|
|
213
|
+
utils.DomHandler.focus(this.list);
|
|
214
|
+
var firstFocusableEl = utils.DomHandler.getFirstFocusableElement(this.$el, ':not([data-p-hidden-focusable="true"])');
|
|
215
|
+
this.$refs.lastHiddenFocusableElement.tabIndex = utils.ObjectUtils.isEmpty(firstFocusableEl) ? -1 : undefined;
|
|
216
|
+
this.$refs.firstHiddenFocusableElement.tabIndex = -1;
|
|
217
|
+
},
|
|
218
|
+
onLastHiddenFocus: function onLastHiddenFocus(event) {
|
|
219
|
+
var relatedTarget = event.relatedTarget;
|
|
220
|
+
if (relatedTarget === this.list) {
|
|
221
|
+
var firstFocusableEl = utils.DomHandler.getFirstFocusableElement(this.$el, ':not([data-p-hidden-focusable="true"])');
|
|
222
|
+
utils.DomHandler.focus(firstFocusableEl);
|
|
223
|
+
this.$refs.firstHiddenFocusableElement.tabIndex = undefined;
|
|
224
|
+
} else {
|
|
225
|
+
utils.DomHandler.focus(this.$refs.firstHiddenFocusableElement);
|
|
226
|
+
}
|
|
227
|
+
this.$refs.lastHiddenFocusableElement.tabIndex = -1;
|
|
228
|
+
},
|
|
229
|
+
onFocusout: function onFocusout(event) {
|
|
230
|
+
if (!this.$el.contains(event.relatedTarget) && this.$refs.lastHiddenFocusableElement && this.$refs.firstHiddenFocusableElement) {
|
|
231
|
+
this.$refs.lastHiddenFocusableElement.tabIndex = this.$refs.firstHiddenFocusableElement.tabIndex = undefined;
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
onListFocus: function onListFocus(event) {
|
|
235
|
+
this.focused = true;
|
|
236
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
237
|
+
this.$emit('focus', event);
|
|
238
|
+
},
|
|
239
|
+
onListBlur: function onListBlur(event) {
|
|
240
|
+
this.focused = false;
|
|
241
|
+
this.focusedOptionIndex = this.startRangeIndex = -1;
|
|
242
|
+
this.searchValue = '';
|
|
243
|
+
this.$emit('blur', event);
|
|
244
|
+
},
|
|
245
|
+
onListKeyDown: function onListKeyDown(event) {
|
|
246
|
+
var _this2 = this;
|
|
247
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
248
|
+
switch (event.code) {
|
|
249
|
+
case 'ArrowDown':
|
|
250
|
+
this.onArrowDownKey(event);
|
|
251
|
+
break;
|
|
252
|
+
case 'ArrowUp':
|
|
253
|
+
this.onArrowUpKey(event);
|
|
254
|
+
break;
|
|
255
|
+
case 'Home':
|
|
256
|
+
this.onHomeKey(event);
|
|
257
|
+
break;
|
|
258
|
+
case 'End':
|
|
259
|
+
this.onEndKey(event);
|
|
260
|
+
break;
|
|
261
|
+
case 'PageDown':
|
|
262
|
+
this.onPageDownKey(event);
|
|
263
|
+
break;
|
|
264
|
+
case 'PageUp':
|
|
265
|
+
this.onPageUpKey(event);
|
|
266
|
+
break;
|
|
267
|
+
case 'Enter':
|
|
268
|
+
case 'Space':
|
|
269
|
+
this.onSpaceKey(event);
|
|
270
|
+
break;
|
|
271
|
+
case 'Tab':
|
|
272
|
+
//NOOP
|
|
273
|
+
break;
|
|
274
|
+
case 'ShiftLeft':
|
|
275
|
+
case 'ShiftRight':
|
|
276
|
+
this.onShiftKey(event);
|
|
277
|
+
break;
|
|
278
|
+
default:
|
|
279
|
+
if (this.multiple && event.code === 'KeyA' && metaKey) {
|
|
280
|
+
var value = this.visibleOptions.filter(function (option) {
|
|
281
|
+
return _this2.isValidOption(option);
|
|
282
|
+
}).map(function (option) {
|
|
283
|
+
return _this2.getOptionValue(option);
|
|
138
284
|
});
|
|
139
|
-
},
|
|
140
|
-
isOptionDisabled(option) {
|
|
141
|
-
return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
|
|
142
|
-
},
|
|
143
|
-
isOptionGroup(option) {
|
|
144
|
-
return this.optionGroupLabel && option.optionGroup && option.group;
|
|
145
|
-
},
|
|
146
|
-
getOptionGroupLabel(optionGroup) {
|
|
147
|
-
return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
|
|
148
|
-
},
|
|
149
|
-
getOptionGroupChildren(optionGroup) {
|
|
150
|
-
return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
|
|
151
|
-
},
|
|
152
|
-
getAriaPosInset(index) {
|
|
153
|
-
return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter((option) => this.isOptionGroup(option)).length : index) + 1;
|
|
154
|
-
},
|
|
155
|
-
onFirstHiddenFocus() {
|
|
156
|
-
utils.DomHandler.focus(this.list);
|
|
157
|
-
|
|
158
|
-
const firstFocusableEl = utils.DomHandler.getFirstFocusableElement(this.$el, ':not(.p-hidden-focusable)');
|
|
159
|
-
|
|
160
|
-
this.$refs.lastHiddenFocusableElement.tabIndex = utils.ObjectUtils.isEmpty(firstFocusableEl) ? -1 : undefined;
|
|
161
|
-
this.$refs.firstHiddenFocusableElement.tabIndex = -1;
|
|
162
|
-
},
|
|
163
|
-
onLastHiddenFocus(event) {
|
|
164
|
-
const relatedTarget = event.relatedTarget;
|
|
165
|
-
|
|
166
|
-
if (relatedTarget === this.list) {
|
|
167
|
-
const firstFocusableEl = utils.DomHandler.getFirstFocusableElement(this.$el, ':not(.p-hidden-focusable)');
|
|
168
|
-
|
|
169
|
-
utils.DomHandler.focus(firstFocusableEl);
|
|
170
|
-
this.$refs.firstHiddenFocusableElement.tabIndex = undefined;
|
|
171
|
-
} else {
|
|
172
|
-
utils.DomHandler.focus(this.$refs.firstHiddenFocusableElement);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
this.$refs.lastHiddenFocusableElement.tabIndex = -1;
|
|
176
|
-
},
|
|
177
|
-
onFocusout(event) {
|
|
178
|
-
if (!this.$el.contains(event.relatedTarget) && this.$refs.lastHiddenFocusableElement && this.$refs.firstHiddenFocusableElement) {
|
|
179
|
-
this.$refs.lastHiddenFocusableElement.tabIndex = this.$refs.firstHiddenFocusableElement.tabIndex = undefined;
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
onListFocus(event) {
|
|
183
|
-
this.focused = true;
|
|
184
|
-
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
185
|
-
this.$emit('focus', event);
|
|
186
|
-
},
|
|
187
|
-
onListBlur(event) {
|
|
188
|
-
this.focused = false;
|
|
189
|
-
this.focusedOptionIndex = this.startRangeIndex = -1;
|
|
190
|
-
this.searchValue = '';
|
|
191
|
-
this.$emit('blur', event);
|
|
192
|
-
},
|
|
193
|
-
onListKeyDown(event) {
|
|
194
|
-
const metaKey = event.metaKey || event.ctrlKey;
|
|
195
|
-
|
|
196
|
-
switch (event.code) {
|
|
197
|
-
case 'ArrowDown':
|
|
198
|
-
this.onArrowDownKey(event);
|
|
199
|
-
break;
|
|
200
|
-
|
|
201
|
-
case 'ArrowUp':
|
|
202
|
-
this.onArrowUpKey(event);
|
|
203
|
-
break;
|
|
204
|
-
|
|
205
|
-
case 'Home':
|
|
206
|
-
this.onHomeKey(event);
|
|
207
|
-
break;
|
|
208
|
-
|
|
209
|
-
case 'End':
|
|
210
|
-
this.onEndKey(event);
|
|
211
|
-
break;
|
|
212
|
-
|
|
213
|
-
case 'PageDown':
|
|
214
|
-
this.onPageDownKey(event);
|
|
215
|
-
break;
|
|
216
|
-
|
|
217
|
-
case 'PageUp':
|
|
218
|
-
this.onPageUpKey(event);
|
|
219
|
-
break;
|
|
220
|
-
|
|
221
|
-
case 'Enter':
|
|
222
|
-
case 'Space':
|
|
223
|
-
this.onSpaceKey(event);
|
|
224
|
-
break;
|
|
225
|
-
|
|
226
|
-
case 'Tab':
|
|
227
|
-
//NOOP
|
|
228
|
-
break;
|
|
229
|
-
|
|
230
|
-
case 'ShiftLeft':
|
|
231
|
-
case 'ShiftRight':
|
|
232
|
-
this.onShiftKey(event);
|
|
233
|
-
break;
|
|
234
|
-
|
|
235
|
-
default:
|
|
236
|
-
if (this.multiple && event.code === 'KeyA' && metaKey) {
|
|
237
|
-
const value = this.visibleOptions.filter((option) => this.isValidOption(option)).map((option) => this.getOptionValue(option));
|
|
238
|
-
|
|
239
|
-
this.updateModel(event, value);
|
|
240
|
-
|
|
241
|
-
event.preventDefault();
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
|
|
246
|
-
this.searchOptions(event, event.key);
|
|
247
|
-
event.preventDefault();
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
onOptionSelect(event, option, index = -1) {
|
|
254
|
-
if (this.disabled || this.isOptionDisabled(option)) {
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
this.multiple ? this.onOptionSelectMultiple(event, option) : this.onOptionSelectSingle(event, option);
|
|
259
|
-
this.optionTouched = false;
|
|
260
|
-
index !== -1 && (this.focusedOptionIndex = index);
|
|
261
|
-
},
|
|
262
|
-
onOptionMouseDown(event, index) {
|
|
263
|
-
this.changeFocusedOptionIndex(event, index);
|
|
264
|
-
},
|
|
265
|
-
onOptionMouseMove(event, index) {
|
|
266
|
-
if (this.focusOnHover) {
|
|
267
|
-
this.changeFocusedOptionIndex(event, index);
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
onOptionTouchEnd() {
|
|
271
|
-
if (this.disabled) {
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
this.optionTouched = true;
|
|
276
|
-
},
|
|
277
|
-
onOptionSelectSingle(event, option) {
|
|
278
|
-
let selected = this.isSelected(option);
|
|
279
|
-
let valueChanged = false;
|
|
280
|
-
let value = null;
|
|
281
|
-
let metaSelection = this.optionTouched ? false : this.metaKeySelection;
|
|
282
|
-
|
|
283
|
-
if (metaSelection) {
|
|
284
|
-
let metaKey = event.metaKey || event.ctrlKey;
|
|
285
|
-
|
|
286
|
-
if (selected) {
|
|
287
|
-
if (metaKey) {
|
|
288
|
-
value = null;
|
|
289
|
-
valueChanged = true;
|
|
290
|
-
}
|
|
291
|
-
} else {
|
|
292
|
-
value = this.getOptionValue(option);
|
|
293
|
-
valueChanged = true;
|
|
294
|
-
}
|
|
295
|
-
} else {
|
|
296
|
-
value = selected ? null : this.getOptionValue(option);
|
|
297
|
-
valueChanged = true;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
if (valueChanged) {
|
|
301
|
-
this.updateModel(event, value);
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
onOptionSelectMultiple(event, option) {
|
|
305
|
-
let selected = this.isSelected(option);
|
|
306
|
-
let value = null;
|
|
307
|
-
let metaSelection = this.optionTouched ? false : this.metaKeySelection;
|
|
308
|
-
|
|
309
|
-
if (metaSelection) {
|
|
310
|
-
let metaKey = event.metaKey || event.ctrlKey;
|
|
311
|
-
|
|
312
|
-
if (selected) {
|
|
313
|
-
value = metaKey ? this.removeOption(option) : [this.getOptionValue(option)];
|
|
314
|
-
} else {
|
|
315
|
-
value = metaKey ? this.modelValue || [] : [];
|
|
316
|
-
value = [...value, this.getOptionValue(option)];
|
|
317
|
-
}
|
|
318
|
-
} else {
|
|
319
|
-
value = selected ? this.removeOption(option) : [...(this.modelValue || []), this.getOptionValue(option)];
|
|
320
|
-
}
|
|
321
|
-
|
|
322
285
|
this.updateModel(event, value);
|
|
323
|
-
},
|
|
324
|
-
onOptionSelectRange(event, start = -1, end = -1) {
|
|
325
|
-
start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
|
|
326
|
-
end === -1 && (end = this.findNearestSelectedOptionIndex(start));
|
|
327
|
-
|
|
328
|
-
if (start !== -1 && end !== -1) {
|
|
329
|
-
const rangeStart = Math.min(start, end);
|
|
330
|
-
const rangeEnd = Math.max(start, end);
|
|
331
|
-
const value = this.visibleOptions
|
|
332
|
-
.slice(rangeStart, rangeEnd + 1)
|
|
333
|
-
.filter((option) => this.isValidOption(option))
|
|
334
|
-
.map((option) => this.getOptionValue(option));
|
|
335
|
-
|
|
336
|
-
this.updateModel(event, value);
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
onFilterChange(event) {
|
|
340
|
-
this.$emit('filter', { originalEvent: event, value: event.target.value });
|
|
341
|
-
this.focusedOptionIndex = this.startRangeIndex = -1;
|
|
342
|
-
},
|
|
343
|
-
onFilterBlur() {
|
|
344
|
-
this.focusedOptionIndex = this.startRangeIndex = -1;
|
|
345
|
-
},
|
|
346
|
-
onFilterKeyDown(event) {
|
|
347
|
-
switch (event.code) {
|
|
348
|
-
case 'ArrowDown':
|
|
349
|
-
this.onArrowDownKey(event);
|
|
350
|
-
break;
|
|
351
|
-
|
|
352
|
-
case 'ArrowUp':
|
|
353
|
-
this.onArrowUpKey(event);
|
|
354
|
-
break;
|
|
355
|
-
|
|
356
|
-
case 'ArrowLeft':
|
|
357
|
-
case 'ArrowRight':
|
|
358
|
-
this.onArrowLeftKey(event, true);
|
|
359
|
-
break;
|
|
360
|
-
|
|
361
|
-
case 'Home':
|
|
362
|
-
this.onHomeKey(event, true);
|
|
363
|
-
break;
|
|
364
|
-
|
|
365
|
-
case 'End':
|
|
366
|
-
this.onEndKey(event, true);
|
|
367
|
-
break;
|
|
368
|
-
|
|
369
|
-
case 'Enter':
|
|
370
|
-
this.onEnterKey(event);
|
|
371
|
-
break;
|
|
372
|
-
|
|
373
|
-
case 'ShiftLeft':
|
|
374
|
-
case 'ShiftRight':
|
|
375
|
-
this.onShiftKey(event);
|
|
376
|
-
break;
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
onArrowDownKey(event) {
|
|
380
|
-
const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
|
|
381
|
-
|
|
382
|
-
if (this.multiple && event.shiftKey) {
|
|
383
|
-
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
387
|
-
event.preventDefault();
|
|
388
|
-
},
|
|
389
|
-
onArrowUpKey(event) {
|
|
390
|
-
const optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
|
|
391
|
-
|
|
392
|
-
if (this.multiple && event.shiftKey) {
|
|
393
|
-
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
397
|
-
event.preventDefault();
|
|
398
|
-
},
|
|
399
|
-
onArrowLeftKey(event, pressedInInputText = false) {
|
|
400
|
-
pressedInInputText && (this.focusedOptionIndex = -1);
|
|
401
|
-
},
|
|
402
|
-
onHomeKey(event, pressedInInputText = false) {
|
|
403
|
-
if (pressedInInputText) {
|
|
404
|
-
event.currentTarget.setSelectionRange(0, 0);
|
|
405
|
-
this.focusedOptionIndex = -1;
|
|
406
|
-
} else {
|
|
407
|
-
let metaKey = event.metaKey || event.ctrlKey;
|
|
408
|
-
let optionIndex = this.findFirstOptionIndex();
|
|
409
|
-
|
|
410
|
-
if (this.multiple && event.shiftKey && metaKey) {
|
|
411
|
-
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
286
|
event.preventDefault();
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
const len = target.value.length;
|
|
423
|
-
|
|
424
|
-
target.setSelectionRange(len, len);
|
|
425
|
-
this.focusedOptionIndex = -1;
|
|
426
|
-
} else {
|
|
427
|
-
let metaKey = event.metaKey || event.ctrlKey;
|
|
428
|
-
let optionIndex = this.findLastOptionIndex();
|
|
429
|
-
|
|
430
|
-
if (this.multiple && event.shiftKey && metaKey) {
|
|
431
|
-
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
event.preventDefault();
|
|
438
|
-
},
|
|
439
|
-
onPageUpKey(event) {
|
|
440
|
-
this.scrollInView(0);
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
|
|
290
|
+
this.searchOptions(event, event.key);
|
|
441
291
|
event.preventDefault();
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
486
|
-
},
|
|
487
|
-
findPrevOptionIndex(index) {
|
|
488
|
-
const matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidOption(option)) : -1;
|
|
489
|
-
|
|
490
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
491
|
-
},
|
|
492
|
-
findFirstSelectedOptionIndex() {
|
|
493
|
-
return this.hasSelectedOption ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
494
|
-
},
|
|
495
|
-
findLastSelectedOptionIndex() {
|
|
496
|
-
return this.hasSelectedOption ? utils.ObjectUtils.findLastIndex(this.visibleOptions, (option) => this.isValidSelectedOption(option)) : -1;
|
|
497
|
-
},
|
|
498
|
-
findNextSelectedOptionIndex(index) {
|
|
499
|
-
const matchedOptionIndex = this.hasSelectedOption && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
500
|
-
|
|
501
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
502
|
-
},
|
|
503
|
-
findPrevSelectedOptionIndex(index) {
|
|
504
|
-
const matchedOptionIndex = this.hasSelectedOption && index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidSelectedOption(option)) : -1;
|
|
505
|
-
|
|
506
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
507
|
-
},
|
|
508
|
-
findNearestSelectedOptionIndex(index, firstCheckUp = false) {
|
|
509
|
-
let matchedOptionIndex = -1;
|
|
510
|
-
|
|
511
|
-
if (this.hasSelectedOption) {
|
|
512
|
-
if (firstCheckUp) {
|
|
513
|
-
matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
|
|
514
|
-
matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
|
|
515
|
-
} else {
|
|
516
|
-
matchedOptionIndex = this.findNextSelectedOptionIndex(index);
|
|
517
|
-
matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
522
|
-
},
|
|
523
|
-
findFirstFocusedOptionIndex() {
|
|
524
|
-
const selectedIndex = this.findFirstSelectedOptionIndex();
|
|
525
|
-
|
|
526
|
-
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
527
|
-
},
|
|
528
|
-
findLastFocusedOptionIndex() {
|
|
529
|
-
const selectedIndex = this.findLastSelectedOptionIndex();
|
|
530
|
-
|
|
531
|
-
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
532
|
-
},
|
|
533
|
-
searchOptions(event, char) {
|
|
534
|
-
this.searchValue = (this.searchValue || '') + char;
|
|
535
|
-
|
|
536
|
-
let optionIndex = -1;
|
|
537
|
-
|
|
538
|
-
if (this.focusedOptionIndex !== -1) {
|
|
539
|
-
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex((option) => this.isOptionMatched(option));
|
|
540
|
-
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex((option) => this.isOptionMatched(option)) : optionIndex + this.focusedOptionIndex;
|
|
541
|
-
} else {
|
|
542
|
-
optionIndex = this.visibleOptions.findIndex((option) => this.isOptionMatched(option));
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
546
|
-
optionIndex = this.findFirstFocusedOptionIndex();
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
if (optionIndex !== -1) {
|
|
550
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
if (this.searchTimeout) {
|
|
554
|
-
clearTimeout(this.searchTimeout);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
this.searchTimeout = setTimeout(() => {
|
|
558
|
-
this.searchValue = '';
|
|
559
|
-
this.searchTimeout = null;
|
|
560
|
-
}, 500);
|
|
561
|
-
},
|
|
562
|
-
removeOption(option) {
|
|
563
|
-
return this.modelValue.filter((val) => !utils.ObjectUtils.equals(val, this.getOptionValue(option), this.equalityKey));
|
|
564
|
-
},
|
|
565
|
-
changeFocusedOptionIndex(event, index) {
|
|
566
|
-
if (this.focusedOptionIndex !== index) {
|
|
567
|
-
this.focusedOptionIndex = index;
|
|
568
|
-
this.scrollInView();
|
|
569
|
-
|
|
570
|
-
if (this.selectOnFocus && !this.multiple) {
|
|
571
|
-
this.onOptionSelect(event, this.visibleOptions[index]);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
scrollInView(index = -1) {
|
|
576
|
-
const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
|
|
577
|
-
const element = utils.DomHandler.findSingle(this.list, `li[id="${id}"]`);
|
|
578
|
-
|
|
579
|
-
if (element) {
|
|
580
|
-
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
581
|
-
} else if (!this.virtualScrollerDisabled) {
|
|
582
|
-
this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
autoUpdateModel() {
|
|
586
|
-
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption && !this.multiple) {
|
|
587
|
-
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
588
|
-
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex]);
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
updateModel(event, value) {
|
|
592
|
-
this.$emit('update:modelValue', value);
|
|
593
|
-
this.$emit('change', { originalEvent: event, value });
|
|
594
|
-
},
|
|
595
|
-
flatOptions(options) {
|
|
596
|
-
return (options || []).reduce((result, option, index) => {
|
|
597
|
-
result.push({ optionGroup: option, group: true, index });
|
|
598
|
-
|
|
599
|
-
const optionGroupChildren = this.getOptionGroupChildren(option);
|
|
600
|
-
|
|
601
|
-
optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
|
|
602
|
-
|
|
603
|
-
return result;
|
|
604
|
-
}, []);
|
|
605
|
-
},
|
|
606
|
-
listRef(el, contentRef) {
|
|
607
|
-
this.list = el;
|
|
608
|
-
contentRef && contentRef(el); // For VirtualScroller
|
|
609
|
-
},
|
|
610
|
-
virtualScrollerRef(el) {
|
|
611
|
-
this.virtualScroller = el;
|
|
292
|
+
}
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
onOptionSelect: function onOptionSelect(event, option) {
|
|
297
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
298
|
+
if (this.disabled || this.isOptionDisabled(option)) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
this.multiple ? this.onOptionSelectMultiple(event, option) : this.onOptionSelectSingle(event, option);
|
|
302
|
+
this.optionTouched = false;
|
|
303
|
+
index !== -1 && (this.focusedOptionIndex = index);
|
|
304
|
+
},
|
|
305
|
+
onOptionMouseDown: function onOptionMouseDown(event, index) {
|
|
306
|
+
this.changeFocusedOptionIndex(event, index);
|
|
307
|
+
},
|
|
308
|
+
onOptionMouseMove: function onOptionMouseMove(event, index) {
|
|
309
|
+
if (this.focusOnHover) {
|
|
310
|
+
this.changeFocusedOptionIndex(event, index);
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
onOptionTouchEnd: function onOptionTouchEnd() {
|
|
314
|
+
if (this.disabled) {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
this.optionTouched = true;
|
|
318
|
+
},
|
|
319
|
+
onOptionSelectSingle: function onOptionSelectSingle(event, option) {
|
|
320
|
+
var selected = this.isSelected(option);
|
|
321
|
+
var valueChanged = false;
|
|
322
|
+
var value = null;
|
|
323
|
+
var metaSelection = this.optionTouched ? false : this.metaKeySelection;
|
|
324
|
+
if (metaSelection) {
|
|
325
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
326
|
+
if (selected) {
|
|
327
|
+
if (metaKey) {
|
|
328
|
+
value = null;
|
|
329
|
+
valueChanged = true;
|
|
330
|
+
}
|
|
331
|
+
} else {
|
|
332
|
+
value = this.getOptionValue(option);
|
|
333
|
+
valueChanged = true;
|
|
612
334
|
}
|
|
335
|
+
} else {
|
|
336
|
+
value = selected ? null : this.getOptionValue(option);
|
|
337
|
+
valueChanged = true;
|
|
338
|
+
}
|
|
339
|
+
if (valueChanged) {
|
|
340
|
+
this.updateModel(event, value);
|
|
341
|
+
}
|
|
613
342
|
},
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
const options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
626
|
-
|
|
627
|
-
return this.filterValue ? api.FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale) : options;
|
|
628
|
-
},
|
|
629
|
-
hasSelectedOption() {
|
|
630
|
-
return utils.ObjectUtils.isNotEmpty(this.modelValue);
|
|
631
|
-
},
|
|
632
|
-
equalityKey() {
|
|
633
|
-
return this.optionValue ? null : this.dataKey;
|
|
634
|
-
},
|
|
635
|
-
searchFields() {
|
|
636
|
-
return this.filterFields || [this.optionLabel];
|
|
637
|
-
},
|
|
638
|
-
filterResultMessageText() {
|
|
639
|
-
return utils.ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptyFilterMessageText;
|
|
640
|
-
},
|
|
641
|
-
filterMessageText() {
|
|
642
|
-
return this.filterMessage || this.$primevue.config.locale.searchMessage || '';
|
|
643
|
-
},
|
|
644
|
-
emptyFilterMessageText() {
|
|
645
|
-
return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || '';
|
|
646
|
-
},
|
|
647
|
-
emptyMessageText() {
|
|
648
|
-
return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
|
|
649
|
-
},
|
|
650
|
-
selectionMessageText() {
|
|
651
|
-
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
|
|
652
|
-
},
|
|
653
|
-
emptySelectionMessageText() {
|
|
654
|
-
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
655
|
-
},
|
|
656
|
-
selectedMessageText() {
|
|
657
|
-
return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
|
|
658
|
-
},
|
|
659
|
-
focusedOptionId() {
|
|
660
|
-
return this.focusedOptionIndex !== -1 ? `${this.id}_${this.focusedOptionIndex}` : null;
|
|
661
|
-
},
|
|
662
|
-
ariaSetSize() {
|
|
663
|
-
return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
|
|
664
|
-
},
|
|
665
|
-
virtualScrollerDisabled() {
|
|
666
|
-
return !this.virtualScrollerOptions;
|
|
343
|
+
onOptionSelectMultiple: function onOptionSelectMultiple(event, option) {
|
|
344
|
+
var selected = this.isSelected(option);
|
|
345
|
+
var value = null;
|
|
346
|
+
var metaSelection = this.optionTouched ? false : this.metaKeySelection;
|
|
347
|
+
if (metaSelection) {
|
|
348
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
349
|
+
if (selected) {
|
|
350
|
+
value = metaKey ? this.removeOption(option) : [this.getOptionValue(option)];
|
|
351
|
+
} else {
|
|
352
|
+
value = metaKey ? this.modelValue || [] : [];
|
|
353
|
+
value = [].concat(_toConsumableArray(value), [this.getOptionValue(option)]);
|
|
667
354
|
}
|
|
355
|
+
} else {
|
|
356
|
+
value = selected ? this.removeOption(option) : [].concat(_toConsumableArray(this.modelValue || []), [this.getOptionValue(option)]);
|
|
357
|
+
}
|
|
358
|
+
this.updateModel(event, value);
|
|
359
|
+
},
|
|
360
|
+
onOptionSelectRange: function onOptionSelectRange(event) {
|
|
361
|
+
var _this3 = this;
|
|
362
|
+
var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
|
|
363
|
+
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
364
|
+
start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
|
|
365
|
+
end === -1 && (end = this.findNearestSelectedOptionIndex(start));
|
|
366
|
+
if (start !== -1 && end !== -1) {
|
|
367
|
+
var rangeStart = Math.min(start, end);
|
|
368
|
+
var rangeEnd = Math.max(start, end);
|
|
369
|
+
var value = this.visibleOptions.slice(rangeStart, rangeEnd + 1).filter(function (option) {
|
|
370
|
+
return _this3.isValidOption(option);
|
|
371
|
+
}).map(function (option) {
|
|
372
|
+
return _this3.getOptionValue(option);
|
|
373
|
+
});
|
|
374
|
+
this.updateModel(event, value);
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
onFilterChange: function onFilterChange(event) {
|
|
378
|
+
this.$emit('filter', {
|
|
379
|
+
originalEvent: event,
|
|
380
|
+
value: event.target.value
|
|
381
|
+
});
|
|
382
|
+
this.focusedOptionIndex = this.startRangeIndex = -1;
|
|
383
|
+
},
|
|
384
|
+
onFilterBlur: function onFilterBlur() {
|
|
385
|
+
this.focusedOptionIndex = this.startRangeIndex = -1;
|
|
386
|
+
},
|
|
387
|
+
onFilterKeyDown: function onFilterKeyDown(event) {
|
|
388
|
+
switch (event.code) {
|
|
389
|
+
case 'ArrowDown':
|
|
390
|
+
this.onArrowDownKey(event);
|
|
391
|
+
break;
|
|
392
|
+
case 'ArrowUp':
|
|
393
|
+
this.onArrowUpKey(event);
|
|
394
|
+
break;
|
|
395
|
+
case 'ArrowLeft':
|
|
396
|
+
case 'ArrowRight':
|
|
397
|
+
this.onArrowLeftKey(event, true);
|
|
398
|
+
break;
|
|
399
|
+
case 'Home':
|
|
400
|
+
this.onHomeKey(event, true);
|
|
401
|
+
break;
|
|
402
|
+
case 'End':
|
|
403
|
+
this.onEndKey(event, true);
|
|
404
|
+
break;
|
|
405
|
+
case 'Enter':
|
|
406
|
+
this.onEnterKey(event);
|
|
407
|
+
break;
|
|
408
|
+
case 'ShiftLeft':
|
|
409
|
+
case 'ShiftRight':
|
|
410
|
+
this.onShiftKey(event);
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
415
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
|
|
416
|
+
if (this.multiple && event.shiftKey) {
|
|
417
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
418
|
+
}
|
|
419
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
420
|
+
event.preventDefault();
|
|
421
|
+
},
|
|
422
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
423
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
|
|
424
|
+
if (this.multiple && event.shiftKey) {
|
|
425
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
426
|
+
}
|
|
427
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
428
|
+
event.preventDefault();
|
|
668
429
|
},
|
|
669
|
-
|
|
670
|
-
|
|
430
|
+
onArrowLeftKey: function onArrowLeftKey(event) {
|
|
431
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
432
|
+
pressedInInputText && (this.focusedOptionIndex = -1);
|
|
671
433
|
},
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
434
|
+
onHomeKey: function onHomeKey(event) {
|
|
435
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
436
|
+
if (pressedInInputText) {
|
|
437
|
+
event.currentTarget.setSelectionRange(0, 0);
|
|
438
|
+
this.focusedOptionIndex = -1;
|
|
439
|
+
} else {
|
|
440
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
441
|
+
var optionIndex = this.findFirstOptionIndex();
|
|
442
|
+
if (this.multiple && event.shiftKey && metaKey) {
|
|
443
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
444
|
+
}
|
|
445
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
446
|
+
}
|
|
447
|
+
event.preventDefault();
|
|
448
|
+
},
|
|
449
|
+
onEndKey: function onEndKey(event) {
|
|
450
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
451
|
+
if (pressedInInputText) {
|
|
452
|
+
var target = event.currentTarget;
|
|
453
|
+
var len = target.value.length;
|
|
454
|
+
target.setSelectionRange(len, len);
|
|
455
|
+
this.focusedOptionIndex = -1;
|
|
456
|
+
} else {
|
|
457
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
458
|
+
var optionIndex = this.findLastOptionIndex();
|
|
459
|
+
if (this.multiple && event.shiftKey && metaKey) {
|
|
460
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
461
|
+
}
|
|
462
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
463
|
+
}
|
|
464
|
+
event.preventDefault();
|
|
465
|
+
},
|
|
466
|
+
onPageUpKey: function onPageUpKey(event) {
|
|
467
|
+
this.scrollInView(0);
|
|
468
|
+
event.preventDefault();
|
|
469
|
+
},
|
|
470
|
+
onPageDownKey: function onPageDownKey(event) {
|
|
471
|
+
this.scrollInView(this.visibleOptions.length - 1);
|
|
472
|
+
event.preventDefault();
|
|
473
|
+
},
|
|
474
|
+
onEnterKey: function onEnterKey(event) {
|
|
475
|
+
if (this.focusedOptionIndex !== -1) {
|
|
476
|
+
if (this.multiple && event.shiftKey) this.onOptionSelectRange(event, this.focusedOptionIndex);else this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
477
|
+
}
|
|
478
|
+
event.preventDefault();
|
|
479
|
+
},
|
|
480
|
+
onSpaceKey: function onSpaceKey(event) {
|
|
481
|
+
this.onEnterKey(event);
|
|
482
|
+
},
|
|
483
|
+
onShiftKey: function onShiftKey() {
|
|
484
|
+
this.startRangeIndex = this.focusedOptionIndex;
|
|
485
|
+
},
|
|
486
|
+
isOptionMatched: function isOptionMatched(option) {
|
|
487
|
+
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
|
488
|
+
},
|
|
489
|
+
isValidOption: function isValidOption(option) {
|
|
490
|
+
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
491
|
+
},
|
|
492
|
+
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
493
|
+
return this.isValidOption(option) && this.isSelected(option);
|
|
494
|
+
},
|
|
495
|
+
isSelected: function isSelected(option) {
|
|
496
|
+
var _this4 = this;
|
|
497
|
+
var optionValue = this.getOptionValue(option);
|
|
498
|
+
if (this.multiple) return (this.modelValue || []).some(function (value) {
|
|
499
|
+
return utils.ObjectUtils.equals(value, optionValue, _this4.equalityKey);
|
|
500
|
+
});else return utils.ObjectUtils.equals(this.modelValue, optionValue, this.equalityKey);
|
|
501
|
+
},
|
|
502
|
+
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
503
|
+
var _this5 = this;
|
|
504
|
+
return this.visibleOptions.findIndex(function (option) {
|
|
505
|
+
return _this5.isValidOption(option);
|
|
506
|
+
});
|
|
507
|
+
},
|
|
508
|
+
findLastOptionIndex: function findLastOptionIndex() {
|
|
509
|
+
var _this6 = this;
|
|
510
|
+
return utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
|
|
511
|
+
return _this6.isValidOption(option);
|
|
512
|
+
});
|
|
513
|
+
},
|
|
514
|
+
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
515
|
+
var _this7 = this;
|
|
516
|
+
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
517
|
+
return _this7.isValidOption(option);
|
|
518
|
+
}) : -1;
|
|
519
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
520
|
+
},
|
|
521
|
+
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
522
|
+
var _this8 = this;
|
|
523
|
+
var matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
524
|
+
return _this8.isValidOption(option);
|
|
525
|
+
}) : -1;
|
|
526
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
527
|
+
},
|
|
528
|
+
findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
|
|
529
|
+
var _this9 = this;
|
|
530
|
+
return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
|
|
531
|
+
return _this9.isValidSelectedOption(option);
|
|
532
|
+
}) : -1;
|
|
533
|
+
},
|
|
534
|
+
findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
|
|
535
|
+
var _this10 = this;
|
|
536
|
+
return this.hasSelectedOption ? utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
|
|
537
|
+
return _this10.isValidSelectedOption(option);
|
|
538
|
+
}) : -1;
|
|
539
|
+
},
|
|
540
|
+
findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
|
|
541
|
+
var _this11 = this;
|
|
542
|
+
var matchedOptionIndex = this.hasSelectedOption && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
543
|
+
return _this11.isValidSelectedOption(option);
|
|
544
|
+
}) : -1;
|
|
545
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
546
|
+
},
|
|
547
|
+
findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
|
|
548
|
+
var _this12 = this;
|
|
549
|
+
var matchedOptionIndex = this.hasSelectedOption && index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
550
|
+
return _this12.isValidSelectedOption(option);
|
|
551
|
+
}) : -1;
|
|
552
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
553
|
+
},
|
|
554
|
+
findNearestSelectedOptionIndex: function findNearestSelectedOptionIndex(index) {
|
|
555
|
+
var firstCheckUp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
556
|
+
var matchedOptionIndex = -1;
|
|
557
|
+
if (this.hasSelectedOption) {
|
|
558
|
+
if (firstCheckUp) {
|
|
559
|
+
matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
|
|
560
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
|
|
561
|
+
} else {
|
|
562
|
+
matchedOptionIndex = this.findNextSelectedOptionIndex(index);
|
|
563
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
567
|
+
},
|
|
568
|
+
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
569
|
+
var selectedIndex = this.findFirstSelectedOptionIndex();
|
|
570
|
+
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
571
|
+
},
|
|
572
|
+
findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
|
|
573
|
+
var selectedIndex = this.findLastSelectedOptionIndex();
|
|
574
|
+
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
575
|
+
},
|
|
576
|
+
searchOptions: function searchOptions(event, _char) {
|
|
577
|
+
var _this13 = this;
|
|
578
|
+
this.searchValue = (this.searchValue || '') + _char;
|
|
579
|
+
var optionIndex = -1;
|
|
580
|
+
if (this.focusedOptionIndex !== -1) {
|
|
581
|
+
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option) {
|
|
582
|
+
return _this13.isOptionMatched(option);
|
|
583
|
+
});
|
|
584
|
+
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
|
|
585
|
+
return _this13.isOptionMatched(option);
|
|
586
|
+
}) : optionIndex + this.focusedOptionIndex;
|
|
587
|
+
} else {
|
|
588
|
+
optionIndex = this.visibleOptions.findIndex(function (option) {
|
|
589
|
+
return _this13.isOptionMatched(option);
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
593
|
+
optionIndex = this.findFirstFocusedOptionIndex();
|
|
594
|
+
}
|
|
595
|
+
if (optionIndex !== -1) {
|
|
596
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
597
|
+
}
|
|
598
|
+
if (this.searchTimeout) {
|
|
599
|
+
clearTimeout(this.searchTimeout);
|
|
600
|
+
}
|
|
601
|
+
this.searchTimeout = setTimeout(function () {
|
|
602
|
+
_this13.searchValue = '';
|
|
603
|
+
_this13.searchTimeout = null;
|
|
604
|
+
}, 500);
|
|
605
|
+
},
|
|
606
|
+
removeOption: function removeOption(option) {
|
|
607
|
+
var _this14 = this;
|
|
608
|
+
return this.modelValue.filter(function (val) {
|
|
609
|
+
return !utils.ObjectUtils.equals(val, _this14.getOptionValue(option), _this14.equalityKey);
|
|
610
|
+
});
|
|
611
|
+
},
|
|
612
|
+
changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
|
|
613
|
+
if (this.focusedOptionIndex !== index) {
|
|
614
|
+
this.focusedOptionIndex = index;
|
|
615
|
+
this.scrollInView();
|
|
616
|
+
if (this.selectOnFocus && !this.multiple) {
|
|
617
|
+
this.onOptionSelect(event, this.visibleOptions[index]);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
scrollInView: function scrollInView() {
|
|
622
|
+
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
623
|
+
var id = index !== -1 ? "".concat(this.id, "_").concat(index) : this.focusedOptionId;
|
|
624
|
+
var element = utils.DomHandler.findSingle(this.list, "li[id=\"".concat(id, "\"]"));
|
|
625
|
+
if (element) {
|
|
626
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
627
|
+
block: 'nearest',
|
|
628
|
+
inline: 'nearest'
|
|
629
|
+
});
|
|
630
|
+
} else if (!this.virtualScrollerDisabled) {
|
|
631
|
+
this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
autoUpdateModel: function autoUpdateModel() {
|
|
635
|
+
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption && !this.multiple) {
|
|
636
|
+
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
637
|
+
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex]);
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
updateModel: function updateModel(event, value) {
|
|
641
|
+
this.$emit('update:modelValue', value);
|
|
642
|
+
this.$emit('change', {
|
|
643
|
+
originalEvent: event,
|
|
644
|
+
value: value
|
|
645
|
+
});
|
|
646
|
+
},
|
|
647
|
+
flatOptions: function flatOptions(options) {
|
|
648
|
+
var _this15 = this;
|
|
649
|
+
return (options || []).reduce(function (result, option, index) {
|
|
650
|
+
result.push({
|
|
651
|
+
optionGroup: option,
|
|
652
|
+
group: true,
|
|
653
|
+
index: index
|
|
654
|
+
});
|
|
655
|
+
var optionGroupChildren = _this15.getOptionGroupChildren(option);
|
|
656
|
+
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
657
|
+
return result.push(o);
|
|
658
|
+
});
|
|
659
|
+
return result;
|
|
660
|
+
}, []);
|
|
661
|
+
},
|
|
662
|
+
listRef: function listRef(el, contentRef) {
|
|
663
|
+
this.list = el;
|
|
664
|
+
contentRef && contentRef(el); // For VirtualScroller
|
|
665
|
+
},
|
|
666
|
+
virtualScrollerRef: function virtualScrollerRef(el) {
|
|
667
|
+
this.virtualScroller = el;
|
|
675
668
|
}
|
|
669
|
+
},
|
|
670
|
+
computed: {
|
|
671
|
+
visibleOptions: function visibleOptions() {
|
|
672
|
+
var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
673
|
+
return this.filterValue ? api.FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale) : options;
|
|
674
|
+
},
|
|
675
|
+
hasSelectedOption: function hasSelectedOption() {
|
|
676
|
+
return utils.ObjectUtils.isNotEmpty(this.modelValue);
|
|
677
|
+
},
|
|
678
|
+
equalityKey: function equalityKey() {
|
|
679
|
+
return this.optionValue ? null : this.dataKey;
|
|
680
|
+
},
|
|
681
|
+
searchFields: function searchFields() {
|
|
682
|
+
return this.filterFields || [this.optionLabel];
|
|
683
|
+
},
|
|
684
|
+
filterResultMessageText: function filterResultMessageText() {
|
|
685
|
+
return utils.ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptyFilterMessageText;
|
|
686
|
+
},
|
|
687
|
+
filterMessageText: function filterMessageText() {
|
|
688
|
+
return this.filterMessage || this.$primevue.config.locale.searchMessage || '';
|
|
689
|
+
},
|
|
690
|
+
emptyFilterMessageText: function emptyFilterMessageText() {
|
|
691
|
+
return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || '';
|
|
692
|
+
},
|
|
693
|
+
emptyMessageText: function emptyMessageText() {
|
|
694
|
+
return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
|
|
695
|
+
},
|
|
696
|
+
selectionMessageText: function selectionMessageText() {
|
|
697
|
+
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
|
|
698
|
+
},
|
|
699
|
+
emptySelectionMessageText: function emptySelectionMessageText() {
|
|
700
|
+
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
701
|
+
},
|
|
702
|
+
selectedMessageText: function selectedMessageText() {
|
|
703
|
+
return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
|
|
704
|
+
},
|
|
705
|
+
focusedOptionId: function focusedOptionId() {
|
|
706
|
+
return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
|
|
707
|
+
},
|
|
708
|
+
ariaSetSize: function ariaSetSize() {
|
|
709
|
+
var _this16 = this;
|
|
710
|
+
return this.visibleOptions.filter(function (option) {
|
|
711
|
+
return !_this16.isOptionGroup(option);
|
|
712
|
+
}).length;
|
|
713
|
+
},
|
|
714
|
+
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
715
|
+
return !this.virtualScrollerOptions;
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
directives: {
|
|
719
|
+
ripple: Ripple__default["default"]
|
|
720
|
+
},
|
|
721
|
+
components: {
|
|
722
|
+
VirtualScroller: VirtualScroller__default["default"],
|
|
723
|
+
SearchIcon: SearchIcon__default["default"]
|
|
724
|
+
}
|
|
676
725
|
};
|
|
677
726
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
727
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
728
|
+
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; }
|
|
729
|
+
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; }
|
|
730
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
731
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
732
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
733
|
+
var _hoisted_1 = ["id"];
|
|
734
|
+
var _hoisted_2 = ["tabindex"];
|
|
735
|
+
var _hoisted_3 = ["placeholder", "aria-owns", "aria-activedescendant", "tabindex"];
|
|
736
|
+
var _hoisted_4 = ["id", "aria-multiselectable", "aria-label", "aria-labelledby", "aria-activedescendant", "aria-disabled"];
|
|
737
|
+
var _hoisted_5 = ["id"];
|
|
738
|
+
var _hoisted_6 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousedown", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
|
|
739
|
+
var _hoisted_7 = ["tabindex"];
|
|
686
740
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
741
|
+
var _component_VirtualScroller = vue.resolveComponent("VirtualScroller");
|
|
742
|
+
var _directive_ripple = vue.resolveDirective("ripple");
|
|
743
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
691
744
|
id: $data.id,
|
|
692
|
-
class:
|
|
693
|
-
onFocusout: _cache[10] || (_cache[10] = (
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
options
|
|
745
|
+
"class": _ctx.cx('root'),
|
|
746
|
+
onFocusout: _cache[10] || (_cache[10] = function () {
|
|
747
|
+
return $options.onFocusout && $options.onFocusout.apply($options, arguments);
|
|
748
|
+
})
|
|
749
|
+
}, _ctx.ptm('root'), {
|
|
750
|
+
"data-pc-name": "listbox"
|
|
751
|
+
}), [vue.createElementVNode("span", vue.mergeProps({
|
|
752
|
+
ref: "firstHiddenFocusableElement",
|
|
753
|
+
role: "presentation",
|
|
754
|
+
"aria-hidden": "true",
|
|
755
|
+
"class": "p-hidden-accessible p-hidden-focusable",
|
|
756
|
+
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
757
|
+
onFocus: _cache[0] || (_cache[0] = function () {
|
|
758
|
+
return $options.onFirstHiddenFocus && $options.onFirstHiddenFocus.apply($options, arguments);
|
|
759
|
+
})
|
|
760
|
+
}, _ctx.ptm('hiddenFirstFocusableEl'), {
|
|
761
|
+
"data-p-hidden-accessible": true,
|
|
762
|
+
"data-p-hidden-focusable": true
|
|
763
|
+
}), null, 16, _hoisted_2), vue.renderSlot(_ctx.$slots, "header", {
|
|
764
|
+
value: _ctx.modelValue,
|
|
765
|
+
options: $options.visibleOptions
|
|
766
|
+
}), _ctx.filter ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
767
|
+
key: 0,
|
|
768
|
+
"class": _ctx.cx('header')
|
|
769
|
+
}, _ctx.ptm('header')), [vue.createElementVNode("div", vue.mergeProps({
|
|
770
|
+
"class": _ctx.cx('filterContainer')
|
|
771
|
+
}, _ctx.ptm('filterContainer')), [vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
|
|
772
|
+
ref: "filterInput",
|
|
773
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
774
|
+
return $data.filterValue = $event;
|
|
706
775
|
}),
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
autocomplete: "off",
|
|
721
|
-
"aria-owns": $data.id + '_list',
|
|
722
|
-
"aria-activedescendant": $options.focusedOptionId,
|
|
723
|
-
tabindex: !$props.disabled && !$data.focused ? $props.tabindex : -1,
|
|
724
|
-
onInput: _cache[2] || (_cache[2] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args))),
|
|
725
|
-
onBlur: _cache[3] || (_cache[3] = (...args) => ($options.onFilterBlur && $options.onFilterBlur(...args))),
|
|
726
|
-
onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onFilterKeyDown && $options.onFilterKeyDown(...args)))
|
|
727
|
-
}, { ...$props.filterInputProps, ..._ctx.ptm('filterInput') }), null, 16, _hoisted_3), [
|
|
728
|
-
[vue.vModelText, $data.filterValue]
|
|
729
|
-
]),
|
|
730
|
-
vue.renderSlot(_ctx.$slots, "filtericon", {}, () => [
|
|
731
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterIcon ? 'span' : 'SearchIcon'), vue.mergeProps({
|
|
732
|
-
class: ['p-listbox-filter-icon', $props.filterIcon]
|
|
733
|
-
}, _ctx.ptm('filterIcon')), null, 16, ["class"]))
|
|
734
|
-
])
|
|
735
|
-
], 16),
|
|
736
|
-
vue.createElementVNode("span", vue.mergeProps({
|
|
737
|
-
role: "status",
|
|
738
|
-
"aria-live": "polite",
|
|
739
|
-
class: "p-hidden-accessible"
|
|
740
|
-
}, _ctx.ptm('hiddenFilterResult')), vue.toDisplayString($options.filterResultMessageText), 17)
|
|
741
|
-
], 16))
|
|
742
|
-
: vue.createCommentVNode("", true),
|
|
743
|
-
vue.createElementVNode("div", vue.mergeProps({
|
|
744
|
-
ref: "listWrapper",
|
|
745
|
-
class: "p-listbox-list-wrapper",
|
|
746
|
-
style: $props.listStyle
|
|
747
|
-
}, _ctx.ptm('wrapper')), [
|
|
748
|
-
vue.createVNode(_component_VirtualScroller, vue.mergeProps({ ref: $options.virtualScrollerRef }, { ...$props.virtualScrollerOptions, ..._ctx.ptm('virtualScroller') }, {
|
|
749
|
-
style: $props.listStyle,
|
|
750
|
-
items: $options.visibleOptions,
|
|
751
|
-
tabindex: -1,
|
|
752
|
-
disabled: $options.virtualScrollerDisabled
|
|
753
|
-
}), vue.createSlots({
|
|
754
|
-
content: vue.withCtx(({ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }) => [
|
|
755
|
-
vue.createElementVNode("ul", vue.mergeProps({
|
|
756
|
-
ref: (el) => $options.listRef(el, contentRef),
|
|
757
|
-
id: $data.id + '_list',
|
|
758
|
-
class: ['p-listbox-list', styleClass],
|
|
759
|
-
style: contentStyle,
|
|
760
|
-
tabindex: -1,
|
|
761
|
-
role: "listbox",
|
|
762
|
-
"aria-multiselectable": $props.multiple,
|
|
763
|
-
"aria-label": _ctx.ariaLabel,
|
|
764
|
-
"aria-labelledby": _ctx.ariaLabelledby,
|
|
765
|
-
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
766
|
-
"aria-disabled": $props.disabled,
|
|
767
|
-
onFocus: _cache[6] || (_cache[6] = (...args) => ($options.onListFocus && $options.onListFocus(...args))),
|
|
768
|
-
onBlur: _cache[7] || (_cache[7] = (...args) => ($options.onListBlur && $options.onListBlur(...args))),
|
|
769
|
-
onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onListKeyDown && $options.onListKeyDown(...args)))
|
|
770
|
-
}, _ctx.ptm('list')), [
|
|
771
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (option, i) => {
|
|
772
|
-
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
773
|
-
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
774
|
-
}, [
|
|
775
|
-
($options.isOptionGroup(option))
|
|
776
|
-
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
777
|
-
key: 0,
|
|
778
|
-
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
779
|
-
style: { height: itemSize ? itemSize + 'px' : undefined },
|
|
780
|
-
class: "p-listbox-item-group",
|
|
781
|
-
role: "option"
|
|
782
|
-
}, _ctx.ptm('itemGroup')), [
|
|
783
|
-
vue.renderSlot(_ctx.$slots, "optiongroup", {
|
|
784
|
-
option: option.optionGroup,
|
|
785
|
-
index: $options.getOptionIndex(i, getItemOptions)
|
|
786
|
-
}, () => [
|
|
787
|
-
vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)
|
|
788
|
-
])
|
|
789
|
-
], 16, _hoisted_5))
|
|
790
|
-
: vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
791
|
-
key: 1,
|
|
792
|
-
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
793
|
-
style: { height: itemSize ? itemSize + 'px' : undefined },
|
|
794
|
-
class: ['p-listbox-item', { 'p-highlight': $options.isSelected(option), 'p-focus': $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions), 'p-disabled': $options.isOptionDisabled(option) }],
|
|
795
|
-
role: "option",
|
|
796
|
-
"aria-label": $options.getOptionLabel(option),
|
|
797
|
-
"aria-selected": $options.isSelected(option),
|
|
798
|
-
"aria-disabled": $options.isOptionDisabled(option),
|
|
799
|
-
"aria-setsize": $options.ariaSetSize,
|
|
800
|
-
"aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
|
|
801
|
-
onClick: $event => ($options.onOptionSelect($event, option, $options.getOptionIndex(i, getItemOptions))),
|
|
802
|
-
onMousedown: $event => ($options.onOptionMouseDown($event, $options.getOptionIndex(i, getItemOptions))),
|
|
803
|
-
onMousemove: $event => ($options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions))),
|
|
804
|
-
onTouchend: _cache[5] || (_cache[5] = $event => ($options.onOptionTouchEnd()))
|
|
805
|
-
}, $options.getPTOptions(option, getItemOptions, i, 'item')), [
|
|
806
|
-
vue.renderSlot(_ctx.$slots, "option", {
|
|
807
|
-
option: option,
|
|
808
|
-
index: $options.getOptionIndex(i, getItemOptions)
|
|
809
|
-
}, () => [
|
|
810
|
-
vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)
|
|
811
|
-
])
|
|
812
|
-
], 16, _hoisted_6)), [
|
|
813
|
-
[_directive_ripple]
|
|
814
|
-
])
|
|
815
|
-
], 64))
|
|
816
|
-
}), 128)),
|
|
817
|
-
($data.filterValue && (!items || (items && items.length === 0)))
|
|
818
|
-
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
819
|
-
key: 0,
|
|
820
|
-
class: "p-listbox-empty-message",
|
|
821
|
-
role: "option"
|
|
822
|
-
}, _ctx.ptm('emptyMessage')), [
|
|
823
|
-
vue.renderSlot(_ctx.$slots, "emptyfilter", {}, () => [
|
|
824
|
-
vue.createTextVNode(vue.toDisplayString($options.emptyFilterMessageText), 1)
|
|
825
|
-
])
|
|
826
|
-
], 16))
|
|
827
|
-
: (!$props.options || ($props.options && $props.options.length === 0))
|
|
828
|
-
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
829
|
-
key: 1,
|
|
830
|
-
class: "p-listbox-empty-message",
|
|
831
|
-
role: "option"
|
|
832
|
-
}, _ctx.ptm('emptyMessage')), [
|
|
833
|
-
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
834
|
-
vue.createTextVNode(vue.toDisplayString($options.emptyMessageText), 1)
|
|
835
|
-
])
|
|
836
|
-
], 16))
|
|
837
|
-
: vue.createCommentVNode("", true)
|
|
838
|
-
], 16, _hoisted_4)
|
|
839
|
-
]),
|
|
840
|
-
_: 2
|
|
841
|
-
}, [
|
|
842
|
-
(_ctx.$slots.loader)
|
|
843
|
-
? {
|
|
844
|
-
name: "loader",
|
|
845
|
-
fn: vue.withCtx(({ options }) => [
|
|
846
|
-
vue.renderSlot(_ctx.$slots, "loader", { options: options })
|
|
847
|
-
]),
|
|
848
|
-
key: "0"
|
|
849
|
-
}
|
|
850
|
-
: undefined
|
|
851
|
-
]), 1040, ["style", "items", "disabled"])
|
|
852
|
-
], 16),
|
|
853
|
-
vue.renderSlot(_ctx.$slots, "footer", {
|
|
854
|
-
value: $props.modelValue,
|
|
855
|
-
options: $options.visibleOptions
|
|
776
|
+
type: "text",
|
|
777
|
+
"class": _ctx.cx('filterInput'),
|
|
778
|
+
placeholder: _ctx.filterPlaceholder,
|
|
779
|
+
role: "searchbox",
|
|
780
|
+
autocomplete: "off",
|
|
781
|
+
"aria-owns": $data.id + '_list',
|
|
782
|
+
"aria-activedescendant": $options.focusedOptionId,
|
|
783
|
+
tabindex: !_ctx.disabled && !$data.focused ? _ctx.tabindex : -1,
|
|
784
|
+
onInput: _cache[2] || (_cache[2] = function () {
|
|
785
|
+
return $options.onFilterChange && $options.onFilterChange.apply($options, arguments);
|
|
786
|
+
}),
|
|
787
|
+
onBlur: _cache[3] || (_cache[3] = function () {
|
|
788
|
+
return $options.onFilterBlur && $options.onFilterBlur.apply($options, arguments);
|
|
856
789
|
}),
|
|
857
|
-
|
|
858
|
-
|
|
790
|
+
onKeydown: _cache[4] || (_cache[4] = function () {
|
|
791
|
+
return $options.onFilterKeyDown && $options.onFilterKeyDown.apply($options, arguments);
|
|
792
|
+
})
|
|
793
|
+
}, _objectSpread(_objectSpread({}, _ctx.filterInputProps), _ctx.ptm('filterInput'))), null, 16, _hoisted_3), [[vue.vModelText, $data.filterValue]]), vue.renderSlot(_ctx.$slots, "filtericon", {
|
|
794
|
+
"class": vue.normalizeClass(_ctx.cx('filterIcon'))
|
|
795
|
+
}, function () {
|
|
796
|
+
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.filterIcon ? 'span' : 'SearchIcon'), vue.mergeProps({
|
|
797
|
+
"class": [_ctx.cx('filterIcon'), _ctx.filterIcon]
|
|
798
|
+
}, _ctx.ptm('filterIcon')), null, 16, ["class"]))];
|
|
799
|
+
})], 16), vue.createElementVNode("span", vue.mergeProps({
|
|
800
|
+
role: "status",
|
|
801
|
+
"aria-live": "polite",
|
|
802
|
+
"class": "p-hidden-accessible"
|
|
803
|
+
}, _ctx.ptm('hiddenFilterResult'), {
|
|
804
|
+
"data-p-hidden-accessible": true
|
|
805
|
+
}), vue.toDisplayString($options.filterResultMessageText), 17)], 16)) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
|
|
806
|
+
ref: "listWrapper",
|
|
807
|
+
"class": _ctx.cx('wrapper'),
|
|
808
|
+
style: _ctx.listStyle
|
|
809
|
+
}, _ctx.ptm('wrapper')), [vue.createVNode(_component_VirtualScroller, vue.mergeProps({
|
|
810
|
+
ref: $options.virtualScrollerRef
|
|
811
|
+
}, _ctx.virtualScrollerOptions, {
|
|
812
|
+
style: _ctx.listStyle,
|
|
813
|
+
items: $options.visibleOptions,
|
|
814
|
+
tabindex: -1,
|
|
815
|
+
disabled: $options.virtualScrollerDisabled,
|
|
816
|
+
pt: _ctx.ptm('virtualScroller')
|
|
817
|
+
}), vue.createSlots({
|
|
818
|
+
content: vue.withCtx(function (_ref) {
|
|
819
|
+
var styleClass = _ref.styleClass,
|
|
820
|
+
contentRef = _ref.contentRef,
|
|
821
|
+
items = _ref.items,
|
|
822
|
+
getItemOptions = _ref.getItemOptions,
|
|
823
|
+
contentStyle = _ref.contentStyle,
|
|
824
|
+
itemSize = _ref.itemSize;
|
|
825
|
+
return [vue.createElementVNode("ul", vue.mergeProps({
|
|
826
|
+
ref: function ref(el) {
|
|
827
|
+
return $options.listRef(el, contentRef);
|
|
828
|
+
},
|
|
829
|
+
id: $data.id + '_list',
|
|
830
|
+
"class": [_ctx.cx('list'), styleClass],
|
|
831
|
+
style: contentStyle,
|
|
832
|
+
tabindex: -1,
|
|
833
|
+
role: "listbox",
|
|
834
|
+
"aria-multiselectable": _ctx.multiple,
|
|
835
|
+
"aria-label": _ctx.ariaLabel,
|
|
836
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
837
|
+
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
838
|
+
"aria-disabled": _ctx.disabled,
|
|
839
|
+
onFocus: _cache[6] || (_cache[6] = function () {
|
|
840
|
+
return $options.onListFocus && $options.onListFocus.apply($options, arguments);
|
|
841
|
+
}),
|
|
842
|
+
onBlur: _cache[7] || (_cache[7] = function () {
|
|
843
|
+
return $options.onListBlur && $options.onListBlur.apply($options, arguments);
|
|
844
|
+
}),
|
|
845
|
+
onKeydown: _cache[8] || (_cache[8] = function () {
|
|
846
|
+
return $options.onListKeyDown && $options.onListKeyDown.apply($options, arguments);
|
|
847
|
+
})
|
|
848
|
+
}, _ctx.ptm('list')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, function (option, i) {
|
|
849
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
850
|
+
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
851
|
+
}, [$options.isOptionGroup(option) ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
852
|
+
key: 0,
|
|
853
|
+
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
854
|
+
style: {
|
|
855
|
+
height: itemSize ? itemSize + 'px' : undefined
|
|
856
|
+
},
|
|
857
|
+
"class": _ctx.cx('itemGroup'),
|
|
858
|
+
role: "option"
|
|
859
|
+
}, _ctx.ptm('itemGroup')), [vue.renderSlot(_ctx.$slots, "optiongroup", {
|
|
860
|
+
option: option.optionGroup,
|
|
861
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
862
|
+
}, function () {
|
|
863
|
+
return [vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
|
|
864
|
+
})], 16, _hoisted_5)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
859
865
|
key: 1,
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
866
|
+
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
867
|
+
style: {
|
|
868
|
+
height: itemSize ? itemSize + 'px' : undefined
|
|
869
|
+
},
|
|
870
|
+
"class": _ctx.cx('item', {
|
|
871
|
+
option: option,
|
|
872
|
+
index: i,
|
|
873
|
+
getItemOptions: getItemOptions
|
|
874
|
+
}),
|
|
875
|
+
role: "option",
|
|
876
|
+
"aria-label": $options.getOptionLabel(option),
|
|
877
|
+
"aria-selected": $options.isSelected(option),
|
|
878
|
+
"aria-disabled": $options.isOptionDisabled(option),
|
|
879
|
+
"aria-setsize": $options.ariaSetSize,
|
|
880
|
+
"aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
|
|
881
|
+
onClick: function onClick($event) {
|
|
882
|
+
return $options.onOptionSelect($event, option, $options.getOptionIndex(i, getItemOptions));
|
|
883
|
+
},
|
|
884
|
+
onMousedown: function onMousedown($event) {
|
|
885
|
+
return $options.onOptionMouseDown($event, $options.getOptionIndex(i, getItemOptions));
|
|
886
|
+
},
|
|
887
|
+
onMousemove: function onMousemove($event) {
|
|
888
|
+
return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
|
|
889
|
+
},
|
|
890
|
+
onTouchend: _cache[5] || (_cache[5] = function ($event) {
|
|
891
|
+
return $options.onOptionTouchEnd();
|
|
892
|
+
})
|
|
893
|
+
}, $options.getPTOptions(option, getItemOptions, i, 'item'), {
|
|
894
|
+
"data-p-highlight": $options.isSelected(option),
|
|
895
|
+
"data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
|
|
896
|
+
"data-p-disabled": $options.isOptionDisabled(option)
|
|
897
|
+
}), [vue.renderSlot(_ctx.$slots, "option", {
|
|
898
|
+
option: option,
|
|
899
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
900
|
+
}, function () {
|
|
901
|
+
return [vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)];
|
|
902
|
+
})], 16, _hoisted_6)), [[_directive_ripple]])], 64);
|
|
903
|
+
}), 128)), $data.filterValue && (!items || items && items.length === 0) ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
904
|
+
key: 0,
|
|
905
|
+
"class": _ctx.cx('emptyMessage'),
|
|
906
|
+
role: "option"
|
|
907
|
+
}, _ctx.ptm('emptyMessage')), [vue.renderSlot(_ctx.$slots, "emptyfilter", {}, function () {
|
|
908
|
+
return [vue.createTextVNode(vue.toDisplayString($options.emptyFilterMessageText), 1)];
|
|
909
|
+
})], 16)) : !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
910
|
+
key: 1,
|
|
911
|
+
"class": _ctx.cx('emptyMessage'),
|
|
912
|
+
role: "option"
|
|
913
|
+
}, _ctx.ptm('emptyMessage')), [vue.renderSlot(_ctx.$slots, "empty", {}, function () {
|
|
914
|
+
return [vue.createTextVNode(vue.toDisplayString($options.emptyMessageText), 1)];
|
|
915
|
+
})], 16)) : vue.createCommentVNode("", true)], 16, _hoisted_4)];
|
|
916
|
+
}),
|
|
917
|
+
_: 2
|
|
918
|
+
}, [_ctx.$slots.loader ? {
|
|
919
|
+
name: "loader",
|
|
920
|
+
fn: vue.withCtx(function (_ref2) {
|
|
921
|
+
var options = _ref2.options;
|
|
922
|
+
return [vue.renderSlot(_ctx.$slots, "loader", {
|
|
923
|
+
options: options
|
|
924
|
+
})];
|
|
925
|
+
}),
|
|
926
|
+
key: "0"
|
|
927
|
+
} : undefined]), 1040, ["style", "items", "disabled", "pt"])], 16), vue.renderSlot(_ctx.$slots, "footer", {
|
|
928
|
+
value: _ctx.modelValue,
|
|
929
|
+
options: $options.visibleOptions
|
|
930
|
+
}), !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
931
|
+
key: 1,
|
|
932
|
+
role: "status",
|
|
933
|
+
"aria-live": "polite",
|
|
934
|
+
"class": "p-hidden-accessible"
|
|
935
|
+
}, _ctx.ptm('hiddenEmptyMessage'), {
|
|
936
|
+
"data-p-hidden-accessible": true
|
|
937
|
+
}), vue.toDisplayString($options.emptyMessageText), 17)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
|
|
938
|
+
role: "status",
|
|
939
|
+
"aria-live": "polite",
|
|
940
|
+
"class": "p-hidden-accessible"
|
|
941
|
+
}, _ctx.ptm('hiddenSelectedMessage'), {
|
|
942
|
+
"data-p-hidden-accessible": true
|
|
943
|
+
}), vue.toDisplayString($options.selectedMessageText), 17), vue.createElementVNode("span", vue.mergeProps({
|
|
944
|
+
ref: "lastHiddenFocusableElement",
|
|
945
|
+
role: "presentation",
|
|
946
|
+
"aria-hidden": "true",
|
|
947
|
+
"class": "p-hidden-accessible p-hidden-focusable",
|
|
948
|
+
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
949
|
+
onFocus: _cache[9] || (_cache[9] = function () {
|
|
950
|
+
return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
|
|
951
|
+
})
|
|
952
|
+
}, _ctx.ptm('hiddenLastFocusableEl'), {
|
|
953
|
+
"data-p-hidden-accessible": true,
|
|
954
|
+
"data-p-hidden-focusable": true
|
|
955
|
+
}), null, 16, _hoisted_7)], 16, _hoisted_1);
|
|
906
956
|
}
|
|
907
957
|
|
|
908
|
-
var css_248z = "\n.p-listbox-list-wrapper {\n overflow: auto;\n}\n.p-listbox-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.p-listbox-item {\n cursor: pointer;\n position: relative;\n overflow: hidden;\n}\n.p-listbox-item-group {\n cursor: auto;\n}\n.p-listbox-filter-container {\n position: relative;\n}\n.p-listbox-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n.p-listbox-filter {\n width: 100%;\n}\n";
|
|
909
|
-
styleInject(css_248z);
|
|
910
|
-
|
|
911
958
|
script.render = render;
|
|
912
959
|
|
|
913
960
|
return script;
|
|
914
961
|
|
|
915
|
-
})(primevue.api, primevue.
|
|
962
|
+
})(primevue.api, primevue.icons.search, primevue.ripple, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.usestyle, Vue);
|